/* ==========================================================================
   CHESTIONARE AUTO 2026 — V4 Luxury Automotive Showroom (Dark Carbon & Pearl White)
   Harmonized with Royal Blue (#2563EB), Championship Gold (#F59E0B) & Crimson (#EF4444)
   ========================================================================== */

:root,
:root[data-theme="dark"] {
  --bg: #050811;
  --surface: #0C1222;
  --surface-2: #121B32;
  --surface-3: #1A2644;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --border-focus: #3B82F6;
  --text: #F8FAFC;
  --text-2: #B4C3DA;
  --text-3: #8396B4;
  --accent: #3B82F6;
  --accent-2: #2563EB;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(59, 130, 246, 0.11);
  --accent-soft-2: rgba(59, 130, 246, 0.20);
  --gold: #F59E0B;
  --gold-2: #FBBF24;
  --gold-soft: rgba(245, 158, 11, 0.14);
  --hub-active-bg: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  --hub-active-ink: #FFFFFF;
  --hub-active-shadow: 0 4px 16px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --card-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.065);
  --card-shadow: 0 10px 34px rgba(2, 6, 23, 0.55);
  --header-bg: rgba(5, 8, 17, 0.84);
  --ok: #22C55E;
  --ok-bg: rgba(34, 197, 94, 0.13);
  --ok-border: rgba(34, 197, 94, 0.42);
  --err: #EF4444;
  --err-bg: rgba(239, 68, 68, 0.13);
  --err-border: rgba(239, 68, 68, 0.42);
  --warn: #F59E0B;
  --warn-bg: rgba(245, 158, 11, 0.13);
}

:root[data-theme="white"] {
  --bg: #F3F6FC;
  --surface: #FFFFFF;
  --surface-2: #F1F5FB;
  --surface-3: #E2E9F5;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.20);
  --border-focus: #2563EB;
  --text: #0B1224;
  --text-2: #334155;
  --text-3: #475569;
  --accent: #2563EB;
  --accent-2: #1D4ED8;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-soft-2: rgba(37, 99, 235, 0.15);
  --gold: #D97706;
  --gold-2: #F59E0B;
  --gold-soft: rgba(245, 158, 11, 0.12);
  --hub-active-bg: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
  --hub-active-ink: #FFFFFF;
  --hub-active-shadow: 0 4px 14px rgba(37, 99, 235, 0.30);
  --card-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.06);
  --header-bg: rgba(255, 255, 255, 0.90);
  --ok: #15803D;
  --ok-bg: rgba(22, 163, 74, 0.10);
  --ok-border: rgba(22, 163, 74, 0.38);
  --err: #B91C1C;
  --err-bg: rgba(220, 38, 38, 0.10);
  --err-border: rgba(220, 38, 38, 0.35);
  --warn: #B45309;
  --warn-bg: rgba(217, 119, 6, 0.12);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-copy strong {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.tag-mono, .badge-mono, .step-num, .hud-timer, .code-area, kbd {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Luminous Showroom Dual Spotlight Glow */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 68% 480px at 18% -120px, rgba(37, 99, 235, 0.20), transparent 72%),
    radial-gradient(ellipse 52% 400px at 85% -80px, rgba(245, 158, 11, 0.11), transparent 68%),
    radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.07), transparent 50%);
}
:root[data-theme="white"] .ambient-bg {
  background:
    radial-gradient(ellipse 72% 380px at 20% -110px, rgba(37, 99, 235, 0.11), transparent 70%),
    radial-gradient(ellipse 52% 320px at 86% -90px, rgba(245, 158, 11, 0.08), transparent 68%);
}

.hidden { display: none !important; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 22px; }
.muted-sm { color: var(--text-2); font-size: 13.5px; margin: 6px 0 0; }
.muted-xs { color: var(--text-3); font-size: 12px; margin: 4px 0 0; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

/* ---------------- TOP NAVIGATION ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 10px;
  background: #09090B;
  border: 1px solid rgba(234, 179, 8, 0.38);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.brand:hover .brand-logo-wrap {
  transform: translateY(-1px);
  border-color: rgba(234, 179, 8, 0.65);
}

.brand-logo-img {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-copy small {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Segmented 3-App Hub */
.app-hub {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.hub-btn:hover { color: var(--text); }

.hub-btn.active {
  background: var(--hub-active-bg);
  color: #FFFFFF;
  box-shadow: var(--hub-active-shadow);
}

.hub-count {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.hub-btn.active .hub-count {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease;
}
.quota-pill:hover { border-color: var(--border-strong); }
.quota-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.quota-pill.exhausted .quota-dot {
  background: var(--err);
  box-shadow: 0 0 8px var(--err);
}
.quota-pill.pro {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }

/* ---------------- BUTTONS ---------------- */
.btn-primary, .btn-pro, .btn-outline, .btn-glass, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 17px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #FFFFFF;
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Championship Gold Upgrade PRO Account Button */
.btn-pro {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 55%, #F59E0B 100%);
  color: #0B1224;
  border: 1px solid rgba(253, 224, 71, 0.65);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-pro:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.46);
}
.btn-pro.is-pro-active {
  background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
  color: #FFFFFF;
  border-color: rgba(134, 239, 172, 0.5);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.36);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--card-sheen);
}
.btn-outline:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-1px); }

.btn-glass {
  background: rgba(59, 130, 246, 0.12);
  color: var(--text);
  border: 1px solid rgba(96, 165, 250, 0.34);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(59, 130, 246, 0.20);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--accent-soft); }

.btn-xs { padding: 5px 11px; font-size: 11.5px; border-radius: 7px; }
.btn-sm { padding: 6px 13px; font-size: 12px; border-radius: 8px; height: 34px; }
.btn-lg { padding: 12px 22px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ---------------- MAIN SHELL ---------------- */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 22px 76px;
}

/* ---------------- FULL-BLEED CINEMATIC PANORAMIC SHOWROOM HERO ---------------- */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 496px;
  border-radius: 24px;
  background: #040814;
  border: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 64px rgba(2, 6, 23, 0.68),
    0 0 0 1px rgba(245, 158, 11, 0.10);
  overflow: hidden;
  margin-bottom: 24px;
}
.hero-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #3B82F6 28%, #F59E0B 72%, transparent 100%);
  z-index: 6;
  opacity: 0.9;
}
:root[data-theme="white"] .hero-stage {
  background: #040814;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow:
    0 22px 58px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(37, 99, 235, 0.12);
}

/* Full-bleed panoramic 6-vehicle background centered cleanly inside the entire chenar */
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #040814;
}

.hero-bg-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
}

/* Silk-smooth directional scrim: protects left overlay typography while leaving ALL 6 vehicles 100% pure & luminous */
.hero-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(4, 8, 20, 0.84) 0%,
      rgba(4, 8, 20, 0.56) 28%,
      rgba(4, 8, 20, 0.14) 44%,
      rgba(4, 8, 20, 0.00) 60%),
    linear-gradient(180deg,
      rgba(4, 8, 20, 0.26) 0%,
      rgba(4, 8, 20, 0.00) 24%,
      rgba(4, 8, 20, 0.00) 76%,
      rgba(4, 8, 20, 0.58) 100%);
  pointer-events: none;
}

/* Floating crisp typography panel positioned neatly over the clean dark left studio zone */
.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 472px;
  padding: 44px 36px 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 28, 62, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.36);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BFDBFE;
  margin-bottom: 16px;
}
:root[data-theme="white"] .eyebrow {
  color: #BFDBFE;
  background: rgba(15, 28, 62, 0.78);
  border-color: rgba(96, 165, 250, 0.40);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(26px, 2.75vw, 37px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #FFFFFF;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.72);
}

.hero-desc {
  margin: 13px 0 24px;
  color: #D7E2F4;
  font-size: 14.5px;
  max-width: 420px;
  line-height: 1.58;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-cta-row .btn-primary,
.hero-cta-row .btn-hero-glass {
  padding: 11px 16px;
  font-size: 13px;
  white-space: nowrap;
}

/* Dedicated translucent dark-glass secondary button inside full-bleed Hero (crisp in both Dark & White modes!) */
.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #F8FAFC;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.34);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.btn-hero-glass:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.80);
  border-color: rgba(147, 197, 253, 0.55);
}

/* Sleek Frosted-Glass Bottom Telemetry & Fleet Bar (sits cleanly along bottom floor reflection — zero overlap on vehicles!) */
.hero-bottom-dock {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px 26px;
  background: rgba(6, 11, 24, 0.76);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-telemetry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tel-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tel-item strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #F8FAFC;
  line-height: 1.25;
  white-space: nowrap;
}
.tel-item span {
  font-size: 10.5px;
  color: #94A3B8;
  white-space: nowrap;
}
.tel-sep {
  display: block;
  width: 1px;
  height: 26px;
  background: rgba(148, 163, 184, 0.20);
  flex-shrink: 0;
}

.hero-dock-fleet {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-caption-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #F8FAFC;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-fleet-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.hero-fleet-tags span {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #DBEAFE;
  white-space: nowrap;
}

.fb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
  flex-shrink: 0;
}

/* ---------------- ORGANIZED CATEGORY EXPLORER ---------------- */
.cat-section {
  margin-bottom: 24px;
}

.cat-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cat-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-strip-label {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.cat-strip-total {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Grouped 14-category architectural blocks */
.cat-groups-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cat-group-block {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-sheen), var(--card-shadow);
}
.cat-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.cat-group-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  flex-shrink: 0;
}
.cat-group-block--redobandire .cat-group-num {
  background: linear-gradient(135deg, #D97706, #F59E0B);
}
.cat-group-block--atestate .cat-group-num {
  background: linear-gradient(135deg, #0284C7, #2563EB);
}
.cat-group-head strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.cat-group-head small {
  display: block;
  font-size: 12px;
  color: var(--text-2);
}
.cat-group-pill {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Clean symmetric 3-column architectural grid: ZERO title clipping! */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.cat-grid-single {
  grid-template-columns: minmax(0, 560px);
}

.cat-card {
  position: relative;
  text-align: left;
  padding: 16px 17px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--card-sheen), var(--card-shadow);
  display: flex;
  align-items: flex-start;
  gap: 13px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563EB, #60A5FA);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.cat-card--redobandire::before {
  background: linear-gradient(90deg, #D97706, #FBBF24);
}
.cat-card--atestate::before {
  background: linear-gradient(90deg, #0EA5E9, #3B82F6);
}

.cat-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.14);
}
.cat-card:hover::before { opacity: 0.65; }

.cat-card.active {
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(37, 99, 235, 0.24);
}
.cat-card.active::before { opacity: 1; }

.cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.18s ease;
}
.cat-card--redobandire .cat-icon {
  background: var(--gold-soft);
  border-color: rgba(245, 158, 11, 0.30);
  color: var(--gold);
}

.cat-card.active .cat-icon {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.40);
}
.cat-card--redobandire.active .cat-icon {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.40);
}

