/* ============================================================
   Velorah — Main Stylesheet
   Cinematic dark certification exam platform
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --background:       hsl(201,100%,13%);
  --foreground:       hsl(0,0%,100%);
  --muted-foreground: hsl(240,4%,66%);
  --primary:          hsl(0,0%,100%);
  --primary-foreground:hsl(0,0%,4%);
  --secondary:        hsl(0,0%,10%);
  --muted:            hsl(0,0%,10%);
  --border:           hsl(0,0%,18%);
  --card-bg:          rgba(255,255,255,0.03);
  --card-hover:       rgba(255,255,255,0.06);
  --font-display:     'Instrument Serif', serif;
  --font-body:        'Inter', sans-serif;
  --radius:           12px;
  --radius-full:      9999px;
}
/* ── Light Mode ─────────────────────────────────────────────── */
/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: hsl(220,20%,7%);
  color: var(--foreground);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }

/* ─── Lucide icons ───────────────────────────────────────────── */
.icon { display: inline-flex; align-items: center; justify-content: center; }
.icon svg { width: 1em; height: 1em; stroke-width: 1.75; }
.icon-sm svg { width: 14px; height: 14px; }
.icon-md svg { width: 20px; height: 20px; }
.icon-lg svg { width: 28px; height: 28px; }
.icon-xl svg { width: 36px; height: 36px; }

/* ─── Liquid Glass ───────────────────────────────────────────── */
.liquid-glass {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fade-rise 0.8s ease-out both; }
.anim-2 { animation: fade-rise 0.8s ease-out 0.15s both; }
.anim-3 { animation: fade-rise 0.8s ease-out 0.3s both; }
.anim-4 { animation: fade-rise 0.8s ease-out 0.45s both; }

/* ─── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  position: relative;
  z-index: 30;
}
.topbar-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 6px 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar-left  { display: flex; gap: 1.25rem; align-items: center; }
.topbar-right { display: flex; gap: 1.25rem; align-items: center; }
.topbar a { color: var(--muted-foreground); transition: color 0.2s; display:flex;align-items:center;gap:5px; }
.topbar a:hover { color: var(--foreground); }

/* ─── Main Nav ───────────────────────────────────────────────── */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,12,18,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 16px 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  color: var(--foreground);
  flex-shrink: 0;
  line-height: 1;
}
.logo sup { font-size: 0.65rem; vertical-align: super; }

/* Search bar */
.nav-search {
  flex: 1;
  max-width: 34rem;
  display: flex;
  align-items: center;
  border-radius: var(--radius-full);
}
.nav-search input {
  flex: 1;
  background: rgba(255,255,255,0.055);
  border: none;
  outline: none;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  min-width: 0;
}
.nav-search input::placeholder { color: var(--muted-foreground); }
.nav-search button {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--foreground);
  padding: 10px 18px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: background 0.2s;
  white-space: nowrap;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  display: flex; align-items: center; gap: 6px;
}
.nav-search button:hover { background: rgba(255,255,255,0.18); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.nav-actions .sign-in-link {
  font-size: .8375rem;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color .15s;
}
.nav-actions .sign-in-link:hover { color: var(--foreground); }

.nav-links {
  display: none;
  list-style: none;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  flex-shrink: 0;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--foreground); }

.btn-nav {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-size: 0.875rem;
  color: var(--foreground);
  background: none; border: none;
  font-family: var(--font-body);
  font-weight: 500;
  transition: transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-nav:hover { transform: scale(1.03); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.video-bg {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.18) 50%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 1.5rem 100px;
}
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -2.46px;
  max-width: 66rem;
  font-weight: 400;
  color: var(--foreground);
  margin: 0 auto;
}
.hero h1 em { font-style: normal; color: var(--muted-foreground); }
.hero-subtext {
  color: var(--muted-foreground);
  font-size: 1rem;
  max-width: 40rem;
  margin: 1.75rem auto 0;
  line-height: 1.7;
}

