/* ============================================================
   Testim — style.css
   Dizayn konsepsiyası: "İmtahan bileti" — Azərbaycanda hər kəsin
   tanıdığı DİM giriş bileti/admission-ticket vizual dilinin
   məhsulun öz kimliyinə (exam_code, sual sayğacı, vaxt sayğacı)
   uyğunlaşdırılması. Perforasiya xətti, manifest sətirləri,
   IBM Plex ailəsi (Serif/Sans/Mono) — rəsmi sənəd hissi.

   Rənglər və loqo TOXUNULMAZDIR — bax :root.
   ============================================================ */

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

:root {
  /* ── Brend rəngləri — DƏYİŞDİRİLMƏYİB ── */
  --primary:       #5B4CDB;
  --primary-light: #7B6EF6;
  --primary-dark:  #2F24A0;
  --green:         #22C55E;
  --red:           #EF4444;
  --amber:         #F59E0B;
  --bg:            #F5F4FA;
  --card:          #FFFFFF;
  --text:          #12112B;
  --text-sec:      #6E6D8A;
  --border:        #E2E1F0;
  --max-w:         1100px;

  /* ── Tipoqrafiya ── */
  --f-display: 'IBM Plex Serif', Georgia, serif;
  --f-body:    'IBM Plex Sans', 'Segoe UI', sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* ── Fasilə şkalası ── */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* ── Radius / kölgə ── */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(18,17,43,0.06);
  --shadow-md: 0 8px 24px rgba(18,17,43,0.08);
  --shadow-lg: 0 24px 64px rgba(47,36,160,0.16);
  --shadow-primary: 0 12px 32px rgba(91,76,219,0.28);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.01em; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── EYEBROW / KİÇİK ETİKET (manifest sətri hissi) ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.5;
}

/* ── NAVBAR ── */
.navbar {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.navbar-brand img {
  width: 34px; height: 34px;
  border-radius: 9px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-nav a:not(.btn) {
  color: var(--text-sec);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.navbar-nav a:not(.btn):hover { color: var(--primary); background: var(--bg); text-decoration: none; }
.navbar-nav .btn-sm { margin-left: 4px; }

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  padding: 4px 6px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--f-body);
  line-height: 1.2;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(91,76,219,0.32);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(91,76,219,0.4); }

.btn-white {
  background: #fff;
  color: var(--primary) !important;
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--bg); }

.btn-green { background: var(--green); color: #fff; }
.btn-gray  { background: transparent; border-color: var(--border); color: var(--text); }
.btn-gray:hover { background: var(--bg); }

.btn-lg    { padding: 15px 30px; font-size: 16px; }
.btn-sm    { padding: 7px 15px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── HERO — "İMTAHAN BİLETİ" ── */
.hero {
  padding: var(--sp-9) 0 var(--sp-8);
  position: relative;
}

.hero .container { position: relative; }

.hero-kicker {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.hero-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-7);
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: var(--sp-4);
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
}

.hero-sub {
  font-size: 17.5px;
  color: var(--text-sec);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Bilet paneli */
.ticket {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
}

.ticket-main {
  padding: var(--sp-7) var(--sp-8);
  color: #fff;
  position: relative;
  z-index: 1;
}

.ticket-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--sp-3);
  display: block;
}

.ticket-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--sp-3);
  line-height: 1.25;
}

.ticket-desc {
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
  max-width: 380px;
  margin-bottom: var(--sp-6);
  line-height: 1.65;
}

.ticket-btns {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.ticket-btns .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.ticket-btns .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.14); }

/* Perforasiya kənarı */
.ticket-stub {
  position: relative;
  background: rgba(255,255,255,0.08);
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  justify-content: center;
  border-left: 2px dashed rgba(255,255,255,0.28);
}

