:root {
  --background: 211 45% 97%;
  --foreground: 222 47% 11%;
  --primary: 214 86% 42%;
  --primary-foreground: 0 0% 100%;
  --secondary: 213 46% 94%;
  --secondary-foreground: 222 47% 16%;
  --muted: 215 20% 55%;
  --muted-foreground: 215 18% 38%;
  --destructive: 0 72% 51%;
  --border: 214 30% 88%;
  --card: 0 0% 100%;
  --accent: 204 92% 44%;
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 42px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.14);
  --transition-fast: 160ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, hsl(var(--primary) / 0.08), transparent 34rem), hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
input, textarea, select { font-size: max(16px, 1rem); }
.safe-bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.card-shadow { box-shadow: var(--shadow-md); }
.soft-gradient { background: radial-gradient(circle at top left, hsl(var(--primary) / 0.18), transparent 34%), linear-gradient(135deg, hsl(var(--card)), hsl(var(--secondary) / 0.72)); }
.premium-gradient { background: linear-gradient(135deg, #0f172a, #1d4ed8); }
.thumb-science { background: linear-gradient(135deg, #dbeafe, #ecfeff); }
.thumb-maths { background: linear-gradient(135deg, #e0e7ff, #f0f9ff); }
.thumb-english { background: linear-gradient(135deg, #f5f3ff, #eff6ff); }
.thumb-sst { background: linear-gradient(135deg, #dcfce7, #f0fdf4); }
.thumb-hindi { background: linear-gradient(135deg, #fff7ed, #fef3c7); }
.thumb-computer { background: linear-gradient(135deg, #e0f2fe, #f8fafc); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.genmb-pdf-frame { width: 100%; min-height: 420px; border: 1px solid hsl(var(--border)); border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 768px) { .safe-bottom { padding-bottom: 40px; } }
