/* ===================================================================
   TRAINQUANTS - QUANTIT ARENA INSTITUTIONAL DESIGN SYSTEM
   World-Class $10,000 Quantitative Trading Battleground Architecture
   Tokens: Linear / Stripe / Apple Fintech Craft
   =================================================================== */

:root {
  /* Surface Scale (Dark Canvas) */
  --qt-canvas: #000000;
  --qt-surface-1: rgba(14, 18, 25, 0.72);
  --qt-surface-2: rgba(22, 28, 38, 0.78);
  --qt-surface-3: rgba(30, 38, 52, 0.85);
  --qt-surface-hover: rgba(35, 45, 62, 0.92);
  --qt-surface-sunken: rgba(5, 7, 11, 0.65);

  /* Hairlines & Borders */
  --qt-hairline: 1px solid rgba(255, 255, 255, 0.08);
  --qt-hairline-subtle: 1px solid rgba(255, 255, 255, 0.04);
  --qt-hairline-bright: 1px solid rgba(255, 255, 255, 0.16);

  /* High-Signal Chromatic Accents */
  --qt-cyan: #00e5ff;
  --qt-cyan-glow: rgba(0, 229, 255, 0.22);
  --qt-gold: #fbbf24;
  --qt-gold-glow: rgba(251, 191, 36, 0.22);
  --qt-emerald: #10b981;
  --qt-emerald-glow: rgba(16, 185, 129, 0.22);
  --qt-rose: #f43f5e;
  --qt-blue: #2997ff;
  --qt-indigo: #6366f1;

  /* Ink Scale */
  --qt-ink: #f8fafc;
  --qt-ink-muted: #94a3b8;
  --qt-ink-subtle: #64748b;
  --qt-ink-faint: #475569;

  /* Elevation Shadows (Tone Steps) */
  --qt-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --qt-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --qt-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --qt-shadow-cyan: 0 0 24px rgba(0, 229, 255, 0.18);
  --qt-shadow-gold: 0 0 24px rgba(251, 191, 36, 0.18);

  /* Fonts */
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

/* Light Mode Institutional Tokens */
:root[data-theme="light"],
html.light-mode :root,
html.light-mode {
  --qt-canvas: #fafafa;
  --qt-surface-1: rgba(255, 255, 255, 0.88);
  --qt-surface-2: rgba(248, 250, 252, 0.92);
  --qt-surface-3: rgba(241, 245, 249, 0.95);
  --qt-surface-hover: rgba(235, 240, 247, 0.98);
  --qt-surface-sunken: rgba(241, 245, 249, 0.85);

  --qt-hairline: 1px solid rgba(0, 0, 0, 0.08);
  --qt-hairline-subtle: 1px solid rgba(0, 0, 0, 0.04);
  --qt-hairline-bright: 1px solid rgba(0, 0, 0, 0.14);

  --qt-ink: #09090b;
  --qt-ink-muted: #475569;
  --qt-ink-subtle: #64748b;
  --qt-ink-faint: #94a3b8;

  --qt-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --qt-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --qt-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --qt-shadow-cyan: 0 0 20px rgba(0, 168, 204, 0.15);
  --qt-shadow-gold: 0 0 20px rgba(217, 119, 6, 0.15);
}

/* ===================================================================
   BASE CONTAINER & ATMOSPHERE
   =================================================================== */
body.qt-body {
  background-color: var(--qt-canvas);
  color: var(--qt-ink);
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

.quantit-arena-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 100px 24px 80px 24px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media (min-width: 1920px) {
  .quantit-arena-container {
    max-width: 1540px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ===================================================================
   HERO COMMAND CENTER ($10k CRAFT)
   =================================================================== */
.quantit-hero-header {
  text-align: center;
  max-width: 980px;
  margin: 16px auto 52px auto;
  position: relative;
}

.quantit-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--qt-surface-2);
  border: var(--qt-hairline);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--qt-cyan);
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: var(--qt-shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.quantit-kicker-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.4);
}

.quantit-pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--qt-emerald);
  box-shadow: 0 0 8px var(--qt-emerald);
}

.quantit-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--qt-emerald);
  animation: quantitPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes quantitPing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.quantit-hero-title {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 880;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--qt-ink);
  margin: 0 0 20px 0;
  text-wrap: balance;
}

