:root {
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --orange: #f97316;
  --pink: #ec4899;
  --navy: #0b1120;
  --ink: #111827;
  --muted: #64748b;
  --soft: #f8fafc;
  --lavender: #f5f3ff;
  --blue-soft: #eff6ff;
  --line: #e5e7eb;
  --green: #16a34a;
  --red: #ef4444;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  --font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
body.dark {
  --ink: #f8fafc;
  --muted: #cbd5e1;
  --soft: #101827;
  --line: #263247;
  background: #070b14;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img, svg { max-width: 100%; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}
body.dark .site-header { background: rgba(8, 12, 22, 0.92); }
.navbar {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.28);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand strong {
  display: block;
  color: #172033;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0;
}
body.dark .brand strong { color: #fff; }
.brand strong span {
  background: linear-gradient(135deg, var(--orange), var(--violet));
  -webkit-background-clip: text;
  color: transparent;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 3px;
}
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 18px;
}
.nav-center > a,
.dropdown > a {
  position: relative;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 26px 0;
}
body.dark .nav-center > a,
body.dark .dropdown > a { color: #dbe4f0; }
.nav-center a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--orange);
}
.dropdown { position: relative; }
.dropdown svg { width: 15px; height: 15px; }
.dropdown-panel {
  position: absolute;
  top: 67px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 180px;
  opacity: 0;
  pointer-events: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}
body.dark .dropdown-panel { background: #111827; }
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}
.dropdown-panel a:hover { background: var(--lavender); color: var(--indigo); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #1f2937;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
body.dark .icon-btn { background: #111827; color: #f8fafc; }
.icon-btn:hover, .btn:hover, .card-hover:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12); }
.icon-btn:active, .btn:active { transform: scale(0.97); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
body.dark .lang-toggle { background: #111827; color: #f8fafc; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 0;
  padding: 12px 18px;
  min-height: 44px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-ghost { border: 1px solid #cbd5e1; background: #fff; color: #172033; }
body.dark .btn-ghost { background: #111827; color: #fff; border-color: #334155; }
.btn-gradient-orange {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 13px 26px rgba(249, 115, 22, 0.28);
}
.btn-gradient-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--violet));
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.28);
}
.btn-white { background: #fff; color: #1e293b; border: 1px solid rgba(79, 70, 229, 0.16); }
.nav-menu-btn { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(249, 115, 22, 0.14), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(124, 58, 237, 0.2), transparent 30%),
    linear-gradient(135deg, var(--lavender), var(--blue-soft));
  padding: 72px 22px 138px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.88fr);
  align-items: center;
  gap: 46px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 9px 15px;
  color: #5b21b6;
  background: #ede9fe;
  font-weight: 800;
  font-size: 13px;
}
.hero h1 {
  margin: 21px 0 15px;
  color: #111c33;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 900;
}
.accent-orange { color: var(--orange); }
.accent-violet { color: var(--violet); }
.hero p.lead {
  max-width: 660px;
  color: #5f6f86;
  font-size: 18px;
  margin: 0 0 24px;
}
.hero-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}
.mini-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
}
.mini-chip i {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  flex: 0 0 auto;
}
.mini-chip svg { width: 17px; height: 17px; }
.mini-chip strong { display: block; font-size: 13px; line-height: 1.2; }
.mini-chip small { display: block; color: var(--muted); font-weight: 700; font-size: 11px; line-height: 1.15; margin-top: 3px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 24px; }
.avatar-note { display: flex; align-items: center; gap: 12px; color: #475569; font-weight: 700; }
.avatars { display: flex; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-left: -10px;
  background: linear-gradient(135deg, var(--indigo), var(--pink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
}
.avatar:first-child { margin-left: 0; }
.hero-art { min-height: 520px; position: relative; }
.swoosh {
  position: absolute;
  inset: 52px 6px 0 auto;
  width: 440px;
  height: 370px;
  border-radius: 42% 58% 56% 44%;
  background:
    linear-gradient(16deg, #138808 0 28%, transparent 28% 36%, #fff 36% 61%, transparent 61% 66%, #ff9933 66% 100%);
  opacity: 0.22;
  transform: rotate(-14deg);
}
.phone {
  position: absolute;
  left: 66px;
  top: 28px;
  width: 268px;
  min-height: 484px;
  border: 12px solid #1e293b;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 32px 65px rgba(15, 23, 42, 0.2);
  padding: 18px;
  z-index: 3;
  animation: floatY 5s ease-in-out infinite;
}
body.dark .phone { background: #101827; }
.phone-notch { width: 74px; height: 8px; border-radius: 99px; background: #111827; margin: -7px auto 16px; }
.phone h3 { margin: 0; color: #182235; font-size: 18px; }
body.dark .phone h3 { color: #fff; }
.ring-wrap { display: grid; place-items: center; margin: 18px auto 14px; }
.score-ring { width: 130px; height: 130px; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.score-ring .track { stroke: #e5e7eb; }
.score-ring .fill {
  stroke: url(#ringGrad);
  stroke-dasharray: 282;
  stroke-dashoffset: 70;
  animation: ringFill 1.3s ease both;
}
.ring-label { position: absolute; font-size: 24px; font-weight: 900; color: var(--violet); }
.phone-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.phone-stat { border-radius: 14px; background: #f8fafc; padding: 10px 6px; text-align: center; }
body.dark .phone-stat { background: #1f2937; }
.phone-stat strong { display: block; font-size: 16px; line-height: 1; }
.phone-stat small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.phone .continue { width: 100%; margin-top: 10px; }
.books { position: absolute; right: 24px; bottom: 52px; width: 194px; height: 130px; z-index: 2; }
.book { position: absolute; width: 174px; height: 28px; border-radius: 8px; box-shadow: 0 11px 20px rgba(15,23,42,.15); }
.book.one { bottom: 0; right: 2px; background: #4f46e5; }
.book.two { bottom: 30px; right: 12px; background: #f97316; }
.book.three { bottom: 60px; right: 0; background: #16a34a; }
.cap { position: absolute; right: 42px; top: 46px; width: 132px; height: 70px; z-index: 4; }
.cap::before { content:""; position:absolute; inset: 12px 0 auto; height: 45px; background:#111827; transform:skew(-22deg) rotate(-8deg); border-radius: 8px; }
.cap::after { content:""; position:absolute; left:45px; top:48px; width:44px; height:18px; background:#1f2937; border-radius: 0 0 14px 14px; }
.ashoka {
  position: absolute;
  right: 58px;
  bottom: 190px;
  width: 96px;
  height: 150px;
  color: #c8881d;
  z-index: 1;
  filter: drop-shadow(0 18px 22px rgba(165, 105, 20, 0.24));
}

.overlap-section {
  max-width: 1210px;
  margin: -74px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 5;
}
.panel {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
body.dark .panel, body.dark .feature-card, body.dark .content-card, body.dark .quiz-card, body.dark .note-card { background: #111827; border-color: #263247; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.section-head.center { display: block; text-align: center; }
.section-head h2 { margin: 0; color: var(--ink); font-size: clamp(26px, 3vw, 38px); line-height: 1.18; letter-spacing: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 720px; }
.link-accent { color: var(--orange); font-weight: 900; }
.categories-panel { padding: 28px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 18px 10px;
  text-align: center;
  transition: 0.25s ease;
  background: #fff;
}
body.dark .category-card { background: #0f172a; border-color: #263247; }
.category-card:hover { border-color: rgba(124, 58, 237, 0.45); }
.icon-tile {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  margin-bottom: 11px;
}
.icon-tile svg { width: 25px; height: 25px; }
.category-card h3 { margin: 0; font-size: 16px; }
.category-card p { margin: 3px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.bg-purple { background: #7c3aed; }
.bg-blue { background: #2563eb; }
.bg-green { background: #16a34a; }
.bg-orange { background: #f97316; }
.bg-pink { background: #e11d48; }
.bg-violet { background: #8b5cf6; }

.section { padding: 82px 22px; }
.section.gray { background: #f8fafc; }
body.dark .section.gray { background: #0b1220; }
.container { max-width: 1210px; margin: 0 auto; }
.widget-row {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
}
.daily-card, .affairs-card { padding: 28px; overflow: hidden; position: relative; }
.live-badge { display: inline-flex; gap: 7px; align-items: center; color: #dc2626; background: #fee2e2; border-radius: 999px; padding: 6px 11px; font-weight: 900; font-size: 12px; }
.date-tile { width: 76px; border-radius: 16px; overflow: hidden; border: 1px solid #fed7aa; text-align: center; margin-top: 20px; }
.date-tile span { display: block; background: #fb923c; color: #fff; padding: 4px; font-size: 12px; font-weight: 900; }
.date-tile strong { display: block; font-size: 28px; padding: 8px 0; color: #9a3412; background: #fff7ed; }
.daily-card h2 { font-size: 28px; margin: 18px 0 3px; }
.daily-card p { color: var(--muted); margin: 0 0 21px; }
.target-art {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 150px;
  height: 150px;
  opacity: 0.95;
}
.affair-list { display: grid; gap: 15px; }
.affair-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  transition: 0.25s ease;
}
.thumb {
  width: 76px;
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffedd5, #ede9fe);
  display: grid;
  place-items: center;
  color: var(--violet);
}
.affair-item h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.35; }
.affair-item small { color: var(--muted); font-weight: 700; }
.new-pill { color: #15803d; background: #dcfce7; font-size: 11px; font-weight: 900; border-radius: 999px; padding: 5px 8px; }
.stats-strip {
  background: var(--navy);
  color: #fff;
  padding: 54px 22px;
}
.stats-grid {
  max-width: 1210px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.stat-item { text-align: center; }
.stat-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 10px;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-item strong { display: block; font-size: 29px; line-height: 1; }
.stat-item span { color: #94a3b8; font-size: 13px; font-weight: 700; }
.underline-accent {
  width: 72px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  margin: 14px auto 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.feature-card, .content-card, .quiz-card, .note-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 24px;
  transition: 0.25s ease;
}
.feature-card h3, .content-card h3, .quiz-card h3, .note-card h3 { margin: 14px 0 7px; font-size: 19px; }
.feature-card p, .content-card p, .quiz-card p, .note-card p { margin: 0; color: var(--muted); }
.cta-banner {
  display: grid;
  grid-template-columns: 180px 1fr 150px;
  align-items: center;
  gap: 26px;
  padding: 34px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  overflow: hidden;
}
.cta-banner h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; }
.cta-banner p { margin: 8px 0 18px; color: #ddd6fe; }
.yellow-btn { background: #facc15; color: #3b2700; }
.ad-slot {
  display: grid;
  place-items: center;
  min-height: 90px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(248, 250, 252, 0.74);
  font-weight: 800;
  margin: 28px 0;
}

.page-hero {
  padding: 68px 22px 42px;
  background: linear-gradient(135deg, var(--lavender), var(--blue-soft));
}
body.dark .page-hero { background: linear-gradient(135deg, #111827, #101827); }
.page-hero .container { display: grid; gap: 12px; }
.page-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; color: #111c33; }
body.dark .page-hero h1 { color: #fff; }
.page-hero p { color: #56657a; max-width: 880px; margin: 0; font-size: 18px; }
body.dark .page-hero p { color: #cbd5e1; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
}
.filter-bar input, .filter-bar select, .form-field input, .form-field textarea {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 13px 15px;
  background: #fff;
  color: #111827;
  min-height: 48px;
}
body.dark .filter-bar input, body.dark .filter-bar select, body.dark .form-field input, body.dark .form-field textarea { background: #111827; color: #fff; border-color: #334155; }
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 800; margin: 12px 0; }
.tag { display: inline-flex; border-radius: 999px; padding: 5px 9px; background: #eef2ff; color: #4338ca; font-weight: 900; font-size: 12px; }
.prose {
  max-width: 920px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 18px;
}
.prose h2 { margin-top: 34px; font-size: 28px; }
.prose p { color: var(--muted); }
.prose ul { color: var(--muted); }
.article-card .thumb-wide {
  height: 148px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffedd5, #ede9fe 55%, #dbeafe);
  display: grid;
  place-items: center;
  color: var(--violet);
  margin-bottom: 16px;
}
.thumb-wide svg { width: 52px; height: 52px; }

.quiz-shell { background: #f8fafc; min-height: 78vh; padding: 22px; }
body.dark .quiz-shell { background: #070b14; }
.quiz-topbar {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}
body.dark .quiz-topbar { background: rgba(17, 24, 39, 0.96); }
.progress-track { grid-column: 1 / -1; height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(135deg, var(--orange), var(--violet)); border-radius: inherit; transition: width 0.35s ease; }
.quiz-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 22px;
}
.question-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: fadeSlide 0.28s ease both;
}
body.dark .question-card { background: #111827; border-color: #263247; }
.question-card h1 { font-size: 26px; margin: 0 0 20px; line-height: 1.45; }
.options { display: grid; gap: 14px; }
.option-btn {
  width: 100%;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s ease;
}
body.dark .option-btn { background: #0f172a; border-color: #334155; }
.option-btn:hover { border-color: var(--violet); box-shadow: 0 10px 20px rgba(124, 58, 237, 0.12); }
.option-btn.correct {
  border-color: #22c55e;
  background: #dcfce7;
  color: #14532d;
  animation: correctPop 0.42s ease both;
}
.option-btn.incorrect {
  border-color: #ef4444;
  background: #fee2e2;
  color: #7f1d1d;
  animation: shakeX 0.42s ease both;
}
.quiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.palette-card {
  align-self: start;
  position: sticky;
  top: 174px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}
body.dark .palette-card { background: #111827; border-color: #263247; }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 14px; }
.pal-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}
.pal-dot.current { outline: 3px solid rgba(124, 58, 237, 0.25); border-color: var(--violet); }
.pal-dot.answered { background: #dcfce7; color: #166534; border-color: #86efac; }
.pal-dot.marked { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.timer { color: #dc2626; font-weight: 900; }
.result-hero { text-align: center; padding: 54px 22px; }
.result-hero svg.medal { width: 112px; height: 112px; color: #f59e0b; animation: bounceIn 0.8s ease both; }
.score-big { font-size: clamp(42px, 7vw, 76px); font-weight: 900; line-height: 1; margin: 12px 0; }
.breakdown { display: grid; gap: 12px; margin-top: 24px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 54px; align-items: center; gap: 12px; }
.bar { height: 12px; border-radius: 99px; background: #e5e7eb; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(135deg, var(--indigo), var(--violet)); }
.review-list { display: grid; gap: 14px; margin-top: 22px; }
.review-item { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
body.dark .review-item { background: #111827; }

.auth-card, .contact-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
}
.form-grid { display: grid; gap: 16px; }
.form-field { display: grid; gap: 7px; font-weight: 800; }
.form-field textarea { min-height: 130px; resize: vertical; }

.footer {
  color: #e2e8f0;
  background: var(--navy);
  padding: 58px 22px 0;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr repeat(4, 0.8fr) 1.15fr;
  gap: 28px;
}
.footer h2 { font-size: 16px; margin: 0 0 14px; color: #fff; }
.footer p { color: #94a3b8; margin: 14px 0; }
.footer section > a { display: block; color: #cbd5e1; padding: 5px 0; font-size: 14px; }
.footer section > a:hover { color: #fff; }
.brand-footer strong { color: #fff; }
.social-row { display: flex; gap: 10px; }
.social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.22s ease;
}
.social svg { width: 18px; height: 18px; }
.social:hover { transform: scale(1.15); }
.fb { background: #1877f2; }
.tg { background: #229ed9; }
.ig { background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6); }
.yt { background: #ff0000; }
.newsletter form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { min-width: 0; width: 100%; border-radius: 999px; border: 1px solid #334155; background: #111827; color: #fff; padding: 12px 14px; }
.footer-bottom {
  max-width: 1280px;
  margin: 42px auto 0;
  padding: 18px 0;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #94a3b8;
  font-size: 14px;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  gap: 10px;
  justify-items: end;
}
.float-btn, .float-minimize {
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 52px;
  min-height: 52px;
  padding: 0 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
  cursor: pointer;
}
.float-btn span { opacity: 0; max-width: 0; overflow: hidden; transition: 0.2s ease; white-space: nowrap; }
.float-btn:hover span { opacity: 1; max-width: 90px; }
.whatsapp { background: #16a34a; animation: pulseRing 2.4s ease-in-out infinite; }
.telegram { background: #229ed9; animation: gentleBounce 4s ease-in-out infinite; }
.float-minimize { width: 34px; height: 34px; min-height: 34px; min-width: 34px; padding: 0; background: #334155; }
.floating-actions.minimized .float-btn { display: none; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 17, 32, 0.62);
  padding: 88px 22px;
}
.search-box {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 24px;
  background: #fff;
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow);
}
body.dark .search-box { background: #111827; }
.close-search { position: absolute; right: 18px; top: 18px; }
.search-box label { display: block; font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.search-box input { width: 100%; border: 1px solid #dbe3ef; border-radius: 16px; padding: 15px 16px; }
.search-results { display: grid; gap: 8px; margin-top: 14px; }
.search-results a { padding: 12px; border-radius: 12px; background: #f8fafc; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes floatY { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }
@keyframes ringFill { from { stroke-dashoffset: 282; } to { stroke-dashoffset: 70; } }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes correctPop { 0%{ transform: scale(1); box-shadow: none; } 50%{ transform: scale(1.04); box-shadow: 0 0 0 7px rgba(34,197,94,.17), 0 14px 24px rgba(34,197,94,.18); } 100%{ transform: scale(1); } }
@keyframes shakeX { 10%,90%{ transform: translateX(-1px); } 20%,80%{ transform: translateX(2px); } 30%,50%,70%{ transform: translateX(-5px); } 40%,60%{ transform: translateX(5px); } }
@keyframes bounceIn { 0%{ transform: scale(.7); opacity:0; } 60%{ transform: scale(1.08); opacity:1; } 100%{ transform: scale(1); } }
@keyframes pulseRing { 0%,100%{ box-shadow: 0 0 0 0 rgba(22,163,74,.35), 0 14px 32px rgba(15,23,42,.22); } 50%{ box-shadow: 0 0 0 12px rgba(22,163,74,0), 0 14px 32px rgba(15,23,42,.22); } }
@keyframes gentleBounce { 0%,88%,100%{ transform: translateY(0); } 92%{ transform: translateY(-7px); } 96%{ transform: translateY(0); } }

@media (max-width: 1120px) {
  .nav-menu-btn { display: inline-flex; }
  .nav-center {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px 18px;
    box-shadow: var(--shadow);
  }
  body.dark .nav-center { background: #111827; }
  .nav-center.open { display: flex; }
  .nav-center > a, .dropdown > a { padding: 12px 0; }
  .dropdown-panel { position: static; transform: none; opacity: 1; pointer-events: auto; width: 100%; box-shadow: none; display: none; }
  .dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel { transform: none; display: block; }
  .nav-actions .btn { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 470px; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .navbar { padding: 0 14px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 10px; }
  .nav-actions { gap: 6px; }
  .nav-actions .lang-toggle { display: none; }
  .hero { padding: 46px 16px 104px; }
  .hero-chips { grid-template-columns: repeat(2, 1fr); }
  .hero-art { min-height: 390px; }
  .phone { left: 0; right: 0; margin: 0 auto; width: min(258px, 82vw); min-height: 450px; }
  .books, .cap, .ashoka { transform: scale(.78); }
  .books { right: -8px; bottom: 28px; }
  .cap { right: 10px; top: 24px; }
  .ashoka { right: 8px; bottom: 150px; }
  .categories-panel { padding: 20px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .widget-row, .feature-grid, .content-grid, .quiz-layout, .cta-banner { grid-template-columns: 1fr; }
  .cta-banner { text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .quiz-topbar { top: 76px; grid-template-columns: 1fr; }
  .palette-card { position: static; }
  .bar-row { grid-template-columns: 92px 1fr 45px; }
  .affair-item { grid-template-columns: 60px 1fr; }
  .affair-item .new-pill { grid-column: 2; width: max-content; }
  .thumb { width: 60px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
