/* ============================================================
   THE POINTS PLANNER — MAIN STYLESHEET
   ============================================================
   This file contains all styles for the site (except design
   tokens, which live in tokens.css).

   Organization:
   - Each major section is marked with a /* ── SECTION NAME ── */
     header comment. Use Cmd/Ctrl + F to jump between sections.
   - Sections appear roughly in the order: globals/reset →
     components → pages → responsive overrides.

   When editing:
   - Design colors, fonts, spacing variables → edit tokens.css
   - Everything else → edit this file
   ============================================================ */

/* ── SELECT & OPTION STYLING ────────────────────────────────── */
select {
  color: white !important;
  background-color: var(--night-2) !important;
}

select option {
  color: white !important;
  background-color: #0f1420 !important;
  background-image: none !important;
}

select option:checked {
  background: linear-gradient(#8892a4, #8892a4) !important;
  background-color: #8892a4 !important;
}

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Dark surfaces — deep charcoal like Amex Platinum, not pure black */
  --night: #0a0d12;
  --night-2: #0f1420;
  --night-3: #161e2e;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.07);
  /* Accent: silver-platinum — sophisticated, not amber */
  --gold: #8892a4;
  --gold-light: #fff;
  --gold-glow: rgba(194,207,224,0.2);
  /* Page backgrounds — refined off-white sections */
  --cream: #f8f9fb;
  --cream-2: #f2f4f7;
  /* Text */
  --ink: #111827;
  --muted-dark: rgba(255,255,255,0.6);
  --muted-light: #6b7280;
  --border-light: #e5e7eb;
  /* Status */
  --green: #1a6b3c;
  --green-light: #dcfce7;
  --red: #c0392b;
  /* Modal elements */
  --step-circle-color: #5DADE2;
  /* Typography */
  --font-display: 'Be Vietnam Pro', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
  --font-mono: 'Be Vietnam Pro', sans-serif;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
  font-family: var(--font-body); 
  background: var(--color-bg); 
  color: var(--ink); 
  overflow-x: hidden;
}

/* ── MODALS ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-body {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PHASE 2B: URGENCY BADGE ANIMATIONS ─────────────────────── */
@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.urgent-badge-pulse {
  animation: pulse-urgent 2s infinite !important;
}

/* ── MASTHEAD ───────────────────────────────────────────────── */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 48px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
}
.masthead.dark {
  background: rgba(8,10,14,0.7);
  backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.masthead.light {
  background: rgba(10,13,18,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(194,207,224,0.1);
}
.brand {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: #fff;
  font-size: 18px; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.2s;
}
.masthead.dark .brand { color: #fff; }
.masthead.light .brand { color: #fff; }
.brand em { font-style: normal; color: inherit; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px; font-weight: 400; cursor: pointer;
  background: none; border: none; font-family: var(--font-body);
  transition: opacity 0.2s; letter-spacing: 0.02em;
}
.masthead.dark .nav-link { color: var(--muted-dark); }
.masthead.dark .nav-link:hover { color: #fff; }
.masthead.light .nav-link { color: var(--muted-light); }
.masthead.light .nav-link { color: rgba(255,255,255,0.65) !important; }
.masthead.light .nav-link:hover { color: var(--ink); }
.masthead-right { display: flex; align-items: center; gap: 12px; }
.data-status { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; }
.masthead.dark .data-status { color: var(--muted-dark); }
.masthead.light .data-status { color: var(--muted-light); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.live { background: #3ddc84; animation: pulse-dot 2s ease-in-out infinite; }
.status-dot.cached { background: #fff; }
.status-dot.error { background: var(--red); }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes spin { to { transform: rotate(360deg); } }
#signInBtn {
  font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: var(--font-body); letter-spacing: 0.02em;
  padding: 8px 20px; border-radius: 100px;
  transition: all 0.2s;
}
.masthead.dark #signInBtn { background: var(--glass); border: 1px solid var(--glass-border); color: #fff; }
.masthead.dark #signInBtn:hover { background: var(--glass-hover); border-color: rgba(255,255,255,0.2); }
.masthead.light #signInBtn { background: transparent !important; border: 1px solid rgba(184,196,212,0.4) !important; color: var(--gold-light) !important; }
.masthead.light #signInBtn:hover { background: var(--ink); border-color: var(--ink); }
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: #fff; border-radius: 100px; padding: 6px 16px 6px 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.user-btn:hover { background: var(--glass-hover); }
.user-btn-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.masthead.light .user-btn { background: var(--ink); border-color: var(--ink); }
.user-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  min-width: 220px; overflow: hidden; z-index: 300;
}
.user-dropdown.open { display: block; animation: dropIn 0.15s ease forwards; }
@keyframes dropIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.dropdown-header { padding: 16px 18px 12px; border-bottom: 1px solid var(--border-light); }
.dropdown-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.dropdown-email { font-size: 12px; color: var(--muted-light); margin-top: 2px; }
.dropdown-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-pro { background: var(--gold); color: #fff; }
.badge-free { background: #f0ece3; color: var(--muted-light); }
.dropdown-item { display: block; width: 100%; padding: 11px 18px; text-align: left; background: none; border: none; font-size: 14px; cursor: pointer; color: var(--ink); transition: background 0.15s; font-family: var(--font-body); }
.dropdown-item:hover { background: var(--cream); }
.dropdown-item.danger { color: var(--red); }

/* ── PAGES ──────────────────────────────────────────────────── */
html, body { height: 100%; }
.page { display: none; }
.page.active { display: block; min-height: 100vh; }

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────────────── */

/* ── Hero animation ──────────────────────────────────────────── */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero-anim-1 {
  animation: heroSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
.hero-anim-2 {
  animation: heroSlideLeft 0.7s cubic-bezier(0.22,1,0.36,1) 0.6s both;
}
.hero {
  min-height: 100vh;
  background: var(--night);
  background-image:
    linear-gradient(rgba(194,207,224,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194,207,224,0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  background-repeat: repeat;
  background-position: 0 0;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 48px;
}

/* Layered atmospheric background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 8% 35%, rgba(194,207,224,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 92% 15%, rgba(100,130,220,0.07) 0%, transparent 50%);
  pointer-events: none;
}

/* Subtle grid texture overlay - now on main hero element */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Floating orbs */
.orb { display: none; }

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding-top: 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.hero-left {}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(194,207,224,0.06); border: 1px solid rgba(194,207,224,0.15);
  border-radius: 3px; padding: 5px 14px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  color: var(--gold-light); margin-bottom: 40px; text-transform: uppercase;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light); animation: pulse-dot 2s infinite; }

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 66px);
  font-weight: 200; line-height: 1.05;
  letter-spacing: -0.03em; color: #ffffff;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-h1 em { font-style: italic; color: var(--gold-light); font-weight: 300; }
.hero-h1 strong { font-weight: 600; }

.hero-sub {
  font-size: 16px; font-weight: 300; line-height: 1.75;
  color: rgba(255,255,255,0.55); max-width: 460px; margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-ctas {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.4s both;
}
.btn-hero-primary {
  background: transparent; color: var(--gold-light); border: 1px solid rgba(194,207,224,0.45);
  border-radius: 3px; padding: 15px 34px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s; box-shadow: inset 0 0 0 0 rgba(194,207,224,0);
  position: relative; overflow: hidden;
}
.btn-hero-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(194,207,224,0.08) 0%, rgba(194,207,224,0.02) 100%);
  opacity: 1;
}
.btn-hero-primary:hover { border-color: rgba(194,207,224,0.8); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(194,207,224,0.12); }
.btn-hero-ghost {
  background: transparent; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px; padding: 15px 28px;
  font-size: 11px; font-weight: 400; cursor: pointer;
  font-family: var(--font-body); transition: all 0.2s;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.btn-hero-ghost:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }

.hero-proof {
  margin-top: 20px; font-family: var(--font-mono);
  font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.06em;
  animation: fadeUp 0.8s ease 0.5s both;
}

/* Hero right — glass stat cards */
.hero-right {
  display: flex; flex-direction: column; gap: 16px;
  animation: fadeUp 0.8s ease 0.35s both;
}

.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,196,212,0.12);
  border-radius: 16px; padding: 24px 28px;
  backdrop-filter: blur(24px);
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 1px 0 rgba(184,196,212,0.1) inset;
}
.glass-card::before { display: none; }
.glass-card:hover { background: rgba(255,255,255,0.065); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 1px 0 rgba(184,196,212,0.12) inset; }

.glass-card-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 10px; }
.glass-card-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.glass-card-sub { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.5; }
.glass-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); }
.glass-card-num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--ink); }
.glass-card-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; letter-spacing: 0.04em; }
.badge-active { background: rgba(61,220,132,0.15); color: #3ddc84; border: 1px solid rgba(61,220,132,0.25); }
.badge-gold { background: rgba(10,10,10,0.2); color: var(--ink); border: 1px solid rgba(10,10,10,0.3); }

/* Bonus alert card */
.alert-card {
  background: linear-gradient(135deg, rgba(10,10,10,0.12), rgba(10,10,10,0.05));
  border: 1px solid rgba(10,10,10,0.25);
}
.alert-card::before { background: linear-gradient(90deg, transparent, rgba(10,10,10,0.3), transparent); }
.alert-fire { font-size: 20px; margin-bottom: 8px; }

/* ── TRANSITION SECTION ─────────────────────────────────────── */
.section-transition {
  height: 0;
  pointer-events: none;
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.how-section { background: var(--cream); padding: 110px 48px 100px; border-top: none; }
.section-wrap { max-width: 1100px; margin: 0 auto; }
.section-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; font-weight: 600; }
.section-h2 { font-family: var(--font-display); font-size: clamp(34px, 4.5vw, 58px); font-weight: 200; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 64px; }
.section-h2 em { font-style: italic; color: var(--ink); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-light); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.step-item { background: #fff; padding: 44px 38px; position: relative; }
.step-num { font-family: var(--font-mono); font-size: 9px; color: var(--gold-light); letter-spacing: 0.18em; margin-bottom: 24px; font-weight: 600; }
.step-icon-wrap { width: 40px; height: 40px; border-radius: 8px; background: var(--night); border: 1px solid rgba(194,207,224,0.12); display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 20px; filter: grayscale(0.1); }
.step-h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; color: var(--ink); }
.step-p { font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--muted-light); }

/* ── FEATURE HIGHLIGHT ──────────────────────────────────────── */
.feature-section { background: var(--cream); padding: 0 48px 100px; }
.feature-card {
  max-width: 1100px; margin: 0 auto;
  background: #fff;
  border-radius: 32px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 0% 50%, rgba(10,10,10,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.feature-left { padding: 64px 56px; position: relative; z-index: 2; }
.feature-kicker { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--gold-light); margin-bottom: 20px; }
.feature-h2 { font-family: var(--font-display); font-size: clamp(36px, 3.5vw, 54px); font-weight: 300; line-height: 1.08; color: #fff; margin-bottom: 20px; letter-spacing: -0.02em; }
.feature-h2 em { font-style: italic; color: var(--ink); }
.feature-p { font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--muted-light); margin-bottom: 36px; }
.feature-right { padding: 48px 40px 48px 0; display: flex; flex-direction: column; gap: 14px; justify-content: center; position: relative; z-index: 2; }

/* Email mockup */
.email-mockup {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 20px 22px;
  backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
}
.email-mockup::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); }
.email-from { font-family: var(--font-mono); font-size: 10px; color: var(--muted-light); margin-bottom: 6px; letter-spacing: 0.06em; }
.email-subject { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.email-body { font-size: 13px; font-weight: 300; color: var(--muted-light); line-height: 1.6; }
.email-highlight { color: var(--ink); font-weight: 600; }
.email-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 12px 0; }
.email-cta { display: inline-block; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 18px; border-radius: 8px; margin-top: 4px; }

.mini-alert { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 14px 16px; }
.mini-alert-icon { font-size: 18px; flex-shrink: 0; }
.mini-alert-text { font-size: 13px; color: var(--muted-light); line-height: 1.4; }
.mini-alert-text strong { color: #fff; font-weight: 500; }

/* ── PROGRAMS GRID ──────────────────────────────────────────── */
.programs-section { background: var(--cream-2); padding: 100px 48px; border-top: 1px solid var(--border-light); }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.program-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 20px; padding: 28px;
  transition: all 0.25s; cursor: pointer;
  position: relative; overflow: hidden;
}
.program-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 60%, rgba(10,10,10,0.04)); opacity: 0; transition: opacity 0.3s; }
.program-card:hover { border-color: var(--ink); box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 0 0 1px var(--gold); transform: translateY(-3px); }
.program-card:hover::after { opacity: 1; }
.program-icon { width: 48px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 16px; }
.program-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.program-nick { font-family: var(--font-mono); font-size: 11px; color: var(--muted-light); margin-bottom: 14px; letter-spacing: 0.04em; }
.program-partners { font-size: 13px; color: var(--muted-light); font-weight: 300; }
.program-count { display: inline-flex; align-items: center; gap: 4px; background: var(--cream-2); border: 1px solid var(--border-light); border-radius: 100px; padding: 3px 10px; font-size: 11px; font-weight: 500; color: var(--muted-light); margin-top: 12px; }

/* ── PRICING ────────────────────────────────────────────────── */
.pricing-section { background: var(--cream-2); padding: 110px 48px 120px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 48px auto 0; align-items: stretch; }

.pricing-card {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex; flex-direction: column;
}
.pricing-card.featured { border: none; box-shadow: 0 0 0 1px rgba(194,207,224,0.25), 0 8px 48px rgba(0,0,0,0.3), inset 0 1px 0 rgba(194,207,224,0.2); }

