:root {
  --background: 42 38% 96%;
  --foreground: 222 37% 13%;
  --primary: 243 75% 59%;
  --primary-foreground: 0 0% 100%;
  --secondary: 174 58% 42%;
  --secondary-foreground: 0 0% 100%;
  --muted: 222 18% 42%;
  --destructive: 354 74% 50%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 18% 84%;
  --card: 0 0% 100%;
  --accent: 31 92% 58%;
  --shadow-sm: 0 4px 14px rgba(31, 41, 55, 0.08);
  --shadow-md: 0 14px 35px rgba(31, 41, 55, 0.12);
  --shadow-lg: 0 24px 70px rgba(31, 41, 55, 0.18);
  --transition-fast: 160ms ease;
  --transition-smooth: 280ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.75rem;
  --radius-md: 1.15rem;
  --radius-lg: 1.65rem;
}

.dark {
  --background: 222 38% 9%;
  --foreground: 42 38% 96%;
  --primary: 247 88% 72%;
  --primary-foreground: 222 37% 13%;
  --secondary: 174 55% 52%;
  --secondary-foreground: 222 37% 13%;
  --muted: 220 18% 72%;
  --destructive: 354 80% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 222 24% 24%;
  --card: 222 32% 14%;
  --accent: 31 96% 64%;
}

* { 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 34rem),
    radial-gradient(circle at 90% 10%, hsl(var(--secondary) / 0.14), transparent 28rem),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
input, textarea, select { font-size: max(16px, 1rem); }

.focus-ring:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.45);
  outline-offset: 3px;
}

.glass-card {
  background: hsl(var(--card) / 0.86);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.safe-bottom { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
.safe-top { padding-top: calc(0.75rem + env(safe-area-inset-top)); }

@media print {
  .no-print { display: none !important; }
  body { background: white; color: black; }
  .glass-card { box-shadow: none; border: 1px solid #ddd; }
}