:root {
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;
  --primary: 183 100% 50%;
  --primary-foreground: 0 0% 0%;
  --secondary: 228 35% 14%;
  --secondary-foreground: 0 0% 100%;
  --muted: 225 18% 18%;
  --muted-foreground: 220 12% 70%;
  --destructive: 350 95% 58%;
  --destructive-foreground: 0 0% 100%;
  --border: 186 60% 22%;
  --card: 225 30% 7%;
  --shadow-sm: 0 8px 22px rgba(0, 242, 255, 0.08);
  --shadow-md: 0 18px 50px rgba(0, 242, 255, 0.12);
  --shadow-lg: 0 26px 90px rgba(0, 242, 255, 0.18);
  --transition-fast: 140ms ease;
  --transition-smooth: 280ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.7rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;
  --primary: 183 100% 50%;
  --secondary: 228 35% 14%;
  --muted: 225 18% 18%;
  --destructive: 350 95% 58%;
  --border: 186 60% 22%;
  --card: 225 30% 7%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: #000000;
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 242, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(0, 92, 255, 0.12), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(0, 242, 255, 0.09), transparent 30%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, auto, auto, 46px 46px, 46px 46px;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.42) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .18;
  z-index: -1;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.glass-card {
  background: linear-gradient(180deg, hsla(var(--card), .96), hsla(var(--secondary), .45));
  border: 1px solid hsla(var(--border), .72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.cyber-ring {
  box-shadow: 0 0 0 1px hsla(var(--primary), .35), 0 0 28px hsla(var(--primary), .18);
}

.neon-text {
  text-shadow: 0 0 24px hsla(var(--primary), .38);
}

.scrollbar-thin::-webkit-scrollbar { width: 7px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: hsla(var(--primary), .35); border-radius: 999px; }

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 hsla(var(--primary), .20); }
  50% { box-shadow: 0 0 0 10px hsla(var(--primary), 0); }
}

.pulse-glow { animation: pulseGlow 2.4s infinite; }

.focus-neon:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), .18);
}