/* ============================================
   THEORY TEST PLATFORM — DESIGN SYSTEM
   Dark navy + green accent, fintech aesthetic
   Font: Plus Jakarta Sans
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --navy-950: #060e1a;
  --navy-900: #0a1628;
  --navy-800: #0f1d32;
  --navy-700: #162544;
  --navy-600: #1e3156;
  --navy-500: #2a4070;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --green-400: #34efc4;
  --green-500: #00d4aa;
  --green-600: #00b894;
  --green-700: #009975;
  --red-400: #f87171;
  --red-500: #ef4444;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --yellow-400: #facc15;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-green: 0 4px 24px rgba(0,212,170,0.25);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--gray-300);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--green-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-400); }

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-sm { max-width: 720px; margin: 0 auto; }
.container-xs { max-width: 540px; margin: 0 auto; }

.section {
  padding: 80px 0;
}

.section-sm { padding: 48px 0; }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-green { color: var(--green-500); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray-400); }
.text-red { color: var(--red-500); }
.text-orange { color: var(--orange-500); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-500);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-logo .logo-accent { color: var(--green-500); }

.nav-logo .logo-tld {
  color: var(--gray-500);
  font-weight: 500;
  font-size: 0.6em;
  letter-spacing: 0;
  vertical-align: middle;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--gray-400);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--white); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-800);
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-mobile-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  background: var(--green-400);
  color: var(--navy-900);
  box-shadow: 0 6px 28px rgba(0,212,170,0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--green-500);
  border: 1.5px solid var(--green-500);
}
.btn-secondary:hover {
  background: rgba(0,212,170,0.08);
  color: var(--green-400);
  border-color: var(--green-400);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--gray-300);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.btn-danger {
  background: var(--red-500);
  color: var(--white);
}
.btn-danger:hover { background: var(--red-400); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Cards ---------- */
.card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(255,255,255,0.1);
}

.card-highlighted {
  border-color: var(--green-500);
  box-shadow: 0 0 0 1px var(--green-500), var(--shadow-green);
  position: relative;
}

.card-highlighted::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-500);
  color: var(--navy-900);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 20px;
}

.card-header {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.card-body { flex: 1; }

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--navy-700);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.15);
}

.form-input::placeholder { color: var(--gray-500); }

.form-textarea { resize: vertical; min-height: 100px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--red-400);
  margin-top: 4px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green {
  background: rgba(0,212,170,0.12);
  color: var(--green-500);
}

.badge-orange {
  background: rgba(249,115,22,0.12);
  color: var(--orange-400);
}

.badge-red {
  background: rgba(239,68,68,0.12);
  color: var(--red-400);
}

.badge-blue {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
}

.badge-gray {
  background: rgba(148,163,184,0.12);
  color: var(--gray-400);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,212,170,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 20px;
  position: relative;
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.hero-trust strong { color: var(--gray-300); }

@media (max-width: 768px) {
  .hero { padding: 60px 0 48px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
}

/* ---------- Feature Cards ---------- */
.feature-card {
  text-align: center;
  padding: 36px 28px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(0,212,170,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { font-size: 0.9rem; color: var(--gray-400); }

/* ---------- Steps ---------- */
.step-card {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step-card h4 { margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--gray-400); }

/* ---------- Pricing Cards ---------- */
.pricing-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin: 16px 0 8px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-400);
}

.pricing-features {
  list-style: none;
  margin: 24px 0;
  flex: 1;
}

.pricing-features li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--green-500);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--gray-500);
  text-decoration: line-through;
}

.pricing-features li.disabled::before {
  content: '—';
  color: var(--gray-600);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--green-500);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ---------- Guarantee Banner ---------- */
.guarantee-section {
  background: linear-gradient(135deg, rgba(0,212,170,0.08), rgba(0,212,170,0.02));
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
}

.guarantee-section h2 { margin-bottom: 16px; }
.guarantee-section p { max-width: 640px; margin: 0 auto; font-size: 0.95rem; }

