/* ============================================================
   PassPredictor.com — Main Stylesheet
   Design: Navy + Gold professional exam prep theme
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --navy:       #0f2044;
  --navy-mid:   #1a3a6e;
  --navy-light: #1e4d8c;
  --gold:       #f59e0b;
  --gold-dark:  #d97706;
  --gold-light: #fef3c7;
  --success:    #16a34a;
  --danger:     #dc2626;
  --warning:    #d97706;
  --text:       #1e293b;
  --text-muted: #64748b;
  --border:     #e2e8f0;
  --bg:         #f8fafc;
  --white:      #ffffff;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

/* ── Container ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
/* Log In button in dark navbar — needs white outline to be visible */
.navbar .btn-outline { color: #fff; border-color: rgba(255,255,255,0.65); }
.navbar .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 24px;
  max-width: 1200px; margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo {
  width: 36px; height: 36px; background: var(--gold);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 800;
  color: var(--navy); flex-shrink: 0;
}
.nav-brand-text { font-size: 20px; font-weight: 700; }
.brand-pass { color: #fff; }
.brand-predictor { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.nav-link {
  color: #cbd5e1; padding: 8px 14px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; transition: all .2s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: #fff; background: rgba(255,255,255,.1);
  text-decoration: none;
}
.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-mobile-only { display: none; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: all .3s;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e4d8c 100%);
  color: #fff; padding: 80px 0 100px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0,60 C300,0 900,0 1200,60 L1200,60 L0,60 Z' fill='%23f8fafc'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.4);
  color: var(--gold); padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 20px;
}
.hero h1 .highlight { color: var(--gold); }
.hero p {
  font-size: 18px; color: #cbd5e1; margin-bottom: 32px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-num { font-size: 28px; font-weight: 800; color: var(--gold); }
.hero-stat-label { font-size: 13px; color: #94a3b8; }
.hero-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg);
  padding: 32px;
}
.hero-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.domain-bar { margin-bottom: 14px; }
.domain-bar-label {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #cbd5e1; margin-bottom: 6px;
}
.domain-bar-track {
  height: 8px; background: rgba(255,255,255,.15); border-radius: 4px; overflow: hidden;
}
.domain-bar-fill {
  height: 100%; background: var(--gold); border-radius: 4px;
  transition: width .6s ease;
}

/* ── Section Styles ───────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: #fff; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800;
  color: var(--navy); margin-bottom: 12px; text-align: center;
}
.section-subtitle {
  font-size: 17px; color: var(--text-muted);
  text-align: center; max-width: 600px; margin: 0 auto 48px;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
}
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); transition: all .2s; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.card-icon-gold { background: var(--gold-light); }
.card-icon-navy { background: #e8f0fe; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Quiz / Test UI ───────────────────────────────────────── */
.quiz-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px; }
.quiz-header { margin-bottom: 32px; }
.quiz-progress-bar {
  height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}
.quiz-progress-fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width .4s ease; }
.quiz-progress-text { font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; }
.quiz-domain-badge {
  display: inline-block; background: #e8f0fe; color: var(--navy-light);
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  margin-bottom: 16px;
}
.quiz-question-text {
  font-size: 19px; font-weight: 600; color: var(--navy);
  line-height: 1.55; margin-bottom: 28px;
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border: 2px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: all .2s; background: #fff;
  font-size: 15px; color: var(--text); text-align: left;
  width: 100%;
}
.quiz-option:hover { border-color: var(--navy-light); background: #f0f4ff; }
.quiz-option.selected { border-color: var(--navy); background: #e8f0fe; }
.quiz-option.correct { border-color: var(--success); background: #f0fdf4; }
.quiz-option.incorrect { border-color: var(--danger); background: #fef2f2; }
.quiz-option.revealed-correct { border-color: var(--success); background: #f0fdf4; }
.option-letter {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px;
  flex-shrink: 0; transition: all .2s;
}
.quiz-option.selected .option-letter { background: var(--navy); color: #fff; }
.quiz-option.correct .option-letter { background: var(--success); color: #fff; }
.quiz-option.incorrect .option-letter { background: var(--danger); color: #fff; }
.quiz-option.revealed-correct .option-letter { background: var(--success); color: #fff; }
.quiz-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.rationale-box {
  background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin-top: 16px; font-size: 14px;
  color: var(--text-muted); line-height: 1.6; display: none;
}
.rationale-box.visible { display: block; }
.rationale-box strong { color: var(--text); }

/* ── Results ──────────────────────────────────────────────── */
.results-wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.results-score-circle {
  width: 160px; height: 160px; border-radius: 50%;
  border: 8px solid var(--gold); display: flex; flex-direction: column;
  align-items: center; justify-content: center; margin: 0 auto 32px;
}
.results-score-num { font-size: 42px; font-weight: 800; color: var(--navy); line-height: 1; }
.results-score-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.results-verdict {
  text-align: center; padding: 20px; border-radius: var(--radius-lg);
  margin-bottom: 32px; font-size: 20px; font-weight: 700;
}
.results-verdict.pass { background: #f0fdf4; color: var(--success); border: 2px solid #86efac; }
.results-verdict.fail { background: #fef2f2; color: var(--danger); border: 2px solid #fca5a5; }
.results-verdict.likely { background: #f0fdf4; color: var(--success); border: 2px solid #86efac; }
.results-verdict.unlikely { background: #fef2f2; color: var(--danger); border: 2px solid #fca5a5; }
.results-verdict.borderline { background: #fffbeb; color: var(--warning); border: 2px solid #fcd34d; }
.domain-result { margin-bottom: 16px; }
.domain-result-header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.domain-result-bar-track { height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.domain-result-bar-fill { height: 100%; border-radius: 5px; transition: width .6s ease; }
.domain-result-bar-fill.good { background: var(--success); }
.domain-result-bar-fill.ok { background: var(--warning); }
.domain-result-bar-fill.poor { background: var(--danger); }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 15px; color: var(--text);
  background: #fff; transition: border-color .2s;
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--navy); }
.form-control.error { border-color: var(--danger); }
.form-error { font-size: 13px; color: var(--danger); margin-top: 4px; }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }
.alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: #f1f5f9; padding: 12px 16px; text-align: left; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid var(--border); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

/* ── Badges ───────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* ── Pricing Card ─────────────────────────────────────────── */
.pricing-card {
  background: var(--navy); color: #fff;
  border-radius: var(--radius-lg); padding: 40px;
  text-align: center; position: relative; overflow: hidden;
}
.pricing-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; background: rgba(245,158,11,.1);
  border-radius: 50%;
}
.pricing-price { font-size: 56px; font-weight: 800; color: var(--gold); line-height: 1; }
.pricing-period { font-size: 16px; color: #94a3b8; }
.pricing-features { list-style: none; text-align: left; margin: 24px 0; }
.pricing-features li { padding: 8px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; gap: 10px; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff; padding: 60px 0;
}
.page-header h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.page-header p { font-size: 17px; color: #cbd5e1; max-width: 600px; }

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 40px 0; }
.dashboard-sidebar { }
.dashboard-sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.dashboard-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); border-left: 3px solid transparent;
  transition: all .2s; text-decoration: none;
}
.dashboard-nav-item:hover { background: #f8fafc; color: var(--text); text-decoration: none; }
.dashboard-nav-item.active { background: #eff6ff; color: var(--navy); border-left-color: var(--navy); font-weight: 600; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.stat-card-num { font-size: 32px; font-weight: 800; color: var(--navy); }
.stat-card-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }

/* ── Admin ────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar { background: var(--navy); color: #fff; padding: 24px 0; }
.admin-sidebar-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 8px 20px; margin-top: 16px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 14px; color: #94a3b8;
  transition: all .2s; text-decoration: none;
}
.admin-nav-item:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.admin-nav-item.active { background: rgba(245,158,11,.15); color: var(--gold); }
.admin-content { padding: 32px; background: var(--bg); }
.admin-page-title { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 24px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--navy); color: #94a3b8; padding: 60px 0 32px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-tagline { font-size: 14px; margin-top: 12px; color: #64748b; line-height: 1.6; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: #64748b; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; font-size: 13px; color: #475569; }
.footer-disclaimer { font-size: 12px; color: #374151; margin-top: 4px; }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.align-center { align-items: center; } .justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── Responsive ───────────────────────────────────────────── */

/* Navbar must be position:relative so absolute mobile menu positions correctly */
.navbar { position: sticky; top: 0; z-index: 200; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .container { padding: 0 20px; }
  .container-sm { padding: 0 20px; }
  .container-md { padding: 0 20px; }
}

@media (max-width: 768px) {
  /* ── Navbar mobile ── */
  .navbar { position: sticky; top: 0; }
  .nav-inner { position: relative; flex-wrap: wrap; height: auto; min-height: 64px; padding: 0 16px; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0a1a38;
    padding: 12px 0 16px;
    gap: 2px;
    border-top: 1px solid rgba(255,255,255,.1);
    order: 3;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 11px 16px; font-size: 15px; border-radius: 6px; display: block; }
  .nav-toggle { display: flex; margin-left: auto; order: 2; }
  .nav-auth { order: 1; margin-left: auto; gap: 6px; }
  .nav-auth .btn { padding: 7px 14px; font-size: 13px; }
  .nav-auth .btn-outline { display: inline-flex; }
  .nav-brand { order: 0; }
  .nav-desktop-only { display: none !important; }
  .nav-mobile-only { display: list-item; }

  /* ── Hero ── */
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-card { display: none; }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero p { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 16px; justify-content: center; }

  /* ── Sections ── */
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .section-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .section-subtitle { font-size: 15px; }

  /* ── Cards grid ── */
  .cards-grid { grid-template-columns: 1fr; }

  /* ── Quiz ── */
  .quiz-wrap { padding: 24px 16px; }
  .quiz-question-text { font-size: 16px; }
  .quiz-option { padding: 13px 16px; font-size: 14px; }
  .quiz-actions { flex-wrap: wrap; gap: 8px; }
  .quiz-actions .btn { flex: 1; min-width: 120px; }

  /* ── Results ── */
  .results-wrap { padding: 24px 16px; }

  /* ── Dashboard ── */
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 40px 0 24px; }

  /* ── Page header ── */
  .page-header { padding: 40px 0; }
  .page-header h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .page-header p { font-size: 15px; }

  /* ── Pricing ── */
  .pricing-card { padding: 28px 20px; }
  .pricing-price { font-size: 44px; }

  /* ── Tables ── */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 480px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero { padding: 36px 0 60px; }
  .btn-lg { padding: 12px 22px; font-size: 15px; }
  .btn { font-size: 14px; padding: 9px 16px; }
  .card { padding: 20px 16px; }
  .quiz-option { padding: 11px 13px; gap: 10px; }
  .option-letter { width: 28px; height: 28px; font-size: 13px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card-num { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .results-score-circle { width: 130px; height: 130px; }
  .admin-content { padding: 20px 14px; }
  .admin-page-title { font-size: 18px; }
  .nav-brand-text { font-size: 17px; }
}