.cat-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cat-card-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
}

.cat-active-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #FFFFFF;
  flex-shrink: 0;
}

.cat-card-desc {
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--text-2);
}

.cat-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.cat-meta-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: var(--text);
}

.cat-meta-info {
  font-size: 11.5px;
  color: var(--text-2);
}

/* ---------------- SLEEK SINGLE-ROW UNDERLINE STEPPER ---------------- */
.step-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.step-nav::-webkit-scrollbar { display: none; }

.step-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.step-tab:hover { color: var(--text); }

.step-tab.active {
  color: var(--text);
}

.step-tab.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #2563EB, #60A5FA);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.55);
}

.step-num {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
}
.step-tab.active .step-num { color: var(--text); }

.step-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.step-tab-admin { margin-left: auto; }

/* ---------------- VIEW PANELS ---------------- */
.panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.panel-header h2 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.panel-header h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
}

.tag-mono {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.badge-mono {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.lead-copy {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: 14.5px;
  max-width: 860px;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.info-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 18px 19px;
  box-shadow: var(--card-sheen), var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.65;
}
.info-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.info-card .ic-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
}
.info-card .ic-val {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.info-card .ic-note {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 22px;
  box-shadow: var(--card-sheen), var(--card-shadow);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.card-title-row h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.8px;
  color: var(--text-2);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13.5px;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}
.chapter-row:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
  transform: translateX(2px);
}
.chapter-row strong { font-weight: 600; color: var(--text); }
.chapter-row span { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; flex-shrink: 0; }

.mini-pro-box {
  margin-top: 16px;
  padding: 15px 17px;
  border-radius: 13px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--gold-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mini-pro-box > div > strong { font-size: 13.5px; display: block; color: var(--text); }
.mini-pro-box p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); }
.mini-pro-box p strong { display: inline; color: var(--text); }

.attempts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.attempt-chip {
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
}
.attempt-chip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.pill-ok { color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-border); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pill-err { color: var(--err); background: var(--err-bg); border: 1px solid var(--err-border); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }

/* ---------------- FILTERS & SEARCH ---------------- */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  height: 44px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: border-color 0.15s ease;
}
.search-wrap:focus-within { border-color: var(--border-focus); color: var(--text); }
.search-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.14s ease;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pager-bottom { justify-content: center; margin-top: 22px; width: 100%; }

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

/* ---------------- QUESTION CARDS (LEARN & REVIEW) ---------------- */
.q-stack, .cases-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 22px;
  box-shadow: var(--card-sheen), var(--card-shadow);
}

.q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.q-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}

.q-title {
  margin: 0 0 16px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -0.012em;
}

.q-diagram {
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: inline-block;
  max-width: 100%;
}
.q-diagram img {
  display: block;
  max-width: min(520px, 100%);
  height: auto;
  border-radius: 6px;
}

.opt-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.opt-btn {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  line-height: 1.48;
  transition: all 0.14s ease;
  width: 100%;
}
.opt-btn:hover { border-color: var(--border-strong); background: var(--surface-3); }

.opt-letter {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0;
}

.opt-btn.selected {
  border-color: var(--border-focus);
  background: var(--accent-soft-2);
  box-shadow: 0 0 0 1px var(--border-focus);
}
.opt-btn.selected .opt-letter {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.opt-btn.correct {
  border-color: var(--ok-border);
  background: var(--ok-bg);
}
.opt-btn.correct .opt-letter {
  background: var(--ok);
  color: #FFFFFF;
  border-color: var(--ok);
}

.opt-btn.wrong {
  border-color: var(--err-border);
  background: var(--err-bg);
}
.opt-btn.wrong .opt-letter {
  background: var(--err);
  color: #FFFFFF;
  border-color: var(--err);
}

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.14s ease;
}
.save-btn:hover { border-color: var(--border-strong); color: var(--text); }
.save-btn.saved {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* ---------------- RED FREE-TIER NOTICE BANNER ---------------- */
.free-red-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
}
:root[data-theme="white"] .free-red-notice {
  background: #FEF2F2;
  border-color: #EF4444;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.10);
}
.free-red-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #EF4444;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}
.free-red-body {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.free-red-body strong {
  color: #FCA5A5;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
:root[data-theme="white"] .free-red-body strong {
  color: #DC2626;
}
.free-red-body span {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.45;
}
.text-danger-inline {
  color: #F87171;
  font-weight: 700;
}
:root[data-theme="white"] .text-danger-inline {
  color: #DC2626;
}

/* ---------------- CASE STUDIES ---------------- */
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--card-sheen), var(--card-shadow);
}

.case-free-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.30);
  color: #93C5FD;
}
:root[data-theme="white"] .case-free-tag {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.24);
  color: #1D4ED8;
}

.case-toggle-btn.active-open {
  border-color: var(--accent);
  color: #60A5FA;
  background: var(--accent-soft);
}
:root[data-theme="white"] .case-toggle-btn.active-open {
  color: #1D4ED8;
}

.case-prompt {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  margin: 12px 0 14px;
}
.case-prompt p {
  margin: 0 0 8px;
}
.case-prompt p:last-child {
  margin-bottom: 0;
}
.case-prompt img, .case-answer img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #FFFFFF;
  padding: 6px;
  margin: 8px 0;
}

.case-answer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-section {
  border-radius: 12px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.cs-section-answer {
  border-left: 4px solid #22C55E;
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.24);
  border-left-color: #22C55E;
}
:root[data-theme="white"] .cs-section-answer {
  background: #F0FDF4;
  border-color: #BBF7D0;
  border-left-color: #16A34A;
}

.cs-section-just {
  border-left: 4px solid #F59E0B;
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.24);
  border-left-color: #F59E0B;
}
:root[data-theme="white"] .cs-section-just {
  background: #FFFBEB;
  border-color: #FDE68A;
  border-left-color: #D97706;
}

.cs-section-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.cs-section-answer .cs-section-head {
  color: #4ADE80;
}
:root[data-theme="white"] .cs-section-answer .cs-section-head {
  color: #15803D;
}
.cs-section-just .cs-section-head {
  color: #FBBF24;
}
:root[data-theme="white"] .cs-section-just .cs-section-head {
  color: #B45309;
}

.cs-section-icon {
  font-size: 13px;
  line-height: 1;
}

.cs-section-body {
  font-size: 14px;
  line-height: 1.68;
  color: var(--text);
}
.cs-section-body p {
  margin: 0 0 8px;
}
.cs-section-body p:last-child {
  margin-bottom: 0;
}

/* PRO Lock Wall Card below the 2 free case studies */
.cases-pro-lock-card {
  margin-top: 18px;
  padding: 24px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 26, 56, 0.92) 0%, rgba(10, 17, 36, 0.96) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.42);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
:root[data-theme="white"] .cases-pro-lock-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #EFF6FF 100%);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.cases-pro-lock-left {
  flex: 1;
  min-width: 260px;
}
.cases-pro-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #FCA5A5;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
:root[data-theme="white"] .cases-pro-lock-badge {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #DC2626;
}
.cases-pro-lock-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.cases-pro-lock-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 680px;
}

.errata-box {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--warn-bg);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--warn);
  font-size: 12.5px;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 40px 24px;
}
.empty-state h3 { margin: 0 0 8px; font-size: 18px; }
.empty-state p { color: var(--text-2); max-width: 560px; margin: 0 auto 20px; }
.empty-state .btn-row { justify-content: center; }

/* ---------------- QUIZ SIMULATOR STUDIO ---------------- */
.quota-inline-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}

.quiz-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}

.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--card-sheen), var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.mode-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.mode-card.featured {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus), var(--card-shadow);
}

.mode-card h3 { margin: 7px 0; font-size: 18.5px; font-weight: 800; letter-spacing: -0.02em; }
.mode-card p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.mode-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.mode-spec {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.chapter-sprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

/* Active Exam Terminal HUD */
.exam-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px 15px 0 0;
  box-shadow: var(--card-sheen);
  flex-wrap: wrap;
}
.exam-hud-left { display: flex; flex-direction: column; gap: 2px; }
.exam-hud-left strong { font-size: 15px; }
.exam-hud-center { display: flex; align-items: center; gap: 20px; }
.exam-hud-right { display: flex; align-items: center; gap: 8px; }

.hud-stat { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.hud-stat span { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.hud-stat strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.hud-stat-ok strong { color: #22C55E; font-weight: 800; }
.hud-stat-err strong { color: #EF4444; font-weight: 800; }
:root[data-theme="white"] .hud-stat-ok strong { color: #16A34A; }
:root[data-theme="white"] .hud-stat-err strong { color: #DC2626; }

.quiz-feedback-pill {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quiz-feedback-pill.ok {
  background: rgba(22, 163, 74, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #22C55E;
}
.quiz-feedback-pill.err {
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #F87171;
}
:root[data-theme="white"] .quiz-feedback-pill.ok {
  background: #DCFCE7;
  border-color: #16A34A;
  color: #15803D;
}
:root[data-theme="white"] .quiz-feedback-pill.err {
  background: #FEE2E2;
  border-color: #DC2626;
  color: #B91C1C;
}
.opt-btn.locked { cursor: default; opacity: 0.65; }
.opt-btn.correct.locked,
.opt-btn.wrong.locked { opacity: 1 !important; }
.opt-btn.locked:hover { background: var(--surface-2); border-color: var(--border); }
.opt-btn.correct.locked:hover { background: var(--ok-bg); border-color: var(--ok-border); }
.opt-btn.wrong.locked:hover { background: var(--err-bg); border-color: var(--err-border); }

.hud-timer {
  font-size: 18px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.hud-timer.low {
  background: var(--err);
  border-color: var(--err);
  color: #FFFFFF;
}

.exam-progress-track {
  height: 3px;
  background: var(--surface-3);
  margin-bottom: 18px;
  overflow: hidden;
}
.exam-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.28s ease;
}

.exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 16px;
  align-items: start;
}

.exam-question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--card-sheen), var(--card-shadow);
}
.exam-question-card .q-title {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.exam-navigator {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 16px;
  box-shadow: var(--card-sheen), var(--card-shadow);
}
.nav-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.nav-head strong { font-size: 13px; }
.nav-head small { font-size: 11px; color: var(--text-3); }

.nav-dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  max-height: 360px;
  overflow-y: auto;
  padding: 4px;
}
.nav-dots-wide {
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  max-height: none;
}

.nav-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  transition: transform 0.12s ease, background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.nav-dot .dot-mark {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.96;
}
.nav-dot:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}
.nav-dot.answered {
  background: var(--accent-soft-2);
  border-color: var(--border-strong);
  color: var(--text);
}

/* Vivid high-contrast GREEN (Correct) and RED (Wrong) squares in Harta întrebărilor */
.nav-dot.correct {
  background: #16A34A;
  border-color: #22C55E;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.38);
}
.nav-dot.correct:hover {
  background: #15803D;
  border-color: #4ADE80;
  color: #FFFFFF;
}

.nav-dot.wrong {
  background: #DC2626;
  border-color: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.38);
}
.nav-dot.wrong:hover {
  background: #B91C1C;
  border-color: #F87171;
  color: #FFFFFF;
}

.nav-dot.current {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--border-focus);
}
/* Keep vivid Green / Red clearly visible even when the square is the active question */
.nav-dot.correct.current {
  background: #16A34A;
  border-color: #86EFAC;
  color: #FFFFFF;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #22C55E;
}
.nav-dot.wrong.current {
  background: #DC2626;
  border-color: #FCA5A5;
  color: #FFFFFF;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #EF4444;
}

.nav-legend {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
}
.nav-legend-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px 10px;
}
.nav-legend-result {
  justify-content: flex-start;
  gap: 18px;
}
.dot-demo {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin-right: 6px;
  vertical-align: middle;
}
.dot-demo.dot-ok {
  background: #16A34A;
  border-color: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.45);
}
.dot-demo.dot-err {
  background: #DC2626;
  border-color: #EF4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.45);
}
.dot-demo.dot-cur { background: var(--accent); border-color: var(--accent); }
.dot-demo.dot-ans { background: var(--accent-soft-2); border-color: var(--border-strong); }

