:root {
  --background: 255 58% 7%;
  --foreground: 220 40% 96%;
  --primary: 270 100% 66%;
  --primary-foreground: 0 0% 100%;
  --secondary: 196 100% 58%;
  --secondary-foreground: 248 68% 8%;
  --muted: 250 25% 74%;
  --muted-foreground: 250 16% 72%;
  --destructive: 350 90% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 260 36% 28%;
  --card: 254 44% 13%;
  --shadow-sm: 0 8px 24px hsl(270 100% 40% / 0.16);
  --shadow-md: 0 18px 55px hsl(196 100% 45% / 0.18);
  --shadow-lg: 0 28px 90px hsl(270 100% 45% / 0.32);
  --transition-fast: 150ms ease;
  --transition-smooth: 320ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

.dark {
  --background: 255 58% 7%;
  --foreground: 220 40% 96%;
  --primary: 278 100% 70%;
  --secondary: 190 100% 62%;
  --muted: 250 25% 76%;
  --destructive: 350 90% 64%;
  --border: 260 36% 30%;
  --card: 254 44% 14%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, hsl(270 100% 55% / .32), transparent 30%),
    radial-gradient(circle at 88% 18%, hsl(196 100% 58% / .28), transparent 32%),
    radial-gradient(circle at 50% 100%, hsl(310 100% 45% / .18), transparent 42%),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-size: max(16px, 1rem); }
.glass {
  background: linear-gradient(135deg, hsl(var(--card) / .82), hsl(var(--card) / .48));
  border: 1px solid hsl(var(--border) / .76);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}
.neon-text {
  text-shadow: 0 0 18px hsl(var(--primary) / .72), 0 0 34px hsl(var(--secondary) / .35);
}
.grid-glow {
  background-image: linear-gradient(hsl(var(--border) / .18) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--border) / .18) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.safe-bottom { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
.bottom-nav-safe { padding-bottom: env(safe-area-inset-bottom); }
.focus-ring:focus-visible { outline: 3px solid hsl(var(--secondary) / .75); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: hsl(var(--primary) / .42); border-radius: 999px; }
