/* =============================================
   100% New Mexico Leadership Course
   Main Stylesheet
   ============================================= */

/* --- Design Tokens --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Light theme */
  --bg-base:       #FAFAF7;
  --bg-elevated:   #FFFFFF;
  --bg-subtle:     #F0EFE8;
  --bg-overlay:    rgba(0,0,0,0.5);

  --text-primary:   #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted:     #787878;
  --text-inverse:   #FFFFFF;

  --accent:         #C8421A;
  --accent-light:   #F4E8E2;
  --accent-hover:   #A83615;
  --accent-dark:    #8B2A0E;

  --green:          #2A7A4A;
  --green-light:    #E0F5E8;
  --blue:           #1E5A8A;
  --blue-light:     #E0EEF8;
  --gold:           #9A6E12;
  --gold-light:     #FBF3DC;
  --purple:         #6B3FA0;
  --purple-light:   #F0E8FA;

  --border:         #E0DFDA;
  --border-strong:  #C0BFB8;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --font-body:    'Inter', -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  --transition: 200ms ease;
  --transition-slow: 400ms ease;
}

[data-theme="dark"] {
  --bg-base:       #0F0F0E;
  --bg-elevated:   #1A1A18;
  --bg-subtle:     #242422;
  --bg-overlay:    rgba(0,0,0,0.7);

  --text-primary:   #F0EFE8;
  --text-secondary: #C0BFBA;
  --text-muted:     #888882;
  --text-inverse:   #0F0F0E;

  --accent:         #E05A30;
  --accent-light:   #2A1810;
  --accent-hover:   #F07050;

  --green:          #3A9A5A;
  --green-light:    #0A1E10;
  --blue:           #3A7AB0;
  --blue-light:     #0A1828;
  --gold:           #C09020;
  --gold-light:     #1A1408;
  --purple:         #9060C8;
  --purple-light:   #160A28;

  --border:         #2E2E2A;
  --border-strong:  #444440;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.4);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background var(--transition-slow), color var(--transition-slow);
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }

/* --- Pages --- */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600;
  color: var(--text-primary); text-decoration: none;
}
.logo svg { color: var(--accent); }

/* Module header nav */
.module-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) var(--space-6);
}
.module-header-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: var(--space-4);
}
.back-btn {
  display: flex; align-items: center; gap: var(--space-2);
  background: none; border: none;
  color: var(--text-secondary); font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.back-btn:hover { background: var(--bg-subtle); color: var(--text-primary); }
.module-header-title {
  font-family: var(--font-display); font-size: var(--text-base);
  font-weight: 600; color: var(--text-primary); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.module-progress-bar {
  height: 3px; background: var(--border);
  position: absolute; bottom: 0; left: 0; right: 0;
}
.module-progress-fill {
  height: 100%; background: var(--accent);
  transition: width var(--transition-slow);
}

/* --- Theme Toggle --- */
.theme-toggle {
  width: 36px; height: 36px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.theme-toggle:hover { background: var(--border); }
.theme-toggle svg { width: 18px; height: 18px; color: var(--text-secondary); }
[data-theme="light"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }

/* --- Hero --- */
.hero {
  min-height: 85vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--space-16) var(--space-8);
  max-width: 1280px; margin: 0 auto;
  gap: var(--space-16);
  position: relative;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: var(--space-12) var(--space-6); }
  .hero-visual { display: none; }
}
.hero-badge {
  display: inline-block;
  background: var(--accent-light); color: var(--accent);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full); margin-bottom: var(--space-4);
}
.hero h1 {
  font-size: var(--text-3xl); font-weight: 700;
  color: var(--text-primary); line-height: 1.05;
  margin-bottom: var(--space-3);
}
.hero-subtitle {
  font-size: var(--text-lg); color: var(--accent);
  font-family: var(--font-display); margin-bottom: var(--space-5);
}
.hero-desc {
  color: var(--text-secondary); max-width: 520px;
  margin-bottom: var(--space-8); font-size: var(--text-base);
  line-height: 1.75;
}
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-10); }
.hero-stats {
  display: flex; align-items: center; gap: var(--space-6);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: var(--text-xl); font-weight: 700; font-family: var(--font-display); color: var(--accent); }
