/* Kinloom App — Design tokens from landing page */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --honey: #C8963E;
  --honey-light: #E8C878;
  --honey-bg: rgba(200, 150, 62, 0.08);
  --cream: #FBF8F1;
  --warm-white: #FFFDF8;
  --charcoal: #2A2520;
  --slate: #5C554D;
  --sage: #8B9A7E;
  --sage-light: rgba(139, 154, 126, 0.12);
  --rose: #C9A89A;
  --rose-light: rgba(201, 168, 154, 0.12);
  --linen: #F0EAE0;
  --red: #C0392B;
  --red-light: rgba(192, 57, 43, 0.08);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- NAV ---- */
.app-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(251, 248, 241, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linen);
}

.app-nav .logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-dot { color: var(--honey); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-user {
  font-size: 0.88rem;
  color: var(--slate);
  font-weight: 500;
}

.nav-btn {
  font-size: 0.82rem;
  color: var(--slate);
  background: none;
  border: 1px solid var(--linen);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.nav-btn:hover {
  border-color: var(--honey);
  color: var(--honey);
}

/* ---- LAYOUT ---- */
.app-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.app-container.wide {
  max-width: 1100px;
}

/* ---- PAGE HEADER ---- */
.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--slate);
  font-size: 1rem;
}

.page-header .breadcrumb {
  font-size: 0.82rem;
  color: var(--slate);
  margin-bottom: 12px;
}

.page-header .breadcrumb a {
  color: var(--honey);
  text-decoration: none;
}

.page-header .breadcrumb a:hover {
  text-decoration: underline;
}

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--warm-white);
  border: 1px solid var(--linen);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42, 37, 32, 0.06);
  border-color: var(--honey-light);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.6;
}

.card-meta {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--slate);
  display: flex;
  gap: 16px;
}

.card-add {
  border: 2px dashed var(--linen);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  color: var(--slate);
}

.card-add:hover {
  border-color: var(--honey);
  color: var(--honey);
  background: var(--honey-bg);
}

.card-add .plus {
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 300;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-primary:hover {
  background: #3D3630;
  transform: translateY(-1px);
}

.btn-honey {
  background: var(--honey);
  color: white;
}

.btn-honey:hover {
  background: #B5852F;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--linen);
}

.btn-outline:hover {
  border-color: var(--charcoal);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--slate);
  padding: 8px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.btn-ghost:hover {
  color: var(--honey);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- FORMS ---- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--linen);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--warm-white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B5AFA8;
}

/* ---- JOIN PAGE ---- */
.join-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--warm-white);
}

.join-card {
  width: 100%;
  max-width: 420px;
}

.join-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.join-tagline {
  text-align: center;
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.join-form {
  background: var(--cream);
  border: 1px solid var(--linen);
  border-radius: 20px;
  padding: 36px 32px;
}

.join-form h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.join-form .btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
}

.join-divider {
  text-align: center;
  margin: 24px 0;
  font-size: 0.82rem;
  color: var(--slate);
}

.join-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--slate);
}

.join-switch a {
  color: var(--honey);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.join-switch a:hover {
  text-decoration: underline;
}

.error-msg {
  background: var(--red-light);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.error-msg.show {
  display: block;
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--slate);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.92rem;
  max-width: 400px;
  margin: 0 auto 24px;
}

/* ---- SECTIONS ---- */
.section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

/* ---- MEMBER CARD ---- */
.member-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--honey-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--honey);
  flex-shrink: 0;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.member-info p {
  font-size: 0.82rem;
  color: var(--slate);
}

.member-action {
  flex-shrink: 0;
}

/* ---- TOPIC GRID ---- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.topic-card {
  background: var(--warm-white);
  border: 2px solid var(--linen);
  border-radius: 14px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.topic-card:hover {
  border-color: var(--honey);
  background: var(--honey-bg);
}

.topic-card .topic-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.topic-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.topic-card p {
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.5;
}

/* ---- INTERVIEW LIST ---- */
.interview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.interview-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--warm-white);
  border: 1px solid var(--linen);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.interview-item:hover {
  border-color: var(--honey-light);
  transform: translateX(2px);
}

.interview-icon {
  font-size: 1.4rem;
}

.interview-info {
  flex: 1;
  min-width: 0;
}

.interview-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.interview-info p {
  font-size: 0.78rem;
  color: var(--slate);
}

.interview-status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
}