.pricing-card-head { padding: 32px 36px 28px; border-bottom: 1px solid var(--border-light); min-height: 180px; display: flex; flex-direction: column; justify-content: flex-start; }
.pricing-card.featured .pricing-card-head { background: linear-gradient(160deg, #0c1422 0%, #0f1a2e 60%, #131f35 100%); border-bottom: 1px solid rgba(194,207,224,0.1); }
.pricing-tier { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 12px; }
.pricing-card.featured .pricing-tier { color: var(--gold-light); letter-spacing: 0.16em; }
.pricing-price { font-family: var(--font-display); font-size: 56px; font-weight: 200; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.pricing-card.featured .pricing-price { color: #fff; }
.pricing-price sup { font-size: 22px; font-weight: 400; vertical-align: super; }
.pricing-price sub { font-size: 16px; font-weight: 300; font-family: var(--font-body); color: var(--muted-light); }
.pricing-card.featured .pricing-price sub { color: rgba(255,255,255,0.4); }
.pricing-desc { font-size: 13px; font-weight: 300; color: var(--muted-light); margin-top: auto; padding-top: 8px; }
.pricing-card.featured .pricing-desc { color: rgba(255,255,255,0.4); }

.pricing-card-body { padding: 32px 36px; background: #fff; flex: 1; display: flex; flex-direction: column; }
.pricing-card.featured .pricing-card-body { background: var(--night-2); }
.feature-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; flex: 1; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 300; line-height: 1.4; letter-spacing: -0.01em; }
.feature-item.yes { color: var(--ink); }
.feature-item.locked { color: #b0aa9e; }
.pricing-card.featured .feature-item.yes { color: rgba(255,255,255,0.9); }
.pricing-card.featured .feature-item.locked { color: rgba(255,255,255,0.4); }
.fi-check { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.fi-check.y { color: var(--green); }
.fi-check.n { color: #d0cbc0; }
.pricing-card.featured .fi-check.n { color: rgba(255,255,255,0.3); }
.btn-pricing {
  width: 100%; padding: 14px; border-radius: 12px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  font-family: var(--font-body); transition: all 0.2s; border: none;
  letter-spacing: 0.01em; margin-top: auto;
}
.btn-free { background: var(--cream-2); color: var(--ink); border: 1px solid var(--border-light); }
.btn-free:hover { background: var(--border-light); }
.btn-paid { background: var(--ink); color: #fff; box-shadow: 0 4px 20px var(--gold-glow); }
.btn-paid:hover { background: var(--gold-light); color: var(--ink); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════
   FOUNDING MEMBER SECTION — full-width premium offer below pricing grid
   ══════════════════════════════════════════════════════════════ */
.founding-section {
  max-width: 820px;
  margin: 32px auto 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #0c1422 0%, #0f1a2e 40%, #1a2340 100%);
  box-shadow: 0 0 0 1px rgba(194,207,224,0.18), 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
}
.founding-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(194,207,224,0.6), transparent);
}
.founding-inner {
  padding: 48px 56px 40px;
  text-align: center;
}
.founding-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 16px;
  background: rgba(194,207,224,0.1);
  border: 1px solid rgba(194,207,224,0.2);
  border-radius: 20px;
  margin-bottom: 20px;
}
.founding-h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 16px;
}
.founding-h3 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}
.founding-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin: 0 auto 32px;
  max-width: 560px;
}
.founding-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.founding-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: rgba(194,207,224,0.06);
  border: 1px solid rgba(194,207,224,0.15);
  border-radius: 14px;
  min-width: 120px;
}
.founding-counter-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.founding-counter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}
.founding-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.founding-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
}
.founding-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(26,107,60,0.25);
  color: #86EFAC;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.btn-founding {
  display: inline-block;
  padding: 16px 36px;
  background: var(--gold-light);
  color: var(--ink);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 32px rgba(255,255,255,0.1);
}
.btn-founding:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(255,255,255,0.18);
}
.founding-fine-print {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin: 16px auto 0;
  max-width: 480px;
}

/* Founding section — mobile */
@media (max-width: 768px) {
  .founding-inner { padding: 36px 24px 32px; }
  .founding-meta-row { gap: 24px; flex-direction: column; }
  .founding-perks { text-align: center; }
  .founding-perk { justify-content: center; }
  .btn-founding { width: 100%; padding: 14px 24px; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--night); border-top: 1px solid rgba(194,207,224,0.08); padding: 72px 64px; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.6); letter-spacing: 0.01em; }
.footer-brand em { font-style: normal; color: #fff; }
.footer-links { display: flex; gap: 24px; }
.footer-link { font-size: 12px; color: rgba(255,255,255,0.35); cursor: pointer; transition: color 0.2s; text-decoration: none; letter-spacing: 0.02em; }
.footer-link:hover { color: var(--gold-light); }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; }

/* ══════════════════════════════════════════════════════════════
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  #page-wizard { flex-direction: column; }
  .wizard-left { width: 100%; min-width: 0; max-width: 100%; padding: 28px 24px 20px; min-height: auto; height: auto; position: relative; }
  .wizard-left .step-kicker { color: var(--gold-light) !important; }
.wizard-left .step-title { color: #fff !important; }
.wizard-left .step-hint { color: rgba(255,255,255,0.55) !important; }
.wizard-left-bg { display: none; }
  .wizard-left-steps { display: none; }
  .wizard-right-body { padding: 24px 20px 40px; }
  .wizard-right { min-height: auto; }
}
@media (max-width: 768px) {
  #page-wizard.app-mode { margin-left: 0; }
  .wizard-left { padding: 20px 16px 16px; }
  .wizard-left-title { font-size: 28px; }
  .wizard-body { padding: 20px 16px; }
  .wizard-footer { padding: 16px; }
  .wizard-card-header { padding: 20px 16px 16px; }
  .step-title { font-size: 22px; }
  .cabin-row { grid-template-columns: 1fr; gap: 8px; }
  .card-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .pricing-card.featured { order: -1; }
}
@media (max-width: 480px) {
  .wizard-left-title { font-size: 24px; }
  .card-grid { grid-template-columns: 1fr 1fr !important; }
  .step-kicker { font-size: 9px; }
  .path-details { grid-template-columns: repeat(2, 1fr); }
  .path-detail { min-width: 0; }
  .balance-row { flex-wrap: wrap; gap: 8px; }
}



.wizard-wrap { max-width: 720px; margin: 0 auto; padding: 24px 48px 80px; }
.dash-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.dash-section { background: var(--night-2); border: 1px solid rgba(194,207,224,0.1); border-radius: 16px; padding: 28px; margin-bottom: 20px; }
.dash-section-title { font-size: 10px; font-weight: 600; color: var(--gold-light); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.dash-program-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(194,207,224,0.08); }
.dash-program-row:last-child { border-bottom: none; padding-bottom: 0; }
.dash-program-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.dash-bal { font-size: 16px; font-weight: 700; font-family: var(--font-mono); color: #fff; }
.dash-bonus-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #F0AD00; border: 1px solid #F0AD00; border-radius: 20px; font-size: 10px; font-weight: 700; color: #fff; }
.dash-watch-card { padding: 14px 0; border-bottom: 1px solid rgba(194,207,224,0.08); }
.dash-watch-card:last-child { border-bottom: none; padding-bottom: 0; }
.dash-can-afford { color: #16a34a; font-weight: 700; font-size: 12px; }
.dash-shortfall { color: #dc2626; font-weight: 700; font-size: 12px; }
.dash-benefit-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(194,207,224,0.08); }
.dash-benefit-row:last-child { border-bottom: none; padding-bottom: 0; }
.dash-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; background: transparent; color: var(--gold-light); border: 1px solid rgba(194,207,224,0.35); border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font-body); text-decoration: none; letter-spacing: 0.04em; transition: all 0.2s; }
.dash-cta-btn:hover { border-color: rgba(194,207,224,0.7); color: #fff; }
.dash-upgrade-banner { background: linear-gradient(135deg, var(--night-3) 0%, var(--night-2) 100%); border: 1px solid rgba(194,207,224,0.15); border-radius: 16px; padding: 28px; color: #fff; margin-bottom: 20px; }
@media (max-width: 600px) {
  .dash-pro-grid { grid-template-columns: 1fr !important; }
  .hero-title { font-size: 40px !important; }
  .hero-sub { font-size: 15px !important; }
  .section-wrap { padding: 0 16px; }
  .pricing-grid { grid-template-columns: 1fr !important; }
  .pricing-card.featured { order: -1; }
  .pricing-card-head { padding: 24px 20px 20px; min-height: auto !important; }
  .pricing-card-body { padding: 20px; }
}


/* ═══════════════════════════════════════════════════════════════
   APP SHELL — sidebar layout for logged-in dashboard (v2 redesign)
═══════════════════════════════════════════════════════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg);
}
.app-sidebar {
  width: 300px;
  min-width: 300px;
  background: var(--color-bg);
  color: var(--color-text);
  border-right: 1px solid var(--color-border-dark);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 39px 24px 30px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-logo {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  line-height: normal;
  cursor: pointer;
  padding: 0;
  border-bottom: none;
  letter-spacing: 0;
}
.sidebar-logo em {
  color: var(--color-accent);
  font-style: normal;
}
.sidebar-divider {
  border: none;
  height: 1px;
  background-color: var(--color-border-dark);
  margin: 0;
  width: 100%;
}
.sidebar-mobile-close {
  display: none;
}
.sidebar-nav-eyebrow {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 16px;
  margin: 0 0 8px;
}
.sidebar-nav {
  flex: 0 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-text);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 16px 0 0;
  border-top: 1px solid var(--color-border-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-primary);
  line-height: 20px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0;
}
.sidebar-link:hover {
  background: rgba(34, 43, 63, 0.5);
  color: var(--color-text);
}
.sidebar-link.active {
  background: var(--color-border-dark);
  color: var(--color-text);
  font-weight: 500;
  border-left: none;
  padding-left: 16px;
}
.sidebar-link.active .slink-icon {
  color: var(--color-accent);
}
.sidebar-link.danger {
  color: var(--color-accent);
}
.sidebar-link.danger:hover {
  color: var(--color-accent-hover);
  background: rgba(233, 104, 30, 0.08);
}
.slink-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
}
.sidebar-link.danger .slink-icon {
  color: currentColor;
}
.app-main {
  margin-left: 300px;
  flex: 1;
  min-height: 100vh;
  padding: 0;
  background: var(--color-bg);
  background-image:
    linear-gradient(rgba(194,207,224,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194,207,224,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.dash-section-page {
  padding: 30px;
  min-height: 100vh;
}
/* ── Dashboard section widgets ─────────────────────────────── */
.app-widget {
  background: var(--color-card-bg);
  border: 0.2px solid #7D7D7D;
  border-radius: 8px;
  padding: 16px 24px;
  margin-bottom: 16px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.app-widget-body {
  flex: 1 1 auto;
  min-height: 0;
}
/* Only widgets inside the two-column layout grid need to stretch to match heights */
.dash-layout-grid > .app-widget {
  height: 100%;
  margin-bottom: 0;
}
.app-widget-title {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0;
  line-height: 20px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.app-page-title {
  font-family: var(--font-primary);
  font-size: 30px;
  font-weight: 500;
  color: var(--color-text);
  line-height: normal;
  letter-spacing: 0;
  margin: 0 0 4px;
}
.app-page-title em {
  color: var(--color-accent);
  font-style: normal;
  font-weight: 500;
}
.app-page-sub {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: normal;
  margin: 0 0 30px;
}
/* ── Stats grid (Transferable Points + April Credits) ─── */
.dash-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.dash-stats-grid .app-widget {
  margin-bottom: 0;
}
/* ── Widget header (title + total number row) ──────────── */
.app-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.app-widget-header .app-widget-title {
  margin-bottom: 0;
}
.app-widget-total {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  margin-left: auto;
}
.app-widget-total.is-orange {
  color: var(--color-accent);
}
.app-widget-total.is-green {
  color: var(--color-number-green);
}
/* ── Primary orange pill CTA (wallet + credits actions) ─── */
.app-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  margin-top: 16px;
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.app-cta-btn:hover {
  background: var(--color-accent-hover);
}
.app-cta-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
/* ── Wallet row (individual program chips inside Your Points Wallet) ─── */
.wallet-row-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(52, 52, 52, 0.40);
  border: 0.2px solid #7D7D7D;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.wallet-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wallet-row-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}
.wallet-row-name {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  line-height: normal;
}
.wallet-row-bonus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-accent);
  line-height: normal;
  flex-shrink: 0;
}
.wallet-row-bonus-dot {
  width: 8px;
  height: 8px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.wallet-row-balance {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  line-height: normal;
  text-align: right;
  flex-shrink: 0;
}
/* ── Credit row (individual benefit chips inside April Credits) ─── */
.credit-row-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.credit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(52, 52, 52, 0.40);
  border: 0.2px solid #7D7D7D;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.credit-row:hover {
  background: rgba(52, 52, 52, 0.55);
}
.credit-row.is-used {
  background: rgba(100, 48, 59, 0.20);
  border-color: #FF7E9A;
}
.credit-row.is-used:hover {
  background: rgba(100, 48, 59, 0.30);
}
.credit-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  user-select: none;
}
.credit-row-dot {
  width: 8px;
  height: 8px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.credit-row.is-used .credit-row-dot {
  background: #FF7E9A;
}
.credit-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.credit-row-label {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  line-height: normal;
}
.credit-row.is-used .credit-row-label {
  color: #FF7E9A;
  text-decoration: line-through;
}
.credit-row-card {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: normal;
}
.credit-row-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 12px;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}
.credit-row-pill.is-days-default {
  background: var(--color-accent);
  color: var(--color-text);
}
.credit-row-pill.is-days-urgent {
  background: #C6000A;
  color: var(--color-text);
}
.credit-row-pill.is-used {
  background: rgba(100, 48, 59, 0.20);
  border: 0.2px solid #FF7E9A;
  color: #FF7E9A;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
/* ── Refer & Earn widget (Pro-only, below the two-column grid) ─── */
.refer-earn-widget {
  margin-top: 16px;
  gap: 16px;
}
.refer-earn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.refer-earn-header .app-widget-title {
  margin-bottom: 0;
}
.refer-earn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-accent);
}
.refer-earn-subtitle {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 20px;
  margin-bottom: 16px;
}
.refer-earn-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.refer-earn-field-group:last-of-type {
  margin-bottom: 0;
}
.refer-earn-field-label {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: normal;
}
.refer-earn-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(52, 52, 52, 0.40);
  border: 0.2px solid #7D7D7D;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.refer-earn-field:focus-within {
  border-color: var(--color-accent);
}
.refer-earn-field-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text);
  line-height: normal;
  padding: 0;
}
.refer-earn-field-input::placeholder {
  color: var(--color-text-muted);
}
.refer-earn-field-input[readonly] {
  cursor: text;
}
.refer-earn-field-action {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  line-height: normal;
  cursor: pointer;
  transition: color 0.15s;
}
.refer-earn-field-action:hover {
  color: var(--color-accent-hover);
}
/* ── Info icon with hover tooltip (used next to Transferable Points etc.) ─── */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  cursor: help;
  flex-shrink: 0;
  transition: color 0.15s;
}
.info-tip:hover,
.info-tip:focus-visible {
  color: var(--color-text);
  outline: none;
}
.info-tip svg {
  width: 16px;
  height: 16px;
  display: block;
}
.info-tip-bubble {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 280px;
  padding: 10px 12px;
  background: rgba(10, 16, 31, 0.98);
  border: 0.2px solid #7D7D7D;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: normal;
}
.info-tip:hover .info-tip-bubble,
.info-tip:focus-visible .info-tip-bubble {
  opacity: 1;
  visibility: visible;
}
/* When the info-tip is active, lift the entire stat card above its
   sibling card so the tooltip isn't occluded by the neighbor's
   frosted-glass stacking context. */
