/*
  ============================================================
  FILE        : demo/demo_tmt.css
  PROJECT     : aiGodess NEET Platform — Free Demo
  PURPOSE     : Timer Mock Test demo styles
                Matches paid TMT-test.css visual exactly
                Fully self-contained — zero dependency on paid CSS
  CODE RULES  : Numbered sections · Mobile-first · No paid deps
  ============================================================

  TABLE OF CONTENTS
  1.00  CSS VARIABLES AND RESET
  2.00  DEMO BANNER
  3.00  HEADER — dual timer + paper info
  4.00  SUBJECT TABS
  5.00  WELCOME SCREEN
    5.01  Welcome badge, title, tagline
    5.02  Stats row
    5.03  Feature points
    5.04  AAA platform box
    5.05  How-to steps
    5.06  Start button
  6.00  PAGE BODY AND EXAM LAYOUT
  7.00  QUESTION PANEL
    7.01  Clock 2 — question timer ring
    7.02  Warning bar
    7.03  Review buffer notice
    7.04  Question meta
    7.05  Question text
    7.06  Options list
    7.07  OMR bubble row
    7.08  Action buttons
    7.09  Timer notice
  8.00  OMR SHEET PANEL
  9.00  RESULT CARD
    9.01  Score hero
    9.02  Stats grid
    9.03  Time analytics
    9.04  Subject breakdown
    9.05  Motivation card
    9.06  Subscribe box
  10.00 SUBMIT MODAL
  11.00 LOADING OVERLAY
  12.00 TOAST
  13.00 ANIMATIONS
  14.00 MOBILE RESPONSIVE
  ============================================================
*/


/* ============================================================
   1.00  CSS VARIABLES AND RESET
   ============================================================ */

:root {
  --bg:        #0d1117;
  --bg2:       #12161e;
  --bg3:       #161b22;
  --border:    #21262d;
  --border2:   #30363d;
  --text:      #c9d1d9;
  --text2:     #6e7681;
  --text3:     #f0f6fc;
  --purple:    #7c3aed;
  --purple2:   #8b5cf6;
  --purple3:   #c4b5fd;
  --amber:     #f59e0b;
  --green:     #22c55e;
  --green2:    #4ade80;
  --red:       #ef4444;
  --gold:      #f0c040;
  --font:      'Sora', sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --ring-circ: 144;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  min-height: 100vh;
  line-height: 1.5;
}

strong { font-weight: 800; color: var(--text3); }
button { font-family: var(--font); }


/* ============================================================
   2.00  DEMO BANNER
   ============================================================ */

.demo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #1a237e, #1565c0);
  color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.demo-badge {
  background: #fbbf24; color: #0c1a2e;
  font-weight: 800; font-size: 11px;
  padding: 2px 10px; border-radius: 20px;
}
.demo-cta {
  background: #fff; color: #1565c0;
  font-weight: 700; font-size: 12px;
  padding: 4px 14px; border-radius: 20px;
  text-decoration: none;
}
.demo-cta:hover { background: #dbeafe; }


/* ============================================================
   3.00  HEADER — full test timer + paper info + submit
   ============================================================ */

.tmt-header {
  position: fixed;
  top: 34px; left: 0; right: 0;
  z-index: 998;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}

/* 3.01 Left — brand */
.hdr-left { display: flex; align-items: center; gap: 10px; }
.tmt-logo  { font-size: 15px; font-weight: 900; color: var(--text3); }
.tmt-logo span { color: var(--purple); }
.paper-badge {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--purple3);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}

/* 3.02 Centre — Clock 1 full test timer */
.hdr-centre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.full-timer {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px; padding: 6px 14px;
}
.ft-label { font-size: 10px; color: var(--text2); font-weight: 700; text-transform: uppercase; }
.ft-value {
  font-size: 18px; font-weight: 900;
  font-family: var(--mono); color: var(--green);
}
.ft-value.timer-warn   { color: var(--amber); }
.ft-value.timer-danger { color: var(--red); animation: timerBlink 0.5s ease-in-out infinite; }
.score-pill {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 12px;
  font-size: 12px; font-weight: 700;
}

