@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── Tokens ── */
:root {
  --black:       #0a0a0a;
  --dark:        #111111;
  --dark-mid:    #161616;
  --dark-card:   #1a1a1a;
  --dark-border: #222222;
  --dark-hover:  #242424;
  --red:         #e02020;
  --red-dark:    #b81818;
  --red-dim:     rgba(224,32,32,0.12);
  --white:       #ffffff;
  --grey-100:    #f0f0f0;
  --grey-200:    #cccccc;
  --grey-400:    #888888;
  --grey-600:    #555555;
  --grey-700:    #444444;
  --grey-800:    #333333;
  --grey-900:    #222222;
  --green:       #22c55e;
  --green-dim:   rgba(34,197,94,0.1);
  --yellow:      #eab308;
  --yellow-dim:  rgba(234,179,8,0.1);
  --border:      #222222;
  --text:        #f0f0f0;
  --text-mid:    #aaaaaa;
  --text-muted:  #666666;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 56px;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; color: var(--white);
  text-decoration: none; letter-spacing: 3px;
}
.nav-logo span { color: var(--red); }
.nav-logo-img { height: 36px; width: auto; mix-blend-mode: lighten; margin-right: 10px; vertical-align: middle; position: relative; top: -1px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 13px; font-weight: 400;
  color: var(--grey-400);
  text-decoration: none; padding: 6px 11px; border-radius: var(--radius-sm);
  transition: all 0.15s; white-space: nowrap; letter-spacing: 0.2px;
}
.nav-link:hover { color: var(--white); background: var(--dark-card); }
.nav-link.active { color: var(--white); }
.nav-link.muted { color: var(--grey-700); font-size: 12px; }
.nav-link.muted:hover { color: var(--grey-400); background: transparent; }
.nav-settings { padding: 6px 8px !important; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px;
  background: var(--red); color: var(--white);
  font-size: 14px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; transition: all 0.15s; letter-spacing: 0.2px;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.full { width: 100%; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px;
  background: transparent; color: var(--grey-200);
  font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--grey-800); border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--grey-600); color: var(--white); }
.btn-ghost.small { padding: 6px 13px; font-size: 12px; }
.btn-ghost.full { width: 100%; margin-top: 8px; }

.btn-pro {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px;
  background: var(--red); color: var(--white);
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px;
  font-family: 'DM Sans', sans-serif;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; transition: all 0.15s;
}
.btn-pro:hover { background: var(--red-dark); }

.pro-badge {
  font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  background: var(--red-dim); color: var(--red);
  padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid rgba(224,32,32,0.25);
}
.pro-badge.large { font-size: 11px; padding: 5px 12px; }

/* ── Flash ── */
.flash-messages { position: fixed; top: 66px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.flash {
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4); animation: slideIn 0.25s ease;
  pointer-events: all;
}
.flash-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.flash-error   { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(224,32,32,0.25); }
@keyframes slideIn { from { opacity:0; transform: translateX(16px); } to { opacity:1; transform: translateX(0); } }

