/* ===========================
   FUTURES MASTERY - Design System
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --bg-base: #06080f;
  --bg-card: #0d1117;
  --bg-card2: #161b26;
  --border: #1f2937;
  --border-light: #374151;
  --gold: #f59e0b;
  --gold-light: #fcd34d;
  --gold-dark: #d97706;
  --green: #10b981;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold: 0 4px 24px rgba(245,158,11,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; }

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,8,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold);
  font-weight: 700;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #000;
}
.btn-primary:hover { background: var(--gold-light); color: #000; transform: translateY(-1px); box-shadow: var(--shadow-gold); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #000; }

.btn-lg { padding: 16px 40px; font-size: 17px; border-radius: var(--radius); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

.btn-full { width: 100%; }

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  color: var(--gold);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  max-width: 900px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #fff 30%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat .number { font-size: 32px; font-weight: 800; color: var(--gold); font-family: 'Inter', sans-serif; }
.hero-stat .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===========================
   SECTIONS
   =========================== */
.section { padding: 80px 24px; }
.section-center { text-align: center; }

.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }
.container-md { max-width: 960px; margin: 0 auto; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ===========================
   CARDS
   =========================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}

.card:hover { border-color: var(--border-light); transform: translateY(-2px); }

.card-gold { border-color: rgba(245,158,11,0.3); }
.card-gold:hover { border-color: var(--gold); }

/* ===========================
   GRID
   =========================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ===========================
   CHAPTER LIST (landing)
   =========================== */
.chapter-list { display: flex; flex-direction: column; gap: 16px; }

.chapter-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color .2s;
}

.chapter-item:hover { border-color: var(--border-light); }

.chapter-num {
  min-width: 44px;
  height: 44px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
}

.chapter-info h4 { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.chapter-info p { font-size: 13px; color: var(--text-muted); }
.chapter-tag { margin-left: auto; font-size: 12px; color: var(--text-dim); background: var(--bg-card2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; white-space: nowrap; }

/* ===========================
   PRICING
   =========================== */
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

.price-badge {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-amount { font-size: 72px; font-weight: 800; font-family: 'Inter', sans-serif; line-height: 1; color: var(--text); }
.price-amount sup { font-size: 32px; vertical-align: top; margin-top: 12px; display: inline-block; }
.price-original { font-size: 20px; color: var(--text-dim); text-decoration: line-through; margin: 8px 0 4px; }
.price-save { font-size: 14px; color: var(--green); font-weight: 600; }

.price-features { list-style: none; margin: 32px 0; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.price-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 16px; }

.price-guarantee { margin-top: 20px; font-size: 13px; color: var(--text-muted); }

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-stars { color: var(--gold); font-size: 18px; margin-bottom: 12px; }
.testimonial-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-dark), var(--purple)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #000; }
.testimonial-name { font-size: 14px; font-weight: 600; }
.testimonial-role { font-size: 12px; color: var(--text-dim); }

/* ===========================
   FAQ
   =========================== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  gap: 16px;
}

.faq-question .icon { color: var(--gold); font-size: 20px; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .icon { transform: rotate(45deg); }

.faq-answer { display: none; padding-bottom: 20px; font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.footer-logo { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--gold); margin-bottom: 12px; }
.footer-tagline { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ===========================
   COURSE CHAPTER PAGES
   =========================== */
.course-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  max-width: 1300px;
  margin: 0 auto;
}

.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); padding: 0 20px 12px; }

.sidebar-chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-chapter:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sidebar-chapter.active { color: var(--gold); border-left-color: var(--gold); background: rgba(245,158,11,0.06); }
.sidebar-chapter.completed .ch-dot { background: var(--green); }
.sidebar-chapter.locked { opacity: 0.4; cursor: not-allowed; }

.ch-dot {
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-chapter.active .ch-dot { background: var(--gold); border-color: var(--gold); color: #000; }

.chapter-content { padding: 48px; max-width: 860px; }

@media (max-width: 900px) {
  .course-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .chapter-content { padding: 24px; }
}

/* VIDEO PLAYER */
.video-player {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.video-player-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,158,11,0.05) 0%, rgba(139,92,246,0.05) 100%);
}

.video-play-btn {
  width: 72px;
  height: 72px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  z-index: 1;
  border: none;
}

.video-play-btn:hover { transform: scale(1.08); box-shadow: var(--shadow-gold); }
.video-play-btn svg { fill: #000; margin-left: 4px; }

.video-label { margin-top: 16px; font-size: 14px; color: var(--text-muted); z-index: 1; }
.video-script-btn { margin-top: 8px; z-index: 1; }

/* VIDEO MODAL / SCRIPT */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg-card2); border: none; color: var(--text-muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }

.modal h2 { margin-bottom: 8px; font-size: 22px; }
.modal .script-intro { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; padding: 12px 16px; background: rgba(245,158,11,0.08); border-radius: var(--radius-sm); border-left: 3px solid var(--gold); }

.script-section { margin-bottom: 24px; }
.script-section h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 8px; }
.script-section p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }

/* LESSON CONTENT */
.lesson-header { margin-bottom: 40px; }
.lesson-chapter-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 8px; }
.lesson-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.lesson-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; }
.lesson-meta span { display: flex; align-items: center; gap: 6px; }

.lesson-body { font-size: 16px; line-height: 1.8; color: var(--text-muted); }
.lesson-body h2 { font-size: 26px; color: var(--text); margin: 40px 0 16px; font-family: 'Playfair Display', serif; }
.lesson-body h3 { font-size: 20px; color: var(--text); margin: 28px 0 12px; font-family: 'Inter', sans-serif; font-weight: 600; }
.lesson-body p { margin-bottom: 16px; }
.lesson-body ul, .lesson-body ol { padding-left: 24px; margin-bottom: 16px; }
.lesson-body li { margin-bottom: 8px; }
.lesson-body strong { color: var(--text); }

