:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --background: 210 40% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 221 83% 53%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 94%;
  --secondary-foreground: 222 47% 11%;
  --muted: 210 40% 93%;
  --muted-foreground: 215 16% 40%;
  --accent: 199 89% 48%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 72% 45%;
  --destructive-foreground: 210 40% 98%;
  --success: 142 71% 35%;
  --success-foreground: 210 40% 98%;
  --warning: 38 92% 42%;
  --warning-foreground: 222 47% 11%;
  --info: 199 89% 48%;
  --info-foreground: 210 40% 98%;
  --border: 214 32% 88%;
  --input: 214 32% 88%;
  --ring: 221 83% 53%;
  --radius: 0.625rem;
  --shadow-sm: 0 1px 2px hsl(var(--foreground) / 0.05);
  --shadow-md: 0 4px 12px hsl(var(--foreground) / 0.08);
  --shadow-lg: 0 12px 32px hsl(var(--foreground) / 0.12);
  --shadow-elegant: 0 18px 48px hsl(var(--primary) / 0.22);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
  --background: 222 47% 7%;
  --foreground: 210 40% 96%;
  --card: 222 47% 10%;
  --card-foreground: 210 40% 96%;
  --popover: 222 47% 10%;
  --popover-foreground: 210 40% 96%;
  --primary: 217 91% 60%;
  --primary-foreground: 222 47% 7%;
  --secondary: 217 32% 17%;
  --secondary-foreground: 210 40% 96%;
  --muted: 217 32% 15%;
  --muted-foreground: 215 20% 70%;
  --accent: 199 89% 55%;
  --accent-foreground: 222 47% 7%;
  --destructive: 0 63% 55%;
  --destructive-foreground: 210 40% 98%;
  --success: 142 70% 45%;
  --success-foreground: 222 47% 7%;
  --warning: 38 92% 55%;
  --warning-foreground: 222 47% 7%;
  --info: 199 89% 55%;
  --info-foreground: 222 47% 7%;
  --border: 217 32% 20%;
  --input: 217 32% 20%;
  --ring: 217 91% 60%;
}

* { box-sizing: border-box; }
html { font-family: var(--font-sans); background: hsl(var(--background)); color: hsl(var(--foreground)); }
body { margin: 0; min-height: 100vh; background: hsl(var(--background)); color: hsl(var(--foreground)); }
button, input, textarea, select { font: inherit; }
input, textarea, select { font-size: max(16px, 1rem); }
button { min-height: 44px; }
:focus-visible { outline: none; }
.safe-top { padding-top: env(safe-area-inset-top); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