.exam-bottom-bar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.exam-mid-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.kbd-hint {
  font-size: 11.5px;
  color: var(--text-3);
}
kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-size: 10.5px;
  color: var(--text-2);
}

/* Result Hero with SVG Circular Gauge */
.result-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--card-sheen), var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.result-hero.passed { border-color: var(--ok-border); }
.result-hero.failed { border-color: var(--err-border); }
.result-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.score-ring {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.result-verdict {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 4px 0;
}
.result-hero.passed .result-verdict { color: var(--ok); }
.result-hero.failed .result-verdict { color: var(--err); }

/* ---------------- ADMIN & FORMS ---------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.input-field {
  width: 100%;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.input-field:focus { outline: none; border-color: var(--border-focus); }
.code-area {
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
}

.mini-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 290px;
  overflow-y: auto;
}
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

/* ---------------- MODALS ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: var(--surface);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 28px 72px rgba(2, 6, 23, 0.62);
}
.modal-wide { max-width: 680px; }

.auth-modal-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  padding-right: 32px;
}
.auth-modal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 11px;
  background: #09090B;
  border: 1px solid rgba(234, 179, 8, 0.45);
  flex-shrink: 0;
}
.auth-modal-logo img {
  display: block;
  height: 40px;
  width: auto;
}
.auth-modal-head h2 {
  margin: 0;
  font-size: 19px;
}

.social-auth-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}
.social-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16);
}
.social-google {
  background: #FFFFFF;
  color: #1F2937;
  border-color: rgba(15, 23, 42, 0.15);
}
.social-google:hover {
  background: #F8FAFC;
  border-color: #4285F4;
}
.social-apple {
  background: #09090B;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.22);
}
.social-apple:hover {
  background: #18181B;
  border-color: rgba(255, 255, 255, 0.45);
}
.social-outlook {
  background: linear-gradient(135deg, #0078D4 0%, #0063B1 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}
.social-outlook:hover {
  filter: brightness(1.08);
  border-color: #38BDF8;
}

.oauth-quick-box {
  margin: 0 0 14px;
  padding: 15px 16px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid rgba(59, 130, 246, 0.42);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.16);
}
.oauth-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.oauth-quick-head strong { font-size: 13.5px; color: var(--text); }

.auth-divider {
  position: relative;
  text-align: center;
  margin: 14px 0;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }

.modal-card h2 {
  margin: 4px 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.pricing-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.price-col {
  padding: 18px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.price-col-pro {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus);
}
.price-tier {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--text-3);
}
.price-amount {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 4px 0 10px;
  font-variant-numeric: tabular-nums;
}
.price-amount small { font-size: 13px; font-weight: 500; color: var(--text-2); }
.price-col ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pay-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.demo-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
}
.demo-banner p { margin: 0 0 10px; font-size: 12.5px; color: var(--text-2); }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin: 14px 0 16px;
}
.auth-tab {
  padding: 8px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.auth-tab.active {
  background: var(--hub-active-bg);
  color: var(--hub-active-ink);
  box-shadow: var(--hub-active-shadow);
}
.form-error {
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--err-bg);
  border: 1px solid var(--err-border);
  color: var(--err);
  font-size: 13px;
}
.account-summary {
  padding: 15px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------------- SMS OTP VERIFICATION FORMS ---------------- */
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.label-row label {
  margin-bottom: 0;
}
.link-inline-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: #60A5FA;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.link-inline-btn:hover { text-decoration: underline; }
:root[data-theme="white"] .link-inline-btn { color: #2563EB; }

.req-mail-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93C5FD;
  vertical-align: middle;
}
:root[data-theme="white"] .req-mail-tag {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1D4ED8;
}

.mail-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.mail-input-row .input-field {
  flex: 1;
  min-width: 0;
}

.mail-info-box {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.36);
  color: #86EFAC;
  font-size: 12.5px;
  line-height: 1.45;
}
:root[data-theme="white"] .mail-info-box {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #15803D;
}
.mail-info-box.mail-info-err {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}
:root[data-theme="white"] .mail-info-box.mail-info-err {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

.mail-preview-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mail-subform {
  margin-top: 16px;
  padding: 15px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.mail-subform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}
.mb-12 { margin-bottom: 12px; }
.ta-center { text-align: center; }

.activation-sent-box {
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid rgba(59, 130, 246, 0.32);
  text-align: center;
}
.activation-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.38);
  color: #60A5FA;
}
.activation-sent-box h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.activation-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 12px;
}
.activation-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.modal-email-preview {
  max-width: 720px;
  width: 96vw;
  padding: 20px;
}
.email-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 34px;
  margin-bottom: 14px;
}
.email-preview-head strong {
  font-size: 15px;
  display: block;
}
.email-preview-frame {
  width: 100%;
  height: 74vh;
  max-height: 680px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0B1120;
}

.email-verified-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ADE80;
}
:root[data-theme="white"] .email-verified-pill {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #15803D;
}
.admin-user-email-ok {
  font-size: 11px;
  font-weight: 600;
  color: #4ADE80;
  margin-top: 3px;
}
:root[data-theme="white"] .admin-user-email-ok {
  color: #15803D;
}
.admin-user-email-pending {
  font-size: 11px;
  font-weight: 600;
  color: #FBBF24;
  margin-top: 3px;
}
:root[data-theme="white"] .admin-user-email-pending {
  color: #B45309;
}