.dash-stats-grid .app-widget:has(.info-tip:hover),
.dash-stats-grid .app-widget:has(.info-tip:focus-visible) {
  position: relative;
  z-index: 50;
}
/* On narrow screens, left-align so the bubble doesn't overflow */
@media (max-width: 540px) {
  .info-tip-bubble {
    left: 0;
    transform: none;
    max-width: calc(100vw - 40px);
  }
}
/* ── Card chip (for My Cards section) ─────────────────────── */
.card-benefit-chip {
  background: var(--night-3);
  border: 1px solid rgba(194,207,224,0.1);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.card-benefit-chip-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.benefit-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(194,207,224,0.08);
}
.benefit-row-item:last-child { border-bottom: none; }
/* ═══════════════════════════════════════════════════════════════
   ACCOUNT SETTINGS (dashboard section)
   ───────────────────────────────────────────────────────────────
   Two-section layout: Profile (Name, Email, Password, Time Zone)
   and Subscription (Current Plan + Stripe portal link).
   Each section is a glass card on the dark navy bg, with an
   eyebrow header row containing the section name and an action
   pill button (Edit / Change). Field rows show a label and an
   input-styled value box that's read-only by default; clicking
   Edit toggles the section into editable state (Pass 2 wiring).
   ═══════════════════════════════════════════════════════════════ */

.settings-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Page title block: matches the .app-page-title pattern from Transfer
   Partners, but with explicit spacing here so the gap reads as 24px
   between subtitle and the first section card (per Figma). */
.settings-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-header .app-page-title { margin: 0; }
.settings-header .app-page-sub   { margin: 0; }

/* Section card: glass surface holding an eyebrow row + field rows. */
.settings-section {
  background: var(--color-card-bg);
  border: 0.2px solid #7D7D7D;
  border-radius: var(--radius-sm);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Eyebrow row: PROFILE / SUBSCRIPTION label on the left, Edit/Change
   pill on the right. */
.settings-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.settings-section-eyebrow {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-normal);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

/* Action pill (Edit / Change). Reuses the accent pill pattern from
   the rest of the redesigned site (My Wallet add-card button etc.). */
.settings-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.settings-action-btn:hover { background: var(--color-accent-hover); }
.settings-action-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Field rows inside a section. Stacked: label, then input. */
.settings-fieldlist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-field-label {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-normal);
  color: var(--color-text-muted);
  line-height: 1.25;
}

/* Read-only input-styled value box. Looks like an input, isn't one
   in the default state. Pass 2 swaps these to real <input> elements
   when the user clicks Edit. */
.settings-field-value {
  display: flex;
  align-items: center;
  min-height: 33px;
  padding: 8px 16px;
  background: #202123;
  border: 0.2px solid #7D7D7D;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-normal);
  color: var(--color-text-muted);
  line-height: 1.25;
}

/* Pill-shaped read-only "row" used for the Subscription Current Plan
   display: same dark fill, but the value sits with its sparkle icon
   inline. Identical styling to .settings-field-value otherwise. */
.settings-field-value .settings-plan-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Time-zone select reuses the value box styling but is a real
   <select> from the start (read-only state just disables it). */
.settings-field-select {
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4D4D4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.settings-field-select:disabled {
  cursor: default;
  opacity: 1; /* keep visual identical to other read-only field values */
}

/* ── Edit mode ──────────────────────────────────────────────
   When .settings-section.is-editing is on, swap the muted
   read-only treatment for an active orange-border + white-text
   look on every field inside that section. Real <input>/<select>
   elements replace the <div class="settings-field-value"> boxes
   from the markup side; here we just style anything matching
   .settings-field-value (or the bare inputs) inside an editing
   section. */
.settings-section.is-editing .settings-field-value,
.settings-section.is-editing input.settings-field-value,
.settings-section.is-editing select.settings-field-value {
  border-color: var(--color-accent);
  color: var(--color-text);
}
.settings-section.is-editing input.settings-field-value::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
/* Native form controls inherit none of the page's typography by default. */
.settings-section input.settings-field-value,
.settings-section select.settings-field-value {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-normal);
  line-height: 1.25;
  width: 100%;
  box-sizing: border-box;
}
.settings-section input.settings-field-value:focus-visible,
.settings-section select.settings-field-value:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
/* Chevron tints orange when select is editable (matches accent border). */
.settings-section.is-editing .settings-field-select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E9681E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Save + Cancel pair — shown in place of Edit when editing. */
.settings-action-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.settings-action-btn.is-secondary {
  background: transparent;
  color: var(--color-text);
  border: 0.2px solid #7D7D7D;
}
.settings-action-btn.is-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-text-muted);
}

/* Inline error message under the field list when Save fails. */
.settings-error {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-normal);
  color: #FF7E9A;
  margin: 0;
  min-height: 16px;
}

/* Mobile: tighter spacing inside section cards, allow eyebrow row to
   wrap if a long button overflows alongside a long eyebrow.
   (Page padding is handled by .dash-section-page.) */
@media (max-width: 768px) {
  .settings-page { gap: 20px; }
  .settings-section { padding: 14px; gap: 14px; }
  .settings-section-header { flex-wrap: wrap; }
}


/* ═══════════════════════════════════════════════════════════════
   MY WALLET (dashboard section)
   ───────────────────────────────────────────────────────────────
   Main view of the user's saved cards. Each card shows a credit-
   card face (gradient, network label, chip, optional transfer-
   bonus pill) with a dark balance input row beneath it. Replaces
   the legacy inline-styled chips that used .dash-section / Be
   Vietnam Pro styling.
   ═══════════════════════════════════════════════════════════════ */

/* Header row: title block on the left, Save + Add/Remove on the right */
.mywallet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.mywallet-header .app-page-title,
.mywallet-header .app-page-sub {
  margin-bottom: 0;
}
.mywallet-header-titles { flex: 1 1 auto; min-width: 0; }
.mywallet-header-titles .app-page-title { margin-bottom: 4px; }
.mywallet-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.mywallet-save-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
}
.mywallet-save-link:hover { color: var(--color-text); }
.mywallet-save-link:disabled { opacity: 0.4; cursor: default; }
.mywallet-save-link.is-saved { color: var(--color-number-green); }
.mywallet-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.mywallet-add-btn:hover { background: var(--color-accent-hover); }
.mywallet-add-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Inline limit message — Free users at the 2-card cap. Subdued glass strip,
   informational only (no upgrade nudge — that's the banner below the grid). */
.mywallet-limit-msg {
  background: rgba(52, 52, 52, 0.30);
  border: 0.2px solid #7D7D7D;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--color-text-muted);
}

/* Grid of cards */
.mywallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.mywallet-card-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* The credit-card face.
   Two-layer background:
   - inline style sets the base linear-gradient(73deg, ...) per card (from JS)
   - ::before layers the 20% white→transparent linear-gradient overlay (the
     "glossy sheen" from Figma's stacked gradient). Using opacity:0.2 on the
     pseudo-element replicates the "Linear Gradient · 20%" layer shown in
     Figma's Inspect panel.
*/
.mywallet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px;
  padding: 16px;
  border-radius: 8px;
  border: 0.2px solid #D8D8D8;
  /* Background gradient is set inline per-card via JS */
  overflow: hidden;
  box-sizing: border-box;
}
.mywallet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(73deg, #FFFFFF 0%, rgba(255,255,255,0) 100%);
  opacity: 0.2;
  pointer-events: none;
  border-radius: inherit;
}
/* Square grid pattern overlay — matches the hand-drawn SVG grid in Figma
   (19×19px cells, 0.5px white stroke lines, fading top→bottom via mask).
   Reproduces the geometric texture layered on every card face. */
.mywallet-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.5) 0.5px, transparent 0.5px),
    linear-gradient(to bottom, rgba(255,255,255,0.5) 0.5px, transparent 0.5px);
  background-size: 19px 19px;
  background-position: 0 0;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  border-radius: inherit;
}
.mywallet-card.is-light::after {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.4) 0.5px, transparent 0.5px),
    linear-gradient(to bottom, rgba(0,0,0,0.4) 0.5px, transparent 0.5px);
  opacity: 0.18;
}
/* Make sure card content stacks above both overlays */
.mywallet-card > * { position: relative; z-index: 1; }
.mywallet-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mywallet-card-icon {
  width: 34px;
  height: 26.27px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  flex-shrink: 0;
}
.mywallet-card-network {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  color: #fff;
  letter-spacing: 0.06em;
}
/* Note: network label stays white on all cards per Figma (even on light
   Amex Platinum silver) — only the bottom name/balance text flips below. */

/* Middle chip — decorative SVG, left-aligned flush with card padding,
   vertically centered between top issuer row and bottom info block */