/* Hero search */
.hero-search {
  display: flex;
  width: 100%;
  max-width: 42rem;
  margin-top: 2.25rem;
  border-radius: var(--radius-full);
}
.hero-search input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: none;
  outline: none;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 16px 26px;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  min-width: 0;
}
.hero-search input::placeholder { color: var(--muted-foreground); }
.hero-search button {
  background: rgba(255,255,255,0.14);
  border: none;
  color: var(--foreground);
  padding: 16px 28px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.hero-search button:hover { background: rgba(255,255,255,0.24); transform: scale(1.01); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--foreground);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.section-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 72px 2rem;
}
.section-dark   { background: hsl(220,20%,5%); }
.section-medium { background: hsl(220,20%,7%); }
.divider        { width:100%; height:1px; background: var(--border); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--foreground);
  line-height: 1;
}
.section-title em { font-style: normal; color: var(--muted-foreground); }
.section-sub {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  max-width: 38rem;
  line-height: 1.65;
}
.section-header { margin-bottom: 2.75rem; }

/* ─── Cards common ───────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover {
  background: var(--card-hover);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
}

/* ─── Vendors ────────────────────────────────────────────────── */
.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.9rem;
}
.vendor-card {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.vendor-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  font-size: 1.3rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.vendor-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.vendor-name  { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.vendor-count { font-size: 0.72rem;  color: var(--muted-foreground); }

/* ─── Exams grid ─────────────────────────────────────────────── */
.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.9rem;
}
.exam-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.exam-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.exam-vendor-tag {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.exam-name { font-size: 0.9375rem; font-weight: 500; color: var(--foreground); line-height: 1.4; }
.exam-code {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem; color: var(--muted-foreground);
}
.exam-meta { display: flex; gap: 1rem; font-size: 0.72rem; color: var(--muted-foreground); flex-wrap: wrap; }
.exam-meta span { display: flex; align-items: center; gap: 4px; }
.exam-meta svg { width: 12px; height: 12px; stroke-width: 1.75; opacity: 0.7; }

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.62rem; padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.09);
  color: var(--muted-foreground);
  letter-spacing: 0.04em; font-weight: 500;
  white-space: nowrap;
}
.badge svg { width: 10px; height: 10px; }
.badge-hot  { color: hsl(20,90%,70%);  background: rgba(255,140,80,0.12); }
.badge-pop  { color: hsl(200,80%,72%); background: rgba(80,190,255,0.1);  }

/* ─── Steps ──────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}
.step-card { padding: 28px 22px; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: rgba(255,255,255,0.08);
  line-height: 1; margin-bottom: 1rem;
}
.step-title { font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; }
.step-desc  { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* ─── Testimonials ───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonial-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.stars { color: rgba(255,255,255,0.55); font-size: 0.8rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.9375rem; color: var(--foreground); line-height: 1.65; font-style: italic; }
.testimonial-author { font-size: 0.8125rem; color: var(--muted-foreground); }
.testimonial-cert   { font-size: 0.72rem;   color: rgba(255,255,255,0.28); margin-top: 2px; }

/* ─── CTA Band ───────────────────────────────────────────────── */
.cta-band { background: hsl(220,20%,5%); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.cta-band-inner {
  max-width: 80rem; margin: 0 auto;
  padding: 80px 2rem;
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 1.75rem;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.75rem);
  font-weight: 400; letter-spacing: -1.5px; line-height: 0.97;
}
.cta-band p { color: var(--muted-foreground); max-width: 34rem; line-height: 1.65; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-full);
  padding: 13px 36px;
  background: var(--foreground); color: var(--primary-foreground);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
  border: none; transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.86; transform: scale(1.02); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-full);
  padding: 13px 36px;
  background: none; color: var(--foreground);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 400;
  border: none; transition: transform 0.2s;
}
.btn-ghost:hover { transform: scale(1.02); }
.btn-sm { padding: 8px 20px; font-size: 0.8125rem; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer { background: hsl(220,25%,4%); border-top: 1px solid var(--border); }
.footer-inner { max-width: 80rem; margin: 0 auto; padding: 56px 2rem 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  font-size: 0.875rem; color: var(--muted-foreground);
  margin-top: 0.875rem; line-height: 1.65; max-width: 22rem;
}
.footer-col h4 {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.875rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a {
  font-size: 0.875rem; color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--foreground); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.28);
}
.footer-bottom a { color: rgba(255,255,255,0.28); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }
.footer-bottom-links { display: flex; gap: 1.25rem; }

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { font-size: 0.8125rem; color: var(--muted-foreground); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted-foreground); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb svg { width: 12px; height: 12px; opacity: 0.5; }