@media (max-width: 768px) {
  .guarantee-section { padding: 32px 20px; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a { color: var(--gray-400); font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }

/* ---------- Progress Bar ---------- */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--navy-700);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ---------- Timer ---------- */
.timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--navy-700);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.timer.warning { color: var(--orange-400); }
.timer.danger { color: var(--red-400); animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ---------- Question Navigation ---------- */
.question-nav {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.question-nav-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.1);
  background: var(--navy-700);
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.question-nav-item:hover { border-color: var(--gray-400); }
.question-nav-item.current { border-color: var(--green-500); color: var(--green-500); }
.question-nav-item.answered { background: var(--green-600); border-color: var(--green-600); color: var(--white); }
.question-nav-item.flagged { border-color: var(--orange-400); color: var(--orange-400); }
.question-nav-item.flagged.answered { background: var(--orange-500); border-color: var(--orange-500); color: var(--white); }

@media (max-width: 768px) {
  .question-nav { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Option Buttons ---------- */
.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: var(--navy-700);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--gray-300);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}

.option-btn:hover {
  border-color: var(--green-500);
  background: rgba(0,212,170,0.05);
  color: var(--white);
}

.option-btn.selected {
  border-color: var(--green-500);
  background: rgba(0,212,170,0.1);
  color: var(--white);
}

.option-btn.correct {
  border-color: var(--green-500);
  background: rgba(0,212,170,0.12);
  color: var(--green-400);
}

.option-btn.incorrect {
  border-color: var(--red-500);
  background: rgba(239,68,68,0.1);
  color: var(--red-400);
}

.option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.option-btn.selected .option-letter {
  background: var(--green-500);
  color: var(--navy-900);
}

/* ---------- Results Overlay ---------- */
.blur-overlay {
  position: relative;
  min-height: 620px;
}

.blur-overlay .blur-content {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

.blur-overlay .blur-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
  z-index: 10;
  overflow-y: auto;
}

.blur-cta-card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Dashboard Stat Cards ---------- */
.stat-card {
  padding: 24px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 4px;
  font-weight: 500;
}

/* ---------- Status Badge ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending { background: rgba(249,115,22,0.12); color: var(--orange-400); }
.status-searching { background: rgba(59,130,246,0.12); color: #60a5fa; }
.status-booked { background: rgba(0,212,170,0.12); color: var(--green-500); }
.status-confirmed { background: rgba(0,212,170,0.2); color: var(--green-400); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,14,26,0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal { transform: translateY(0); }

/* ---------- Auth Pages ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
}

/* ---------- Dashboard Layout ---------- */
.dashboard-page {
  min-height: 100vh;
  padding-top: 0;
}

.dashboard-header {
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}

.dashboard-content {
  padding: 32px 0;
}

/* ---------- Admin Table ---------- */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 900px;
}

.admin-table th {
  background: var(--navy-700);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-300);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--gray-300);
  vertical-align: top;
}

.admin-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.admin-table .notes-input {
  width: 100%;
  min-width: 200px;
  padding: 8px 10px;
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.8rem;
  resize: vertical;
}

.admin-table select {
  padding: 6px 10px;
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.8rem;
  cursor: pointer;
}

/* ---------- Admin Summary Bar ---------- */
.admin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gray-400);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--gray-400); color: var(--white); }
.filter-btn.active { background: var(--green-500); color: var(--navy-900); border-color: var(--green-500); }

/* ---------- Guarantee Tracker ---------- */
.guarantee-tracker {
  padding: 28px;
}

.guarantee-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.guarantee-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.guarantee-check.complete {
  background: var(--green-500);
  color: var(--navy-900);
}

.guarantee-check.incomplete {
  background: var(--navy-700);
  color: var(--gray-500);
  border: 1.5px solid rgba(255,255,255,0.1);
}

