/* ============================================================================
   LIVERY ENGINE — brand shell  ·  "pit-lane at night"
   Motorsport-industrial: carbon dark, sharp orange, racing-plate geometry.
   ========================================================================== */

@font-face {
  font-family: "Exo 2";
  src: url("/static/fonts/exo2.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* brand */
  --orange:   #FF7A00;
  --orange-2: #ff9838;
  --black:    #1B1B1F;
  --slate:    #30343A;
  --grey:     #B8BDC3;
  --white:    #FFFFFF;

  /* derived surfaces */
  --ink:      #141419;   /* deepest bg */
  --panel:    #212227;
  --panel-2:  #2a2c33;
  --line:     rgba(255,255,255,.09);
  --line-2:   rgba(255,255,255,.16);
  --muted:    #8b909a;

  --glow:     0 0 40px rgba(255,122,0,.35);
  --shadow:   0 24px 60px -20px rgba(0,0,0,.7);
  --clip:     polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  --ease:     cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: "Exo 2", system-ui, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* atmosphere: telemetry grid + top glow + vignette */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(255,122,0,.16), transparent 55%),
    radial-gradient(90% 60% at 10% 0%, rgba(120,140,180,.10), transparent 50%),
    linear-gradient(180deg, #17171d 0%, var(--ink) 60%, #101015 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
  opacity: .5;
}

a { color: var(--orange); text-decoration: none; }

::selection { background: var(--orange); color: #141414; }

/* scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--slate); border-radius: 0; border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(20,20,25,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header img { height: 30px; display: block; }
.site-header .brand-logo { display: inline-flex; align-items: center; }
.site-header .brand-logo img { height: 40px; display: block; }
.site-footer .brand-logo.foot { height: 30px; opacity: .85; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; color: var(--grey); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .12em; transition: color .2s; }
.nav a:hover { color: var(--white); }
.nav form { margin: 0; display: inline-flex; }
/* the top-nav CTA (Register): a compact, tidy button that pairs with the
   Log in text link — the full-size .btn is too heavy for the slim header. */
.site-header .nav .btn {
  padding: 8px 18px;
  font-size: .72rem; letter-spacing: .1em;
  color: #150d00;   /* .nav a's grey would win on specificity; force dark-on-orange */
}
.site-header .nav .btn::after { width: 7px; height: 7px; right: 2px; bottom: 2px; }

/* --------------------------------------------------------------- buttons */
.btn {
  --bg: var(--orange);
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 26px;
  font-family: inherit; font-size: .8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  color: #150d00; background: var(--bg); border: none; cursor: pointer;
  clip-path: var(--clip);
  transition: transform .18s var(--ease), filter .18s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn::after { /* corner tick */
  content: ""; position: absolute; right: 3px; bottom: 3px;
  width: 9px; height: 9px; background: rgba(0,0,0,.35);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.btn-lg { padding: 17px 34px; font-size: .9rem; }
.btn-ghost {
  color: var(--white); background: transparent;
  border: 1px solid var(--line-2); clip-path: var(--clip);
  padding: 12px 24px;
}
.btn-ghost::after { display: none; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* eyebrow / chips */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--grey);
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--orange);
  box-shadow: var(--glow);
}

/* ================================================================= HERO === */
.hero {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) 32px clamp(40px, 6vw, 90px);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
/* diagonal speed streaks behind hero */
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto auto;
  width: 60%; height: 120%; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(115deg,
     transparent 0 38px, rgba(255,122,0,.05) 38px 40px);
  transform: skewX(-8deg);
}
.hero-copy { animation: rise .8s var(--ease) both; }
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.9rem, 7.2vw, 6rem);
  font-weight: 800; line-height: .92; letter-spacing: -.02em;
  text-transform: uppercase; font-style: italic;
}
.hero h1 .o { color: var(--orange); text-shadow: 0 0 34px rgba(255,122,0,.5); }
.hero h1 .line { display: block; }
.hero h1 .line:nth-child(1){ animation: rise .7s .05s var(--ease) both; }
.hero h1 .line:nth-child(2){ animation: rise .7s .15s var(--ease) both; }
.hero h1 .line:nth-child(3){ animation: rise .7s .25s var(--ease) both; }
.hero .sub {
  margin: 26px 0 0; max-width: 30em; color: var(--grey);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  animation: rise .7s .35s var(--ease) both;
}
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap;
  animation: rise .7s .45s var(--ease) both; }