/* ─── Question card ──────────────────────────────────────────── */
.question-wrap { max-width: 56rem; margin: 0 auto; }
.question-card { padding: 32px; margin-bottom: 1.5rem; }
.question-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1rem;
}
.question-num { font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); letter-spacing: 0.08em; }
.question-text { font-size: 1rem; line-height: 1.7; color: var(--foreground); white-space: pre-line; }
.options-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.25rem; }
.options-list.answered .option-item { cursor: default; }
.option-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 9px; padding: 12px 16px;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
  font-size: 0.9375rem; line-height: 1.5;
}
.option-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }
.option-item.correct  { border-color: hsl(145,60%,45%) !important; background: rgba(50,200,100,0.13) !important; }
.option-item.wrong    { border-color: hsl(0,60%,50%) !important;   background: rgba(200,50,50,0.12) !important; }
.option-item.correct .option-label { background: hsl(145,60%,42%); color:#fff; }
.option-item.wrong   .option-label { background: hsl(0,58%,48%); color:#fff; }
.option-label {
  display: flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  font-size: 0.8125rem; font-weight: 600;
  flex-shrink: 0;
}
.reveal-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 9px 22px; font-size: 0.875rem;
  color: var(--foreground); transition: background 0.2s;
  margin-top: 1.25rem;
}
.reveal-btn:hover { background: rgba(255,255,255,0.13); }
.explanation-box {
  margin-top: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 9px; padding: 18px 20px;
  font-size: 0.9rem; color: var(--muted-foreground); line-height: 1.65;
  display: none;
}
.explanation-box.visible { display: block; }

/* ─── Sidebar ────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
.sidebar { position: sticky; top: 20px; }
.sidebar-card { padding: 20px; margin-bottom: 1rem; border-radius: var(--radius); }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2rem; justify-content: center; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--card-bg); border: 1px solid var(--border);
  font-size: 0.875rem; color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s;
}
.page-btn:hover, .page-btn.active {
  background: rgba(255,255,255,0.1); color: var(--foreground);
  border-color: rgba(255,255,255,0.2);
}
.page-btn.active { font-weight: 600; }

/* ─── Search results ─────────────────────────────────────────── */
.search-result { padding: 20px 24px; margin-bottom: 0.75rem; display: flex; flex-direction: column; gap: 6px; }
.search-result-title { font-size: 1rem; font-weight: 500; color: var(--foreground); }
.search-result-sub   { font-size: 0.8125rem; color: var(--muted-foreground); }

/* ─── Admin ──────────────────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; background: hsl(220,20%,6%); }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: hsl(220,20%,4%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 1.5rem 0;
  position: fixed; top:0; left:0; bottom:0; z-index:50;
}
.admin-sidebar .logo { padding: 0 1.5rem 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.admin-nav { list-style: none; padding: 0 0.75rem; flex: 1; }
.admin-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 8px;
  font-size: 0.875rem; color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s; margin-bottom: 2px;
}
.admin-nav li a:hover, .admin-nav li a.active {
  background: rgba(255,255,255,0.06); color: var(--foreground);
}
.admin-nav svg { width: 16px; height: 16px; stroke-width: 1.75; flex-shrink: 0; }
.admin-main { margin-left: 240px; flex: 1; padding: 2rem; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.admin-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; }
.admin-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  text-align: left; padding: 10px 14px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--foreground); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-form-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 660px; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.8125rem; color: var(--muted-foreground); margin-bottom: 6px; font-weight: 500; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; color: var(--foreground);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: rgba(255,255,255,0.3); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select option { background: hsl(220,20%,10%); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { padding: 20px; border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--border); }
.stat-card-num { font-family: var(--font-display); font-size: 2rem; color: var(--foreground); }
.stat-card-label { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 4px; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.875rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 8px; }
.alert-success { background: rgba(50,200,100,0.1); border: 1px solid rgba(50,200,100,0.25); color: hsl(145,60%,65%); }
.alert-error   { background: rgba(200,50,50,0.1);  border: 1px solid rgba(200,50,50,0.25);  color: hsl(0,60%,65%); }
.toggle { display: flex; align-items: center; gap: 10px; }
.toggle input[type=checkbox] { width: 16px; height: 16px; }
.text-muted { color: var(--muted-foreground); }
.text-sm    { font-size: 0.8125rem; }
.flex       { display: flex; }
.items-center { align-items: center; }
.gap-2      { gap: 0.5rem; }
.gap-3      { gap: 0.75rem; }
.mt-1       { margin-top: 0.25rem; }
.action-btns { display: flex; gap: 0.4rem; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--muted-foreground); transition: background 0.15s, color 0.15s;
}
.btn-icon:hover { background: rgba(255,255,255,0.1); color: var(--foreground); }
.btn-icon.danger:hover { background: rgba(200,50,50,0.12); color: hsl(0,60%,65%); border-color: rgba(200,50,50,0.3); }
.btn-icon svg { width: 14px; height: 14px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.nav-actions .sign-in-link {
  font-size: .8375rem;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color .15s;
}
.nav-actions .sign-in-link:hover { color: var(--foreground); }

.nav-links { display: flex; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 600px) {
  .nav-search { display: none; }
  .topbar-left { display: none; }
  .hero-stats { gap: 1.5rem; }
  .section-inner { padding: 50px 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 100%; position: static; height: auto; }
  .admin-main { margin-left: 0; }
  .admin-wrap { flex-direction: column; }
}

/* ─── AI Badge ───────────────────────────────────────────────── */
.ai-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .62rem; padding: 2px 8px; border-radius: 99px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-weight: 600; letter-spacing: .04em;
  margin-left: 6px; vertical-align: middle;
}