.stat-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.nm-map-container {
  width: 100%; max-width: 380px;
  background: var(--bg-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
#nmMap { width: 100%; height: auto; }

/* --- Buttons --- */
.btn-primary {
  background: var(--accent); color: var(--text-inverse);
  border: none; padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full); font-size: var(--text-sm);
  font-weight: 600; transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full); font-size: var(--text-sm);
  font-weight: 500; transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-secondary {
  background: var(--bg-subtle); color: var(--text-primary);
  border: 1px solid var(--border);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md); font-size: var(--text-sm);
  font-weight: 500; transition: all var(--transition);
}
.btn-secondary:hover { background: var(--border); }
.btn-success {
  background: var(--green); color: white;
  border: none; padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full); font-size: var(--text-sm);
  font-weight: 600; transition: all var(--transition);
}
.btn-success:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-sm {
  padding: var(--space-2) var(--space-4) !important;
  font-size: var(--text-xs) !important;
}

/* --- Section Containers --- */
.section-container {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}
.section-header {
  text-align: center; margin-bottom: var(--space-12);
}
.section-header h2 {
  font-size: var(--text-2xl); margin-bottom: var(--space-4);
}
.section-header p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* --- Modules Grid --- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}
.module-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform var(--transition);
}
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.module-card:hover::before { transform: scaleX(1); }
.module-card.completed { border-color: var(--green); }
.module-card.completed::before { background: var(--green); transform: scaleX(1); }
.module-num {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2);
}
.module-card-title {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 600; margin-bottom: var(--space-3); line-height: 1.3;
}
.module-card-desc {
  font-size: var(--text-sm); color: var(--text-secondary);
  line-height: 1.6; margin-bottom: var(--space-4);
}
.module-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.module-status {
  font-size: var(--text-xs); font-weight: 600;
  padding: 2px var(--space-2); border-radius: var(--radius-full);
}
.module-status.not-started { background: var(--bg-subtle); color: var(--text-muted); }
.module-status.in-progress { background: var(--gold-light); color: var(--gold); }
.module-status.completed { background: var(--green-light); color: var(--green); }
.module-card-arrow {
  width: 28px; height: 28px; background: var(--bg-subtle);
  border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.module-card:hover .module-card-arrow { background: var(--accent); transform: translateX(2px); }
.module-card:hover .module-card-arrow svg { color: white; }
.module-card-arrow svg { width: 14px; height: 14px; color: var(--text-muted); }

/* Special cards */
.module-card.intro-card { border-color: var(--blue); }
.module-card.intro-card .module-num { color: var(--blue); }
.module-card.intro-card::before { background: var(--blue); }
.module-card.intro-card:hover { border-color: var(--blue); }
.module-card.assessment-card { border-color: var(--purple); }
.module-card.assessment-card .module-num { color: var(--purple); }
.module-card.assessment-card::before { background: var(--purple); }
.module-card.assessment-card:hover { border-color: var(--purple); }

/* --- Steps Visual --- */
.steps-visual {
  display: flex; flex-direction: column; gap: var(--space-4);
  max-width: 760px; margin: 0 auto;
}
.step-item {
  display: flex; align-items: flex-start; gap: var(--space-5);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6);
  transition: all var(--transition);
}
.step-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.step-num {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--accent-light); color: var(--accent);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-base);
  font-family: var(--font-display);
}
.step-text h4 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-1); }
.step-text p { font-size: var(--text-sm); color: var(--text-secondary); }