.hero .spec {
  margin-top: 34px; display: flex; gap: 22px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line);
  animation: rise .7s .55s var(--ease) both;
}
.hero .spec b { display: block; font-size: 1.5rem; font-weight: 800; font-style: italic; }
.hero .spec span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* hero visual: tilted racing number plate */
.hero-art { position: relative; height: 100%; min-height: 340px;
  display: grid; place-items: center; animation: rise .9s .2s var(--ease) both; }
.plate {
  position: relative; width: min(360px, 80%); aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 5px),
    linear-gradient(155deg, var(--panel-2), #191a1f);
  border: 1px solid var(--line-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
  box-shadow: var(--shadow); transform: rotate(-6deg);
  overflow: hidden;
}
.plate::before { /* orange racing stripe */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
  box-shadow: 0 10px 30px rgba(255,122,0,.35);
}
.plate .num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 9rem; font-weight: 900; font-style: italic; color: var(--white);
  text-shadow: 0 6px 0 rgba(0,0,0,.35); letter-spacing: -.04em;
}
.plate .team {
  position: absolute; left: 18px; bottom: 22px;
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--grey);
}
.plate .flag { /* checkered corner */
  position: absolute; right: 0; top: 0; width: 56px; height: 56px;
  background:
    conic-gradient(#0000 0 25%, rgba(255,255,255,.14) 0 50%, #0000 0 75%, rgba(255,255,255,.14) 0);
  background-size: 14px 14px;
}
.hero-art .ring {
  position: absolute; width: 118%; aspect-ratio: 1; border: 1px dashed var(--line-2);
  border-radius: 50%; z-index: -1; opacity: .5;
  -webkit-mask-image: linear-gradient(#000, transparent 70%);
          mask-image: linear-gradient(#000, transparent 70%);
}

/* ============================================================ band / rule */
.rule {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 18px; color: var(--muted);
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
}
.rule::before, .rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ============================================================== pillars === */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) 32px; }
.section-head { margin-bottom: 40px; }
.section-head h2 {
  margin: 12px 0 0; font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800;
  font-style: italic; text-transform: uppercase; letter-spacing: -.01em;
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  position: relative; padding: 26px; background: var(--panel);
  border: 1px solid var(--line); clip-path: var(--clip);
  transition: transform .22s var(--ease), border-color .22s, background .22s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); }
.pillar .ic {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--orange); background: rgba(255,122,0,.1);
  border: 1px solid rgba(255,122,0,.28);
}
.pillar .ic svg { width: 22px; height: 22px; }
.pillar h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 700; letter-spacing: .01em; }
.pillar p { margin: 0; color: var(--grey); font-size: .92rem; }
.pillar .idx {
  position: absolute; top: 18px; right: 20px; font-size: .7rem; font-weight: 700;
  color: var(--muted); font-style: italic;
}

/* ============================================================== steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 28px 24px; border-top: 2px solid var(--orange); background: linear-gradient(180deg, rgba(255,122,0,.06), transparent 60%); }
.step .n { font-size: 2.6rem; font-weight: 900; font-style: italic; color: var(--orange); line-height: 1; }
.step h3 { margin: 10px 0 6px; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.step p { margin: 0; color: var(--grey); font-size: .92rem; }

/* ============================================================== CTA band == */
.cta-band {
  max-width: 1240px; margin: 0 auto 90px; padding: clamp(40px, 6vw, 70px) 32px;
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #26211a, #201f24 60%);
  border: 1px solid var(--line-2); clip-path: var(--clip);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,122,0,.06) 40px 42px);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 800; font-style: italic; text-transform: uppercase; }
.cta-band p { margin: 0 auto 26px; color: var(--grey); max-width: 34em; }

/* ============================================================== footer ==== */
.site-footer {
  border-top: 1px solid var(--line); padding: 32px; margin-top: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--muted); font-size: .78rem;
}
.site-footer img { height: 24px; opacity: .8; }
.site-footer .tag { letter-spacing: .28em; text-transform: uppercase; }