.quantit-hero-title-accent {
  color: var(--qt-ink);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 6px;
}

html.light-mode .quantit-hero-title-accent,
[data-theme="light"] .quantit-hero-title-accent {
  color: var(--qt-ink);
  text-decoration-color: rgba(0, 0, 0, 0.2);
}

.quantit-hero-subtitle {
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 460;
  line-height: 1.58;
  color: var(--qt-ink-muted);
  max-width: 820px;
  margin: 0 auto 34px auto;
  text-wrap: balance;
}

/* Hero CTA Cluster */
.quantit-cta-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Institutional Primary Button (Linear / Vercel High-Contrast Ink) */
.btn-quantit-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #ffffff;
  color: #09090b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  position: relative;
}

.btn-quantit-primary:hover {
  transform: translateY(-2px);
  background: #f4f4f5;
  color: #000000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 #ffffff;
}

.btn-quantit-primary:active {
  transform: translateY(0) scale(0.985);
}

html.light-mode .btn-quantit-primary,
[data-theme="light"] .btn-quantit-primary {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #18181b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

html.light-mode .btn-quantit-primary:hover,
[data-theme="light"] .btn-quantit-primary:hover {
  background: #18181b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* Institutional Secondary Button (High-Craft Glass Surface) */
.btn-quantit-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--qt-surface-2);
  color: var(--qt-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--qt-shadow-sm);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn-quantit-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
  background: var(--qt-surface-hover);
  color: #ffffff;
  box-shadow: var(--qt-shadow-md);
}

.btn-quantit-secondary:active {
  transform: translateY(0) scale(0.985);
}

html.light-mode .btn-quantit-secondary,
[data-theme="light"] .btn-quantit-secondary {
  background: #ffffff;
  color: #09090b;
  border: 1px solid #e4e4e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

html.light-mode .btn-quantit-secondary:hover,
[data-theme="light"] .btn-quantit-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-quantit-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--qt-surface-1);
  color: var(--qt-ink-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  border: var(--qt-hairline);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-quantit-ghost:hover {
  transform: translateY(-1px);
  color: var(--qt-ink);
  border-color: var(--qt-hairline-bright);
  background: var(--qt-surface-2);
}

/* ===================================================================
   SPOTLIGHT DUAL STAGE (BENTO HERO GRID)
   =================================================================== */
.quantit-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

@media (max-width: 980px) {
  .quantit-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.quantit-stage-card {
  background: var(--qt-surface-1);
  border: var(--qt-hairline);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--qt-shadow-md);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}

.quantit-stage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.8;
}

.quantit-stage-card.live-sprint::before,
.quantit-stage-card.grand-cup::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.quantit-stage-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--qt-shadow-lg);
  border-color: var(--qt-hairline-bright);
}

.quantit-stage-card.live-sprint:hover,
.quantit-stage-card.grand-cup:hover {
  border-color: var(--qt-hairline-bright);
}

.quantit-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.quantit-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quantit-status-chip.live {
  background: rgba(16, 185, 129, 0.12);
  color: var(--qt-emerald);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.quantit-status-chip.enrolling {
  background: var(--qt-surface-2);
  color: var(--qt-ink);
  border: var(--qt-hairline-bright);
}

.quantit-countdown-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--qt-ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--qt-surface-sunken);
  padding: 4px 10px;
  border-radius: 6px;
  border: var(--qt-hairline-subtle);
}

.quantit-stage-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--qt-ink);
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.quantit-stage-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--qt-ink-muted);
  margin: 0 0 20px 0;
}

/* Micro Spread Animation Canvas */
.quantit-spread-preview {
  background: var(--qt-surface-sunken);
  border: var(--qt-hairline-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 22px;
}

.quantit-spread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.quantit-spread-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--qt-cyan);
  font-weight: 700;
}

.quantit-spread-zscore {
  color: var(--qt-emerald);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

#spreadCanvas {
  width: 100%;
  display: block;
  border-radius: 4px;
}