/* --- Sectors Grid --- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}
.sector-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5);
  text-align: center; transition: all var(--transition);
}
.sector-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.sector-icon {
  font-size: 2rem; margin-bottom: var(--space-3);
  width: 56px; height: 56px; background: var(--accent-light);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-3);
}
.sector-name { font-size: var(--text-sm); font-weight: 600; }

/* =============================================
   MODULE PAGE STYLES
   ============================================= */

.module-page-wrap {
  max-width: 900px; margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-20);
}

/* Module Hero */
.module-hero {
  background: linear-gradient(135deg, var(--accent-light), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-10);
  margin-bottom: var(--space-8);
  position: relative; overflow: hidden;
}
[data-theme="dark"] .module-hero {
  background: linear-gradient(135deg, var(--accent-light), var(--bg-subtle));
}
.module-hero-badge {
  display: inline-block;
  background: var(--accent); color: white;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full); margin-bottom: var(--space-4);
}
.module-hero h1 {
  font-size: var(--text-2xl); line-height: 1.15;
  margin-bottom: var(--space-4); max-width: 600px;
}
.module-hero-desc {
  color: var(--text-secondary); font-size: var(--text-base);
  max-width: 580px; line-height: 1.75;
}
.module-hero-meta {
  display: flex; gap: var(--space-6); margin-top: var(--space-6);
  flex-wrap: wrap;
}
.module-meta-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--text-muted);
}
.module-meta-item svg { width: 16px; height: 16px; }

/* Section Navigation */
.section-nav {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-8); padding: var(--space-4);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.section-nav-btn {
  background: none; border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md); font-size: var(--text-sm);
  color: var(--text-secondary); transition: all var(--transition);
  font-weight: 500;
}
.section-nav-btn:hover { background: var(--bg-subtle); color: var(--text-primary); }
.section-nav-btn.active { background: var(--accent); color: white; }
.section-nav-btn.completed-nav { color: var(--green); }
.section-nav-btn.completed-nav::after { content: ' ✓'; }

/* Section Content */
.section-block { display: none; }
.section-block.active { display: block; }

.content-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  margin-bottom: var(--space-6);
}
.content-card h2 {
  font-size: var(--text-xl); margin-bottom: var(--space-5);
  padding-bottom: var(--space-4); border-bottom: 1px solid var(--border);
}
.content-card h3 {
  font-size: var(--text-lg); margin-top: var(--space-6); margin-bottom: var(--space-3);
  color: var(--accent);
}
.content-card p {
  font-size: var(--text-base); line-height: 1.8;
  color: var(--text-secondary); margin-bottom: var(--space-4);
}
.content-card p:last-child { margin-bottom: 0; }

/* Learning Objectives */
.objectives-list { list-style: none; }
.objectives-list li {
  display: flex; gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-base); color: var(--text-secondary); line-height: 1.65;
}
.objectives-list li:last-child { border-bottom: none; }
.obj-check {
  width: 22px; height: 22px; min-width: 22px; border-radius: var(--radius-full);
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-top: 2px;
}

/* Callout Boxes */
.callout {
  border-radius: var(--radius-md); padding: var(--space-5);
  margin: var(--space-5) 0; display: flex; gap: var(--space-4);
}
.callout-info { background: var(--blue-light); border-left: 3px solid var(--blue); }
.callout-warning { background: var(--gold-light); border-left: 3px solid var(--gold); }
.callout-success { background: var(--green-light); border-left: 3px solid var(--green); }
.callout-accent { background: var(--accent-light); border-left: 3px solid var(--accent); }
.callout-icon { font-size: 1.2rem; line-height: 1; }
.callout-body { flex: 1; }
.callout-body strong { display: block; margin-bottom: var(--space-1); font-size: var(--text-sm); }
.callout-body p { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; line-height: 1.65; }