/* ============================================================ auth pages == */
.auth-wrap {
  max-width: 420px; margin: clamp(40px, 9vh, 90px) auto; padding: 40px 36px;
  background: var(--panel); border: 1px solid var(--line-2);
  clip-path: var(--clip); box-shadow: var(--shadow);
  animation: rise .6s var(--ease) both;
}
.auth-wrap .eyebrow { margin-bottom: 14px; }
.auth-wrap h1 { margin: 0 0 22px; font-size: 1.9rem; font-weight: 800; font-style: italic; text-transform: uppercase; }
.auth-wrap label { display: block; margin: 16px 0 7px; color: var(--grey);
  font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.auth-wrap input {
  width: 100%; padding: 13px 14px; color: var(--white); font-family: inherit; font-size: 1rem;
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.auth-wrap input:focus { outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,122,0,.18); }
.auth-wrap .btn { width: 100%; justify-content: center; margin-top: 26px; }
.auth-wrap .alt { margin: 20px 0 0; color: var(--muted); font-size: .9rem; }
.error {
  background: rgba(190,40,40,.14); border: 1px solid rgba(220,70,70,.5);
  color: #ffb4b4; padding: 11px 13px; font-size: .9rem; margin-bottom: 6px;
}

/* ============================================================ dashboard === */
.dash { max-width: 1240px; margin: 0 auto; padding: 44px 32px 80px; }
.dash-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 34px; margin-bottom: 30px;
  background: linear-gradient(120deg, #24201a, var(--panel) 55%);
  border: 1px solid var(--line-2); clip-path: var(--clip);
}
.dash-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,122,0,.06) 40px 42px);
}
.dash-hero > * { position: relative; }
.dash-hero .hi { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; font-style: italic; text-transform: uppercase; margin: 6px 0 4px; }
.dash-hero .hi span { color: var(--orange); }
/* the plan badge is a <span> inside .hi, so the orange rule above would hide its
   own text — restore readable badge text (muted for Free, dark-on-orange for Pro) */
.dash-hero .hi .plan-badge { color: var(--muted); }
.dash-hero .hi .plan-badge.pro { color: #141414; }
.dash-hero .hint { color: var(--grey); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.stat { padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); clip-path: var(--clip); }
.stat b { display: block; font-size: 2rem; font-weight: 900; font-style: italic; line-height: 1; }
.stat span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stat.accent b { color: var(--orange); }

.garage-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.garage-head h2 { margin: 0; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--grey); }

/* garage grouped by car */
.car-group { margin-bottom: 34px; }
.car-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.car-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: .01em; }
.cls-badge { font-size: .64rem; font-weight: 800; letter-spacing: .12em; color: #150d00;
  background: var(--orange); padding: 4px 9px; clip-path: var(--clip); }
.car-count { color: var(--muted); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.car-id { margin-left: auto; color: var(--muted); font-size: .72rem;
  font-family: ui-monospace, Consolas, monospace; opacity: .65; }
@media (max-width: 560px) { .car-id { display: none; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  position: relative; display: block; color: var(--white);
  background: var(--panel); border: 1px solid var(--line);
  clip-path: var(--clip); overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--orange); }
.card .thumb {
  height: 118px; position: relative;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 2px, transparent 2px 6px),
    linear-gradient(135deg, var(--panel-2), #191a20);
  border-bottom: 1px solid var(--line);
}
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block; }
.card .thumb::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--orange), transparent); z-index: 1; }
.card .body { padding: 15px 17px; }
.card .name { font-weight: 700; font-size: 1.02rem; }
.card .car { color: var(--muted); font-size: .82rem; letter-spacing: .04em; }
.card .go { position: absolute; top: 12px; right: 14px; font-size: .66rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange); opacity: 0; transition: opacity .2s; }
.card:hover .go { opacity: 1; }
.card-del { position: absolute; top: 10px; left: 12px; z-index: 3;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(18,18,22,.86); color: var(--grey);
  font-size: .78rem; line-height: 1; cursor: pointer; opacity: 0;
  transition: opacity .18s, color .18s, border-color .18s, background .18s; }