/* ─── Discussion items ───────────────────────────────────────── */
.disc-item { transition: opacity 0.2s; }
.disc-item:hover { opacity: 1; }

/* ─── User auth pages ────────────────────────────────────────── */
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
}

/* ─── Sidebar sticky on desktop ─────────────────────────────── */
@media (min-width: 901px) {
  .sidebar { position: sticky; top: 24px; }
}

/* ─── Admin AI import grid ───────────────────────────────────── */
@media (max-width: 700px) {
  .ai-tools-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   MOBILE APP REDESIGN — Full app-like experience on phones
   Inspired by native mobile UI patterns
   ============================================================ */

/* ── Mobile Bottom Nav Bar ─────────────────────────────────── */
/* Force SVGs inside mobile nav to never be large on any screen */
.mobile-bottom-nav svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex-shrink: 0;
}
.mobile-bottom-nav,
body .mobile-bottom-nav,
html body .mobile-bottom-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
@media (max-width: 768px) {
  .mobile-bottom-nav,
  body .mobile-bottom-nav,
  html body .mobile-bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    height: 68px !important;
    overflow: visible !important;
  }
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 68px;
    background: rgba(13,15,20,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255,255,255,0.07);
    z-index: 200;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px 4px;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.5);
  }
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    padding: 8px 4px;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255,255,255,0.38);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s;
  }
  .mobile-bottom-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.09);
  }
  .mobile-bottom-nav a svg {
    width: 22px; height: 22px;
    stroke-width: 1.75;
  }
  .mobile-bottom-nav a.active svg {
    stroke-width: 2.25;
  }
  /* Pass Guarantee special button */
  .mobile-bottom-nav a.mobile-pass {
    color: hsl(145,60%,55%);
    background: rgba(50,200,100,0.1);
  }
  .mobile-bottom-nav a.mobile-pass svg {
    color: hsl(145,60%,55%);
  }

  /* Pad page content so bottom nav doesn't cover it */
  body { padding-bottom: 68px; }
}