/* ---------------- ADMIN PRO USERS & SUBSCRIPTIONS TABLE ---------------- */
.admin-users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}
.admin-search-wrap {
  min-width: 260px;
  max-width: 360px;
  flex: 1;
}
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 780px;
}
.admin-users-table thead th {
  text-align: left;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-users-table thead th.ta-right,
.admin-users-table tbody td.ta-right {
  text-align: right;
}
.admin-users-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.admin-users-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-users-table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.04);
}
.admin-empty-cell {
  text-align: center;
  padding: 26px 14px !important;
  color: var(--text-3);
}
.admin-user-name {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-user-email {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.auth-mini-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.admin-role-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(59, 130, 246, 0.16);
  color: #60A5FA;
  letter-spacing: 0.05em;
}
:root[data-theme="white"] .admin-role-tag { color: #1D4ED8; }

.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.sub-badge-pro {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.42);
  color: #4ADE80;
}
:root[data-theme="white"] .sub-badge-pro { background: #DCFCE7; border-color: #86EFAC; color: #15803D; }

.sub-badge-soon {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FBBF24;
}
:root[data-theme="white"] .sub-badge-soon { background: #FEF3C7; border-color: #FCD34D; color: #B45309; }

.sub-badge-expired {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #FCA5A5;
}
:root[data-theme="white"] .sub-badge-expired { background: #FEE2E2; border-color: #FCA5A5; color: #DC2626; }

.sub-badge-free {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.admin-prov-name {
  font-weight: 600;
  color: var(--text);
}
.admin-sub-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
}
.exp-date-str {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.days-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
}
.days-pill-ok {
  background: rgba(34, 197, 94, 0.14);
  color: #4ADE80;
}
:root[data-theme="white"] .days-pill-ok { background: #DCFCE7; color: #15803D; }
.days-pill-warn {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
}
:root[data-theme="white"] .days-pill-warn { background: #FEF3C7; color: #B45309; }
.days-pill-exp {
  background: rgba(239, 68, 68, 0.14);
  color: #FCA5A5;
}
:root[data-theme="white"] .days-pill-exp { background: #FEE2E2; color: #DC2626; }

.admin-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.admin-revoke-btn {
  color: #F87171 !important;
}
:root[data-theme="white"] .admin-revoke-btn { color: #DC2626 !important; }

/* ---------------- CENTERED EDITORIAL FOOTER ---------------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 44px 22px 38px;
}
.footer-centered {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-center-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 15px;
  background: #09090B;
  border: 1.5px solid rgba(234, 179, 8, 0.48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.footer-logo-img {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
}
.footer-center-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text);
}
.footer-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}
.footer-nav-links a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-nav-links a:hover {
  color: var(--accent);
}
.footer-nav-dot {
  color: var(--text-3);
}
.footer-disclaimer {
  margin: 0;
  max-width: 660px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}
.footer-meta-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.footer-update-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
}
.footer-update-pill strong {
  color: var(--text);
  font-weight: 700;
}
.footer-update-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}
.footer-copyright {
  font-size: 12.5px;
  color: var(--text-3);
}
.footer-copyright strong {
  color: var(--text-2);
  letter-spacing: 0.04em;
}

/* ---------------- ADMIN EMAIL ACTIVATION CARD ---------------- */
.admin-mail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}
.admin-mail-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.admin-mail-meta code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.admin-mail-test-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.badge-mail-live {
  background: rgba(34, 197, 94, 0.14) !important;
  border-color: rgba(34, 197, 94, 0.36) !important;
  color: #4ADE80 !important;
}
:root[data-theme="white"] .badge-mail-live {
  background: #DCFCE7 !important;
  border-color: #86EFAC !important;
  color: #15803D !important;
}

/* ---------------- FOOTER TIKTOK BUTTON, LEGAL LINKS & CONSENT POPUP ---------------- */
.footer-social-row {
  display: flex;
  justify-content: center;
  margin: 4px 0 6px;
}

.footer-tiktok-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b1224 0%, #111c38 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), -2px 0 12px rgba(37, 244, 238, 0.14), 2px 0 12px rgba(254, 44, 85, 0.14);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.footer-tiktok-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 244, 238, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), -3px 0 16px rgba(37, 244, 238, 0.35), 3px 0 16px rgba(254, 44, 85, 0.35);
}

.tiktok-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tiktok-btn-label strong {
  color: #ffffff;
  font-weight: 800;
}

.tiktok-btn-handle {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #f5b938;
  background: rgba(245, 185, 56, 0.12);
  border: 1px solid rgba(245, 185, 56, 0.32);
  padding: 3px 9px;
  border-radius: 999px;
}

:root[data-theme="white"] .footer-tiktok-btn {
  background: #0f172a;
  color: #ffffff;
  border-color: #1e293b;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 2px 0 4px;
}

.footer-legal-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-legal-btn:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal Modal (stacks above Consent Popup) */
#legalModal {
  z-index: 140;
}

.modal-legal {
  max-width: 680px;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
  padding: 5px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.legal-tab {
  flex: 1 1 150px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.legal-tab.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.legal-body {
  max-height: 46vh;
  overflow-y: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-2);
}

.legal-body h4 {
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.legal-body h4:first-child {
  margin-top: 0;
}

.legal-body p {
  margin: 0 0 10px;
}

.legal-body code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.legal-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   V5 NEXT-GEN OVERHAUL:
   1. Full-Width Edge-to-Edge Fluid Layout + Larger Crisp Typography + Textbook Alignment
   2. Dedicated Full-Screen Digital Exam Workstation ("Sală de Examen Digitală")
   3. Compact Floating Bottom-Right Slide-In Consent Card (.consent-dock)
   ========================================================================== */

/* --- 1. FULL-WIDTH FLUID SHELL + LARGER CRISP TYPOGRAPHY + ALIGNMENT --- */
html, body {
  font-size: 16px;
  line-height: 1.6;
}

.topbar-inner {
  max-width: 100%;
  width: 100%;
  padding: 0 clamp(20px, 3vw, 52px);
  min-height: 70px;
  gap: 18px;
}

.brand-logo-img { height: 42px; }
.brand-copy strong { font-size: 15px; letter-spacing: 0.06em; }
.brand-copy small { font-size: 11px; }

.hub-btn {
  padding: 8px 15px;
  font-size: 14px;
  gap: 8px;
}
.hub-count { font-size: 11.5px; padding: 2px 8px; }

.quota-pill, .icon-btn { height: 38px; font-size: 13px; padding: 0 14px; }
.btn-sm { height: 38px; padding: 7px 15px; font-size: 13.5px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }

.shell {
  max-width: 100%;
  width: 100%;
  padding: 26px clamp(20px, 3vw, 52px) 84px;
}

/* Panoramic Full-Width Hero Stage — ZERO-CROP RAZOR-SHARP STUDIO COMPOSITION */
.hero-stage {
  min-height: 0;
  border-radius: 26px;
  margin-bottom: 30px;
  background: #030713;
}

.hero-upper {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(430px, 45vh, 520px);
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg,
    #030713 0%,
    #060b1b 38%,
    #0e1429 56%,
    #081020 78%,
    #050c16 100%);
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: transparent;
}

/* Zero-crop retina-sharp right-anchored studio photo (never upscaled or sliced vertically!) */
.hero-bg-photo {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 12%, #000000 24%, #000000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 12%, #000000 24%, #000000 100%);
}

.hero-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(3, 7, 19, 0.90) 0%,
      rgba(3, 7, 19, 0.62) 24%,
      rgba(3, 7, 19, 0.10) 40%,
      rgba(3, 7, 19, 0.00) 52%);
  pointer-events: none;
}

.hero-content {
  max-width: 580px;
  padding: 44px 36px 40px clamp(28px, 3.6vw, 56px);
}

.eyebrow {
  font-size: 11.5px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.hero-content h1 {
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.032em;
}

.hero-desc {
  font-size: 16.5px;
  max-width: 520px;
  line-height: 1.62;
  margin: 16px 0 28px;
}

.hero-cta-row {
  gap: 14px;
}
.hero-cta-row .btn-primary,
.hero-cta-row .btn-hero-glass {
  padding: 13px 24px;
  font-size: 15px;
  border-radius: 13px;
}

.hero-bottom-dock {
  padding: 16px clamp(24px, 3vw, 48px);
}
.tel-item strong { font-size: 16px; }
.tel-item span { font-size: 12px; }
.hero-caption-title { font-size: 13px; }
.hero-fleet-tags span { font-size: 12px; padding: 3px 10px; }

/* Full-Width Balanced Category Grid — Razor-Sharp Equal-Height Alignment */
.cat-section { margin-bottom: 30px; }
.cat-strip-header { margin-bottom: 16px; }
.cat-strip-label { font-size: 14px; }
.cat-strip-total { font-size: 13px; padding: 4px 12px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.cat-grid-single {
  grid-template-columns: minmax(0, 640px);
}

.cat-card {
  padding: 20px 21px;
  border-radius: 17px;
  height: 100%;
  align-items: stretch;
}
.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.cat-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 7px;
}
.cat-card-title { font-size: 17px; }
.cat-card-desc { font-size: 13.8px; line-height: 1.48; }
.cat-card-meta {
  margin-top: auto;
  padding-top: 10px;
}
.cat-meta-pill { font-size: 12.5px; padding: 4px 10px; }
.cat-meta-info { font-size: 12.5px; }

/* Stepper & Panel Headings — Crisp, Spacious, Perfectly Aligned */
.step-nav {
  gap: 10px;
  margin-bottom: 28px;
}
.step-tab {
  padding: 14px 18px 15px;
  font-size: 15px;
  gap: 9px;
}
.step-num { font-size: 11.5px; }
.step-pill { font-size: 11.5px; padding: 2px 9px; }

.panel-header { margin-bottom: 22px; }
.panel-header h2 { font-size: clamp(23px, 2vw, 29px); }
.panel-header h3 { font-size: 19px; }
.tag-mono { font-size: 11.5px; }
.badge-mono { font-size: 12px; padding: 4px 10px; }
.lead-copy { font-size: 16px; max-width: 1020px; line-height: 1.65; }

.info-cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}
.info-card {
  padding: 22px 24px;
  border-radius: 17px;
  height: 100%;
}
.info-card .ic-label { font-size: 11.5px; }
.info-card .ic-val { font-size: 22px; }
.info-card .ic-note { font-size: 13.8px; }

.two-col-grid {
  gap: 20px;
  align-items: stretch;
}
.two-col-grid > .surface-card {
  display: flex;
  flex-direction: column;
}
.two-col-grid > .surface-card .mini-pro-box {
  margin-top: auto;
}

.surface-card {
  padding: 26px 28px;
  border-radius: 18px;
}
.card-title-row { margin-bottom: 18px; }
.card-title-row h3 { font-size: 17.5px; }
.check-list { gap: 14px; }
.check-list li { font-size: 15px; line-height: 1.6; padding-left: 24px; }
.check-list li::before { top: 9px; }
.chapter-row { padding: 13px 16px; font-size: 15px; }
.chapter-row span { font-size: 13px; }
.mini-pro-box { padding: 18px 20px; }
.mini-pro-box > div > strong { font-size: 15px; }
.mini-pro-box p { font-size: 13.8px; }

.attempts-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 13px;
}
.attempt-chip { padding: 14px 16px; font-size: 13.8px; }
.muted-sm { font-size: 14.5px; }
.muted-xs { font-size: 13px; }

/* Learn, Case Studies & Mode Cards — Larger, Sharper, Aligned */
.q-card { padding: 26px 28px; border-radius: 18px; }
.q-title { font-size: 18.5px; line-height: 1.5; margin-bottom: 18px; }
.opt-list { gap: 11px; }
.opt-btn { padding: 15px 18px; font-size: 15.5px; line-height: 1.5; border-radius: 13px; }
.opt-letter { width: 30px; height: 30px; font-size: 13.5px; border-radius: 8px; }

.case-card { padding: 26px 28px; border-radius: 18px; }
.case-prompt { font-size: 15.8px; line-height: 1.68; }
.cs-section-body { font-size: 15.2px; line-height: 1.7; }
.cs-section-head { font-size: 12.8px; }

.search-wrap { height: 48px; padding: 0 18px; }
.search-wrap input { font-size: 15px; }
.chip { padding: 7px 15px; font-size: 13.5px; }

.quiz-modes-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.mode-card { padding: 28px; border-radius: 19px; height: 100%; }
.mode-card h3 { font-size: 21px; }
.mode-card p { font-size: 15px; line-height: 1.6; }
.mode-spec { font-size: 12.5px; padding: 5px 12px; }

.chapter-sprint-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.footer-centered {
  max-width: 100%;
  padding-inline: clamp(20px, 3vw, 52px);
}
.footer-nav-links { font-size: 14.5px; }
.footer-disclaimer { font-size: 14px; max-width: 780px; }
.footer-legal-btn { font-size: 13.5px; }
.footer-copyright { font-size: 13px; }

/* ==========================================================================
   2. DEDICATED FULL-SCREEN DIGITAL EXAM WORKSTATION (ONE-OF-A-KIND NEXT-GEN)
   ========================================================================== */
body.exam-fullscreen-mode .topbar,
body.exam-fullscreen-mode .hero-stage,
body.exam-fullscreen-mode .cat-section,
body.exam-fullscreen-mode .step-nav,
body.exam-fullscreen-mode .site-footer,
body.exam-fullscreen-mode #consentPopup {
  display: none !important;
}

body.exam-fullscreen-mode .shell {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  min-height: 100vh;
}

body.exam-fullscreen-mode #view-quiz {
  min-height: 100vh;
}

.exam-room {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 420px at 14% 0%, rgba(37, 99, 235, 0.16), transparent 72%),
    radial-gradient(ellipse 55% 360px at 88% 100%, rgba(245, 158, 11, 0.10), transparent 70%),
    var(--bg);
}

:root[data-theme="white"] .exam-room {
  background:
    radial-gradient(ellipse 70% 360px at 15% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    var(--bg);
}

/* Top Official Exam Command Deck */
.exam-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 2.8vw, 44px);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.exam-topbar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.exam-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 11px;
  background: #09090B;
  border: 1px solid rgba(245, 185, 56, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
  flex-shrink: 0;
}
.exam-brand-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.exam-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.exam-live-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.exam-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
  animation: examLivePulse 1.9s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes examLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.exam-room-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F5B938;
  white-space: nowrap;
}
:root[data-theme="white"] .exam-room-kicker { color: #1D4ED8; }

.exam-mode-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.exam-mode-row strong {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
}
.exam-q-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft-2);
  border: 1px solid rgba(59, 130, 246, 0.34);
  color: var(--text);
}