/* ANALOGY BOX */
.analogy-box {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}

.analogy-box .analogy-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analogy-box p { color: var(--text); font-size: 15px; line-height: 1.7; margin: 0; }

/* KEY TAKEAWAYS */
.takeaways {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 40px 0;
}

.takeaways h3 { font-size: 18px; margin-bottom: 16px; font-family: 'Inter', sans-serif; font-weight: 700; }
.takeaways ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.takeaways li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-muted); }
.takeaways li::before { content: '→'; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* DEFINITION BOX */
.definition {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0;
}

.definition-item {
  background: var(--bg-card2);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
}

.definition-term { font-weight: 700; color: var(--text); font-size: 14px; min-width: 160px; }
.definition-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* EXAMPLE BOX */
.example-box {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}

.example-box .example-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green); margin-bottom: 8px; }
.example-box p, .example-box li { color: var(--text); font-size: 15px; line-height: 1.7; }
.example-box ul { padding-left: 20px; }

/* WARNING BOX */
.warning-box {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.warning-box strong { color: #fca5a5; }

/* PROGRESS BAR */
.progress-bar-wrap { background: var(--bg-card2); border-bottom: 1px solid var(--border); padding: 12px 24px; }
.progress-bar-inner { max-width: 1300px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.progress-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.progress-track { flex: 1; height: 6px; background: var(--bg-card2); border-radius: 3px; overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); border-radius: 3px; transition: width .4s; }
.progress-pct { font-size: 13px; color: var(--gold); font-weight: 600; white-space: nowrap; }

/* CHAPTER NAV */
.chapter-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 16px; }

/* ===========================
   QUIZ STYLES
   =========================== */
.quiz-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-top: 48px;
}

.quiz-header { margin-bottom: 32px; }
.quiz-header h2 { font-size: 26px; margin-bottom: 8px; }
.quiz-header p { color: var(--text-muted); font-size: 15px; }

.quiz-progress { display: flex; gap: 6px; margin-top: 16px; }
.quiz-dot { width: 28px; height: 6px; border-radius: 3px; background: var(--border-light); transition: background .3s; }
.quiz-dot.answered { background: var(--gold); }
.quiz-dot.correct { background: var(--green); }
.quiz-dot.wrong { background: var(--red); }

.question-block { display: none; }
.question-block.active { display: block; }

.question-num { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 8px; }
.question-text { font-size: 18px; font-weight: 600; margin-bottom: 24px; line-height: 1.5; color: var(--text); }

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

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: 15px;
  color: var(--text-muted);
}

.option:hover { border-color: var(--gold); color: var(--text); }
.option.selected { border-color: var(--gold); background: rgba(245,158,11,0.08); color: var(--text); }
.option.correct { border-color: var(--green); background: rgba(16,185,129,0.08); color: var(--text); }
.option.wrong { border-color: var(--red); background: rgba(239,68,68,0.08); }

.option-letter { min-width: 26px; height: 26px; border-radius: 6px; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.option.selected .option-letter { background: var(--gold); color: #000; }
.option.correct .option-letter { background: var(--green); color: #000; }
.option.wrong .option-letter { background: var(--red); color: #fff; }

.quiz-feedback { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.6; display: none; }
.quiz-feedback.show { display: block; }
.quiz-feedback.correct-fb { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: var(--text); }
.quiz-feedback.wrong-fb { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--text); }

.quiz-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; flex-wrap: wrap; gap: 12px; }

.quiz-result { text-align: center; padding: 40px 20px; display: none; }
.quiz-result.show { display: block; }
.result-score { font-size: 72px; font-weight: 800; font-family: 'Inter', sans-serif; }
.result-score.pass { color: var(--green); }
.result-score.fail { color: var(--red); }
.result-message { font-size: 20px; margin: 16px 0 8px; }
.result-sub { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }

/* ===========================
   DASHBOARD
   =========================== */
.dashboard-header {
  padding: 48px 24px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.welcome-banner {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 16px;
  padding: 32px 40px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.welcome-text h2 { font-size: 28px; margin-bottom: 4px; }
.welcome-text p { color: var(--text-muted); }

.overall-progress { text-align: right; }
.overall-progress .big-pct { font-size: 48px; font-weight: 800; color: var(--gold); font-family: 'Inter', sans-serif; line-height: 1; }
.overall-progress .pct-label { font-size: 13px; color: var(--text-muted); }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 0 24px 48px; max-width: 1200px; margin: 0 auto; }

.dash-chapter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, transform .2s;
}

.dash-chapter-card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--text); }
.dash-chapter-card.locked { opacity: 0.5; cursor: not-allowed; }
.dash-chapter-card.locked:hover { transform: none; border-color: var(--border); }

.dash-ch-num { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.dash-ch-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.dash-ch-analogy { font-size: 13px; color: var(--text-dim); }

.dash-ch-status { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: auto; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-light); }
.status-dot.complete { background: var(--green); }
.status-dot.inprogress { background: var(--gold); }

/* ===========================
   CHECKOUT / SUCCESS
   =========================== */
.checkout-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.checkout-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 48px; max-width: 520px; width: 100%; text-align: center; }
.checkout-icon { font-size: 56px; margin-bottom: 16px; }
.checkout-card h1 { font-size: 32px; margin-bottom: 12px; }
.checkout-card p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }

/* STRIPE embed area */
#stripe-container { margin: 24px 0; }

/* Utility */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }
