/* MotoMerica — brand system */
:root {
  --red: #E50914;
  --red-hot: #ff2a33;
  --dark: #080a0e;
  --card: #12171f;
  --card-2: #0e1218;
  --gold: #F5C518;
  --muted: #9aa3b2;
  --line: rgba(255, 255, 255, 0.08);
  --purple: #8B5CF6;
  --surface: rgba(18, 23, 31, 0.72);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(229, 9, 20, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(40, 70, 140, 0.12), transparent 50%),
    var(--dark);
  background-attachment: fixed;
  color: #fff;
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

::selection { background: var(--red); color: #fff; }

h1, h2, h3, .brand-font {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ——— Promo bar ——— */
.promo-bar {
  background: var(--red);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(229, 9, 20, 0.4);
}
.promo-bar span.timer { font-variant-numeric: tabular-nums; font-family: 'Barlow Condensed', monospace; }

/* ——— Header ——— */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.75);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  position: sticky;
  top: 2.1rem;
  z-index: 40;
}
.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img, .logo svg { height: 1.75rem; width: auto; display: block; }
.logo-word {
  font-family: 'Oswald', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: #fff;
  transform: skewX(-8deg);
  line-height: 1;
  display: inline-block;
}
.logo-word .merica { color: var(--red); }
.logo-word .merica { color: var(--red); }

.nav-main {
  display: none;
  gap: 0.25rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}
@media (min-width: 1024px) { .nav-main { display: flex; align-items: stretch; } }

.nav-main button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 1.35rem 0;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-main button:hover { color: #fff; }
.nav-main button.page-tab-active {
  border-bottom-color: var(--red);
  color: #fff;
}
.nav-main button.admin-nav { color: rgba(255, 215, 0, 0.75); }
.nav-main button.admin-nav:hover,
.nav-main button.admin-nav.page-tab-active { color: var(--gold); }

.badge-new {
  background: var(--red);
  color: #fff;
  font-size: 0.55rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 900;
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-ghost {
  background: none; border: none; color: #d1d5db;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.btn-ghost:hover { color: #fff; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-block; } }

.btn-cart {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.28);
}
.btn-cart:hover { background: #c40812; box-shadow: 0 10px 24px rgba(229, 9, 20, 0.35); }
.btn-cart:active { transform: scale(0.97); }
.cart-count {
  background: #000;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
}

.mobile-nav-toggle {
  display: flex;
  background: none; border: 1px solid #333; color: #fff;
  width: 2.5rem; height: 2.5rem; border-radius: 6px;
  align-items: center; justify-content: center; cursor: pointer;
}
@media (min-width: 1024px) { .mobile-nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #000;
  border-bottom: 1px solid #1f2937;
  padding: 0.5rem 1rem 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav button {
  background: none; border: none; color: #9ca3af;
  text-align: left; padding: 0.85rem 0;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.85rem; cursor: pointer; border-bottom: 1px solid #1a1a1a;
}
.mobile-nav button:hover, .mobile-nav button.page-tab-active { color: #fff; }

/* ——— Buttons ——— */
.btn-primary {
  background: linear-gradient(180deg, var(--red-hot) 0%, var(--red) 100%);
  color: #fff;
  border: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 10px 28px rgba(229, 9, 20, 0.32);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.7rem 1.25rem; font-size: 0.8rem; }

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 3.25rem 1rem 3.75rem;
  background:
    radial-gradient(ellipse 70% 55% at 78% 35%, rgba(229, 9, 20, 0.22), transparent 58%),
    radial-gradient(ellipse 45% 40% at 12% 75%, rgba(50, 90, 180, 0.12), transparent 52%),
    linear-gradient(165deg, #10151d 0%, var(--dark) 68%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.45), transparent);
  pointer-events: none;
}
.hero-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .hero { padding: 4.5rem 1rem 5.25rem; }
}

.pill {
  display: inline-block;
  background: rgba(245, 197, 24, 0.08);
  color: var(--gold);
  border: 1px solid rgba(245, 197, 24, 0.28);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 0.95;
  margin: 1rem 0 0.75rem;
  animation: riseIn 0.7s ease both;
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
  line-height: 1.5;
  margin: 0 0 1.75rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-brand-signal {
  font-family: 'Oswald', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  transform: skewX(-6deg);
  opacity: 0.95;
}
.hero-brand-signal .merica { color: var(--red); }

.prize-frame {
  position: relative;
  animation: floatIn 0.9s ease both;
}
.prize-glow {
  position: absolute;
  inset: -1.5rem;
  background: radial-gradient(circle at 50% 40%, rgba(229, 9, 20, 0.35), transparent 65%);
  filter: blur(28px);
  pointer-events: none;
  animation: pulseGlow 3.5s ease-in-out infinite;
}
.prize-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.prize-card img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) { .prize-card img { height: 20rem; } }
.prize-meta { padding: 1.15rem 1.25rem 1.35rem; }
.prize-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.progress {
  width: 100%;
  height: 0.7rem;
  background: #1f2937;
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ——— Sections ——— */
.section-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.section-wrap + .section-wrap,
.section-stack { display: flex; flex-direction: column; gap: 4rem; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f2937;
}
@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  margin: 0 0 0.25rem;
}
.section-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.model-tag {
  font-size: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  align-self: flex-start;
}

/* ——— Product grids ——— */
.merch-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .merch-grid { grid-template-columns: repeat(3, 1fr); } }

.product-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  line-height: 1.4;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.25s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 9, 20, 0.35);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
}
.product-media {
  position: relative;
  height: 16rem;
  background: linear-gradient(160deg, #151515 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }
.entry-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: var(--red);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 0.04em;
}
.product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-body h3 {
  font-family: 'Barlow', sans-serif;
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.price {
  color: var(--gold);
  font-weight: 900;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}
.product-body .btn-primary,
.product-body .btn-dark {
  margin-top: auto;
}

.btn-dark {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-dark:hover { background: #c40812; }
.btn-dark:active { transform: scale(0.98); }

/* ——— Ticket comps ——— */
.ticket-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .ticket-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ticket-grid { grid-template-columns: repeat(3, 1fr); } }

.ticket-card-main {
  border-color: rgba(212, 175, 55, 0.35);
}
.ticket-card-main .ticket-flag {
  background: linear-gradient(135deg, #b8860b, #d4af37);
  color: #111;
}

.ticket-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  backdrop-filter: blur(10px);
}
.ticket-card:hover {
  border-color: rgba(229, 9, 20, 0.3);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}
.ticket-media {
  position: relative;
  height: 14rem;
  background: #111;
}
.ticket-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ticket-flag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  text-transform: uppercase;
}
.ticket-body { padding: 1.5rem; flex: 1; }
.ticket-body h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.ticket-body > p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1rem;
}
.ticket-foot {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(31, 41, 55, 0.5);
  padding-top: 1.25rem;
  margin-top: auto;
}
.ticket-price {
  font-size: 1.5rem;
  font-weight: 900;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.qty-row label { font-size: 0.7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.qty-row select {
  background: #111;
  border: 1px solid #374151;
  color: #fff;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

/* ——— How it works ——— */
.how-strip {
  background: #000;
  border-top: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
  padding: 3rem 1rem;
}
.how-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .how-inner { grid-template-columns: repeat(3, 1fr); } }
.how-step { text-align: center; padding: 1rem; }
.how-num {
  display: inline-flex;
  width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  background: var(--red);
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.how-step h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  font-style: italic;
}
.how-step p { color: var(--muted); font-size: 0.875rem; margin: 0; line-height: 1.45; }

/* ——— Events ——— */
.tab-panel, .view-panel { display: none; }
.tab-panel.active, .view-panel.active { display: block; }
.view-panel.padded,
.tab-panel.padded {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.panel-intro {
  background: rgba(0,0,0,0.55);
  padding: 1.5rem;
  border-radius: 0.85rem;
  border: 1px solid #1f2937;
  margin-bottom: 1.5rem;
}
.panel-intro h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.5rem; }
.panel-intro p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.subnav { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.subnav button {
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  background: #1f2937;
  color: #d1d5db;
  transition: background 0.2s, color 0.2s;
}
.subnav button.active { background: var(--red); color: #fff; }

.map-wrap {
  position: relative;
  width: 100%;
  background: #0b0c10;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.leaflet-map {
  width: 100%;
  height: 420px;
  z-index: 1;
  background: #0b0c10;
}
@media (min-width: 768px) {
  .leaflet-map { height: 520px; }
  .leaflet-map.tall { height: 580px; }
}

.mm-marker {
  background: transparent !important;
  border: none !important;
}
.mm-marker span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25), 0 2px 8px rgba(0,0,0,0.5);
}
.map-popup { font-family: 'Barlow', sans-serif; min-width: 180px; }
.map-popup strong { display: block; margin-bottom: 0.25rem; }
.map-popup .mp-cat { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.2rem; }
.map-popup .mp-date { color: #FFD700; font-size: 0.8rem; font-weight: 700; margin: 0.25rem 0; }
.map-popup p { margin: 0.4rem 0 0; font-size: 0.8rem; color: #444; line-height: 1.35; }
.leaflet-popup-content-wrapper {
  background: #1F2833;
  color: #fff;
  border-radius: 8px;
  border: 1px solid #2a3544;
}
.leaflet-popup-tip { background: #1F2833; }
.leaflet-popup-content .map-popup p { color: #9ca3af; }

.events-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .events-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.filter-chip {
  border: 1px solid #374151;
  background: #111827;
  color: #9ca3af;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover { color: #fff; border-color: #6b7280; }
.filter-chip.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.event-sync-status {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.event-list { display: flex; flex-direction: column; gap: 0.75rem; max-height: 520px; overflow-y: auto; padding-right: 0.25rem; }
.event-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid #1f2937;
  border-radius: 8px;
  transition: border-color 0.2s;
}
.event-card:hover { border-color: #4b5563; }
.event-date {
  background: var(--red);
  color: #fff;
  padding: 0.65rem;
  border-radius: 8px;
  text-align: center;
  min-width: 3.75rem;
  flex-shrink: 0;
}
.event-date .d { display: block; font-size: 1.25rem; font-weight: 900; line-height: 1; }
.event-date .m { display: block; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; margin-top: 0.15rem; }
.event-card-body { min-width: 0; }
.event-cat {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.event-card h3 {
  font-family: 'Barlow', sans-serif;
  font-style: normal;
  font-size: 1.05rem;
  margin: 0.2rem 0;
  text-transform: none;
  letter-spacing: 0;
}
.event-card p { margin: 0; font-size: 0.75rem; color: var(--muted); }
.event-desc { margin-top: 0.35rem !important; line-height: 1.4; color: #9ca3af !important; }

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid #1f2937;
  background: rgba(0,0,0,0.4);
  font-size: 0.7rem;
  color: var(--muted);
}
.legend-row span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.legend-show::before { background: #E50914; }
.legend-jdm::before { background: #34D399; }
.legend-low::before { background: #A78BFA; }
.legend-bike::before { background: #F59E0B; }
.legend-auction::before { background: #FFD700; }
.legend-race::before { background: #38BDF8; }

/* ——— Membership ——— */
.member-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 197, 24, 0.28);
  background:
    radial-gradient(ellipse at 18% 40%, rgba(245, 197, 24, 0.14), transparent 55%),
    linear-gradient(135deg, #17120a 0%, var(--card) 48%, #0d1118 100%);
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .member-band {
    grid-template-columns: 1.4fr 1fr;
    padding: 2.5rem;
  }
}
.member-band h2 { margin: 0.5rem 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.member-band p { color: var(--muted); margin: 0 0 1.25rem; max-width: 36rem; line-height: 1.5; }
.member-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.65rem;
}
.member-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}
.member-perks i { color: var(--gold); margin-top: 0.15rem; }
.member-card {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 0.85rem;
  padding: 1.5rem;
  text-align: center;
}
.member-card .price-free {
  font-family: 'Oswald', sans-serif;
  font-style: italic;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin: 0.5rem 0;
}
.member-card .sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem; }
body.is-member .member-join-btn { display: none; }
body.is-member .member-active-note { display: block !important; }

.entry-ways {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) { .entry-ways { grid-template-columns: repeat(3, 1fr); } }
.way-card {
  background: var(--card);
  border: 1px solid #1f2937;
  border-radius: 0.85rem;
  padding: 1.25rem;
}
.way-card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}
.way-card p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.way-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: rgba(229, 9, 20, 0.15);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.way-card.gold .way-icon {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
}

.section-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-gold {
  background: var(--gold);
  color: #111;
  border: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-gold:active { transform: scale(0.98); }

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.btn-edit {
  background: #111827;
  border: 1px solid #4b5563;
  color: #e5e7eb;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
}
.btn-edit:hover { border-color: var(--gold); color: var(--gold); }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 0.75rem;
}
.admin-tab {
  background: #111827;
  border: 1px solid #374151;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}
.admin-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

.admin-merch-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.admin-merch-preview img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #1f2937;
  flex-shrink: 0;
}

.crm-scroll {
  overflow-x: auto;
  max-height: 480px;
  overflow-y: auto;
}
.crm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.crm-table th {
  text-align: left;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  background: var(--card);
}
.crm-table td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #1a1f27;
  vertical-align: top;
}
.crm-table .mono { font-family: ui-monospace, monospace; font-size: 0.75rem; color: #9ca3af; }
.crm-table .gold-text { color: var(--gold); font-weight: 800; }
.crm-table .sub { font-size: 0.7rem; color: #6b7280; margin-top: 0.15rem; }

.legal-doc {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid #1f2937;
  border-radius: 0.85rem;
  padding: 2rem 1.5rem;
  line-height: 1.6;
}
@media (min-width: 768px) { .legal-doc { padding: 2.5rem 3rem; } }
.legal-doc h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.35rem;
}
.legal-updated {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 1.5rem;
}
.legal-doc h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
  color: #fff;
}
.legal-doc p, .legal-doc li {
  color: #d1d5db;
  font-size: 0.95rem;
}
.legal-doc ul { padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
.legal-doc a { color: var(--red); }

.data-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.35rem;
}
.data-badge.mock {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.35);
}
.data-badge.verified {
  background: rgba(52, 211, 153, 0.12);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.data-badge.typical {
  background: rgba(156, 163, 175, 0.12);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}
.mock-banner {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin: 0 0 1rem;
}
.mock-banner code {
  color: var(--gold);
  font-size: 0.75rem;
}
.event-ext {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}
.btn-dark.draw-ended,
button.draw-ended {
  background: #374151 !important;
  color: #9ca3af !important;
  cursor: default;
  pointer-events: none;
}
.stripe-live {
  color: #34D399 !important;
}

.footer-admin { display: none; }

.tooltip {
  position: fixed;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  max-width: 280px;
  pointer-events: none;
  z-index: 9999;
  display: none;
  border: 1px solid #333;
  line-height: 1.4;
}

/* ——— Winners ——— */
.draw-banner {
  background: linear-gradient(90deg, #450a0a, var(--card), #111827);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .draw-banner { flex-direction: row; justify-content: space-between; }
}
.live-pill {
  background: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: pulse 1.5s ease infinite;
}
.draw-banner h2 { margin: 0.75rem 0 0.35rem; font-size: 1.75rem; }
.draw-banner p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.countdown-box {
  background: rgba(0,0,0,0.6);
  border: 1px solid #1f2937;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  min-width: 14rem;
}
.countdown-box label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}
.countdown-box .clock {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  font-family: 'Barlow Condensed', ui-monospace, monospace;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.winners-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .winners-grid { grid-template-columns: repeat(3, 1fr); } }

.winner-card {
  background: var(--card);
  border: 1px solid #1f2937;
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.winner-media { position: relative; height: 14rem; background: #111; }
.winner-media img { width: 100%; height: 100%; object-fit: cover; }
.ticket-chip {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.8);
  color: var(--gold);
  font-size: 0.7rem;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}
.winner-body { padding: 1.25rem; flex: 1; }
.winner-body .tag {
  color: var(--red);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.winner-body h3 {
  font-family: 'Barlow', sans-serif;
  font-style: normal;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0.35rem 0;
  text-transform: none;
  letter-spacing: 0;
}
.winner-body p { color: var(--muted); font-size: 0.875rem; margin: 0; }
.winner-body .meta { font-size: 0.7rem; color: #6b7280; margin-top: 0.5rem; }
.winner-foot { padding: 0 1.25rem 1.25rem; }

/* ——— Admin ——— */
.admin-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .admin-head { flex-direction: row; align-items: center; justify-content: space-between; }
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--card);
  padding: 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid #1f2937;
}
.stat-card span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.stat-card p {
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0.35rem 0 0;
  font-family: 'Oswald', sans-serif;
  font-style: italic;
}
.stat-card .gold { color: var(--gold); }
.stat-card .purple { color: var(--purple); }

.admin-cols {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) { .admin-cols { grid-template-columns: 1fr 1fr; } }
.admin-panel {
  background: var(--card);
  border: 1px solid #1f2937;
  border-radius: 0.85rem;
  padding: 1.5rem;
}
.admin-panel h3 {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}
.admin-row {
  background: #111827;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.admin-row p { margin: 0; font-weight: 700; }
.admin-row .sub { font-size: 0.7rem; color: var(--muted); font-weight: 400; margin-top: 0.2rem; }
.admin-pool-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.admin-pool-row:last-child { border-bottom: none; }
.admin-pool-head { margin-bottom: 0.75rem; }
.admin-pool-head .sub { display: block; margin-top: 0.25rem; font-size: 0.7rem; color: var(--muted); }
.admin-pool-fields { align-items: end; }
.status {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-live { background: #052e16; color: #4ade80; border: 1px solid #166534; }
.status-pub { background: #172554; color: #60a5fa; border: 1px solid #1e40af; }

/* ——— Modals ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  background: var(--card);
  border: 1px solid #1f2937;
  border-radius: 0.85rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: modalIn 0.25s ease;
}
.modal-panel.wide { max-width: 40rem; }
.modal-panel h3 {
  margin: 0;
  font-size: 1.25rem;
}
.field label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.field input, .field select {
  width: 100%;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 0.75rem;
  color: #fff;
  font-size: 0.875rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.cart-meta { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }
.instant-ticket-summary {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid #1f2937;
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.instant-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}
.instant-ticket-row span { color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.instant-ticket-note { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--gold); }

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.cart-drawer.open { display: block; }
.cart-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 100%;
  max-width: 24rem;
  background: var(--card);
  border-left: 1px solid #1f2937;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease;
}
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f2937;
}
.cart-head h3 { margin: 0; font-size: 1.25rem; }
.close-x {
  background: none; border: none; color: #9ca3af;
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.close-x:hover { color: #fff; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 0; }
.cart-empty { color: #6b7280; text-align: center; padding: 2rem 0; font-size: 0.875rem; }
.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  background: #111827;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #1f2937;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.cart-line-main { flex: 1; min-width: 0; }
.cart-line-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.cart-line .entries { font-size: 0.7rem; color: var(--gold); margin-top: 0.15rem; }
.cart-remove {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
}
.cart-remove:hover { color: var(--red); }
.checkout-lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.checkout-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #1f2937;
  font-size: 0.9rem;
}
.checkout-totals {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}
.checkout-note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.checkout-buyer {
  margin: 0 0 1.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid #1f2937;
}
.checkout-buyer h4 {
  margin: 1rem 0 0.35rem;
  font-family: var(--font-display, Oswald, sans-serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.member-hub {
  position: relative;
}
.member-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: var(--gold);
  font-family: var(--font-display, Oswald, sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.member-drop-toggle i { font-size: 0.65rem; opacity: 0.8; }
.member-level-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  letter-spacing: 0.06em;
}
.member-drop-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(20rem, calc(100vw - 2rem));
  background: #0c0f14;
  border: 1px solid #2a3340;
  padding: 1rem;
  z-index: 80;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.member-drop-panel[hidden] { display: none !important; }
.member-drop-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.65rem;
}
.member-drop-head strong {
  font-family: var(--font-display, Oswald, sans-serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.member-drop-head span {
  color: var(--muted);
  font-size: 0.8rem;
}
.member-xp-bar {
  height: 4px;
  background: #1f2937;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.member-xp-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), #ff6b4a);
  transition: width 0.35s ease;
}
.member-drop-stats {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
}
.member-drop-stats li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px solid #1a222d;
  padding-bottom: 0.25rem;
}
.member-drop-stats strong { color: #fff; }
.member-drop-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.member-badge-chip {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #334155;
  color: var(--gold);
  padding: 0.2rem 0.4rem;
}
.member-drop-panel .btn-block { margin-top: 0.35rem; }
.member-hub-join { color: var(--gold); }
.cart-foot {
  border-top: 1px solid #1f2937;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-entries {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
}
.cart-entries span:last-child { color: var(--gold); font-size: 1.15rem; font-weight: 900; }

.video-placeholder {
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid #1f2937;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}

.media-preview {
  display: block;
  margin-top: 0.65rem;
  max-width: 100%;
  max-height: 9rem;
  object-fit: contain;
  border: 1px solid #2a3340;
  background: #0a0c10;
}
.field input[type="file"] {
  margin-top: 0.45rem;
  width: 100%;
  color: var(--muted);
  font-size: 0.8rem;
}
.field select[data-media-select] {
  width: 100%;
  background: #0c0f14;
  border: 1px solid #2a3340;
  color: #fff;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #d1d5db;
  margin: 0.45rem 0;
  line-height: 1.35;
  cursor: pointer;
}
.check-line input { margin-top: 0.15rem; accent-color: var(--red); }
.checkout-eligibility,
.checkout-shipping {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #1f2937;
}
.support-form {
  max-width: 32rem;
  margin-top: 1.25rem;
}
.support-form textarea {
  width: 100%;
  background: #0c0f14;
  border: 1px solid #2a3340;
  color: #fff;
  padding: 0.65rem 0.75rem;
  font: inherit;
  resize: vertical;
  min-height: 7rem;
}
.admin-gate {
  min-height: 50vh;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}
.admin-gate[hidden] { display: none !important; }
.admin-gate-card {
  width: min(24rem, 100%);
  background: #0c0f14;
  border: 1px solid #2a3340;
  padding: 1.5rem;
}
.admin-gate-card h2 {
  font-family: var(--font-display, Oswald, sans-serif);
  margin: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-gate-card p { color: var(--muted); font-size: 0.85rem; }
.admin-gate-card code { color: var(--gold); font-size: 0.75rem; }
#admin-dashboard[hidden] { display: none !important; }

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid #1f2937;
  background: rgba(0,0,0,0.85);
  padding: 2.5rem 1.25rem;
  text-align: center;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-footer .logo-word { font-size: 1.35rem; display: inline-block; }
.site-footer p {
  color: #6b7280;
  font-size: 0.75rem;
  margin: 0.75rem 0 0;
  text-align: center;
  max-width: 42rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 48rem;
}
.footer-links a {
  color: #6b7280;
  font-size: 0.7rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}
.footer-links a:hover { color: #fff; }
.legal-note {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  font-size: 0.65rem;
  color: #4b5563;
  line-height: 1.5;
  text-align: center;
}
.legal-note a {
  color: #9ca3af;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-note a:hover { color: #fff; }
.terms-asterisk {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}
.terms-asterisk a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ——— Motion ——— */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