.status-active {
  color: var(--honey);
  background: var(--honey-bg);
}

.status-completed {
  color: var(--sage);
  background: var(--sage-light);
}

/* ---- CHAT / INTERVIEW UI ---- */
.chat-container {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
}

.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--linen);
  background: var(--warm-white);
}

.chat-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.chat-header p {
  font-size: 0.82rem;
  color: var(--slate);
}

.chat-progress {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.chat-progress .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--linen);
  transition: background 0.3s;
}

.chat-progress .dot.filled {
  background: var(--honey);
}

.chat-progress .dot.current {
  background: var(--honey-light);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 32px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.chat-bubble {
  max-width: 85%;
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.65;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble-ai {
  background: var(--warm-white);
  border: 1px solid var(--linen);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.bubble-ai .bubble-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--honey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.bubble-user {
  background: var(--charcoal);
  color: var(--cream);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-input-area {
  padding: 20px 24px;
  border-top: 1px solid var(--linen);
  background: var(--warm-white);
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.chat-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-input-wrapper textarea {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--linen);
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  resize: none;
  outline: none;
  min-height: 52px;
  max-height: 150px;
  line-height: 1.5;
}

.chat-input-wrapper textarea:focus {
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.1);
}

.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: #3D3630;
  transform: translateY(-1px);
}

.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.chat-completed {
  text-align: center;
  padding: 24px;
  color: var(--sage);
}

.chat-completed p {
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ---- TYPING INDICATOR ---- */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 16px 20px;
  background: var(--warm-white);
  border: 1px solid var(--linen);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  max-width: 80px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate);
  opacity: 0.4;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 37, 32, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--warm-white);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(42, 37, 32, 0.15);
}

.modal h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.modal .btn {
  width: 100%;
  margin-top: 8px;
}

/* ---- LOADING ---- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--slate);
  font-size: 0.92rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--linen);
  border-top-color: var(--honey);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- BACK LINK ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  cursor: pointer;
}

.back-link:hover {
  color: var(--honey);
}

/* ---- TIMELINE ---- */

/* Color tokens for each horizon */
:root {
  --past-color: #C8963E;
  --past-bg: rgba(200, 150, 62, 0.07);
  --past-border: rgba(200, 150, 62, 0.25);
  --present-color: #6A8F5C;
  --present-bg: rgba(106, 143, 92, 0.07);
  --present-border: rgba(106, 143, 92, 0.25);
  --future-color: #4A7FA5;
  --future-bg: rgba(74, 127, 165, 0.07);
  --future-border: rgba(74, 127, 165, 0.25);
}

.timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Horizon section */
.timeline-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-horizon-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid;
  position: relative;
}

.timeline-horizon-label.horizon-past   { background: var(--past-bg);    border-color: var(--past-border); }
.timeline-horizon-label.horizon-present { background: var(--present-bg); border-color: var(--present-border); }
.timeline-horizon-label.horizon-future  { background: var(--future-bg);  border-color: var(--future-border); }

.tl-horizon-emoji { font-size: 1.6rem; flex-shrink: 0; }

.tl-horizon-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.horizon-past   .tl-horizon-title { color: var(--past-color); }
.horizon-present .tl-horizon-title { color: var(--present-color); }
.horizon-future  .tl-horizon-title { color: var(--future-color); }

.tl-horizon-sub {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 1px;
}

.tl-count {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
  background: white;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--linen);
}

/* Timeline cards stack */
.timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
  border-left: 2px solid var(--linen);
  margin-left: 28px;
}

/* Individual card */
.timeline-card {
  background: var(--warm-white);
  border: 1px solid var(--linen);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--linen);
  border: 2px solid white;
}

.timeline-card.horizon-past::before   { background: var(--past-color); }
.timeline-card.horizon-present::before { background: var(--present-color); }
.timeline-card.horizon-future::before  { background: var(--future-color); }

.timeline-card:hover {
  border-color: var(--honey-light);
  box-shadow: 0 4px 16px rgba(42, 37, 32, 0.05);
  transform: translateX(2px);
}

.timeline-card.tl-card-open {
  border-color: var(--honey-light);
  box-shadow: 0 4px 20px rgba(42, 37, 32, 0.07);
}

.timeline-card.horizon-past.tl-card-open   { border-color: var(--past-border); }
.timeline-card.horizon-present.tl-card-open { border-color: var(--present-border); }
.timeline-card.horizon-future.tl-card-open  { border-color: var(--future-border); }

