/* ============================================================
   BLTZ RACING — Design System
   taste-skill: DESIGN_VARIANCE=8 | MOTION_INTENSITY=6 | VISUAL_DENSITY=4
   Font: Outfit (banned Inter) | Accent: #EEFF00 Electric Yellow | Base: Zinc-950
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --bg:           #08080A;
  --surface:      #111114;
  --elevated:     #18181C;
  --overlay:      #222228;
  --accent:       #EEFF00;
  --accent-dim:   rgba(238,255,0,0.12);
  --accent-border:rgba(238,255,0,0.35);
  --gold:         #A8751E;
  --text-0:       #F4F4F5;
  --text-1:       #A1A1AA;
  --text-2:       #71717A;
  --border:       rgba(255,255,255,0.07);
  --border-h:     rgba(255,255,255,0.13);
  --r-sm:         6px;
  --r-md:         12px;
  --r-lg:         20px;
  --r-xl:         28px;
  --ease:         cubic-bezier(0.16,1,0.3,1);
  --ease-std:     cubic-bezier(0.45,0,0.55,1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-0);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}
img,video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input,textarea,select { font-family: inherit; }
ul,ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
.text-display {
  font-size: clamp(3.5rem,10vw,8.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.88;
  color: var(--text-0);
}
.text-h1 {
  font-size: clamp(2rem,5vw,3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.text-h2 {
  font-size: clamp(1.4rem,3vw,2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.text-h3 {
  font-size: clamp(1rem,2vw,1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.text-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-1); }
.text-dim    { color: var(--text-2); }
.text-mono   { font-family: 'JetBrains Mono', monospace; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(8,8,10,0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) { .nav__inner { padding: 0 48px; } }
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo-img { height: 42px; width: auto; object-fit: contain; }
.nav__logo-fallback {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-0);
}
.nav__logo-fallback span { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-1);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__link:hover { color: var(--text-0); background: rgba(255,255,255,0.06); }
.nav__link.active { color: var(--text-0); }
.nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav__user-dot {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav__user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-0);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-0);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .nav__links.open .nav__link { padding: 10px 14px; }
  .nav__dropdown { width: 100%; }
  .nav__dropdown-toggle { width: 100%; text-align: left; justify-content: space-between; }
  .nav__dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding: 2px 0 2px 12px !important;
    min-width: unset !important;
  }
  .nav__dropdown-item { padding: 8px 14px; }
}

/* ── Nav dropdowns ───────────────────────────────────────────── */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-1);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__dropdown-toggle::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav__dropdown-toggle:hover { color: var(--text-0); background: rgba(255,255,255,0.06); }
.nav__dropdown-toggle.active { color: var(--text-0); }
.nav__dropdown.open .nav__dropdown-toggle::after { transform: rotate(180deg); }
.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px;
  min-width: 170px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  flex-direction: column;
  gap: 2px;
  z-index: 500;
}
.nav__dropdown.open .nav__dropdown-menu { display: flex; }
.nav__dropdown-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-1);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  display: block;
}
.nav__dropdown-item:hover { color: var(--text-0); background: rgba(255,255,255,0.06); }
.nav__dropdown-item.active { color: var(--accent); font-weight: 700; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 2px 14px rgba(238,255,0,0.25);
}
.btn--primary:hover {
  background: #D4E900;
  box-shadow: 0 4px 22px rgba(238,255,0,0.38);
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: var(--text-0);
  border-color: var(--border-h);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
}
.btn--ghost {
  background: transparent;
  color: var(--text-1);
}
.btn--ghost:hover { color: var(--text-0); background: rgba(255,255,255,0.06); }
.btn--danger {
  background: rgba(220,38,38,0.14);
  color: #F87171;
  border-color: rgba(220,38,38,0.3);
}
.btn--danger:hover { background: rgba(220,38,38,0.22); }
.btn--success {
  background: rgba(16,185,129,0.12);
  color: #34D399;
  border-color: rgba(16,185,129,0.28);
}
.btn--sm  { padding: 6px 14px; font-size: 0.8rem; }
.btn--lg  { padding: 14px 32px; font-size: 1rem; }
.btn--full { width: 100%; }
.btn[disabled],
.btn.loading { opacity: 0.55; pointer-events: none; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-h); }
.card--glass {
  background: rgba(17,17,20,0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 40px rgba(0,0,0,0.3);
  border-radius: var(--r-lg);
  padding: 28px;
}
.card--elevated {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
  padding: 28px;
}
.card--accent-left { border-left: 3px solid var(--accent); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge--red    { background: rgba(220,38,38,0.15); color: #F87171; }
.badge--red::before { background: #F87171; }
.badge--yellow { background: rgba(238,255,0,0.12); color: #EEFF00; border: 1px solid rgba(238,255,0,0.25); }
.badge--yellow::before { background: #EEFF00; }
.badge--green  { background: rgba(16,185,129,0.15); color: #34D399; }
.badge--green::before { background: #34D399; }
.badge--amber  { background: rgba(245,158,11,0.14); color: #FBB040; }
.badge--amber::before { background: #FBB040; }
.badge--gray   { background: rgba(113,113,122,0.18); color: var(--text-2); }
.badge--gray::before { background: var(--text-2); }
.badge--blue   { background: rgba(59,130,246,0.13); color: #60A5FA; }
.badge--blue::before { background: #60A5FA; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-stack  { display: flex; flex-direction: column; gap: 20px; }
.form-group  { display: flex; flex-direction: column; gap: 8px; }
.form-label  {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.02em;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--elevated);
  border: 1px solid var(--border-h);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  color: var(--text-0);
  font-size: 0.9rem;
  outline: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-2); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2371717A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-select option { background: var(--elevated); }
.form-error { font-size: 0.76rem; color: #F87171; }
.form-hint  { font-size: 0.76rem; color: var(--text-2); }
.form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
  font-size: 0.8rem;
}
.form-divider::before,.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 479px) { .form-2col { grid-template-columns: 1fr; } }

/* ── Range slider ────────────────────────────────────────────── */
.range-wrap { display: flex; flex-direction: column; gap: 10px; }
.range-head  { display: flex; justify-content: space-between; align-items: center; }
.range-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 22px;
  text-align: right;
}
input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  background: var(--overlay);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
  border: 1px solid var(--border);
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(238,255,0,0.35);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-2);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Choice buttons ──────────────────────────────────────────── */
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-btn {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-h);
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.choice-btn:hover { border-color: var(--accent); color: var(--text-0); }
.choice-btn.selected {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text-0);
}

/* ── Alert ───────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid;
  line-height: 1.5;
}
.alert--error   { background: rgba(220,38,38,0.09); color: #F87171; border-color: rgba(220,38,38,0.28); }
.alert--success { background: rgba(16,185,129,0.09); color: #34D399; border-color: rgba(16,185,129,0.28); }
.alert--info    { background: rgba(59,130,246,0.09); color: #60A5FA; border-color: rgba(59,130,246,0.28); }
.alert--warning { background: rgba(245,158,11,0.09); color: #FBB040; border-color: rgba(245,158,11,0.28); }

/* ── Spinner / Skeleton ──────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}
.spinner--lg { width: 36px; height: 36px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--elevated) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 75% 55%, rgba(238,255,0,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(168,117,30,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}
.hero__glyph {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-52%);
  font-size: clamp(16vw,22vw,28vw);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.032);
  pointer-events: none;
  user-select: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 800px) {
  .hero__inner { padding: 0 48px; grid-template-columns: 11fr 7fr; }
}
.hero__left { display: flex; flex-direction: column; gap: 32px; }
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow-line {
  width: 36px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero__title { display: flex; flex-direction: column; gap: 0; }
.hero__sub {
  font-size: clamp(1rem,2.2vw,1.2rem);
  color: var(--text-1);
  max-width: 480px;
  line-height: 1.6;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat-n {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-0);
}
.hero__stat-l {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero__right { display: flex; align-items: center; justify-content: center; }
.logo-ring-wrap {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: ringRotate 22s linear infinite;
}
.logo-ring::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(238,255,0,0.55);
}
.logo-ring-inner {
  position: absolute;
  inset: 16px;
  border: 1px solid var(--border-h);
  border-radius: 50%;
  animation: ringRotate 14s linear infinite reverse;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
.logo-center {
  width: 65%;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border-h);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}
.logo-center img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}
.logo-fallback {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

/* ── News grid ───────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 768px) { .news-grid { grid-template-columns: 5fr 3fr; } }
.news-col { display: flex; flex-direction: column; }
.news-col--right { border-left: 1px solid var(--border); }
@media (max-width: 767px) { .news-col--right { border-left: none; border-top: 1px solid var(--border); } }
.news-item {
  background: var(--surface);
  padding: 28px 32px;
  transition: background 0.2s;
  cursor: pointer;
}
.news-item:hover { background: var(--elevated); }
.news-item + .news-item { border-top: 1px solid var(--border); }
.news-item--featured { padding: 36px 40px; }
.news-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.news-item__date {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-2);
}
.news-item__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 8px;
}
.news-item--featured .news-item__title { font-size: 1.5rem; margin-bottom: 12px; }
.news-item__excerpt { font-size: 0.875rem; color: var(--text-1); line-height: 1.65; }
.news-item--featured .news-item__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Section ─────────────────────────────────────────────────── */
.section     { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 128px 0; }
.section__head { margin-bottom: 56px; }

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .auth-page { grid-template-columns: 1fr 1fr; } }

.auth-brand {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 65%, rgba(238,255,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.auth-brand__glyph {
  position: absolute;
  bottom: -5%;
  right: -8%;
  font-size: clamp(12vw,18vw,22rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
@media (max-width: 959px) { .auth-brand { display: none; } }
.auth-brand__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}
.auth-brand__logo img { height: 52px; object-fit: contain; }
.auth-brand__logo span { color: var(--accent); }
.auth-brand__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-brand__headline {
  font-size: clamp(2rem,4vw,3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.auth-brand__sub { font-size: 0.95rem; color: var(--text-1); line-height: 1.6; max-width: 340px; }
.auth-brand__pips { display: flex; gap: 6px; }
.auth-brand__pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-h);
}
.auth-brand__pip.on { background: var(--accent); }

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  min-height: 100dvh;
}
.auth-box {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.auth-box__head { display: flex; flex-direction: column; gap: 8px; }
.auth-box__title { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.auth-box__sub   { font-size: 0.9rem; color: var(--text-1); }
.auth-link-row   { font-size: 0.85rem; color: var(--text-2); text-align: center; }
.auth-link-row a { color: var(--text-1); font-weight: 600; transition: color 0.15s; }
.auth-link-row a:hover { color: var(--accent); }

/* ── Dashboard ───────────────────────────────────────────────── */
.dash-page {
  min-height: 100dvh;
  padding-top: 68px;
}
.dash-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) { .dash-main { padding: 48px 48px; } }
.dash-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 960px) { .dash-grid { grid-template-columns: 3fr 2fr; } }

/* setup card */
.setup-card { display: flex; flex-direction: column; gap: 24px; }
.setup-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (min-width: 520px) { .data-grid { grid-template-columns: repeat(3,1fr); } }
.data-cell {
  background: var(--elevated);
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.data-cell--wide { grid-column: span 2; }
.data-cell__k {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
}
.data-cell__v {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-0);
  font-family: 'JetBrains Mono', monospace;
}
.tire-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.tire-cell {
  background: var(--elevated);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tire-cell__k { font-size: 0.72rem; color: var(--text-2); font-weight: 600; }
.tire-cell__v { font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; color: var(--accent); font-weight: 600; }

/* ── Feedback page ───────────────────────────────────────────── */
.feedback-page { min-height: 100dvh; padding-top: 68px; }
.feedback-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) { .feedback-main { padding: 56px 48px; } }
.fb-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.fb-section__head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--elevated);
  display: flex;
  align-items: center;
  gap: 12px;
}
.fb-section__num {
  width: 24px; height: 24px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}
.fb-section__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-0);
}
.fb-section__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.fb-submit-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* ── Admin page ──────────────────────────────────────────────── */
.admin-page { min-height: 100dvh; padding-top: 68px; }
.admin-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px;
}
@media (min-width: 768px) { .admin-main { padding: 48px 48px; } }
.admin-tabbar {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  gap: 0;
}
.admin-tab {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.admin-tab:hover { color: var(--text-1); }
.admin-tab.active { color: var(--text-0); border-bottom-color: var(--accent); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* ── Table ───────────────────────────────────────────────────── */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead tr { background: var(--elevated); border-bottom: 1px solid var(--border); }
th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { background: var(--surface); transition: background 0.15s; }
tbody tr:hover { background: var(--elevated); }
td strong { color: var(--text-0); font-weight: 600; }
.td-actions { display: flex; gap: 8px; align-items: center; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--elevated);
  border: 1px solid var(--border-h);
  border-radius: var(--r-xl);
  padding: 32px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(18px);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal__close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--overlay);
  color: var(--text-1);
  font-size: 1.1rem;
  transition: background 0.15s, color 0.15s;
}
.modal__close:hover { background: rgba(238,255,0,0.15); color: var(--accent); }

/* ── Verify email page ───────────────────────────────────────── */
.verify-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.verify-card {
  width: 100%;
  max-width: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.verify-icon {
  width: 72px; height: 72px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
@media (min-width: 768px) { .footer__inner { padding: 0 48px; } }
.footer__copy { font-size: 0.78rem; color: var(--text-2); }
.footer__links { display: flex; gap: 20px; }
.footer__link  { font-size: 0.78rem; color: var(--text-2); transition: color 0.15s; }
.footer__link:hover { color: var(--text-1); }

/* ── Utilities ───────────────────────────────────────────────── */
.flex   { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-4  { gap: 4px; }  .gap-8  { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8   { margin-top: 8px; }  .mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; } .mt-32  { margin-top: 32px; }
.mb-8   { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.w-full  { width: 100%; }
.relative { position: relative; }
.hidden  { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--overlay); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-2); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .section--lg { padding: 80px 0; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 768px) { .hide-desktop { display: none !important; } }
