/* ============================================================
   DAHLIA LEDGER v2 — Editorial Luxury · Light Canvas
   ============================================================ */

:root {
  --ivory:        #F7F0E6;
  --ivory-warm:   #FBF6EE;
  --ivory-bright: #FFFAF1;
  --charcoal:     #17110F;
  --espresso:     #241512;
  --espresso-2:   #341C18;
  --espresso-deep:#1B0F0D;
  --dahlia:       #8B1E2D;
  --dahlia-deep:  #6E1622;
  --dahlia-glow:  rgba(139, 30, 45, 0.10);
  --gold:         #B78A35;
  --gold-soft:    #C9A050;
  --gold-line:    rgba(183, 138, 53, 0.4);
  --gold-faint:   rgba(183, 138, 53, 0.18);
  --stone:        #E6DED3;
  --stone-mid:    #D2C7B6;
  --stone-deep:   #8B7E6B;
  --sage:         #5C6F4F;

  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --tracking-eyebrow: 0.18em;

  --shadow-soft: 0 1px 2px rgba(23, 17, 15, 0.04), 0 6px 18px rgba(23, 17, 15, 0.05);
  --shadow-card: 0 1px 3px rgba(23, 17, 15, 0.05), 0 12px 32px rgba(23, 17, 15, 0.08);
  --shadow-lift: 0 2px 6px rgba(23, 17, 15, 0.07), 0 28px 60px rgba(23, 17, 15, 0.14);

  --maxw: 480px;
  --pad: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  background-image:
    radial-gradient(at 0% 0%, rgba(183, 138, 53, 0.06) 0%, transparent 35%),
    radial-gradient(at 100% 100%, rgba(139, 30, 45, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; cursor: pointer; }

.ico-line { width: 100%; height: 100%; color: currentColor; }

/* ============================================================
   SCREEN MANAGEMENT
   ============================================================ */
.screen { display: none; }
.screen.active { display: block; }

.app-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--ivory);
  position: relative;
  padding-bottom: 110px;
  box-shadow: 0 0 80px rgba(23, 17, 15, 0.06);
}

.page {
  padding: 26px var(--pad) 24px;
  animation: fadeUp 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--charcoal);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: 10px;
  font-weight: 600;
  color: var(--stone-deep);
}
.eyebrow-gold { color: var(--gold); }
.eyebrow.gold { color: var(--gold-soft); }

em { font-style: italic; color: var(--dahlia); font-weight: 400; }
.muted { color: var(--stone-deep); }
.savings { color: var(--sage) !important; }
.alert { color: var(--dahlia) !important; }
.light { color: var(--ivory) !important; }
.center { text-align: center; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.page-title {
  font-size: 28px;
  font-family: var(--font-serif);
  color: var(--charcoal);
  margin-top: 4px;
}
.page-title em { font-style: italic; color: var(--dahlia); }

.page-intro {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--stone-deep);
  margin-bottom: 22px;
  font-size: 15px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ivory-warm);
  border: 1px solid var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  transition: all 0.2s;
  flex-shrink: 0;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--gold); color: var(--dahlia); }
.icon-btn.back { background: transparent; border-color: var(--stone-mid); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--dahlia);
  color: var(--ivory);
  box-shadow: 0 4px 14px rgba(139, 30, 45, 0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover { background: var(--dahlia-deep); }

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 4px 14px rgba(183, 138, 53, 0.25);
  font-weight: 600;
}
.btn-gold:hover { background: #A47A2C; }

.btn-ivory {
  background: var(--ivory);
  color: var(--charcoal);
  font-weight: 600;
}
.btn-ivory:hover { background: var(--ivory-bright); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--stone-mid);
}
.btn-ghost:hover { background: var(--ivory-warm); border-color: var(--gold); }

