/* ============================================================
   DMV Thailand Practice Test — Main Stylesheet
   ============================================================ */

:root {
  --dmv-navy:    #1d4ed8;
  --dmv-blue:    #2563eb;
  --dmv-light:   #e2e8f0;
  --dmv-border:  #e2e8f0;
  --dmv-gray:    #64748b;
  --dmv-red:     #c0392b;
  --dmv-green:   #1a7a4a;
  --dmv-text:    #1a1a2e;
  --dmv-white:   #ffffff;
  --dmv-bg:      #f8fafc;
  --dmv-accent:  #0ea5e9;
  --radius:      6px;
  --shadow:      0 2px 8px rgba(0,0,0,.12);
  --font:        'Prompt', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--dmv-bg);
  color: var(--dmv-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }

/* ---------- Font (Google) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--dmv-navy);
  color: var(--dmv-white);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
  flex-shrink: 0;
}
.site-header .logo-seal {
  width: 44px;
  height: 44px;
  background: var(--dmv-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-header .logo-seal span {
  font-size: 10px;
  font-weight: 700;
  color: var(--dmv-navy);
  text-align: center;
  line-height: 1.2;
}
.site-header .header-text { display: flex; flex-direction: column; }
.site-header .header-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.site-header .header-sub {
  font-size: 0.72rem;
  opacity: .75;
  margin-top: 1px;
}
.lang-switcher {
  margin-left: auto;
  flex-shrink: 0;
}
.lang-switcher select {
  appearance: none;
  background: rgba(255,255,255,.12);
  color: var(--dmv-white);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  padding: 6px 28px 6px 12px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6l5 5 5-5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.lang-switcher select:hover { background-color: rgba(255,255,255,.2); }
.lang-switcher select option { color: var(--dmv-text); }
@media (max-width: 480px) {
  .lang-switcher select { font-size: 0.72rem; padding: 5px 24px 5px 9px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: auto;
  background: var(--dmv-navy);
  color: rgba(255,255,255,.6);
  text-align: center;
  font-size: 0.75rem;
  padding: 12px;
  flex-shrink: 0;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.home-hero {
  text-align: center;
  max-width: 680px;
  margin-bottom: 40px;
}
.home-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dmv-navy);
  margin-bottom: 10px;
}
.home-hero p {
  font-size: 0.97rem;
  color: var(--dmv-gray);
  line-height: 1.6;
}

.home-info-bar {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.info-chip {
  background: var(--dmv-white);
  border: 1px solid var(--dmv-border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--dmv-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-chip strong { font-weight: 600; }
.support-chip {
  background: var(--dmv-white);
  border: 1px solid var(--dmv-border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--dmv-navy);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.support-chip:hover {
  border-color: var(--dmv-blue);
  color: var(--dmv-blue);
  box-shadow: 0 2px 8px rgba(29,78,216,.12);
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.support-modal.is-open { display: flex; }
.support-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 50, .55);
}
.support-dialog {
  position: relative;
  width: min(420px, 100%);
  background: var(--dmv-white);
  border: 1px solid var(--dmv-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  padding: 26px 22px 22px;
  text-align: center;
}
.support-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--dmv-border);
  border-radius: 50%;
  background: var(--dmv-white);
  color: var(--dmv-gray);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.support-close:hover { color: var(--dmv-navy); border-color: var(--dmv-blue); }
.support-dialog h2 {
  color: var(--dmv-navy);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.support-dialog p {
  color: var(--dmv-gray);
  font-size: 0.9rem;
  line-height: 1.55;
}
.support-qr {
  display: block;
  width: min(280px, 78vw);
  height: auto;
  margin: 18px auto;
  border: 1px solid var(--dmv-border);
  border-radius: var(--radius);
}
.support-note {
  padding-top: 8px;
  border-top: 1px solid var(--dmv-border);
}

/* Test grid */
.test-grid-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dmv-navy);
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: .01em;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 880px;
}

.test-card {
  background: var(--dmv-white);
  border: 1px solid var(--dmv-border);
  border-top: 4px solid var(--dmv-blue);
  border-radius: var(--radius);
  padding: 20px 16px;
  cursor: pointer;
  transition: box-shadow .18s, transform .15s, border-top-color .18s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}
.test-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,48,.15);
  transform: translateY(-2px);
  border-top-color: var(--dmv-navy);
}
.test-card:active { transform: translateY(0); }

.test-card-number {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dmv-blue);
}
.test-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dmv-navy);
}
.test-card-meta {
  font-size: 0.8rem;
  color: var(--dmv-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}
.test-card-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--dmv-blue);
  color: var(--dmv-white);
  border: none;
  border-radius: var(--radius);
  padding: 8px 0;
  width: 100%;
  font-size: 0.87rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s;
}
.test-card-btn:hover { background: var(--dmv-navy); }