/* ── Mobile Hero ────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Topbar removed - always hidden */
  .topbar { display: none !important; }

  /* Nav stays sticky on mobile too - takes up space so no padding-top needed */
  .main-nav {
    position: sticky !important;
    top: 0;
    z-index: 100;
    background: rgba(10,12,18,0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  }
  .nav-inner {
    padding: 12px 18px !important;
    height: 58px;
  }
  .nav-search { display: none !important; }
  .nav-links  { display: none !important; }
  /* Keep auth buttons visible on mobile */
  .nav-actions .btn-nav { display: inline-flex !important; font-size:.8rem !important; padding:8px 12px !important; }
  .nav-actions { display: flex !important; gap:.35rem !important; }
  /* Hide Sign In text on mobile - just show Register */
  .nav-actions .sign-in-link { display: none !important; }
  /* Sticky nav takes up space in flow - no body padding needed */

  /* Hero fills full screen */
  .hero-wrap {
    min-height: calc(100svh - 58px);
  }

  /* Hero content — app-style layout */
  .hero-content {
    padding: 32px 20px 32px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  .hero-eyebrow {
    font-size: 0.62rem !important;
    margin-bottom: 0.875rem !important;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem) !important;
    letter-spacing: -1.5px !important;
    line-height: 1.0 !important;
    text-align: left;
  }

  .hero-subtext {
    font-size: 0.875rem !important;
    margin-top: 1rem !important;
    text-align: left;
    max-width: 100% !important;
    line-height: 1.6 !important;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Hero search — full width pill */
  .hero-search {
    max-width: 100% !important;
    margin-top: 1.5rem !important;
    border-radius: 16px !important;
    overflow: hidden;
  }
  .hero-search input {
    font-size: 0.9375rem !important;
    padding: 14px 18px !important;
    border-radius: 16px 0 0 16px !important;
  }
  .hero-search button {
    padding: 14px 18px !important;
    font-size: 0.875rem !important;
    border-radius: 0 16px 16px 0 !important;
  }

  /* Pass Guarantee pill — prominent on mobile */
  .mobile-pass-cta {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: rgba(50,200,100,0.12);
    border: 1px solid rgba(50,200,100,0.3);
    border-radius: 14px;
    padding: 12px 16px;
    margin-top: 1rem;
    text-decoration: none;
    width: 100%;
  }
  .mobile-pass-cta-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(50,200,100,0.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .mobile-pass-cta-icon svg { width: 18px; height: 18px; color: hsl(145,60%,55%); }
  .mobile-pass-cta-text { flex: 1; }
  .mobile-pass-cta-text strong { display: block; font-size: 0.875rem; font-weight: 600; color: #fff; }
  .mobile-pass-cta-text span { font-size: 0.72rem; color: hsl(145,60%,55%); }
  .mobile-pass-cta-arrow { color: hsl(145,60%,55%); flex-shrink: 0; }
  .mobile-pass-cta-arrow svg { width: 16px; height: 16px; }

  /* Stats row — compact horizontal scroll */
  .hero-stats {
    gap: 0 !important;
    margin-top: 1.5rem !important;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px 8px;
  }
  .hero-stat { border-right: 1px solid rgba(255,255,255,0.07); }
  .hero-stat:last-child { border-right: none; }
  .hero-stat-num {
    font-size: 1.375rem !important;
    line-height: 1.2;
  }
  .hero-stat-label {
    font-size: 0.6rem !important;
    margin-top: 2px !important;
  }

  /* Video — ensure autoplay works on mobile */
  .video-bg {
    object-fit: cover !important;
    object-position: center top !important;
  }
  .video-scrim {
    background: linear-gradient(to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.25) 40%,
      rgba(0,0,0,0.8) 100%) !important;
  }
}

/* ── Mobile Sections ────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Section headers */
  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }

  /* Pass Guarantee promo strip — stack vertically */
  .pass-promo-strip {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
    padding: 18px !important;
  }
  .pass-promo-strip > div:first-child { justify-content: center; }
  .pass-promo-strip a { width: 100%; justify-content: center; }

  /* Vendors grid — 2 columns on mobile */
  .vendors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
  .vendor-card { padding: 14px 10px !important; }
  .vendor-icon { width: 38px !important; height: 38px !important; }
  .vendor-name { font-size: 0.75rem !important; }
  .vendor-count { font-size: 0.65rem !important; }

  /* Exams grid — single column */
  .exams-grid {
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
  }
  .exam-card { padding: 16px !important; }
  .exam-name { font-size: 0.875rem !important; }

  /* Steps grid — 2x2 on mobile */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .step-card { padding: 18px 14px !important; }
  .step-num { font-size: 2rem !important; margin-bottom: 0.5rem !important; }
  .step-title { font-size: 0.875rem !important; }
  .step-desc { font-size: 0.8rem !important; }

  /* Testimonials — single column */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  /* CTA Band */
  .cta-band-inner {
    padding: 48px 20px !important;
    gap: 1.25rem !important;
  }
  .cta-band h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
  }
  .btn-group { flex-direction: column !important; width: 100%; }
  .btn-group a, .btn-group button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Footer — simplified on mobile */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.5rem 1rem !important; }
  .footer-brand { grid-column: 1/-1; }
  .footer-inner { padding: 40px 1.25rem 28px !important; }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    font-size: 0.72rem !important;
  }

  /* Section inner padding */
  .section-inner { padding: 44px 1.125rem !important; }
}

/* ── Mobile Exam Page ───────────────────────────────────────── */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .sidebar { display: none !important; } /* hidden on mobile exam page */
  .question-card { padding: 20px 16px !important; }
  .option-item { padding: 10px 12px !important; font-size: 0.875rem !important; }
  .breadcrumb { font-size: 0.72rem !important; }
  .pagination { gap: 4px !important; }
  .page-btn { width: 32px !important; height: 32px !important; font-size: 0.8rem !important; }
}

