:root {
  --background: 250 38% 98%;
  --foreground: 245 28% 13%;
  --primary: 263 85% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 181 76% 42%;
  --secondary-foreground: 245 28% 13%;
  --muted: 250 18% 91%;
  --muted-foreground: 245 12% 42%;
  --destructive: 350 86% 58%;
  --destructive-foreground: 0 0% 100%;
  --border: 250 20% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 4px 14px rgba(48, 33, 88, 0.08);
  --shadow-md: 0 12px 30px rgba(48, 33, 88, 0.13);
  --shadow-lg: 0 24px 70px rgba(48, 33, 88, 0.18);
  --transition-fast: 140ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}
.dark {
  --background: 246 30% 8%;
  --foreground: 250 32% 94%;
  --primary: 266 92% 70%;
  --primary-foreground: 250 34% 10%;
  --secondary: 183 74% 54%;
  --secondary-foreground: 247 34% 8%;
  --muted: 247 24% 17%;
  --muted-foreground: 248 14% 70%;
  --destructive: 350 84% 64%;
  --destructive-foreground: 0 0% 100%;
  --border: 247 20% 24%;
  --card: 247 28% 12%;
}
* { box-sizing: border-box; }
html { background: hsl(var(--background)); color: hsl(var(--foreground)); }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top left, hsl(var(--primary) / .13), transparent 34rem), radial-gradient(circle at top right, hsl(var(--secondary) / .15), transparent 30rem), hsl(var(--background)); color: hsl(var(--foreground)); }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-size: max(16px, 1rem); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid hsl(var(--primary) / .35); outline-offset: 2px; }
.bg-1 { background: hsl(var(--background)); }
.bg-2 { background: hsl(var(--card)); }
.bg-3 { background: hsl(var(--muted)); }
.bg-4 { background: hsl(var(--primary) / .09); }
.text-primary { color: hsl(var(--foreground)); }
.text-secondary { color: hsl(var(--muted-foreground)); }
.text-tertiary { color: hsl(var(--foreground) / .62); }
.accent { color: hsl(var(--primary)); }
.safe-bottom { padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); }
.safe-top { padding-top: env(safe-area-inset-top); }
.glass { background: hsl(var(--card) / .82); backdrop-filter: blur(18px); }
.post-gradient-1 { background: linear-gradient(135deg, #7c3aed, #06b6d4); }
.post-gradient-2 { background: radial-gradient(circle at 20% 15%, #fef3c7, transparent 24%), linear-gradient(135deg, #f43f5e, #8b5cf6); }
.post-gradient-3 { background: linear-gradient(135deg, #14b8a6, #2563eb 55%, #a855f7); }
.post-gradient-4 { background: radial-gradient(circle at 80% 10%, #fff, transparent 16%), linear-gradient(135deg, #f59e0b, #ef4444); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 999px; }