/* ── Page shell ── */
.page { max-width: 660px; margin: 0 auto; padding: 40px 24px 100px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.page-title { font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 2px; color: var(--white); line-height: 1; }
.page-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* ── Hero / Landing ── */
.hero { max-width: 780px; margin: 0 auto; padding: 80px 24px 60px; }
.hero-inner { text-align: center; margin-bottom: 56px; }
.hero-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); background: var(--red-dim);
  padding: 5px 14px; border-radius: var(--radius-sm); margin-bottom: 24px;
  border: 1px solid rgba(224,32,32,0.2);
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 88px); font-weight: 400;
  line-height: 0.95; letter-spacing: 3px;
  color: var(--white); margin-bottom: 22px;
}
.hero-title em { font-style: normal; color: var(--red); }
.hero-sub { font-size: 16px; color: var(--text-muted); max-width: 480px; margin: 0 auto 36px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note { font-size: 12px; color: var(--grey-700); }

.hero-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature-card { background: var(--black); padding: 24px 20px; transition: background 0.15s; }
.feature-card:hover { background: var(--dark-mid); }
.feature-icon { margin-bottom: 14px; }
.feature-icon svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; }
.feature-label { font-size: 14px; font-weight: 500; color: var(--white); margin-bottom: 6px; }
.feature-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* ── Auth ── */
.auth-page { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card {
  background: var(--black); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px;
  width: 100%; max-width: 400px;
}
.auth-logo { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 3px; color: var(--white); text-decoration: none; display: block; margin-bottom: 28px; }
.auth-logo span { color: var(--red); }
.auth-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 2px; color: var(--white); margin-bottom: 24px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.auth-switch a { color: var(--red); text-decoration: none; font-weight: 500; }
.invite-banner { background: var(--red-dim); border: 1px solid rgba(224,32,32,0.2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; margin-bottom: 24px; line-height: 1.5; color: var(--text-mid); }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--grey-600); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 7px; }
.label-hint { font-weight: 400; opacity: 0.65; text-transform: none; letter-spacing: 0; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--dark-border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--text); background: var(--dark-mid);
  transition: border-color 0.15s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
.form-group textarea { resize: vertical; min-height: 88px; line-height: 1.6; }

.role-toggle { display: flex; gap: 8px; }
.role-option {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px; border: 1px solid var(--dark-border); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px; color: var(--text-muted); transition: all 0.15s;
}
.role-option:has(input:checked) { border-color: var(--red); background: var(--red-dim); color: var(--red); }
.role-option input { display: none; }

/* ── Dashboard ── */
.week-banner {
  background: var(--black); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.week-banner::after { content: ''; position: absolute; right: -20px; top: -20px; width: 100px; height: 100px; background: var(--red); opacity: 0.04; border-radius: 50%; }
.week-info { display: flex; align-items: center; gap: 16px; }
.week-num { font-family: 'Bebas Neue', sans-serif; font-size: 64px; line-height: 1; color: var(--red); letter-spacing: 2px; }
.week-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--grey-700); }
.week-sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.dash-card {
  background: var(--black); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 14px 14px;
  text-decoration: none; color: var(--text);
  transition: all 0.15s; display: block;
}
.dash-card:hover { background: var(--dark-mid); border-color: var(--grey-800); }
.dash-icon { margin-bottom: 12px; }
.dash-icon svg { width: 20px; height: 20px; stroke: var(--grey-400); fill: none; stroke-width: 2; stroke-linecap: round; }
.scanner-card .dash-icon svg { stroke: var(--red); }
.dash-card-label { font-size: 13px; font-weight: 500; color: var(--grey-200); margin-bottom: 3px; }
.dash-card-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.dash-card-usage { font-size: 11px; color: var(--red); font-weight: 500; margin-top: 8px; }
.scanner-card { border-top: 2px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); }

.invite-card {
  background: var(--black); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.partner-connected { border-color: rgba(34,197,94,0.2); }
.invite-icon svg { width: 18px; height: 18px; stroke: var(--grey-400); fill: none; stroke-width: 2; stroke-linecap: round; }
.invite-title { font-size: 13px; font-weight: 500; color: var(--grey-200); }
.invite-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.invite-card .btn-ghost { margin-left: auto; white-space: nowrap; flex-shrink: 0; }

.section { margin-top: 28px; }
.section-title { font-size: 10px; font-weight: 600; color: var(--grey-700); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }

.scan-list { display: flex; flex-direction: column; gap: 6px; }
.scan-row { display: flex; align-items: center; justify-content: space-between; background: var(--black); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; gap: 12px; }
.scan-food { font-size: 13px; font-weight: 500; color: var(--grey-200); }
.scan-explanation-preview { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.scan-verdict-chip { font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; padding: 3px 9px; border-radius: var(--radius-sm); white-space: nowrap; }
.verdict-safe   .scan-verdict-chip { background: var(--green-dim);  color: var(--green); }
.verdict-caution .scan-verdict-chip { background: var(--yellow-dim); color: var(--yellow); }
.verdict-avoid  .scan-verdict-chip { background: var(--red-dim);    color: var(--red); }

.upgrade-banner { background: var(--black); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 24px 26px; margin-top: 24px; }
.upgrade-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1.5px; color: var(--white); margin-bottom: 10px; }
.upgrade-features { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; font-size: 12px; color: var(--text-muted); }

.upgrade-wall { text-align: center; padding: 56px 24px; }
.upgrade-icon svg { width: 40px; height: 40px; stroke: var(--grey-700); fill: none; stroke-width: 1.5; stroke-linecap: round; margin-bottom: 16px; }
.upgrade-wall h2 { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 2px; color: var(--white); margin-bottom: 10px; }
.upgrade-wall p { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--dark-card); color: var(--white); border: 1px solid var(--border); padding: 10px 20px; border-radius: var(--radius-sm); font-size: 13px; z-index: 400; white-space: nowrap; }