.btn-paywall-ghost {
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid rgba(183, 138, 53, 0.3);
}
.btn-paywall-ghost:hover { background: rgba(183, 138, 53, 0.06); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 28px; font-size: 15px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--ivory-bright);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(23, 17, 15, 0.04);
  position: relative;
}

.card-tight { padding: 18px; }

.section { margin-top: 26px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.section-head h3 {
  font-size: 19px;
  font-family: var(--font-serif);
  color: var(--charcoal);
}
.section-link {
  font-size: 12px;
  color: var(--dahlia);
  letter-spacing: 0.02em;
  font-weight: 500;
  font-family: var(--font-sans);
}

/* ============================================================
   TRIAL BANNER (sticky-ish, top of every screen with shell)
   ============================================================ */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--gold-faint);
}
.trial-banner.cool {
  background: rgba(183, 138, 53, 0.08);
  color: var(--gold);
}
.trial-banner.warm {
  background: rgba(183, 138, 53, 0.16);
  color: var(--charcoal);
  border-bottom-color: var(--gold-line);
}
.trial-banner.urgent {
  background: var(--dahlia);
  color: var(--ivory);
  border-bottom-color: var(--dahlia-deep);
}
.trial-banner-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
}
.trial-banner.urgent .trial-banner-text { font-style: normal; font-weight: 600; font-family: var(--font-sans); }
.trial-banner-cta {
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: inherit;
  border: 1px solid currentColor;
  flex-shrink: 0;
}
.trial-banner.cool .trial-banner-cta { background: transparent; border-color: var(--gold-line); }
.trial-banner.urgent .trial-banner-cta { background: var(--ivory); color: var(--dahlia); border-color: var(--ivory); }

/* ============================================================
   HERO EARNINGS CARD
   ============================================================ */
.hero-card {
  background: linear-gradient(160deg, var(--ivory-bright) 0%, var(--ivory-warm) 100%);
  border-radius: 26px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(183, 138, 53, 0.18);
  position: relative;
  overflow: hidden;
}

.hero-corner-bloom {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 90px;
  height: 90px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-amount {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  line-height: 1;
  margin-top: 10px;
}

.hero-cap {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--stone-deep);
  font-size: 14px;
  margin-top: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--gold-faint);
}
.hero-grid-cell .micro-label { margin-bottom: 6px; }
.hero-divider { background: var(--gold-faint); width: 1px; height: 100%; }

.hero-card-light {
  text-align: center;
  padding: 28px 22px;
}
.hero-card-light .hero-amount { font-size: 42px; margin-top: 6px; }
.hero-card-light .micro-cap { margin-top: 8px; }

/* MICRO / MED / BIG NUMS */
.micro-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: 10px;
  font-weight: 600;
  color: var(--stone-deep);
}
.micro-label.gold { color: var(--gold-soft); }

.micro-val {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--charcoal);
  margin-top: 4px;
}

.micro-cap {
  font-size: 12px;
  color: var(--stone-deep);
  margin-top: 4px;
  font-family: var(--font-serif);
  font-style: italic;
}

.med-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--charcoal);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.big-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-top: 4px;
}

/* "What you owe so far" mini chart */
.row-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.line-chart-mini {
  width: 100px;
  height: 50px;
  background: linear-gradient(180deg, rgba(139, 30, 45, 0.08) 0%, transparent 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.line-chart-mini::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none'><polyline points='0,40 12,32 24,35 36,22 48,28 60,18 72,22 84,12 100,16' fill='none' stroke='%238B1E2D' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'/></svg>") no-repeat center / contain;
}

/* ============================================================
   DUAL ROW
   ============================================================ */
.dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.card-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 30, 45, 0.08);
  color: var(--dahlia);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.card-icon-wrap svg { width: 18px; height: 18px; }

.progress-track {
  margin-top: 10px;
  height: 4px;
  background: var(--stone);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold) 0%, var(--dahlia) 100%);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ============================================================
   TAX PROFILE PROMPT (on Home, when incomplete)
   ============================================================ */