.mywallet-card-chip {
  align-self: flex-start;
  width: 34px;
  height: 26.27px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Transfer bonus pill floating at top of card (absolute positioned) */
.mywallet-bonus-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #64303B;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  color: #FFFFFF;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}
.mywallet-bonus-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.mywallet-bonus-pill.is-partner {
  background: rgba(20, 20, 20, 0.55);
}
.mywallet-bonus-pill.is-partner::before { background: var(--color-accent); }

/* Bottom info block on card */
.mywallet-card-bottom { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mywallet-card-name-line {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mywallet-card.is-dark .mywallet-card-name-line { color: rgba(255,255,255,0.85); }
.mywallet-card-balance-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.mywallet-card-balance-amount {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-accent);
  white-space: nowrap;
}
.mywallet-card-balance-label {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mywallet-card.is-dark .mywallet-card-balance-label { color: rgba(255,255,255,0.85); }

/* Balance input row beneath the card */
.mywallet-balance-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mywallet-balance-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  background: var(--color-bg);
  border: 0.2px solid #7D7D7D;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s;
}
.mywallet-balance-input:focus {
  border-color: var(--color-accent);
}
.mywallet-balance-input::placeholder { color: rgba(255,255,255,0.3); }
.mywallet-balance-points-label {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.mywallet-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(100, 48, 59, 0.85);
  border: none;
  border-radius: 50%;
  color: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.mywallet-delete-btn:hover { background: #7A3A47; }
.mywallet-delete-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.mywallet-delete-btn svg { display: block; }

/* Empty state */
.mywallet-empty {
  text-align: center;
  padding: 48px 24px;
}
.mywallet-empty-icon {
  margin-bottom: 12px;
  color: rgba(255,255,255,0.3);
}
.mywallet-empty-title {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
}

/* Inline "last updated" meta text — sits next to subtitle with a bullet */
.mywallet-meta-sep { color: rgba(255,255,255,0.3); margin: 0 8px; }
.mywallet-meta-warn { color: rgba(251,191,36,0.9); }

/* Free-tier upgrade + recommended cards section (Pass 2 will restyle)
   Pass 1 just wraps it so the old markup sits underneath the new grid
   without bleeding into the top layout. */
.mywallet-premium-section { margin-top: 20px; }

/* Upgrade banner — glass card with orange accent, Pro marketing CTA.
   Kept distinct from the heavier yellow "warning" look we had before. */
.mywallet-upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding: 18px 22px;
  background: var(--color-card-bg);
  border: 0.2px solid #7D7D7D;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  position: relative;
  overflow: hidden;
}
/* Thin orange accent bar on the left edge to distinguish the CTA */
.mywallet-upgrade-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
}
.mywallet-upgrade-banner-text {
  flex: 1 1 240px;
  min-width: 0;
}
.mywallet-upgrade-banner-title {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 20px;
  margin-bottom: 4px;
}
.mywallet-upgrade-banner-sub {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.mywallet-upgrade-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.mywallet-upgrade-banner-btn:hover { background: var(--color-accent-hover); }
.mywallet-upgrade-banner-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (max-width: 639px) {
  .mywallet-upgrade-banner { padding: 16px 18px; }
  .mywallet-upgrade-banner-btn { width: 100%; justify-content: center; }
}

/* ── My Wallet responsive ─── */
@media (max-width: 1023px) {
  .mywallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .mywallet-grid { grid-template-columns: 1fr; }
  .mywallet-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 24px;
  }
  .mywallet-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .mywallet-add-btn { flex: 1 1 auto; justify-content: center; }
  .mywallet-card { height: 200px; }
  .mywallet-card-balance-amount { font-size: 22px; }
}

/* ── Card Picker Modal (Add/Remove Cards) ─────────────────────
   Opens from the "+ Add/Remove Card" button in My Wallet. The inner
   panel intentionally uses a light cream surface (not dark) to sit
   on top of the dark backdrop — per the Figma spec. All card items
   use `data-checked` attribute to drive state; JS only toggles that
   attribute, the visuals are handled here. */
.cardpicker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.cardpicker-panel {
  background: #F8F7F5;
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  position: relative;
  font-family: var(--font-primary);
}
.cardpicker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.cardpicker-title {
  font-family: var(--font-primary);
  font-size: 30px;
  font-weight: 500;
  color: #020202;
  line-height: 1.2;
}
.cardpicker-subtitle {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: #868686;
  line-height: 1.4;
  margin-top: 6px;
}
.cardpicker-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #020202;
  line-height: 0;
  flex-shrink: 0;
}
.cardpicker-close svg { display: block; }

/* One issuer section (AMEX, CHASE, etc.) */
.cardpicker-issuer {
  margin-bottom: 32px;
}
.cardpicker-issuer:last-child { margin-bottom: 0; }
.cardpicker-issuer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid #868686;
  margin-bottom: 16px;
}
.cardpicker-issuer-icons {
  display: flex;
  flex-direction: row;
  gap: 4px;
  padding: 2px 8px 2px 0;
  flex-shrink: 0;
}
.cardpicker-issuer-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 0.2px solid #D8D8D8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.cardpicker-issuer-name {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  color: #868686;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* 3-col grid of card items within an issuer section */
.cardpicker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Individual card item (Delta SkyMiles Platinum, etc.) */
.cardpicker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #F8F7F5;
  border: 0.2px solid #D8D8D8;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, border-width 0.15s;
}
.cardpicker-item[data-checked="true"] {
  border: 1px solid #E9681E;
  padding: 11px 15px;  /* compensate for 0.8px extra border so layout doesn't shift */
}
.cardpicker-item-name {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: #000;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

/* Checkbox circle on the right of each card item */
.cardpicker-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.cardpicker-check-unchecked {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #868686;
  background: transparent;
  box-sizing: border-box;
}
.cardpicker-check-checked {
  width: 18px;
  height: 18px;
  border-radius: 100px;
  background: #E9681E;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1 / 1;
}
.cardpicker-item[data-checked="false"] .cardpicker-check-checked { display: none; }
.cardpicker-item[data-checked="true"]  .cardpicker-check-unchecked { display: none; }

/* Footer: Cancel text-link + Save Cards orange pill */
.cardpicker-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 0.5px solid #E5E5E5;
}
.cardpicker-cancel {
  background: none;
  border: none;
  padding: 8px 12px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  line-height: 20px;
}
.cardpicker-cancel:hover { color: #555; }
.cardpicker-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #E9681E;
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.cardpicker-save:hover { background: #D15A15; }
.cardpicker-save:focus-visible {
  outline: 2px solid #E9681E;
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 720px) {
  .cardpicker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .cardpicker-panel { padding: 24px 20px; }
  .cardpicker-title { font-size: 24px; }
  .cardpicker-grid { grid-template-columns: 1fr; }
  .cardpicker-footer { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .cardpicker-cancel { text-align: center; }
  .cardpicker-save { width: 100%; justify-content: center; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 320px;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    display: none;
    z-index: 1100;
    padding: 16px 24px max(24px, env(safe-area-inset-bottom)) 24px;
    overflow-y: auto;
    background: #111827;
    border-right: 1px solid var(--color-border-dark);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }
  .app-sidebar.mobile-open { display: flex; }
  .sidebar-mobile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    line-height: 1;
  }
  .sidebar-mobile-close:hover { color: var(--color-accent); }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
  }
  .mobile-menu-overlay.active { display: block; }
  .app-main { margin-left: 0; }
  .app-shell { flex-direction: column; }
  .dash-section-page { padding: 16px; }
  .app-page-title { font-size: 22px; }
  .app-page-sub { font-size: 13px; }
  /* Lock body scroll when mobile sidebar is open */
  body.sidebar-open { overflow: hidden; }
  /* Dashboard mobile header layout: hamburger on the left, brand centered.
     Achieved by absolutely positioning the hamburger so the flex-centered
     brand text is not nudged off-center. Solid background so content below
     doesn't bleed through the fixed header. */
  body.on-dashboard .masthead-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    justify-content: center;
    padding: 16px 20px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-dark);
  }
  body.on-dashboard .mh-v2-brand {
    margin: 0;
    font-size: 16px;
  }
  body.on-dashboard .mh-v2-right {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    gap: 0;
  }
  /* Hide everything in the right-group except the hamburger */
  body.on-dashboard .mh-v2-cta,
  body.on-dashboard .mh-v2-signin,
  body.on-dashboard .user-menu { display: none !important; }
  /* Push dashboard content below the fixed mobile header */
  body.on-dashboard .dash-section-page {
    padding-top: 80px;
  }
  /* Keep stats grid (Transferable Points + April Credits) side-by-side on mobile */
  .dash-stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  /* Stack dashboard layout grid vertically (Points Wallet above April Benefits) */
  .dash-layout-grid { grid-template-columns: 1fr !important; }
  /* Stack testimonials grid to single column on mobile */
  .testimonials-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  /* Stack Your wallet and April credits section vertically on mobile */
  .wallet-credits-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .card-benefit-chip { padding: 14px; }
  .path-details { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .pricing-grid { grid-template-columns: 1fr !important; }
  .pricing-card.featured { order: -1; }
}

/* Mobile review cards - single column */
@media (max-width: 768px) {
  /* Issue #1: Move "Points Management Platform" down with more margin */
  .hero-tag { margin-bottom: 24px !important; margin-top: 20px !important; }
  
  /* Issue #2: Space is now handled by dark transition section */
  
  /* Issue #3: Stack "What We Do" widgets to full width - convert 3-column grid to 1-column */
  /* Target any div with repeat(3,1fr) in its style attribute */
  div[style*="repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  /* Also target with more specific patterns */
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  /* Issue #4: Align cost section stats on mobile */
  div[style*="gap:48px;flex-wrap"] {
    gap: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  div[style*="gap:48px;flex-wrap"] > div {
    width: 100% !important;
    margin-bottom: 32px !important;
  }
  
  /* Target the testimonials grid with 3 columns - convert to 1 column */
  section[style*="padding:0 48px"] > div > div[style*="display:grid"] {
    grid-template-columns: 1fr !important;
  }
  /* Dashboard grid: keep stats 2-column, make everything else full-width */
  .dash-layout-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 480px) {
  .sidebar-link { min-width: 52px; padding: 6px 8px; font-size: 9px; }
  .slink-icon { font-size: 14px; }
  .dash-section-page { padding: 12px; }
  .app-widget { padding: 14px; }
  .path-card { padding: 14px; }
  .acc-header { padding: 14px 16px; }
  .acc-body-inner { padding: 14px; }
  .results-header { padding: 20px 16px; }
  .results-title { font-size: 18px !important; }
  .path-detail-val { font-size: 16px; }
}
/* ── Onboarding ──────────────────────────────────────────────── */
/* ============================================================
   ONBOARDING FLOW (#page-onboard)
   ────────────────────────────────────────────────────────────
   Dark-theme redesign matching the rest of the app (Homepage,
   Wallet, Settings, etc.). Surface = dark navy bg + glass card
   + Inter typography + orange-accent buttons. Form inputs are
   scoped INSIDE .onboard-card so the global .form-* defaults
   (used by login modal etc.) are not affected.
   ============================================================ */

/* ── Page wrapper + logo ──────────────────────────────────── */
.onboard-wrap {
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 80px;
}
.onboard-logo {
  font-family: var(--font-primary);
  font-size: var(--fs-logo);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin-bottom: 40px;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.onboard-logo em {
  color: var(--color-accent);
  font-style: italic;
  font-weight: var(--fw-medium);
}

/* ── Glass card container ─────────────────────────────────── */
.onboard-card {
  background: var(--color-card-bg);
  border: 0.2px solid #7D7D7D;
  border-radius: var(--radius-sm);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  width: 100%;
  max-width: 520px;
  padding: 36px;
}

/* ── Step indicator ───────────────────────────────────────── */
.onboard-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}
.onboard-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(52, 52, 52, 0.30);
  border: 0.2px solid #7D7D7D;
  color: var(--color-text-muted);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.onboard-step-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
}
.onboard-step-dot.done {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
}
.onboard-step-line {
  flex: 1;
  height: 0.5px;
  background: #D4D4D4;
  transition: background 200ms ease;
}
.onboard-step-line.done {
  background: var(--color-accent);
  height: 1px;
}

/* ── Headings ─────────────────────────────────────────────── */
.onboard-h2 {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: var(--fw-medium);
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.2;
}
.onboard-sub {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  font-weight: var(--fw-normal);
  margin: 0 0 28px;
  line-height: var(--lh-body);
}

/* ── Plan cards (step 1) ──────────────────────────────────── */
.onboard-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.onboard-plan-card {
  background: rgba(52, 52, 52, 0.30);
  border: 0.2px solid #7D7D7D;
  border-radius: var(--radius-sm);
  padding: 20px;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  text-align: center;
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
}
.onboard-plan-card:hover {
  border-color: rgba(233, 104, 30, 0.6);
}
.onboard-plan-card.selected {
  border: 1px solid var(--color-accent);
}
.opc-name {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 12px;
}
.opc-price {
  font-family: var(--font-primary);
  font-size: 30px;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1;
}
.opc-period {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-normal);
  color: var(--color-text-muted);
}
.opc-desc {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-normal);
  color: var(--color-text-muted);
  margin-top: 12px;
  line-height: 1.5;
}
.onboard-annual-note {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin-bottom: 20px;
  display: none;
}

/* ── Primary action button ────────────────────────────────── */
.onboard-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background 200ms ease;
  margin-top: 8px;
}
.onboard-btn:hover {
  background: var(--color-accent-hover);
}
.onboard-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.onboard-btn:disabled:hover {
  background: var(--color-accent);
}
.onboard-btn.gold {
  background: var(--color-accent);
}

/* ── Secondary / back button ──────────────────────────────── */
.onboard-back {
  background: transparent;
  border: 0.2px solid #7D7D7D;
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--fw-normal);
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
  transition: background 200ms ease, border-color 200ms ease;
}
.onboard-back:hover {
  background: rgba(52, 52, 52, 0.50);
  border-color: #999;
}

/* ── Card chip grid (step 3) ──────────────────────────────── */
.onboard-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.onboard-card-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(52, 52, 52, 0.30);
  border: 0.2px solid #7D7D7D;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
}
.onboard-card-chip:hover {
  border-color: rgba(233, 104, 30, 0.6);
}
.onboard-card-chip.selected {
  border: 1px solid var(--color-accent);
}
.onboard-card-chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.onboard-card-chip.disabled:hover {
  border-color: #7D7D7D;
}
.onboard-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  flex-shrink: 0;
}
.onboard-chip-name {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-text);
  line-height: 1.3;
}

/* ── Footer note + sign-in link ───────────────────────────── */
.onboard-note {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 16px;
}
.onboard-note a {
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}
.onboard-note a:hover {
  color: var(--color-accent-hover);
}

/* ── Free-plan limit warning (step 3) ─────────────────────── */
.onboard-free-limit {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(252, 188, 4, 0.08);
  border: 0.2px solid rgba(252, 188, 4, 0.5);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.5;
}
.onboard-free-limit strong {
  color: #FCBC04;
  font-weight: var(--fw-medium);
}

/* ── Form inputs scoped to onboard-card (step 2, step 4) ──
   Overrides the global .form-* light-theme defaults only
   inside the dark onboarding container. Other login/signup
   modals on the site keep their original styling. */
.onboard-card .form-group {
  margin-bottom: 14px;
}
.onboard-card .form-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  margin-bottom: 6px;
  letter-spacing: normal;
  text-transform: none;
}
.onboard-card .form-input {
  width: 100%;
  padding: 10px 14px;
  background: #202123;
  border: 0.2px solid #7D7D7D;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--color-text);
  transition: border-color 200ms ease;
}
.onboard-card .form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #202123;
}
.onboard-card .form-input::placeholder {
  color: rgba(212, 212, 212, 0.4);
}
.onboard-card .form-error {
  font-family: var(--font-primary);
  font-size: 12px;
  color: #FF7E9A;
  margin-top: 5px;
  display: none;
}
.onboard-card .form-error.show {
  display: block;
}