/* 5 Official Digital Telemetry Counters (Real Exam Terminal Strip) */
.exam-telemetry-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--card-sheen);
}

.et-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  line-height: 1.15;
}

.et-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
}

.et-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  margin-top: 2px;
}
.et-val-rem { color: #60A5FA; }
:root[data-theme="white"] .et-val-rem { color: #1D4ED8; }

.et-box-ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(22, 163, 74, 0.11);
}
.et-box-ok .et-val { color: #22C55E; }
:root[data-theme="white"] .et-box-ok .et-val { color: #15803D; }

.et-box-err {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(220, 38, 38, 0.11);
}
.et-box-err .et-val { color: #F87171; }
:root[data-theme="white"] .et-box-err .et-val { color: #DC2626; }

.et-box-pass {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.11);
}
.et-box-pass .et-val { color: #FBBF24; }
:root[data-theme="white"] .et-box-pass .et-val { color: #B45309; }

/* Clock & Right Actions */
.exam-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exam-clock-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.exam-clock-wrap .hud-timer {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.exam-clock-wrap .hud-timer.warn { color: #FBBF24; }
.exam-clock-wrap .hud-timer.low {
  color: #EF4444;
  background: transparent;
  animation: examLivePulse 1s ease-in-out infinite;
}

.exam-theme-btn {
  width: 38px;
  padding: 0;
  justify-content: center;
}

.exam-progress-track {
  height: 4px;
  background: var(--surface-3);
  margin: 0;
  overflow: hidden;
}
.exam-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 60%, #22C55E 100%);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Main Full-Width Exam Workspace */
.exam-stage-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
  padding: clamp(18px, 2.2vw, 32px) clamp(18px, 3vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.exam-room .exam-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: clamp(18px, 2.2vw, 32px);
  align-items: start;
}

.exam-room .exam-question-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 2.8vw, 42px);
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--card-sheen), 0 22px 60px rgba(2, 6, 23, 0.42);
}

.exam-room .exam-question-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563EB 0%, #60A5FA 50%, #F59E0B 100%);
}

.exam-q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.exam-q-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.exam-q-counter {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.exam-q-topic {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.quiz-feedback-pill.warn {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.48);
  color: #FBBF24;
}
:root[data-theme="white"] .quiz-feedback-pill.warn {
  background: #FEF3C7;
  border-color: #D97706;
  color: #B45309;
}
.quiz-feedback-pill.neutral {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.exam-q-title {
  margin: 0 0 26px;
  font-size: clamp(20px, 1.75vw, 27px);
  font-weight: 800;
  line-height: 1.44;
  letter-spacing: -0.02em;
  color: var(--text);
}

.exam-diagram-zoom {
  position: relative;
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin-bottom: 24px;
}
.exam-diagram-zoom:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.exam-diagram-zoom img {
  max-width: min(560px, 100%);
  max-height: 300px;
  object-fit: contain;
}
.diagram-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
}

.diagram-zoom-card {
  position: relative;
  background: #FFFFFF;
  padding: 20px;
  border-radius: 18px;
  max-width: min(92vw, 920px);
  max-height: 90vh;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}
.diagram-zoom-card img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
}
.diagram-zoom-card .modal-close {
  background: #0F172A;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Giant Tactile Touch-Screen Answer Tiles */
.exam-opt-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.exam-opt-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  font-size: clamp(15.5px, 1.1vw, 17.5px);
  font-weight: 500;
  line-height: 1.5;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.exam-opt-btn:not(.locked):hover {
  transform: translateX(4px);
  border-color: #3B82F6;
  background: var(--surface-3);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
}

.exam-opt-btn .opt-letter {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.exam-opt-btn .opt-text {
  flex: 1;
}

.opt-state-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}
.opt-state-ok { background: #16A34A; color: #FFFFFF; box-shadow: 0 0 14px rgba(34, 197, 94, 0.5); }
.opt-state-err { background: #DC2626; color: #FFFFFF; box-shadow: 0 0 14px rgba(239, 68, 68, 0.5); }

/* Right Cockpit Telemetry Sidebar */
.exam-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exam-gauge-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--card-sheen), var(--card-shadow);
}
.exam-gauge-card.gauge-passed {
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(145deg, rgba(22, 163, 74, 0.14), var(--surface));
}
.exam-gauge-card.gauge-danger {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.14), var(--surface));
}

.exam-gauge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.exam-gauge-pct {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.exam-gauge-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin-bottom: 10px;
}
.exam-gauge-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563EB, #60A5FA);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.exam-gauge-card.gauge-passed .exam-gauge-fill {
  background: linear-gradient(90deg, #16A34A, #4ADE80);
}
.exam-gauge-card.gauge-danger .exam-gauge-fill {
  background: linear-gradient(90deg, #DC2626, #F87171);
}

.exam-gauge-note {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}
.exam-gauge-sub {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-2);
}

.exam-room .exam-navigator {
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border-strong);
}
.exam-room .nav-head strong { font-size: 14.5px; }
.exam-room .nav-head small { font-size: 12px; }
.exam-room .nav-dots {
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  max-height: 235px;
}
.exam-room .nav-dot {
  height: 36px;
  border-radius: 9px;
  font-size: 12.5px;
}

/* Deferred ("Răspunde mai târziu") Amber State */
.nav-dot.deferred {
  background: rgba(245, 158, 11, 0.22);
  border-color: #F59E0B;
  color: #FCD34D;
}
:root[data-theme="white"] .nav-dot.deferred {
  background: #FEF3C7;
  border-color: #D97706;
  color: #92400E;
}
.nav-dot.deferred.current {
  background: #D97706;
  border-color: #FDE68A;
  color: #FFFFFF;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #F59E0B;
}
.dot-demo.dot-skip {
  background: #F59E0B;
  border-color: #FBBF24;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.45);
}

.nav-legend-5 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px 10px;
  font-size: 12px;
}

.exam-shortcuts-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
}
.exam-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-2);
}
.exam-shortcuts-grid kbd {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

/* Bottom Official Exam Action Dock */
.exam-bottom-bar {
  position: sticky;
  bottom: 0;
  z-index: 35;
  margin-top: 0;
  padding: 14px clamp(18px, 3vw, 52px);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

.exam-bottom-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.exam-mid-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-later {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
  border: 1.5px solid rgba(245, 158, 11, 0.52);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-later:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.26);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.25);
}
:root[data-theme="white"] .btn-later {
  background: #FFFBEB;
  color: #B45309;
  border-color: #D97706;
}
:root[data-theme="white"] .btn-later:hover:not(:disabled) {
  background: #FEF3C7;
}

/* Full-Screen Result Certificate Room */
.exam-result-room {
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
}

.exam-result-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px clamp(18px, 3vw, 52px);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.exam-result-inner {
  width: 100%;
  padding: 28px clamp(18px, 3vw, 52px) 80px;
}

.score-ring-lg {
  width: 108px;
  height: 108px;
}
.score-ring-lg .score-ring-val {
  font-size: 24px;
}

.result-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.rsp-pill {
  font-size: 13.5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.rsp-pill strong { color: var(--text); }
.rsp-ok { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok); }
.rsp-ok strong { color: var(--ok); }
.rsp-err { border-color: var(--err-border); background: var(--err-bg); color: var(--err); }
.rsp-err strong { color: var(--err); }

/* ==========================================================================
   3. COMPACT FLOATING BOTTOM-RIGHT SLIDE-IN CONSENT CARD (NON-BLOCKING)
   ========================================================================== */
.consent-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: min(392px, calc(100vw - 28px));
  pointer-events: auto;
}

.consent-card {
  width: 100%;
  background: rgba(12, 18, 34, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(245, 185, 56, 0.45);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(59, 130, 246, 0.22);
  animation: consentSlideFromRight 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="white"] .consent-card {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(37, 99, 235, 0.12);
}

@keyframes consentSlideFromRight {
  from { opacity: 0; transform: translateX(calc(100% + 44px)); }
  to { opacity: 1; transform: translateX(0); }
}

.consent-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
}

.consent-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(245, 185, 56, 0.48);
  flex-shrink: 0;
}

.consent-head-copy { min-width: 0; }

.consent-kicker {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #F5B938;
  margin-bottom: 2px;
}

:root[data-theme="white"] .consent-kicker { color: #1D4ED8; }

.consent-card h3 {
  margin: 0;
  font-size: 14.8px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
}

.consent-text {
  margin: 0 0 11px;
  font-size: 12.6px;
  line-height: 1.5;
  color: var(--text-2);
}

.consent-inline-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #60A5FA;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
:root[data-theme="white"] .consent-inline-link { color: #1D4ED8; }

.consent-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.consent-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.2px;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
}

.consent-check-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #2563EB;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-check-row small {
  display: inline;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
}

.consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.consent-accept-btn {
  padding: 7px 15px;
  height: 34px;
  font-size: 12.8px;
  font-weight: 800;
}

/* ---------------- TOAST (Bottom-Left so it never collides with Bottom-Right Consent Dock) ---------------- */
.toast {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 110;
  padding: 12px 18px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13.8px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  max-width: 400px;
}

body.exam-fullscreen-mode .toast {
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
}

/* ---------------- RESPONSIVE (1360px / 1120px / 820px / 720px) ---------------- */
@media (max-width: 1359px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid-single { grid-template-columns: minmax(0, 620px); }
}

@media (max-width: 1120px) {
  .topbar-inner { padding: 10px 20px; flex-wrap: wrap; gap: 10px; }
  .app-hub { order: 3; width: 100%; justify-content: center; }
  .info-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .exam-room { height: auto; max-height: none; min-height: 100vh; overflow: visible; }
  .exam-stage-scroll { overflow-y: visible; }
  .exam-room .exam-layout { grid-template-columns: 1fr; }
  .exam-telemetry-strip { order: 3; width: 100%; justify-content: space-between; }
  .et-box { flex: 1; min-width: 0; padding: 6px 6px; }
}

@media (max-width: 1060px) {
  .hero-content { max-width: 470px; padding: 36px 24px 26px 32px; }
  .hero-content h1 { font-size: clamp(26px, 3vw, 34px); }
}

