/* ============================================================
   CONTRAST — Design System v5  |  Minimal Dark
   ============================================================ */

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

:root {
  /* Backgrounds */
  --bg:        #090909;
  --surface:   #111111;
  --surface2:  #181818;
  --surface3:  #1f1f1f;

  /* Borders */
  --border:    #1e1e1e;
  --border2:   #2a2a2a;
  --border3:   #363636;

  /* Text */
  --text:      #ececec;
  --text2:     #c8c8c8;
  --muted:     #888888;
  --muted2:    #555555;
  --muted3:    #333333;

  /* Accent — pure white only */
  --accent:        #ffffff;
  --accent-dim:    rgba(255,255,255,.06);
  --accent-hover:  rgba(255,255,255,.10);

  /* Compatibility aliases for old references */
  --purple:        #ffffff;
  --purple-light:  #ececec;
  --purple-pale:   #aaaaaa;
  --purple-dark:   #555555;
  --purple-xdark:  #222222;
  --violet:        #888888;
  --red:           #ececec;
  --red-bright:    #ffffff;
  --red-dark:      #444444;
  --red-faint:     rgba(255,255,255,.04);
  --glow:          rgba(255,255,255,.04);
  --glow-md:       rgba(255,255,255,.07);
  --glow-strong:   rgba(255,255,255,.12);
  --glow-violet:   rgba(255,255,255,.05);

  /* Status */
  --success:  #4ade80;
  --warning:  #fbbf24;
  --danger:   #f87171;
  --info:     #94a3b8;

  /* Geometry */
  --radius:    6px;
  --radius-lg: 8px;
  --radius-xl: 10px;

  /* Font */
  --font:         'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono:    'Outfit', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted2); }

/* ── Grain — very subtle ───────────────────────────────────── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── Smoke — disabled ─────────────────────────────────────── */
.smoke-container { display: none; }
.smoke-orb { display: none; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Stagger — only animate when JS has loaded (body.js-ready).
   Without JS or if CSS fails, elements are always visible. */
.stagger { opacity: 1; }

body.js-ready .stagger {
  opacity: 0;
  animation: revealUp .5s ease forwards;
}
body.js-ready .stagger-1 { animation-delay: .05s; }
body.js-ready .stagger-2 { animation-delay: .12s; }
body.js-ready .stagger-3 { animation-delay: .20s; }
body.js-ready .stagger-4 { animation-delay: .30s; }
body.js-ready .stagger-5 { animation-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  body.js-ready .stagger {
    animation: none;
    opacity: 1;
  }
}

/* ── Typography ───────────────────────────────────────────── */
.logo {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text);
  display: inline-block;
}

h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; color: var(--text); }
h2 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -.5px; color: var(--text); }
h3 { font-size: clamp(15px, 2vw, 18px); font-weight: 600; line-height: 1.3; color: var(--text); }
p  { color: var(--muted); line-height: 1.7; }

.gradient-text        { color: var(--text); }
.gradient-text-purple { color: var(--text); }

/* ── Layout ───────────────────────────────────────────────── */
.container    { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-sm { width: 100%; max-width: 560px;  margin: 0 auto; padding: 0 24px; }

/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(9,9,9,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .nav-inner { display: flex; align-items: center; justify-content: space-between; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  letter-spacing: .3px;
  color: var(--bg); background: var(--text);
  padding: 8px 18px; border-radius: var(--radius);
  transition: opacity .15s;
}
.nav-cta:hover { opacity: .85; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; font-family: var(--font); font-weight: 600;
  font-size: 13px; letter-spacing: .2px;
  padding: 9px 20px; border-radius: var(--radius);
  transition: all .15s; white-space: nowrap; cursor: pointer;
  position: relative;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--text); color: var(--bg);
  border: 1px solid var(--text);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); opacity: .92; }

.btn-outline {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--border3); color: var(--text); background: var(--surface2); }

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