/* ── Mobile: stack plan cards / card chips, tighten padding ── */
@media (max-width: 480px) {
  .onboard-plan-grid { grid-template-columns: 1fr; }
  .onboard-card-grid { grid-template-columns: 1fr; }
  .onboard-card { padding: 24px 20px; }
  .onboard-h2 { font-size: 22px; }
  .onboard-step-indicator { margin-bottom: 24px; }
}
.wizard-card { background: transparent; border: none; box-shadow: none; border-radius: 0; overflow: visible; position: relative; }
/* wizard-card.results-active removed */
.wizard-card-header { padding: 32px 36px 24px; border-bottom: 1px solid rgba(194,207,224,0.1); }
.step-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.step-title { font-family: var(--font-display); font-size: 30px; font-weight: 200; letter-spacing: -0.03em; color: #fff; }
.step-hint { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.4); margin-top: 4px; }
.wizard-body { padding: 28px 36px; }
.wizard-footer { padding: 20px 36px 28px; border-top: 1px solid rgba(194,207,224,0.1); display: flex; align-items: center; justify-content: space-between; }

/* Card options */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card-option { border: 1px solid rgba(194,207,224,0.1); border-radius: 12px; padding: 16px 18px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 14px; background: var(--night-2); position: relative; overflow: hidden; }
.card-option:hover { border-color: rgba(194,207,224,0.35); background: rgba(194,207,224,0.05); }
.card-option.selected { border-color: var(--gold-light); background: rgba(194,207,224,0.08); box-shadow: 0 0 0 1px rgba(194,207,224,0.2); }
.card-option.selected::after { content: '✓'; position: absolute; top: 10px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.card-icon { width: 44px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.card-name { font-size: 14px; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,0.9); }
.card-nick { font-size: 11px; color: rgba(255,255,255,0.35); font-family: var(--font-mono); }

/* Balance */
.balance-list { display: flex; flex-direction: column; gap: 12px; }
.balance-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 12px; background: var(--night-2); border: 1px solid rgba(194,207,224,0.1); }
.balance-icon { width: 38px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.balance-label { flex: 1; }
.balance-label strong { font-size: 14px; font-weight: 500; display: block; color: rgba(255,255,255,0.9); }
.balance-label span { font-size: 11px; color: rgba(255,255,255,0.35); font-family: var(--font-mono); }
.balance-input-wrap { display: inline-flex; align-items: center; gap: 8px; }
.balance-input { width: 130px; padding: 8px 12px; border: 1px solid rgba(194,207,224,0.15); border-radius: 10px; font-family: var(--font-mono); font-size: 14px; background: rgba(255,255,255,0.05); color: #fff; transition: border-color 0.2s; text-align: right; box-sizing: border-box; }
.balance-input:focus { outline: none; border-color: rgba(194,207,224,0.4); }
.balance-suffix { font-size: 11px; color: rgba(255,255,255,0.4); font-family: var(--font-mono); letter-spacing: 0.05em; flex-shrink: 0; }

/* Destination */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dest-option { border: 1px solid rgba(194,207,224,0.1); border-radius: 12px; padding: 18px 12px; cursor: pointer; transition: all 0.2s; text-align: center; background: var(--night-2); position: relative; }
.dest-option:hover { border-color: rgba(194,207,224,0.35); background: rgba(194,207,224,0.06); }
.dest-option.selected { border-color: var(--gold-light); background: rgba(194,207,224,0.08); box-shadow: 0 0 0 1px rgba(194,207,224,0.2); }
.dest-option.selected::after { content: '✓'; position: absolute; top: 8px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.dest-flag { font-size: 26px; margin-bottom: 8px; }
.dest-name { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.9); }
.dest-ex { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 3px; }

/* Cabin */
.cabin-row { display: flex; gap: 12px; }
.cabin-option { flex: 1; border: 1px solid rgba(194,207,224,0.12); border-radius: 12px; padding: 20px 14px; cursor: pointer; text-align: center; transition: all 0.2s; background: var(--night-2); }
.cabin-option:hover { border-color: rgba(194,207,224,0.4); background: rgba(194,207,224,0.06); }
.cabin-option.selected { border-color: var(--gold-light); background: rgba(194,207,224,0.08); box-shadow: 0 0 0 1px rgba(194,207,224,0.2); }
.cabin-icon { font-size: 28px; margin-bottom: 10px; }
.cabin-name { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); }
.cabin-pts { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 4px; font-family: var(--font-mono); }
.pref-row { display: flex; gap: 10px; margin-top: 20px; }
.pref-toggle { flex: 1; padding: 12px; border: 1px solid rgba(194,207,224,0.12); border-radius: 10px; cursor: pointer; text-align: center; transition: all 0.2s; background: var(--night-2); font-size: 13px; color: rgba(255,255,255,0.6); font-family: var(--font-body); }
.pref-toggle:hover { border-color: rgba(194,207,224,0.35); color: rgba(255,255,255,0.85); }
.pref-toggle.selected { border-color: var(--gold-light); background: rgba(194,207,224,0.08); font-weight: 500; color: #fff; }

/* Buttons */
.btn-back { font-size: 12px; color: rgba(255,255,255,0.35); background: none; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; cursor: pointer; padding: 14px 20px; font-family: var(--font-body); transition: all 0.2s; letter-spacing: 0.06em; text-transform: uppercase; }
.btn-back:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.25); }
.btn-next { background: transparent; color: var(--gold-light); border: 1px solid rgba(194,207,224,0.35); border-radius: 6px; padding: 13px 32px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); display: flex; align-items: center; gap: 8px; text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; }
.btn-next:hover { border-color: rgba(194,207,224,0.7); color: #fff; transform: translateY(-1px); }
.btn-next:disabled { border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.2); cursor: not-allowed; transform: none; background: transparent; }
.btn-restart { background: none; border: 1px solid rgba(194,207,224,0.2); color: rgba(255,255,255,0.4); border-radius: 6px; padding: 11px 24px; font-size: 12px; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.btn-restart:hover { border-color: rgba(194,207,224,0.5); color: rgba(255,255,255,0.7); }

/* Profile banner */
.profile-banner { background: var(--green-light); border: 1.5px solid var(--green); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; font-family: var(--font-mono); flex-shrink: 0; }
.profile-info strong { display: block; font-size: 14px; font-weight: 500; color: var(--green); }
.profile-info span { font-size: 12px; color: var(--muted-light); }
.profile-info { flex: 1; }
.profile-load-btn { font-size: 12px; font-weight: 500; color: var(--green); background: none; border: 1.5px solid var(--green); border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: all 0.2s; white-space: nowrap; font-family: var(--font-body); }
.profile-load-btn:hover { background: var(--green); color: #fff; }

/* Results */
.results-header {
  background: var(--night);
  color: #fff;
  padding: 32px 48px;
  margin: -48px -48px 32px;
  width: calc(100% + 96px);
  box-sizing: border-box;
}
.results-header::before { display: none; }
.results-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; position: relative; z-index: 2; }
.results-title { font-family: var(--font-display); font-size: 32px; font-weight: 300; color: #fff; letter-spacing: -0.01em; margin-bottom: 4px; position: relative; z-index: 2; }
.results-sub { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.4); position: relative; z-index: 2; }
.results-body { padding: 0; }

/* Bonus banner */
.bonus-banner { background: linear-gradient(135deg, #fffbee, #fff8e0); border: 1.5px solid rgba(10,10,10,0.4); border-radius: 16px; padding: 18px 22px; display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.bonus-fire { font-size: 26px; flex-shrink: 0; }
.bonus-text strong { font-size: 15px; font-weight: 600; color: #7a5a1a; display: block; }
.bonus-text span { font-size: 13px; color: var(--muted-light); }
.bonus-badge { margin-left: auto; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 100px; white-space: nowrap; flex-shrink: 0; }

/* Path cards */
.path-section-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; width: 100%; }
.path-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.see-more-btn {
  width: 100%; padding: 12px; background: none;
  border: 1.5px solid var(--border-light); border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--muted-light);
  cursor: pointer; font-family: var(--font-body);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s; margin-top: 4px;
}
.see-more-btn:hover { border-color: var(--ink); color: var(--ink); }
.see-more-btn .chevron { transition: transform 0.25s; display: inline-block; }
.see-more-btn.open .chevron { transform: rotate(180deg); }
.see-more-cards { display: none; flex-direction: column; gap: 10px; margin-top: 4px; }
.see-more-cards.open { display: flex; }
.path-card { border: 1px solid rgba(194,207,224,0.1); border-radius: 14px; padding: 20px 22px; background: var(--night-2); transition: all 0.2s; }
.path-card:hover { border-color: rgba(194,207,224,0.35); background: rgba(194,207,224,0.05); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.path-card.top-pick { border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.06); }
.path-card.locked {
  opacity: 0.5;
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  position: relative;
}
.path-card.locked::after {
  content: '🔒 Upgrade to Pro to unlock';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(247,246,243,0.45);
  border-radius: inherit;
  pointer-events: none;
}
.path-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.path-pill { font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.04em; white-space: nowrap; flex-shrink: 0; font-family: var(--font-mono); }
.pill-best { background: var(--green); color: #fff; }
.pill-good { background: var(--ink); color: #fff; }
.pill-bonus { background: var(--ink); color: #fff; }
.path-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; color: #fff; }
.path-route { font-size: 12px; color: rgba(255,255,255,0.4); font-family: var(--font-mono); }
.path-details { display: flex; gap: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(194,207,224,0.08); flex-wrap: wrap; }
.path-detail-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); font-family: var(--font-mono); }
.path-detail-val { font-size: 14px; font-weight: 500; font-family: var(--font-mono); margin-top: 2px; color: rgba(255,255,255,0.9); }
.path-detail-val.good { color: var(--green); }
.path-detail-val.warn { color: #b45309; }

/* Math box */
.math-box { background: var(--night-2); border: 1px solid rgba(194,207,224,0.1); border-radius: 14px; padding: 22px 24px; margin-top: 20px; }
.math-title { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-light); margin-bottom: 16px; }
.math-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(194,207,224,0.08); }
.math-row:last-child { border-bottom: none; padding-top: 12px; }
.math-key { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 300; }
.math-val { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: #fff; }
.math-val.gold { color: var(--gold-light); }
.math-val.green { color: #3ddc84; }
.math-val.big { font-size: 20px; }

/* Handoffs */
.section-divider { height: 1px; background: var(--border-light); margin: 24px 0; }
.handoff-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 10px; }
.handoff-row { display: flex; gap: 10px; flex-wrap: wrap; }
.handoff-btn { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.2s; border: 1.5px solid var(--border-light); background: #fff; color: var(--ink); font-family: var(--font-body); }
.handoff-btn:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

/* Paywall */
.paywall-gate { background: #fff; border: 1.5px solid rgba(10,10,10,0.3); border-radius: 18px; padding: 30px; text-align: center; margin: 16px 0; }
.paywall-gate h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.paywall-gate p { font-size: 14px; font-weight: 300; color: var(--muted-light); margin-bottom: 20px; line-height: 1.6; }
.paywall-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; text-align: left; }
.paywall-feature { font-size: 13px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.paywall-feature::before { content: '✦'; color: var(--ink); font-size: 10px; flex-shrink: 0; }
.btn-upgrade { background: var(--ink); color: #fff; border: none; border-radius: 12px; padding: 14px 32px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: var(--font-body); transition: all 0.2s; box-shadow: 0 4px 20px var(--gold-glow); }
.btn-upgrade:hover { background: var(--gold-light); color: var(--ink); transform: translateY(-1px); }
.paywall-note { font-size: 11px; color: var(--muted-light); margin-top: 10px; font-family: var(--font-mono); }

/* ── PROFILE PAGE ───────────────────────────────────────────── */
.profile-page-card { background: #fff; border: 1px solid var(--border-light); border-radius: 24px; box-shadow: 0 4px 40px rgba(0,0,0,0.06); overflow: hidden; }
.profile-page-header { background: #fff; padding: 32px 36px; position: relative; overflow: hidden; }
.profile-page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 100% at 0% 50%, rgba(10,10,10,0.1), transparent 60%); pointer-events: none; }
.profile-page-title { font-family: var(--font-display); font-size: 32px; font-weight: 300; color: #fff; position: relative; z-index: 2; }
.profile-page-sub { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.4); margin-top: 4px; position: relative; z-index: 2; }
.profile-section { padding: 24px 36px; border-bottom: 1px solid var(--border-light); }
.profile-section:last-child { border-bottom: none; }
.profile-section-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.profile-cards-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.profile-card-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border-light); border-radius: 12px; background: var(--cream); }
.profile-card-icon { width: 36px; height: 24px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.profile-card-label { flex: 1; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85); }
.profile-pts-input { width: 110px; padding: 6px 10px; border: 1.5px solid var(--border-light); border-radius: 8px; font-family: var(--font-mono); font-size: 13px; text-align: right; background: #fff; color: var(--ink); }
.profile-pts-input:focus { outline: none; border-color: var(--ink); }
.btn-save-profile { background: var(--ink); color: #fff; border: none; border-radius: 12px; padding: 12px 28px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: var(--font-body); transition: all 0.2s; }
.btn-save-profile:hover { background: var(--ink); }
.save-success { font-size: 13px; color: var(--green); margin-left: 12px; opacity: 0; transition: opacity 0.3s; }
.save-success.show { opacity: 1; }
.sub-status-box { border: 1.5px solid var(--border-light); border-radius: 14px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sub-status-box.active-pro { border-color: var(--ink); background: #fffbf0; }
.sub-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.sub-desc { font-size: 13px; font-weight: 300; color: var(--muted-light); margin-top: 3px; }
.btn-manage { background: none; border: 1.5px solid var(--border-light); border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; font-family: var(--font-body); white-space: nowrap; transition: all 0.2s; color: var(--ink); }
.btn-manage:hover { border-color: var(--ink); }

/* ── AUTH MODAL ─────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(8,12,18,0.7); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; opacity: 1; }
.modal { background: #fff; border-radius: 24px; box-shadow: 0 32px 80px rgba(0,0,0,0.2); width: 100%; max-width: 500px; margin: 20px; animation: fadeUp 0.25s ease forwards; overflow: hidden; }
.modal-header { padding: 28px 32px 16px; display: flex; align-items: flex-start; justify-content: space-between; }
.modal-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--muted-light); padding: 0; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 24px 32px 32px; }
.modal-tabs { display: flex; margin-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.modal-tab { flex: 1; padding: 10px; text-align: center; font-size: 14px; font-weight: 400; cursor: pointer; color: var(--muted-light); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s; font-family: var(--font-body); }
.modal-tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.modal-tab-panel { display: none; }
.modal-tab-panel.active { display: block; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--muted-light); margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-mono); }
.form-input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border-light); border-radius: 12px; font-family: var(--font-body); font-size: 15px; background: var(--cream); color: var(--ink); transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--ink); background: #fff; }
.form-input::placeholder { color: #c0bab0; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; display: none; }
.form-error.show { display: block; }
.btn-primary { width: 100%; padding: 12px 16px; background: var(--ink); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); margin-top: 8px; }
.btn-primary:hover { background: var(--ink); }
.btn-primary:disabled { background: var(--border-light); color: var(--muted-light); cursor: not-allowed; }
.form-divider { text-align: center; font-size: 12px; color: var(--muted-light); margin: 14px 0 0; }

/* ── AUTH MODAL REDESIGN ─────────────────────────────────────────── */
/* ============================================================
   AUTH MODAL (#authModal — Sign In / Create Account)
   ────────────────────────────────────────────────────────────
   Dark-theme redesign matching the rest of the app. Uses a
   solid dark navy surface (rather than glass) so the modal
   reads clearly against the blurred dark backdrop. Form inputs
   are scoped INSIDE .auth-modal so the global .form-* defaults
   (used elsewhere) are not affected.
   ============================================================ */

.auth-modal {
  max-width: 460px !important;
  padding: 0 !important;
  background: #0F1420 !important;
  border: 0.2px solid #7D7D7D !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5) !important;
  display: flex;
  flex-direction: column;
  position: relative;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-text-muted);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: color 200ms ease;
}

.auth-close:hover {
  color: var(--color-text);
}

.auth-tabs-container {
  display: flex;
  gap: 0;
  padding: 0 28px;
  margin-top: 28px;
  border-bottom: 0.5px solid #D4D4D4;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 0;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 200ms ease;
}

.auth-tab-btn.active {
  color: var(--color-accent);
}

.auth-tab-btn:hover:not(.active) {
  color: var(--color-text);
}

.auth-panel {
  display: none;
  padding: 0;
}

.auth-panel.active {
  display: block;
}

.auth-panel-content {
  padding: 28px;
}

.auth-heading {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: var(--fw-medium);
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.2;
}

.auth-description {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  margin: 0 0 24px;
  line-height: var(--lh-body);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-form .form-group {
  margin-bottom: 14px;
}

.auth-form .form-group:last-of-type {
  margin-bottom: 20px;
}

/* Form inputs scoped to the auth modal — overrides global
   .form-* light-theme defaults inside the dark surface only. */
.auth-modal .form-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  margin-bottom: 6px;
  letter-spacing: normal;
  text-transform: none;
}

.auth-modal .form-input {
  width: 100%;
  padding: 10px 14px;
  background: #202123;
  border: 0.2px solid #7D7D7D;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--color-text);
  transition: border-color 200ms ease;
}

.auth-modal .form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #202123;
}

.auth-modal .form-input::placeholder {
  color: rgba(212, 212, 212, 0.4);
}

.auth-modal .form-error {
  font-family: var(--font-primary);
  font-size: 12px;
  color: #FF7E9A;
  margin-top: 5px;
  margin-bottom: 8px;
  display: none;
}

.auth-modal .form-error.show,
.auth-modal .form-error:not(:empty) {
  display: block;
}

/* Primary action button — orange pill, scoped to the auth modal */
.auth-modal .btn-primary {
  width: 100%;
  margin-top: 0;
  padding: 12px 16px;
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background 200ms ease;
}

.auth-modal .btn-primary:hover {
  background: var(--color-accent-hover);
}

.auth-modal .btn-primary:disabled {
  background: var(--color-accent);
  opacity: 0.4;
  color: var(--color-text);
  cursor: not-allowed;
}

.auth-footer {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 0 28px 28px;
  padding-top: 14px;
}

.auth-footer a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.auth-footer a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.auth-footer p {
  font-family: var(--font-primary);
  color: var(--color-text-muted);
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
.step-panel { display: none !important; }
.step-panel.active { display: block !important; }
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
/* Save search prompt */
#saveSearchPrompt {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1.5px solid var(--border-light);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  padding: 18px 24px;
}
#saveSearchPrompt.visible { transform: translateY(0); }
#saveSearchPrompt .prompt-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (max-width: 600px) {
  #saveSearchPrompt .prompt-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  #saveSearchPrompt .prompt-actions { width: 100%; }
  #saveSearchPrompt .prompt-actions button { width: 100%; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .masthead { padding: 0 24px; }
  .hero { padding: 0 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .how-section, .feature-section, .programs-section, .pricing-section { padding-left: 24px; padding-right: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-right { padding: 0 40px 48px; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 20px; text-align: center; padding: 32px 24px; }
  .wizard-hero { padding: 40px 24px 32px; }
  .progress-wrap, .wizard-wrap { padding-left: 24px; padding-right: 24px; }
  .wizard-card-header, .wizard-body, .wizard-footer, .results-body { padding-left: 20px; padding-right: 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: repeat(2,1fr); }
  .cabin-row { flex-direction: column; }
  .dot-label { display: none; }
  .nav { display: none; }
}


  /* EMAIL CAPTURE */
  .email-capture { background: linear-gradient(135deg, #0e1420 0%, #1a2035 100%); border-radius: 16px; padding: 28px 28px 24px; margin-top: 20px; text-align: center; }
  .email-capture-icon { font-size: 28px; margin-bottom: 10px; }
  .email-capture-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 6px; letter-spacing: -0.01em; }
  .email-capture-sub { font-size: 13px; color: var(--muted-light); margin-bottom: 18px; font-weight: 300; line-height: 1.5; }
  .email-capture-row { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
  .email-capture-input { flex: 1; padding: 11px 16px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; font-family: var(--font-body); outline: none; transition: border-color 0.2s; }
  .email-capture-input::placeholder { color: var(--muted-light); }
  .email-capture-input:focus { border-color: var(--ink); }
  .email-capture-btn { padding: 11px 20px; background: var(--ink); border: none; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-body); white-space: nowrap; transition: all 0.2s; }
  .email-capture-btn:hover { background: #b8802a; transform: translateY(-1px); }
  .email-capture-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
  .email-capture-success { font-size: 14px; color: #6fcf97; margin-top: 12px; display: none; }
  .email-capture-note { font-size: 11px; color: var(--muted-light); margin-top: 10px; }
  /* GUIDE MODAL */
  .guide-modal-overlay { display:none;position:fixed;inset:0;z-index:500;background:rgba(8,12,18,0.6);backdrop-filter:blur(6px);align-items:flex-end; }
  .guide-modal-overlay.open { display:flex; }
  .guide-modal { background:#fff;width:100%;max-height:90vh;border-radius:24px 24px 0 0;overflow:hidden;display:flex;flex-direction:column;animation:slideUp 0.3s cubic-bezier(0.4,0,0.2,1); }
  @keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
  .guide-modal-header { padding:20px 24px 16px;border-bottom:1px solid var(--border-light);display:flex;align-items:center;justify-content:space-between;flex-shrink:0; }
  .guide-modal-title { font-family:var(--font-display);font-size:20px;font-weight:600;color:var(--ink);letter-spacing:-0.01em; }
  .guide-modal-sub { font-size:12px;color:var(--muted-light);margin-top:2px; }
  .guide-modal-close { width:34px;height:34px;border-radius:50%;background:var(--cream);border:none;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;color:var(--ink); }
  .guide-modal-close:hover { background:var(--border-light); }
  .guide-modal-body { overflow-y:auto;padding:20px 24px 40px;flex:1; }
  .guide-modal-section { margin-bottom:24px; }
  .guide-modal-section-title { font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:var(--muted-light);margin-bottom:12px;padding-bottom:6px;border-bottom:1.5px solid var(--border-light); }
  .guide-flow { display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--cream);border-radius:12px;padding:14px 16px; }
  .guide-flow-step { background:#fff;border:1.5px solid var(--border-light);border-radius:8px;padding:7px 14px;font-size:13px;font-weight:600;color:var(--ink); }
  .guide-flow-arrow { color:var(--gold);font-weight:700;font-size:15px; }
  .guide-steps-list { display:flex;flex-direction:column;gap:10px; }
  .guide-step-row { display:flex;gap:12px;align-items:flex-start; }
  .guide-step-num { width:24px;height:24px;border-radius:50%;flex-shrink:0;background:var(--ink);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:2px; }
  .guide-step-text { font-size:14px;line-height:1.6;color:var(--ink);font-weight:300;padding-top:1px; }
  .guide-tip-box { background:#fffbf0;border:1.5px solid rgba(10,10,10,0.3);border-radius:12px;padding:12px 16px;font-size:13px;color:#7a5a1a;line-height:1.5;margin-top:4px; }
  .guide-warn-box { background:#fff5f5;border:1.5px solid rgba(192,57,43,0.2);border-radius:12px;padding:12px 16px;font-size:13px;color:#922b21;line-height:1.5;margin-top:8px; }
  .guide-badge { display:inline-flex;font-size:11px;font-weight:600;padding:4px 12px;border-radius:20px;margin-bottom:14px; }
  .guide-badge.instant { background:#e8f5ed;color:#1a6b3c; }
  .guide-badge.days { background:#fffbf0;color:#7a5a1a; }
  .guide-links-row { display:flex;gap:8px;flex-wrap:wrap;margin-top:12px; }
  .guide-modal-link { display:inline-flex;align-items:center;padding:9px 18px;border-radius:10px;font-size:13px;font-weight:500;text-decoration:none;transition:all 0.2s;font-family:var(--font-body);border:1.5px solid var(--border-light);background:#fff;color:var(--ink); }
  .guide-modal-link:hover { border-color:var(--gold); }
  .guide-modal-link.primary { background:var(--ink);color:#fff;border-color:var(--ink); }
  .guide-modal-link.primary:hover { background:#2a2a2a);border-color:var(--gold); }

  .step-panel:not(.active) .wizard-footer { display: none !important; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-body { max-height: 200px !important; }
.faq-item:hover > div:first-child > div:first-child { color: var(--gold-light); }


/* ===== PHASE 3: LOSS CALCULATOR STYLES - PREMIUM REDESIGN ===== */
.loss-calculator-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.loss-calculator-modal.active {
  display: flex;
}

.loss-calculator-content {
  background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(20,30,50,0.95) 100%);
  border: 1px solid rgba(194,207,224,0.15);
  border-radius: 14px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(194,207,224,0.1);
  color: #fff;
  position: relative;
  margin: auto;
}

.loss-calculator-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
  letter-spacing: -0.01em;
}

.loss-calculator-content > p {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.calculator-question {
  margin-bottom: 20px;
}

.calculator-question label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  background: rgba(194,207,224,0.03);
  border: 1px solid rgba(194,207,224,0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.radio-option:hover {
  background: rgba(194,207,224,0.06);
  border-color: rgba(194,207,224,0.25);
}

.radio-option input {
  margin-right: 10px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #3b82f6;
}

.radio-option label {
  margin: 0;
  cursor: pointer;
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  text-transform: none;
  letter-spacing: 0;
}

.calculator-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 18px;
  box-shadow: 0 4px 12px rgba(59,130,246,0.2);
}

.calculator-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(59,130,246,0.3);
  transform: translateY(-1px);
}

/* Loss Results Modal */
.loss-results-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.loss-results-modal.active {
  display: flex;
}

.loss-results-content {
  background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(20,30,50,0.95) 100%);
  border: 1px solid rgba(194,207,224,0.15);
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(194,207,224,0.1);
  color: #fff;
  position: relative;
  margin: auto;
}

.loss-results-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.01em;
}

.loss-amount {
  font-size: 40px;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
}

.loss-results-content p {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.results-cta-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59,130,246,0.2);
}

.results-cta-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(59,130,246,0.3);
  transform: translateY(-1px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(194,207,224,0.08);
  border: 1px solid rgba(194,207,224,0.12);
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(194,207,224,0.12);
  border-color: rgba(194,207,224,0.2);
  color: #fff;
}

/* ═════════════════════════════════════════════════════════════════════ */
/* PHASE 3.2A - REFERRAL WIDGET STYLES */
/* ═════════════════════════════════════════════════════════════════════ */

/* ─── Referral Widget Container ─── */
.referral-widget {
  background: linear-gradient(135deg, rgba(217,119,6,0.05) 0%, rgba(217,119,6,0.02) 100%) !important;
  border: 1px solid rgba(217,119,6,0.15) !important;
}

/* ─── Referral Code Display ─── */
.referral-code-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.referral-code-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.referral-code-display:hover {
  background: rgba(0,0,0,0.25);
  border-color: rgba(217,119,6,0.3);
}

.referral-code-text {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #d97706;
  letter-spacing: 2px;
  flex: 1;
}

/* ─── Referral Link Display ─── */
.referral-link-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border-radius: 8px;
}

.referral-link-input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: rgba(194,207,224,0.7);
  font-size: 12px;
  font-family: 'Courier New', monospace;
  cursor: text;
  transition: all 0.2s ease;
}

.referral-link-input:hover {
  background: rgba(0,0,0,0.25);
  border-color: rgba(217,119,6,0.3);
}

.referral-link-input:focus {
  outline: none;
  background: rgba(0,0,0,0.3);
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217,119,6,0.1);
}

/* ─── Copy Button ─── */
.referral-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(217,119,6,0.15);
  border: 1px solid rgba(217,119,6,0.3);
  border-radius: 8px;
  color: #d97706;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}

.referral-copy-btn:hover {
  background: rgba(217,119,6,0.25);
  border-color: #d97706;
  transform: translateY(-1px);
}

.referral-copy-btn:active {
  transform: translateY(0);
  background: rgba(217,119,6,0.35);
}

.copy-icon {
  font-size: 14px;
}

.copy-text {
  display: inline;
}

/* ─── Share Buttons ─── */
.referral-share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.referral-share-btn {
  flex: 1;
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 8px;
  color: #6366f1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.referral-share-btn:hover {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-1px);
}

.referral-share-btn:active {
  transform: translateY(0);
  background: rgba(99,102,241,0.3);
}

.share-icon {
  font-size: 14px;
}

.share-text {
  display: inline;
}

/* ─── Statistics Grid ─── */
.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.referral-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 8px;
  text-align: center;
}

.referral-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 4px;
}

.referral-stat-label {
  font-size: 11px;
  color: var(--muted-light);
  font-weight: 500;
  line-height: 1.3;
}

/* ─── Referral History ─── */
.referral-history-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.referral-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: rgba(99,102,241,0.05);
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: 6px;
  font-size: 12px;
}

.referral-history-name {
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.referral-history-email {
  font-size: 11px;
  color: var(--muted-light);
}

.referral-history-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.referral-status-pending {
  background: rgba(217,119,6,0.15);
  color: #d97706;
}

.referral-status-signed {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

.referral-status-converted {
  background: rgba(99,102,241,0.15);
  color: #6366f1;
}

/* ─── Toast Notification ─── */
.referral-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  background: #22c55e;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  animation: slideIn 0.3s ease, slideOut 0.3s ease 2.2s;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* ─── Mobile Responsive ─── */
@media (max-width: 768px) {
  .referral-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .referral-stat-card {
    padding: 10px 8px;
  }

  .referral-stat-value {
    font-size: 18px;
  }

  .referral-stat-label {
    font-size: 10px;
  }

  .referral-share-buttons {
    gap: 6px;
  }

  .referral-share-btn {
    min-width: 70px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .copy-text,
  .share-text {
    display: none;
  }

  .referral-code-text {
    font-size: 14px;
  }

  .referral-link-input {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .referral-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .referral-code-display,
  .referral-link-display {
    gap: 6px;
  }

  .referral-copy-btn {
    padding: 8px 10px;
  }
}

/* ENHANCED MOBILE RESPONSIVE FIXES */
@media (max-width: 768px) {
  /* Onboarding modal improvements */
  .onboard-modal {
    max-width: 95vw !important;
    margin: 0 auto !important;
    padding: 20px !important;
  }

  .onboard-h2 {
    font-size: 22px !important;
  }

  .onboard-sub {
    font-size: 14px !important;
  }

  /* Transfer partners grid reflow */
  .transfer-partners-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .transfer-partner-card {
    padding: 16px !important;
  }

  /* Card detail modal improvements */
  .benefit-modal-h2 {
    font-size: 20px !important;
  }

  .benefit-modal-sub {
    font-size: 13px !important;
  }

  .benefit-modal-annual-value {
    font-size: 20px !important;
  }

  /* Card picker modal responsive */
  .onboard-card-grid {
    grid-template-columns: 1fr !important;
  }

  /* Benefit modal responsive */
  #benefitDetailModal .modal-body {
    padding: 20px !important;
    max-width: 90vw !important;
  }

  /* Balance input improvements */
  .balance-input {
    width: 100px !important;
    font-size: 13px !important;
  }

  /* Pricing cards on mobile */
  .pricing-card {
    padding: 20px !important;
  }

  .pricing-tier {
    font-size: 16px !important;
  }

  .pricing-price {
    font-size: 24px !important;
  }

  /* Feature items readable */
  .feature-item {
    font-size: 13px !important;
    padding: 8px 0 !important;
  }

  /* Button sizing */
  .btn-primary,
  .btn-free,
  .btn-paid,
  .onboard-btn {
    padding: 12px 16px !important;
    font-size: 13px !important;
  }

  /* Dashboard sections */
  .dash-overview-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

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

  /* Wallet cards grid */
  .profile-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Recommended cards section */
  .premium-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* Transfer partner details */
  .partner-details-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .onboard-modal {
    padding: 16px !important;
  }

  .onboard-h2 {
    font-size: 18px !important;
  }

  .form-input,
  .balance-input {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }

  /* Masthead responsive */
  .masthead {
    padding: 12px 16px !important;
  }

  /* Modal sizing */
  .modal {
    max-width: 95vw !important;
    margin: 0 auto !important;
  }

  /* Grid collapses */
  .auth-tabs-nav {
    flex-wrap: wrap !important;
  }

  /* Text sizes */
  .benefit-modal-full-description {
    font-size: 13px !important;
  }

  /* Benefit item spacing */
  .dashboard-section h2 {
    font-size: 18px !important;
  }

  /* Transfer bonus bonus display */
  .transfer-bonus-percentage {
    font-size: 14px !important;
  }

  /* Ensure buttons are touchable */
  button {
    min-height: 44px !important; /* iOS recommended */
  }
}



/* Spending Dashboard Styles */
.spending-insights {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  border: 1px solid #eee;
}

.spending-insights h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #1a1a1a;
}

.spending-insights h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.earnings-cards .card {
  transition: all 0.3s;
}

.earnings-cards .card:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}


/* ============================================================
   TRANSFER PARTNERS — Pass 1 + Pass 2
   ============================================================ */

.transferpartners-page {
  padding: 30px;
}

.transferpartners-eyebrow {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  padding: 24px 0 16px;
  border-bottom: 0.5px solid #D4D4D4;
  margin-top: 24px;
}

.transferpartners-rowlist {
  display: flex;
  flex-direction: column;
}

.transferpartners-row {
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  border-bottom: 0.5px solid #D4D4D4;
}

.transferpartners-row-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  cursor: pointer;
}

.transferpartners-row-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.transferpartners-row-headline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.transferpartners-row-name {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: normal;
}

.transferpartners-row-bonus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text);
  line-height: normal;
}

.transferpartners-row-bonusdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.transferpartners-row-pills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.transferpartners-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: #FFF;
  line-height: normal;
  background: #1a1a1a;
  border: 0.2px solid #DBDBDB;
  white-space: nowrap;
}

/* Card pill brand colors — sourced from Figma */
.transferpartners-pill[data-card-slug="amex_platinum"]          { background: #757575; border-color: #DBDBDB; }
.transferpartners-pill[data-card-slug="amex_gold"]              { background: #997D00; border-color: #FED624; }
.transferpartners-pill[data-card-slug="amex_green"]             { background: linear-gradient(90deg, #558056, #58AB5A); border-color: #85C787; }
.transferpartners-pill[data-card-slug="amex_business_platinum"] { background: linear-gradient(90deg, #9E9E9E, #727070); border-color: #DBDBDB; }
.transferpartners-pill[data-card-slug="amex_business_gold"]     { background: linear-gradient(90deg, #997D00, #BD9A00); border-color: #FED624; }
.transferpartners-pill[data-card-slug="amex_business_green"]    { background: linear-gradient(90deg, #558056, #58AB5A); border-color: #85C787; }
.transferpartners-pill[data-card-slug="bilt_obsidian"]          { background: #000000; border-color: #DBDBDB; }
.transferpartners-pill[data-card-slug="capital_one"]            { background: #1A2955; border-color: #DBDBDB; }
.transferpartners-pill[data-card-slug="chase_sapphire_preferred"] { background: #004786; border-color: #DBDBDB; }
.transferpartners-pill[data-card-slug="chase_sapphire_reserve"]   { background: linear-gradient(90deg, #0B2266, #0062EB); border-color: #DBDBDB; }
.transferpartners-pill[data-card-slug="chase_ink_business_unlimited"] { background: #01016F; border-color: #DBDBDB; }
.transferpartners-pill[data-card-slug="citi_typ"]               { background: linear-gradient(90deg, #4A4A4A, #1D1D1D); border-color: #DBDBDB; }
.transferpartners-pill[data-card-slug="citi_strata_elite"]      { background: radial-gradient(50% 50% at 50% 50%, #8F8F8F, #626262); border-color: #DBDBDB; }
.transferpartners-pill[data-card-slug="citi_strata"]            { background: #292929; border-color: #DBDBDB; }

.transferpartners-row-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.transferpartners-row[data-expanded="true"] .transferpartners-row-chevron {
  transform: rotate(180deg);
}

/* Expanded section — animates open */
.transferpartners-row-expanded {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 250ms ease, opacity 200ms ease, margin-top 250ms ease;
}

.transferpartners-row[data-expanded="true"] .transferpartners-row-expanded {
  max-height: 3000px;
  opacity: 1;
  margin-top: 24px;
}

/* Tile grid */
.transferpartners-tilegrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .transferpartners-tilegrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .transferpartners-tilegrid { grid-template-columns: 1fr; }
}

/* Partner tile — glass card per design system */
.transferpartners-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 96px;
  background: rgba(52, 52, 52, 0.40);
  border: 0.2px solid #7D7D7D;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  color: var(--color-text);
  transition: background 150ms ease, border-color 150ms ease;
}

.transferpartners-tile:hover {
  background: rgba(52, 52, 52, 0.60);
  border-color: #999;
}

.transferpartners-tile:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.transferpartners-tile--has-bonus {
  border: 1px solid var(--color-accent);
}

.transferpartners-tile--has-bonus:hover {
  border-color: var(--color-accent);
}

.transferpartners-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.transferpartners-tile-type {
  font-size: 11px;
  font-weight: 400;
  color: #D4D4D4;
  line-height: normal;
}

.transferpartners-tile-bonus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text);
  line-height: normal;
  white-space: nowrap;
}

.transferpartners-tile-bonusdot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.transferpartners-tile-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 16px;
  margin: 8px 0;
}

.transferpartners-tile-ratio {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  line-height: normal;
}

.transferpartners-tile-ratiolabel {
  color: #D4D4D4;
  font-weight: 400;
}

.transferpartners-tile-ratiovalue {
  color: var(--color-accent);
  font-weight: 600;
}

.transferpartners-tile-empty {
  grid-column: 1 / -1;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Empty state (no transferable cards) */
.transferpartners-empty {
  padding: 60px 20px;
  text-align: center;
}

.transferpartners-empty-cta {
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--color-accent);
  color: #FFF;
  border: none;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease;
}

.transferpartners-empty-cta:hover {
  background: var(--color-accent-hover);
}

.transferpartners-error {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
}

/* Mobile */
@media (max-width: 768px) {
  .transferpartners-page { padding: 20px; }
  .transferpartners-row { padding: 24px 0; }
  .transferpartners-row-name { font-size: 14px; }
}

/* ==========================================================================
   Transfer Instructions Modal
   Light-themed modal that opens when a partner tile is tapped.
   Matches Figma "Transfer Partners Instructions" frame.
   ========================================================================== */

.transferinstr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 40px 20px;
  font-family: var(--font-primary);
  animation: transferinstr-fade-in 180ms ease-out;
}

@keyframes transferinstr-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.transferinstr-card {
  background: #FFFFFF;
  color: #000000;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: transferinstr-slide-up 220ms ease-out;
}

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

/* --- Header --- */
.transferinstr-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.transferinstr-title {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  line-height: normal;
}

.transferinstr-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #868686;
  line-height: normal;
}

.transferinstr-close {
  background: none;
  border: none;
  color: #868686;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 150ms ease;
}

.transferinstr-close:hover { color: #000000; }
.transferinstr-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Hairline --- */
.transferinstr-hairline {
  height: 0.5px;
  background: #868686;
  border: 0;
  margin: 0;
}

/* --- Partner name + hairline row --- */
.transferinstr-partner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.transferinstr-partner-name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
}

.transferinstr-partner-line {
  flex: 1;
  height: 0.5px;
  background: #868686;
}

/* --- Stats card (orange-bordered) --- */
.transferinstr-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #F8F7F5;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.transferinstr-stat {
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  line-height: normal;
  white-space: nowrap;
}

.transferinstr-stat-value {
  color: var(--color-accent);
  font-weight: 600;
  margin-left: 4px;
}

/* --- Steps --- */
.transferinstr-steps-heading {
  margin: 8px 0 0 0;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
}

.transferinstr-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.transferinstr-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}

.transferinstr-step-num {
  width: 24px;
  height: 24px;
  border-radius: 100px;
  background: var(--color-accent);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transferinstr-step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.transferinstr-step-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  line-height: 1.3;
}

.transferinstr-step-desc {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: #4A4A4A;
  line-height: 1.4;
}

/* --- Tip callout --- */
.transferinstr-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.transferinstr-tip-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.4;
}

.transferinstr-tip-label {
  color: var(--color-accent);
  font-weight: 600;
  margin-right: 4px;
}

.transferinstr-tip-text {
  color: #4A4A4A;
}

/* --- CTA button --- */
.transferinstr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-end;
  padding: 8px 16px;
  background: var(--color-accent);
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease;
  margin-top: 4px;
}

.transferinstr-cta:hover { background: var(--color-accent-hover); }
.transferinstr-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.transferinstr-cta-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .transferinstr-overlay {
    padding: 20px 12px;
    align-items: flex-start;
  }
  .transferinstr-card {
    padding: 20px;
    gap: 14px;
  }
  .transferinstr-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .transferinstr-cta {
    align-self: stretch;
  }
}

/* ════════════════════════════════════════════════════════════════
   BENEFITS PAGE
   ════════════════════════════════════════════════════════════════
   Top-level Benefits tab (sidebar nav between My Wallet and
   Transfer Partners). Visual sibling of Transfer Partners — same
   page padding, same hairline-divider section pattern, same
   typographic scale. Pass 1 has no expander/accordion UX yet;
   benefit rows are static. Class prefix: .benefits-*
   ════════════════════════════════════════════════════════════════ */

.benefits-page {
  padding: 30px;
}

/* ── Filter chip row + count ─────────────────────────────────── */
.benefits-chiprow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid #D4D4D4;
  flex-wrap: wrap;
}

.benefits-chiprow-chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.benefits-chiprow-count {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Filter chip — glass surface inactive, orange when active */
.benefits-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  line-height: normal;
  background: rgba(52, 52, 52, 0.30);
  border: 0.2px solid #7D7D7D;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease;
}

.benefits-chip:hover {
  background: rgba(52, 52, 52, 0.50);
  border-color: #999;
}

.benefits-chip:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.benefits-chip.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
  font-weight: 500;
}

.benefits-chip.is-active:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* Inline link inside the page subtitle (e.g. "Show all benefits" when
   arriving from Dashboard with the expiring filter pre-applied) */
.benefits-sub-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}

.benefits-sub-link:hover {
  color: var(--color-accent-hover);
}

/* ── Section list (card sections stacked vertically) ────────── */
.benefits-sectionlist {
  display: flex;
  flex-direction: column;
}

/* Each card section is a flat row with a hairline divider, not a padded
   block. The toggle button is the click target for expand/collapse; the
   body wrapper underneath animates open via max-height. */
.benefits-section {
  display: flex;
  flex-direction: column;
  border-bottom: 0.5px solid #D4D4D4;
}

.benefits-section:last-child {
  border-bottom: none;
}

/* Clickable header row — full width, name-bullet-count on the left,
   chevron on the right. Reset native button styling. */
.benefits-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.benefits-section-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Inline title block: name • count */
.benefits-section-titleline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.benefits-section-name {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: normal;
  margin: 0;
}

.benefits-section-bullet {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

.benefits-section-countinline {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: normal;
  white-space: nowrap;
}

/* Chevron — uses the BENEFITS_CHEVRON_SVG constant, rotated when section open */
.benefits-section-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 200ms ease, color 200ms ease;
}

.benefits-section.is-expanded .benefits-section-chevron {
  transform: rotate(180deg);
  color: var(--color-text);
}

/* Animated body wrapper. Default collapsed (max-height: 0). Expanded class
   on the parent section unlocks it. 6000px ceiling is generous for the worst
   realistic case: 9 benefits all with their instruction panels expanded. */
.benefits-section-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 280ms ease, opacity 220ms ease, padding-bottom 280ms ease;
  padding-bottom: 0;
}

.benefits-section.is-expanded .benefits-section-body {
  max-height: 6000px;
  opacity: 1;
  padding-bottom: 16px;
}

/* ── Benefit row list ────────────────────────────────────────── */
.benefits-rowlist {
  display: flex;
  flex-direction: column;
}

/* Individual benefit row. Static visual presentation per Figma — no
   chevron, no click affordance, no inline expander. The future popup
   modal will own the per-credit instructions UX. */
.benefits-row {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-top: 0.5px solid rgba(134, 134, 134, 0.5);
}

.benefits-row:first-child {
  border-top: none;
}

/* Top line: name • $amount pill • cadence (single row, baseline-aligned).
   Wraps on narrow widths but stays compact on desktop. */
.benefits-row-headline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.benefits-row-name {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  line-height: normal;
}

/* Inline bullet between elements on the headline. Muted gray, decorative. */
.benefits-row-bullet {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1;
  user-select: none;
}

/* Amount pill — small orange tag, tight padding (matches Figma). */
.benefits-row-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--color-accent);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  line-height: normal;
  white-space: nowrap;
}

/* Cadence label — same scale as the name, muted color. */
.benefits-row-cadence {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  line-height: normal;
  white-space: nowrap;
}

/* Description paragraph — short prose from CARD_BENEFIT_DATA */
.benefits-row-desc {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.5;
  margin: 6px 0 0;
}

/* Tip line — orange, signals "actionable advice" */
.benefits-row-tip {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1.5;
  margin: 4px 0 0;
}

/* ── Empty states ────────────────────────────────────────────── */
.benefits-empty,
.benefits-empty-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 24px;
  margin-top: 32px;
  background: rgba(52, 52, 52, 0.30);
  border: 0.2px solid #7D7D7D;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-align: center;
}

.benefits-empty p,
.benefits-empty-filter p {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0;
}

.benefits-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.benefits-empty-cta:hover {
  background: var(--color-accent-hover);
}

.benefits-empty-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .benefits-page {
    padding: 20px 16px;
  }

  .benefits-chiprow {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .benefits-chiprow-count {
    font-size: 13px;
  }

  .benefits-section-toggle {
    padding: 14px 0;
  }

  .benefits-row-headline {
    gap: 8px;
  }

  .benefits-row-name {
    font-size: 13px;
  }
}

/* ════════════════════════════════════════════════════════════════
   BENEFITS PAGE — Pass 2 (expander UX, callouts, steps)
   ════════════════════════════════════════════════════════════════
   These styles handle: the loading state, the numbered steps list, and
   the three callout variants (enroll, warn/pitfall, tip). The steps and
   callouts are kept because they will be reused inside the upcoming
   per-credit popup modal — same markup, just rendered in a different
   container. The inline-expander chevron + animation rules from the
   previous design have been removed.
   ════════════════════════════════════════════════════════════════ */

/* ── Loading state ───────────────────────────────────────────── */
.benefits-loading {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
  padding: 60px 20px;
  margin: 0;
}

/* ── Clickable benefit row state ────────────────────────────────
   Rows with authored Supabase instructions get a subtle hover
   treatment + cursor pointer to signal that clicking opens the
   "How to Use" popup. Static rows (no instructions yet) stay inert. */
.benefits-row.is-clickable {
  cursor: pointer;
  transition: background 150ms ease;
  border-radius: 4px;
}

.benefits-row.is-clickable:hover {
  background: rgba(255, 255, 255, 0.03);
}

.benefits-row.is-clickable:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* When the "How to Use" popup is open for a row, that row gets an
   orange-tinted background so the user can see at a glance which credit
   they're reading about. The transition matches the hover transition so
   it feels like a natural extension of the same interaction. */
.benefits-row.is-popup-open {
  background: rgba(233, 104, 30, 0.15);
}

.benefits-row.is-clickable.is-popup-open:hover {
  background: rgba(233, 104, 30, 0.20);
}

/* ==========================================================================
   "How to Use" Credit Instructions Modal
   Light-themed popup that opens when a clickable benefit row is tapped.
   Matches Figma "Credits Expanded — How to Use" frame.
   ========================================================================== */

.creditinstr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 40px 20px;
  font-family: var(--font-primary);
  animation: creditinstr-fade-in 180ms ease-out;
}

@keyframes creditinstr-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.creditinstr-card {
  background: #FFFFFF;
  color: #000000;
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  animation: creditinstr-slide-up 220ms ease-out;
}

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

/* ── Header ──────────────────────────────────────────────────── */
.creditinstr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.creditinstr-title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  line-height: normal;
}

.creditinstr-close {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  flex-shrink: 0;
}

.creditinstr-close:hover {
  color: #555;
}

/* ── Subtitle (reset_details, gray prose) ───────────────────── */
.creditinstr-subtitle {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: #868686;
  line-height: 1.5;
}

/* ── Steps block (eyebrow + divider + note + numbered list) ─── */
.creditinstr-stepsblock {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.creditinstr-eyebrow {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  line-height: normal;
}

.creditinstr-divider {
  margin: 0;
  border: none;
  border-top: 0.5px solid #D4D4D4;
  height: 0;
}

.creditinstr-note {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
}

.creditinstr-note strong {
  font-weight: 600;
}

.creditinstr-steplist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.creditinstr-step {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
}

.creditinstr-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 100px;
  background: var(--color-accent);
  color: #FFFFFF;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  aspect-ratio: 1 / 1;
}

.creditinstr-step-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.creditinstr-step-title {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  line-height: 1.4;
}

.creditinstr-step-desc {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  color: #555555;
  line-height: 1.5;
}

/* ── Tip block (lightbulb + label + prose) ──────────────────── */
.creditinstr-tip {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
}

.creditinstr-tip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.creditinstr-tip-text strong {
  font-weight: 600;
  color: var(--color-accent);
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .creditinstr-overlay {
    padding: 20px 16px;
    align-items: flex-start;
  }

  .creditinstr-card {
    padding: 16px;
    gap: 20px;
  }

  .creditinstr-title {
    font-size: 15px;
  }

  .creditinstr-subtitle {
    font-size: 13px;
  }

  .creditinstr-step-title {
    font-size: 13px;
  }

  .creditinstr-step-desc,
  .creditinstr-note,
  .creditinstr-tip {
    font-size: 12px;
  }
}

/* ============================================================
   PATCH — "How to Use" modal: fixed height + internal scroll
   ------------------------------------------------------------
   Problem: .creditinstr-card had no fixed height, so longer
   pitfall/tip content stretched the card vertically — making
   modals like Hilton Aspire Resort feel like walls of text
   while shorter ones like Amex Platinum Uber Cash felt clean.

   Fix: pin the card to a fixed height matching the well-
   designed Platinum reference; make the header sticky at top
   while the rest scrolls. Style the scrollbar to be subtle.

   CSS-ONLY fix — does not require any HTML or JS change.
   The existing modal structure (`.creditinstr-overlay` >
   `.creditinstr-card` > [header, subtitle, stepsblock, tip])
   stays as-is.

   ── How to apply ──
   APPEND this entire block to the end of css/styles.css.
   Do NOT replace the original .creditinstr-* rules higher
   up in the file — leave them in place. Because CSS rules
   later in the file override earlier ones (same specificity),
   simply pasting these at the bottom safely overrides the
   originals without needing to find-and-replace anything.

   To revert: delete this block from styles.css. The original
   modal styling will return automatically.
   ============================================================ */


/* Overlay no longer scrolls — content scrolls inside the card */
.creditinstr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow: hidden;
  padding: 40px 20px;
  font-family: var(--font-primary);
  animation: creditinstr-fade-in 180ms ease-out;
}


/* Fixed-height card. Body scrolls; header sticks to top via
   position:sticky on the .creditinstr-header rule below. */
.creditinstr-card {
  background: #FFFFFF;
  color: #000000;
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  height: 600px;
  max-height: calc(100vh - 80px);
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  animation: creditinstr-slide-up 220ms ease-out;
  overflow-y: auto;
  /* Subtle scroll-edge shadows so users see there's more below.
     The radial gradients only show when content is clipped at the
     respective edge, because background-attachment: local makes
     the white-fade layers move with the content. */
  background:
    linear-gradient(#FFF 30%, rgba(255,255,255,0)),
    linear-gradient(rgba(255,255,255,0), #FFF 70%) 0 100%,
    radial-gradient(farthest-side at 50% 0, rgba(0,0,0,0.10), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,0.10), rgba(0,0,0,0)) 0 100%;
  background-repeat: no-repeat;
  background-color: #FFFFFF;
  background-size: 100% 24px, 100% 24px, 100% 8px, 100% 8px;
  background-attachment: local, local, scroll, scroll;
}

/* Subtle scrollbar matching the white modal */
.creditinstr-card::-webkit-scrollbar {
  width: 6px;
}
.creditinstr-card::-webkit-scrollbar-track {
  background: transparent;
}
.creditinstr-card::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}
.creditinstr-card::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}


/* Header sticks to the top of the scrollable card. The white
   background + bottom border make sure body content scrolling
   underneath doesn't bleed through. The negative-x margins +
   matching padding extend the sticky header to the card's edges
   so the bottom border runs full-width. */
.creditinstr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #FFFFFF;
  margin: 0 -16px;
  padding: 16px 16px 12px;
  border-bottom: 0.5px solid #EEEEEE;
  flex-shrink: 0;
}


/* Close button — unchanged behavior, kept here for completeness */
.creditinstr-close {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  flex-shrink: 0;
}

.creditinstr-close:hover {
  color: #555;
}


/* ── Mobile ──────────────────────────────────────────────────
   Phones get a near-full-screen modal instead of the desktop
   centered-card sizing. Same internal-scroll behavior. */
@media (max-width: 768px) {
  .creditinstr-overlay {
    padding: 20px 16px;
    align-items: flex-start;
  }

  .creditinstr-card {
    height: calc(100vh - 40px);
    max-height: calc(100vh - 40px);
    gap: 20px;
  }

  .creditinstr-title {
    font-size: 15px;
  }

  .creditinstr-subtitle {
    font-size: 13px;
  }

  .creditinstr-step-title {
    font-size: 13px;
  }

  .creditinstr-step-desc,
  .creditinstr-note,
  .creditinstr-tip {
    font-size: 12px;
  }
}
