/* Gyanpith V2 design system — Lavender Premium theme: warm white ground, plum ink, purple action colour,
   soft lavender surfaces, coral and mint accents, lilac marker highlight. Mobile first.
   All colours are tokens below; component rules reference these tokens. */
:root {
  --ink: #241B3B; --ink-2: #4A4060; --muted: #716A83; --muted-2: #8A839B;
  --bg: #FAF9FE; --bg-soft: #F4F0FF; --card: #FFFFFF; --line: #EAE5F2; --line-2: #DED6EE;
  --orange: #7654C8; --orange-btn: #7654C8; --orange-btn-h: #5D3DAE; --orange-soft: #EAE2FF;
  --purple: #7654C8; --purple-ink: #5D3DAE; --blue: #7654C8; --green: #087F54; --pink: #B0305A; --gold-ink: #A3324A;
  --yellow: #DCD0FF; --lavender: #EAE2FF; --lilac: #C9B8FF; --coral: #FF8C9D; --mint: #BFEDE1; --plum: #241B3B;
  --t-peach: #F4F0FF; --t-lav: #EAE2FF; --t-cream: #FFEFF2; --t-pink: #FFE7EB; --t-mint: #DDF5EE; --t-blue: #EDE9FB;
  --r-sm: 12px; --r: 20px; --r-lg: 28px; --r-xl: 36px;
  --shadow: 0 10px 30px rgba(60, 40, 120, .08); --shadow-lg: 0 24px 60px rgba(60, 40, 120, .14);
  --display: 'Poppins', 'Noto Sans Bengali', 'Noto Sans Devanagari', system-ui, sans-serif;
  --body: 'Inter', 'Noto Sans Bengali', 'Noto Sans Devanagari', system-ui, sans-serif;
  --wrap: 1280px; --gutter: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: #5D3DAE; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; color: inherit; }
h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(25px, 3.2vw, 38px); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 20px; font-weight: 600; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hl { background: linear-gradient(transparent 60%, var(--yellow) 60%); padding: 0 4px; border-radius: 4px; }
.eyebrow { font: 800 13px/1.2 var(--body); letter-spacing: 2px; text-transform: uppercase; color: var(--purple-ink); margin-bottom: 8px; display: block; }
.section { padding: 72px 0; }
.section.tight { padding: 40px 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.section-head h2 { margin: 0; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--orange-btn); color: #fff; font: 800 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--orange-btn-h); color: #fff; transform: translateY(-1px); }
.btn.dark { background: var(--plum); } .btn.dark:hover { background: var(--purple-ink); }
.btn.purple { background: var(--purple); } .btn.purple:hover { background: var(--purple-ink); }
.btn.yellow { background: var(--yellow); color: #241B3B; } .btn.yellow:hover { background: #C9B8FF; color: #241B3B; }
.btn.ghost { background: var(--t-peach); color: var(--purple-ink); border: 1.5px solid var(--line-2); } .btn.ghost:hover { background: var(--lavender); border-color: var(--lilac); color: var(--purple-ink); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); background: var(--t-peach); border: 0; cursor: pointer; color: var(--purple-ink); }
.chip.lav { background: var(--t-lav); color: #4A2F99; } .chip.mint { background: var(--t-mint); color: #1E6B57; } .chip.cream { background: var(--t-cream); color: var(--gold-ink); }
.chip.blue { background: var(--t-blue); color: #5D3DAE; } .chip.pink { background: var(--t-pink); color: #A3324A; } .chip.white { background: #fff; box-shadow: var(--shadow); }
.chip.on { background: var(--orange-btn); color: #fff; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.pill.free { background: var(--t-mint); color: #1E6B57; } .pill.lock { background: var(--t-cream); color: var(--gold-ink); } .pill.new { background: var(--t-pink); color: #A3324A; }
.pill.open { background: var(--t-mint); color: #1E6B57; } .pill.closed { background: #F1EDF8; color: var(--muted); }

/* Header */
.topbar { background: var(--bg-soft); border-bottom: 1px solid #E4DAFB; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar .msg { color: var(--muted); }
.langs { display: flex; gap: 2px; }
.langs a { padding: 5px 11px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 13px; }
.langs a.on { background: var(--purple); color: #fff; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand span { font: 800 20px/1 var(--display); letter-spacing: 1px; }
.main-nav { display: none; gap: 2px; flex: 1; }
.main-nav a { padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.main-nav a:hover, .main-nav a.on { background: var(--t-peach); }
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.head-actions .login { display: none; padding: 10px 12px; font-weight: 700; color: var(--ink); text-decoration: none; }
.head-actions .btn { min-height: 44px; padding: 10px 18px; }
.menu-btn { display: inline-flex; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.xp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--t-cream); color: var(--gold-ink); font-weight: 800; font-size: 14px; text-decoration: none; }
@media (min-width: 1100px) { .main-nav { display: flex; } .menu-btn { display: none; } .head-actions .login { display: inline-block; } }
@media (max-width: 520px) { .brand span { font-size: 17px; } .head-actions .btn { padding: 10px 14px; font-size: 14px; } }

/* Bottom app bar on phones */
.app-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--purple-ink); border-radius: 22px; padding: 6px 4px; box-shadow: var(--shadow-lg); }
.app-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; color: #D9D1EE; text-decoration: none; font-size: 11px; font-weight: 800; }
.app-bar a.on { color: var(--yellow); }
body.has-appbar { padding-bottom: 86px; }
@media (min-width: 900px) { .app-bar { display: none; } body.has-appbar { padding-bottom: 0; } }

/* Hero */
.hero { position: relative; background: var(--bg-soft); overflow: hidden; }
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 90px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-badge { display: inline-flex; gap: 10px; align-items: center; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #E4DAFB; font-weight: 600; font-size: 15px; }
.dot-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: gpPulse 1.6s ease-in-out infinite; }
.hero h1 { margin: 22px 0 18px; }
.hero .lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.search-box { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 22px; background: #fff; max-width: 640px; box-shadow: 0 20px 50px rgba(60, 40, 120, .14); }
.search-box select { height: 52px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--t-peach); font: 700 15px var(--body); color: var(--ink); }
.search-box input { flex: 1 1 200px; min-width: 0; height: 52px; border: 0; padding: 0 12px; font: 400 17px var(--body); color: var(--ink); outline: none; background: transparent; }
.search-box .btn { height: 52px; border-radius: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.hero-art { flex: 1 1 420px; min-width: 0; position: relative; min-height: 460px; }
.hero-art .blob1 { position: absolute; right: -10px; top: 20px; width: 400px; height: 400px; border-radius: 50%; background: var(--orange-soft); }
.hero-art .blob2 { position: absolute; right: 60px; top: 90px; width: 270px; height: 270px; border-radius: 50%; background: #DCD0FF; }
.hero-art .dots { position: absolute; left: -20px; top: 200px; width: 120px; height: 120px; background-image: radial-gradient(var(--orange) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .35; }
.float-card { position: absolute; background: #fff; border-radius: 26px; box-shadow: 0 24px 60px rgba(60, 40, 120, .16); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; display: block; }
@media (max-width: 700px) { .hero-art { display: none; } .hero .wrap { padding-bottom: 70px; } }

/* Marquee */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; background: #fff; }
.marquee-track { display: flex; width: max-content; gap: 40px; padding: 16px 0; font: 700 17px var(--display); color: var(--ink); white-space: nowrap; animation: gpMarquee 32s linear infinite; }
.marquee-track .star { color: var(--orange); } .marquee-track .star.p { color: var(--purple); }

/* Cards and grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { background: var(--card); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 6px 24px rgba(60, 40, 120, .06); border: 1px solid var(--line); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.peach { background: var(--t-peach); box-shadow: none; } .card.lav { background: var(--t-lav); box-shadow: none; } .card.cream { background: var(--t-cream); box-shadow: none; }
.card.pink { background: var(--t-pink); box-shadow: none; } .card.mint { background: var(--t-mint); box-shadow: none; } .card.blue { background: var(--t-blue); box-shadow: none; }
.card.dark { background: var(--purple-ink); border-color: transparent; color: #fff; box-shadow: none; } .card.dark .muted { color: #D9D1EE; }
a.card { display: block; color: var(--ink); text-decoration: none; }
.lift { transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(60, 40, 120, .14); } }
.card h3 { margin-bottom: 6px; }
.icon-tile { width: 54px; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 6px 16px rgba(60, 40, 120, .08); font: 800 22px var(--display); flex: none; }
.num-badge { width: 54px; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; font: 800 22px var(--display); }
.subject-card { display: flex; flex-direction: column; gap: 16px; }
.list-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid #F1EDF8; }
.list-row:first-child { border-top: 0; }
.list-row a { color: var(--ink); font-weight: 700; text-decoration: none; }
.list-row a:hover { color: var(--orange-btn); }
.feature { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 34px; border-radius: 30px; background: var(--purple-ink); color: #fff; text-decoration: none; min-height: 340px; }
.feature:hover { color: #fff; }
.dark-band { position: relative; overflow: hidden; background: var(--purple-ink); color: #fff; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 52px); }
.dark-band .muted { color: #D9D1EE; }
.dark-band::before { content: ''; position: absolute; right: -150px; top: -150px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(118, 84, 200, .35), rgba(118, 84, 200, 0) 65%); }
.dark-band > * { position: relative; }
.stat { padding: 20px; border-radius: 22px; }
.stat b { display: block; font: 800 30px/1.1 var(--display); margin-top: 6px; }

/* Breadcrumbs and page head */
.page-hero { background: var(--bg-soft); padding: 34px 0 40px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); margin: 10px 0 10px; }
.page-hero .lead { color: var(--muted); font-size: 18px; max-width: 760px; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: #B3ACC4; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.tabs a { padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(60, 40, 120, .06); font-size: 15px; }
.tabs a.on { background: var(--orange-btn); color: #fff; }

/* Reading layout */
.reader { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding: 36px 0 72px; }
.reader-main { flex: 999 1 600px; min-width: 0; }
.reader-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .reader-side { position: sticky; top: 90px; } }
.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 28px; margin-top: 1.6em; } .prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose img { border-radius: 16px; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-radius: 16px; background: var(--t-cream); }
.prose code { background: #F3F0FA; padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.prose pre { background: #2B2140; color: #EFEAFB; padding: 16px; border-radius: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border-radius: 16px; border: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--t-peach); }
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 6px 0; }
.key-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.key-points li { padding: 12px 16px 12px 44px; border-radius: 14px; background: var(--t-lav); position: relative; }
.key-points li::before { content: ''; position: absolute; left: 16px; top: 18px; width: 12px; height: 12px; border-radius: 4px; background: var(--purple); }
.viewer-frame { width: 100%; height: 78vh; min-height: 520px; border: 0; border-radius: 20px; background: #F6F4FB; box-shadow: var(--shadow); display: block; }
.video-frame { position: relative; padding-top: 56.25%; border-radius: 20px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.paywall { border-radius: 26px; padding: 30px; background: var(--t-cream); text-align: center; }
.paywall h2 { font-size: 26px; }

/* PDF viewer */
.pdfv { border-radius: 22px; overflow: hidden; background: #F1EDF8; box-shadow: var(--shadow); }
.pdfv-bar { position: sticky; top: 70px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; background: var(--purple-ink); color: #fff; }
.pdfv-bar button, .pdfv-bar a { min-width: 44px; min-height: 40px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: 700 14px var(--body); cursor: pointer; padding: 0 12px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.pdfv-bar input { width: 64px; min-height: 40px; border-radius: 10px; border: 0; text-align: center; font: 700 15px var(--body); }
.pdfv-bar .grow { flex: 1; }
.pdfv-pages { padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 60vh; }
.pdfv-pages canvas { max-width: 100%; height: auto !important; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); border-radius: 6px; }
.pdfv.night .pdfv-pages canvas { filter: invert(.92) hue-rotate(180deg); }
.pdfv-page { position: relative; width: 100%; display: flex; justify-content: center; }
.pdfv-wm { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; color: rgba(60, 40, 120, .09); font: 800 28px var(--display); transform: rotate(-24deg); text-align: center; }

/* Forms */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--line-2); border-radius: 14px; font: 400 16px var(--body); color: var(--ink); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); outline: none; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
.field .err { color: #B3261E; font-size: 14px; font-weight: 600; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { width: 20px; height: 20px; margin-top: 3px; }
.alert { padding: 14px 18px; border-radius: 16px; margin-bottom: 16px; font-weight: 600; }
.alert.ok { background: var(--t-mint); color: #1E6B57; } .alert.error { background: #FDE7E5; color: #8C1D18; } .alert.info { background: var(--t-blue); color: #4A2F99; }
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter); background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 460px; }
.role-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.role-pick label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 16px; border: 2px solid var(--line-2); cursor: pointer; font-weight: 700; text-align: center; }
.role-pick input { position: absolute; opacity: 0; }
.role-pick input:checked + span { color: var(--orange-btn); }
.role-pick label:has(input:checked) { border-color: var(--orange-btn); background: var(--t-peach); }

/* Quiz */
.quiz { max-width: 860px; margin: 0 auto; }
.quiz-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.quiz-progress { height: 8px; border-radius: 99px; background: #F1EDF8; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--orange); border-radius: 99px; transition: width .3s; }
.q-card { padding: clamp(20px, 4vw, 34px); border-radius: 28px; background: #fff; box-shadow: var(--shadow); margin-top: 16px; }
.q-stem { font-size: 20px; line-height: 1.55; font-weight: 600; margin: 14px 0 20px; }
.q-passage { padding: 16px 18px; border-radius: 16px; background: var(--t-blue); margin-bottom: 14px; }
.opt { display: flex; gap: 14px; align-items: center; width: 100%; min-height: 58px; padding: 12px 16px; margin-bottom: 10px; border-radius: 18px; border: 2px solid var(--line-2); background: #fff; font: 600 17px var(--body); color: var(--ink); text-align: left; cursor: pointer; }
.opt:hover { border-color: var(--ink); }
.opt .k { width: 36px; height: 36px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--t-peach); }
.opt.sel { border-color: var(--purple); background: var(--t-lav); }
.opt.right { border-color: var(--green); background: #E3F7EC; } .opt.right .k { background: var(--green); color: #fff; }
.opt.wrong { border-color: #C62828; background: #FDECEC; } .opt.wrong .k { background: #C62828; color: #fff; }
.feedback { margin-top: 16px; padding: 16px 18px; border-radius: 18px; }
.feedback.ok { background: #E3F7EC; } .feedback.no { background: #FDECEC; }
.q-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.q-nav button { height: 44px; border-radius: 12px; border: 0; background: #F1EDF8; font-weight: 800; cursor: pointer; }
.q-nav button.done { background: var(--t-lav); } .q-nav button.cur { outline: 2px solid var(--purple); }
.match-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.match-row .left { flex: 1 1 200px; padding: 12px 14px; border-radius: 14px; background: var(--t-peach); font-weight: 600; }
.match-row select { flex: 1 1 200px; min-height: 50px; border-radius: 14px; border: 2px solid var(--line-2); padding: 0 12px; font: 600 16px var(--body); }
.num-input { width: 100%; max-width: 260px; min-height: 56px; border-radius: 16px; border: 2px solid var(--line-2); padding: 0 16px; font: 700 20px var(--body); }
.score-ring { width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font: 800 36px var(--display); }

/* Chat (Gyani) */
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 88%; padding: 14px 18px; border-radius: 22px; font-size: 16px; line-height: 1.6; }
.bubble.me { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: #fff; box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.chat-form { display: flex; gap: 8px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); position: sticky; bottom: 96px; }
.chat-form textarea { flex: 1; min-height: 52px; max-height: 160px; border: 0; padding: 14px; font: 400 16px var(--body); resize: none; outline: none; }
@media (min-width: 900px) { .chat-form { bottom: 16px; } }

/* Footer */
.site-footer { background: #2F2450; color: #DDD5F2; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 60px; padding-bottom: 30px; }
.site-footer a { color: #D9D1EE; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 44px; font-size: 16px; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-cols b { color: var(--yellow); }
.site-footer .wrap.foot-bottom { display: block; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; padding-bottom: 24px; font-size: 14px; }

/* Utilities */
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 12px; } .mt2 { margin-top: 24px; } .mt3 { margin-top: 40px; } .mb0 { margin-bottom: 0; }
.empty { text-align: center; padding: 40px 20px; border-radius: 24px; background: #FAF9FE; color: var(--muted); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.pager a { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 700; }
.pager a.on { background: var(--ink); color: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.bar { height: 10px; border-radius: 99px; background: #F1EDF8; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--orange); }

@keyframes gpFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes gpMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gpPulse { 0%, 100% { scale: 1; } 50% { scale: 1.3; } }
.float { animation: gpFloat 4.5s ease-in-out infinite; } .float2 { animation: gpFloat 5.5s ease-in-out -2s infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .topbar, .app-bar, .site-footer, .reader-side, .no-print { display: none !important; } body { padding: 0; } }

/* Lavender Premium refinements */
::selection { background: var(--lilac); color: var(--plum); }
.btn { letter-spacing: .01em; box-shadow: 0 6px 16px rgba(118, 84, 200, .18); }
.btn.ghost, .btn.yellow { box-shadow: none; }
.site-header { border-bottom-color: var(--line); }
.main-nav a:hover, .main-nav a.on { background: var(--lavender); color: var(--purple-ink); }
.prose { color: #2E2547; }
.prose h2, .prose h3 { color: var(--purple-ink); }
.prose blockquote { background: var(--t-peach); border: 1px solid var(--line); }
.prose th { background: var(--lavender); color: var(--plum); }
.key-points li { background: var(--t-peach); border: 1px solid var(--line); }
.feedback.ok { border: 1px solid #A9E5C3; } .feedback.no { border: 1px solid #F3B8B4; }
.opt { border-width: 1.5px; } .opt:hover { border-color: var(--lilac); background: var(--t-peach); }
.opt.sel { border-color: var(--purple); background: var(--lavender); }
.pill.lock { background: #FFE7EB; color: #A3324A; }
.alert.info { background: var(--lavender); color: var(--purple-ink); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(118, 84, 200, .12); }
.pager a.on, .tabs a.on { background: var(--purple); color: #fff; }
.bar span, .quiz-progress span { background: linear-gradient(90deg, var(--purple), var(--lilac)); }