/* Card header row */
.tl-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--honey-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--honey);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.horizon-past   .tl-avatar { background: var(--past-bg);    color: var(--past-color); }
.horizon-present .tl-avatar { background: var(--present-bg); color: var(--present-color); }
.horizon-future  .tl-avatar { background: var(--future-bg);  color: var(--future-color); }

.tl-card-meta {
  flex: 1;
  min-width: 0;
}

.tl-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}

.tl-card-sub {
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 2px;
}

.tl-relationship {
  opacity: 0.8;
}

/* Preview text */
.tl-card-preview {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid var(--linen);
  font-style: italic;
}

.tl-no-response {
  color: #B5AFA8;
  font-style: normal;
}

/* Read link */
.tl-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--honey);
  text-decoration: none;
  transition: color 0.15s;
}

.tl-card-link:hover {
  color: var(--charcoal);
}

/* Expanded transcript */
.tl-card-expand {
  margin-top: 16px;
  border-top: 1px solid var(--linen);
  padding-top: 16px;
}

.tl-expand-loading {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--slate);
  padding: 8px 0;
}

.tl-expand-empty {
  font-size: 0.82rem;
  color: var(--slate);
  font-style: italic;
  padding: 4px 0;
}

/* Transcript messages */
.tl-transcript {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tl-msg {
  font-size: 0.88rem;
  line-height: 1.65;
  padding: 12px 16px;
  border-radius: 12px;
}

.tl-msg-ai {
  background: var(--cream);
  border: 1px solid var(--linen);
  border-bottom-left-radius: 4px;
  max-width: 85%;
}

.tl-msg-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--honey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.tl-msg-user {
  background: var(--charcoal);
  color: var(--cream);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  max-width: 85%;
  margin-left: auto;
}

/* ---- WELCOME BANNER ---- */
.welcome-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--honey-bg) 0%, rgba(200, 150, 62, 0.12) 100%);
  border: 1px solid var(--honey-light);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 32px;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.welcome-text {
  flex: 1;
}

.welcome-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.welcome-text span {
  font-size: 0.85rem;
  color: var(--slate);
}

.banner-dismiss {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--slate);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.banner-dismiss:hover {
  background: rgba(0,0,0,0.05);
  color: var(--charcoal);
}

/* ---- WELCOME EMPTY STATE ---- */
.welcome-empty {
  max-width: 480px;
  margin: 0 auto;
}

.welcome-hero {
  margin-bottom: 36px;
}

.welcome-hero .icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.welcome-hero h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.welcome-hero p {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto;
}

.empty-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--slate);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--honey);
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-arrow {
  color: var(--honey-light);
  font-size: 1.1rem;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
}

.empty-hint {
  font-size: 0.82rem;
  color: #A8A199;
  margin-top: 14px;
}

/* ---- FAMILY GUIDANCE ---- */
.family-guidance {
  background: linear-gradient(135deg, var(--sage-light) 0%, rgba(139, 154, 126, 0.08) 100%);
  border: 1px solid rgba(139, 154, 126, 0.25);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.family-guidance .guidance-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.family-guidance-content h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.family-guidance-content p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 14px;
}

.family-guidance-content .btn {
  margin-right: 10px;
}

/* ---- INTERVIEW NUDGE ---- */
.interview-nudge {
  background: linear-gradient(135deg, var(--honey-bg) 0%, rgba(200, 150, 62, 0.1) 100%);
  border: 1px solid var(--honey-light);
  border-radius: 14px;
  padding: 24px;
  margin-top: 28px;
  text-align: center;
}

