
:root {
  --bg: #06060a;
  --bg-2: #0c0b13;
  --card: rgba(12, 10, 20, 0.78);
  --card-solid: rgba(13, 11, 22, 0.94);
  --card-soft: rgba(21, 17, 35, 0.86);
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.16);
  --txt: #f8f5ff;
  --muted: #b7b2ca;
  --purple: #8f5dff;
  --purple-2: #bf8dff;
  --pink: #de72ff;
  --cyan: #74deff;
  --shadow: 0 14px 36px rgba(0,0,0,.46);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Rajdhani", sans-serif;
  color: var(--txt);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }

.ambient-bg,
.ambient-grid,
.ambient-vignette,
.cursor-glow,
.top-progress {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-bg {
  z-index: -5;
  background:
    radial-gradient(700px 380px at 10% 0%, rgba(143,93,255,.19), transparent 68%),
    radial-gradient(580px 360px at 95% 10%, rgba(222,114,255,.16), transparent 60%),
    radial-gradient(520px 340px at 60% 88%, rgba(116,222,255,.12), transparent 62%),
    linear-gradient(180deg, rgba(6,6,10,.92), rgba(6,6,10,.98)),
    url("images/ui/bg_acepvp.jpg") center/cover no-repeat;
  animation: bgFloat 18s ease-in-out infinite alternate;
}

.ambient-grid {
  z-index: -4;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 20%, #000 15%, transparent 80%);
}

.ambient-vignette {
  z-index: -3;
  background:
    radial-gradient(circle at 50% -20%, transparent 50%, rgba(0,0,0,.55) 95%),
    radial-gradient(circle at 50% 120%, transparent 55%, rgba(0,0,0,.55) 100%);
}

.cursor-glow {
  z-index: 3;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  inset: auto;
  left: -999px;
  top: -999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(143,93,255,.18) 0%, rgba(143,93,255,.09) 30%, rgba(143,93,255,0) 70%);
  mix-blend-mode: screen;
  opacity: .85;
  transition: left .06s linear, top .06s linear, opacity .2s ease;
}
@media (pointer: coarse) {
  .cursor-glow { display: none; }
}

.top-progress {
  inset: 0 auto auto 0;
  width: 0%;
  height: 3px;
  z-index: 50;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
  box-shadow: 0 0 18px rgba(143,93,255,.55);
}

.container {
  width: min(1220px, calc(100% - 28px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 500px;
  padding: 24px 0 18px;
  overflow: clip;
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}
.hero__media {
  background:
    linear-gradient(180deg, rgba(8,7,14,.20), rgba(8,7,14,.82)),
    url("images/ui/hero_banner.png") center/cover no-repeat;
  filter: saturate(1.12) brightness(.95);
  transform: scale(1.03);
}
.hero__veil {
  background:
    radial-gradient(circle at 20% 25%, rgba(143,93,255,.22), transparent 42%),
    radial-gradient(circle at 82% 32%, rgba(222,114,255,.16), transparent 45%),
    linear-gradient(180deg, rgba(6,6,10,.15), rgba(6,6,10,.5));
}

.hero__card {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12,10,21,.68), rgba(10,8,18,.88));
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05);
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(143,93,255,.35), rgba(222,114,255,.18), rgba(116,222,255,.2));
  opacity: .35;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero__shine {
  position: absolute;
  inset: -40% auto -40% -20%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent);
  transform: skewX(-22deg);
  animation: heroSweep 8s linear infinite;
  pointer-events: none;
}

.hero__logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  align-self: start;
  border-radius: 18px;
  padding: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 6px 18px rgba(0,0,0,.35);
}

.hero__eyebrow {
  margin: 0;
  color: var(--purple-2);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .84rem;
  font-weight: 700;
}
.hero__title {
  margin: 4px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.55rem, 3.4vw, 2.4rem);
  line-height: 1.05;
}
.hero__title span {
  background: linear-gradient(135deg, #fff, #e6d7ff 45%, #bfe7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 840px;
  line-height: 1.28;
  font-size: 1.03rem;
}
.hero__subtitle strong { color: #fff; }

.hero__stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hero-stat {
  position: relative;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  overflow: hidden;
}
.hero-stat::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,93,255,.18), transparent 70%);
}
.hero-stat__label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
}
.hero-stat__value, .hero-stat__fixed {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  font-size: 1.28rem;
  color: #fff;
}
.hero-stat__fixed { font-size: 1.08rem; color: #f2e9ff; }

.hero__chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__chips span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .86rem;
  font-weight: 700;
  color: #eee6ff;
  border: 1px solid rgba(143,93,255,.3);
  background: rgba(143,93,255,.11);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  animation: chipPulse 4s ease-in-out infinite;
}
.hero__chips span:nth-child(2) { animation-delay: .7s; }
.hero__chips span:nth-child(3) { animation-delay: 1.4s; }