/* ── Scanner ── */
.scan-counter { font-size: 12px; color: var(--text-muted); background: var(--black); border: 1px solid var(--border); padding: 5px 12px; border-radius: var(--radius-sm); white-space: nowrap; flex-shrink: 0; }
.scanner-zone { margin-bottom: 20px; }
.drop-area { border: 1px dashed var(--grey-800); border-radius: var(--radius); padding: 56px 24px; text-align: center; cursor: pointer; background: var(--black); transition: all 0.2s; }
.drop-area:hover { border-color: var(--red); background: var(--red-dim); }
.drop-icon svg { width: 36px; height: 36px; stroke: var(--grey-700); fill: none; stroke-width: 1.5; stroke-linecap: round; margin-bottom: 14px; }
.drop-title { font-size: 15px; font-weight: 500; color: var(--grey-200); margin-bottom: 6px; }
.drop-sub { font-size: 12px; color: var(--text-muted); }

.preview-area { text-align: center; }
.preview-area img { max-width: 100%; max-height: 280px; border-radius: var(--radius); object-fit: cover; margin-bottom: 14px; border: 1px solid var(--border); }

.scanning-state { text-align: center; padding: 48px 24px; }
.scan-spinner { width: 32px; height: 32px; border: 2px solid var(--dark-card); border-top-color: var(--red); border-radius: 50%; animation: spin 0.75s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-status { color: var(--text-muted); font-size: 13px; }

.scan-result { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.result-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid var(--dark-card); gap: 12px; }
.result-food { font-size: 15px; font-weight: 500; color: var(--white); }
.result-verdict { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-sm); white-space: nowrap; flex-shrink: 0; }
.result-explanation { padding: 14px 18px; font-size: 13px; line-height: 1.7; color: var(--text-mid); }
.result-tags { padding: 0 18px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--dark-mid); border: 1px solid var(--dark-border); border-radius: var(--radius-sm); padding: 3px 10px; font-size: 11px; color: var(--grey-600); }
.result-alternative { margin: 0 18px 16px; background: var(--red-dim); border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13px; color: var(--red); line-height: 1.55; border: 1px solid rgba(224,32,32,0.2); }

/* ── Week Guide ── */
.week-selector { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 32px; }
.week-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--black); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; color: var(--grey-400); }
.week-btn:hover { border-color: var(--red); color: var(--red); }
.week-display { text-align: center; min-width: 80px; }
.week-display-num { font-family: 'Bebas Neue', sans-serif; font-size: 56px; font-weight: 400; color: var(--red); letter-spacing: 2px; line-height: 1; }
.week-display-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 2px; }