.card:hover .card-del { opacity: 1; }
.card-del:hover { color: #ff6b6b; border-color: #ff6b6b; background: rgba(40,16,16,.9); }
.card-del:disabled { opacity: .5; cursor: default; }

.empty {
  padding: 60px 30px; text-align: center; color: var(--grey);
  border: 1.5px dashed var(--line-2);
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.02) 22px 24px);
}
.empty b { display: block; color: var(--white); font-style: italic; text-transform: uppercase;
  font-size: 1.3rem; margin-bottom: 8px; }

/* ============================================================ animation === */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ============================================================ responsive == */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 260px; }
  .pillars, .steps, .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-header { padding: 12px 18px; }
  .nav { gap: 14px; }
  .nav .hide-sm { display: none; }
  .pillars, .steps, .stats { grid-template-columns: 1fr; }
  .section, .hero, .dash { padding-left: 18px; padding-right: 18px; }
}

/* ---------- pricing (landing) ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  max-width: 760px; margin: 0 auto; }
.price-usd { margin-top: 6px; font-size: 12px; color: var(--muted); }
.price-card {
  position: relative; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px;
}
.price-card.featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 18px 50px rgba(255,122,0,.10); }
.price-card h3 { font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.price-card.featured h3 { color: var(--orange); }
.price-amt { font-size: 30px; font-weight: 800; color: var(--white); }
.price-amt span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price-card li { font-size: 14px; color: var(--muted); padding-left: 20px; position: relative; }
.price-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--orange); }
.price-card li b { color: var(--white); }
.price-card .btn, .price-card .btn-ghost { text-align: center; }
.flag-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #141414; font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.price-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }

/* ---------- plan badge + upgrade strip (garage) ---------- */
.plan-badge {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font-size: 10px; letter-spacing: 2px; font-weight: 700; padding: 4px 11px;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
  background: var(--panel-2);
}
.plan-badge.pro { color: #141414; background: var(--orange); border-color: var(--orange); }
.upgrade-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--orange);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 26px;
  font-size: 14px; color: var(--muted); line-height: 1.5;
}
.upgrade-strip b { color: var(--white); }
.upgrade-strip .btn-ghost { white-space: nowrap; }
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  .upgrade-strip { flex-direction: column; align-items: flex-start; }
}

/* ---------- admin + support ---------- */
.tbl-title { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; font-size: 14px; }
.tbl th { text-align: left; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--white); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { color: var(--white); }
.tbl a:hover { color: var(--orange); }
.tbl code { color: var(--muted); font-size: 12px; }

/* admin payments summary cards */
.pay-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.pay-summary .stat { display: flex; flex-direction: column; gap: 5px;
  padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); clip-path: var(--clip); }