/* Stat Cards in modules */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4); margin: var(--space-6) 0;
}
.stat-card {
  background: var(--bg-subtle); border-radius: var(--radius-lg);
  padding: var(--space-5); text-align: center; border: 1px solid var(--border);
}
.stat-card-num {
  font-size: var(--text-2xl); font-weight: 700;
  font-family: var(--font-display); color: var(--accent);
  line-height: 1; margin-bottom: var(--space-2);
}
.stat-card-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Chart container */
.chart-wrap {
  background: var(--bg-subtle); border-radius: var(--radius-lg);
  padding: var(--space-6); margin: var(--space-6) 0;
  border: 1px solid var(--border);
}
.chart-title {
  font-size: var(--text-sm); font-weight: 600;
  margin-bottom: var(--space-4); color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.chart-wrap canvas { max-height: 300px; }

/* Pathway cards */
.pathways-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4); margin: var(--space-5) 0;
}
.pathway-card {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.pathway-num {
  font-size: var(--text-xl); font-weight: 700;
  font-family: var(--font-display); color: var(--accent);
  margin-bottom: var(--space-2);
}
.pathway-title { font-weight: 600; margin-bottom: var(--space-2); }
.pathway-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* Barrier tags */
.barriers-wrap { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0; }
.barrier-tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600;
  border: 1px solid;
}
.barrier-cost { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.barrier-distance { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.barrier-hours { background: var(--gold-light); color: var(--gold); border-color: var(--gold); }
.barrier-transport { background: var(--green-light); color: var(--green); border-color: var(--green); }
.barrier-language { background: var(--purple-light); color: var(--purple); border-color: var(--purple); }

/* Reflection textarea */
.reflection-block { margin: var(--space-5) 0; }
.reflection-label {
  font-size: var(--text-sm); font-weight: 600;
  margin-bottom: var(--space-2); color: var(--text-primary);
  display: flex; align-items: center; gap: var(--space-2);
}
.reflection-label .q-num {
  width: 24px; height: 24px; background: var(--accent-light); color: var(--accent);
  border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.reflection-textarea {
  width: 100%; min-height: 120px;
  background: var(--bg-base); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4);
  font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--text-primary); resize: vertical;
  transition: border-color var(--transition);
  line-height: 1.65;
}
.reflection-textarea:focus { outline: none; border-color: var(--accent); }
.reflection-textarea::placeholder { color: var(--text-muted); }
.char-count { font-size: var(--text-xs); color: var(--text-muted); text-align: right; margin-top: var(--space-1); }

/* Field Assignment */
.field-steps { margin: var(--space-4) 0; }
.field-step {
  display: flex; gap: var(--space-4); padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.field-step:last-child { border-bottom: none; }
.field-step-num {
  width: 32px; height: 32px; min-width: 32px;
  background: var(--accent); color: white;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700;
}
.field-step-text { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.7; padding-top: var(--space-1); }

/* Section Complete Banner */
.section-complete-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--green-light); border: 1px solid var(--green);
  border-radius: var(--radius-lg); margin-top: var(--space-6);
  flex-wrap: wrap; gap: var(--space-4);
}
.section-complete-bar p { font-size: var(--text-sm); color: var(--green); font-weight: 500; }
.section-complete-bar .actions { display: flex; gap: var(--space-3); }

/* Module completion card */
.module-complete-card {
  background: linear-gradient(135deg, var(--green-light), var(--bg-elevated));
  border: 2px solid var(--green);
  border-radius: var(--radius-xl); padding: var(--space-10);
  text-align: center; margin-top: var(--space-8);
}
.module-complete-card h2 { font-size: var(--text-xl); color: var(--green); margin-bottom: var(--space-3); }
.module-complete-card p { color: var(--text-secondary); margin-bottom: var(--space-6); }
.module-complete-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* =============================================
   QUIZ STYLES
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg-overlay);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6);
  animation: fadeIn 200ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--bg-elevated); border-radius: var(--radius-xl);
  padding: var(--space-8); width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 250ms ease;
}
.modal-box.large { max-width: 760px; }
@keyframes slideUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

