:root {
  --background: 220 40% 98%;
  --foreground: 224 44% 12%;
  --primary: 260 83% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 190 88% 42%;
  --secondary-foreground: 0 0% 100%;
  --muted: 224 24% 92%;
  --muted-foreground: 224 14% 42%;
  --destructive: 355 78% 55%;
  --destructive-foreground: 0 0% 100%;
  --border: 224 24% 84%;
  --card: 0 0% 100%;
  --radius-sm: 0.6rem;
  --radius-md: 1rem;
  --radius-lg: 1.45rem;
  --shadow-sm: 0 6px 18px hsl(224 44% 12% / 0.08);
  --shadow-md: 0 14px 36px hsl(224 44% 12% / 0.12);
  --shadow-lg: 0 26px 70px hsl(260 83% 55% / 0.18);
  --transition-fast: 150ms ease;
  --transition-smooth: 280ms cubic-bezier(.2,.8,.2,1);
}
.dark {
  --background: 226 42% 8%;
  --foreground: 220 35% 96%;
  --primary: 265 88% 68%;
  --primary-foreground: 226 42% 8%;
  --secondary: 188 82% 54%;
  --secondary-foreground: 226 42% 8%;
  --muted: 226 30% 16%;
  --muted-foreground: 220 22% 72%;
  --destructive: 358 80% 64%;
  --destructive-foreground: 226 42% 8%;
  --border: 226 24% 24%;
  --card: 226 36% 12%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, hsl(var(--primary) / 0.14), transparent 32rem),
    radial-gradient(circle at bottom right, hsl(var(--secondary) / 0.13), transparent 34rem),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a, input, select, textarea { transition: var(--transition-smooth); }
input, select, textarea { font-size: max(16px, 1rem); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.45);
  outline-offset: 2px;
}
.glass {
  background: hsl(var(--card) / 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-sm);
}
.safe-bottom { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
.safe-top { padding-top: env(safe-area-inset-top); }