.tp-prompt {
  background: linear-gradient(135deg, rgba(139, 30, 45, 0.08) 0%, rgba(183, 138, 53, 0.10) 100%);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  position: relative;
}
.tp-prompt-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dahlia);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
}
.tp-prompt-body { flex: 1; }
.tp-prompt-h {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.tp-prompt-p {
  font-size: 12px;
  color: var(--stone-deep);
  font-family: var(--font-serif);
  font-style: italic;
}
.tp-prompt-cta {
  font-size: 11px;
  font-weight: 600;
  color: var(--dahlia);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ============================================================
   ACTION GRID
   ============================================================ */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  background: var(--ivory-bright);
  border: 1px solid var(--stone);
  border-radius: 16px;
  text-align: left;
  transition: all 0.2s;
}
.action-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(139, 30, 45, 0.08);
  color: var(--dahlia);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-icon svg { width: 18px; height: 18px; }
.action-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

/* ============================================================
   30% RULE SAVINGS CARD
   ============================================================ */
.card-savings {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, var(--ivory-bright) 0%, #FBF1E1 100%);
  border: 1px solid var(--gold-faint);
  padding: 22px;
}

.card-savings-h {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--charcoal);
  margin-top: 6px;
}

.card-savings-amt {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--dahlia);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 8px;
  line-height: 1;
}

.card-savings-cap {
  font-size: 12px;
  color: var(--stone-deep);
  margin-top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.5;
  max-width: 220px;
}

.dial { width: 80px; height: 80px; }

/* ============================================================
   PREMIUM CARD (dark espresso)
   ============================================================ */
.card-premium {
  background:
    radial-gradient(circle at 80% 0%, rgba(183, 138, 53, 0.18) 0%, transparent 50%),
    linear-gradient(160deg, var(--espresso-2) 0%, var(--espresso) 50%, var(--espresso-deep) 100%);
  color: var(--ivory);
  padding: 28px 24px;
  border-radius: 22px;
  border: 1px solid rgba(183, 138, 53, 0.22);
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line) 30%, var(--gold-line) 70%, transparent);
}

.card-premium-mark {
  position: absolute;
  top: 22px;
  right: 22px;
  opacity: 0.7;
}

.card-premium-h {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ivory);
  margin: 8px 0 10px;
  line-height: 1.2;
}
.card-premium-h em { font-style: italic; color: var(--gold-soft); font-weight: 400; }

.card-premium-p {
  font-size: 13px;
  color: rgba(247, 240, 230, 0.7);
  line-height: 1.55;
  margin-bottom: 18px;
}

/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
  margin-top: 0;
  padding: 26px 22px;
}

.form-h {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--charcoal);
  margin: 8px 0 22px;
  line-height: 1.2;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--stone-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.field label .optional {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  font-weight: 400;
  font-family: var(--font-serif);
  color: var(--stone-mid);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 12px;
  font-size: 15px;
  color: var(--charcoal);
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 5l3 3 3-3' fill='none' stroke='%238B7E6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 138, 53, 0.12);
}

.field textarea { resize: vertical; min-height: 60px; font-family: var(--font-sans); }

.input-prefix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix span {
  position: absolute;
  left: 16px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--stone-deep);
  pointer-events: none;
}
.input-prefix input { padding-left: 32px; font-family: var(--font-serif); font-size: 17px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Checkbox */
.field-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 16px;
}
.field-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--dahlia);
}
.field-check label {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 14px;
  color: var(--charcoal);
}

/* File attach */
.file-attach {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--ivory);
  border: 1px dashed var(--stone-mid);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.file-attach:hover { border-color: var(--gold); background: var(--ivory-warm); }
.file-attach input[type="file"] { display: none; }
.file-attach-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--charcoal);
  font-weight: 500;
}
.file-attach-label svg {
  width: 18px;
  height: 18px;
  color: var(--dahlia);
}
.file-attach-status {
  font-size: 11px;
  color: var(--sage);
  font-family: var(--font-serif);
  font-style: italic;
}