.btn-danger  { background: rgba(248,113,113,.08); color: var(--danger);  border: 1px solid rgba(248,113,113,.2); }
.btn-danger:hover  { background: rgba(248,113,113,.14); }
.btn-success { background: rgba(74,222,128,.08);  color: var(--success); border: 1px solid rgba(74,222,128,.2); }
.btn-success:hover { background: rgba(74,222,128,.14); }

.btn-sm  { padding: 5px 12px; font-size: 12px; }
.btn-lg  { padding: 12px 28px; font-size: 14px; }
.btn-xl  { padding: 15px 40px; font-size: 15px; }
.btn-full{ width: 100%; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.card-glow { box-shadow: none; }

.card-sm {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
}

/* ── Section ──────────────────────────────────────────────── */
section { padding: 80px 0; position: relative; z-index: 1; }

.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted2); margin-bottom: 10px;
}

.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0; overflow: hidden;
}

.hero-glow    { display: none; }
.hero-scanline{ display: none; }

/* Frame marks — hidden in v5 */
.frame-mark   { display: none; }

/* Hero brand */
.hero-brand {
  width: 100%; overflow: hidden;
  line-height: .88;
  position: relative;
}
.hero-brand-word {
  font-family: var(--font);
  font-size: clamp(72px, 18vw, 260px);
  font-weight: 800;
  letter-spacing: -6px;
  text-transform: uppercase;
  color: var(--text);
  display: block;
  white-space: nowrap;
  user-select: none;
}

/* Hero scar — subtle divider in v5 */
.hero-scar {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--border3);
  top: 52%;
  opacity: .6;
}

.hero-doc-num {
  position: absolute;
  top: 28px; right: 40px;
  font-size: 11px; letter-spacing: 2px;
  color: var(--muted2); text-transform: uppercase;
}

.hero-eyebrow {
  font-size: 12px; letter-spacing: 2px; font-weight: 500;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted); margin-top: 24px;
  max-width: 460px; line-height: 1.7; font-weight: 400;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; margin-top: 36px;
}

/* ── Info ticker ──────────────────────────────────────────── */
.ticker-strip {
  overflow: hidden; position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 9px 0;
}
.ticker-strip::before,
.ticker-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
  pointer-events: none;
}
.ticker-strip::before { left: 0;  background: linear-gradient(to right,  var(--surface), transparent); }
.ticker-strip::after  { right: 0; background: linear-gradient(to left,   var(--surface), transparent); }

.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-item {
  display: flex; align-items: center; gap: 12px;
  padding: 0 28px; font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted2); white-space: nowrap;
}
.ticker-item .sep { color: var(--border3); }
.ticker-item .hi  { color: var(--muted); }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Info grid ────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.info-cell {
  background: var(--surface); padding: 24px 20px;
  position: relative; transition: background .15s;
}
.info-cell:hover { background: var(--surface2); }
.info-cell-icon  { display: none; }
.info-cell-label {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted2); margin-bottom: 6px;
}
.info-cell-value { font-size: 16px; font-weight: 600; color: var(--text); }

/* ── Auth layout ──────────────────────────────────────────── */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

.auth-panel-left {
  position: relative; overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 60px 52px; z-index: 1;
}
.auth-panel-left-glow { display: none; }
.auth-brand-giant {
  position: absolute; top: 40px; left: 36px;
  font-size: clamp(60px, 9vw, 120px);
  font-weight: 800; letter-spacing: -4px; line-height: 0.88;
  color: rgba(255,255,255,.03);
  pointer-events: none; user-select: none; white-space: nowrap;
}

.auth-panel-right {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 80px 52px; position: relative; z-index: 1;
}

@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-panel-right { padding: 100px 24px 60px; min-height: 100vh; align-items: stretch; }
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 7px; }

label {
  font-size: 12px; font-weight: 600;
  letter-spacing: .5px; color: var(--muted); text-transform: none;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border2); border-radius: var(--radius);
  color: var(--text); font-family: var(--font);
  font-size: 15px; padding: 11px 13px; outline: none;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border3);
  background: var(--surface3);
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}

