  /* ---------- Design Tokens ---------- */
  :root {
    --ink: #0F1B17;
    --ink-soft: #2A3530;
    --paper: #F6F1E7;
    --paper-warm: #EFE7D6;
    --cream: #FBF7EE;
    --emerald: #114B3F;
    --emerald-deep: #0A2E26;
    --emerald-bright: #1C7A66;
    --gold: #C8A55C;
    --gold-soft: #E0C68A;
    --rust: #B05826;
    --line: rgba(15, 27, 23, 0.12);
    --line-soft: rgba(15, 27, 23, 0.06);

    --display: 'Fraunces', 'Times New Roman', serif;
    --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15,27,23,0.04), 0 1px 3px rgba(15,27,23,0.06);
    --shadow-md: 0 4px 12px rgba(15,27,23,0.08), 0 2px 4px rgba(15,27,23,0.04);
    --shadow-lg: 0 24px 48px rgba(15,27,23,0.12), 0 8px 16px rgba(15,27,23,0.06);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  ::selection { background: var(--emerald); color: var(--cream); }

  /* Subtle grain texture for warmth */
  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
  }

  /* ---------- Layout Shell ---------- */
  .app { position: relative; z-index: 2; min-height: 100vh; }
  .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ---------- Navigation ---------- */
  .nav {
    position: sticky; top: 0;
    background: rgba(246, 241, 231, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--line-soft);
    z-index: 50;
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 32px;
    max-width: 1240px; margin: 0 auto;
  }
  .logo {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
  }
  .logo-mark {
    width: 28px; height: 28px;
    background: var(--emerald);
    border-radius: 50%;
    position: relative;
    display: flex; align-items: center; justify-content: center;
  }
  .logo-mark::after {
    content: ''; width: 10px; height: 10px;
    background: var(--gold); border-radius: 50%;
  }
  .nav-links {
    display: flex; gap: 4px; align-items: center;
    list-style: none;
  }
  .nav-link {
    font-size: 14px; font-weight: 500;
    color: var(--ink-soft); text-decoration: none;
    padding: 8px 16px; border-radius: var(--radius-pill);
    transition: all 0.2s var(--ease);
    cursor: pointer; background: none; border: none; font-family: inherit;
  }
  .nav-link:hover { background: var(--line-soft); color: var(--ink); }
  .nav-link.active { background: var(--ink); color: var(--cream); }
  .nav-cta {
    display: flex; gap: 10px; align-items: center;
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius-pill);
    font-family: var(--body); font-size: 14px; font-weight: 500;
    border: none; cursor: pointer;
    transition: all 0.25s var(--ease);
    text-decoration: none; white-space: nowrap;
  }
  .btn-primary {
    background: var(--ink); color: var(--cream);
  }
  .btn-primary:hover {
    background: var(--emerald);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  .btn-ghost {
    background: transparent; color: var(--ink);
    border: 1px solid var(--line);
  }
  .btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
  .btn-gold {
    background: var(--gold); color: var(--emerald-deep); font-weight: 600;
  }
  .btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-sm { padding: 8px 16px; font-size: 13px; }

  /* ---------- Pages ---------- */
  .page { display: none; animation: pageIn 0.5s var(--ease-out); }
  .page.active { display: block; }
  @keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ---------- Hero (Landing) ---------- */
  .hero {
    padding: 80px 0 100px;
    position: relative;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--emerald); font-weight: 600;
    margin-bottom: 24px;
  }
  .hero-eyebrow::before {
    content: ''; width: 24px; height: 1px; background: var(--emerald);
  }
  .hero-title {
    font-family: var(--display);
    font-size: clamp(48px, 6.5vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 28px;
  }
  .hero-title em {
    font-style: italic;
    color: var(--emerald);
    font-weight: 300;
  }
  .hero-sub {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.6;
  }
  .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

  /* Hero card visual */
  .hero-visual {
    position: relative;
    aspect-ratio: 4/5;
  }
  .member-card {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 60%, var(--emerald-bright) 100%);
    border-radius: var(--radius-lg);
    padding: 36px;
    color: var(--cream);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(-3deg);
    transition: transform 0.6s var(--ease-out);
  }
  .member-card:hover { transform: rotate(-1deg) translateY(-4px); }
  .member-card::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, var(--gold-soft) 0%, transparent 65%);
    opacity: 0.25;
  }
  .member-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }
  .card-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 60px;
  }
  .card-tier {
    font-family: var(--display); font-size: 14px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--gold);
    font-weight: 500;
  }
  .card-chip {
    width: 44px; height: 32px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    border-radius: 6px;
    position: relative;
  }
  .card-chip::before, .card-chip::after {
    content: ''; position: absolute;
    background: rgba(10,46,38,0.4);
  }
  .card-chip::before {
    top: 8px; left: 6px; right: 6px; height: 1px;
  }
  .card-chip::after {
    top: 16px; left: 6px; right: 6px; height: 1px;
  }
  .card-name {
    font-family: var(--display); font-size: 28px; line-height: 1.1;
    font-weight: 400; margin-bottom: 6px;
  }
  .card-id {
    font-size: 13px; opacity: 0.7; letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 32px;
  }
  .card-points {
    display: flex; align-items: baseline; gap: 8px;
  }
  .card-points-num {
    font-family: var(--display);
    font-size: 56px; font-weight: 300;
    color: var(--gold); line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
  }
  .card-points-label {
    font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
    opacity: 0.7;
  }

  .floating-badge {
    position: absolute;
    background: var(--cream);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    display: flex; align-items: center; gap: 12px;
  }
  .floating-badge.badge-1 {
    top: 8%; right: -8%;
    animation: float 6s ease-in-out infinite;
  }
  .floating-badge.badge-2 {
    bottom: 10%; left: -10%;
    animation: float 6s ease-in-out infinite 2s;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  .badge-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--emerald); color: var(--gold);
    font-size: 16px;
  }
  .badge-icon.gold { background: var(--gold); color: var(--emerald-deep); }

  /* ---------- Stats Strip ---------- */
  .stats {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper-warm);
    padding: 40px 0;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  .stat-num {
    font-family: var(--display);
    font-size: 44px; font-weight: 400;
    line-height: 1; letter-spacing: -0.02em;
    color: var(--emerald);
    margin-bottom: 8px;
  }
  .stat-label {
    font-size: 13px; color: var(--ink-soft);
    letter-spacing: 0.02em;
  }

  /* ---------- Tiers Section ---------- */
  .section { padding: 100px 0; }
  .section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
  }
  .section-eyebrow {
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--emerald); font-weight: 600;
    margin-bottom: 16px;
  }
  .section-title {
    font-family: var(--display);
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 400;
    margin-bottom: 16px;
  }
  .section-title em { font-style: italic; color: var(--emerald); }
  .section-sub {
    font-size: 17px; color: var(--ink-soft);
  }

  .tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .tier {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
  }
  .tier:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald);
  }
  .tier.featured {
    background: var(--emerald-deep);
    color: var(--cream);
    border-color: var(--emerald-deep);
  }
  .tier.featured .tier-name { color: var(--gold); }
  .tier.featured .tier-points,
  .tier.featured .tier-perks li { color: rgba(251,247,238,0.85); }
  .tier-medal {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    font-family: var(--display); font-weight: 500;
    font-size: 18px;
  }
  .tier-medal.bronze { background: linear-gradient(135deg, #C97B4E, #8B4F30); color: white; }
  .tier-medal.silver { background: linear-gradient(135deg, #C7C7C7, #888); color: white; }
  .tier-medal.gold { background: linear-gradient(135deg, var(--gold), #8C6B2A); color: white; }
  .tier-medal.platinum { background: linear-gradient(135deg, #E8E0CC, var(--gold)); color: var(--emerald-deep); }
  .tier-name {
    font-family: var(--display);
    font-size: 24px;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
  }
  .tier-points {
    font-size: 13px; color: var(--ink-soft);
    margin-bottom: 20px;
  }
  .tier-perks {
    list-style: none;
    font-size: 14px;
  }
  .tier-perks li {
    padding: 8px 0;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-soft);
  }
  .tier.featured .tier-perks li { border-color: rgba(251,247,238,0.1); }
  .tier-perks li:first-child { border: none; padding-top: 0; }

  /* ---------- Dashboard ---------- */
  .dashboard {
    padding: 48px 0 80px;
  }
  .dash-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 40px; gap: 24px; flex-wrap: wrap;
  }
  .dash-greeting {
    font-family: var(--display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .dash-greeting em { font-style: italic; color: var(--emerald); }
  .dash-meta {
    font-size: 14px; color: var(--ink-soft); margin-top: 8px;
  }

  .dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }

  .dash-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
  }
  .dash-card-title {
    font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--ink-soft); font-weight: 600;
    margin-bottom: 20px;
  }

  /* Featured points card */
  .points-hero {
    background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
    color: var(--cream);
    position: relative;
    overflow: hidden;
  }
  .points-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--gold-soft) 0%, transparent 60%);
    opacity: 0.15;
    pointer-events: none;
  }
  .points-hero .dash-card-title { color: var(--gold); }
  .points-display {
    display: flex; align-items: baseline; gap: 16px;
    margin-bottom: 32px;
    position: relative; z-index: 1;
  }
  .points-num {
    font-family: var(--display);
    font-size: 88px; font-weight: 300;
    line-height: 1; letter-spacing: -0.04em;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
  }
  .points-trend {
    color: rgba(251,247,238,0.85);
    font-size: 14px;
    display: flex; align-items: center; gap: 6px;
  }
  .trend-arrow {
    color: var(--gold-soft);
    font-weight: 600;
  }

  /* Progress bar */
  .progress-section { position: relative; z-index: 1; }
  .progress-labels {
    display: flex; justify-content: space-between;
    font-size: 13px; margin-bottom: 12px;
    color: rgba(251,247,238,0.85);
  }
  .progress-track {
    height: 8px;
    background: rgba(251,247,238,0.15);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 12px;
  }
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold));
    border-radius: var(--radius-pill);
    width: 68%;
    box-shadow: 0 0 20px rgba(200,165,92,0.4);
    animation: progressIn 1.4s var(--ease-out);
  }
  @keyframes progressIn {
    from { width: 0; }
  }
  .progress-hint {
    font-size: 13px; color: rgba(251,247,238,0.75);
  }
  .progress-hint strong { color: var(--gold-soft); font-weight: 600; }

  /* Tier sidebar */
  .tier-status {
    text-align: center;
  }
  .tier-medal-large {
    width: 80px; height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #8C6B2A);
    display: flex; align-items: center; justify-content: center;
    color: white; font-family: var(--display); font-size: 28px;
    box-shadow: 0 8px 24px rgba(200,165,92,0.3);
  }
  .tier-current {
    font-family: var(--display); font-size: 28px;
    margin-bottom: 4px;
  }
  .tier-since {
    font-size: 13px; color: var(--ink-soft);
    margin-bottom: 20px;
  }
  .tier-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .tier-stat-num {
    font-family: var(--display);
    font-size: 24px; font-weight: 500;
    color: var(--emerald);
    margin-bottom: 4px;
  }
  .tier-stat-label {
    font-size: 12px; color: var(--ink-soft);
    letter-spacing: 0.02em;
  }

  /* Year-by-year timeline */
  .timeline {
    list-style: none;
    position: relative;
  }
  .timeline::before {
    content: '';
    position: absolute;
    left: 11px; top: 8px; bottom: 8px;
    width: 2px;
    background: var(--line);
  }
  .timeline-item {
    position: relative;
    padding-left: 36px;
    padding-bottom: 20px;
  }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-dot {
    position: absolute;
    left: 4px; top: 4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--line);
  }
  .timeline-item.completed .timeline-dot {
    background: var(--emerald);
    border-color: var(--emerald);
  }
  .timeline-item.current .timeline-dot {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200,165,92,0.2);
  }
  .timeline-year {
    font-family: var(--display);
    font-size: 18px;
    color: var(--ink);
    font-weight: 500;
  }
  .timeline-detail {
    font-size: 13px; color: var(--ink-soft);
  }
  .timeline-points {
    font-variant-numeric: tabular-nums;
    color: var(--emerald);
    font-weight: 600;
    font-size: 13px;
    margin-top: 4px;
  }

  /* Activity log */
  .activity {
    list-style: none;
  }
  .activity-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
  }
  .activity-item:first-child { border: none; padding-top: 0; }
  .activity-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--paper-warm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--emerald);
  }
  .activity-icon.minus { color: var(--rust); }
  .activity-text {
    flex: 1; min-width: 0;
  }
  .activity-title {
    font-size: 14px; font-weight: 500;
    margin-bottom: 2px;
  }
  .activity-date {
    font-size: 12px; color: var(--ink-soft);
  }
  .activity-points {
    font-family: var(--display);
    font-size: 18px; font-weight: 500;
    color: var(--emerald);
    font-variant-numeric: tabular-nums;
  }
  .activity-points.minus { color: var(--rust); }

  .dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* ---------- Rewards Catalog ---------- */
  .rewards-header {
    padding: 48px 0 24px;
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 24px;
  }
  .rewards-balance {
    background: var(--ink);
    color: var(--cream);
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    display: flex; align-items: center; gap: 10px;
    font-size: 14px;
  }
  .rewards-balance .num {
    font-family: var(--display); font-size: 22px;
    color: var(--gold); font-weight: 500;
    font-variant-numeric: tabular-nums;
  }

  .rewards-filters {
    display: flex; gap: 8px;
    padding: 24px 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
  }
  .filter-pill {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--cream);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    color: var(--ink-soft);
    transition: all 0.2s var(--ease);
  }
  .filter-pill:hover { border-color: var(--ink); color: var(--ink); }
  .filter-pill.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

  .rewards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 80px;
  }
  .reward {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    display: flex; flex-direction: column;
  }
  .reward:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald);
  }
  .reward-image {
    aspect-ratio: 16/10;
    background: var(--paper-warm);
    display: flex; align-items: center; justify-content: center;
    font-size: 64px;
    position: relative;
    overflow: hidden;
  }
  .reward-image.r1 { background: linear-gradient(135deg, #E8DCC0, #C4A77C); }
  .reward-image.r2 { background: linear-gradient(135deg, #2A4A3E, #114B3F); color: var(--gold); }
  .reward-image.r3 { background: linear-gradient(135deg, #F5DDD0, #E8B89C); }
  .reward-image.r4 { background: linear-gradient(135deg, #D4C5A0, var(--gold)); }
  .reward-image.r5 { background: linear-gradient(135deg, #C9D5C8, #6B8E76); }
  .reward-image.r6 { background: linear-gradient(135deg, #E8C8B8, #B05826); }
  .reward-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--cream);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .reward-tag.exclusive {
    background: var(--gold);
    color: var(--emerald-deep);
  }
  .reward-content {
    padding: 20px;
    flex: 1;
    display: flex; flex-direction: column;
  }
  .reward-cat {
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 8px;
  }
  .reward-name {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
  }
  .reward-desc {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 16px;
    flex: 1;
  }
  .reward-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
  }
  .reward-cost {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    color: var(--emerald);
    font-variant-numeric: tabular-nums;
  }
  .reward-cost-label {
    font-size: 12px;
    color: var(--ink-soft);
    margin-left: 4px;
    font-family: var(--body);
    font-weight: 400;
  }

  /* ---------- Profile Page ---------- */
  .profile {
    padding: 48px 0 80px;
  }
  .profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }
  .profile-side {
    position: sticky;
    top: 100px;
    align-self: start;
  }
  .profile-nav {
    list-style: none;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 8px;
  }
  .profile-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all 0.2s var(--ease);
  }
  .profile-nav-item:hover { background: var(--paper-warm); color: var(--ink); }
  .profile-nav-item.active { background: var(--ink); color: var(--cream); }

  .profile-content {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
  }
  .profile-section { display: none; }
  .profile-section.active { display: block; animation: pageIn 0.3s var(--ease-out); }
  .profile-h {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
  }
  .profile-sub {
    color: var(--ink-soft);
    margin-bottom: 32px;
    font-size: 15px;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  .form-field { display: flex; flex-direction: column; }
  .form-field.full { grid-column: 1 / -1; }
  .form-label {
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-soft); font-weight: 600;
    margin-bottom: 8px;
  }
  .form-input {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: all 0.2s var(--ease);
  }
  .form-input:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(17,75,63,0.1);
  }
  .form-actions {
    display: flex; gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  /* Privacy / GDPR controls */
  .privacy-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 20px 0;
    border-top: 1px solid var(--line-soft);
    gap: 32px;
  }
  .privacy-row:first-child { border-top: none; padding-top: 0; }
  .privacy-row:last-child { padding-bottom: 0; }
  .privacy-info { flex: 1; }
  .privacy-name {
    font-size: 15px; font-weight: 600;
    margin-bottom: 4px;
  }
  .privacy-desc {
    font-size: 13px; color: var(--ink-soft);
    line-height: 1.5;
  }

  /* Toggle switch */
  .toggle {
    position: relative;
    width: 44px; height: 24px;
    flex-shrink: 0;
  }
  .toggle input {
    opacity: 0;
    width: 0; height: 0;
  }
  .toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(15,27,23,0.15);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: 0.3s;
  }
  .toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    transition: 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
  }
  .toggle input:checked + .toggle-slider {
    background: var(--emerald);
  }
  .toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
  }
  .toggle input:disabled + .toggle-slider {
    background: var(--emerald);
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* Data export buttons */
  .data-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
  }
  .data-action {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-align: left;
    font-family: inherit;
  }
  .data-action:hover {
    border-color: var(--emerald);
    background: var(--cream);
  }
  .data-action.danger:hover {
    border-color: var(--rust);
    background: rgba(176,88,38,0.05);
  }
  .data-action-title {
    font-size: 15px; font-weight: 600;
    margin-bottom: 6px;
  }
  .data-action.danger .data-action-title { color: var(--rust); }
  .data-action-desc {
    font-size: 13px; color: var(--ink-soft);
    line-height: 1.4;
  }

  /* ---------- Partners ---------- */
  .partners-strip {
    padding: 80px 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
  }
  .partners-marquee {
    display: flex;
    gap: 64px;
    align-items: center;
    margin-top: 40px;
    animation: marquee 30s linear infinite;
    width: max-content;
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .partners-strip:hover .partners-marquee { animation-play-state: paused; }
  .partner-logo {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: -0.01em;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.2s var(--ease);
    display: flex; align-items: center; gap: 10px;
  }
  .partner-logo:hover { opacity: 1; color: var(--emerald); }
  .partner-logo-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
  }

  /* Partners grid (full catalog page) */
  .partners-page {
    padding: 48px 0 80px;
  }
  .partners-categories {
    display: flex; gap: 8px;
    padding: 24px 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
  }
  .partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .partner-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    display: flex; flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
  }
  .partner-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald);
  }
  .partner-card.featured {
    background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
    color: var(--cream);
    border-color: var(--emerald-deep);
  }
  .partner-card.featured::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, var(--gold-soft) 0%, transparent 60%);
    opacity: 0.2;
    pointer-events: none;
  }
  .partner-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px;
  }
  .partner-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    background: var(--paper-warm);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
  }
  .partner-card.featured .partner-icon {
    background: rgba(251,247,238,0.1);
  }
  .partner-category-tag {
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-soft); font-weight: 600;
    padding: 4px 10px;
    background: var(--paper-warm);
    border-radius: var(--radius-pill);
  }
  .partner-card.featured .partner-category-tag {
    background: rgba(251,247,238,0.12);
    color: var(--gold-soft);
  }
  .partner-name {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  .partner-card.featured .partner-name { color: var(--cream); }
  .partner-rate {
    display: flex; align-items: baseline; gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }
  .partner-card.featured .partner-rate { border-color: rgba(251,247,238,0.12); }
  .partner-rate-num {
    font-family: var(--display);
    font-size: 28px; font-weight: 500;
    color: var(--emerald);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
  .partner-card.featured .partner-rate-num { color: var(--gold); }
  .partner-rate-unit {
    font-size: 13px; color: var(--ink-soft);
  }
  .partner-card.featured .partner-rate-unit { color: rgba(251,247,238,0.75); }
  .partner-desc {
    font-size: 13px; color: var(--ink-soft);
    line-height: 1.5;
  }
  .partner-card.featured .partner-desc { color: rgba(251,247,238,0.85); }

  /* Partner earnings widget on dashboard */
  .partner-earnings {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
  }
  .partner-earnings-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap; gap: 12px;
  }
  .partner-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .partner-mini {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: flex; flex-direction: column;
    gap: 8px;
  }
  .partner-mini:hover {
    border-color: var(--emerald);
    background: var(--cream);
    transform: translateY(-2px);
  }
  .partner-mini-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--paper-warm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
  }
  .partner-mini-name {
    font-size: 13px; font-weight: 600;
    line-height: 1.3;
  }
  .partner-mini-rate {
    font-size: 12px; color: var(--emerald);
    font-weight: 500;
  }

  /* Earning source breakdown chart */
  .earning-breakdown {
    display: flex; flex-direction: column; gap: 14px;
  }
  .earning-row {
    display: grid;
    grid-template-columns: 120px 1fr 80px;
    align-items: center;
    gap: 16px;
    font-size: 13px;
  }
  .earning-label {
    color: var(--ink-soft);
    font-weight: 500;
  }
  .earning-bar-track {
    height: 8px;
    background: var(--paper-warm);
    border-radius: var(--radius-pill);
    overflow: hidden;
  }
  .earning-bar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    transition: width 1.4s var(--ease-out);
  }
  .earning-bar-fill.loyalty { background: var(--emerald); }
  .earning-bar-fill.partners { background: var(--gold); }
  .earning-bar-fill.bonus { background: var(--rust); }
  .earning-bar-fill.referral { background: var(--emerald-bright); }
  .earning-value {
    font-family: var(--display);
    font-weight: 500;
    color: var(--emerald);
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  /* Activity icon variant for partners */
  .activity-icon.partner {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: var(--emerald-deep);
  }
  .activity-source {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
  }

  /* Link card promoting partners on home */
  .partners-promo {
    background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
    color: var(--cream);
    border-radius: var(--radius-lg);
    padding: 56px;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  .partners-promo::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--gold-soft) 0%, transparent 60%);
    opacity: 0.2;
    pointer-events: none;
  }
  .partners-promo-h {
    font-family: var(--display);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }
  .partners-promo-h em { font-style: italic; color: var(--gold); }
  .partners-promo-text {
    color: rgba(251,247,238,0.85);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 440px;
  }
  .partners-promo-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
  }
  .promo-tile {
    background: rgba(251,247,238,0.08);
    border: 1px solid rgba(251,247,238,0.15);
    border-radius: var(--radius);
    padding: 18px;
    backdrop-filter: blur(10px);
  }
  .promo-tile-icon {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .promo-tile-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  .promo-tile-rate {
    font-size: 12px;
    color: var(--gold-soft);
  }

  /* Responsive partners */
  @media (max-width: 968px) {
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-promo { grid-template-columns: 1fr; padding: 36px; gap: 32px; }
    .earning-row { grid-template-columns: 100px 1fr 70px; gap: 12px; }
  }
  @media (max-width: 640px) {
    .partners-grid { grid-template-columns: 1fr; }
    .partner-mini-grid { grid-template-columns: 1fr 1fr; }
    .partners-promo { padding: 28px; }
    .partners-promo-visual { grid-template-columns: 1fr 1fr; }
  }

  /* ---------- Footer ---------- */
  .footer {
    background: var(--emerald-deep);
    color: var(--cream);
    padding: 64px 0 32px;
    margin-top: 80px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }
  .footer-brand {
    font-family: var(--display);
    font-size: 32px;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
  }
  .footer-tag {
    color: rgba(251,247,238,0.7);
    font-size: 14px;
    max-width: 280px;
  }
  .footer-h {
    font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 600;
  }
  .footer-list {
    list-style: none;
  }
  .footer-list li {
    margin-bottom: 10px;
  }
  .footer-list a {
    color: rgba(251,247,238,0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s var(--ease);
    cursor: pointer;
  }
  .footer-list a:hover { color: var(--gold); }
  .footer-bottom {
    border-top: 1px solid rgba(251,247,238,0.1);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px;
    color: rgba(251,247,238,0.6);
    flex-wrap: wrap; gap: 16px;
  }

  /* ---------- GDPR Cookie Banner ---------- */
  .cookie-banner {
    position: fixed;
    bottom: 24px; left: 24px; right: 24px;
    max-width: 560px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    z-index: 100;
    transform: translateY(150%);
    transition: transform 0.5s var(--ease-out);
  }
  .cookie-banner.show { transform: translateY(0); }
  .cookie-h {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 10px;
  }
  .cookie-text {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 20px;
    line-height: 1.55;
  }
  .cookie-text a { color: var(--emerald); cursor: pointer; }
  .cookie-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
  }
  .cookie-prefs {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: none;
  }
  .cookie-prefs.show { display: block; animation: pageIn 0.3s var(--ease); }
  .cookie-pref-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0;
    gap: 16px;
  }
  .cookie-pref-name {
    font-size: 14px; font-weight: 500;
  }
  .cookie-pref-desc {
    font-size: 12px; color: var(--ink-soft);
  }

  /* ---------- Toast ---------- */
  .toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--ink);
    color: var(--cream);
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    transition: transform 0.4s var(--ease-out);
    display: flex; align-items: center; gap: 10px;
  }
  .toast.show { transform: translateX(-50%) translateY(0); }
  .toast-icon { color: var(--gold); }

  /* ---------- Mobile Menu ---------- */
  .mobile-toggle {
    display: none;
    background: none; border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    width: 40px; height: 40px;
    cursor: pointer;
    align-items: center; justify-content: center;
  }
  .mobile-toggle svg { width: 20px; height: 20px; }

  /* ---------- Responsive ---------- */
  @media (max-width: 968px) {
    .container { padding: 0 24px; }
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-visual { max-width: 380px; margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .tiers { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
    .dash-grid-2 { grid-template-columns: 1fr; }
    .rewards-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-side { position: static; }
    .profile-nav { display: flex; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .floating-badge.badge-1 { right: 0; top: 0; }
    .floating-badge.badge-2 { left: 0; bottom: 0; }
  }

  @media (max-width: 640px) {
    .nav-inner { padding: 14px 20px; }
    .container { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-links.show {
      display: flex;
      position: absolute;
      top: 100%; left: 0; right: 0;
      background: var(--cream);
      flex-direction: column;
      padding: 16px;
      gap: 4px;
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow-md);
    }
    .nav-links.show .nav-link {
      width: 100%;
      text-align: left;
      padding: 12px 16px;
    }
    .mobile-toggle { display: flex; }
    .nav-cta .btn-ghost { display: none; }
    .hero { padding: 60px 0 80px; }
    .section { padding: 70px 0; }
    .tiers { grid-template-columns: 1fr; gap: 12px; }
    .rewards-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .data-actions { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .stats { padding: 32px 0; }
    .stat-num { font-size: 36px; }
    .points-num { font-size: 64px; }
    .profile-content { padding: 24px; }
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
  }

  /* Reduced motion respect */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* Focus styles for accessibility */
  button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid var(--emerald);
    outline-offset: 2px;
  }

  /* ---------- Additional theme-specific classes (WP profile, switches, flashes) ---------- */
  .profile-header { padding: 48px 0 32px; }
  .profile-side-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    margin-bottom: 16px;
  }
  .profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
    color: var(--cream);
    font-family: var(--display);
    font-size: 36px; font-weight: 500;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
  }
  .profile-name {
    font-family: var(--display);
    font-size: 20px; font-weight: 500;
    margin-bottom: 4px;
  }
  .profile-meta { color: var(--ink-soft); font-size: 13px; }

  .profile-tab { display: none; }
  .profile-tab.active { display: block; animation: pageIn 0.3s var(--ease-out); }
  .profile-tab[hidden] { display: none; }
  .profile-tab.active[hidden] { display: block; }

  /* Preference row */
  .pref-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .pref-row:last-of-type { border-bottom: none; }
  .pref-name { font-weight: 500; font-size: 15px; margin-bottom: 4px; }
  .pref-desc { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }

  /* Toggle switch */
  .lumen-switch {
    position: relative;
    width: 44px; height: 24px;
    flex-shrink: 0; cursor: pointer;
    display: inline-block;
  }
  .lumen-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
  .lumen-switch span {
    position: absolute; inset: 0;
    background: var(--paper-warm);
    border-radius: 24px;
    transition: background 0.2s var(--ease);
  }
  .lumen-switch span::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15,27,23,0.2);
    transition: transform 0.2s var(--ease);
  }
  .lumen-switch input:checked + span { background: var(--emerald); }
  .lumen-switch input:checked + span::after { transform: translateX(20px); }
  .lumen-switch input:disabled + span { opacity: 0.6; cursor: not-allowed; }

  /* Data-action cards (more specific style than prototype's .data-action) */
  .data-action-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s var(--ease);
  }
  .data-action-card:hover { border-color: var(--emerald); }
  .data-action-h {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
  }
  .data-action-desc {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .btn-ghost.danger { color: var(--rust); border-color: rgba(176,88,38,0.3); }
  .btn-ghost.danger:hover { background: var(--rust); color: var(--cream); border-color: var(--rust); }

  /* Rich text content (for default WP pages) */
  .rich-content p { margin-bottom: 16px; line-height: 1.7; }
  .rich-content h2 { font-family: var(--display); font-size: 28px; margin: 32px 0 16px; font-weight: 500; }
  .rich-content h3 { font-family: var(--display); font-size: 22px; margin: 24px 0 12px; font-weight: 500; }
  .rich-content ul, .rich-content ol { margin: 0 0 16px 24px; }
  .rich-content li { margin-bottom: 6px; }
  .rich-content a { color: var(--emerald); }

  /* Locked content */
  .lumen-locked {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
  }
  .lumen-locked a { color: var(--emerald); font-weight: 500; }

  /* Brand mark */
  .brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--emerald);
    color: var(--cream);
    font-family: var(--display);
    font-size: 20px; font-weight: 500;
    border-radius: 8px;
    margin-right: 10px;
  }
  .brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
  .brand-name { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }

  /* ========================================================
     AUTH MODAL
     ======================================================== */
  .lumen-modal {
    position: fixed; inset: 0;
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: lumenModalIn 0.3s var(--ease-out);
  }
  .lumen-modal[hidden] { display: none; }
  @keyframes lumenModalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .lumen-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(10, 46, 38, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .lumen-modal-panel {
    position: relative;
    width: 100%; max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px 36px 32px;
    box-shadow: var(--shadow-lg);
    animation: lumenPanelIn 0.4s var(--ease-out);
  }
  @keyframes lumenPanelIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
  }
  .lumen-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--ink-soft);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s var(--ease);
  }
  .lumen-modal-close:hover { background: var(--paper-warm); color: var(--ink); }

  .lumen-modal-brand {
    display: flex; align-items: center;
    margin-bottom: 24px;
    font-family: var(--display);
  }

  .lumen-modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
    gap: 4px;
  }
  .lumen-modal-tab {
    background: none; border: none;
    padding: 10px 0;
    margin-right: 24px;
    font: inherit;
    color: var(--ink-soft);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
  }
  .lumen-modal-tab.active {
    color: var(--emerald);
    border-bottom-color: var(--emerald);
  }
  .lumen-modal-tab:hover:not(.active) { color: var(--ink); }

  .lumen-modal-h {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 8px;
  }
  .lumen-modal-h em { font-style: italic; color: var(--emerald); }
  .lumen-modal-sub {
    color: var(--ink-soft);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.55;
  }
  .lumen-modal-foot {
    text-align: center;
    color: var(--ink-soft);
    font-size: 14px;
    margin-top: 20px;
  }

  .lumen-auth-form { display: none; }
  .lumen-auth-form.active { display: block; }

  /* Buttons + links */
  .lumen-link {
    background: none; border: none;
    color: var(--emerald);
    font-weight: 500;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-decoration: none;
  }
  .lumen-link:hover { text-decoration: underline; }

  /* Checkbox */
  .lumen-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
  }
  .lumen-checkbox input { width: 18px; height: 18px; accent-color: var(--emerald); cursor: pointer; }

  /* Form hint */
  .form-hint {
    display: block;
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 6px;
  }

  /* Form error/success */
  .lumen-form-error, .lumen-form-success {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 16px;
  }
  .lumen-form-error   { background: #fbeaea; color: #a02b2b; border-left: 3px solid #a02b2b; }
  .lumen-form-success { background: #eaf6ef; color: var(--emerald); border-left: 3px solid var(--emerald); }

  /* Submit spinner */
  .lumen-auth-submit { position: relative; }
  .lumen-auth-submit.loading .lumen-btn-label { opacity: 0; }
  .lumen-btn-spinner {
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0;
    animation: lumenSpin 0.7s linear infinite;
  }
  .lumen-auth-submit.loading .lumen-btn-spinner { opacity: 1; }
  @keyframes lumenSpin { to { transform: rotate(360deg); } }

  /* ========================================================
     ACCOUNT DASHBOARD
     ======================================================== */
  .lumen-account { padding: 32px 0 80px; }

  .lumen-account-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 24px;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
  }
  .lumen-account-greet {
    font-family: var(--display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }
  .lumen-account-greet em { font-style: italic; color: var(--emerald); }
  .lumen-account-meta {
    margin-top: 12px;
    display: flex; align-items: center; gap: 14px;
    color: var(--ink-soft);
    font-size: 14px;
    flex-wrap: wrap;
  }
  .lumen-account-head-actions { display: flex; gap: 8px; }

  /* Tier pill */
  .lumen-tier-pill {
    display: inline-flex; align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .lumen-tier-bronze   { background: #f4e6d4; color: #8b5a2b; }
  .lumen-tier-silver   { background: #ececec; color: #5e5e60; }
  .lumen-tier-gold     { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--emerald-deep); }
  .lumen-tier-platinum { background: var(--ink); color: var(--cream); }

  /* Grid: sidebar + main */
  .lumen-account-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
  }

  /* Sidebar nav */
  .lumen-account-side { position: sticky; top: 96px; }
  .lumen-account-nav {
    display: flex; flex-direction: column;
    gap: 2px;
  }
  .lumen-account-nav-item {
    display: flex; align-items: center; gap: 12px;
    background: none; border: none;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--ink-soft);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s var(--ease);
  }
  .lumen-account-nav-item svg { flex-shrink: 0; color: var(--ink-soft); }
  .lumen-account-nav-item:hover {
    background: var(--paper-warm);
    color: var(--ink);
  }
  .lumen-account-nav-item.active {
    background: var(--ink);
    color: var(--cream);
  }
  .lumen-account-nav-item.active svg { color: var(--gold); }

  /* Main panels */
  .lumen-account-main { min-width: 0; } /* prevent grid blowout */
  .lumen-account-section { display: none; animation: pageIn 0.35s var(--ease-out); }
  .lumen-account-section.active { display: block; }

  .lumen-section-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
  }
  .lumen-section-h {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  /* Lifetime stat rows */
  .lumen-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .lumen-stat-row:last-child { border-bottom: none; }
  .lumen-stat-row .lumen-stat-n {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }
  .lumen-stat-row .lumen-stat-l {
    font-size: 11px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
  }

  /* Empty state */
  .lumen-empty {
    background: var(--cream);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    color: var(--ink-soft);
  }
  .lumen-empty p { margin-bottom: 16px; }

  /* Activity filter pills */
  .lumen-activity-filter { display: flex; gap: 8px; flex-wrap: wrap; }
  .filter-pill {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s var(--ease);
  }
  .filter-pill:hover { background: var(--cream); border-color: var(--emerald); color: var(--ink); }
  .filter-pill.active {
    background: var(--ink); color: var(--cream); border-color: var(--ink);
  }

  /* Ledger */
  .lumen-ledger {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .lumen-ledger-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line-soft);
    transition: background 0.15s var(--ease);
  }
  .lumen-ledger-row:last-child { border-bottom: none; }
  .lumen-ledger-row:hover { background: var(--paper-warm); }
  .lumen-ledger-row[data-hidden] { display: none; }

  /* Redemption list */
  .lumen-redemption-list { display: flex; flex-direction: column; gap: 12px; }
  .lumen-redemption {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    align-items: center;
  }
  .lumen-redemption-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
  }
  .lumen-redemption-name {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
  }
  .lumen-redemption-meta {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 8px;
  }
  .lumen-redemption-pts {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 500;
    color: var(--rust);
    font-variant-numeric: tabular-nums;
  }

  .lumen-voucher {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
  }
  .lumen-voucher-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
  }
  .lumen-voucher-code {
    background: var(--paper-warm);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 12px;
    color: var(--ink);
  }

  /* Tags for redemption status */
  .lumen-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .lumen-tag-fulfilled { background: #eaf6ef; color: var(--emerald); }
  .lumen-tag-pending   { background: #fff4dc; color: #8b6914; }
  .lumen-tag-cancelled { background: #fbeaea; color: #a02b2b; }
  .lumen-tag-refunded  { background: #f4f4f4; color: var(--ink-soft); }

  /* lumen-card generic */
  .lumen-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
  }

  /* Responsive account dashboard */
  @media (max-width: 968px) {
    .lumen-account-grid { grid-template-columns: 1fr; gap: 24px; }
    .lumen-account-side { position: static; }
    .lumen-account-nav {
      flex-direction: row;
      overflow-x: auto;
      gap: 4px;
      padding-bottom: 8px;
      -webkit-overflow-scrolling: touch;
    }
    .lumen-account-nav-item { flex-shrink: 0; }
  }

  @media (max-width: 640px) {
    .lumen-modal-panel { padding: 32px 24px 24px; }
    .lumen-modal-h { font-size: 22px; }
    .lumen-ledger-row { padding: 14px 16px; gap: 12px; }
    .lumen-redemption { grid-template-columns: 48px 1fr auto; padding: 16px; gap: 12px; }
    .lumen-redemption-icon { width: 48px; height: 48px; font-size: 22px; }
  }

  /* ========================================================
     FORM FIELDS — apply prototype input styling to bare inputs
     inside .form-field as well, so the modal forms look right.
     ======================================================== */
  .form-field { margin-bottom: 16px; }
  .form-field label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 8px;
  }
  .form-field input[type="text"],
  .form-field input[type="email"],
  .form-field input[type="password"],
  .form-field input[type="tel"],
  .form-field input[type="number"],
  .form-field input[type="url"],
  .form-field textarea,
  .form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
  }
  .form-field input:focus,
  .form-field textarea:focus,
  .form-field select:focus {
    outline: none;
    border-color: var(--emerald);
    background: var(--cream);
    box-shadow: 0 0 0 3px rgba(17, 75, 63, 0.1);
  }
  .form-field input::placeholder,
  .form-field textarea::placeholder {
    color: var(--ink-soft);
    opacity: 0.55;
  }

  /* Inputs inside the modal need a touch more breathing room */
  .lumen-modal-panel .form-field { margin-bottom: 18px; }

  /* Form row (two-column layout for fields like first/last name) */
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .form-row .form-field { margin-bottom: 0; }
  @media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; gap: 14px; }
    .form-row .form-field { margin-bottom: 14px; }
  }

  /* ========================================================
     LOCKED HERO — shown when logged-out user visits an
     account-only page. Auto-opens the sign-in modal too.
     ======================================================== */
  .lumen-locked-hero {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 80px 48px;
    text-align: center;
    max-width: 580px;
    margin: 80px auto;
  }
  .lumen-locked-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--paper-warm);
    color: var(--emerald);
    margin-bottom: 24px;
  }
  .lumen-locked-h {
    font-family: var(--display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--ink);
  }
  .lumen-locked-p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 32px;
  }
  .lumen-locked-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  @media (max-width: 640px) {
    .lumen-locked-hero { padding: 48px 24px; margin: 40px 16px; }
  }