/* ============================================================
   "JUST EARNED" success banner
   ============================================================ */
.just-earned {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(139, 30, 45, 0.06) 0%, rgba(183, 138, 53, 0.06) 100%);
  border: 1px solid rgba(139, 30, 45, 0.18);
  border-left: 3px solid var(--dahlia);
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  animation: fadeUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.je-mark { flex-shrink: 0; width: 32px; height: 32px; }
.je-mark svg { width: 100%; height: 100%; }
.je-line {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--charcoal);
}
.je-line strong { color: var(--dahlia); font-weight: 500; }
.je-sub {
  font-size: 12px;
  color: var(--stone-deep);
  margin-top: 2px;
}
.je-sub strong { color: var(--gold); font-weight: 600; font-family: var(--font-serif); }

/* ============================================================
   ENTRY LIST
   ============================================================ */
.entry-list { display: flex; flex-direction: column; gap: 8px; }

.entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--ivory-bright);
  border: 1px solid var(--stone);
  border-radius: 14px;
  transition: transform 0.15s, border-color 0.15s;
}
.entry:hover { border-color: var(--gold-line); }

.entry-left { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.entry-title {
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.entry-meta {
  font-size: 11px;
  color: var(--stone-deep);
  letter-spacing: 0.03em;
  font-family: var(--font-serif);
  font-style: italic;
}

.entry-right { display: flex; align-items: center; gap: 8px; }
.entry-amt {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
}
.entry-amt.income { color: var(--sage); }
.entry-amt.expense { color: var(--dahlia); }
.entry-amt.miles { color: var(--gold); }

.entry-del {
  font-size: 14px;
  color: var(--stone-mid);
  padding: 4px 6px;
  border-radius: 6px;
}
.entry-del:hover { color: var(--dahlia); background: var(--dahlia-glow); }

.empty-list {
  text-align: center;
  padding: 32px 16px;
  border: 1px dashed var(--stone-mid);
  border-radius: 14px;
  color: var(--stone-deep);
  font-family: var(--font-serif);
  font-style: italic;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-tag {
  font-size: 11px;
  color: var(--gold);
  background: var(--gold-faint);
  padding: 2px 6px;
  border-radius: 4px;
}
.recurring-tag {
  font-size: 10px;
  color: var(--gold);
  background: var(--gold-faint);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   SUB-TAB SWITCHER (Income: Gig vs W-2)
   ============================================================ */
.subtabs {
  display: flex;
  gap: 6px;
  background: var(--stone);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}
.subtab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--stone-deep);
  transition: all 0.2s;
  cursor: pointer;
  font-family: var(--font-sans);
}
.subtab.active {
  background: var(--ivory);
  color: var(--dahlia);
  box-shadow: var(--shadow-soft);
}
.subtab-pane { display: none; animation: fadeIn 0.3s ease both; }
.subtab-pane.active { display: block; }

/* ============================================================
   W-2 GUIDED FORM (shows visual W-2 layout)
   ============================================================ */
.w2-visual {
  background: #FFFFFF;
  border: 2px solid var(--charcoal);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 22px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.w2-visual::before {
  content: 'FORM W-2 — Sample Layout';
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--ivory);
  padding: 0 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone-deep);
  font-weight: 600;
}
.w2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.w2-box {
  border: 1px solid #999;
  padding: 8px 10px;
  background: #FAF8F4;
  border-radius: 3px;
  position: relative;
}
.w2-box-num {
  font-size: 9px;
  color: #555;
  margin-bottom: 4px;
  font-weight: bold;
}
.w2-box-name {
  font-size: 10px;
  color: var(--charcoal);
  line-height: 1.3;
}
.w2-box.highlight {
  border-color: var(--dahlia);
  background: rgba(139, 30, 45, 0.04);
  box-shadow: 0 0 0 2px rgba(139, 30, 45, 0.12);
}
.w2-box.highlight .w2-box-num { color: var(--dahlia); }
.w2-arrow {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dahlia);
  font-size: 14px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.w2-helper {
  background: rgba(183, 138, 53, 0.08);
  border-left: 2px solid var(--gold);
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.5;
}

/* ============================================================
   TAXES PAGE
   ============================================================ */
.tax-hero {
  text-align: center;
  padding: 28px 24px;
  margin-bottom: 6px;
}

.tax-hero-amt {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 8px 0 18px;
}

.tax-hero-divider {
  height: 1px;
  background: rgba(183, 138, 53, 0.25);
  margin: 0 auto 18px;
  width: 70%;
}

.tax-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--stone);
}
.ledger-row:last-child { border-bottom: none; }