input::placeholder, textarea::placeholder { color: var(--muted2); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 38px;
}
select option { background: var(--surface2); color: var(--text); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  margin-top: 2px; accent-color: var(--text2); cursor: pointer;
}
.checkbox-row label {
  font-size: 13px; font-weight: 400; color: var(--muted);
  cursor: pointer; letter-spacing: 0; text-transform: none;
}
.checkbox-row a { color: var(--text2); text-decoration: underline; text-underline-offset: 3px; }

/* ── Status badges ─────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; border: 1px solid;
}
.status-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}

.status-new       { background: rgba(255,255,255,.04); color: var(--muted);    border-color: var(--border2); }
.status-new::before { background: var(--muted2); }
.status-approved  { background: rgba(74,222,128,.06);  color: var(--success);  border-color: rgba(74,222,128,.2); }
.status-approved::before { background: var(--success); }
.status-rejected  { background: rgba(248,113,113,.06); color: var(--danger);   border-color: rgba(248,113,113,.2); }
.status-rejected::before { background: var(--danger); }
.status-checkout  { background: rgba(251,191,36,.06);  color: var(--warning);  border-color: rgba(251,191,36,.2); }
.status-checkout::before { background: var(--warning); }
.status-paid      { background: rgba(255,255,255,.06); color: var(--text);     border-color: var(--border3); }
.status-paid::before  { background: var(--text); }
.status-checkedin { background: rgba(74,222,128,.1);   color: var(--success);  border-color: rgba(74,222,128,.25); }
.status-checkedin::before { background: var(--success); }

/* ── Table ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted2);
  padding: 11px 14px; border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 12px 14px; font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted); vertical-align: middle;
}
tbody tr:hover td { background: var(--surface2); }
tbody tr:last-child td { border-bottom: none; }

.td-name { color: var(--text); font-weight: 500; }
.td-id   { font-size: 12px; color: var(--muted); letter-spacing: 1px; }

/* ── Admin sidebar ─────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px; min-width: 220px;
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 28px 0; display: flex; flex-direction: column;
  position: fixed; height: 100vh; top: 0; left: 0;
  overflow-y: auto; z-index: 50;
}
.sidebar::after { display: none; }

.sidebar-logo { padding: 0 20px 28px; }
.sidebar-section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted3); padding: 0 20px 8px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 0 10px; }

.sidebar-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius); font-size: 13px; font-weight: 500;
  color: var(--muted); transition: all .15s; position: relative;
}
.sidebar-item:hover { background: var(--surface2); color: var(--text2); }
.sidebar-item.active { background: var(--surface2); color: var(--text); }
.sidebar-item.active::before { display: none; }
.sidebar-item .icon { font-size: 13px; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-footer { padding: 16px 10px 0; border-top: 1px solid var(--border); margin-top: 8px; }
.main-content { margin-left: 220px; flex: 1; padding: 48px 40px; min-height: 100vh; }

/* ── Stats grid ────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px; margin-bottom: 28px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; text-align: center;
  transition: border-color .15s;
}
.stat-card::before { display: none; }
.stat-card:hover { border-color: var(--border3); }
.stat-card .stat-num { font-size: 32px; font-weight: 700; line-height: 1; color: var(--text); }
.stat-card .stat-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted2); margin-top: 6px;
}

/* ── Filter bar ────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.filter-chip {
  padding: 5px 13px; border-radius: 20px;
  font-size: 12px; font-weight: 500; letter-spacing: .3px;
  border: 1px solid var(--border2); color: var(--muted2);
  cursor: pointer; transition: all .15s; background: transparent;
  text-decoration: none;
}
.filter-chip:hover  { border-color: var(--border3); color: var(--text); background: var(--surface2); }
.filter-chip.active { border-color: var(--border3); color: var(--text); background: var(--surface2); }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; border: 1px solid;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.55;
}
.alert-success { background: rgba(74,222,128,.06);  color: var(--success); border-color: rgba(74,222,128,.18); }
.alert-danger  { background: rgba(248,113,113,.06); color: var(--danger);  border-color: rgba(248,113,113,.18); }
.alert-warning { background: rgba(251,191,36,.06);  color: var(--warning); border-color: rgba(251,191,36,.18); }
.alert-info    { background: rgba(255,255,255,.04); color: var(--text2);   border-color: var(--border2); }

/* ── Barcode ───────────────────────────────────────────────── */
.barcode-wrap {
  background: #fff; border-radius: var(--radius);
  padding: 22px 32px 16px; display: inline-block; text-align: center;
  border: 1px solid var(--border2);
}
.barcode-id {
  font-size: 13px; font-weight: 600;
  letter-spacing: 4px; color: #111; margin-top: 8px;
}