.hero__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  --btn-bg: rgba(255,255,255,.04);
  --btn-border: rgba(255,255,255,.12);
  appearance: none;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--txt);
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.12), transparent 80%);
  transform: translateX(-130%);
  transition: transform .45s ease;
}
.btn:hover::before { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  --btn-border: rgba(255,255,255,.08);
  --btn-bg: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 10px 20px rgba(143,93,255,.25);
  color: #fff;
}
.btn--primary:hover { box-shadow: 0 14px 26px rgba(143,93,255,.34); }
.btn--glass {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.14);
}
.btn--glass:hover { border-color: rgba(143,93,255,.36); background: rgba(143,93,255,.06); }
.btn--outline {
  border-color: rgba(143,93,255,.35);
  background: rgba(143,93,255,.08);
}
.btn--outline:hover { background: rgba(143,93,255,.14); }

.main-wrap { padding-bottom: 28px; }

.info-banner {
  position: relative;
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12,10,21,.9), rgba(10,9,16,.94));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.info-banner__pulse {
  position: absolute;
  inset: auto auto -42px -42px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(143,93,255,.22), transparent 70%);
  animation: softBreathe 5s ease-in-out infinite;
}
.info-banner__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(143,93,255,.16);
  border: 1px solid rgba(143,93,255,.3);
  color: #eedfff;
  font-size: 1.1rem;
  z-index: 1;
}
.info-banner__text h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}
.info-banner__text p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.25;
}
.info-banner__text strong { color: #fff; }

.segment {
  position: relative;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.segment__thumb {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  width: calc(50% - 10px);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(143,93,255,.22), rgba(222,114,255,.18));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 8px 16px rgba(143,93,255,.15);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), width .28s cubic-bezier(.2,.7,.2,1);
  z-index: 0;
}
.segment__btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
  min-height: 68px;
  display: grid;
  align-content: center;
}
.segment__btn:hover { transform: translateY(-1px); }
.segment__btn.is-active { color: #fff; }
.segment__btn .segment__label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.05;
}
.segment__btn small { display: block; font-size: .8rem; opacity: .95; margin-top: 2px; }

.panel {
  display: none;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(10px);
}
.panel.is-active {
  display: block;
  animation: panelIn .35s ease forwards;
}

.panel-shell {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(13,11,22,.92), rgba(10,9,16,.96));
  box-shadow: var(--shadow);
  padding: 14px;
  overflow: hidden;
}
.panel-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 120px at 15% 0%, rgba(143,93,255,.11), transparent 70%),
    radial-gradient(300px 100px at 85% 10%, rgba(116,222,255,.07), transparent 70%);
  pointer-events: none;
}
.panel-shell > * { position: relative; z-index: 1; }
.panel-shell--coins { min-height: 420px; }
.panel-shell--vehicles { min-height: 620px; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
}
.section-head__eyebrow {
  margin: 0;
  color: var(--purple-2);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .75rem;
  font-weight: 700;
}
.section-head h2 {
  margin: 2px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
}
.section-head__desc {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  text-align: right;
  line-height: 1.2;
}

.coins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.coin-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  min-height: 352px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(17,14,29,.92), rgba(12,10,21,.96));
  box-shadow: 0 10px 24px rgba(0,0,0,.36);
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.coin-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(255,255,255,.07) 50%, transparent 90%);
  transform: translateX(-120%);
  animation: cardSweep 8s linear infinite;
  opacity: .5;
}
.coin-card:nth-child(2)::before { animation-delay: .8s; }
.coin-card:nth-child(3)::before { animation-delay: 1.6s; }
.coin-card:nth-child(4)::before { animation-delay: 2.4s; }
.coin-card:nth-child(5)::before { animation-delay: 3.2s; }
.coin-card:hover {
  border-color: rgba(143,93,255,.33);
  box-shadow: 0 18px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(143,93,255,.12) inset;
}
.coin-card > * { position: relative; z-index: 1; }