.ticket-stub::before,
.ticket-stub::after {
  content: '';
  position: absolute;
  left: -13px;
  width: 26px; height: 26px;
  background: var(--bg);
  border-radius: 50%;
  z-index: 2;
}
.ticket-stub::before { top: -13px; }
.ticket-stub::after  { bottom: -13px; }

.stub-field { font-family: var(--f-mono); }
.stub-field .k {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 3px;
}
.stub-field .v {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stub-field .v small {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-left: 3px;
}

.hero-apps {
  margin-top: var(--sp-5);
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.15s, transform 0.15s;
}
.app-pill:hover { border-color: var(--primary); transform: translateY(-1px); text-decoration: none; }
.app-pill svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── SECTIONS ── */
section { padding: var(--sp-8) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.section-head .section-note {
  color: var(--text-sec);
  font-size: 14.5px;
  max-width: 320px;
}

.section-title { text-align: center; margin-bottom: var(--sp-6); }
.section-title h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; color: var(--text); margin-bottom: 10px; }
.section-title p { color: var(--text-sec); font-size: 15.5px; max-width: 480px; margin: 0 auto; }

/* ── ADDIMLAR (Necə işləyir) — bilet-stub formatlı sıra ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}

.step-card {
  padding: var(--sp-6) var(--sp-5);
  position: relative;
}

.step-card + .step-card {
  border-left: 1.5px dashed var(--border);
}

.step-card::before,
.step-card::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 22px; height: 22px;
  background: var(--bg);
  border-radius: 50%;
}
.step-card:not(:first-child)::before { left: -11px; }
.step-card:not(:last-child)::after { right: -11px; }

.step-num {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-4);
  display: block;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  font-family: var(--f-body);
}
.step-card p { color: var(--text-sec); font-size: 14px; line-height: 1.6; }

/* ── XÜSUSİYYƏTLƏR — bilet arxası "əsas şərtlər" siyahısı ── */
.features { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-5);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.feature-item:nth-child(2n) { border-right: none; }
.feature-item:nth-last-child(-n+2) { border-bottom: none; }

.feature-mark {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

.feature-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feature-item p  { font-size: 13.5px; color: var(--text-sec); line-height: 1.55; }

/* ── KATEQORİYALAR — mini bilet kartları ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--sp-4);
}

.cat-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-4) var(--sp-4);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}
.cat-card:hover::before { transform: scaleX(1); }

.cat-mono {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--bg);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: var(--sp-3);
}

.cat-card .cat-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.cat-card .cat-count { font-size: 12px; color: var(--text-sec); margin-top: 4px; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--text);
  background-image: radial-gradient(circle at 15% 20%, rgba(123,110,246,0.35), transparent 55%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
}

.cta-banner .eyebrow { color: var(--primary-light); justify-content: center; margin-bottom: var(--sp-3); }
.cta-banner h2 { font-family: var(--f-display); font-size: clamp(24px,3.6vw,34px); font-weight: 600; margin-bottom: 12px; }
.cta-banner p  { opacity: 0.72; margin-bottom: var(--sp-5); font-size: 15.5px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: #98A9C0;
  padding: var(--sp-7) 0 var(--sp-5);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
}

.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #98A9C0; font-size: 13.5px; transition: color 0.15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom { font-size: 12px; text-align: center; font-family: var(--f-mono); letter-spacing: 0.01em; }

/* ── AUTH — bilet/ID kartı ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(91,76,219,0.10), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(123,110,246,0.10), transparent 45%);
  padding: 20px;
}

.auth-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-dark));
}

.auth-logo { text-align: center; margin-bottom: var(--sp-6); }
.auth-logo img { width: 52px; height: 52px; border-radius: 12px; margin-bottom: var(--sp-3); }
.auth-logo h1  { font-family: var(--f-display); font-size: 21px; font-weight: 600; }
.auth-logo p   { font-size: 13.5px; color: var(--text-sec); margin-top: 2px; }

/* ── FORMS ── */
.form-group { margin-bottom: var(--sp-4); }

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--f-body);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(91,76,219,0.14);
}