.ledger-label {
  font-size: 13px;
  color: var(--charcoal);
  font-weight: 500;
}
.ledger-label small {
  display: block;
  font-size: 11px;
  color: var(--stone-deep);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  margin-top: 2px;
}

.ledger-val {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--charcoal);
  font-weight: 500;
}
.ledger-val.minus { color: var(--sage); }
.ledger-val.alert { color: var(--dahlia); }
.ledger-val.savings { color: var(--sage); }

.ledger-row.strong .ledger-val,
.ledger-row.strong .ledger-label {
  font-weight: 600;
  color: var(--charcoal);
}
.ledger-row.strong .ledger-val { font-size: 19px; }
.ledger-row.strong {
  background: rgba(183, 138, 53, 0.04);
  padding-left: 12px; padding-right: 12px;
  border-radius: 8px;
  border-bottom: 1px solid var(--gold-faint);
  margin: 4px 0;
}

.ledger-row.alert-row {
  background: rgba(139, 30, 45, 0.04);
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid rgba(139, 30, 45, 0.14);
  margin-top: 8px;
}
.ledger-row.savings-row {
  background: rgba(92, 111, 79, 0.06);
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid rgba(92, 111, 79, 0.18);
  margin-top: 4px;
}

.hairline {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line) 20%, var(--gold-line) 80%, transparent);
  margin: 18px 0;
  border: none;
}

.callout {
  background: linear-gradient(135deg, rgba(139, 30, 45, 0.05) 0%, rgba(183, 138, 53, 0.05) 100%);
  border-left: 2px solid var(--gold);
  padding: 18px 20px;
  border-radius: 0 14px 14px 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 24px;
  text-align: center;
}

/* Locked tax view */
.tax-locked-card {
  background:
    radial-gradient(circle at 80% 0%, rgba(183, 138, 53, 0.18) 0%, transparent 50%),
    linear-gradient(160deg, var(--espresso-2) 0%, var(--espresso) 50%, var(--espresso-deep) 100%);
  color: var(--ivory);
  padding: 36px 28px;
  border-radius: 22px;
  border: 1px solid rgba(183, 138, 53, 0.22);
  box-shadow: var(--shadow-lift);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tax-locked-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--gold-soft);
}
.tax-locked-amt {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--ivory);
  font-weight: 500;
  margin: 16px 0 8px;
}
.tax-locked-msg {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(247, 240, 230, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 24px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   TOOLS
   ============================================================ */
.tool-list { display: flex; flex-direction: column; gap: 10px; }

.tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--ivory-bright);
  border: 1px solid var(--stone);
  border-radius: 16px;
  text-align: left;
  transition: all 0.2s;
  width: 100%;
}
.tool-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.tool-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 30, 45, 0.08);
  color: var(--dahlia);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-icon svg { width: 20px; height: 20px; }

.tool-body { flex: 1; min-width: 0; }
.tool-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--charcoal);
  margin-bottom: 3px;
  font-weight: 500;
}
.tool-desc {
  font-size: 12px;
  color: var(--stone-deep);
  line-height: 1.45;
}