.guide-content { display: flex; flex-direction: column; gap: 10px; }
.guide-hero { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; }
.guide-baby-size { display: flex; align-items: center; gap: 14px; }
.baby-icon svg { width: 32px; height: 32px; stroke: var(--red); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.baby-size-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.baby-size-value { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; color: var(--white); margin-top: 2px; }
.guide-trimester { font-size: 11px; font-weight: 500; background: var(--red-dim); color: var(--red); padding: 4px 12px; border-radius: var(--radius-sm); letter-spacing: 0.5px; }

.guide-section { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.guide-section.highlight { border-color: rgba(224,32,32,0.2); border-left: 3px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; }
.guide-section-title { font-size: 11px; font-weight: 600; color: var(--grey-600); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 12px; }
.guide-text { font-size: 13px; line-height: 1.7; color: var(--text-mid); }
.guide-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.guide-list li { font-size: 13px; line-height: 1.6; color: var(--text-mid); padding-left: 18px; position: relative; }
.guide-list li::before { content: '—'; position: absolute; left: 0; color: var(--grey-700); font-size: 12px; }
.action-list li::before { content: '✓'; color: var(--red); font-size: 11px; font-weight: 700; top: 1px; }
.avoid-list li::before  { content: '✗'; color: var(--grey-700); font-size: 11px; top: 1px; }

.guide-focus { background: var(--red); border-radius: var(--radius); padding: 18px 20px; }
.focus-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.focus-text { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; line-height: 1.3; color: var(--white); }

.dad-check { background: var(--black); border: 1px solid var(--border); border-left: 3px solid var(--grey-800); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; }
.dad-check-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--grey-600); margin-bottom: 6px; }
.dad-check-text { font-size: 13px; line-height: 1.65; color: var(--text-muted); }

.loading-state { text-align: center; padding: 56px 24px; }

/* ── Advisor ── */
.mood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; transition: opacity 0.2s; }
.mood-grid.mood-selected .mood-card:not(.selected) { opacity: 0.3; }
.mood-card {
  background: var(--black); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 10px 12px;
  cursor: pointer; text-align: center; transition: all 0.15s;
}
.mood-card:hover { border-color: var(--grey-700); background: var(--dark-mid); }
.mood-card.selected { border-color: var(--red); background: var(--red-dim); }
.mood-icon { margin-bottom: 8px; }
.mood-icon svg { width: 20px; height: 20px; stroke: var(--grey-400); fill: none; stroke-width: 2; stroke-linecap: round; }
.mood-card.selected .mood-icon svg { stroke: var(--red); }
.mood-label { font-size: 12px; font-weight: 500; color: var(--grey-200); margin-bottom: 2px; }
.mood-desc  { font-size: 10px; color: var(--text-muted); line-height: 1.4; }

.context-area { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.context-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 13px; font-weight: 500; color: var(--grey-200); }

.advice-result { display: flex; flex-direction: column; gap: 10px; }
.situation-read { font-size: 13px; color: var(--text-muted); font-style: italic; padding: 0 4px; line-height: 1.65; }
.responses-list { display: flex; flex-direction: column; gap: 8px; }
.response-card { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.response-type-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; color: var(--grey-600); }
.response-say .response-type-badge { color: var(--red); }
.response-do  .response-type-badge { color: var(--grey-400); }
.response-text { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 0.5px; line-height: 1.35; color: var(--white); margin-bottom: 10px; }
.response-why { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

.avoid-card { background: var(--red-dim); border: 1px solid rgba(224,32,32,0.2); border-radius: var(--radius); padding: 14px 18px; }
.avoid-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--red); margin-bottom: 6px; }
.avoid-text { font-size: 13px; line-height: 1.6; color: var(--text-mid); }

.dad-reminder { background: var(--dark-mid); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── Community ── */
.community-page { max-width: 700px; }
.tag-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tag-pill { font-size: 12px; font-weight: 400; color: var(--grey-600); background: var(--black); border: 1px solid var(--border); padding: 5px 12px; border-radius: var(--radius-sm); text-decoration: none; transition: all 0.15s; white-space: nowrap; }
.tag-pill:hover { border-color: var(--grey-700); color: var(--grey-200); }
.tag-pill.active { background: var(--red); color: var(--white); border-color: var(--red); }

.usage-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--black); border: 1px solid var(--border); border-left: 3px solid var(--grey-800); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 9px 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.usage-maxed { color: var(--red); font-weight: 500; }
.usage-upgrade { margin-left: auto; font-size: 12px; color: var(--red); text-decoration: none; font-weight: 500; }

