:root {
  --background: 220 30% 96%;
  --foreground: 222 42% 9%;
  --primary: 194 100% 47%;
  --primary-foreground: 220 35% 7%;
  --secondary: 218 22% 88%;
  --secondary-foreground: 222 35% 12%;
  --muted: 219 18% 78%;
  --muted-foreground: 218 15% 35%;
  --destructive: 354 88% 56%;
  --destructive-foreground: 0 0% 100%;
  --border: 218 20% 78%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 22px hsl(220 50% 10% / 0.08);
  --shadow-md: 0 18px 48px hsl(220 50% 10% / 0.14);
  --shadow-lg: 0 32px 90px hsl(220 50% 10% / 0.22);
  --transition-fast: 150ms ease;
  --transition-smooth: 320ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
}
.dark {
  --background: 220 35% 4%;
  --foreground: 204 30% 94%;
  --primary: 191 100% 52%;
  --primary-foreground: 220 45% 5%;
  --secondary: 216 20% 13%;
  --secondary-foreground: 204 25% 91%;
  --muted: 218 18% 18%;
  --muted-foreground: 214 15% 68%;
  --destructive: 354 91% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 215 20% 20%;
  --card: 220 28% 8%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: hsl(var(--background)); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, hsl(var(--primary) / 0.16), transparent 34rem), radial-gradient(circle at 80% 12%, hsl(250 90% 58% / 0.12), transparent 28rem), 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, select, textarea { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: max(16px, 1rem); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 3px; }
.glass { background: linear-gradient(180deg, hsl(var(--card) / 0.86), hsl(var(--card) / 0.62)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-md); backdrop-filter: blur(18px); }
.panel-grid { background-image: linear-gradient(hsl(var(--border) / .28) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--border) / .22) 1px, transparent 1px); background-size: 28px 28px; }
.scanline { position: relative; overflow: hidden; }
.scanline::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, hsl(var(--primary) / .13), transparent); transform: translateX(-120%); animation: scan 4s infinite; pointer-events: none; }
@keyframes scan { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.thin-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.thin-scroll::-webkit-scrollbar-thumb { background: hsl(var(--primary) / .35); border-radius: 999px; }
.safe-bottom { padding-bottom: calc(env(safe-area-inset-bottom) + 5.5rem); }
@media (min-width: 1024px) { .safe-bottom { padding-bottom: 2rem; } }