.coin-card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid rgba(143,93,255,.32);
  background: rgba(143,93,255,.1);
  font-weight: 700;
  font-size: .82rem;
}
.coin-badge i {
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, #fff, var(--purple-2));
  box-shadow: 0 0 10px rgba(143,93,255,.75);
}
.coin-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.coin-price strong { font-size: 1.08rem; }
.coin-price span { margin-top: 4px; color: var(--muted); font-size: .82rem; }

.coin-title {
  margin: 2px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: .98rem;
}
.coin-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.15;
  min-height: 32px;
}
.coin-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  min-height: 66px;
}
.coin-perks li {
  position: relative;
  color: #ddd5ef;
  font-size: .88rem;
  padding-left: 14px;
}
.coin-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 0 10px rgba(143,93,255,.55);
}
.paypal-slot {
  margin-top: auto;
  min-height: 42px;
  border-radius: 12px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.015);
}
.coin-foot {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.1;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 8px;
  margin-top: 2px;
}
.paypal-fallback {
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.02);
  font-size: .88rem;
}
.paypal-fallback a { color: #f0e8ff; }

.vehicle-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.vehicle-toolbar__filters,
.vehicle-toolbar__controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filter {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
  color: var(--txt);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: all .18s ease;
}
.filter:hover { border-color: rgba(143,93,255,.35); }
.filter.is-active {
  background: rgba(143,93,255,.14);
  border-color: rgba(143,93,255,.36);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.vehicle-toolbar__controls input,
.vehicle-toolbar__controls select {
  background: rgba(255,255,255,.03);
  color: var(--txt);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  min-height: 38px;
}
.vehicle-toolbar__controls input::placeholder { color: #a8a2bc; }
.vehicle-toolbar__controls input { min-width: 220px; flex: 1 1 220px; }
.vehicle-toolbar__controls select { min-width: 170px; }
.vehicle-count {
  margin-left: auto;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-weight: 700;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(318px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.vehicle-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 412px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(16,13,28,.92), rgba(10,9,18,.95));
  box-shadow: 0 12px 28px rgba(0,0,0,.38);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .2s ease, box-shadow .22s ease, border-color .22s ease, opacity .22s ease;
}
.vehicle-card::after {
  content: "";
  position: absolute;
  inset: auto -25% -70px;
  height: 160px;
  background: radial-gradient(closest-side, rgba(143,93,255,.22), transparent 80%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.vehicle-card:hover {
  border-color: rgba(143,93,255,.32);
  box-shadow: 0 20px 40px rgba(0,0,0,.52), 0 0 0 1px rgba(143,93,255,.1) inset;
}
.vehicle-card:hover::after { opacity: 1; }
.vehicle-card.is-hidden { display: none; }

.vehicle-card__imgWrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.vehicle-card__glow {
  position: absolute;
  inset: auto 10% -30px 10%;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(143,93,255,.34), rgba(143,93,255,0));
  filter: blur(10px);
  transform: translateY(14px);
  opacity: .85;
}
.vehicle-card__imgWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.vehicle-card:hover .vehicle-card__imgWrap img { transform: scale(1.04); }
.vehicle-card__imgWrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(8,8,13,.75) 100%);
}
.vehicle-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .76rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(6px);
}
.chip--armored { border-color: rgba(116,222,255,.35); color: #dcf6ff; }
.chip--epic { border-color: rgba(143,93,255,.38); color: #eddfff; background: rgba(143,93,255,.12); }
.chip--legendary { border-color: rgba(222,114,255,.35); color: #ffe5ff; background: rgba(222,114,255,.11); }
.chip--mythic { border-color: rgba(255,220,144,.38); color: #fff0cc; background: rgba(255,220,144,.10); }
.vehicle-priceTag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(7,6,11,.62);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
}

.vehicle-body {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
}
.vehicle-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: .95rem;
  line-height: 1.15;
  min-height: 2.3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vehicle-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.15;
  min-height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vehicle-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 6px;
}
.vehicle-meta > div {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  padding: 7px;
  min-height: 50px;
}
.vehicle-meta span {
  display: block;
  color: var(--muted);
  font-size: .75rem;
}
.vehicle-meta strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: .84rem;
  line-height: 1.05;
  word-break: break-word;
}
.vehicle-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cta-lux {
  position: relative;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(143,93,255,.10), rgba(17,14,28,.95) 35%, rgba(116,222,255,.06));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  overflow: hidden;
}
.cta-lux__shine {
  position: absolute;
  inset: -20% auto -20% -25%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-18deg);
  animation: heroSweep 9s linear infinite;
}
.cta-lux > * { position: relative; z-index: 1; }
.cta-lux__eyebrow {
  margin: 0;
  color: var(--purple-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: .78rem;
}
.cta-lux h3 {
  margin: 4px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.08rem;
}
.cta-lux p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
}
.cta-lux__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer {
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(7,6,11,.7);
  backdrop-filter: blur(10px);
}
.footer__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__brand img {
  width: 38px; height: 38px; object-fit: contain;
}
.footer__brand p { margin: 0; font-weight: 700; }
.footer__brand span { display: block; color: var(--muted); font-size: .86rem; margin-top: -2px; }
.footer__links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer__links button,
.footer__links a {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
  color: var(--txt);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.footer__links button:hover,
.footer__links a:hover { border-color: rgba(143,93,255,.35); }
.footer__copy { color: var(--muted); font-weight: 700; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,4,8,.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: fadeIn .22s ease forwards;
}
.modal__dialog {
  position: relative;
  width: min(1060px, calc(100% - 22px));
  margin: 2.3vh auto;
  min-height: 520px;
  background: linear-gradient(180deg, rgba(14,11,23,.95), rgba(9,8,15,.98));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.56);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  transform: translateY(14px) scale(.985);
  opacity: 0;
  animation: modalIn .26s cubic-bezier(.2,.8,.2,1) forwards;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.modal__left {
  position: relative;
  min-height: 320px;
  background: radial-gradient(circle at 50% 78%, rgba(143,93,255,.16), transparent 55%);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal__left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.modal__left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(6,6,10,.82));
  z-index: 1;
}
.modal__glare {
  position: absolute;
  inset: -10% -15%;
  background:
    radial-gradient(circle at 28% 24%, rgba(143,93,255,.18), transparent 35%),
    radial-gradient(circle at 84% 30%, rgba(116,222,255,.13), transparent 38%),
    linear-gradient(90deg, transparent 20%, rgba(255,255,255,.06), transparent 60%);
  animation: driftGlass 7s ease-in-out infinite alternate;
  z-index: 0;
}
.modal__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.rarity-badge {
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 700;
  font-size: .78rem;
  background: rgba(0,0,0,.35);
}
.rarity-badge--dark { color: #e5f9ff; border-color: rgba(116,222,255,.32); }
.modal__watermark {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-family: "Orbitron", sans-serif;
  letter-spacing: .18em;
  font-size: .9rem;
  color: rgba(255,255,255,.86);
}
.modal__right {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal__resource {
  margin: 0;
  color: var(--purple-2);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 700;
}
.modal__right h3 {
  margin: -2px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
}
.modal__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.2;
}
.modal__topMeta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.meta-pill {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 12px;
  padding: 9px;
}
.meta-pill span { display: block; color: var(--muted); font-size: .8rem; }
.meta-pill strong { display: block; margin-top: 2px; color: #fff; font-size: .95rem; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stats-grid > div {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 12px;
  padding: 9px;
}
.stats-grid span { display: block; color: var(--muted); font-size: .8rem; }
.stats-grid strong { display: block; margin-top: 2px; color: #fff; }
.modal__features h4 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: .9rem;
}
.modal__features ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.modal__features li {
  position: relative;
  padding-left: 15px;
  color: #e6def6;
}
.modal__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 10px rgba(143,93,255,.55);
}
.modal__actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  min-width: 260px;
  max-width: min(420px, calc(100% - 24px));
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,10,20,.94);
  box-shadow: var(--shadow);
  transform: translateY(10px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(14px) scale(.99);
}
.reveal.is-visible {
  animation: revealIn .5s cubic-bezier(.2,.75,.15,1) forwards;
  animation-delay: calc(var(--reveal-delay, 0) * 1ms);
}