/* Notice box */
.notice-box {
  max-width: 880px;
  width: 100%;
  background: var(--dmv-light);
  border: 1px solid var(--dmv-border);
  border-left: 4px solid var(--dmv-blue);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--dmv-navy);
  margin-bottom: 28px;
  line-height: 1.6;
}
.reference-box {
  max-width: 880px;
  width: 100%;
  background: var(--dmv-white);
  border: 1px solid var(--dmv-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.84rem;
  color: var(--dmv-gray);
  text-align: center;
  margin: -12px 0 28px;
  line-height: 1.55;
}
.reference-box a {
  color: var(--dmv-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   EXAM PAGE
   ============================================================ */
.exam-container {
  width: 100%;
  max-width: 720px;
}

/* Test header bar */
.exam-header {
  background: var(--dmv-white);
  border: 1px solid var(--dmv-border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow);
}
.exam-header-left { display: flex; flex-direction: column; gap: 2px; }
.exam-header-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dmv-blue);
}
.exam-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dmv-navy);
}

/* Progress */
.exam-progress { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.progress-label {
  font-size: 0.82rem;
  color: var(--dmv-gray);
  white-space: nowrap;
}
.progress-track {
  width: 120px;
  height: 6px;
  background: var(--dmv-border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--dmv-blue);
  border-radius: 99px;
  transition: width .35s ease;
}

/* Question dots */
.question-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: center;
}
.q-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--dmv-border);
  background: var(--dmv-white);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dmv-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}
.q-dot:hover { border-color: var(--dmv-blue); color: var(--dmv-blue); }
.q-dot.active { background: var(--dmv-blue); border-color: var(--dmv-blue); color: var(--dmv-white); }
.q-dot.answered { background: var(--dmv-light); border-color: var(--dmv-blue); color: var(--dmv-blue); }

/* Question card */
.question-card {
  background: var(--dmv-white);
  border: 1px solid var(--dmv-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.question-card-top {
  background: var(--dmv-navy);
  color: var(--dmv-white);
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.question-card-body { padding: 24px 20px; }
.question-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dmv-text);
  line-height: 1.65;
  margin-bottom: 24px;
}
.question-media {
  display: none;
  justify-content: center;
  margin: 0 0 24px;
}
.question-media.has-media { display: flex; }
.traffic-sign {
  width: min(220px, 78vw);
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .12));
}
.traffic-sign text {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: .02em;
}

/* Choices */
.choices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.choice-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--dmv-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice-item:hover { border-color: var(--dmv-blue); background: var(--dmv-light); }
.choice-item.selected { border-color: var(--dmv-blue); background: var(--dmv-light); }

/* Native radio hidden, custom circle shown */
.choice-item input[type="radio"] { display: none; }
.choice-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--dmv-border);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}
.choice-item.selected .choice-radio {
  border-color: var(--dmv-blue);
  background: var(--dmv-blue);
}
.choice-item.selected .choice-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}
.choice-label {
  font-size: 0.97rem;
  color: var(--dmv-text);
  line-height: 1.5;
}