.pay-summary .stat .k { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.pay-summary .stat .v { font-size: 26px; font-weight: 800; color: var(--white); }
.pay-summary .stat .sub { font-size: 11px; color: var(--grey); }
@media (max-width: 720px) { .pay-summary { grid-template-columns: repeat(2, 1fr); } }
.rowlink { cursor: pointer; }
.rowlink:hover td { background: var(--panel-2); }
.status-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.status-badge.open { color: #141414; background: var(--orange); border-color: var(--orange); }
.status-badge.answered { color: #141414; background: #39d353; border-color: #39d353; }
.status-badge.closed { color: var(--muted); background: var(--panel-2); }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.admin-tabs a { padding: 10px 16px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; }
.admin-tabs a.on { color: var(--orange); border-bottom-color: var(--orange); }
.admin-tabs a:hover { color: var(--white); }
.tab-alert { display: inline-block; min-width: 18px; text-align: center; margin-left: 6px; font-size: 10px; font-weight: 700; color: #141414; background: var(--orange); border-radius: 999px; padding: 1px 6px; }
.ticket-new { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 18px; margin-bottom: 26px; }
.ticket-new .tbl-title { margin-top: 0; }
.ticket-form { display: flex; flex-direction: column; gap: 10px; }
.ticket-form input, .ticket-form textarea { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; color: var(--white); padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.ticket-form input:focus, .ticket-form textarea:focus { outline: 1px solid var(--orange); }
.ticket-form .btn { align-self: flex-start; }
.btnrow-flat { display: flex; gap: 10px; flex-wrap: wrap; }
.thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.msg { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; }
.msg.staff { border-left: 3px solid var(--orange); }
.msg-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.msg-head b { color: var(--white); }
.msg.staff .msg-head b { color: var(--orange); }
.msg-body { font-size: 14px; color: var(--white); line-height: 1.6; white-space: pre-wrap; }

/* ---------- vouchers (admin issue console + garage redeem) ---------- */
/* status badges already cover: unredeemed→.open (orange), redeemed→.answered
   (green), revoked→.closed (grey). */

/* on-brand notices (replace ad-hoc inline colours) */
.notice {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; margin-bottom: 18px; font-size: .9rem;
  border: 1px solid var(--line-2); clip-path: var(--clip);
}
.notice::before { font-size: 1rem; line-height: 1; }
.notice.ok  { color: #a9f0b8; background: rgba(57,211,83,.1);  border-color: rgba(57,211,83,.4); }
.notice.ok::before  { content: "\1F3C1"; }        /* 🏁 */
.notice.bad { color: #ffb4b4; background: rgba(190,40,40,.14); border-color: rgba(220,70,70,.5); }
.notice.bad::before { content: "\26A0"; }         /* ⚠ */

/* admin: the "issue a pass" console */
.voucher-console {
  position: relative; overflow: hidden;
  padding: 22px 24px; margin-bottom: 26px;
  background: linear-gradient(120deg, #24201a, var(--panel) 60%);
  border: 1px solid var(--line-2); border-left: 3px solid var(--orange);
  clip-path: var(--clip);
}
.voucher-console::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,122,0,.055) 40px 42px);
}
.voucher-console > * { position: relative; }
.voucher-console .eyebrow { margin-bottom: 16px; }
.voucher-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.voucher-form .fld { display: flex; flex-direction: column; gap: 7px; }
.voucher-form .fld.grow { flex: 1; min-width: 220px; }
.voucher-form label {
  font-size: .62rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.voucher-form input, .voucher-form select {
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 0;
  color: var(--white); padding: 12px 13px; font: inherit; font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.voucher-form input:focus, .voucher-form select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,0,.18);
}
.voucher-form select { cursor: pointer; }
.voucher-form .btn { padding: 12px 24px; }

/* the code cell: a monospace credential token you can copy */
.code-chip { display: inline-flex; align-items: center; gap: 9px; }
.code-chip code {
  font-family: ui-monospace, Consolas, monospace; font-size: .82rem; letter-spacing: .05em;
  color: var(--orange); background: rgba(255,122,0,.09);
  border: 1px solid rgba(255,122,0,.28); padding: 5px 10px;
}
.copy-btn {
  background: transparent; border: 1px solid var(--line-2); color: var(--muted);
  font: inherit; font-size: .58rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 8px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.copy-btn:hover { color: var(--orange); border-color: var(--orange); }
.copy-btn.copied { color: #39d353; border-color: #39d353; }

/* small destructive ghost (revoke) */
.btn-mini {
  background: transparent; border: 1px solid var(--line-2); color: var(--muted);
  font: inherit; font-size: .6rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 11px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.btn-mini:hover { color: #ff6b6b; border-color: #ff6b6b; }

/* garage: redeem-a-pass strip */
.redeem-strip {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 20px; margin-bottom: 26px;
  background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--orange);
  clip-path: var(--clip);
}
.redeem-strip::before {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,122,0,.05) 40px 42px);
}
.redeem-strip > * { position: relative; }
.redeem-strip .rk {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--grey);
}
.redeem-strip .rk b { color: var(--orange); font-style: italic; }
.redeem-strip form { display: flex; gap: 10px; flex: 1; min-width: 220px; margin: 0; }
.redeem-strip input {
  flex: 1; background: var(--ink); border: 1px solid var(--line-2); color: var(--white);
  padding: 12px 14px; font: inherit; letter-spacing: .06em;
  font-family: ui-monospace, Consolas, monospace;
  transition: border-color .2s, box-shadow .2s;
}
.redeem-strip input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,0,.18); }
@media (max-width: 560px) { .redeem-strip { flex-direction: column; align-items: stretch; } }

/* ---------- 3D hero (The Wrap Bay) ---------- */
.hero3d{ position:relative; min-height:86vh; display:flex; flex-direction:column;
  justify-content:flex-end; overflow:hidden; padding:0 clamp(20px,5vw,60px) 34px;
  background:radial-gradient(ellipse at 60% 45%, #17120b 0%, #0a0a0c 55%, #060608 100%); }
.hero3d-canvas-wrap{ position:absolute; inset:0; z-index:0; }
.hero3d-canvas{ display:block; width:100%; height:100%; opacity:0; transition:opacity 1.1s ease; }
.hero3d-canvas-wrap.hero3d-ready .hero3d-canvas{ opacity:1; }
.hero3d-scanlines{ position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.5;
  background:repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px); }
.hero3d-vignette{ position:absolute; inset:0; z-index:1; pointer-events:none;
  background:radial-gradient(ellipse at 58% 55%, transparent 42%, rgba(0,0,0,.62) 100%); }
.hero3d-copy{ position:relative; z-index:2; max-width:760px; margin-bottom:28px; }
.h3-eyebrow{ display:inline-flex; align-items:center; gap:9px; font-size:12px;
  letter-spacing:4px; text-transform:uppercase; color:var(--orange); margin-bottom:20px; }
.h3-eyebrow::before{ content:""; width:34px; height:1px; background:var(--orange); }
.h3-title{ font-size:clamp(44px,8vw,104px); line-height:.9; font-weight:800;
  letter-spacing:-2px; text-transform:uppercase; color:#fff; margin:0; }
.h3-title .o{ color:var(--orange); }
.h3-title span{ display:block; transform:translateY(28px); opacity:0;
  animation:h3rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.h3-title span:nth-child(2){ animation-delay:.1s; }
.h3-title span:nth-child(3){ animation-delay:.2s; }
@keyframes h3rise{ to{ transform:translateY(0); opacity:1; } }
.h3-sub{ margin:24px 0 28px; font-size:clamp(15px,1.6vw,19px); line-height:1.6;
  color:rgba(255,255,255,.74); max-width:540px; }
.h3-cta{ display:flex; gap:14px; flex-wrap:wrap; }
/* supported-games line: what we paint today + what's coming */
.h3-games{ display:flex; align-items:center; flex-wrap:wrap; gap:9px 14px; margin-top:26px;
  font-size:12px; letter-spacing:2px; text-transform:uppercase; }
.h3-games .dot{ width:8px; height:8px; border-radius:50%; background:var(--orange);
  box-shadow:0 0 0 0 rgba(255,122,0,.5); animation:h3pulse 2.2s infinite; }
.h3-games .now{ color:rgba(255,255,255,.82); }
.h3-games .now b{ color:var(--orange); font-weight:700; }
.h3-games .soon{ position:relative; padding-left:16px; color:rgba(255,255,255,.42); }
.h3-games .soon::before{ content:""; position:absolute; left:0; top:50%;
  width:7px; height:1px; background:rgba(255,255,255,.28); }
@keyframes h3pulse{ 0%{ box-shadow:0 0 0 0 rgba(255,122,0,.45); }
  70%{ box-shadow:0 0 0 7px rgba(255,122,0,0); } 100%{ box-shadow:0 0 0 0 rgba(255,122,0,0); } }
.hero3d-foot{ position:relative; z-index:2; display:flex; justify-content:space-between;
  align-items:flex-end; gap:16px; }
.hero3d-swatches{ display:flex; gap:10px; align-items:center; }
.h3-lbl{ font-size:11px; letter-spacing:2px; text-transform:uppercase;
  color:rgba(255,255,255,.4); margin-right:6px; }
.hsw{ width:26px; height:26px; border-radius:50%; cursor:pointer; padding:0;
  border:2px solid rgba(255,255,255,.2); transition:transform .15s, border-color .15s; }
.hsw:hover{ transform:scale(1.15); border-color:#fff; }
.hero3d-hud{ font-family:Consolas,monospace; font-size:11px; letter-spacing:2px;
  text-transform:uppercase; color:rgba(255,122,0,.7); text-align:right; }
.hero3d-hud .big{ color:#fff; font-size:13px; }
@media (max-width:640px){ .hero3d-hud{ display:none; } .hero3d{ min-height:78vh; } }