/* Responsive */
@media (max-width: 980px) {
  .hero__card {
    grid-template-columns: 90px 1fr;
  }
  .hero__logo { width: 90px; height: 90px; }
  .hero__stats { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .section-head__desc { max-width: none; text-align: left; }
  .vehicle-toolbar__controls input { min-width: 0; width: 100%; }
  .vehicle-count { margin-left: 0; }
  .cta-lux { grid-template-columns: 1fr; }
  .cta-lux__actions { justify-content: flex-start; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; padding: 10px 0; }
  .footer__brand, .footer__links { justify-content: center; }
  .modal__dialog {
    grid-template-columns: 1fr;
    margin: 10px auto;
    min-height: auto;
    max-height: calc(100vh - 20px);
    overflow: auto;
  }
  .modal__left { min-height: 220px; }
}

@media (max-width: 720px) {
  .container { width: min(1220px, calc(100% - 16px)); }
  .hero { min-height: 440px; }
  .hero__card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .hero__logo { width: 78px; height: 78px; }
  .info-banner {
    grid-template-columns: auto 1fr;
  }
  .info-banner .btn { grid-column: 1 / -1; }
  .segment {
    grid-template-columns: 1fr;
  }
  .segment__thumb { display: none; }
  .segment__btn { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
  .segment__btn.is-active { background: rgba(143,93,255,.13); border-color: rgba(143,93,255,.3); }
  .coins-grid { grid-template-columns: 1fr; gap: 10px; }
  .coin-card { min-height: 0; }
  .vehicles-grid { grid-template-columns: 1fr; gap: 10px; }
  .vehicle-meta { grid-template-columns: 1fr 1fr; }
  .vehicle-meta > div:last-child { grid-column: 1 / -1; }
  .vehicle-actions { grid-template-columns: 1fr; }
  .vehicle-toolbar__controls { width: 100%; }
  .vehicle-toolbar__controls select, .vehicle-toolbar__controls input { width: 100%; }
  .modal__topMeta, .stats-grid { grid-template-columns: 1fr; }
  .modal__actions { display: grid; grid-template-columns: 1fr; }
}

/* Animations */
@keyframes heroSweep {
  from { transform: translateX(-160%) skewX(-22deg); }
  to   { transform: translateX(420%) skewX(-22deg); }
}
@keyframes cardSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(140%); }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bgFloat {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}
@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(143,93,255,0); }
  50% { box-shadow: 0 0 0 5px rgba(143,93,255,.06); }
}
@keyframes softBreathe {
  0%,100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.08); opacity: .65; }
}
@keyframes driftGlass {
  from { transform: translate3d(-10px, -6px, 0); }
  to { transform: translate3d(10px, 8px, 0); }
}