.interview-nudge .nudge-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.interview-nudge h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.interview-nudge p {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 18px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.interview-nudge .btn-honey {
  margin-bottom: 8px;
}

.interview-nudge .nudge-hint {
  font-size: 0.78rem;
  color: #9A9489;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .app-nav {
    padding: 14px 18px;
  }

  .app-container {
    padding: 88px 16px 40px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .join-form {
    padding: 28px 20px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  /* Welcome banner mobile */
  .welcome-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 16px;
  }

  .welcome-text {
    text-align: center;
  }

  .banner-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
  }

  /* Welcome empty state mobile */
  .welcome-empty {
    padding: 0 8px;
  }

  .welcome-hero h3 {
    font-size: 1.5rem;
  }

  .empty-steps {
    gap: 8px;
  }

  .step {
    font-size: 0.78rem;
  }

  .step-arrow {
    font-size: 0.9rem;
  }

  /* Family guidance mobile */
  .family-guidance {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }

  .family-guidance-content {
    text-align: center;
  }

  .family-guidance-content .btn {
    width: 100%;
  }

  /* Interview nudge mobile */
  .interview-nudge {
    padding: 20px 16px;
  }

  .interview-nudge h4 {
    font-size: 1.1rem;
  }

  .interview-nudge p {
    font-size: 0.88rem;
  }

  .modal {
    padding: 24px 20px;
  }

  .timeline-cards {
    padding-left: 14px;
    margin-left: 16px;
  }

  .timeline-card::before {
    left: -20px;
    top: 20px;
  }

  .tl-card-title {
    font-size: 0.85rem;
  }

  .tl-msg-ai, .tl-msg-user {
    max-width: 95%;
  }

  .prompt-card {
    padding: 14px 16px !important;
  }

  .prompt-from {
    flex-wrap: wrap;
    gap: 6px !important;
  }
}

/* ---- FAMILY PROMPTS ---- */
.prompts-section {
  margin-top: 8px;
}

.prompts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-card {
  background: var(--warm-white);
  border: 1px solid var(--linen);
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.2s;
}

.prompt-card:hover {
  border-color: var(--honey-light);
  box-shadow: 0 2px 12px rgba(42, 37, 32, 0.04);
}

.prompt-card-used {
  opacity: 0.6;
}

.prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.prompt-from {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--honey-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--honey);
  flex-shrink: 0;
}

.prompt-sender, .prompt-recipient {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.prompt-arrow {
  color: var(--slate);
  font-size: 0.8rem;
}

.prompt-delete {
  background: none;
  border: none;
  color: var(--slate);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1;
}

.prompt-delete:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #c0392b;
}

.prompt-question {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.6;
  font-style: italic;
  padding-left: 4px;
}

.prompt-meta {
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 8px;
}

.prompt-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sage);
  background: var(--sage-light);
  padding: 3px 10px;
  border-radius: 6px;
}

.prompts-empty {
  background: var(--cream);
  border: 1px dashed var(--linen);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.prompts-empty p {
  font-size: 0.88rem;
  color: var(--slate);
}

.prompts-used-toggle {
  text-align: center;
  margin-top: 12px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--slate);
  padding: 8px;
  border-radius: 8px;
  transition: all 0.15s;
}

.prompts-used-toggle:hover {
  background: var(--cream);
  color: var(--honey);
}

.prompts-used {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Prompt badge on member avatar */
.member-avatar {
  position: relative;
}

.prompt-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--honey);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--warm-white);
  line-height: 1;
}

.member-prompt-hint {
  font-size: 0.72rem !important;
  color: var(--honey) !important;
  font-weight: 500;
  margin-top: 2px;
}

/* Modal select styling */
.modal select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--linen);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23706860' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.modal select:focus {
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.1);
}

.modal textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--linen);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  line-height: 1.5;
}

.modal textarea:focus {
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.1);
}

/* ---- NAV UPGRADE BUTTON ---- */
.nav-upgrade-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--honey);
  background: var(--honey-bg);
  border: 1px solid rgba(200, 150, 62, 0.25);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-upgrade-btn:hover {
  background: rgba(200, 150, 62, 0.15);
  border-color: var(--honey);
  transform: translateY(-1px);
}

.nav-badge-premium {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--honey);
  background: var(--honey-bg);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- PRICING PAGE ---- */
.pricing-page {
  max-width: 960px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.pricing-header p {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.65;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--warm-white);
  border: 1px solid var(--linen);
  border-radius: 18px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(42, 37, 32, 0.08);
}

.pricing-card-featured {
  border-color: var(--honey);
  box-shadow: 0 8px 24px rgba(200, 150, 62, 0.12);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--honey);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pricing-card-label {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.price-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.88rem;
  color: var(--slate);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 0.88rem;
  color: var(--charcoal);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
  font-size: 0.82rem;
}

.pricing-btn {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
}

.pricing-current {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--sage);
  font-weight: 600;
  padding: 14px 20px;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--slate);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    order: -1;
  }
}

@media (max-width: 640px) {
  .nav-upgrade-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .nav-user {
    display: none;
  }
}