.form-hint { font-size: 12px; color: var(--text-sec); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }

.phone-prefix {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 15px;
  background: var(--bg);
  white-space: nowrap;
  font-family: var(--f-mono);
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* OTP input */
.otp-inputs { display: flex; gap: 8px; justify-content: center; margin: var(--sp-4) 0; }

.otp-inputs input {
  width: 46px; height: 54px;
  text-align: center;
  font-size: 21px;
  font-weight: 600;
  font-family: var(--f-mono);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.otp-inputs input:focus { border-color: var(--primary); box-shadow: 0 0 0 3.5px rgba(91,76,219,0.14); }

/* Giriş rejim seçici */
.auth-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: var(--r-sm); padding: 4px; margin-bottom: var(--sp-6); }
.auth-tab  {
  flex: 1; padding: 9px; border: none; background: transparent; border-radius: 7px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--text-sec);
  transition: 0.15s; font-family: var(--f-body);
}
.auth-tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.step { display: none; }
.step.active { display: block; }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: var(--sp-4); border: 1px solid; }
.alert-success { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.alert-info    { background: #EEF2FF; color: var(--primary-dark); border-color: #C7D2FE; }

/* ── DASHBOARD ── */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-6); }

.stat-box {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-4);
}
.stat-box .val { font-family: var(--f-mono); font-size: 26px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-box .lbl { font-size: 11.5px; color: var(--text-sec); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.04em; }

.panel-cta {
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-6);
  margin-bottom: var(--sp-5);
  background: linear-gradient(135deg, var(--primary-light), var(--primary) 60%, var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.panel-cta .eyebrow { color: rgba(255,255,255,0.7); }
.panel-cta h2 { font-family: var(--f-display); font-size: 21px; font-weight: 600; margin: 6px 0 4px; }
.panel-cta p  { color: rgba(255,255,255,0.78); font-size: 13.5px; }

/* ── EXAM INTERFACE ── */
.exam-layout { max-width: 700px; margin: 0 auto; padding: var(--sp-6) 16px 60px; }

.exam-header {
  background: var(--text);
  color: #fff;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md) var(--r-md) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.exam-progress-bar { height: 3px; background: rgba(255,255,255,0.18); position: relative; }
.exam-progress-fill { height: 100%; background: var(--primary-light); transition: width 0.4s ease; }

.exam-timer { font-family: var(--f-mono); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.exam-timer.warning { color: var(--amber); }
.exam-timer.danger  { color: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.question-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: var(--sp-6);
}

.question-text { font-size: 16.5px; font-weight: 600; line-height: 1.55; margin-bottom: var(--sp-5); font-family: var(--f-body); }

.option-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 10px;
  font-family: var(--f-body);
}
.option-btn:hover:not(:disabled) { border-color: var(--primary); background: #F7F6FF; }
.option-btn.selected { border-color: var(--primary); background: #EEECFC; color: var(--primary-dark); }
.option-btn.correct  { border-color: var(--green); background: #F0FDF4; color: #166534; }
.option-btn.wrong    { border-color: var(--red); background: #FEF2F2; color: #991B1B; }

.option-label {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-weight: 700; font-size: 12.5px;
  flex-shrink: 0;
}
.option-btn.correct .option-label  { background: var(--green); color: #fff; }
.option-btn.wrong   .option-label  { background: var(--red);   color: #fff; }
.option-btn.selected .option-label { background: var(--primary); color: #fff; }

.explanation {
  margin-top: var(--sp-4);
  padding: 13px 16px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: #92400E;
  display: none;
  line-height: 1.55;
}
.explanation.show { display: block; }

/* ── RESULT SCREEN ── */
.result-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.grade-circle {
  width: 104px; height: 104px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 38px; font-weight: 700;
  margin: 0 auto var(--sp-5);
  border: 5px solid;
}
.grade-A, .grade-B { background: #F0FDF4; border-color: var(--green); color: #166534; }
.grade-C            { background: #EFF6FF; border-color: #3B82F6; color: #1E40AF; }
.grade-D            { background: #FFFBEB; border-color: var(--amber); color: #92400E; }
.grade-F            { background: #FEF2F2; border-color: var(--red);   color: #991B1B; }

/* ── CARDS ── */
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); margin-bottom: var(--sp-4); }
.card-title { font-size: 15px; font-weight: 600; font-family: var(--f-body); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-family: var(--f-mono); letter-spacing: 0.02em; }
.badge-green  { background: #F0FDF4; color: #166534; }
.badge-red    { background: #FEF2F2; color: #991B1B; }
.badge-amber  { background: #FFFBEB; color: #92400E; }
.badge-blue   { background: #EFF6FF; color: #1E40AF; }
.badge-gray   { background: var(--bg); color: var(--text-sec); }
.badge-purple { background: #EEECFC; color: var(--primary-dark); }

/* ── TABS ── */
.tabs { display: flex; border-bottom: 1.5px solid var(--border); margin-bottom: var(--sp-5); overflow-x: auto; gap: var(--sp-1); }
.tab-btn {
  padding: 10px 4px; margin-right: var(--sp-5);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; background: none; color: var(--text-sec);
  border-bottom: 2px solid transparent; margin-bottom: -1.5px;
  white-space: nowrap; font-family: var(--f-body);
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── PAGE HEADER ── */
.page-header { background: var(--card); border-bottom: 1px solid var(--border); padding: var(--sp-5) 0; margin-bottom: var(--sp-6); }
.page-header h1 { font-family: var(--f-display); font-size: 23px; font-weight: 600; }
.page-header p { color: var(--text-sec); font-size: 14px; margin-top: 2px; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin: var(--sp-6) 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--r-sm); border: 1.5px solid var(--border);
  font-size: 13.5px; font-family: var(--f-mono); background: var(--card); color: var(--text);
}
.pagination a:hover { border-color: var(--primary); text-decoration: none; }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ── SPINNER ── */
.spinner { width: 38px; height: 38px; border: 3.5px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { text-align: center; padding: 60px 20px; }
.loading-overlay p { margin-top: var(--sp-4); color: var(--text-sec); font-size: 14px; }

/* ── PROSE (haqqında/şərtlər/məxfilik) ── */
.prose h1 { font-family: var(--f-display); font-size: 30px; font-weight: 600; margin: 0 0 var(--sp-3); }
.prose h2 { font-family: var(--f-display); font-size: 19px; font-weight: 600; margin: var(--sp-6) 0 var(--sp-3); color: var(--primary-dark); }
.prose h3 { font-size: 15px; font-weight: 600; margin: var(--sp-5) 0 var(--sp-2); }
.prose p  { margin-bottom: var(--sp-3); line-height: 1.75; color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: var(--sp-3); }
.prose li { margin-bottom: 6px; line-height: 1.65; }
.prose a  { color: var(--primary); }
.prose strong { font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

/* ── Multi-select chips (exam setup) ── */
.sub-chip {
  padding: 7px 15px; border-radius: 999px; font-size: 13px; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  transition: all 0.15s; white-space: nowrap; font-family: var(--f-body);
}
.sub-chip:hover  { border-color: var(--primary); color: var(--primary); }
.sub-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── AI Məqalə Bloku (SEO/blog məzmunu) ── */
.ai-article-body h2 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; color: var(--text); margin: 24px 0 12px; }
.ai-article-body h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
.ai-article-body p  { margin-bottom: 14px; line-height: 1.75; }
.ai-article-body ul, .ai-article-body ol { padding-left: 22px; margin-bottom: 14px; }
.ai-article-body li { margin-bottom: 6px; line-height: 1.6; }
.ai-article-body strong { color: var(--text); }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-sec); }
.text-sm     { font-size: 13px; }
.fw-600      { font-weight: 600; }
.mt-16       { margin-top: var(--sp-4); }
.mt-24       { margin-top: var(--sp-5); }
.mb-0        { margin-bottom: 0; }
.d-flex      { display: flex; }
.align-center { align-items: center; }
.gap-8       { gap: var(--sp-2); }
.gap-12      { gap: var(--sp-3); }
.justify-between { justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub {
    border-left: none;
    border-top: 2px dashed rgba(255,255,255,0.28);
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ticket-stub::before,
  .ticket-stub::after { left: auto; top: -13px; }
  .ticket-stub::before { left: 20%; }
  .ticket-stub::after  { left: auto; right: 20%; bottom: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-item:nth-child(2n) { border-right: 1px solid var(--border); }
  .feature-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .step-card + .step-card { border-left: none; border-top: 1.5px dashed var(--border); }
  .step-card:not(:first-child)::before { left: 50%; top: -11px; transform: translateX(-50%); }
  .step-card:not(:last-child)::after { display: none; }

  .hero { padding: var(--sp-7) 0 var(--sp-6); }
  .ticket-main { padding: var(--sp-6) var(--sp-5); }
  .auth-card { padding: var(--sp-6) var(--sp-5); }
  .cta-banner { padding: var(--sp-6) var(--sp-4); }
  .footer-top { flex-direction: column; }
  section { padding: var(--sp-7) 0; }

  .navbar .container { padding: 0 16px; }
  .navbar-brand { font-size: 17px; }
  .navbar-brand img { width: 30px; height: 30px; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 14px; }

  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-box { padding: 14px; }
  .stat-box .val { font-size: 21px; }

  .form-row { grid-template-columns: 1fr; }

  .exam-layout { padding: 16px 10px 40px; }
  .exam-header { padding: 12px 16px; }
  .question-card { padding: var(--sp-4); }
  .question-text { font-size: 15px; }
  .option-btn { padding: 11px 13px; font-size: 13.5px; }

  .result-card { padding: var(--sp-5) var(--sp-4); }
  .grade-circle { width: 88px; height: 88px; font-size: 32px; }

  .otp-inputs input { width: 42px; height: 48px; font-size: 18px; }
}

@media (max-width: 640px) {
  .navbar-toggle { display: block; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a:not(.btn) { padding: 11px 12px; }
  .navbar-nav .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .exam-layout { padding: 16px 10px 60px; }
  .categories-grid { grid-template-columns: 1fr; }
  .otp-inputs { gap: 5px; }
  .otp-inputs input { width: 38px; height: 44px; }
}

/* ── FƏRQLƏNDİRİCİ BÖLMƏ ("Nə ilə fərqlənirik") ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}

.why-card { padding: var(--sp-6) var(--sp-5); }
.why-card + .why-card { border-left: 1.5px dashed var(--border); }

.why-num {
  font-family: var(--f-mono);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.why-num span { font-size: 22px; opacity: .55; margin-left: 2px; }

.why-card h3 {
  font-family: var(--f-body);
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  line-height: 1.35;
}
.why-card p { color: var(--text-sec); font-size: 14px; line-height: 1.62; }
.why-card strong { color: var(--text); font-weight: 600; }

.why-note {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  max-width: 640px;
}
.why-note p { color: var(--text-sec); font-size: 14.5px; line-height: 1.65; margin-top: 8px; }

#why .section-title h2 { line-height: 1.22; }
#why .section-title p { color: var(--text-sec); font-size: 15.5px; max-width: 520px; margin-left: auto; margin-right: auto; }
#why .section-title em { font-style: italic; color: var(--primary); font-weight: 600; }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card + .why-card { border-left: none; border-top: 1.5px dashed var(--border); }
  .why-num { font-size: 38px; }
}
