/* ── SnowPrep Shared Quiz Styles ── */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface2: #eef1f6;
  --border: #dce1e8;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #0f766e;
  --accent-light: #e6f5f3;
  --green: #16a34a;
  --green-bg: #ecfdf5;
  --green-border: #86efac;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --red-border: #fca5a5;
  --yellow: #ca8a04;
  --purple: #7c3aed;
  --kofi: #e85d4a;
  --radius: 8px;
  --radius-lg: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; font-size: 15px; line-height: 1.6; overflow-x: hidden; -webkit-text-size-adjust: 100%; }

/* ── HEADER ── */
.header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 20px; display: flex; align-items: center; height: 56px; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.header-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
.logo:hover { opacity: 0.8; }
.logo-icon { width: 28px; height: 28px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; flex-shrink: 0; }
.exam-nav-link { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; background: var(--accent-light); padding: 6px 14px; border-radius: 20px; white-space: nowrap; transition: all 0.2s; flex-shrink: 0; }
.exam-nav-link:hover { background: #ccebe7; }
.logo { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-center { flex: 1; display: flex; align-items: center; justify-content: center; }
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-stats { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.header-stats span { white-space: nowrap; }
.stat-val { color: var(--text); font-weight: 700; }

/* ── HOME LAYOUT WITH SIDEBAR ── */
.home-layout {
  display: grid; grid-template-columns: 1fr 240px; gap: 24px;
  max-width: 960px; margin: 0 auto; padding: 0 24px; align-items: start;
}
@media (max-width: 768px) {
  .home-layout { grid-template-columns: 1fr; }
  .roadmap-sidebar { order: 1; }
}

/* ── ROADMAP SIDEBAR ── */
.roadmap-sidebar { position: sticky; top: 72px; }
.roadmap-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.roadmap-header {
  font-size: 12px; font-weight: 800; color: var(--text);
  padding: 12px 14px 10px; border-bottom: 1px solid var(--border);
  letter-spacing: 0.3px;
}
.roadmap-items { padding: 6px 0; }
.roadmap-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 14px; transition: background 0.15s;
}
.roadmap-item:hover { background: rgba(0,0,0,0.02); }
.roadmap-status { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.roadmap-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }
.roadmap-meta { font-size: 10px; color: var(--muted); margin-top: 1px; }
.roadmap-item.shipped .roadmap-name { color: var(--text); }
.roadmap-free-badge { display: inline-block; font-size: 9px; font-weight: 700; color: #047857; background: #d1fae5; padding: 1px 6px; border-radius: 10px; margin-left: 4px; vertical-align: middle; letter-spacing: 0.3px; }
.roadmap-item.next .roadmap-name { color: #d97706; font-weight: 700; }
.roadmap-item.next { background: #fffbeb; }
.roadmap-item.future .roadmap-name { color: var(--muted); font-style: italic; }
.roadmap-cta {
  padding: 12px 14px; border-top: none;
  text-align: center; background: linear-gradient(135deg,#78350f,#92400e);
  border-radius: 0 0 12px 12px;
}
.roadmap-cta a {
  font-size: 13px; font-weight: 800; color: #fde68a;
  cursor: pointer; text-decoration: none;
  display: inline-block; background: #d97706; color: #fff;
  padding: 8px 16px; border-radius: 6px;
  transition: opacity 0.15s;
}
.roadmap-cta a:hover { opacity: 0.9; text-decoration: none; }
.roadmap-cta.done { background: var(--surface); border-top: 1px solid var(--border); }
.roadmap-cta.done a { color: var(--green); cursor: default; font-weight: 600; background: none; padding: 0; font-size: 11px; }
.roadmap-cta.done a:hover { text-decoration: none; opacity: 1; }

/* ── ROADMAP PREVIEW POPUP ── */
.roadmap-preview { display:none; margin:8px -14px -8px; padding:12px 10px 10px; background:linear-gradient(135deg,#fffbeb,#fff7ed); border-top:1px solid #fde68a; font-size:11px; line-height:1.4; color:#334155; overflow:hidden; word-break:break-word; }
.roadmap-preview * { max-width:100%; box-sizing:border-box; }
.roadmap-preview div[style] { overflow:hidden; }
.roadmap-preview.show { display:block; }
.roadmap-preview-label { font-size:10px; font-weight:800; text-transform:uppercase; color:#b45309; letter-spacing:0.6px; margin-bottom:8px; background:#fde68a; display:inline-block; padding:2px 8px; border-radius:4px; }
.roadmap-preview-q { font-weight:700; font-size:11px; color:#1e293b; margin-bottom:6px; line-height:1.5; }
.roadmap-preview-exp { color:#475569; font-size:11px; line-height:1.5; }
.roadmap-preview-exp strong { color:#1e293b; }
.roadmap-preview-divider { border:none; border-top:1px dashed #e2e8f0; margin:10px 0; }
.roadmap-preview-cs { font-size:11px; color:#64748b; }
.roadmap-preview-cs-title { font-weight:700; color:#1e293b; font-size:12px; margin-bottom:4px; }
.roadmap-preview-cs table { width:100%; font-size:11px; border-collapse:collapse; margin-top:6px; }
.roadmap-preview-cs td { padding:4px 8px; border:1px solid #e2e8f0; background:#fff; }
.roadmap-preview-cs td:first-child { font-weight:700; white-space:normal; word-break:break-word; color:#1e293b; background:#fefce8; }
.roadmap-item.next { cursor:pointer; }

/* ── BLURRED EXPLANATION + PRO OVERLAY ── */
.explanation-locked {
  position: relative; overflow: hidden; border-radius: var(--radius);
  margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px;
}
.explanation-locked .feedback-body-blur {
  filter: blur(4px); -webkit-filter: blur(4px);
  user-select: none; pointer-events: none;
  opacity: 0.55; max-height: 90px; overflow: hidden;
  position: relative; line-height: 1.6; font-size: 13px;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}
.explanation-unlock-overlay {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  background: linear-gradient(135deg, #fefce8, #fff7ed);
  border: 1px solid #fde68a;
  border-radius: 12px; padding: 24px 20px; margin-top: 4px;
}
.explanation-unlock-overlay .unlock-icon { font-size: 22px; }
.explanation-unlock-overlay .unlock-text { font-size: 15px; font-weight: 800; color: var(--text); text-align: center; }
.explanation-unlock-overlay .unlock-sub { font-size: 12px; color: #475569; text-align: center; line-height: 1.5; max-width: 320px; }
.free-explanations-counter {
  font-size: 11px; color: var(--muted); margin-top: 8px; text-align: center;
  padding: 6px 0; border-top: 1px solid var(--border);
}

/* ── Ko-fi float ── */
.kofi-float {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--kofi); color: white;
  border: none; border-radius: 50px;
  padding: 12px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(232,93,74,0.3);
  z-index: 999; transition: transform 0.15s, box-shadow 0.15s;
}
.kofi-float:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,93,74,0.4); }

/* ── SCREENS ── */
.screen { display: none; }
.screen.active { display: block; }

/* ── HOME ── */
.home-hero { margin: 28px 0; padding: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.home-hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.home-hero .subtitle { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.social-proof-strip { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.social-proof-strip span:first-child { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.social-proof-strip strong { color: var(--text); }
.proof-sep { color: var(--border); }

.mode-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }
.mode-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; text-align: left; position: relative; }
.mode-recommended { position: absolute; top: -8px; right: 8px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 10px; letter-spacing: 0.3px; text-transform: uppercase; }
.mode-card:hover { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 2px 8px rgba(15,118,110,0.08); }
.mode-card.selected { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 0 0 2px rgba(15,118,110,0.15); }
.mode-icon { font-size: 22px; margin-bottom: 8px; }
.mode-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.mode-card p { font-size: 12px; color: var(--muted); }

.count-row { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 28px; }
.count-label { font-size: 14px; color: var(--muted); }
.count-select { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 6px 12px; font-size: 14px; cursor: pointer; }

.btn-start { background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; padding: 12px 40px; border-radius: var(--radius); border: none; cursor: pointer; transition: opacity 0.15s, box-shadow 0.15s; box-shadow: 0 2px 8px rgba(15,118,110,0.2); }
.btn-start:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(15,118,110,0.3); }

.trust-indicators { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; }
.trust-indicators span { font-size: 12px; color: var(--green); font-weight: 500; }
.visitor-count {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text); font-weight: 600;
  background: var(--accent-light); padding: 4px 12px;
  border-radius: 20px; margin-left: 14px; white-space: nowrap;
  border: 1px solid rgba(15,118,110,0.15);
}
.visitor-count .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); display: inline-block;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(22,163,74,0); }
}
.visitor-count .count-num { color: var(--accent); font-weight: 800; font-size: 12px; }

#screen-home { background: linear-gradient(180deg, #e6f5f3 0%, var(--bg) 40%); }
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 760px; margin: 0 auto 40px; padding: 20px 24px 0; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.stat-box .num { font-size: 24px; font-weight: 700; }
.stat-box .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat-box.green .num { color: var(--green); }
.stat-box.red .num { color: var(--red); }
.stat-box.yellow .num { color: var(--yellow); }
.stat-box.blue .num { color: var(--accent); }

/* ── TESTIMONIALS SIDEBAR ── */
.testimonials-sidebar {
  position: fixed; top: 80px; left: 20px;
  width: 230px; z-index: 90;
}
.testimonials-sidebar .sidebar-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.testimonials-sidebar .sidebar-title span { font-size: 13px; }
.testimonial-carousel { position: relative; min-height: 120px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; position: absolute; top: 0; left: 0; right: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none;
}
.testimonial-card.active { opacity: 1; pointer-events: auto; }
.testimonial-card .stars { color: #f59e0b; font-size: 11px; margin-bottom: 6px; letter-spacing: 0.5px; }
.testimonial-card .quote { font-size: 11.5px; color: var(--text); line-height: 1.55; font-style: italic; margin-bottom: 10px; }
.testimonial-card .author { display: flex; align-items: center; gap: 8px; }
.testimonial-card .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; flex-shrink: 0;
}
.testimonial-card .author-info { font-size: 10px; }
.testimonial-card .author-name { font-weight: 700; color: var(--text); }
.testimonial-card .author-role { color: var(--muted); }
.testimonial-card .verified { font-size: 9px; color: var(--green); font-weight: 600; margin-top: 1px; }
.carousel-dots { display: flex; gap: 6px; margin-top: 130px; justify-content: center; }
.carousel-dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); transition: background 0.3s;
  cursor: pointer;
}
.carousel-dots .dot.active { background: var(--accent); }
@media (max-width: 1280px) {
  .testimonials-sidebar {
    position: static; width: 100%; max-width: 760px; margin: -20px auto 16px; padding: 0 24px;
  }
  .testimonials-sidebar .sidebar-title { display: none; }
  .testimonial-carousel { min-height: 60px; }
  .testimonial-card { padding: 10px 14px; }
  .testimonial-card .quote { font-size: 12px; margin-bottom: 6px; }
  .testimonial-card .author-info { font-size: 9px; }
  .testimonial-card .avatar { width: 22px; height: 22px; font-size: 10px; }
  .carousel-dots { margin-top: 70px; }
}
@media (max-width: 768px) {
  .testimonials-sidebar { display: none; }
}

/* ── CONTACT SECTION ── */
.contact-section { max-width: 760px; margin: 0 auto 40px; padding: 0 24px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.contact-card .contact-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.contact-card .contact-title span { font-size: 20px; }
.contact-card .contact-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form .form-row { display: flex; gap: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; font-family: inherit; background: var(--bg); color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,0.1); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form textarea { resize: vertical; min-height: 80px; }
.contact-form .btn-send {
  align-self: flex-start; background: var(--accent); color: #fff; font-weight: 700;
  font-size: 14px; padding: 10px 24px; border-radius: var(--radius); border: none;
  cursor: pointer; transition: opacity 0.15s;
}
.contact-form .btn-send:hover { opacity: 0.9; }
.contact-form .btn-send:disabled { opacity: 0.5; cursor: not-allowed; }
.contact-success {
  display: none; padding: 12px 16px; background: var(--green-bg); border: 1px solid var(--green-border);
  border-radius: var(--radius); color: #15803d; font-size: 13px; font-weight: 600; text-align: center;
}
.contact-success.show { display: block; }
.contact-links { display: flex; gap: 16px; margin-top: 16px; align-items: center; }
.contact-links a {
  font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.contact-links a:hover { text-decoration: underline; }
.contact-section { padding-bottom: 60px; }
.contact-compact {
  max-width: 760px; margin: 0 auto 12px; padding: 14px 24px;
  text-align: center; font-size: 13px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.contact-compact a { color: var(--accent); text-decoration: none; font-weight: 600; }
.contact-compact a:hover { text-decoration: underline; }
.contact-sep { color: var(--border); }
@media (max-width: 520px) { .contact-form .form-row { flex-direction: column; } }

/* ── EXAM INFO SECTIONS ── */
.exam-info { max-width: 760px; margin: 0 auto 50px; padding: 0 24px; }
.info-section { margin-bottom: 28px; }
.info-section-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.info-section-title span { font-size: 20px; }

.tips-carousel { position: relative; overflow: hidden; }
.tips-slide {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.tips-slide.active { opacity: 1; position: relative; pointer-events: auto; }
.tips-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.tips-dots .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--border);
  cursor: pointer; transition: background 0.3s;
}
.tips-dots .dot.active { background: var(--accent); }
.tip-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-align: left; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.tip-card .tip-icon { font-size: 20px; margin-bottom: 6px; }
.tip-card h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.tip-card p { font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 520px) { .tips-slide { grid-template-columns: 1fr; } }

.blueprint-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.blueprint-table { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); border-collapse: separate; border-spacing: 0; min-width: 400px; }
.blueprint-table th { background: var(--surface2); text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.blueprint-table td { padding: 10px 14px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); }
.blueprint-table tr:last-child td { border-bottom: none; }
.blueprint-table tr:hover td { background: var(--accent-light); }
.weight-bar-wrap { display: flex; align-items: center; gap: 8px; }
.weight-bar { height: 6px; border-radius: 3px; background: var(--accent); transition: width 0.3s; }
.weight-pct { font-size: 12px; font-weight: 600; color: var(--accent); min-width: 32px; }

.info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 680px) { .info-row { grid-template-columns: 1fr; } }

.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-tag { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.topic-tag span { font-size: 13px; }

.blueprint-note { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.blueprint-note a { color: var(--accent); text-decoration: none; }
.blueprint-table-compact td { padding: 7px 10px; font-size: 12px; }
.blueprint-table-compact th { padding: 7px 10px; font-size: 11px; }
.blueprint-note a:hover { text-decoration: underline; }

/* ── QUIZ ── */
.quiz-wrap { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; }
.progress-bar-wrap { height: 4px; background: var(--surface2); border-radius: 2px; margin-bottom: 24px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s; }
.q-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.q-badge { background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; font-size: 12px; color: var(--muted); }
.q-badge.multi { background: #f3f0ff; border-color: #c4b5fd; color: var(--purple); }
.q-text { font-size: 17px; font-weight: 500; margin-bottom: 24px; line-height: 1.55; color: var(--text); }
.options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.option { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; transition: border-color 0.12s, background 0.12s, box-shadow 0.12s; user-select: none; }
.option:hover:not(.disabled) { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 1px 4px rgba(15,118,110,0.08); }
.option.selected { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 0 0 2px rgba(15,118,110,0.12); }
.option.correct { border-color: var(--green-border) !important; background: var(--green-bg) !important; box-shadow: none !important; }
.option.wrong { border-color: var(--red-border) !important; background: var(--red-bg) !important; box-shadow: none !important; }
.option.disabled { cursor: default; }
.opt-letter { width: 26px; height: 26px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; color: var(--muted); }
.option.selected .opt-letter { background: var(--accent); color: #fff; border-color: var(--accent); }
.option.correct .opt-letter { background: var(--green); color: #fff; border-color: var(--green); }
.option.wrong .opt-letter { background: var(--red); color: white; border-color: var(--red); }
.opt-text { font-size: 14px; line-height: 1.5; flex: 1; }
.feedback-box { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; font-size: 14px; display: none; }
.feedback-box.show { display: block; }
.feedback-box.correct { background: var(--green-bg); border: 1px solid var(--green-border); color: #15803d; }
.feedback-box.wrong { background: var(--red-bg); border: 1px solid var(--red-border); color: #b91c1c; }
.feedback-title { font-weight: 700; margin-bottom: 4px; }
.q-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn { padding: 9px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid; transition: opacity 0.15s; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface2); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red-border); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── KO-FI NUDGE (after 20 Qs) ── */
.kofi-screen { max-width: 560px; margin: 60px auto; padding: 0 24px; text-align: center; }
.kofi-cup { font-size: 72px; margin-bottom: 8px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.kofi-screen h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.kofi-screen .tagline { color: var(--muted); font-size: 15px; margin-bottom: 32px; line-height: 1.6; }
.kofi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.kofi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--kofi); }
.kofi-card p { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.kofi-card p strong { color: var(--text); }
.btn-kofi {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--kofi); color: white;
  font-size: 16px; font-weight: 700;
  padding: 14px 32px; border-radius: var(--radius);
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  margin-bottom: 12px;
}
.btn-kofi:hover { opacity: 0.9; transform: translateY(-1px); }
.skip-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.skip-note a { color: var(--accent); cursor: pointer; text-decoration: none; }
.skip-note a:hover { text-decoration: underline; }
.milestone-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-bg); border: 1px solid var(--green-border);
  color: #15803d; font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
}

/* ── RESULTS ── */
.results-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px; }
.results-hero { text-align: center; margin-bottom: 40px; }
.score-circle { width: 140px; height: 140px; border-radius: 50%; border: 6px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 20px; background: var(--surface); }
.score-pct { font-size: 36px; font-weight: 700; }
.score-lbl { font-size: 12px; color: var(--muted); }
.score-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.score-sub { color: var(--muted); font-size: 15px; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.review-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.review-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.review-item.correct { border-left: 3px solid var(--green); }
.review-item.wrong { border-left: 3px solid var(--red); }
.review-q { font-size: 13px; margin-bottom: 6px; color: var(--text); }
.review-answers { font-size: 12px; color: var(--muted); }
.review-answers .your { color: var(--red); }
.review-answers .correct-ans { color: var(--green); }
.results-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn { padding: 5px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--muted); transition: all 0.15s; }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 32px; font-size: 14px; }

/* subtle Ko-fi reminder in results */
.kofi-results-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px;
}
.kofi-results-strip p { font-size: 13px; color: var(--muted); }
.kofi-results-strip p strong { color: var(--text); }
.btn-kofi-sm {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--kofi); color: white;
  font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: var(--radius);
  text-decoration: none; border: none; cursor: pointer;
  white-space: nowrap; transition: opacity 0.15s;
}
.btn-kofi-sm:hover { opacity: 0.85; }

/* ── STREAK CELEBRATION ── */
.streak-toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--surface); border: 1px solid var(--green-border);
  border-radius: var(--radius); padding: 10px 20px;
  font-size: 13px; font-weight: 600; color: #15803d;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 200; opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.streak-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SOCIAL PROOF ── */
.social-proof { font-size: 11px; color: var(--muted); margin-top: 8px; }
.social-proof span { color: var(--accent); font-weight: 600; }

/* ── VALUE ANCHOR on nudge ── */
.value-anchor {
  display: flex; justify-content: center; gap: 24px; margin-bottom: 20px;
}
.value-stat { text-align: center; }
.value-stat .v-num { font-size: 22px; font-weight: 700; color: var(--accent); }
.value-stat .v-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── PULSE on floating btn after engagement ── */
@keyframes kofi-pulse {
  0% { box-shadow: 0 4px 16px rgba(232,93,74,0.3); }
  50% { box-shadow: 0 4px 24px rgba(232,93,74,0.6); }
  100% { box-shadow: 0 4px 16px rgba(232,93,74,0.3); }
}
.kofi-float.pulse { animation: kofi-pulse 2s ease-in-out infinite; }

/* ── COMPARISON ANCHOR ── */
.comparison-note { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.comparison-note strong { color: var(--text); }

/* ── CHEAT SHEET STICKY BOTTOM BANNER ── */
.cheatsheet-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 12px 24px;
  font-size: 14px; font-weight: 500;
  z-index: 998;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.cheatsheet-bar.hidden { transform: translateY(100%); }
.cheatsheet-bar .bar-text { display: flex; align-items: center; gap: 8px; }
.cheatsheet-bar .bar-text span { font-size: 16px; }
.btn-cheatsheet {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 18px; border-radius: var(--radius); border: none;
  cursor: pointer; white-space: nowrap;
  transition: opacity 0.15s;
}
.btn-cheatsheet:hover { opacity: 0.9; }
.bar-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 18px; cursor: pointer; margin-left: 4px; line-height: 1;
  padding: 4px;
}
.bar-close:hover { color: #fff; }

/* ── EMAIL FORM SHARED ── */
.email-form { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.email-input {
  padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--border);
  font-size: 14px; width: 280px; max-width: 100%; outline: none;
  transition: border-color 0.15s;
  background: var(--surface); color: var(--text);
}
.email-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,0.1); }
.email-input::placeholder { color: var(--muted); }
.btn-subscribe {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 24px; border-radius: var(--radius); border: none;
  cursor: pointer; transition: opacity 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(15,118,110,0.2);
  white-space: nowrap;
}
.btn-subscribe:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(15,118,110,0.3); }
.btn-subscribe:disabled { opacity: 0.5; cursor: not-allowed; }
.email-note { font-size: 11px; color: var(--muted); margin-top: 10px; }
.email-success {
  display: none; padding: 12px 16px;
  background: var(--green-bg); border: 1px solid var(--green-border);
  border-radius: var(--radius); color: #15803d;
  font-size: 14px; font-weight: 600; text-align: center;
}
.email-success.show { display: block; }
.btn-download {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff !important;
  font-size: 15px; font-weight: 700;
  padding: 12px 28px; border-radius: var(--radius);
  text-decoration: none; border: none; cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(15,118,110,0.2);
  transition: opacity 0.15s, transform 0.15s;
}
.btn-download:hover { opacity: 0.9; transform: translateY(-1px); }


/* ── MOBILE: 768px ── */
@media (max-width: 768px) {
  .header { padding: 8px 12px; height: auto; min-height: 48px; flex-wrap: wrap; }
  .header-left { gap: 6px; }
  .logo { font-size: 13px; gap: 6px; }
  .logo-icon { width: 24px; height: 24px; font-size: 12px; }
  .visitor-count { font-size: 10px; padding: 2px 8px; }
  .header-center { display: none; }
  .header-right { gap: 10px; }
  .header-stats { font-size: 11px; gap: 8px; }
  .logo { max-width: none; }
  .home-hero h1 { font-size: 22px; }
  .home-hero .subtitle { font-size: 13px; }
  .exam-info { padding: 0 16px; }
  .info-section-title { font-size: 16px; }
  .blueprint-table { font-size: 12px; }
  .blueprint-table th, .blueprint-table td { padding: 8px 10px; }
  .blueprint-table-compact th, .blueprint-table-compact td { padding: 6px 8px; font-size: 11px; }
  .weight-bar-wrap { gap: 4px; }
  .topic-tag { font-size: 10px; padding: 4px 10px; }
  .quiz-wrap { padding-bottom: 120px; }
  .q-actions {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 10px 16px; z-index: 99;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    gap: 8px;
  }
}

/* ── MOBILE: 520px ── */
@media (max-width: 520px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 16px; }
  .stat-box { padding: 10px; }
  .stat-box .num { font-size: 20px; }
  .result-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .header { min-height: 44px; gap: 4px; }
  .logo { font-size: 11px; }
  .exam-nav-link { font-size: 10px; padding: 4px 10px; }
  .visitor-count { display: none; }
  .header-right { width: 100%; justify-content: space-between; order: 3; border-top: 1px solid var(--border); padding-top: 6px; margin-top: 4px; }
  .header-stats { font-size: 11px; gap: 10px; }
  .header-left { flex-wrap: nowrap; }
  .q-text { font-size: 15px; }
  .quiz-wrap { padding: 20px 16px 120px; }
  .option { padding: 12px 14px; gap: 10px; }
  .opt-text { font-size: 13px; }
  .opt-letter { width: 24px; height: 24px; font-size: 11px; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .btn-start { font-size: 15px; padding: 12px 32px; width: 100%; max-width: 300px; }
  .q-actions { gap: 8px; }
  .mode-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mode-card { padding: 12px; }
  .mode-card h3 { font-size: 13px; }
  .mode-card p { font-size: 11px; }
  .mode-icon { font-size: 20px; margin-bottom: 6px; }
  .count-row { margin-bottom: 20px; order: 2; }
  .btn-start { order: 3; }
  .trust-indicators { order: 4; }
  .mode-cards { order: 5; margin-top: 8px; }
  .home-hero { margin: 20px 0; }
  .home-hero h1 { font-size: 20px; }
  .kofi-float { bottom: 56px; right: 12px; padding: 8px 14px; font-size: 12px; }
  .cheatsheet-bar { font-size: 11px; gap: 8px; padding: 10px 12px; flex-wrap: wrap; justify-content: center; }
  .cheatsheet-bar .bar-text { font-size: 11px; text-align: center; }
  .btn-cheatsheet { font-size: 12px; padding: 7px 14px; }
  .results-wrap { padding: 24px 16px; }
  .score-circle { width: 120px; height: 120px; }
  .score-pct { font-size: 30px; }
  .score-title { font-size: 18px; }
  .score-sub { font-size: 13px; }
  .results-actions { flex-direction: column; width: 100%; }
  .results-actions .btn { width: 100%; text-align: center; }
  .kofi-results-strip { flex-direction: column; text-align: center; padding: 12px 14px; }
  .kofi-results-strip p { font-size: 12px; }
  .review-item { padding: 12px; }
  .review-q { font-size: 12px; }
  .review-answers { font-size: 11px; }
  .filter-tabs { gap: 6px; }
  .tab-btn { padding: 5px 10px; font-size: 12px; }
  .feedback-box { padding: 12px; font-size: 13px; }
  .contact-card { padding: 20px 16px; }
  .contact-title { font-size: 16px; }
  .info-row { gap: 16px; }
  .kofi-screen { margin: 32px auto; }
  .kofi-screen h2 { font-size: 22px; }
  .kofi-screen .tagline { font-size: 13px; }
  .kofi-card { padding: 20px 16px; }
  .value-anchor { gap: 16px; }
  .value-stat .v-num { font-size: 18px; }
  .auth-modal { padding: 24px 20px; width: 94%; }
}

/* ── MOBILE: 380px (very small) ── */
@media (max-width: 380px) {
  .logo { font-size: 11px; max-width: calc(100vw - 100px); }
  .home-hero h1 { font-size: 18px; }
  .mode-cards { gap: 6px; }
  .mode-card { padding: 10px; }
  .mode-card h3 { font-size: 12px; }
  .q-text { font-size: 14px; }
  .option { padding: 10px 12px; }
  .opt-text { font-size: 12px; }
  .stats-bar { gap: 6px; padding: 0 12px; }
  .stat-box .num { font-size: 18px; }
  .stat-box .lbl { font-size: 10px; }
  .btn-start { font-size: 14px; padding: 11px 24px; }
}

/* ── TOUCH-FRIENDLY: ensure min tap targets ── */
@media (pointer: coarse) {
  .option { min-height: 48px; }
  .btn { min-height: 44px; }
  .tab-btn { min-height: 36px; }
  .mode-card { min-height: 80px; }
  .roadmap-item { min-height: 44px; }
  .bar-close { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
}

/* ── AUTH MODAL ── */
.auth-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 1100; display: none; align-items: center; justify-content: center;
}
.auth-modal-overlay.show { display: flex; }
.auth-modal {
  background: var(--surface); border-radius: 16px; padding: 32px;
  width: 90%; max-width: 380px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative;
}
.auth-modal h3 { font-size: 18px; margin: 0 0 4px; color: var(--text); }
.auth-modal .auth-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.auth-modal .btn-google {
  width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-modal .btn-google:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(15,118,110,0.1); }
.auth-modal .btn-google img { width: 18px; height: 18px; }
.auth-modal .divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  font-size: 11px; color: var(--muted);
}
.auth-modal .divider::before, .auth-modal .divider::after {
  content: ''; flex: 1; border-top: 1px solid var(--border);
}
.auth-modal .auth-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; margin-bottom: 8px;
  box-sizing: border-box; outline: none; transition: border-color 0.15s;
}
.auth-modal .auth-input:focus { border-color: var(--accent); }
.auth-modal .btn-email-submit {
  width: 100%; padding: 10px; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius); font-size: 13px;
  font-weight: 700; cursor: pointer; margin-top: 4px; transition: opacity 0.15s;
}
.auth-modal .btn-email-submit:hover { opacity: 0.9; }
.auth-modal .btn-email-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-modal .auth-toggle { font-size: 11px; color: var(--muted); margin-top: 12px; }
.auth-modal .auth-toggle a { color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: none; }
.auth-modal .auth-error { color: var(--red); font-size: 11px; margin-top: 6px; display: none; }
.auth-modal .auth-success { color: var(--green); font-size: 12px; margin-top: 8px; display: none; }
.auth-close {
  position: absolute; top: 12px; right: 16px; background: none;
  border: none; font-size: 20px; color: var(--muted); cursor: pointer;
}
.pro-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
  font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.user-menu { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.user-avatar { width: 24px; height: 24px; border-radius: 50%; }
.user-name { font-weight: 600; color: var(--text); }
.btn-signout { background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 10px; font-size: 11px; color: var(--muted); cursor: pointer; }
.btn-signout:hover { border-color: var(--red); color: var(--red); }
.btn-signin { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text); }
.btn-signin:hover { border-color: var(--accent); }
.btn-signin img { width: 16px; height: 16px; }

/* ── PRO BUY BUTTON IN OVERLAY ── */
.btn-pro-buy {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
  border: none; border-radius: 10px; padding: 12px 24px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  width: 100%; max-width: 300px; margin-top: 8px;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-pro-buy:hover { opacity: 0.9; transform: translateY(-1px); }
.pro-price-tag {
  font-size: 22px; font-weight: 800; color: #d97706;
  margin: 4px 0;
}
.pro-price-original {
  font-size: 12px; color: var(--muted); text-decoration: line-through; margin-right: 6px;
}

/* ── EXAM SELECTOR LINK IN HEADER ── */
.exam-nav-link {
  font-size: 11px; color: var(--accent); text-decoration: none; font-weight: 600;
  background: var(--accent-light); padding: 3px 10px; border-radius: 4px;
  border: 1px solid rgba(15,118,110,0.15); white-space: nowrap;
  transition: background 0.15s;
}
.exam-nav-link:hover { background: #d1ece9; }