.tool-arrow {
  color: var(--stone-mid);
  font-family: var(--font-serif);
  font-size: 18px;
}

/* ============================================================
   YEAR-END SUMMARY (premium feature)
   ============================================================ */
.ye-cover {
  background: linear-gradient(135deg, var(--ivory-bright) 0%, var(--ivory-warm) 100%);
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.ye-cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--dahlia), var(--gold));
}
.ye-cover-eyebrow {
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.ye-cover-h {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.ye-cover-h em { font-style: italic; color: var(--dahlia); }
.ye-cover-sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--stone-deep);
  font-size: 14px;
}

.ye-section { margin-top: 22px; }
.ye-section-h {
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-faint);
}

.ye-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ye-info-cell {
  padding: 10px 12px;
  background: var(--ivory-bright);
  border: 1px solid var(--stone);
  border-radius: 10px;
}
.ye-info-cell .micro-label { margin-bottom: 4px; }
.ye-info-cell .ye-info-val {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 500;
}

.ye-line-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--stone);
}
.ye-line-row:last-child { border-bottom: none; }
.ye-line-row span:first-child { color: var(--charcoal); }
.ye-line-row span:last-child {
  font-family: var(--font-serif);
  color: var(--charcoal);
  font-weight: 500;
}
.ye-line-row.muted { font-style: italic; color: var(--stone-mid); }
.ye-line-row.total {
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--gold-line);
  border-bottom: none;
  font-weight: 600;
}
.ye-line-row.total span:first-child { color: var(--charcoal); font-weight: 600; }
.ye-line-row.total span:last-child { font-size: 16px; color: var(--charcoal); }
.ye-line-row.alert span:last-child { color: var(--dahlia); }

.ye-cta-card {
  background:
    radial-gradient(circle at 80% 0%, rgba(183, 138, 53, 0.18) 0%, transparent 50%),
    linear-gradient(160deg, var(--espresso-2) 0%, var(--espresso) 50%, var(--espresso-deep) 100%);
  color: var(--ivory);
  padding: 28px 24px;
  border-radius: 22px;
  margin-top: 24px;
  border: 1px solid rgba(183, 138, 53, 0.22);
  text-align: center;
}
.ye-cta-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ivory);
  margin-bottom: 8px;
}
.ye-cta-card h3 em { font-style: italic; color: var(--gold-soft); }
.ye-cta-card p {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(247, 240, 230, 0.7);
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.55;
}
.ye-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   SETTINGS / PROFILE
   ============================================================ */
.profile-block {
  text-align: center;
  padding: 16px 0 28px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dahlia) 0%, var(--gold) 100%);
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--charcoal);
}

.profile-meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--stone-deep);
  margin-top: 2px;
}

.profile-tier {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  background: rgba(183, 138, 53, 0.12);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.profile-tier.pro {
  background: var(--dahlia);
  border-color: var(--dahlia);
  color: var(--ivory);
}

.settings-group { margin-bottom: 22px; }
.settings-group-h {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--stone-deep);
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 6px;
}

.settings-list {
  background: var(--ivory-bright);
  border: 1px solid var(--stone);
  border-radius: 14px;
  overflow: hidden;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--charcoal);
  cursor: pointer;
  border-bottom: 1px solid var(--stone);
  transition: background 0.15s;
}
.settings-row:last-child { border-bottom: none; }
.settings-row:hover { background: var(--ivory-warm); }
.settings-row.danger { color: var(--dahlia); }
.settings-r {
  color: var(--stone-deep);
  font-size: 13px;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.toggle input { display: none; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--stone);
  border-radius: 999px;
  transition: 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
  background: var(--ivory-bright);
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.toggle input:checked + .toggle-slider { background: var(--dahlia); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }

/* Referral card */
.referral-card {
  background: linear-gradient(135deg, var(--ivory-bright) 0%, #FBF1E1 100%);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
}
.referral-code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ivory);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 14px 0;
  border: 1px dashed var(--gold-line);
}
.referral-code-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--dahlia);
}
.referral-code-copy {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-weight: 600;
  color: var(--gold);
}
.referral-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.referral-stat {
  text-align: center;
  padding: 12px;
  background: var(--ivory-bright);
  border-radius: 10px;
}
.referral-stat-num {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--charcoal);
  font-weight: 500;
}
.referral-stat-label {
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--stone-deep);
  font-weight: 600;
  margin-top: 2px;
}