/* ---------- Quick Action Grid ---------- */
.action-card {
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--green-500);
  box-shadow: var(--shadow-green);
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(0,212,170,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.action-card h4 { margin-bottom: 6px; font-size: 1rem; }
.action-card p { font-size: 0.8rem; color: var(--gray-400); }

/* ---------- Test Results Detail ---------- */
.result-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--green-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.result-score-circle.failed { border-color: var(--red-500); }

.result-score-circle .score {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.result-score-circle .out-of {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ---------- Category Selector ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.category-btn {
  padding: 16px;
  background: var(--navy-700);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--gray-300);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}

.category-btn:hover {
  border-color: var(--green-500);
  color: var(--white);
}

.category-btn .count {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ---------- Notification Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 2000;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: var(--green-600); color: var(--white); }
.toast-error { background: var(--red-500); color: var(--white); }

/* ---------- Loading Spinner ---------- */
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255,255,255,0.15);
  border-top-color: var(--green-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-screen {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 32px 0;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ---------- Hidden ---------- */
.hidden { display: none !important; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-500); }

/* ---------- Centre Search ---------- */
.centre-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.centre-search input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  color: var(--navy-900);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color var(--transition);
}

.centre-search input:focus { border-color: var(--green-500); }
.centre-search input::placeholder { color: var(--gray-400); }

.centre-search .geo-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--green-500);
  color: var(--navy-900);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
}

.centre-search .geo-btn:hover { background: var(--green-400); }

/* ---------- Centre Cards ---------- */
.centre-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.centre-card:hover {
  border-color: var(--green-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.centre-card h4 { margin: 0; font-size: 1.05rem; }
.centre-card .centre-address { font-size: 0.8rem; color: var(--gray-400); line-height: 1.5; flex: 1; }
.centre-card .centre-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.centre-card .centre-link { font-size: 0.85rem; font-weight: 600; color: var(--green-500); }

.centre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) { .centre-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .centre-grid { grid-template-columns: 1fr; } }

.region-group { margin-bottom: 32px; }
.region-group h3 { margin-bottom: 16px; font-size: 1.1rem; color: var(--gray-300); }

/* ---------- Booking Layout ---------- */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }
  .booking-layout .order-summary-col { order: -1; }
}

/* ---------- Order Summary ---------- */
.order-summary {
  position: sticky;
  top: 100px;
}

.order-summary .summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
}

.order-summary .summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
}

.order-summary .summary-total .price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}

.order-summary .includes-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.order-summary .includes-list li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-summary .includes-list li::before {
  content: '✓';
  color: var(--green-500);
  font-weight: 700;
}

/* ---------- Trust Signals ---------- */
.trust-signals {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.trust-signal {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

.trust-signal-icon {
  font-size: 0.9rem;
}

/* ---------- Licence Annotation ---------- */
.licence-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 8px 0 16px;
  position: relative;
  max-width: 340px;
}

.licence-header {
  font-size: 0.6rem;
  font-weight: 700;
  color: #2e7d32;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.licence-header::before {
  content: 'L';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #c62828;
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  border-radius: 2px;
}

.licence-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.licence-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: #37474f;
  padding: 3px 0;
}

.licence-field .section-num {
  font-weight: 700;
  color: #546e7a;
  width: 16px;
}

.licence-field .field-value {
  font-weight: 600;
  color: #1b5e20;
}

.licence-field.highlighted {
  background: rgba(0,212,170,0.2);
  border-radius: 4px;
  padding: 4px 8px;
  margin: 2px -8px;
}

.licence-field.highlighted .field-value {
  color: var(--navy-900);
  font-weight: 700;
}

.licence-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--green-500);
  margin-top: 4px;
  font-weight: 500;
}

.licence-hint::before {
  content: '↑';
  font-weight: 700;
}

/* ---------- Value Stack ---------- */
.value-stack {
  padding: 36px 32px;
}

.value-stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.value-stack-item:last-child { border-bottom: none; }

.value-stack-item .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,212,170,0.12);
  color: var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.value-stack-item .item-text {
  font-size: 0.95rem;
  color: var(--gray-300);
}

.value-stack-item .item-text strong { color: var(--white); }

/* ---------- Section Divider (small) ---------- */
.divider-sm {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 16px 0;
}

/* ---------- Print ---------- */
@media print {
  .navbar, .footer, .btn { display: none; }
  body { background: white; color: black; }
}