.post-feed { display: flex; flex-direction: column; gap: 8px; }
.post-card { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--text); transition: all 0.15s; display: block; }
.post-card:hover { background: var(--dark-mid); border-color: var(--grey-800); }
.post-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.post-tag-chip { font-size: 10px; font-weight: 600; color: var(--red); background: var(--red-dim); border: 1px solid rgba(224,32,32,0.15); padding: 3px 9px; border-radius: var(--radius-sm); letter-spacing: 0.5px; text-transform: uppercase; }
.post-meta { font-size: 11px; color: var(--text-muted); }
.post-title { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 6px; line-height: 1.4; }
.post-preview { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }
.post-card-bottom { display: flex; align-items: center; gap: 12px; }
.post-stat { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--grey-700); }
.post-stat svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.post-stat.upvoted { color: var(--red); }
.post-author { margin-left: auto; font-size: 11px; color: var(--grey-700); }

.empty-feed { text-align: center; padding: 60px 24px; }
.empty-icon svg { width: 36px; height: 36px; stroke: var(--grey-800); fill: none; stroke-width: 1.5; margin-bottom: 14px; }
.empty-title { font-size: 16px; font-weight: 500; color: var(--grey-400); margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: var(--text-muted); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; backdrop-filter: blur(3px); }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--black); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 26px 22px; width: min(540px, 92vw); z-index: 201; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-header h3 { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1.5px; color: var(--white); }
.modal-close { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--grey-600); padding: 4px 8px; border-radius: var(--radius-sm); transition: background 0.15s; }
.modal-close:hover { background: var(--dark-card); color: var(--grey-200); }

.tag-select { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tag-select-option { font-size: 12px; padding: 5px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer; transition: all 0.15s; color: var(--grey-600); background: var(--dark-mid); }
.tag-select-option:hover { border-color: var(--grey-700); color: var(--grey-200); }
.tag-select-option.selected { background: var(--red); color: var(--white); border-color: var(--red); }

.char-count { font-size: 11px; color: var(--grey-700); text-align: right; margin-top: 4px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--grey-600); text-decoration: none; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; transition: color 0.15s; }
.back-link:hover { color: var(--grey-200); }

.full-post { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.full-post-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.full-post-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.full-post-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; color: var(--white); line-height: 1.2; margin-bottom: 14px; }
.full-post-body { font-size: 14px; line-height: 1.75; color: var(--text-mid); margin-bottom: 18px; white-space: pre-wrap; }
.full-post-actions { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--dark-card); }
.post-author-name { font-weight: 500; color: var(--grey-200); font-size: 13px; }
.post-dot { color: var(--grey-800); }

.action-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--grey-600); background: none; border: 1px solid var(--border); padding: 5px 11px; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
.action-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.action-btn:hover { border-color: var(--grey-700); color: var(--grey-200); }
.action-btn-active { color: var(--red) !important; border-color: rgba(224,32,32,0.3) !important; background: var(--red-dim) !important; }
.action-btn-flag { margin-left: auto; }

