:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: 42 45% 97%;
  --foreground: 222 36% 12%;
  --card: 0 0% 100%;
  --card-foreground: 222 36% 12%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 36% 12%;
  --primary: 166 74% 28%;
  --primary-foreground: 0 0% 100%;
  --secondary: 37 67% 90%;
  --secondary-foreground: 222 36% 16%;
  --muted: 40 32% 91%;
  --muted-foreground: 219 14% 38%;
  --accent: 23 83% 55%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 45%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 62% 32%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 45%;
  --warning-foreground: 222 36% 12%;
  --info: 204 76% 38%;
  --info-foreground: 0 0% 100%;
  --border: 38 24% 82%;
  --input: 38 24% 82%;
  --ring: 166 74% 28%;
  --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 16px 48px hsl(var(--primary) / 0.20);
  --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: 220 28% 9%;
  --foreground: 42 38% 94%;
  --card: 220 25% 13%;
  --card-foreground: 42 38% 94%;
  --popover: 220 25% 13%;
  --popover-foreground: 42 38% 94%;
  --primary: 166 62% 46%;
  --primary-foreground: 220 28% 9%;
  --secondary: 218 18% 20%;
  --secondary-foreground: 42 38% 94%;
  --muted: 218 18% 18%;
  --muted-foreground: 40 16% 70%;
  --accent: 23 83% 62%;
  --accent-foreground: 220 28% 9%;
  --destructive: 0 68% 55%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 56% 45%;
  --success-foreground: 220 28% 9%;
  --warning: 38 92% 55%;
  --warning-foreground: 220 28% 9%;
  --info: 204 76% 58%;
  --info-foreground: 220 28% 9%;
  --border: 218 16% 27%;
  --input: 218 16% 27%;
  --ring: 166 62% 46%;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-sans);
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

::selection {
  background: hsl(var(--primary) / 0.18);
}