/* Parameter Metrics Grid */
.quantit-stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.quantit-metric-box {
  background: var(--qt-surface-sunken);
  border: var(--qt-hairline-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quantit-metric-box .lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--qt-ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quantit-metric-box .val {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.quantit-metric-box .val.gold { color: var(--qt-gold); }
.quantit-metric-box .val.emerald { color: var(--qt-emerald); }
.quantit-metric-box .val.rose { color: var(--qt-rose); }
.quantit-metric-box .val.cyan { color: var(--qt-cyan); }

/* Recruiter Strip inside Grand Cup */
.quantit-recruiter-strip {
  background: var(--qt-surface-sunken);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.quantit-recruiter-label {
  color: var(--qt-ink-subtle);
  font-weight: 600;
}

.quantit-recruiter-desks {
  font-family: var(--font-mono);
  color: var(--qt-gold);
  font-weight: 750;
}

/* Stage Card Footer */
.quantit-stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: var(--qt-hairline);
  flex-wrap: wrap;
  gap: 14px;
}

.quantit-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantit-avatar-stack {
  display: flex;
  align-items: center;
}

.quantit-avatar-stack span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  border: 2px solid var(--qt-surface-1);
  margin-left: -7px;
}

.quantit-avatar-stack span:first-child {
  margin-left: 0;
}

.av-1 { background: #0284c7; }
.av-2 { background: #6366f1; }
.av-3 { background: #10b981; }
.av-4 { background: #d97706; }

.quantit-social-proof-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--qt-ink-muted);
}

.btn-stage-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-stage-action.primary,
.btn-stage-action.cyan {
  background: #ffffff;
  color: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-stage-action.primary:hover,
.btn-stage-action.cyan:hover {
  transform: translateY(-2px);
  background: #f4f4f5;
  color: #000000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-stage-action.secondary,
.btn-stage-action.gold {
  background: var(--qt-surface-2);
  color: var(--qt-ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--qt-shadow-sm);
}

.btn-stage-action.secondary:hover,
.btn-stage-action.gold:hover {
  transform: translateY(-2px);
  background: var(--qt-surface-hover);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow: var(--qt-shadow-md);
}

html.light-mode .btn-stage-action.primary,
html.light-mode .btn-stage-action.cyan,
[data-theme="light"] .btn-stage-action.primary,
[data-theme="light"] .btn-stage-action.cyan {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #18181b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

html.light-mode .btn-stage-action.primary:hover,
html.light-mode .btn-stage-action.cyan:hover,
[data-theme="light"] .btn-stage-action.primary:hover,
[data-theme="light"] .btn-stage-action.cyan:hover {
  background: #18181b;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

html.light-mode .btn-stage-action.secondary,
html.light-mode .btn-stage-action.gold,
[data-theme="light"] .btn-stage-action.secondary,
[data-theme="light"] .btn-stage-action.gold {
  background: #ffffff;
  color: #09090b;
  border: 1px solid #e4e4e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

html.light-mode .btn-stage-action.secondary:hover,
html.light-mode .btn-stage-action.gold:hover,
[data-theme="light"] .btn-stage-action.secondary:hover,
[data-theme="light"] .btn-stage-action.gold:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===================================================================
   TELEMETRY MATRIX (KEY PERFORMANCE INDICATORS)
   =================================================================== */
.quantit-telemetry-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

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

@media (max-width: 580px) {
  .quantit-telemetry-matrix {
    grid-template-columns: 1fr;
  }
}

.quantit-telemetry-box {
  background: var(--qt-surface-1);
  border: var(--qt-hairline);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--qt-shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.quantit-telemetry-box:hover {
  transform: translateY(-2px);
  border-color: var(--qt-hairline-bright);
}

.quantit-telemetry-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.quantit-telemetry-icon.gold {
  background: rgba(251, 191, 36, 0.12);
  color: var(--qt-gold);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.quantit-telemetry-icon.cyan {
  background: rgba(0, 229, 255, 0.12);
  color: var(--qt-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.quantit-telemetry-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--qt-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.quantit-telemetry-icon.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: var(--qt-indigo);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.quantit-telemetry-info {
  display: flex;
  flex-direction: column;
}

.quantit-telemetry-num {
  font-size: 22px;
  font-weight: 880;
  font-family: var(--font-mono);
  color: var(--qt-ink);
  line-height: 1.1;
  margin-bottom: 3px;
}

.quantit-telemetry-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--qt-ink);
  margin-bottom: 2px;
}

.quantit-telemetry-sub {
  font-size: 11.5px;
  color: var(--qt-ink-subtle);
}

/* ===================================================================
   COMPETITIONS CATALOGUE & CADENCE FILTER
   =================================================================== */
.quantit-catalogue-section {
  margin-bottom: 64px;
}

.quantit-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.quantit-section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantit-section-title {
  font-size: 24px;
  font-weight: 880;
  letter-spacing: -0.025em;
  color: var(--qt-ink);
  margin: 0;
}

.quantit-section-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 750;
  background: rgba(0, 229, 255, 0.12);
  color: var(--qt-cyan);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* Filter Controls Bar */
.quantit-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--qt-surface-1);
  border: var(--qt-hairline);
  border-radius: 12px;
  padding: 8px 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.quantit-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-filter-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--qt-ink-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-filter-pill:hover {
  color: var(--qt-ink);
  background: var(--qt-surface-2);
}

.btn-filter-pill.active {
  background: var(--qt-surface-3);
  color: var(--qt-ink);
  border-color: var(--qt-hairline-bright);
  font-weight: 750;
  box-shadow: var(--qt-shadow-sm);
}

.quantit-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--qt-surface-sunken);
  border: var(--qt-hairline-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 260px;
}

.quantit-search-box i {
  color: var(--qt-ink-subtle);
  font-size: 12px;
}

.quantit-search-box input {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--qt-ink);
  width: 100%;
}

.quantit-search-box input::placeholder {
  color: var(--qt-ink-faint);
}

/* Competitions Bento Grid */
.quantit-comps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .quantit-comps-grid {
    grid-template-columns: 1fr;
  }
}

.quantit-comp-card {
  background: var(--qt-surface-1);
  border: var(--qt-hairline);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--qt-shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.quantit-comp-card:hover {
  transform: translateY(-2px);
  border-color: var(--qt-hairline-bright);
  box-shadow: var(--qt-shadow-md);
}

.quantit-comp-card.live-card {
  border-color: rgba(0, 229, 255, 0.25);
}

.quantit-comp-card.enrolling-card {
  border-color: rgba(251, 191, 36, 0.25);
}

.quantit-comp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.quantit-cadence-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quantit-cadence-pill.weekly {
  background: rgba(41, 151, 255, 0.12);
  color: var(--qt-blue);
  border: 1px solid rgba(41, 151, 255, 0.25);
}

.quantit-cadence-pill.monthly {
  background: rgba(251, 191, 36, 0.12);
  color: var(--qt-gold);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.quantit-card-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--qt-ink);
  margin: 0 0 8px 0;
}

.quantit-card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--qt-ink-muted);
  margin: 0 0 18px 0;
}

/* Parameters Matrix */
.quantit-params-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--qt-surface-sunken);
  border: var(--qt-hairline-subtle);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 20px;
}

.quantit-param-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quantit-param-cell .plbl {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--qt-ink-subtle);
  text-transform: uppercase;
}

.quantit-param-cell .pval {
  font-size: 13px;
  font-weight: 750;
  color: var(--qt-ink);
}

.quantit-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: var(--qt-hairline);
  flex-wrap: wrap;
  gap: 12px;
}

.quantit-time-left-display {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--qt-ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-comp-register {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-comp-register.primary,
.btn-comp-register.primary-cyan,
.btn-comp-register.primary-gold {
  background: #ffffff;
  color: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-comp-register.primary:hover,
.btn-comp-register.primary-cyan:hover,
.btn-comp-register.primary-gold:hover {
  transform: translateY(-1px);
  background: #f4f4f5;
  color: #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-comp-register.outline {
  background: var(--qt-surface-2);
  color: var(--qt-ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-comp-register.outline:hover {
  background: var(--qt-surface-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  color: #ffffff;
}

html.light-mode .btn-comp-register.primary,
html.light-mode .btn-comp-register.primary-cyan,
html.light-mode .btn-comp-register.primary-gold,
[data-theme="light"] .btn-comp-register.primary,
[data-theme="light"] .btn-comp-register.primary-cyan,
[data-theme="light"] .btn-comp-register.primary-gold {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #18181b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

html.light-mode .btn-comp-register.primary:hover,
html.light-mode .btn-comp-register.primary-cyan:hover,
html.light-mode .btn-comp-register.primary-gold:hover,
[data-theme="light"] .btn-comp-register.primary:hover,
[data-theme="light"] .btn-comp-register.primary-cyan:hover,
[data-theme="light"] .btn-comp-register.primary-gold:hover {
  background: #18181b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

html.light-mode .btn-comp-register.outline,
[data-theme="light"] .btn-comp-register.outline {
  background: #ffffff;
  color: #09090b;
  border: 1px solid #e4e4e7;
}

html.light-mode .btn-comp-register.outline:hover,
[data-theme="light"] .btn-comp-register.outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ===================================================================
   STANDINGS & HALL OF FAME TELEMETRY
   =================================================================== */
.quantit-hall-of-fame-section {
  background: var(--qt-surface-1);
  border: var(--qt-hairline);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 64px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--qt-shadow-md);
}

.quantit-hof-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.quantit-hof-title-group h2 {
  font-size: 22px;
  font-weight: 880;
  color: var(--qt-ink);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantit-hof-subtitle {
  font-size: 13px;
  color: var(--qt-ink-muted);
  margin: 0;
}

.quantit-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.quantit-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.quantit-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--qt-ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: var(--qt-hairline);
}

.quantit-table td {
  padding: 16px;
  border-bottom: var(--qt-hairline-subtle);
  font-size: 13.5px;
  vertical-align: middle;
}

.quantit-table tr:hover td {
  background: var(--qt-surface-hover);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 880;
  font-size: 12.5px;
  font-family: var(--font-mono);
}

.rank-badge.rank-1 {
  background: rgba(251, 191, 36, 0.16);
  color: var(--qt-gold);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.rank-badge.rank-2 {
  background: rgba(226, 232, 240, 0.16);
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.35);
}

.rank-badge.rank-3 {
  background: rgba(217, 119, 6, 0.16);
  color: #f59e0b;
  border: 1px solid rgba(217, 119, 6, 0.4);
}

.rank-badge.rank-other {
  background: var(--qt-surface-sunken);
  color: var(--qt-ink-subtle);
  border: var(--qt-hairline-subtle);
}

.quant-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quant-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
}

.quant-info-col {
  display: flex;
  flex-direction: column;
}

.quant-handle {
  font-weight: 750;
  color: var(--qt-ink);
  font-size: 13.5px;
}

.quant-strategy-tag {
  font-size: 11.5px;
  color: var(--qt-ink-subtle);
}

.passport-score-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--qt-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 750;
}

.btn-inspect-passport {
  background: var(--qt-surface-sunken);
  border: var(--qt-hairline);
  color: var(--qt-ink);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-inspect-passport:hover {
  background: var(--qt-surface-2);
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--qt-cyan);
}

/* ===================================================================
   INDUSTRY COMPETITOR COMPARISON MATRIX ($10k CRAFT)
   =================================================================== */
.quantit-competitor-matrix-section {
  background: var(--qt-surface-1);
  border: var(--qt-hairline);
  border-radius: 18px;
  padding: 34px;
  margin-bottom: 64px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--qt-shadow-md);
}

.quantit-matrix-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px auto;
}

.quantit-matrix-header h2 {
  font-size: 26px;
  font-weight: 880;
  letter-spacing: -0.025em;
  color: var(--qt-ink);
  margin: 0 0 10px 0;
}

.quantit-matrix-header p {
  font-size: 14.5px;
  color: var(--qt-ink-muted);
  line-height: 1.5;
  margin: 0;
}

.quantit-matrix-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.quantit-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.quantit-matrix-table th {
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--qt-ink-subtle);
  border-bottom: var(--qt-hairline);
}

.quantit-matrix-table th.highlight-col {
  color: var(--qt-cyan);
  background: rgba(0, 229, 255, 0.04);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.quantit-matrix-table td {
  padding: 16px 18px;
  border-bottom: var(--qt-hairline-subtle);
  font-size: 13.5px;
  vertical-align: middle;
}

.quantit-matrix-table td.highlight-col {
  background: rgba(0, 229, 255, 0.04);
  font-weight: 700;
  color: var(--qt-ink);
}

.matrix-feature-name {
  font-weight: 700;
  color: var(--qt-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.matrix-badge-best {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--qt-cyan);
  font-weight: 750;
}

.matrix-badge-bad {
  color: var(--qt-ink-subtle);
}

/* ===================================================================
   FORMAT COMPARISON: WEEKLY SPRINTS VS. MONTHLY GRAND CUPS
   =================================================================== */
.quantit-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}

@media (max-width: 900px) {
  .quantit-comparison-grid {
    grid-template-columns: 1fr;
  }
}

.quantit-format-card {
  background: var(--qt-surface-1);
  border: var(--qt-hairline);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--qt-shadow-sm);
}

.quantit-format-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: var(--qt-hairline);
}

.quantit-format-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.quantit-format-icon-wrap.weekly {
  background: rgba(0, 229, 255, 0.12);
  color: var(--qt-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.quantit-format-icon-wrap.monthly {
  background: rgba(251, 191, 36, 0.12);
  color: var(--qt-gold);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.quantit-format-title {
  font-size: 20px;
  font-weight: 880;
  color: var(--qt-ink);
  margin: 0 0 2px 0;
}

.quantit-format-sub {
  font-size: 12px;
  color: var(--qt-ink-subtle);
  margin: 0;
}

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

.quantit-spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: var(--qt-hairline-subtle);
  font-size: 13px;
}

.quantit-spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quantit-spec-item .s-label {
  color: var(--qt-ink-muted);
  font-weight: 550;
}

.quantit-spec-item .s-val {
  font-weight: 700;
  text-align: right;
}

/* ===================================================================
   STARTER STRATEGY BLUEPRINT DRAWER (APPLE TERMINAL)
   =================================================================== */
.quantit-code-blueprint-section {
  background: var(--qt-surface-1);
  border: var(--qt-hairline);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 64px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--qt-shadow-md);
}

.quantit-code-window-bar {
  background: var(--qt-surface-sunken);
  border-bottom: var(--qt-hairline);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.quantit-window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.quantit-window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.quantit-code-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-code-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--qt-ink-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-code-tab:hover {
  color: var(--qt-ink);
  background: var(--qt-surface-1);
}

.btn-code-tab.active {
  background: var(--qt-surface-2);
  color: var(--qt-ink);
  border-color: var(--qt-hairline-bright);
  font-weight: 700;
}

.quantit-code-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-code-copy {
  background: var(--qt-surface-1);
  border: var(--qt-hairline);
  color: var(--qt-ink);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s ease;
}

.btn-code-copy:hover {
  background: var(--qt-surface-2);
  border-color: var(--qt-hairline-bright);
}

.btn-sandbox-launch {
  background: var(--qt-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--qt-ink);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s ease;
}

.btn-sandbox-launch:hover {
  background: var(--qt-surface-hover);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

html.light-mode .btn-sandbox-launch,
[data-theme="light"] .btn-sandbox-launch {
  background: #ffffff;
  color: #09090b;
  border: 1px solid #e4e4e7;
}

html.light-mode .btn-sandbox-launch:hover,
[data-theme="light"] .btn-sandbox-launch:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.quantit-code-body {
  padding: 22px;
  background: rgba(2, 5, 8, 0.88);
  overflow-x: auto;
}

html.light-mode .quantit-code-body {
  background: #0f172a;
}

.quantit-code-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
}

/* ===================================================================
   MODALS (REGISTRATION & CANDIDATE DOSSIER)
   =================================================================== */
.quantit-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.quantit-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.quantit-modal-card {
  background: var(--qt-surface-1);
  border: var(--qt-hairline-bright);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  padding: 30px;
  box-shadow: var(--qt-shadow-lg);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.quantit-modal-backdrop.active .quantit-modal-card {
  transform: scale(1) translateY(0);
}

/* Toast Notifications */
.quantit-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--qt-surface-2);
  border: var(--qt-hairline-bright);
  border-radius: 10px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--qt-ink);
  box-shadow: var(--qt-shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 20000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.quantit-toast.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Helper Text Classes */
.mono { font-family: var(--font-mono) !important; }
.text-cyan { color: var(--qt-cyan) !important; }
.text-gold { color: var(--qt-gold) !important; }
.text-amber { color: var(--qt-gold) !important; }
.text-emerald { color: var(--qt-emerald) !important; }
.text-rose { color: var(--qt-rose) !important; }