.replies-section { display: flex; flex-direction: column; gap: 8px; }
.replies-header { font-size: 10px; font-weight: 600; color: var(--grey-700); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px; }
.reply-card { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.reply-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.reply-author { font-size: 12px; font-weight: 500; color: var(--grey-200); }
.reply-date { font-size: 11px; color: var(--text-muted); }
.reply-body { font-size: 13px; line-height: 1.7; color: var(--text-mid); margin-bottom: 10px; white-space: pre-wrap; }
.reply-actions { display: flex; align-items: center; gap: 8px; }
.reply-limit-note { font-size: 11px; color: var(--text-muted); }

.reply-box { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.reply-box textarea { width: 100%; border: 1px solid var(--dark-border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--dark-mid); resize: vertical; outline: none; transition: border-color 0.15s; }
.reply-box textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
.reply-limit-wall { background: var(--dark-mid); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* ── Onboarding ── */
.onboarding-page { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.onboarding-card { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px 40px; width: 100%; max-width: 480px; }
.steps-bar { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dark-card); border: 1px solid var(--border); transition: all 0.3s; flex-shrink: 0; }
.step-dot.active { background: var(--red); border-color: var(--red); }
.step-dot.done { background: var(--red); border-color: var(--red); }
.step-line { flex: 1; height: 1px; background: var(--border); max-width: 60px; }
.onboarding-step { text-align: center; }
.step-emoji { font-size: 40px; margin-bottom: 20px; }
.step-anchor-icon { margin-bottom: 20px; display: flex; justify-content: center; }
.step-anchor-icon svg { width: 72px; height: 72px; }
.step-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1.5px; color: var(--white); margin-bottom: 14px; line-height: 1.2; }
.step-body { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.step-skip { display: flex; flex-direction: column; }

.invite-copy-box { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 10px; background: var(--dark-mid); }
.invite-url { flex: 1; padding: 10px 12px; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: 'DM Sans', sans-serif; }
.invite-copy-btn { padding: 10px 16px; background: var(--red); color: var(--white); border: none; cursor: pointer; font-size: 12px; font-weight: 500; font-family: 'DM Sans', sans-serif; transition: background 0.15s; flex-shrink: 0; letter-spacing: 0.5px; }
.invite-copy-btn:hover { background: var(--red-dark); }
.invite-copied { font-size: 12px; color: var(--green); font-weight: 500; margin-bottom: 16px; }

.share-btns { display: flex; gap: 8px; margin-top: 12px; }
.share-btn { flex: 1; padding: 9px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; text-align: center; text-decoration: none; border: 1px solid var(--border); color: var(--grey-600); transition: all 0.15s; display: block; background: var(--dark-mid); }
.share-btn:hover { border-color: var(--grey-700); color: var(--grey-200); }

/* ── Settings ── */
.settings-sections { display: flex; flex-direction: column; gap: 12px; }
.settings-card { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.settings-card-title { font-size: 10px; font-weight: 600; color: var(--grey-700); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.field-hint { font-size: 11px; color: var(--red); margin-top: 5px; }
.save-confirm { font-size: 12px; color: var(--green); font-weight: 500; margin-top: 10px; }
.save-error   { font-size: 12px; color: var(--red); margin-top: 10px; }

.partner-info { display: flex; align-items: center; gap: 14px; }
.partner-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red-dim); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 500; flex-shrink: 0; border: 1px solid rgba(224,32,32,0.2); }
.partner-name  { font-size: 14px; font-weight: 500; color: var(--white); }
.partner-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.connected-badge { margin-left: auto; font-size: 10px; font-weight: 700; background: var(--green-dim); color: var(--green); padding: 4px 10px; border-radius: var(--radius-sm); white-space: nowrap; letter-spacing: 0.5px; text-transform: uppercase; }

.account-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--dark-card); }
.account-row:last-child { border-bottom: none; }
.account-label { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.8px; }
.account-value { font-size: 14px; font-weight: 500; color: var(--grey-200); }

/* ── Mobile nav ── */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; border-radius: var(--radius-sm); }
.mobile-menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--grey-400); border-radius: 2px; transition: all 0.2s; }
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-drawer { position: fixed; top: 56px; left: 0; right: 0; bottom: 0; background: var(--black); z-index: 99; display: flex; flex-direction: column; padding: 8px 0; overflow-y: auto; border-top: 1px solid var(--border); }
.drawer-link { display: flex; align-items: center; gap: 14px; padding: 14px 24px; font-size: 15px; color: var(--grey-400); text-decoration: none; transition: all 0.15s; letter-spacing: 0.2px; }
.drawer-link svg { width: 18px; height: 18px; stroke: var(--grey-400); fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.drawer-link:hover { background: var(--dark-mid); color: var(--white); }
.drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }
.drawer-upgrade { color: var(--red) !important; }
.drawer-upgrade svg { stroke: var(--red) !important; }
.drawer-signout { color: var(--grey-700) !important; font-size: 13px; margin-top: auto; }