/* ── Scanner ───────────────────────────────────────────────── */
.scanner-page { min-height: 100vh; display: flex; flex-direction: column; padding-top: 70px; }
.scanner-display {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 24px; text-align: center; transition: background .3s;
}
.scanner-display.state-idle    { background: transparent; }
.scanner-display.state-success { background: rgba(74,222,128,.04); }
.scanner-display.state-error   { background: rgba(248,113,113,.04); }

.scanner-icon {
  width: 96px; height: 96px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; margin: 0 auto 28px; transition: all .3s;
  border: 1px solid;
}
.scanner-icon.idle    { background: var(--surface); color: var(--muted); border-color: var(--border2); }
.scanner-icon.success { background: rgba(74,222,128,.06);  color: var(--success); border-color: rgba(74,222,128,.3); }
.scanner-icon.error   { background: rgba(248,113,113,.06); color: var(--danger);  border-color: rgba(248,113,113,.3); }

.scanner-input-hidden { position: fixed; top: -200px; opacity: 0; pointer-events: none; }

.scan-log { width: 100%; max-width: 560px; margin: 0 auto; }
.scan-log-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-bottom: 1px solid var(--border); font-size: 13px;
  animation: slideIn .2s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

/* ── Entry card ────────────────────────────────────────────── */
.entry-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 10px;
  transition: border-color .15s;
}
.entry-card:hover { border-color: var(--border3); }
.entry-name { font-size: 22px; font-weight: 700; color: var(--text); }
.entry-id   { font-size: 12px; color: var(--muted); letter-spacing: 1.5px; margin-top: 4px; }

/* ── Profile ───────────────────────────────────────────────── */
.profile-header {
  padding: 96px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 36px;
}
.profile-avatar {
  width: 60px; height: 60px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--text2);
  margin-bottom: 20px;
}

.info-row { display: flex; padding: 12px 0; border-bottom: 1px solid var(--border); gap: 16px; }
.info-row:last-child { border-bottom: none; }
.info-row-label {
  width: 160px; min-width: 140px; font-size: 12px; font-weight: 500;
  letter-spacing: .3px; text-transform: none; color: var(--muted2); padding-top: 2px;
}
.info-row-value { color: var(--text); font-size: 14px; font-weight: 500; }

/* ── Timeline ──────────────────────────────────────────────── */
.status-timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: flex; gap: 14px; padding: 13px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border3); flex-shrink: 0; margin-top: 5px;
  transition: all .2s;
}
.timeline-dot.done   { background: var(--success); }
.timeline-dot.active { background: var(--text); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.timeline-label { font-size: 14px; color: var(--muted); }
.timeline-label strong {
  color: var(--text); display: block; margin-bottom: 1px;
  font-size: 14px; font-weight: 600;
}

/* ── Live counter ──────────────────────────────────────────── */
.live-counter { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.counter-item {
  flex: 1; min-width: 120px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; text-align: center; transition: border-color .15s;
}
.counter-item:hover { border-color: var(--border3); }
.counter-num { font-size: 36px; font-weight: 700; line-height: 1; color: var(--text); }
.counter-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted2); margin-top: 5px;
}