/* Navigation */
.exam-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-outline {
  background: var(--dmv-white);
  border: 1.5px solid var(--dmv-border);
  color: var(--dmv-navy);
}
.btn-outline:hover:not(:disabled) { border-color: var(--dmv-navy); background: var(--dmv-light); }
.btn-primary {
  background: var(--dmv-blue);
  color: var(--dmv-white);
}
.btn-primary:hover:not(:disabled) { background: var(--dmv-navy); }
.btn-submit {
  background: var(--dmv-navy);
  color: var(--dmv-white);
}
.btn-submit:hover:not(:disabled) { background: #00215e; }

/* ============================================================
   SUMMARY PAGE
   ============================================================ */
.summary-card {
  background: var(--dmv-white);
  border: 1px solid var(--dmv-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  text-align: center;
  width: 100%;
  max-width: 960px;
}
.summary-icon { font-size: 3.5rem; margin-bottom: 12px; }
.summary-title { font-size: 1.5rem; font-weight: 700; color: var(--dmv-navy); margin-bottom: 6px; }
.summary-subtitle { font-size: 0.92rem; color: var(--dmv-gray); margin-bottom: 28px; }

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  text-align: left;
  display: block;
  overflow-x: auto;
}
.summary-table th {
  background: var(--dmv-navy);
  color: var(--dmv-white);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.summary-table td {
  padding: 10px 14px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--dmv-border);
  vertical-align: top;
}
.summary-table tr:last-child td { border-bottom: none; }
.summary-table tr:nth-child(even) td { background: var(--dmv-bg); }
.badge-answered {
  display: inline-block;
  background: var(--dmv-light);
  color: var(--dmv-blue);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-skipped {
  display: inline-block;
  background: #fef3cd;
  color: #856404;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-answer {
  display: inline-block;
  background: #e7f6ec;
  color: #1f6f3f;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-correct,
.badge-incorrect {
  display: inline-block;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-correct {
  background: #dff3e6;
  color: #1f6f3f;
}
.badge-incorrect {
  background: #fde2e1;
  color: #9f2a24;
}

.summary-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   MOCK EXAM — start screen
   ============================================================ */
.mock-start-card {
  background: var(--dmv-white);
  border: 1px solid var(--dmv-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  text-align: center;
  width: 100%;
  max-width: 580px;
}
.mock-start-icon { font-size: 3rem; margin-bottom: 12px; }
.mock-start-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dmv-navy);
  margin-bottom: 6px;
}
.mock-start-subtitle {
  font-size: 0.92rem;
  color: var(--dmv-gray);
  margin-bottom: 28px;
  line-height: 1.6;
}
.mock-rules {
  background: var(--dmv-bg);
  border: 1px solid var(--dmv-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--dmv-text);
  line-height: 1.5;
}
.mock-rule-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dmv-blue);
  color: var(--dmv-white);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.mock-rule-icon.green { background: var(--dmv-green); }

/* Timer in exam header */
.timer-box {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dmv-navy);
  background: var(--dmv-bg);
  border: 1.5px solid var(--dmv-border);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.timer-box.warning {
  color: var(--dmv-red);
  border-color: var(--dmv-red);
  background: #fff5f5;
  animation: timer-blink 1s ease-in-out infinite;
}
@keyframes timer-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Result banner */
.result-banner {
  border-radius: var(--radius);
  padding: 22px 28px;
  text-align: center;
  margin-bottom: 24px;
}
.result-banner.pass {
  background: #dff3e6;
  border: 2px solid var(--dmv-green);
}
.result-banner.fail {
  background: #fde2e1;
  border: 2px solid var(--dmv-red);
}
.result-banner-icon { font-size: 2.2rem; }
.result-banner-label {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin: 4px 0 5px;
}
.result-banner.pass .result-banner-label { color: var(--dmv-green); }
.result-banner.fail .result-banner-label { color: var(--dmv-red); }
.result-banner-note { font-size: 0.88rem; color: var(--dmv-gray); }

/* Mock exam banner on home page */
.mock-exam-banner {
  max-width: 880px;
  width: 100%;
  background: linear-gradient(135deg, var(--dmv-navy) 0%, var(--dmv-accent) 100%);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(29,78,216,.2);
}
.mock-exam-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: var(--dmv-white);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mock-exam-banner-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dmv-white);
  margin-bottom: 4px;
}
.mock-exam-banner-desc {
  font-size: 0.87rem;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
}
.mock-exam-banner .btn-white {
  background: var(--dmv-white);
  color: var(--dmv-navy);
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.mock-exam-banner .btn-white:hover { background: var(--dmv-light); }

/* ============================================================
   PRACTICE MODE — immediate feedback
   ============================================================ */
.choice-item.choice-correct {
  border-color: var(--dmv-green) !important;
  background: #f0fdf4 !important;
}
.choice-item.choice-correct .choice-radio {
  border-color: var(--dmv-green) !important;
  background: var(--dmv-green) !important;
}
.choice-item.choice-correct .choice-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}
.choice-item.choice-wrong {
  border-color: var(--dmv-red) !important;
  background: #fff5f5 !important;
}
.choice-item.choice-wrong .choice-radio {
  border-color: var(--dmv-red) !important;
  background: var(--dmv-red) !important;
}
.choice-item.choice-wrong .choice-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.mock-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.practice-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}
.feedback-correct {
  background: #f0fdf4;
  border: 1.5px solid var(--dmv-green);
  color: var(--dmv-green);
}
.feedback-wrong {
  background: #fff5f5;
  border: 1.5px solid var(--dmv-red);
  color: var(--dmv-red);
}
.feedback-answer {
  font-weight: 700;
  color: var(--dmv-navy);
}
.feedback-explanation {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: 0.9rem;
  font-weight: 400;
  color: #374151;
  line-height: 1.6;
}
.feedback-tip {
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 400;
  color: #92400e;
  background: #fffbeb;
  border-radius: 6px;
  padding: 5px 10px;
}
.feedback-terms {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.term-badge {
  display: inline-block;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.82rem;
  color: #1e40af;
  font-weight: 400;
}

.q-dot.dot-correct {
  background: var(--dmv-green);
  border-color: var(--dmv-green);
  color: #fff;
}
.q-dot.dot-wrong {
  background: var(--dmv-red);
  border-color: var(--dmv-red);
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) {
  .site-header .header-sub { display: none; }
  .test-grid { grid-template-columns: 1fr 1fr; }
  .progress-track { width: 80px; }
  .question-card-body { padding: 18px 14px; }
  .exam-nav { flex-wrap: wrap; }
  .btn { flex: 1; }
  .summary-card { padding: 24px 16px; }
}