/* ── Mobile Auth Pages ──────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-card { border-radius: 0 !important; min-height: 100svh; padding: 48px 24px !important; }
}

/* ── Mobile Admin ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0 !important; padding: 1rem !important; }
  .stat-cards { grid-template-columns: repeat(2,1fr) !important; }
  .admin-table td, .admin-table th { padding: 8px 10px !important; font-size: .78rem !important; }
}

/* ── Smooth scrolling & tap highlight ──────────────────────── */
@media (max-width: 768px) {
  * { -webkit-tap-highlight-color: transparent; }
  html { scroll-behavior: smooth; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE COMPREHENSIVE FIXES — All inner pages
═══════════════════════════════════════════════════════════════ */

/* ── Study index / listing page ────────────────────────────── */
@media (max-width: 768px) {
  /* Study two-col layout → stack */
  .study-layout, [style*="grid-template-columns:260px"] {
    grid-template-columns: 1fr !important;
  }
  /* Study sidebar → horizontal scroll strip on mobile */
  .study-sidebar {
    position: static !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
  }
  /* Cards grid — 1 col on very small, 2 on medium mobile */
  .store-grid,
  [style*="grid-template-columns:repeat(auto-fill,minmax(280px"] {
    grid-template-columns: 1fr !important;
  }
  /* Product cards full width */
  .prod-card { border-radius: 12px !important; }
  /* Prod layout (detail page) */
  .prod-layout {
    grid-template-columns: 1fr !important;
  }
  /* Store buy box — not sticky on mobile */
  .prod-layout > div:last-child {
    position: static !important;
  }
}

/* ── Dashboard ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dash-wrap { padding: 1rem 1rem 5rem !important; }
  .stat-grid { grid-template-columns: repeat(2,1fr) !important; }
  .dash-grid { grid-template-columns: 1fr !important; }
  .dash-sidebar { display: none !important; }
  .pro-banner { padding: 14px 16px !important; }
  .pro-banner > div { flex-direction: column !important; align-items: flex-start !important; }
}

/* ── Study view (MCQ / Notes page) ─────────────────────────── */
@media (max-width: 768px) {
  /* Two column layout → single column */
  [style*="grid-template-columns:1fr 260px"],
  [style*="grid-template-columns:1fr 280px"],
  [style*="grid-template-columns:1fr 300px"] {
    grid-template-columns: 1fr !important;
  }
  /* MCQ cards */
  .study-mcq-card { padding: 16px !important; }
  .smq-question { font-size: .9rem !important; }
  .smq-opt { font-size: .8375rem !important; padding: 10px 12px !important; }
}

/* ── Pricing page ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Plan cards → single column */
  [style*="grid-template-columns:repeat(auto-fit,minmax(280px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Store pages ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .store-grid {
    grid-template-columns: 1fr !important;
    gap: .875rem !important;
  }
  .prod-section { padding: 1.5rem 1rem 4rem !important; }
}

/* ── Breadcrumbs & page headers ─────────────────────────────── */
@media (max-width: 768px) {
  .breadcrumb { font-size: .72rem !important; flex-wrap: wrap !important; }
  /* Page header h1 — always responsive */
  h1[style*="clamp"] { font-size: clamp(1.4rem,6vw,2rem) !important; }
}

/* ── Nav actions on mobile (dashboard etc) ──────────────────── */
@media (max-width: 768px) {
  .nav-inner { gap: .5rem !important; padding: 10px 14px !important; }
}

/* ── Input elements — prevent zoom on iOS ───────────────────── */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important; /* prevents iOS zoom */
  }
}

/* ── Tables on mobile — horizontal scroll ───────────────────── */
@media (max-width: 768px) {
  .table-wrap, [style*="overflow:auto"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table th:nth-child(n+5),
  .admin-table td:nth-child(n+5) {
    display: none; /* hide extra cols on very small screens */
  }
}

/* ── Buttons & action rows ──────────────────────────────────── */
@media (max-width: 640px) {
  .action-btns { gap: .2rem !important; }
  .btn-primary, .btn-ghost { padding: 10px 18px !important; font-size: .8375rem !important; }
}

/* ── Subscription details grid ──────────────────────────────── */
@media (max-width: 768px) {
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── Vendor / category pages ────────────────────────────────── */
@media (max-width: 768px) {
  .two-col, .vendor-two-col { grid-template-columns: 1fr !important; }
}
