:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --background: 220 60% 98%;
  --foreground: 224 45% 12%;
  --card: 0 0% 100%;
  --card-foreground: 224 45% 12%;
  --popover: 0 0% 100%;
  --popover-foreground: 224 45% 12%;
  --primary: 252 83% 56%;
  --primary-foreground: 0 0% 100%;
  --secondary: 38 92% 58%;
  --secondary-foreground: 230 35% 12%;
  --muted: 228 30% 92%;
  --muted-foreground: 226 18% 38%;
  --accent: 174 72% 42%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 74% 51%;
  --destructive-foreground: 0 0% 100%;
  --success: 145 63% 34%;
  --success-foreground: 0 0% 100%;
  --warning: 35 92% 45%;
  --warning-foreground: 230 35% 12%;
  --info: 204 84% 42%;
  --info-foreground: 0 0% 100%;
  --border: 226 28% 84%;
  --input: 226 28% 84%;
  --ring: 252 83% 56%;
  --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: 230 28% 8%;
  --foreground: 220 35% 96%;
  --card: 229 25% 12%;
  --card-foreground: 220 35% 96%;
  --popover: 229 25% 12%;
  --popover-foreground: 220 35% 96%;
  --primary: 257 92% 70%;
  --primary-foreground: 230 35% 10%;
  --secondary: 42 92% 62%;
  --secondary-foreground: 230 35% 10%;
  --muted: 229 22% 18%;
  --muted-foreground: 222 16% 74%;
  --accent: 174 68% 48%;
  --accent-foreground: 230 35% 10%;
  --destructive: 0 72% 58%;
  --destructive-foreground: 0 0% 100%;
  --success: 145 60% 45%;
  --success-foreground: 230 35% 10%;
  --warning: 38 92% 60%;
  --warning-foreground: 230 35% 10%;
  --info: 204 86% 60%;
  --info-foreground: 230 35% 10%;
  --border: 228 20% 24%;
  --input: 228 20% 24%;
  --ring: 257 92% 70%;
}

* { 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: radial-gradient(circle at top left, hsl(var(--primary) / 0.16), transparent 34rem), hsl(var(--background)); }
button, input, select, textarea { font: inherit; }
input, select, textarea { font-size: max(16px, 1rem); }
#root { min-height: 100vh; }
.safe-page { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
.safe-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
.safe-top { padding-top: env(safe-area-inset-top); }
.focus-ring:focus-visible { outline: none; box-shadow: 0 0 0 2px hsl(var(--ring)), 0 0 0 4px hsl(var(--background)); }

/* Custom utilities */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