/* ===== V8 premium motion + legal ===== */
.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .42;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  filter: blur(4px);
}
.bg-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  opacity: .18;
  mix-blend-mode: screen;
}
.bg-orb--1 {
  width: 280px; height: 280px;
  left: 7%; top: 14%;
  background: radial-gradient(circle, rgba(143,93,255,.9) 0%, rgba(143,93,255,.15) 52%, transparent 72%);
  animation: orbFloatA 20s ease-in-out infinite;
}
.bg-orb--2 {
  width: 220px; height: 220px;
  right: 10%; top: 28%;
  background: radial-gradient(circle, rgba(222,114,255,.95) 0%, rgba(222,114,255,.16) 52%, transparent 72%);
  animation: orbFloatB 24s ease-in-out infinite;
}
.bg-orb--3 {
  width: 320px; height: 320px;
  left: 35%; bottom: 6%;
  background: radial-gradient(circle, rgba(116,222,255,.9) 0%, rgba(116,222,255,.15) 48%, transparent 74%);
  animation: orbFloatC 28s ease-in-out infinite;
}

.ambient-grid {
  animation: gridShift 42s linear infinite;
}
.ambient-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,.02) 50%, transparent 100%);
  background-size: 100% 220px;
  opacity: .45;
  animation: scanline 11s linear infinite;
}
.hero__media { animation: heroPan 22s ease-in-out infinite alternate; }
.hero__card { animation: heroBob 8s ease-in-out infinite; }
.panel-shell {
  position: relative;
  overflow: hidden;
}
.panel-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(143,93,255,.12), transparent 35%, rgba(222,114,255,.08) 65%, transparent 80%);
  opacity: .7;
}
.panel-shell::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -25%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: skewX(-22deg);
  animation: panelSweep 10.5s linear infinite;
  pointer-events: none;
}
.info-banner,
.cta-lux {
  will-change: transform;
}
.info-banner:hover,
.cta-lux:hover {
  transform: translateY(-2px);
}

.coin-card,
.vehicle-card {
  position: relative;
}
.coin-card::after,
.vehicle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(420px 120px at var(--mx, 50%) -10%, rgba(255,255,255,.09), transparent 55%);
  opacity: 0;
  transition: opacity .25s ease;
}
.coin-card:hover::after,
.vehicle-card:hover::after { opacity: 1; }




.footer {
  position: relative;
  margin-top: 8px;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143,93,255,.35), rgba(116,222,255,.2), transparent);
}