@media (max-width: 960px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid-single { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hero-stage { min-height: 0; }
  .hero-upper {
    flex-direction: column;
    min-height: 0;
  }
  .hero-bg-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1376 / 692;
  }
  .hero-bg-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-bg-scrim {
    background: linear-gradient(180deg, transparent 74%, #030713 100%);
  }
  .hero-content {
    max-width: 100%;
    padding: 18px 24px 26px;
    background: #030713;
  }
  .hero-bottom-dock { padding: 14px 22px; }
}

@media (max-width: 720px) {
  html, body { font-size: 15px; }
  .shell { padding: 16px 14px 56px; }
  .hero-content { padding: 22px 18px; }
  .two-col-grid, .pricing-compare, .pay-actions, .footer-inner, .footer-cols, .admin-mail-grid { grid-template-columns: 1fr; }
  .info-cards-grid { grid-template-columns: 1fr; }
  .theme-label, .kbd-hint { display: none; }
  .tel-sep { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .exam-bottom-inner { flex-direction: column; align-items: stretch; }
  .exam-mid-tools { justify-content: center; }
  .consent-dock { right: 14px; bottom: 14px; left: 14px; width: auto; }
  .toast { left: 14px; right: 14px; bottom: 14px; max-width: none; }
}

/* ==========================================================================
   V6 — 2026 AWWWARDS LIQUID-GLASS AUTOMOTIVE LUXURY + NATIVE MOBILE WEB APP
   (Obsidian Spatial Glass · Ceramic Silk Light · Bento Architecture · iOS/Android Mobile)
   ========================================================================== */

:root,
:root[data-theme="dark"] {
  --bg: #03060E;
  --surface: rgba(11, 17, 33, 0.84);
  --surface-solid: #0B1121;
  --surface-2: rgba(18, 27, 50, 0.78);
  --surface-3: rgba(27, 40, 74, 0.85);
  --border: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #F8FAFC;
  --text-2: #B6C6DF;
  --text-3: #8397B8;
  --header-bg: rgba(4, 8, 18, 0.76);
  --glass-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.085);
  --shadow-2026: 0 2px 4px rgba(0, 0, 0, 0.25), 0 18px 46px -12px rgba(2, 6, 23, 0.72);
}

:root[data-theme="white"] {
  --bg: #F4F7FC;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #FFFFFF;
  --surface-2: #EEF3FA;
  --surface-3: #E2EAF6;
  --border: rgba(15, 23, 42, 0.085);
  --border-strong: rgba(15, 23, 42, 0.17);
  --text: #0A1122;
  --text-2: #334155;
  --text-3: #52627A;
  --header-bg: rgba(255, 255, 255, 0.84);
  --glass-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-2026: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 36px -10px rgba(15, 23, 42, 0.09);
}

/* 2026 Geometric Luxury Display Typography */
h1, h2, h3, h4,
.brand-copy strong,
.cat-card-title,
.info-card .ic-val,
.mode-card h3,
.exam-q-title,
.result-verdict {
  font-family: "Outfit", "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
}

/* Architectural Micro-Dot Technical Grid + Dual Aurora Canvas */
.ambient-bg {
  background:
    radial-gradient(ellipse 64% 460px at 14% -80px, rgba(37, 99, 235, 0.24), transparent 72%),
    radial-gradient(ellipse 50% 380px at 88% -60px, rgba(245, 158, 11, 0.14), transparent 68%),
    radial-gradient(ellipse 46% 360px at 50% 95%, rgba(6, 182, 212, 0.08), transparent 65%),
    radial-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
}

:root[data-theme="white"] .ambient-bg {
  background:
    radial-gradient(ellipse 70% 420px at 16% -100px, rgba(37, 99, 235, 0.11), transparent 70%),
    radial-gradient(ellipse 50% 320px at 88% -80px, rgba(245, 158, 11, 0.09), transparent 66%),
    radial-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
}

/* Floating Spatial Glass Topbar */
.topbar {
  background: var(--header-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.18);
}
:root[data-theme="white"] .topbar {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.app-hub {
  padding: 4px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}
:root[data-theme="white"] .app-hub {
  background: #E9EFF9;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.hub-btn {
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.hub-btn.active {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 55%, #0EA5E9 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Magnetic Luminous Shimmer Buttons */
.btn-primary, .btn-pro {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  letter-spacing: -0.005em;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-primary::after, .btn-pro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.26) 48%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn-primary:hover::after, .btn-pro:hover::after {
  transform: translateX(130%);
}
.btn-primary:active, .btn-pro:active, .btn-outline:active, .btn-hero-glass:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 60%, #0EA5E9 100%);
  border: 1px solid rgba(125, 211, 252, 0.38);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-pro {
  background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 52%, #F59E0B 100%);
  color: #090D1A;
  border: 1px solid rgba(254, 240, 138, 0.72);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Flagship 2026 Automotive Showroom Hero */
.hero-stage {
  border-radius: 28px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 28px 74px -14px rgba(2, 6, 23, 0.78),
    0 0 0 1px rgba(245, 185, 56, 0.08);
}
.hero-stage::before {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #06B6D4 18%, #3B82F6 46%, #F59E0B 80%, transparent 100%);
}
.hero-content h1 {
  font-size: clamp(34px, 3.3vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFFFFF 15%, #D3E4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55));
}
.hero-desc {
  color: #C7D7F2;
  font-weight: 400;
}
.hero-bottom-dock {
  background: rgba(5, 9, 22, 0.84);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.hero-fleet-tags span {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.30);
  backdrop-filter: blur(8px);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.hero-fleet-tags span:hover {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(147, 197, 253, 0.55);
}

/* 2026 Bento Category Showcase (Distinct Section Color DNA + Glass Elevation) */
.cat-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--glass-sheen), var(--shadow-2026);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.24s ease, background 0.22s ease;
}
.cat-card::after {
  content: "";
  position: absolute;
  top: -36px;
  left: -36px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.26s ease;
  pointer-events: none;
}
.cat-card--redobandire::after {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
}
.cat-card--obtinere::after {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.20) 0%, transparent 70%);
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: var(--glass-sheen), 0 22px 48px -12px rgba(37, 99, 235, 0.26);
}
.cat-card:hover::after,
.cat-card.active::after {
  opacity: 1;
}
.cat-card.active {
  border-color: rgba(59, 130, 246, 0.78);
  background: linear-gradient(155deg, rgba(37, 99, 235, 0.16) 0%, var(--surface) 62%);
  box-shadow: var(--glass-sheen), 0 0 0 1px rgba(59, 130, 246, 0.55), 0 20px 48px -10px rgba(37, 99, 235, 0.30);
}
:root[data-theme="white"] .cat-card.active {
  background: linear-gradient(155deg, rgba(37, 99, 235, 0.08) 0%, #FFFFFF 64%);
  box-shadow: 0 0 0 1.5px #2563EB, 0 18px 40px -10px rgba(37, 99, 235, 0.18);
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(96, 165, 250, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.cat-card--obtinere .cat-icon {
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.20), rgba(37, 99, 235, 0.08));
  border-color: rgba(34, 211, 238, 0.30);
  color: #38BDF8;
}
:root[data-theme="white"] .cat-card--obtinere .cat-icon { color: #0284C7; }

.cat-card--redobandire .cat-icon {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.08));
  border-color: rgba(251, 191, 36, 0.36);
}
.cat-card.active .cat-icon {
  background: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.cat-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: linear-gradient(135deg, #2563EB, #0EA5E9);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.cat-active-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 6px #FFFFFF;
}

.cat-meta-pill {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

/* 2026 Floating Segmented Glass Pill Workspace Stepper */
.step-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--glass-sheen), var(--shadow-2026);
  margin-bottom: 30px;
}
.step-tab {
  padding: 11px 18px;
  border-radius: 13px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-2);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-tab:hover {
  color: var(--text);
  background: var(--accent-soft);
}
.step-tab.active {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 60%, #0EA5E9 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.step-tab.active::after { display: none; }
.step-tab.active .step-num { color: rgba(255, 255, 255, 0.82); }
.step-tab.active .step-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* 2026 Elevated Glass Bento KPI Cards & Surface Cards */
.info-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--glass-sheen), var(--shadow-2026);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}
.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.info-card:nth-child(1)::before { background: linear-gradient(90deg, #3B82F6, #06B6D4); height: 3px; opacity: 0.9; }
.info-card:nth-child(2)::before { background: linear-gradient(90deg, #10B981, #34D399); height: 3px; opacity: 0.9; }
.info-card:nth-child(3)::before { background: linear-gradient(90deg, #8B5CF6, #60A5FA); height: 3px; opacity: 0.9; }
.info-card:nth-child(4)::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); height: 3px; opacity: 0.9; }
.info-card .ic-val {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.surface-card, .q-card, .case-card, .mode-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--glass-sheen), var(--shadow-2026);
}

.chapter-row {
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.chapter-row:hover {
  transform: translateX(4px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

/* Luxury Metallic Gold-Foil PRO Upgrade Card */
.mini-pro-box {
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background:
    radial-gradient(circle at 95% 15%, rgba(251, 191, 36, 0.24), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 27, 16, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.26), 0 14px 32px rgba(0, 0, 0, 0.28);
}
:root[data-theme="white"] .mini-pro-box {
  background:
    radial-gradient(circle at 95% 15%, rgba(245, 158, 11, 0.18), transparent 58%),
    linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: rgba(217, 119, 6, 0.42);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.10);
}

.mode-card {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
.mode-card:hover { transform: translateY(-4px); }
.mode-card.featured {
  border-color: rgba(59, 130, 246, 0.65);
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.14) 0%, var(--surface) 60%);
  box-shadow: var(--glass-sheen), 0 0 0 1px rgba(59, 130, 246, 0.4), 0 22px 48px -12px rgba(37, 99, 235, 0.28);
}

/* Native-Feel Mobile Bottom Navigation Dock (Hidden on Desktop, Visible on Mobile <= 860px) */
.mobile-bottom-nav {
  display: none;
}
.exam-map-mobile-btn {
  display: none;
}

/* ==========================================================================
   MOBILE-FIRST WEB APP RESPONSIVENESS (<= 860px & 390px iPhone/Android)
   ========================================================================== */
@media (max-width: 900px) {
  .exam-map-mobile-btn {
    display: inline-flex;
    height: 36px;
    padding: 0 11px;
    font-size: 12.5px;
    gap: 6px;
  }
  .exam-room .exam-sidebar {
    display: none;
  }
  .exam-room.exam-sidebar-open .exam-sidebar {
    display: flex;
    order: -1;
    animation: consentSlideFromRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (max-width: 860px) {
  body {
    font-size: 15px;
    padding-bottom: 76px;
  }
  body.exam-fullscreen-mode {
    padding-bottom: 0;
  }

  /* Sleek Compact Mobile Topbar + All 3 Section Pills Visible */
  .topbar-inner {
    padding: 8px 12px 8px;
    min-height: 0;
    gap: 8px 8px;
  }
  .brand { gap: 8px; }
  .brand-logo-wrap { padding: 2px 4px; border-radius: 8px; }
  .brand-logo-img { height: 30px; }
  .brand-copy strong { font-size: 13px; letter-spacing: 0.03em; }
  .brand-copy small { display: none; }

  .top-actions { gap: 5px; margin-left: auto; }
  .quota-pill { display: none; }
  .icon-btn { height: 32px; width: 32px; padding: 0; justify-content: center; border-radius: 9px; }
  .theme-label { display: none; }
  #accountBtn { height: 32px; padding: 0 10px; font-size: 12px; border-radius: 9px; }
  #upgradeBtn { height: 32px; padding: 0 10px; font-size: 11.5px; gap: 4px; border-radius: 9px; }
  #upgradeBtn span { font-size: 0; }
  #upgradeBtn span::after { content: "PRO"; font-size: 12px; font-weight: 800; letter-spacing: 0.03em; }

  .app-hub {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    overflow: visible;
  }
  .hub-btn {
    justify-content: center;
    padding: 7px 5px;
    font-size: 11.5px;
    gap: 4px;
    min-width: 0;
  }
  .hub-btn svg { display: none; }
  .hub-count { font-size: 10px; padding: 1px 5px; }

  /* Mobile Shell & Crisp Uncropped Hero */
  .shell {
    padding: 14px 14px 44px;
  }
  .hero-stage {
    border-radius: 20px;
    margin-bottom: 20px;
  }
  .hero-content {
    padding: 18px 18px 20px;
  }
  .hero-content h1 {
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.12;
  }
  .hero-desc {
    font-size: 14.5px;
    margin: 10px 0 18px;
  }
  .hero-cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-hero-glass {
    width: 100%;
    padding: 13px 16px;
    font-size: 14.5px;
  }
  .hero-bottom-dock {
    padding: 13px 16px;
    gap: 12px;
  }
  .hero-telemetry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px 14px;
  }
  .tel-sep { display: none; }
  .tel-item strong { font-size: 14.5px; }
  .tel-item span { font-size: 11px; }
  .hero-dock-fleet { width: 100%; gap: 8px; }

  /* Hide desktop step tabs on mobile (replaced by Native Floating Bottom Tab Bar!) */
  .step-nav {
    display: none;
  }

  /* Crisp Mobile Cards & Grids */
  .cat-card { padding: 15px 16px; border-radius: 16px; }
  .cat-icon { width: 42px; height: 42px; border-radius: 11px; }
  .cat-card-title { font-size: 16px; }
  .cat-card-desc { font-size: 13px; }
  .surface-card, .q-card, .case-card, .mode-card { padding: 18px 16px; border-radius: 16px; }
  .panel-header h2 { font-size: 21px; }
  .info-card { padding: 16px 18px; border-radius: 16px; }
  .info-card .ic-val { font-size: 20px; }
  .mini-pro-box { flex-direction: column; align-items: stretch; }
  .mini-pro-box .btn-pro { width: 100%; }

  /* NATIVE FLOATING GLASS MOBILE BOTTOM TAB BAR */
  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    padding: 6px 6px;
    border-radius: 20px;
    background: rgba(8, 13, 27, 0.88);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }
  :root[data-theme="white"] .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  body.exam-fullscreen-mode .mobile-bottom-nav {
    display: none !important;
  }

  .mob-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 2px;
    border-radius: 14px;
    color: var(--text-2);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.1;
    transition: all 0.18s ease;
  }
  .mob-nav-btn.active {
    color: #FFFFFF;
    background: rgba(59, 130, 246, 0.22);
  }
  :root[data-theme="white"] .mob-nav-btn.active {
    color: #1D4ED8;
    background: rgba(37, 99, 235, 0.12);
  }
  .mob-nav-btn.mob-nav-primary {
    background: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
  }
  .mob-nav-btn.mob-nav-primary.active {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
    color: #FFFFFF;
  }

  /* Compact Consent Card sits cleanly ABOVE the mobile bottom bar (ZERO overlap!) */
  .consent-dock {
    left: 12px;
    right: 12px;
    bottom: 84px;
    width: auto;
  }
  .toast {
    left: 12px;
    right: 12px;
    bottom: 84px;
    max-width: none;
  }

  .site-footer {
    padding-bottom: 104px;
  }

  /* THUMB-FIRST MOBILE EXAM TERMINAL */
  .exam-topbar {
    padding: 10px 12px;
    gap: 8px;
  }
  .exam-brand-logo img { height: 28px; }
  .exam-room-kicker { display: none; }
  .exam-mode-row strong { font-size: 13.5px; }
  .exam-q-badge { font-size: 11px; padding: 2px 8px; }
  .exam-topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .exam-clock-wrap { padding: 4px 8px; gap: 4px; flex-shrink: 0; }
  .exam-clock-wrap svg { width: 14px; height: 14px; }
  .exam-clock-wrap .hud-timer { font-size: 13.5px; letter-spacing: 0.02em; }
  .exam-map-mobile-btn { height: 32px; width: auto; padding: 0 8px; font-size: 11.5px; gap: 4px; flex-shrink: 0; }
  .exam-map-mobile-btn svg { width: 13px; height: 13px; }
  .exam-theme-btn { width: 32px; height: 32px; flex-shrink: 0; }
  .exam-topbar-actions .btn-sm { height: 32px; padding: 0 9px; font-size: 11.5px; flex-shrink: 0; }
  .exam-telemetry-strip {
    gap: 4px;
    padding: 4px;
    border-radius: 11px;
  }
  .et-box { padding: 4px 3px; border-radius: 8px; }
  .et-label { font-size: 8.5px; letter-spacing: 0.03em; }
  .et-val { font-size: 14.5px; }

  .exam-stage-scroll {
    padding: 12px 12px 16px;
  }
  .exam-room .exam-question-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .exam-q-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    gap: 8px;
  }
  .exam-q-title {
    font-size: 18.5px;
    line-height: 1.42;
    margin-bottom: 18px;
  }
  .exam-opt-list { gap: 10px; }
  .exam-opt-btn {
    padding: 13px 14px;
    gap: 12px;
    font-size: 14.8px;
    border-radius: 13px;
  }
  .exam-opt-btn .opt-letter {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 9px;
  }

  .exam-bottom-bar {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .exam-bottom-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .exam-mid-tools {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    order: 2;
  }
  .exam-bottom-bar .btn-lg {
    padding: 11px 10px;
    font-size: 13px;
    border-radius: 11px;
    width: 100%;
  }
  body.exam-fullscreen-mode .toast {
    bottom: 126px;
    left: 12px;
    right: 12px;
    transform: none;
  }
}

/* ==========================================================================
   V7 — 2026 E-LEARNING PRO WEB APP ARCHITECTURE (FIXED SIDEBAR + DASHBOARD)
   Radical structural transformation: Fixed Left App Sidebar, Split Dashboard
   with Live SVG Circular Progress Ring, Per-Category Vibrant Color DNA,
   and Seamless Mobile Slide-Out Drawer + Native Bottom Navigation Bar.
   ========================================================================== */

:root {
  --sidebar-w: 286px;
}

/* Fullscreen Exam Mode cleanly resets sidebar & dashboard bento layout */
body.exam-fullscreen-mode .app-sidebar,
body.exam-fullscreen-mode .sidebar-scrim,
body.exam-fullscreen-mode .mobile-program-strip,
body.exam-fullscreen-mode .dash-bento-row {
  display: none !important;
}
body.exam-fullscreen-mode .app-workspace {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Keep floating toast centered over workspace (never overlapping sidebar) */
.toast {
  left: calc(var(--sidebar-w) + (100% - var(--sidebar-w)) / 2);
  transform: translateX(-50%);
}
body.exam-fullscreen-mode .toast {
  left: 50%;
}

/* --- FIXED LEFT APP SIDEBAR (Desktop) --- */
.sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
body.sidebar-open .sidebar-scrim {
  opacity: 1;
  pointer-events: auto;
}
body.sidebar-open .mobile-bottom-nav {
  opacity: 0;
  pointer-events: none;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: #070C18;
  border-right: 1px solid var(--border);
  box-shadow: 6px 0 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-theme="white"] .app-sidebar {
  background: #FFFFFF;
  border-right: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 4px 0 28px rgba(15, 23, 42, 0.05);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  min-height: 70px;
}
.sidebar-close-btn {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
}

.sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-sec-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding: 8px 10px 4px;
  text-transform: uppercase;
}

/* Vertical Sidebar 3-Program Selector */
.sidebar-hub.app-hub {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 8px;
}

.sidebar-hub .hub-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  border: 1px solid transparent;
  background: transparent;
}
.sidebar-hub .hub-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.sidebar-hub .hub-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--surface-2);
}
.hub-tone-obtinere .hub-ico { color: #38BDF8; background: rgba(56, 189, 248, 0.14); }
.hub-tone-redobandire .hub-ico { color: #F59E0B; background: rgba(245, 158, 11, 0.15); }
.hub-tone-atestate .hub-ico { color: #818CF8; background: rgba(129, 140, 248, 0.15); }
:root[data-theme="white"] .hub-tone-obtinere .hub-ico { color: #0284C7; }
:root[data-theme="white"] .hub-tone-redobandire .hub-ico { color: #D97706; }
:root[data-theme="white"] .hub-tone-atestate .hub-ico { color: #4F46E5; }

.sidebar-hub .hub-lbl { flex: 1; text-align: left; }
.sidebar-hub .hub-count {
  margin-left: auto;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
}

.sidebar-hub .hub-btn.active {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 60%, #0EA5E9 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.36);
}
.sidebar-hub .hub-btn.hub-tone-redobandire.active {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}
.sidebar-hub .hub-btn.hub-tone-atestate.active {
  background: linear-gradient(135deg, #4F46E5 0%, #2563EB 60%, #0EA5E9 100%);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.38);
}
.sidebar-hub .hub-btn.active .hub-ico {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}
.sidebar-hub .hub-btn.active .hub-count {
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

/* Vertical Sidebar Workspace Nav (#stepNav) */
.sidebar-nav.step-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.sidebar-nav .step-tab {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14.2px;
  font-weight: 600;
  color: var(--text-2);
  justify-content: flex-start;
  gap: 11px;
  margin-left: 0;
}
.sidebar-nav .step-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.85;
}
.sidebar-nav .step-label { flex: 1; text-align: left; }
.sidebar-nav .step-num,
.sidebar-nav .step-pill { margin-left: auto; }
.sidebar-nav .step-pill-live {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.34);
  font-size: 10px;
  letter-spacing: 0.06em;
}
:root[data-theme="white"] .sidebar-nav .step-pill-live {
  color: #059669;
  background: #ECFDF5;
}

.sidebar-nav .step-tab:hover {
  background: var(--surface-2);
  color: var(--text);
}
.sidebar-nav .step-tab.active {
  background: rgba(59, 130, 246, 0.16);
  color: #FFFFFF;
  box-shadow: inset 3px 0 0 #3B82F6;
}
:root[data-theme="white"] .sidebar-nav .step-tab.active {
  background: #EFF6FF;
  color: #1D4ED8;
  box-shadow: inset 3px 0 0 #2563EB;
}
.sidebar-nav .step-tab.active .step-ico { opacity: 1; color: #60A5FA; }
:root[data-theme="white"] .sidebar-nav .step-tab.active .step-ico { color: #2563EB; }
.sidebar-nav .step-tab.active .step-num,
.sidebar-nav .step-tab.active .step-pill {
  background: rgba(59, 130, 246, 0.24);
  color: #93C5FD;
}
:root[data-theme="white"] .sidebar-nav .step-tab.active .step-num,
:root[data-theme="white"] .sidebar-nav .step-tab.active .step-pill {
  background: #DBEAFE;
  color: #1D4ED8;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 6px;
}

/* Sidebar Footer Gold PRO Card */
.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--border);
}
.sidebar-pro-card {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  background:
    radial-gradient(circle at 95% 5%, rgba(251, 191, 36, 0.24), transparent 60%),
    linear-gradient(145deg, rgba(16, 24, 44, 0.96), rgba(32, 26, 14, 0.92));
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.25);
}
:root[data-theme="white"] .sidebar-pro-card {
  background:
    radial-gradient(circle at 95% 5%, rgba(245, 158, 11, 0.20), transparent 60%),
    linear-gradient(145deg, #FFFBEB, #FEF3C7);
  border-color: rgba(217, 119, 6, 0.36);
}
.sidebar-pro-card.is-pro-active {
  border-color: rgba(34, 197, 94, 0.48);
  background: linear-gradient(145deg, rgba(16, 46, 30, 0.86), rgba(11, 17, 33, 0.95));
}
.sidebar-pro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.sidebar-pro-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 800;
  color: #FBBF24;
  letter-spacing: 0.06em;
}
:root[data-theme="white"] .sidebar-pro-badge { color: #B45309; }
.sidebar-pro-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}
.sidebar-pro-copy {
  margin: 0 0 11px;
  font-size: 12.2px;
  line-height: 1.45;
  color: var(--text-2);
}

/* --- RIGHT MAIN APP WORKSPACE --- */
.app-workspace {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.app-topbar .topbar-inner {
  padding: 0 clamp(18px, 2.6vw, 40px);
  min-height: 70px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sidebar-menu-btn,
.mobile-only-brand,
.mobile-program-strip {
  display: none;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.bc-pill {
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.26);
  color: var(--accent);
  white-space: nowrap;
}
.bc-sep { color: var(--text-3); font-weight: 600; }
.bc-cat {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-canvas.shell {
  padding: 24px clamp(18px, 2.6vw, 40px) 68px;
  flex: 1;
}

/* --- BRAND NEW 2026 SPLIT DASHBOARD TOP BENTO ROW --- */
.dash-bento-row {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 28px;
}

.dash-hero.hero-stage {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.dash-hero .hero-upper {
  flex: 1;
  min-height: 368px;
}
.dash-hero .hero-content {
  max-width: 490px;
  padding: 36px 28px 32px 36px;
}
.dash-hero .hero-content h1 {
  font-size: clamp(28px, 2.5vw, 42px);
}
.dash-hero .hero-desc {
  font-size: 15.5px;
  margin: 12px 0 22px;
}
.dash-hero .hero-bottom-dock {
  padding: 13px 28px;
}

/* LIVE CIRCULAR READINESS & PROGRESS RING CARD */
.dash-ring-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 26px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--glass-sheen), var(--shadow-2026);
  position: relative;
  overflow: hidden;
}
.dash-ring-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38BDF8 0%, #3B82F6 50%, #10B981 100%);
}

.drc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.drc-live-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.36);
  color: #34D399;
}
:root[data-theme="white"] .drc-live-pill {
  background: #ECFDF5;
  color: #059669;
}

.drc-ring-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.drc-ring-box {
  position: relative;
  width: 144px;
  height: 144px;
  display: grid;
  place-items: center;
}
.drc-svg {
  transform: rotate(-90deg);
  filter: drop-shadow(0 6px 18px rgba(59, 130, 246, 0.32));
}
.drc-track { stroke: var(--surface-3); }
.drc-arc { transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1); }

.drc-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.drc-ring-center strong {
  font-family: "Outfit", sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.drc-ring-center span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  margin-top: 2px;
}
.drc-ring-caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
  max-width: 280px;
}

.drc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.drc-metric {
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid #3B82F6;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drc-m-blue { border-left-color: #3B82F6; }
.drc-m-emerald { border-left-color: #10B981; }
.drc-m-violet { border-left-color: #8B5CF6; }
.drc-m-amber { border-left-color: #F59E0B; }

.drc-m-lbl {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drc-metric strong {
  font-family: "Outfit", sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- PER-CATEGORY VIBRANT 2026 COLOR DNA (14 Distinct Accent Tones!) --- */
.cat-card { --cat-accent: #3B82F6; }
.cat-tone-cat_a { --cat-accent: #F97316; }
.cat-tone-cat_b { --cat-accent: #3B82F6; }
.cat-tone-cat_c { --cat-accent: #06B6D4; }
.cat-tone-cat_d { --cat-accent: #8B5CF6; }
.cat-tone-cat_e { --cat-accent: #6366F1; }
.cat-tone-cat_tr { --cat-accent: #10B981; }
.cat-tone-redobandire { --cat-accent: #F59E0B; }
.cat-tone-arr_cpi_marfa { --cat-accent: #2563EB; }
.cat-tone-arr_cpc_marfa { --cat-accent: #0EA5E9; }
.cat-tone-arr_cpi_persoane { --cat-accent: #A855F7; }
.cat-tone-arr_adr { --cat-accent: #EF4444; }
.cat-tone-arr_taxi { --cat-accent: #EAB308; }
.cat-tone-arr_agabaritic { --cat-accent: #14B8A6; }
.cat-tone-arr_manager { --cat-accent: #EC4899; }

.cat-card::before {
  height: 3px;
  background: linear-gradient(90deg, var(--cat-accent), color-mix(in srgb, var(--cat-accent) 40%, transparent));
  opacity: 0.72;
}
.cat-card::after {
  background: radial-gradient(circle, color-mix(in srgb, var(--cat-accent) 26%, transparent) 0%, transparent 70%) !important;
}
.cat-card .cat-icon {
  background: color-mix(in srgb, var(--cat-accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--cat-accent) 42%, transparent);
  color: var(--cat-accent);
}
.cat-card:hover {
  border-color: color-mix(in srgb, var(--cat-accent) 62%, transparent);
  box-shadow: var(--glass-sheen), 0 18px 42px -12px color-mix(in srgb, var(--cat-accent) 34%, transparent);
}
.cat-card.active {
  border-color: var(--cat-accent);
  background: linear-gradient(155deg, color-mix(in srgb, var(--cat-accent) 16%, transparent) 0%, var(--surface) 64%);
  box-shadow: var(--glass-sheen), 0 0 0 1.5px var(--cat-accent), 0 20px 44px -10px color-mix(in srgb, var(--cat-accent) 36%, transparent);
}
:root[data-theme="white"] .cat-card.active {
  background: linear-gradient(155deg, color-mix(in srgb, var(--cat-accent) 10%, transparent) 0%, #FFFFFF 64%);
}
.cat-card.active .cat-icon {
  background: linear-gradient(135deg, var(--cat-accent), color-mix(in srgb, var(--cat-accent) 72%, #FFFFFF));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--cat-accent) 48%, transparent);
}
.cat-card .cat-active-badge {
  background: var(--cat-accent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--cat-accent) 45%, transparent);
}

/* Balanced Grid inside the Sidebar Workspace */
.app-workspace .cat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1580px) {
  .app-workspace .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1320px) {
  .dash-bento-row { grid-template-columns: 1fr; }
  .dash-ring-card { flex-direction: row; align-items: center; gap: 24px; }
  .drc-head { display: none; }
  .drc-metrics-grid { flex: 1; }
}

/* --- TABLET & MOBILE RESPONSIVE (<= 1080px: Slide-Out App Drawer) --- */
@media (max-width: 1080px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: min(300px, 84vw);
  }
  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }
  .sidebar-close-btn,
  .sidebar-menu-btn,
  .mobile-only-brand {
    display: inline-flex;
  }
  .topbar-breadcrumb { display: none; }

  .app-workspace {
    margin-left: 0;
    width: 100%;
  }
  .toast { left: 50%; }
  .app-workspace .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  /* Keep sidebar-nav & sidebar-hub in exact top-to-bottom order with crisp SVG icons inside mobile drawer */
  .sidebar-nav.step-nav { display: flex !important; }
  .sidebar-hub.app-hub {
    order: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .sidebar-hub .hub-ico svg {
    display: block !important;
  }

  .mobile-program-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 0 12px 9px;
  }
  .mob-prog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 6px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    white-space: nowrap;
  }
  .mob-prog-btn span {
    font-size: 10.5px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
  }
  .mob-prog-btn.active {
    background: linear-gradient(135deg, #2563EB, #0EA5E9);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.36);
  }
  .mob-prog-btn.active span {
    background: rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
  }

  .app-topbar .topbar-inner {
    padding: 8px 10px;
    min-height: 54px;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .topbar-left {
    gap: 7px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .topbar-actions {
    flex-shrink: 0;
    gap: 5px;
  }
  .sidebar-menu-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  .mobile-only-brand {
    min-width: 0;
    gap: 7px;
    overflow: hidden;
  }
  .mobile-only-brand .brand-logo-img { height: 28px; flex-shrink: 0; }
  .mobile-only-brand .brand-copy { min-width: 0; overflow: hidden; }
  .mobile-only-brand .brand-copy strong {
    font-size: 11.5px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dash-ring-card {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
    border-radius: 20px;
  }
  .drc-head { display: flex; }
  .app-workspace .cat-grid { grid-template-columns: 1fr; }
}