/* ============================================================
   TAB BAR
   ============================================================ */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--maxw);
  background: rgba(247, 240, 230, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--gold-faint);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px 6px 24px;
  z-index: 50;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-deep);
  font-weight: 600;
  font-family: var(--font-sans);
  transition: color 0.2s;
  position: relative;
}

.tab-ico { width: 22px; height: 22px; }

.tab.active { color: var(--dahlia); }
.tab.active::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dahlia-glow);
  z-index: -1;
}

.tab-center .tab-center-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dahlia) 0%, var(--dahlia-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  margin-bottom: 2px;
  box-shadow: 0 6px 18px rgba(139, 30, 45, 0.3);
}
.tab-center { color: var(--charcoal) !important; }
.tab-center.active::after { display: none; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing {
  min-height: 100vh;
  background: var(--ivory);
  padding: 50px 28px 32px;
  position: relative;
  overflow: hidden;
}

.landing::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(139, 30, 45, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.landing::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(183, 138, 53, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.landing-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.landing-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

.dahlia-bloom {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(139, 30, 45, 0.18));
}

.rd-mono {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}
.rd-mono .rd-dot {
  font-style: normal;
  letter-spacing: 0;
  margin: 0 2px;
  color: var(--gold);
}

.landing-wordmark { margin-bottom: 14px; }
.wordmark-name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  text-transform: uppercase;
  font-weight: 500;
}
.wordmark-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
  font-weight: 600;
}

.landing-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px auto 28px;
  max-width: 200px;
}
.landing-divider span {
  flex: 1;
  height: 1px;
  background: var(--gold-faint);
}

.landing-h1 {
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1.05;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.landing-h1 em {
  font-style: italic;
  color: var(--dahlia);
  font-weight: 500;
}

.landing-sub {
  font-size: 15px;
  color: var(--stone-deep);
  line-height: 1.65;
  margin: 0 auto 36px;
  max-width: 340px;
  font-family: var(--font-serif);
  font-style: italic;
}

.landing-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 32px;
  padding: 22px 8px;
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-deep);
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}
.trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.landing-foot {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-deep);
  margin-top: 28px;
  font-weight: 500;
}

/* ============================================================
   SIGNUP / ONBOARDING SCREENS
   ============================================================ */
.onb {
  min-height: 100vh;
  background: var(--ivory);
  padding: 30px 24px;
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
}

.onb-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
  padding: 0 4px;
}
.onb-progress-step {
  flex: 1;
  height: 3px;
  background: var(--stone);
  border-radius: 2px;
}
.onb-progress-step.done {
  background: var(--dahlia);
}
.onb-progress-step.active {
  background: linear-gradient(to right, var(--dahlia) 50%, var(--stone) 50%);
}

.onb-step-eyebrow {
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.onb-h {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.onb-h em { font-style: italic; color: var(--dahlia); }

.onb-p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--stone-deep);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.onb-state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.onb-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--ivory-bright);
  border: 1px solid var(--stone);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.onb-option:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.onb-option-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
}
.onb-option-tag {
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}
.onb-option-tag.warn { color: var(--gold); }

.onb-option-large {
  display: block;
  padding: 18px 20px;
  margin-bottom: 10px;
}
.onb-option-large-h {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--charcoal);
  margin-bottom: 4px;
  font-weight: 500;
}
.onb-option-large-p {
  font-size: 12px;
  color: var(--stone-deep);
  font-family: var(--font-serif);
  font-style: italic;
}