.quiz-header { margin-bottom: var(--space-6); }
.quiz-progress-text {
  font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--space-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.quiz-bar {
  height: 6px; background: var(--bg-subtle); border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.quiz-bar-fill {
  height: 100%; background: var(--accent); border-radius: var(--radius-full);
  transition: width 300ms ease;
}
.quiz-question-text {
  font-size: var(--text-lg); font-family: var(--font-display);
  font-weight: 600; line-height: 1.4; margin-bottom: var(--space-6);
}
.quiz-options { display: flex; flex-direction: column; gap: var(--space-3); }
.quiz-option {
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-base); cursor: pointer; text-align: left;
  font-size: var(--text-sm); font-family: var(--font-body);
  color: var(--text-primary); transition: all var(--transition);
  line-height: 1.5;
}
.quiz-option:hover { border-color: var(--accent); background: var(--accent-light); }
.quiz-option.selected { border-color: var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 500; }
.quiz-option.correct { border-color: var(--green); background: var(--green-light); color: var(--green); font-weight: 600; }
.quiz-option.incorrect { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.quiz-feedback {
  margin-top: var(--space-5); padding: var(--space-4);
  border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.65;
}
.quiz-feedback.correct-fb { background: var(--green-light); color: var(--green); border: 1px solid var(--green); }
.quiz-feedback.incorrect-fb { background: var(--accent-light); color: var(--accent-dark); border: 1px solid var(--accent); }
.quiz-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border);
}
.quiz-close {
  background: none; border: none; color: var(--text-muted);
  font-size: var(--text-sm); padding: var(--space-2); cursor: pointer;
}
.quiz-close:hover { color: var(--text-primary); }
.quiz-result {
  text-align: center; padding: var(--space-8);
}
.quiz-result-score {
  font-size: var(--text-3xl); font-weight: 700;
  font-family: var(--font-display); color: var(--accent);
  margin-bottom: var(--space-2);
}
.quiz-result-label {
  font-size: var(--text-base); color: var(--text-secondary);
  margin-bottom: var(--space-6);
}
.quiz-result-message {
  font-size: var(--text-base); color: var(--text-primary);
  margin-bottom: var(--space-8); max-width: 400px; margin-left: auto; margin-right: auto;
}

/* Activity styles */
.activity-header { margin-bottom: var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--border); }
.activity-type {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2);
}
.activity-header h3 { font-size: var(--text-xl); }
.activity-prompt {
  font-size: var(--text-base); color: var(--text-secondary);
  line-height: 1.75; margin-bottom: var(--space-4);
}
.activity-textarea {
  width: 100%; min-height: 150px;
  background: var(--bg-base); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4);
  font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--text-primary); resize: vertical;
  transition: border-color var(--transition);
  line-height: 1.65;
}
.activity-textarea:focus { outline: none; border-color: var(--accent); }
.activity-footer { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-6); }

/* =============================================
   SELF-ASSESSMENT STYLES
   ============================================= */
.assessment-wrap {
  max-width: 800px; margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-20);
}
.assessment-header {
  text-align: center; margin-bottom: var(--space-10);
}
.assessment-header h1 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.assessment-intro {
  font-size: var(--text-base); color: var(--text-secondary);
  line-height: 1.8; max-width: 600px; margin: 0 auto var(--space-8);
}
.assessment-module-section {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-5);
}
.assessment-module-title {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 600; margin-bottom: var(--space-4);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--border);
}
.rating-section { margin-bottom: var(--space-5); }
.rating-label {
  font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary); margin-bottom: var(--space-3);
}
.rating-scale {
  display: flex; gap: var(--space-2); align-items: center;
}
.rating-btn {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  border: 2px solid var(--border); background: var(--bg-base);
  font-weight: 700; font-size: var(--text-sm); font-family: var(--font-display);
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition);
}
.rating-btn:hover { border-color: var(--accent); color: var(--accent); }
.rating-btn.selected { background: var(--accent); border-color: var(--accent); color: white; }
.rating-labels {
  display: flex; justify-content: space-between;
  font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-2);
  padding: 0 var(--space-1);
}
.assessment-question { margin-top: var(--space-4); }
.assessment-q-label {
  font-size: var(--text-sm); font-weight: 600;
  color: var(--text-primary); margin-bottom: var(--space-2);
  line-height: 1.55;
}
.assessment-textarea {
  width: 100%; min-height: 100px;
  background: var(--bg-base); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--text-primary); resize: vertical; line-height: 1.65;
  transition: border-color var(--transition);
}
.assessment-textarea:focus { outline: none; border-color: var(--accent); }
.assessment-overall {
  background: var(--accent-light); border: 1px solid var(--accent);
  border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-8);
}
.assessment-overall h3 { font-size: var(--text-lg); color: var(--accent); margin-bottom: var(--space-3); }
.assessment-overall p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-4); }
.assessment-actions {
  display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap;
  margin-top: var(--space-8);
}

