:root {
  --background: 226 45% 6%;
  --foreground: 185 38% 94%;
  --primary: 178 100% 50%;
  --primary-foreground: 225 55% 6%;
  --secondary: 277 100% 66%;
  --secondary-foreground: 0 0% 100%;
  --muted: 223 22% 18%;
  --muted-foreground: 190 18% 72%;
  --destructive: 350 95% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 184 60% 38%;
  --card: 225 42% 10%;
  --shadow-sm: 0 8px 24px rgba(0, 255, 240, 0.10);
  --shadow-md: 0 18px 55px rgba(157, 78, 255, 0.18);
  --shadow-lg: 0 30px 90px rgba(0, 255, 240, 0.22);
  --transition-fast: 160ms cubic-bezier(.2,.8,.2,1);
  --transition-smooth: 520ms cubic-bezier(.16,1,.3,1);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
}

.dark {
  --background: 226 45% 6%;
  --foreground: 185 38% 94%;
  --primary: 178 100% 50%;
  --secondary: 277 100% 66%;
  --muted: 223 22% 18%;
  --destructive: 350 95% 62%;
  --border: 184 60% 38%;
  --card: 225 42% 10%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: hsl(var(--foreground));
  background:
    radial-gradient(circle at 10% 10%, rgba(0,255,240,.20), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(157,78,255,.22), transparent 32%),
    radial-gradient(circle at 50% 95%, rgba(255,53,115,.16), transparent 36%),
    hsl(var(--background));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
  border: 1px solid rgba(0,255,240,.22);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(22px);
}

.holo-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.holo-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 5%, rgba(0,255,240,.18), transparent 36%, rgba(157,78,255,.18), transparent 72%);
  transform: translateX(-70%);
  transition: transform 900ms cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.holo-card:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
  border-color: rgba(0,255,240,.55);
  box-shadow: var(--shadow-lg);
}
.holo-card:hover::before { transform: translateX(60%); }

.city-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,240,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,240,.09) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(600px) rotateX(62deg) translateY(18%);
  transform-origin: bottom;
  animation: gridTravel 6s linear infinite;
  opacity: .45;
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.045), transparent);
  background-size: 100% 12px;
  mix-blend-mode: screen;
  opacity: .22;
  pointer-events: none;
}

.neon-text {
  text-shadow: 0 0 18px rgba(0,255,240,.48), 0 0 48px rgba(157,78,255,.26);
}

.car-shape {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  border-radius: 999px 999px 35px 35px;
  background:
    radial-gradient(circle at 25% 84%, rgba(0,0,0,.95) 0 9%, transparent 10%),
    radial-gradient(circle at 73% 84%, rgba(0,0,0,.95) 0 9%, transparent 10%),
    linear-gradient(135deg, rgba(255,255,255,.45), transparent 20%),
    var(--paint, linear-gradient(120deg, #00fff0, #9d4eff));
  box-shadow: 0 28px 75px var(--glow, rgba(0,255,240,.20));
  position: relative;
}
.car-shape::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 15%;
  width: 48%;
  height: 34%;
  border-radius: 999px 999px 20px 20px;
  background: linear-gradient(135deg, rgba(7,15,28,.82), rgba(255,255,255,.18));
  border: 1px solid rgba(255,255,255,.20);
}
.car-shape::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 54%;
  width: 16%;
  height: 7%;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 0 18px rgba(255,255,255,.55);
}

@keyframes gridTravel {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 52px, 0 52px; }
}
@keyframes floatSoft {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseGlow {
  0%,100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.float-soft { animation: floatSoft 4.8s ease-in-out infinite; }
.pulse-glow { animation: pulseGlow 2.8s ease-in-out infinite; }
.toast-in { animation: toastIn 260ms cubic-bezier(.16,1,.3,1); }

.range-track {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
}

::selection { background: rgba(0,255,240,.35); }