@keyframes gridShift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 26px, 26px 0; }
}
@keyframes scanline {
  0% { transform: translateY(-100%); opacity: .1; }
  18% { opacity: .22; }
  100% { transform: translateY(140%); opacity: .06; }
}
@keyframes heroPan {
  0% { transform: scale(1.03) translate3d(-4px, -2px, 0); }
  100% { transform: scale(1.07) translate3d(5px, 4px, 0); }
}
@keyframes heroBob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes panelSweep {
  0% { transform: translateX(-8%) skewX(-22deg); opacity: 0; }
  15% { opacity: .35; }
  45% { opacity: .12; }
  100% { transform: translateX(560%) skewX(-22deg); opacity: 0; }
}
@keyframes orbFloatA {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(16px,-12px,0) scale(1.06); }
}
@keyframes orbFloatB {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-18px,14px,0) scale(1.04); }
}
@keyframes orbFloatC {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(12px,-16px,0) scale(1.05); }
}


/* ===== V9 background ambience + compact legal ===== */
.aurora-ribbons {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  opacity: .42;
}
.ribbon {
  position: absolute;
  width: 62vw;
  height: 22vh;
  min-height: 150px;
  border-radius: 999px;
  filter: blur(28px);
  mix-blend-mode: screen;
}
.ribbon--a {
  left: -12vw;
  top: 12vh;
  background: linear-gradient(90deg, rgba(143,93,255,.22), rgba(222,114,255,.14), rgba(116,222,255,.08));
  animation: ribbonDriftA 20s ease-in-out infinite alternate;
}
.ribbon--b {
  right: -14vw;
  bottom: 12vh;
  background: linear-gradient(90deg, rgba(116,222,255,.14), rgba(143,93,255,.18), rgba(222,114,255,.10));
  animation: ribbonDriftB 24s ease-in-out infinite alternate;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
}
.spark {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(240,236,255,.85);
  transform: scale(var(--scale,1));
  box-shadow: 0 0 10px rgba(143,93,255,.35);
  animation: sparkTwinkle var(--d, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.spark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(143,93,255,.18);
  transform: scale(1.6);
  opacity: .35;
}

.hero__card::after {
  content: "";
  position: absolute;
  inset: auto -10% -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,93,255,.16), rgba(143,93,255,0) 70%);
  pointer-events: none;
  animation: heroCorePulse 6s ease-in-out infinite;
}

.segment::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(280px 60px at var(--mx, 50%) 0%, rgba(255,255,255,.06), transparent 70%);
  opacity: .6;
}

.panel-shell {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.03);
}

.coin-card:hover,
.vehicle-card:hover {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px);
}

.vehicle-card__imgWrap::before {
  content: "";
  position: absolute;
  inset: -140% -30%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.12) 50%, transparent 58%);
  transform: translateX(-65%) rotate(8deg);
  transition: transform .5s ease;
  z-index: 1;
}
.vehicle-card:hover .vehicle-card__imgWrap::before {
  transform: translateX(65%) rotate(8deg);
}

.footer__legal {
  padding-bottom: 14px;
}
.footer__legal-card {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(143,93,255,.07), rgba(8,8,12,.92) 45%, rgba(116,222,255,.05));
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.footer__legal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.footer__pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid rgba(143,93,255,.35);
  background: rgba(143,93,255,.10);
  color: #f3ebff;
}
.footer__legal-head strong {
  font-family: "Orbitron", sans-serif;
  font-size: .9rem;
}
.footer__legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.25;
}
.footer__rules {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__rules span {
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: #efeaff;
  font-weight: 700;
  font-size: .82rem;
}

@keyframes ribbonDriftA {
  0% { transform: translate3d(0,0,0) rotate(-6deg); }
  100% { transform: translate3d(40px,18px,0) rotate(-2deg); }
}
@keyframes ribbonDriftB {
  0% { transform: translate3d(0,0,0) rotate(8deg); }
  100% { transform: translate3d(-36px,-20px,0) rotate(3deg); }
}
@keyframes sparkTwinkle {
  0%,100% { opacity: .15; transform: scale(calc(var(--scale,1) * .8)); }
  50% { opacity: .95; transform: scale(calc(var(--scale,1) * 1.2)); }
}
@keyframes heroCorePulse {
  0%,100% { opacity: .45; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.08); }
}

@media (max-width: 720px) {
  .footer__legal-head { align-items: flex-start; }
  .footer__legal-head strong { font-size: .82rem; line-height: 1.25; }
  .footer__rules { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-canvas,
  .bg-orbs,
  .aurora-ribbons,
  .starfield .spark,
  .ambient-grid::after,
  .hero__media,
  .hero__card,
  .panel-shell::after { animation: none !important; }
}