/* Results radar chart */
.results-section { margin-top: var(--space-8); }
.results-section h3 { font-size: var(--text-xl); margin-bottom: var(--space-6); text-align: center; }
.radar-wrap {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-8);
  margin-bottom: var(--space-6);
}

/* =============================================
   PROGRESS DASHBOARD
   ============================================= */
.progress-wrap {
  max-width: 900px; margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-20);
}
.progress-hero {
  background: linear-gradient(135deg, var(--accent-light), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-8);
  margin-bottom: var(--space-8);
}
.progress-hero h2 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.progress-hero p { color: var(--text-secondary); font-size: var(--text-sm); }
.overall-progress {
  display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5);
}
.overall-bar {
  flex: 1; height: 12px; background: var(--border);
  border-radius: var(--radius-full); overflow: hidden;
}
.overall-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: var(--radius-full); transition: width 600ms ease;
}
.overall-pct { font-size: var(--text-lg); font-weight: 700; font-family: var(--font-display); color: var(--accent); white-space: nowrap; }
.progress-modules { display: flex; flex-direction: column; gap: var(--space-3); }
.prog-module-row {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5);
  cursor: pointer; transition: all var(--transition);
}
.prog-module-row:hover { border-color: var(--accent); }
.prog-module-num {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--bg-subtle); border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700; color: var(--text-muted);
}
.prog-module-num.done { background: var(--green-light); color: var(--green); }
.prog-module-name { flex: 1; font-size: var(--text-sm); font-weight: 500; }
.prog-module-bar {
  width: 120px; height: 6px; background: var(--bg-subtle); border-radius: var(--radius-full);
}
.prog-module-bar-fill {
  height: 100%; background: var(--accent); border-radius: var(--radius-full);
  transition: width 600ms ease;
}
.prog-module-pct { font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); width: 32px; text-align: right; }

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed; bottom: var(--space-6); right: var(--space-6);
  background: var(--text-primary); color: var(--text-inverse);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 500;
  z-index: 1000; box-shadow: var(--shadow-lg);
  animation: toastIn 300ms ease;
}
@keyframes toastIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
  .module-hero { padding: var(--space-6); }
  .content-card { padding: var(--space-5); }
  .modal-box { padding: var(--space-6); }
  .assessment-module-section { padding: var(--space-5); }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .rating-scale { gap: var(--space-1); }
  .rating-btn { width: 36px; height: 36px; }
}

/* =============================================
   INTRO PAGE
   ============================================= */
.intro-wrap {
  max-width: 900px; margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-20);
}
.intro-hero {
  background: linear-gradient(135deg, var(--blue-light), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-10);
  margin-bottom: var(--space-8);
}
[data-theme="dark"] .intro-hero { background: linear-gradient(135deg, var(--blue-light), var(--bg-subtle)); }
.intro-hero-label {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: var(--space-3);
}
.intro-hero h1 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.intro-hero p { color: var(--text-secondary); line-height: 1.8; }

/* Animations */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.animate-pulse { animation: pulse 2s infinite; }