/* 3.03 Right — buttons */
.hdr-right { display: flex; align-items: center; gap: 8px; }
.hdr-start-btn {
  padding: 8px 18px;
  background: linear-gradient(90deg, var(--purple), var(--purple2));
  color: #fff; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 800; cursor: pointer;
}
.submit-btn {
  padding: 8px 18px;
  background: var(--gold); color: #0c1117;
  border: none; border-radius: 8px;
  font-size: 13px; font-weight: 800; cursor: pointer;
  display: none;
}
.submit-btn.blink { animation: demoBlink 0.85s ease-in-out infinite; }

/* 3.04 End and exit button */
.header-end-btn {
  padding: 7px 14px;
  background: #1e293b;
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.35);
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: background 0.2s;
}
.header-end-btn:hover { background: rgba(248,113,113,0.1); }

/* 3.05 Finish and see results button */
.finish-test-btn {
  padding: 7px 14px;
  background: rgba(240,192,64,0.12);
  color: var(--gold);
  border: 1px solid rgba(240,192,64,0.4);
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: background 0.2s;
}
.finish-test-btn:hover { background: rgba(240,192,64,0.2); }


/* ============================================================
   4.00  SUBJECT TABS
   ============================================================ */

.subject-tabs {
  position: fixed;
  top: 82px; left: 0; right: 0;
  z-index: 997;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.subject-tabs::-webkit-scrollbar { display: none; }
.subject-tab {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 12px; font-weight: 700;
  color: var(--text2);
  border: none; border-bottom: 3px solid transparent;
  background: none; cursor: pointer; font-family: var(--font);
  white-space: nowrap; transition: color 0.2s;
}
.subject-tab.active-phy { color: #22d3ee; border-bottom-color: #22d3ee; }
.subject-tab.active-che { color: #4ade80; border-bottom-color: #4ade80; }
.subject-tab.active-bot { color: #c084fc; border-bottom-color: #c084fc; }
.subject-tab.active-zoo { color: #fb923c; border-bottom-color: #fb923c; }
.tab-count {
  display: inline-block; margin-left: 5px;
  background: var(--border); border-radius: 10px;
  padding: 1px 5px; font-size: 10px;
}


/* ============================================================
   5.00  WELCOME SCREEN
   ============================================================ */

.welcome-wrap {
  padding-top: 90px;
  min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  padding-left: 16px; padding-right: 16px; padding-bottom: 32px;
}
.welcome-card {
  max-width: 720px; width: 100%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid #334155;
  border-top: 4px solid var(--purple);
  border-radius: 20px; padding: 36px;
  margin-top: 20px;
}

/* 5.01 Badge, title, tagline */
.wc-badge {
  display: inline-block;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--purple3);
  font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 16px;
}
.wc-title    { font-size: 26px; font-weight: 900; color: var(--text3); margin-bottom: 6px; }
.wc-tagline  { font-size: 14px; color: var(--text2); margin-bottom: 24px; }

/* 5.02 Stats row */
.wc-stats    { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.wc-stat     { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wc-stat-num { font-size: 22px; font-weight: 900; color: var(--gold); font-family: var(--mono); }
.wc-stat-lbl { font-size: 11px; color: var(--text2); font-weight: 600; }

/* 5.03 Feature points */
.wc-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.wc-feature  {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #1e293b; border-radius: 10px;
  padding: 12px 14px;
}
.wc-feature-icon  { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.wc-feature-body  { flex: 1; min-width: 0; }
.wc-feature-title { font-size: 13px; font-weight: 800; color: var(--text3); margin-bottom: 3px; }
.wc-feature-desc  { font-size: 12px; color: var(--text2); line-height: 1.5; }
.wc-feature-desc strong { color: #94a3b8; }

/* 5.04 AAA platform box */
.wc-aaa-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.07), rgba(34,211,238,0.05));
  border: 1.5px solid rgba(124,58,237,0.25);
  border-radius: 12px; padding: 16px; margin-bottom: 24px;
}
.wc-aaa-title {
  font-size: 12px; font-weight: 800; color: var(--purple3);
  letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase;
}
.wc-aaa-desc          { font-size: 13px; color: var(--text2); line-height: 1.6; }
.wc-aaa-desc strong   { color: #22d3ee; }

/* 5.05 How-to steps */
.wc-how-title {
  font-size: 12px; font-weight: 700; color: var(--text2);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.wc-steps    { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.wc-step     { display: flex; align-items: flex-start; gap: 12px; }
.wc-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--purple3); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wc-step-text { font-size: 13px; color: var(--text2); line-height: 1.5; padding-top: 3px; }

/* 5.06 Start button */
.wc-start-btn {
  display: inline-block;
  padding: 13px 36px;
  background: linear-gradient(90deg, #6d28d9, var(--purple), var(--purple2));
  color: #fff; font-size: 15px; font-weight: 800;
  border: none; border-radius: 12px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(124,58,237,0.35);
  transition: opacity 0.2s;
}
.wc-start-btn:hover { opacity: 0.9; }


/* ============================================================
   6.00  PAGE BODY AND EXAM LAYOUT
   ============================================================ */

.page-body { padding-top: 122px; }

.exam-wrap {
  display: none;
  max-width: 1400px; margin: 0 auto;
  padding: 16px; gap: 16px;
}


/* ============================================================
   7.00  QUESTION PANEL
   ============================================================ */

.question-panel { flex: 1; min-width: 0; }


/* 7.01 Clock 2 — question timer ring */
.qtimer-panel {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
}
.ring-wrap {
  position: relative; width: 56px; height: 56px; flex-shrink: 0;
}
.ring-wrap svg { transform: rotate(-90deg); display: block; }
.ring-track { stroke: #1e2535; fill: none; stroke-width: 5; }
.ring-fill  {
  stroke: var(--purple); fill: none; stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 144; stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s linear, stroke 0.5s;
}
.ring-centre {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-secs  {
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  color: var(--purple3); line-height: 1;
}
.ring-label { font-size: 9px; color: var(--text2); font-weight: 600; }
.qtimer-info { flex: 1; }
.qtimer-top  { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.qtimer-title { font-size: 12px; font-weight: 700; color: var(--text2); }
.qtimer-diff-badge {
  font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 10px;
}
.diff-easy   { background: rgba(34,197,94,0.15);  color: #22c55e; }
.diff-medium { background: rgba(245,158,11,0.15); color: #f59e0b; }
.qtimer-alloc { font-size: 11px; color: var(--text2); margin-bottom: 6px; }
.qtimer-bar-wrap {
  background: #1e2535; border-radius: 4px; height: 5px; overflow: hidden;
}
.qtimer-bar {
  height: 100%; border-radius: 4px;
  background: var(--purple);
  transition: width 0.8s linear, background 0.5s;
}


/* 7.02 Warning bar */
.skip-warning {
  display: none;
  align-items: center; gap: 10px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px; padding: 8px 14px;
  font-size: 13px; color: #fca5a5;
  margin-bottom: 10px;
  animation: warningPulse 1s ease-in-out infinite;
}
.skip-warning.active { display: flex; }
.skip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; flex-shrink: 0;
  animation: dotBlink 0.5s ease-in-out infinite;
}


/* 7.03 Review buffer notice */
.review-buffer-notice {
  display: none;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: #86efac; margin-bottom: 10px;
}
.review-buffer-notice.active { display: block; }


/* 7.04 Question meta */
.q-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.q-number {
  font-size: 12px; font-weight: 700;
  color: var(--text2); font-family: var(--mono);
}
.q-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.q-subject-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 6px;
}
.badge-Physics   { background: rgba(34,211,238,0.1);  color: #22d3ee; }
.badge-Chemistry { background: rgba(74,222,128,0.1);  color: #4ade80; }
.badge-Botany    { background: rgba(192,132,252,0.1); color: #c084fc; }
.badge-Zoology   { background: rgba(251,146,60,0.1);  color: #fb923c; }
.diff-badge {
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(124,58,237,0.15); color: var(--purple3);
}


/* 7.05 Question text */
.question-text {
  background: #0f172a; border: 1px solid #1e293b;
  border-radius: 12px; padding: 18px;
  font-size: 15px; font-weight: 500;
  line-height: 1.65; color: var(--text3);
  margin-bottom: 14px;
}


/* 7.06 Options list */
.options-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.option-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: #0f172a; border: 1.5px solid #1e293b;
  border-radius: 10px; padding: 12px 14px;
  font-size: 14px; color: #cbd5e1; line-height: 1.5;
  cursor: default; /* NOT clickable — shade via OMR bubbles only */
  user-select: none;
}
/* No hover effect — options are labels not buttons */
.option-label {
  width: 26px; height: 26px; border-radius: 6px;
  background: #1e293b; color: var(--text2);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s, color 0.15s;
}
.option-text { flex: 1; line-height: 1.5; }
.option-item.selected { border-color: #22d3ee; background: rgba(34,211,238,0.06); }
.option-item.selected .option-label { background: #22d3ee; color: #0c1117; }


/* 7.07 OMR bubble row */
.bubble-section {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
}
.bubble-label {
  font-size: 11px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.bubbles-row { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.bubble-group { display: flex; flex-direction: column; align-items: center; gap: 5px; }

/* 7.07.01 Wrapper — bubbles + inline buffer note side by side */
.bubble-row-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* 7.07.02 Gentle buffer note — shown only after bubble shaded */
.shade-buffer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}
.shade-buffer-note span {
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
  font-style: italic;
}

/* 7.07.03 Mini ring — mirrors question timer ring at small scale */
.mini-ring-svg { transform: rotate(-90deg); flex-shrink: 0; }
.mini-ring-track { stroke: #1e2535; fill: none; stroke-width: 3; }
.mini-ring-fill  {
  stroke: #334155; fill: none; stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 75;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s linear, stroke 0.5s;
}
.answer-bubble {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border2);
  color: var(--text2); font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s; user-select: none;
  font-family: var(--mono);
}
.answer-bubble:hover    { border-color: var(--purple); color: var(--purple3); }
.answer-bubble.shaded   {
  background: var(--purple); border-color: var(--purple);
  color: #fff; box-shadow: 0 0 0 3px rgba(124,58,237,0.3);
}
.bubble-sublabel { font-size: 11px; font-weight: 700; color: var(--text2); }
.bubble-hint     { font-size: 12px; color: var(--text2); font-style: italic; }


/* 7.08 Action buttons */
.q-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.btn {
  padding: 9px 16px; border-radius: 8px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: none; font-family: var(--font);
  transition: opacity 0.15s;
}
.btn:hover    { opacity: 0.85; }
.btn-prev     { background: var(--bg3); color: var(--text); border: 1px solid var(--border2); }
.btn-clear    { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.btn-review   { background: rgba(245,158,11,0.12); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
.btn-review.active { background: rgba(245,158,11,0.25); border-color: var(--amber); }
.btn-next-disabled { background: var(--bg3); color: #334155; border: 1px solid var(--border); cursor: not-allowed; }
.btn-next     { background: var(--purple2); color: #fff; border: 1px solid var(--purple); }


/* 7.09 Timer notice */
.timer-notice {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 8px; padding: 10px 14px;
  font-size: 12px; color: var(--text2); line-height: 1.6;
}


/* ============================================================
   8.00  OMR SHEET PANEL
   ============================================================ */

.omr-panel {
  width: 220px; flex-shrink: 0;
  background: #0f172a; border: 1px solid #1e293b;
  border-radius: 14px; padding: 14px;
  height: fit-content; position: sticky; top: 125px;
  overflow: hidden;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.omr-sheet-title {
  font-size: 11px; font-weight: 800;
  color: #334155; letter-spacing: 1px;
  margin-bottom: 10px; text-transform: uppercase;
}
.omr-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 6px; margin-bottom: 12px;
}
.omr-stat { background: var(--bg3); border-radius: 8px; padding: 8px 4px; text-align: center; }
.omr-stat-val {
  font-size: 18px; font-weight: 900;
  font-family: var(--mono); margin-bottom: 2px;
}
.omr-stat-val.green  { color: var(--green2); }
.omr-stat-val.muted  { color: var(--text2); }
.omr-stat-val.purple { color: var(--purple3); }
.omr-stat-lbl { font-size: 9px; color: var(--text2); font-weight: 600; text-transform: uppercase; }
.omr-subj-header {
  font-size: 10px; font-weight: 800; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 6px 0 4px; border-top: 1px solid var(--border);
  margin-top: 6px;
}
.omr-subj-header:first-child { border-top: none; margin-top: 0; }
.omr-row { display: flex; align-items: center; gap: 3px; margin-bottom: 3px; }
.omr-row-label { font-size: 9px; color: var(--text2); width: 14px; flex-shrink: 0; }
.omr-q-block {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; cursor: pointer; padding: 2px;
  border-radius: 4px; transition: background 0.1s;
}
.omr-q-block:hover { background: rgba(124,58,237,0.1); }
.omr-q-block.current  { background: rgba(240,192,64,0.1); outline: 1px solid var(--gold); border-radius: 4px; }
.omr-q-block.answered { background: rgba(74,222,128,0.08); }
.omr-q-block.review   { background: rgba(245,158,11,0.08); }
.omr-q-num { font-size: 9px; color: var(--text2); font-weight: 700; }
.omr-bubbles { display: flex; gap: 1px; }
.omr-bubble {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border2);
  font-size: 7px; font-weight: 700; color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.1s;
}
.omr-bubble.omr-shaded        { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }
.omr-bubble.omr-review-shade  { background: var(--amber); border-color: var(--amber); color: #0c1117; }
.omr-bubble.omr-current-q     { border-color: var(--gold); }
.omr-legend {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text2); }
.legend-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.answered-dot { background: var(--purple2); }
.review-dot   { background: var(--amber); }
.current-dot  { background: transparent; border: 1.5px solid var(--gold); }
.empty-dot    { background: var(--bg3); border: 1px solid var(--border2); }


/* ============================================================
   9.00  RESULT CARD
   ============================================================ */

.result-wrap {
  display: none;
  width: 100%; max-width: 700px;
  margin: 0 auto; padding: 16px;
}
.result-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid #334155; border-radius: 20px;
  padding: 36px; text-align: center;
}

/* 9.01 Score hero */
.result-disclaimer {
  background: rgba(240,192,64,0.08);
  border: 1px solid rgba(240,192,64,0.3);
  border-radius: 8px; padding: 8px 14px;
  margin-bottom: 16px; font-size: 11px; color: var(--text2);
}
.result-title { font-size: 24px; font-weight: 900; color: var(--text3); margin-bottom: 6px; }
.result-sub   { font-size: 14px; color: var(--text2); margin-bottom: 24px; }
.result-score {
  font-size: 56px; font-weight: 900;
  color: var(--gold); font-family: var(--mono); margin-bottom: 4px;
}
.result-score-lbl { font-size: 13px; color: var(--text2); margin-bottom: 28px; }

/* 9.02 Stats grid */
.result-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 10px; margin-bottom: 24px;
}
.rs-card { background: #161b22; border: 1px solid var(--border2); border-radius: 12px; padding: 14px 8px; }
.rs-num  { font-size: 22px; font-weight: 900; font-family: var(--mono); margin-bottom: 4px; }
.rs-lbl  { font-size: 11px; color: var(--text2); font-weight: 600; text-transform: uppercase; }
.rs-correct .rs-num  { color: var(--green2); }
.rs-wrong   .rs-num  { color: #f87171; }
.rs-skipped .rs-num  { color: var(--text2); }
.rs-autosk  .rs-num  { color: var(--amber); }

/* 9.03 Rank card */
.rs-rank-card {
  text-align: center; padding: 20px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(34,211,238,0.07));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 12px; margin-bottom: 20px;
}
.rs-rank-num   { font-size: 44px; font-weight: 900; font-family: var(--mono); color: var(--purple); }
.rs-rank-label { font-size: 13px; color: var(--text2); margin-top: 4px; margin-bottom: 12px; }
.rs-rank-info  { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.rs-rank-item  { background: rgba(0,0,0,0.2); border-radius: 8px; padding: 10px; text-align: center; }
.rs-rank-val   { font-size: 13px; font-weight: 800; color: var(--text3); }
.rs-rank-lbl   { font-size: 10px; color: var(--text2); margin-top: 3px; }

/* 9.04 Time analytics */
.rs-section       { margin-bottom: 20px; text-align: left; }
.rs-section-title { font-size: 12px; font-weight: 800; color: var(--purple); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.rs-time-grid     { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.rs-time-card     { background: #161b22; border: 1px solid var(--border2); border-radius: 10px; padding: 12px; text-align: center; }
.rs-time-val      { font-size: 18px; font-weight: 900; font-family: var(--mono); }
.rs-time-lbl      { font-size: 10px; color: var(--text2); margin-top: 3px; }

/* Subject breakdown */
.rs-subject-grid  { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.rs-subject-card  { background: #161b22; border: 1px solid var(--border2); border-radius: 10px; padding: 12px; }
.rs-subject-name  { font-size: 12px; font-weight: 700; color: var(--text3); margin-bottom: 6px; }
.rs-subject-bar-wrap { background: #0d1117; border-radius: 4px; height: 6px; margin-bottom: 8px; overflow: hidden; }
.rs-subject-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.rs-subject-details  { display: flex; gap: 8px; }
.rs-subject-detail   { text-align: center; flex: 1; }
.rs-subject-detail-val { font-size: 14px; font-weight: 800; font-family: var(--mono); }
.rs-subject-detail-lbl { font-size: 10px; color: var(--text2); }

/* AI recommendation */
.rs-recommendation {
  background: rgba(34,211,238,0.05); border: 1px solid rgba(34,211,238,0.2);
  border-radius: 10px; padding: 14px;
  font-size: 13px; color: var(--text2); line-height: 1.6; text-align: left;
}
.rs-recommendation strong { color: #22d3ee; }

/* 9.05 Motivation card */
.motivation-card {
  background: linear-gradient(135deg, rgba(240,192,64,0.06), rgba(74,222,128,0.04));
  border: 1.5px solid rgba(240,192,64,0.25);
  border-radius: 16px; padding: 24px 20px;
  margin-bottom: 20px; text-align: left;
}
.motivation-flowers { text-align: center; font-size: 22px; margin-bottom: 10px; letter-spacing: 6px; }
.motivation-heading { text-align: center; font-size: 17px; font-weight: 900; color: var(--gold); margin-bottom: 12px; }
.motivation-note    { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; text-align: center; }
.motivation-note strong { color: var(--text3); }
.motivation-points  { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.mp-row             { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text2); line-height: 1.6; }
.mp-row strong      { color: #22d3ee; }
.motivation-close   { text-align: center; font-size: 14px; font-weight: 700; color: var(--green2); padding-top: 4px; }

/* 9.06 Subscribe box */
.subscribe-box {
  background: rgba(34,211,238,0.06);
  border: 1.5px solid rgba(34,211,238,0.25);
  border-radius: 14px; padding: 20px; margin-bottom: 20px;
}
.subscribe-box p      { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.subscribe-box strong { color: #22d3ee; }
.subscribe-btn {
  display: inline-block; background: var(--gold); color: #0c1117;
  font-size: 15px; font-weight: 800;
  padding: 12px 32px; border-radius: 12px;
  text-decoration: none; transition: background 0.2s;
}
.subscribe-btn:hover { background: #ffd84d; }


/* ============================================================
   10.00 SUBMIT MODAL
   ============================================================ */

.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.85); z-index: 99998;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: linear-gradient(135deg, #0d1117, #12161e);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 16px; padding: 28px; max-width: 420px; width: 100%;
  animation: popIn 0.3s ease;
}
@keyframes popIn { from{transform:scale(0.9);opacity:0} to{transform:scale(1);opacity:1} }
.modal-title { font-size: 18px; font-weight: 900; color: var(--text3); margin-bottom: 8px; }
.modal-sub   { font-size: 13px; color: var(--text2); margin-bottom: 20px; }
.modal-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; margin-bottom: 20px;
}
.modal-stat     { background: #161b22; border-radius: 10px; padding: 12px 8px; text-align: center; }
.modal-stat-val { font-size: 20px; font-weight: 900; font-family: var(--mono); }
.modal-stat-lbl { font-size: 10px; color: var(--text2); text-transform: uppercase; font-weight: 600; }
.modal-btns     { display: flex; flex-direction: column; gap: 8px; }
.btn-confirm {
  padding: 12px; background: var(--purple); color: #fff;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font);
}
.btn-cancel {
  padding: 10px; background: #1e293b; color: var(--text2);
  border: 1px solid var(--border2); border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font);
}


/* ============================================================
   11.00 LOADING OVERLAY
   ============================================================ */

.loading-overlay {
  display: flex; position: fixed; inset: 0;
  background: var(--bg); z-index: 99999;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
}
.loading-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--border2);
  border-top-color: var(--purple);
  animation: spin 0.8s linear infinite;
}
.loading-text { font-size: 15px; font-weight: 700; color: var(--text3); }
.loading-sub  { font-size: 12px; color: var(--text2); }


/* ============================================================
   12.00 TOAST
   ============================================================ */

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1e293b; border: 1px solid #334155;
  border-radius: 10px; padding: 10px 20px;
  font-size: 13px; font-weight: 600; color: var(--text3);
  z-index: 99999; transition: transform 0.3s ease;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }


/* ============================================================
   13.00 ANIMATIONS
   ============================================================ */

@keyframes demoBlink    { 0%,100%{opacity:1} 50%{opacity:0.15} }
@keyframes timerBlink   { 0%,100%{opacity:1} 50%{opacity:0.3}  }
@keyframes warningPulse { 0%,100%{opacity:1} 50%{opacity:0.7}  }
@keyframes dotBlink     { 0%,100%{opacity:1} 50%{opacity:0.2}  }
@keyframes spin         { to { transform: rotate(360deg); }     }
.blink { animation: demoBlink 0.85s ease-in-out infinite !important; }

/* 13.01 Sequential LED chase ring for OMR bubbles */
/* Ring glows around bubble border, chases A->B->C->D->A */
@keyframes ledChase {
  0%   { box-shadow: 0 0 0 3px rgba(124,58,237,0.9), 0 0 10px rgba(124,58,237,0.5); border-color: #7c3aed; }
  25%  { box-shadow: none; border-color: #30363d; }
  100% { box-shadow: none; border-color: #30363d; }
}
/* Each bubble gets a staggered delay so they fire A->B->C->D in sequence */
.bubble-chase #answerBubble-A { animation: ledChase 1.2s ease-in-out 0.0s infinite; }
.bubble-chase #answerBubble-B { animation: ledChase 1.2s ease-in-out 0.3s infinite; }
.bubble-chase #answerBubble-C { animation: ledChase 1.2s ease-in-out 0.6s infinite; }
.bubble-chase #answerBubble-D { animation: ledChase 1.2s ease-in-out 0.9s infinite; }
/* Stop chase when any bubble is shaded */
.bubble-chase .answer-bubble.shaded { animation: none; }


/* ============================================================
   14.00 MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .page-body   { flex-direction: column; }
  .omr-panel   { width: 100%; position: static; }
  .result-stats { grid-template-columns: repeat(2,1fr); }
  .rs-rank-info { grid-template-columns: 1fr; }
  .rs-subject-grid { grid-template-columns: 1fr; }
  .rs-time-grid { grid-template-columns: 1fr; }
  .welcome-card { padding: 24px 16px; }
  .wc-title     { font-size: 20px; }
  .result-card  { padding: 24px 16px; }
  .bubbles-row  { gap: 10px; }
  .answer-bubble { width: 40px; height: 40px; }
}