/* ── Search bar ────────────────────────────────────────────── */
.search-bar { display: flex; gap: 10px; margin-bottom: 24px; }
.search-bar input { flex: 1; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 48px 0;
  text-align: center; position: relative; z-index: 1;
}
footer::before { display: none; }
footer p { font-size: 13px; color: var(--muted2); }

/* ── Cookie banner ─────────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(17,17,17,.98); border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; z-index: 999;
  transform: translateY(100%); transition: transform .3s ease; flex-wrap: wrap;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { font-size: 13px; color: var(--muted); margin: 0; }
#cookie-banner a { color: var(--text2); text-decoration: underline; }

/* ── Page header ───────────────────────────────────────────── */
.page-header { padding: 80px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }

/* ── Red rule stubs ────────────────────────────────────────── */
.red-rule       { width: 100%; height: 1px; background: var(--border2); }
.red-rule-thick { width: 100%; height: 1px; background: var(--border3); }

/* ── Spinner ───────────────────────────────────────────────── */
.spinner {
  width: 15px; height: 15px;
  border: 2px solid var(--border2); border-top-color: var(--text);
  border-radius: 50%; animation: spin .5s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Flash ─────────────────────────────────────────────────── */
.flash-msg { transition: opacity .4s; }

/* ── Utilities ─────────────────────────────────────────────── */
.gap-8  { gap: 8px; }  .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8   { margin-top: 8px; }   .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32  { margin-top: 32px; }  .mt-48 { margin-top: 48px; }
.mb-4   { margin-bottom: 4px; }.mb-8  { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16  { margin-bottom: 16px; }.mb-24 { margin-bottom: 24px; }.mb-32 { margin-bottom: 32px; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.text-center { text-align: center; }
.text-white  { color: var(--text); }
.text-muted  { color: var(--muted); }
.text-purple { color: var(--text2); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning{ color: var(--warning); }
.hidden      { display: none !important; }
.mono        { font-family: var(--font); letter-spacing: 1px; }
.w-full      { width: 100%; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { width: 56px; min-width: 56px; padding: 20px 0; }
  .sidebar-logo { padding: 0 10px 20px; }
  .sidebar-section-label { display: none; }
  .sidebar-item span:not(.icon) { display: none; }
  .sidebar-item { justify-content: center; }
  .sidebar-footer { padding: 12px; }
  .main-content { margin-left: 56px; padding: 24px 20px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 20px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .info-row { flex-direction: column; gap: 3px; }
  .info-row-label { width: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .flex-between { flex-wrap: wrap; gap: 12px; }
  thead { display: none; }
  tbody td { display: block; padding: 8px 16px; }
  tbody td::before {
    content: attr(data-label) ': ';
    font-weight: 600; color: var(--muted2);
    font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  }
  tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  tbody tr:last-child { border-bottom: none; }
  .page-header { padding: 70px 0 24px; }
}

/* ── Prose ─────────────────────────────────────────────────── */
.prose { max-width: 720px; }
.prose h2 { font-size: 20px; margin: 40px 0 12px; }
.prose h3 { font-size: 16px; margin: 28px 0 8px; color: var(--muted); }
.prose p  { margin-bottom: 16px; font-size: 15px; line-height: 1.8; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose li { font-size: 15px; color: var(--muted); margin-bottom: 6px; line-height: 1.7; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.prose th, .prose td { padding: 11px 14px; border: 1px solid var(--border); font-size: 14px; text-align: left; }
.prose th { color: var(--muted2); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.prose td { color: var(--muted); }
.prose code { background: var(--surface2); padding: 2px 6px; border-radius: var(--radius); font-size: .9em; color: var(--text2); }

/* ── Action row ────────────────────────────────────────────── */
.action-row { display: flex; gap: 6px; flex-wrap: wrap; }