.mobile-tabs { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--black); border-top: 1px solid var(--border); padding: 8px 0 max(8px, env(safe-area-inset-bottom)); z-index: 90; }
.mobile-tab-bar { display: flex; justify-content: space-around; align-items: center; }
.mobile-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 12px; text-decoration: none; color: var(--grey-200); font-size: 9px; font-weight: 500; border-radius: var(--radius-sm); transition: color 0.15s; text-transform: uppercase; letter-spacing: 0.5px; }
.mobile-tab svg { width: 20px; height: 20px; stroke: var(--grey-200); fill: none; stroke-width: 2; stroke-linecap: round; }
.mobile-tab.active { color: var(--red); }
.mobile-tab.active svg { stroke: var(--red); }

/* ── Pricing ── */
.pricing-page { max-width: 680px; margin: 0 auto; padding: 60px 24px 100px; text-align: center; }
.pricing-header { margin-bottom: 48px; }
.pricing-header h1 { font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 3px; color: var(--white); margin-bottom: 12px; }
.pricing-header p { font-size: 15px; color: var(--text-muted); }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.pricing-card { background: var(--black); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; text-align: left; }
.pricing-card.featured { border-color: var(--red); }
.pricing-card-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--grey-700); margin-bottom: 12px; }
.pricing-card.featured .pricing-card-label { color: var(--red); }
.pricing-price { font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 2px; color: var(--white); line-height: 1; margin-bottom: 2px; }
.pricing-price span { font-size: 16px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; letter-spacing: 0; }
.pricing-period { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.pricing-features li { font-size: 13px; color: var(--text-mid); padding-left: 18px; position: relative; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; font-size: 11px; top: 1px; }
.pricing-features li.muted-feature { color: var(--grey-700); }
.pricing-features li.muted-feature::before { content: '—'; color: var(--grey-800); }

/* ── Error pages ── */
.error-page { min-height: calc(100vh - 56px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.error-emoji { font-family: 'Bebas Neue', sans-serif; font-size: 96px; letter-spacing: 4px; color: var(--red); line-height: 1; margin-bottom: 20px; }
.error-title { font-family: 'Bebas Neue', sans-serif; font-size: 40px; letter-spacing: 2px; color: var(--white); margin-bottom: 12px; }
.error-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }

/* ── Utilities ── */
.hidden { display: none !important; }
.desktop-nav { display: flex; }

/* ── Responsive ── */
@media (max-width: 680px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-tabs { display: block; }
  .page { padding-bottom: 100px; }
  .pricing-cards { grid-template-columns: 1fr; }
  .onboarding-card { padding: 32px 22px; }
  .settings-card { padding: 18px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-features { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; gap: 12px; }
  .week-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .guide-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav { padding: 0 16px; }
}
@media (max-width: 400px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* ── Guide action items ── */
.action-item {
  display: flex; flex-direction: column; gap: 8px;
}
.action-item-text { line-height: 1.6; }
.action-item-btn {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-size: 11px; font-weight: 600; color: var(--red);
  background: var(--red-dim); border: 1px solid rgba(224,32,32,0.2);
  padding: 4px 10px; border-radius: var(--radius-sm);
  text-decoration: none; white-space: nowrap;
  letter-spacing: 0.3px; transition: all 0.15s;
}
.action-item-btn:hover { background: var(--red); color: var(--white); }

/* ── Google button + divider ── */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 10px 18px;
  background: var(--dark-mid); color: var(--grey-200);
  font-size: 14px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-decoration: none; transition: all 0.15s; cursor: pointer;
  margin-bottom: 16px;
}
.btn-google:hover { border-color: var(--grey-600); color: var(--white); background: var(--dark-card); }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; color: var(--grey-700); font-size: 12px;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