.onb-skip-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--stone-deep);
  letter-spacing: 0.04em;
}
.onb-skip-link:hover { color: var(--dahlia); }

/* ============================================================
   PAYWALL
   ============================================================ */
.paywall {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(183, 138, 53, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(139, 30, 45, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--espresso) 0%, var(--espresso-deep) 100%);
  color: var(--ivory);
  padding: 44px 26px 32px;
  position: relative;
  overflow: hidden;
}

.paywall::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.55 0 0 0 0 0.21 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  pointer-events: none;
  opacity: 0.5;
}

.paywall > * { position: relative; z-index: 1; }

.paywall-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(247, 240, 230, 0.08);
  border: 1px solid rgba(183, 138, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.paywall-close:hover { background: rgba(247, 240, 230, 0.12); }

.paywall-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
  margin-top: 8px;
}
.paywall-mark .dahlia-bloom {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 16px rgba(139, 30, 45, 0.4));
}

.paywall-eyebrow {
  text-align: center;
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 14px;
}

.paywall-h {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.1;
  text-align: center;
  margin: 0 auto 14px;
  color: var(--ivory);
  letter-spacing: -0.02em;
  max-width: 360px;
}
.paywall-h em { font-style: italic; color: var(--gold-soft); font-weight: 400; }

.paywall-sub {
  text-align: center;
  font-size: 14px;
  color: rgba(247, 240, 230, 0.7);
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 320px;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Plan toggle */
.plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}
.plan-card {
  background: rgba(247, 240, 230, 0.04);
  border: 1px solid rgba(183, 138, 53, 0.2);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}
.plan-card:hover { border-color: var(--gold); }
.plan-card.featured {
  border-color: var(--gold);
  background: rgba(183, 138, 53, 0.08);
}
.plan-card.featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--charcoal);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-card-label {
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 8px;
}
.plan-card-price {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--ivory);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan-card-price .dollar {
  font-size: 18px;
  vertical-align: super;
  color: var(--gold-soft);
}
.plan-card-period {
  font-size: 11px;
  color: rgba(247, 240, 230, 0.6);
  margin-top: 4px;
  font-family: var(--font-sans);
}
.plan-card-savings {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
}

.paywall-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 22px 0;
  padding: 22px 20px;
  background: rgba(247, 240, 230, 0.04);
  border: 1px solid rgba(183, 138, 53, 0.18);
  border-radius: 18px;
}

.benefit { display: flex; align-items: flex-start; gap: 14px; }

.benefit-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--gold-soft);
  font-style: italic;
  margin-top: 1px;
  letter-spacing: 0.05em;
}

.benefit-name { font-weight: 600; font-size: 14px; color: var(--ivory); }
.benefit-desc {
  font-size: 12px;
  color: rgba(247, 240, 230, 0.6);
  margin-top: 3px;
  line-height: 1.5;
  font-family: var(--font-serif);
}

.paywall-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.paywall-trust {
  text-align: center;
  font-size: 11px;
  color: rgba(247, 240, 230, 0.6);
  letter-spacing: 0.06em;
  margin-top: 22px;
  font-weight: 500;
}

.paywall-foot {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(183, 138, 53, 0.5);
  margin-top: 18px;
  font-weight: 500;
}

/* ============================================================
   FOOTER BRAND BLOCK
   ============================================================ */
.brand-foot {
  text-align: center;
  padding: 32px 16px 16px;
  margin-top: 8px;
  border-top: 1px solid var(--gold-faint);
}

.brand-foot-mark {
  display: inline-block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  line-height: 36px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.brand-foot strong {
  display: block;
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.brand-foot small {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  color: var(--stone-deep);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--ivory);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 200;
  box-shadow: var(--shadow-lift);
  animation: toastIn 0.3s ease both;
  border: 1px solid var(--gold-line);
  font-family: var(--font-serif);
  font-style: italic;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
