:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: 222 47% 98%;
  --foreground: 224 32% 12%;
  --card: 0 0% 100%;
  --card-foreground: 224 32% 12%;
  --popover: 0 0% 100%;
  --popover-foreground: 224 32% 12%;
  --primary: 257 86% 57%;
  --primary-foreground: 0 0% 100%;
  --secondary: 221 83% 53%;
  --secondary-foreground: 0 0% 100%;
  --muted: 224 28% 92%;
  --muted-foreground: 225 14% 38%;
  --accent: 32 95% 56%;
  --accent-foreground: 224 32% 12%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;
  --success: 151 74% 33%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 224 32% 12%;
  --info: 199 89% 48%;
  --info-foreground: 0 0% 100%;
  --border: 224 26% 84%;
  --input: 224 26% 84%;
  --ring: 257 86% 57%;
  --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 20px 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);
}

html.dark {
  color-scheme: dark;
  --background: 224 32% 8%;
  --foreground: 220 24% 96%;
  --card: 224 30% 12%;
  --card-foreground: 220 24% 96%;
  --popover: 224 30% 12%;
  --popover-foreground: 220 24% 96%;
  --primary: 263 91% 66%;
  --primary-foreground: 224 32% 8%;
  --secondary: 217 91% 62%;
  --secondary-foreground: 224 32% 8%;
  --muted: 224 22% 18%;
  --muted-foreground: 220 14% 72%;
  --accent: 35 92% 56%;
  --accent-foreground: 224 32% 8%;
  --destructive: 0 84% 62%;
  --destructive-foreground: 0 0% 100%;
  --success: 151 65% 45%;
  --success-foreground: 224 32% 8%;
  --warning: 42 96% 58%;
  --warning-foreground: 224 32% 8%;
  --info: 199 89% 58%;
  --info-foreground: 224 32% 8%;
  --border: 224 20% 24%;
  --input: 224 20% 24%;
  --ring: 263 91% 66%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: hsl(var(--background));
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  font-size: max(16px, 1rem);
}

.video-shimmer {
  background-size: 180% 180%;
  animation: shimmer 7s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

.safe-top {
  padding-top: env(safe-area-inset-top);
}