/* BeBrainer: same look as the existing site (dark, purple), set in Kalpurush at a larger size. Mobile first, one small file. */
@font-face {
  font-family: "Kalpurush";
  src: url("../fonts/kalpurush.woff2") format("woff2"), url("../fonts/kalpurush.woff") format("woff");
  font-display: swap;
}
:root {
  --bg: #05090d;
  --text: #eef2f5;
  --head: #f1f5f9;
  --muted: #94a3b8;
  --card: #0f172a;
  --line: #314158;
  --line-soft: #171d24;
  --p1: #5b31e1;
  --p2: #8b5cf6;
  --violet: #7f22fe;
  --glow: rgba(173, 70, 255, .3);
  --grad: linear-gradient(135deg, var(--p1), var(--p2));
  /* Colours that change between the dark and the bright theme */
  --field: #1e293b; --accent: #c4b5fd; --accent-soft: #ddd6fe; --soft: #cbd5e1; --deep: #0b1220; --strong: #fff;
  --top-bg: rgba(15, 23, 42, .7); --panel-bg: rgba(15, 23, 42, .6);
  --good: #86efac; --bad: #fca5a5; --warn: #fcd34d; --info: #7dd3fc;
  color-scheme: dark;
}
/* Bright (day) theme. The visitor picks it with the sun and moon switch in the header; the choice is remembered. */
:root[data-theme="light"] {
  --bg: #f8fafc; --text: #1e293b; --head: #0f172a; --muted: #64748b; --card: #ffffff; --line: #dbe2ea; --line-soft: #e2e8f0;
  --glow: rgba(139, 92, 246, .28);
  --field: #f1f5f9; --accent: #6d28d9; --accent-soft: #5b21b6; --soft: #475569; --deep: #ffffff; --strong: #0f172a;
  --top-bg: rgba(255, 255, 255, .88); --panel-bg: #ffffff;
  --good: #15803d; --bad: #b91c1c; --warn: #b45309; --info: #0369a1;
  color-scheme: light;
}
:root[data-theme="light"] .card, :root[data-theme="light"] .box, :root[data-theme="light"] .cat, :root[data-theme="light"] .panel, :root[data-theme="light"] .q,
:root[data-theme="light"] .person, :root[data-theme="light"] .vcard, :root[data-theme="light"] .order { box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .05); }
:root[data-theme="light"] .hero { background: linear-gradient(to right bottom, rgba(139, 92, 246, .14) 0%, #ffffff 50%, rgba(139, 92, 246, .14) 100%); }
:root[data-theme="light"] .tabbar { box-shadow: 0 -4px 18px rgba(15, 23, 42, .08); }
.logo-light, :root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: "Kalpurush", "Noto Sans Bengali", system-ui, sans-serif;
  font-size: 19px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  padding-bottom: 96px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--head); line-height: 1.25; text-wrap: balance; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Announcement bar */
.ticker { background: linear-gradient(90deg, #4c1d95, #7c3aed, #4c1d95); color: #fff; font-weight: 600; font-size: 18px; }
.ticker .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; text-align: center; }
.ticker a { white-space: nowrap; font-weight: 700; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--top-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; color: #fff; line-height: 1; }
.brand i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--card); font-style: normal; font-weight: 900; }
.brand small { display: block; font-size: 11px; letter-spacing: 2px; font-weight: 500; color: var(--soft); margin-top: 3px; }
.top nav { display: none; gap: 22px; font-weight: 500; font-size: 18px; }
.top nav a:hover, .top nav a.on { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: inherit; font-weight: 700; color: #fff; background: var(--grad); border: 2px solid transparent; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn.outline { background: transparent; border-color: var(--p1); color: var(--accent); }
.btn.pill { border-radius: 999px; background: var(--violet); min-height: 42px; width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { margin-top: 22px; border: 1px solid var(--glow); border-radius: 36px; padding: 22px 18px 28px; text-align: center;
  background: linear-gradient(to right bottom, rgba(173, 70, 255, .1) 0%, var(--card) 50%, rgba(173, 70, 255, .1) 100%); }
.banner { aspect-ratio: 16 / 9; border-radius: 22px; border: 3px solid var(--deep); background: linear-gradient(135deg, #2e1065, #7c3aed 60%, #c026d3); display: grid; place-items: center; color: #ede9fe; font-weight: 700; font-size: 21px; padding: 16px; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 20px; }
.dots span { width: 7px; height: 7px; border-radius: 99px; background: #475569; }
.dots span:first-child { width: 30px; background: var(--p2); }
.hero h1 { font-size: 35px; font-weight: 900; }
.hero p { margin: 14px auto 0; max-width: 70ch; color: var(--soft); }
.hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 22px auto 0; }

/* Sections */
section { padding: 38px 0 0; }
.title { text-align: center; margin-bottom: 20px; }
.title h2 { font-size: 33px; font-weight: 800; }
.title p { color: var(--muted); margin-top: 6px; }

/* Category grid */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 118px; padding: 20px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; text-align: center; font-weight: 600; line-height: 1.3; }
.cat:hover, .cat.on { border-color: var(--p2); }
.cat i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; background: rgba(139, 92, 246, .22); color: var(--accent); font-style: normal; font-weight: 800; font-size: 17px; }

/* Course cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.thumb { aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(135deg, #4c1d95, #a21caf); display: grid; place-items: center; text-align: center; padding: 14px; color: #f5d0fe; font-weight: 700; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 22px; left: 22px; font-size: 13px; font-weight: 800; letter-spacing: .6px; padding: 3px 10px; border-radius: 99px; background: #facc15; color: #1e1b4b; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 18px; }
.stats div { border: 1px solid var(--line); border-radius: 14px; padding: 6px 4px; text-align: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.stats b { display: block; font-size: 18px; color: var(--head); }
.card h3 { font-size: 19px; font-weight: 700; }
.price { border-top: 1px solid var(--line); padding-top: 10px; font-size: 22px; font-weight: 700; color: var(--accent); margin-top: auto; }
.price s { font-size: 17px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.center { display: flex; justify-content: center; margin-top: 22px; }

/* Course page */
.crumb { font-size: 17px; color: var(--muted); padding: 18px 0 0; }
.crumb a { color: var(--accent); }
.detail { padding: 14px 0 10px; display: grid; gap: 18px; }
.detail h1 { font-size: 28px; font-weight: 800; margin: 14px 0; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.box h2 { font-size: 21px; margin-bottom: 10px; }
.box ul { margin: 0; padding-left: 20px; }
.box li { margin: 6px 0; }
.note { font-size: 17px; color: var(--muted); margin-top: 10px; }
.empty { padding: 30px 0; color: var(--muted); text-align: center; }

/* Footer */
footer { margin-top: 44px; border-top: 1px solid var(--line-soft); padding: 26px 0; color: var(--muted); font-size: 18px; text-align: center; }
footer b { color: var(--strong); }
footer a { color: var(--accent); }

/* Bottom bar with the round Profile button in the middle */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: var(--deep); border-top: 1px solid var(--line-soft); border-radius: 26px 26px 0 0; padding: 10px 6px calc(8px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 14px; font-weight: 600; color: #64748b; }
.tabbar a.on { color: var(--accent); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar .me span { display: grid; place-items: center; width: 54px; height: 54px; margin-top: -34px; border-radius: 99px; background: var(--grad); color: #fff; border: 4px solid var(--bg); box-shadow: 0 0 18px rgba(139, 92, 246, .55); }

@media (min-width: 640px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 32px; }
  .hero h1 { font-size: 42px; }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .top nav { display: flex; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: center; text-align: left; padding: 44px; }
  .hero h1 { font-size: 52px; }
  .hero p { margin-left: 0; }
  .hero .actions { margin-left: 0; }
  .dots { margin-bottom: 0; }
  .detail { grid-template-columns: 1.7fr 1fr; align-items: start; }
  .detail .side { position: sticky; top: 92px; }
}

/* Login, register and profile */
.authwrap { max-width: 560px; padding-top: 48px; padding-bottom: 20px; text-align: center; }
.auth { text-align: left; padding: 26px 22px; }
.auth h1 { font-size: 26px; text-align: center; }
.auth .note { text-align: center; margin: 8px 0 18px; }
.auth label { display: block; font-weight: 600; margin: 14px 0 6px; }
.auth input { width: 100%; min-height: 52px; padding: 0 14px; font: inherit; color: var(--text); background: var(--field); border: 2px solid var(--line); border-radius: 12px; }
.auth input:focus { outline: none; border-color: #38bdf8; }
.phone { display: flex; border-radius: 12px; }
.phone span { display: grid; place-items: center; padding: 0 14px; background: var(--field); border: 2px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; font-weight: 700; }
.phone input { border-radius: 0 12px 12px 0; }
.auth .btn { margin-top: 20px; min-height: 52px; }
.err { color: var(--bad); margin-top: 8px; }
.ok { background: rgba(34, 197, 94, .14); border: 1px solid #22c55e; color: var(--good); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.back { display: inline-block; margin-top: 22px; padding: 8px 18px; border-radius: 99px; background: var(--field); font-size: 16px; font-weight: 600; }
.me-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.me-card h1 { font-size: 26px; }

/* Student dashboard */
.dash { padding-top: 26px; }
.dmenu { border: 1px solid var(--line); border-radius: 18px; background: var(--card); margin-bottom: 18px; }
.dmenu summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.dmenu summary::-webkit-details-marker { display: none; }
.dmenu summary::after { content: "\2630"; }
.dmenu[open] summary::after { content: "\2715"; }
.dmenu .inner { padding: 0 14px 14px; }
.who { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.who b { display: block; font-size: 20px; color: var(--head); }
.who span { color: var(--accent); font-weight: 700; font-size: 16px; }
.dmenu a, .dmenu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border-radius: 14px; font: inherit; font-weight: 700; color: var(--text); background: none; border: 0; text-align: left; cursor: pointer; }
.dmenu a:hover, .dmenu button:hover { background: var(--field); }
.dmenu a.on { background: var(--violet); color: #fff; }
.dmenu a.on::after { content: "\203A"; font-size: 24px; line-height: 1; }
.dmenu button { color: var(--bad); }
.panel { border: 1px solid var(--line); border-radius: 22px; background: var(--panel-bg); padding: 20px 16px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-head h1 { font-size: 28px; font-weight: 800; }
.panel-head p { color: var(--muted); margin-top: 4px; }
@media (max-width: 559px) { .panel-head > .g-btn, .panel-head > .btn { width: 100%; justify-content: center; } }
.btn.soft { min-height: 42px; border-radius: 99px; background: rgba(139, 92, 246, .16); border: 1px solid var(--p1); color: var(--accent-soft); }
@media (min-width: 1024px) {
  .dash { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
  .dmenu { position: sticky; top: 96px; }
  .panel { padding: 28px; }
}

/* Course learning page */
.sec { border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin-bottom: 10px; padding: 0 14px; }
.sec summary { padding: 14px 2px; font-weight: 700; cursor: pointer; }
.sec[open] { padding-bottom: 12px; }
.sec.sub { background: var(--deep); margin: 8px 0 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-top: 8px; }
.item:hover { border-color: var(--p2); }
.kind { flex: none; min-width: 62px; text-align: center; font-size: 14px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: rgba(139, 92, 246, .22); color: var(--accent); }
.kind.k-pdf { background: rgba(248, 113, 113, .18); color: var(--bad); }
.kind.k-link { background: rgba(56, 189, 248, .18); color: var(--info); }
.kind.k-note { background: rgba(250, 204, 21, .18); color: var(--warn); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.notebody { line-height: 1.8; }

/* Progress, steps, search, locked items */
.grow { flex: 1; min-width: 0; }
.sec summary { display: flex; align-items: center; gap: 10px; }
.sec summary small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.item.seen { border-color: #166534; }
.item.locked { color: var(--muted); }
.tick { flex: none; color: var(--good); font-weight: 700; font-size: 16px; }
.item.locked .tick, .item:not(.seen) .tick { color: var(--muted); }
.bar { height: 10px; border-radius: 99px; background: var(--field); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #4ade80); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 18px; }
.search input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; font: inherit; color: var(--text); background: var(--field); border: 2px solid var(--line); border-radius: 14px; }
.search input:focus { outline: none; border-color: #38bdf8; }

/* Checkout and orders */
.pay { max-width: 680px; padding-bottom: 20px; }
.pay h1 { font-size: 28px; font-weight: 800; margin: 12px 0 16px; }
.pay .box { margin-bottom: 14px; }
.pay label:not(.choice) { display: block; font-weight: 600; margin: 14px 0 6px; }
.pay input:not([type=radio]), .pay textarea { width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; color: var(--text); background: var(--field); border: 2px solid var(--line); border-radius: 12px; }
.pay input:focus, .pay textarea:focus { outline: none; border-color: #38bdf8; }
.pay .btn.pill { margin-top: 20px; min-height: 54px; }
.choices { display: grid; gap: 10px; margin: 12px 0; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--p2); background: rgba(139, 92, 246, .14); }
.choice input { width: 22px; height: 22px; accent-color: var(--p2); flex: none; }
.choice span { flex: 1; min-width: 0; }
.choice small { display: block; color: var(--muted); font-size: 16px; }
.choice em { font-style: normal; font-weight: 700; color: var(--accent); white-space: nowrap; }
.choice em.num { font-size: 21px; color: var(--strong); letter-spacing: .5px; }
.total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.total b { font-size: 26px; color: var(--accent); }
.err-box { border: 1px solid #b91c1c; background: rgba(248, 113, 113, .12); color: var(--bad); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.err-box ul { margin: 6px 0 0; padding-left: 20px; }
.order { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 14px 16px; margin-bottom: 10px; }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.state { flex: none; font-size: 15px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: rgba(250, 204, 21, .18); color: var(--warn); }
.state.verified { background: rgba(34, 197, 94, .18); color: var(--good); }
.state.rejected { background: rgba(248, 113, 113, .18); color: var(--bad); }

/* Exams */
.kind.k-exam { background: rgba(52, 211, 153, .18); color: #a7f3d0; }
.rules { margin: 14px 0; padding-left: 22px; color: var(--soft); }
.rules li { margin: 6px 0; }
.subhead { font-size: 21px; margin: 24px 0 10px; }
.exam { max-width: 760px; padding-bottom: 90px; }
.clock { position: sticky; top: 76px; z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0; padding: 10px 16px; border-radius: 14px; background: #1e1b4b; border: 1px solid var(--p1); font-weight: 700; color: #fff; }
.clock span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock b { font-size: 24px; font-variant-numeric: tabular-nums; }
.clock.low { background: #7f1d1d; border-color: #ef4444; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.modes a { text-align: center; padding: 9px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.modes a.on { background: var(--violet); color: #fff; }
.q { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 14px; margin: 0 0 12px; min-width: 0; }
.q legend, .q .qt { font-weight: 700; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.q legend span, .q .qt span { color: var(--accent); }
.opt { clear: both; display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: 8px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--p2); background: rgba(139, 92, 246, .16); }
.opt input { width: 22px; height: 22px; flex: none; accent-color: var(--p2); }
.opt span { flex: 1; min-width: 0; }
.opt em { font-style: normal; font-size: 15px; font-weight: 700; white-space: nowrap; }
.review .opt { cursor: default; }
.opt.right { border-color: #16a34a; background: rgba(34, 197, 94, .14); }
.opt.right em { color: var(--good); }
.opt.wrong { border-color: #dc2626; background: rgba(248, 113, 113, .12); }
.opt.wrong em { color: var(--bad); }
.explain { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--field); }
.clear { margin-top: 10px; padding: 4px 10px; font: inherit; font-size: 15px; color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.omr-row { display: flex; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 8px 2px; min-width: 0; }
.omr-row legend { float: left; width: 44px; font-weight: 700; color: var(--accent); padding: 0; }
.omr-row label { cursor: pointer; }
.omr-row input { position: absolute; opacity: 0; }
.omr-row span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 99px; border: 2px solid #64748b; font-weight: 700; font-family: system-ui, sans-serif; }
.omr-row input:checked + span { background: #f8fafc; border-color: #f8fafc; color: #0f172a; }
.omr-row input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.submitbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--deep); border-top: 1px solid var(--line); }
.submitbar .btn { min-width: 130px; }
.exam ~ footer, body:has(.exam) .tabbar, body:has(.exam) footer { display: none; }
.scorebox { text-align: center; padding: 18px; border: 1px solid var(--p1); border-radius: 18px; background: linear-gradient(135deg, rgba(91, 49, 225, .25), rgba(139, 92, 246, .1)); margin-bottom: 12px; }
.scorebox b { font-size: 46px; line-height: 1.1; }
.scorebox small { font-size: 22px; color: var(--muted); }
.scorebox strong { color: var(--warn); font-size: 22px; }
.pay input[type=file] { padding: 14px; min-height: 0; }
button:disabled { opacity: .6; cursor: wait; }

/* Daily vocabulary */
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: block; min-width: 76px; text-align: center; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; font-weight: 700; }
.pick input:checked + span { border-color: var(--p2); background: rgba(139, 92, 246, .2); color: var(--strong); }
.pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.word { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 14px 16px; margin-top: 10px; }
.word.done { border-color: #166534; }
.word.miss { border-color: #991b1b; }
.word-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.word-top b { font-size: 26px; font-family: Georgia, "Times New Roman", serif; color: var(--strong); overflow-wrap: anywhere; }
.meaning { font-size: 21px; color: var(--accent-soft); }
.star { width: 46px; height: 46px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.star.on { color: #facc15; border-color: #a16207; }
.flash { border: 1px solid var(--p1); border-radius: 22px; background: linear-gradient(135deg, rgba(91, 49, 225, .22), var(--card)); padding: 30px 18px; text-align: center; }
.flash > b { display: block; font-size: 40px; font-family: Georgia, "Times New Roman", serif; color: var(--strong); overflow-wrap: anywhere; }
.flash details { margin-top: 18px; }
.flash summary { list-style: none; cursor: pointer; }
.flash summary::-webkit-details-marker { display: none; }
.flash details[open] summary { display: none; }
.flash .meaning { font-size: 30px; }
.btn.yes { background: #15803d; border-color: #15803d; }
.btn.no { background: #b91c1c; border-color: #b91c1c; }
.deck { display: block; border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 14px 16px; margin-bottom: 10px; }
.deck:hover { border-color: var(--p2); }
.flash > b.front { font-family: inherit; font-size: 26px; line-height: 1.4; }
.flash .meaning.back { font-size: 24px; line-height: 1.5; }
.pay select { width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; color: var(--text); background: var(--field); border: 2px solid var(--line); border-radius: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Home page content sections, reviews and notices */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 12px; margin: 0 -16px; scroll-snap-type: x proximity; }
.vcard { flex: none; width: 240px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.vcard b { font-size: 18px; line-height: 1.35; }
.vcard small { color: var(--accent); font-weight: 700; }
.who-row { display: flex; align-items: center; gap: 12px; }
.who-row img, .avatar { width: 52px; height: 52px; border-radius: 99px; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 22px; }
.who-row small { display: block; color: var(--muted); }
.stars { color: #facc15; letter-spacing: 2px; }
.stars span { color: #475569; }
.cat b.big { font-size: 30px; color: var(--strong); }
.c-blue b.big, .c-blue .kind { color: var(--info); } .c-green b.big, .c-green .kind { color: var(--good); }
.c-red b.big, .c-red .kind { color: var(--bad); } .c-amber b.big, .c-amber .kind { color: var(--warn); }
.pick a span.on { border-color: var(--p2); background: rgba(139, 92, 246, .2); color: var(--strong); }

/* Services, people, gallery, contact */
.svc { display: flex; flex-direction: column; gap: 8px; }
.svc b.big { font-size: 22px; }
.svc p { color: var(--muted); margin: 0; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 10px; }
.person img, .person .avatar { width: 84px; height: 84px; border-radius: 99px; object-fit: cover; font-size: 30px; }
.person small { color: var(--muted); line-height: 1.35; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.photos a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photos span { display: block; padding: 8px 10px; font-size: 16px; line-height: 1.3; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .btn { justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notebody { overflow-wrap: anywhere; line-height: 1.7; }
@media (min-width: 700px) { .people { grid-template-columns: repeat(4, 1fr); } .photos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(6, 1fr); } }

/* Model test list */
.mt { margin-bottom: 14px; }
.mt-title { font-size: 22px; line-height: 1.35; display: block; }
.mt .row2 form { display: contents; }

/* Flag a wrong question */
.flagbox { margin-top: 10px; clear: both; }
.flagbox summary { cursor: pointer; color: var(--muted); font-size: 16px; text-decoration: underline; list-style: none; }
.flagbox summary::-webkit-details-marker { display: none; }
.flagbox textarea { width: 100%; margin: 8px 0; }
.note.flagged { color: var(--warn); clear: both; }
.btn.off { opacity: .55; pointer-events: none; }
.product { display: grid; gap: 18px; }
.product h1 { font-size: 27px; line-height: 1.3; margin: 6px 0 10px; }
.product-img { aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #4c1d95, #a21caf); display: grid; place-items: center; font-weight: 800; font-size: 26px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.buy select, .cartline select { min-height: 48px; padding: 6px 12px; font: inherit; color: var(--text); background: var(--field); border: 2px solid var(--line); border-radius: 12px; }
.buy .btn { flex: 1 1 180px; }
.cartline { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cartline .grow { flex: 1; min-width: 0; }
.cartline small { display: block; color: var(--muted); }
.cartline .amt { white-space: nowrap; color: var(--accent); }
.cartline .x { width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--muted); font: inherit; cursor: pointer; }
.pay .cartline select { width: auto; min-height: 44px; }
@media (min-width: 700px) { .product { grid-template-columns: 360px 1fr; } }

/* Logo, home banner slider, category pictures, review screenshots */
.brand img { height: 36px; width: auto; display: block; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 22px; border: 3px solid var(--deep); scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 9; display: block; background: var(--deep); }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dots span { width: 7px; height: 7px; border-radius: 99px; background: #475569; transition: width .2s; }
.dots span:first-child { width: 7px; background: #475569; }
.dots span.on { width: 30px; background: var(--p2); }
.cat img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); max-height: 320px; }
.shot img { width: 100%; display: block; object-fit: cover; object-position: top; max-height: 320px; }

/* Theme switch and phone menu in the header */
.tools { display: flex; align-items: center; gap: 10px; }
.themesw { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 99px; border: 1px solid var(--line); background: var(--field); cursor: pointer; font: inherit; color: var(--muted); }
.themesw span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 99px; }
.themesw svg { width: 17px; height: 17px; }
.themesw .moon, :root[data-theme="light"] .themesw .sun { background: var(--p1); color: #fff; }
:root[data-theme="light"] .themesw .moon { background: none; color: var(--muted); }
.themesw .sun { background: none; }
.mnav { position: relative; }
.mnav > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--head); }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary svg { width: 26px; height: 26px; }
.mnav nav { position: absolute; right: 0; top: 52px; z-index: 40; display: grid; gap: 2px; width: min(78vw, 300px); padding: 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.mnav nav a { padding: 11px 14px; border-radius: 12px; font-weight: 600; }
.mnav nav a.on, .mnav nav a:hover { background: var(--field); color: var(--accent); }
.mnav nav a.go { background: var(--grad); color: #fff; text-align: center; margin-top: 6px; }
.top > .wrap > .btn { display: none; }
@media (min-width: 1024px) { .mnav { display: none; } .top > .wrap > .btn { display: inline-flex; } }
@media (max-width: 639px) { .hero .actions { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------------------------
   Polish pass: cleaner type, even proportions, and a soft glass look.
   English letters and digits use Poppins; Bangla stays in Kalpurush (the browser picks per letter).
   --------------------------------------------------------------------------------------------- */
@font-face { font-family: "BB Latin"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); unicode-range: U+0021-007E, U+00A0-00FF, U+2010-2027, U+20AC, U+2190-2193; size-adjust: 88%; }
@font-face { font-family: "BB Latin"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); unicode-range: U+0021-007E, U+00A0-00FF, U+2010-2027, U+20AC, U+2190-2193; size-adjust: 88%; }
@font-face { font-family: "BB Latin"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); unicode-range: U+0021-007E, U+00A0-00FF, U+2010-2027, U+20AC, U+2190-2193; size-adjust: 88%; }
@font-face { font-family: "BB Latin"; font-weight: 700 900; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); unicode-range: U+0021-007E, U+00A0-00FF, U+2010-2027, U+20AC, U+2190-2193; size-adjust: 88%; }

:root {
  --glass: rgba(15, 23, 42, .55); --glass-line: rgba(148, 163, 184, .18); --glass-hi: rgba(255, 255, 255, .06);
  --blob1: rgba(124, 58, 237, .30); --blob2: rgba(37, 99, 235, .20); --blob3: rgba(192, 38, 211, .16);
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
:root[data-theme="light"] {
  --glass: rgba(255, 255, 255, .66); --glass-line: rgba(15, 23, 42, .08); --glass-hi: rgba(255, 255, 255, .9);
  --blob1: rgba(139, 92, 246, .22); --blob2: rgba(56, 189, 248, .18); --blob3: rgba(232, 121, 249, .16);
  --shadow: 0 10px 30px rgba(30, 41, 59, .08);
}
body { font-family: "BB Latin", "Kalpurush", "Noto Sans Bengali", system-ui, sans-serif; font-size: 18px; line-height: 1.65; letter-spacing: 0; }
/* Soft coloured light behind the page, so the glass panels have something to blur. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60vw 60vw at 10% -5%, var(--blob1), transparent 60%), radial-gradient(55vw 55vw at 105% 20%, var(--blob2), transparent 60%), radial-gradient(60vw 60vw at 50% 110%, var(--blob3), transparent 60%); }
h1, h2, h3 { letter-spacing: -.01em; }
section { padding: 22px 0; }
main > section:first-child, main > .wrap:first-child { padding-top: 6px; }

/* Glass surfaces */
.top, .tabbar, .mnav nav { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-color: var(--glass-line); }
.card, .box, .cat, .panel, .q, .person, .vcard, .order, .sec, .item, .deck, .hero {
  background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow);
}
:root[data-theme="light"] .card, :root[data-theme="light"] .box, :root[data-theme="light"] .cat, :root[data-theme="light"] .panel, :root[data-theme="light"] .q,
:root[data-theme="light"] .person, :root[data-theme="light"] .vcard, :root[data-theme="light"] .order { box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow); }
.hero, :root[data-theme="light"] .hero { background: linear-gradient(135deg, var(--blob1), var(--glass) 45%, var(--blob3)); border-color: var(--glass-line); border-radius: 28px; }
.item, .sec { box-shadow: none; }
.item:hover, .card:hover, .cat:hover { border-color: var(--p2); }
.card, .cat, .item, .btn { transition: border-color .15s, transform .15s, box-shadow .15s; }
@media (hover: hover) { .card:hover, .cat:hover { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .card, .cat, .item, .btn { transition: none; } .card:hover, .cat:hover { transform: none; } }

/* Header and announcement bar: one tidy line each */
.ticker { font-size: 15px; font-weight: 500; }
.ticker .wrap { min-height: 36px; gap: 10px; }
.ticker span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top { padding: 10px 0; }
.brand .logo-light, :root[data-theme="light"] .brand .logo-dark { display: none; }
:root[data-theme="light"] .brand .logo-light { display: block; }
.brand img { height: 34px; }
.top nav { gap: 20px; font-size: 16px; }

/* Type scale: every size comes from the same few steps */
.hero { padding: 16px 16px 22px; margin-top: 14px; }
.hero h1 { font-size: clamp(26px, 7vw, 34px); font-weight: 800; line-height: 1.3; }
.hero p { font-size: 17px; margin-top: 10px; color: var(--soft); }
.hero .actions { margin-top: 18px; gap: 10px; }
.title { margin-bottom: 16px; }
.title h2 { font-size: clamp(24px, 6.4vw, 30px); font-weight: 800; }
.title p { font-size: 16px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.btn { min-height: 46px; padding: 0 20px; border-radius: 14px; font-size: 17px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 16px rgba(91, 49, 225, .28); }
.btn.outline, .btn.soft, .btn.off { box-shadow: none; }
.btn.outline { border-width: 1.5px; }
.btn.pill { width: 100%; }
.center { display: flex; justify-content: center; margin-top: 16px; }

/* Category tiles: same height, small round picture, two tidy lines of text */
.cats { gap: 10px; }
.cat { min-height: 124px; padding: 14px 10px; gap: 8px; border-radius: 18px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.cat img { width: 52px; height: 52px; border-radius: 99px; padding: 6px; background: rgba(139, 92, 246, .16); object-fit: contain; }
.cat i { width: 52px; height: 52px; font-size: 16px; }
.cat b.big { font-size: 26px; line-height: 1.2; }

/* Cards */
.grid { gap: 14px; }
.card { padding: 12px; gap: 10px; border-radius: 20px; }
.card h3 { font-size: 18px; line-height: 1.4; }
.card .stats { font-size: 14px; }
.thumb { border-radius: 14px; padding: 0; }
.price { font-size: 21px; padding-top: 8px; }
.price s { font-size: 15px; }
.tag { top: 20px; left: 20px; font-size: 11px; padding: 3px 9px; }
.svc b.big { font-size: 19px; line-height: 1.35; }
.svc p { font-size: 16px; }
.box { padding: 16px; border-radius: 20px; }
.box h2 { font-size: 20px; }
.sec { border-radius: 16px; }
.sec summary { font-size: 17px; line-height: 1.45; padding: 13px 2px; }
.sec p { padding-bottom: 14px; color: var(--soft); font-size: 17px; }
.note { font-size: 15px; }
.person b { font-size: 16px; line-height: 1.3; }
.person small { font-size: 14px; }
.vcard b { font-size: 16px; }
footer { font-size: 16px; }

/* Bottom bar */
.tabbar { border-top: 1px solid var(--glass-line); }
.tabbar a { font-size: 12px; font-weight: 500; }
.tabbar svg { width: 22px; height: 22px; }

@media (min-width: 640px) { .hero { padding: 26px; } .hero h1 { font-size: 38px; } }
@media (min-width: 1024px) { .hero { padding: 36px; } .hero h1 { font-size: 46px; } .title h2 { font-size: 34px; } section { padding: 30px 0; } }

/* ---------------------------------------------------------------------------------------------
   Course lesson list, doubt solving, footer and motion
   --------------------------------------------------------------------------------------------- */
/* Lesson rows */
.ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(139, 92, 246, .18); color: var(--accent); }
.ico svg { width: 21px; height: 21px; }
.ico.k-video { background: rgba(139, 92, 246, .18); color: var(--accent); }
.ico.k-live { background: rgba(248, 113, 113, .18); color: var(--bad); }
.ico.k-exam { background: rgba(52, 211, 153, .18); color: var(--good); }
.ico.k-pdf { background: rgba(251, 146, 60, .18); color: var(--warn); }
.ico.k-note { background: rgba(250, 204, 21, .18); color: var(--warn); }
.ico.k-link { background: rgba(56, 189, 248, .18); color: var(--info); }
.lesson { padding: 10px 12px; border-radius: 14px; gap: 12px; }
.lesson .grow, .askbar .grow, .livebox .grow { min-width: 0; display: block; }
.lesson b, .askbar b, .livebox b { display: block; font-size: 16.500px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.lesson small, .askbar small, .livebox small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 1px; }
.lesson .go, .askbar .go, .livebox .go { color: var(--muted); font-size: 24px; line-height: 1; }
.lesson.seen { border-color: var(--glass-line); }
.lesson.seen b { color: var(--muted); }
.lesson .tick { color: var(--good); font-weight: 700; }
.livenow { font-style: normal; font-weight: 700; color: var(--bad); margin-left: 4px; }
.livenow::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: currentColor; margin-right: 5px; animation: pulse 1.2s ease-in-out infinite; }
[hidden] { display: none !important; }

/* Course header with a progress ring */
.learnhead { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; margin-bottom: 14px; background: linear-gradient(135deg, var(--blob1), var(--glass) 55%); border: 1px solid var(--glass-line); }
.learnhead .grow { min-width: 0; display: grid; gap: 8px; }
.learnhead .note { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learnhead .btn { justify-self: start; white-space: normal; text-align: center; min-height: 44px; padding: 6px 16px; line-height: 1.3; }
.ring { flex: none; width: 74px; height: 74px; border-radius: 99px; display: grid; place-items: center; background: conic-gradient(var(--p2) calc(var(--p) * 1%), var(--field) 0); }
.ring b { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 99px; background: var(--card); font-size: 16px; color: var(--strong); }
.livebox { padding: 14px; border-radius: 18px; margin-bottom: 14px; border: 1px solid rgba(248, 113, 113, .35); background: var(--glass); }
.livebox h2 { font-size: 17px; margin-bottom: 4px; }
.livebox .when { flex: none; width: 46px; text-align: center; font-size: 13px; line-height: 1.1; color: var(--bad); font-weight: 600; }
.livebox .when b { font-size: 21px; color: var(--strong); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); color: var(--text); font: inherit; font-size: 15.500px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chips button i { font-style: normal; font-size: 13px; padding: 1px 7px; border-radius: 99px; background: var(--field); color: var(--muted); }
.chips button.on { background: var(--grad); border-color: transparent; color: #fff; }
.chips button.on i { background: rgba(255, 255, 255, .22); color: #fff; }
.chapter { padding: 0 12px 6px; }
.chapter > summary { padding: 14px 2px 12px; }
.chapter > summary .grow { display: block; }
.minibar { display: block; height: 4px; margin-top: 8px; border-radius: 99px; background: var(--field); overflow: hidden; }
.minibar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .5s ease; }
.sec.sub { background: transparent; border-style: dashed; }
.askbar { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--p2); background: var(--glass); }
.liveroom { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 26px 16px; border-radius: 18px; border: 1px solid var(--glass-line); background: var(--glass); }
.liveroom .ico { width: 60px; height: 60px; border-radius: 99px; }
.liveroom .ico svg { width: 28px; height: 28px; }

/* Doubt threads */
.thread { display: grid; gap: 10px; }
.bubble { max-width: 92%; padding: 12px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); }
.bubble.mine { justify-self: end; border-bottom-right-radius: 6px; background: linear-gradient(135deg, rgba(139, 92, 246, .22), var(--glass)); }
.bubble.teacher { justify-self: start; border-bottom-left-radius: 6px; border-color: rgba(52, 211, 153, .4); }
.bubble small { display: block; color: var(--muted); font-size: 13.500px; margin-bottom: 4px; }
.bubble p { white-space: pre-line; overflow-wrap: anywhere; }
.bubble img { margin-top: 8px; border-radius: 12px; max-height: 320px; }
.ask > summary { color: var(--accent); }

/* Footer */
footer.foot { margin-top: 48px; padding: 34px 0 20px; text-align: left; font-size: 16px; border-top: 1px solid var(--glass-line); background: var(--glass); }
.foot-grid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand img { height: 36px; width: auto; }
.foot-brand .logo-light, :root[data-theme="light"] .foot-brand .logo-dark { display: none; }
:root[data-theme="light"] .foot-brand .logo-light { display: block; }
.foot-brand p { margin-top: 12px; max-width: 38ch; color: var(--muted); }
.foot-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.foot-cta .btn { min-height: 42px; font-size: 15.500px; }
.foot h2 { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--strong); margin-bottom: 10px; }
.foot nav a, .foot-contact a, .foot-contact p { display: block; padding: 5px 0; color: var(--muted); line-height: 1.4; }
.foot nav a:hover, .foot-contact a:hover { color: var(--accent); }
.foot-contact { grid-column: 1 / -1; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.foot-social a { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.foot-base { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--glass-line); text-align: center; font-size: 14px; color: var(--muted); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.5fr repeat(var(--fc, 2), minmax(0, 1fr)) 1.2fr; } .foot-brand, .foot-contact { grid-column: auto; } }

/* Motion. Everything here is switched off for people who ask their device for less motion. */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes loadbar { 0% { transform: scaleX(0); } 40% { transform: scaleX(.6); } 100% { transform: scaleX(.92); } }
/* Fade only: a transform here would trap fixed sheets and floating buttons inside <main>. */
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
main { animation: fadein .3s ease; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease var(--delay, 0ms), transform .45s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }
/* Pictures show a soft moving shine until they arrive. */
.thumb, .slide, .vthumb, .photos a, .product-img, .shot { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .10) 50%, transparent 70%), linear-gradient(135deg, #4c1d95, #a21caf); background-size: 200% 100%, 100% 100%; }
:root[data-theme="light"] .thumb, :root[data-theme="light"] .slide, :root[data-theme="light"] .vthumb, :root[data-theme="light"] .photos a, :root[data-theme="light"] .product-img, :root[data-theme="light"] .shot { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%), linear-gradient(135deg, #ddd6fe, #f5d0fe); }
.btn:active { transform: scale(.97); }
.loadbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: var(--grad); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
.loadbar.on { opacity: 1; animation: loadbar 2.5s cubic-bezier(.1, .7, .3, 1) forwards; }
@media (prefers-reduced-motion: reduce) {
  main, .thumb, .slide, .vthumb, .photos a, .product-img, .shot, .livenow::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loadbar.on { animation: none; transform: scaleX(.9); }
  .btn:active { transform: none; }
}

/* Top menu. Computers get a few groups that drop open; phones get one sheet behind the menu button. */
.top .mainnav { display: none; }
.navlink { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 13px; border-radius: 99px; font-size: 15.500px; font-weight: 600; color: var(--text); white-space: nowrap; cursor: pointer; list-style: none; transition: background .15s, color .15s; }
.navlink::-webkit-details-marker { display: none; }
.navlink:hover, .drop[open] > .navlink { background: var(--field); color: var(--strong); }
.navlink.on { color: var(--accent); background: rgba(124, 58, 237, .12); }
.chev { width: 15px; height: 15px; transition: transform .2s; }
details[open] > summary .chev { transform: rotate(180deg); }
.drop { position: relative; }
.droppanel { position: absolute; left: 0; top: calc(100% + 10px); z-index: 40; display: grid; gap: 2px; width: 330px; padding: 10px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0, 0, 0, .28); animation: drop .16s ease-out; }
.droppanel.wide { width: 620px; grid-template-columns: 1fr 1fr; }
.droppanel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* keeps the menu open while the pointer crosses the gap */
.mi { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; transition: background .15s; }
.mi:hover, .mi:focus-visible { background: var(--field); }
.mico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(124, 58, 237, .14); color: var(--accent); overflow: hidden; }
/* A different soft colour per row, so the eye can tell the entries apart. */
.mi:nth-child(4n+2) .mico { background: rgba(16, 185, 129, .15); color: var(--good); }
.mi:nth-child(4n+3) .mico { background: rgba(249, 115, 22, .15); color: var(--warn); }
.mi:nth-child(4n+4) .mico { background: rgba(14, 165, 233, .15); color: var(--info); }
.mico svg { width: 20px; height: 20px; }
.mico img { width: 100%; height: 100%; object-fit: contain; }
.mtxt { min-width: 0; display: block; }
.mtxt b { display: block; font-size: 16px; font-weight: 600; line-height: 1.350; color: var(--strong); }
.mtxt small { display: block; font-size: 13.500px; line-height: 1.400; color: var(--muted); }
.iconbtn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 99px; color: var(--head); }
.iconbtn:hover { background: var(--field); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn i { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--grad); color: #fff; font-style: normal; font-size: 11.500px; font-weight: 700; line-height: 18px; text-align: center; }
.top .tools { display: flex; align-items: center; gap: 6px; }
.sheet { position: absolute; right: 0; top: 52px; z-index: 40; display: grid; gap: 4px; width: min(88vw, 340px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; padding: 10px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0, 0, 0, .32); animation: drop .16s ease-out; }
.mgroup > summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 16.500px; color: var(--strong); cursor: pointer; list-style: none; width: auto; height: auto; }
.mgroup > summary::-webkit-details-marker { display: none; }
.mgroup[open] > summary { color: var(--accent); }
.mgroup .chev { width: 18px; height: 18px; }
.mlist { display: grid; gap: 2px; padding-bottom: 6px; animation: drop .16s ease-out; }
.sheet .mi { padding: 7px 10px; }
.sheet .mico { width: 36px; height: 36px; border-radius: 11px; }
.sheet .btn { margin-top: 6px; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) { .mnav { display: block; } }
@media (min-width: 1100px) {
  .top .mainnav { display: flex; align-items: center; gap: 4px; }
  .mnav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .droppanel, .sheet, .mlist { animation: none; } .chev { transition: none; } }

/* Store: book covers are tall, so show the whole cover instead of cropping it. */
.thumb.cover { aspect-ratio: 4 / 5; }
.thumb.cover img, .product-img img { object-fit: contain; }
.product-img { aspect-ratio: 4 / 5; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 62px; height: 62px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--field); cursor: pointer; }
.thumbs button.on { border-color: var(--p2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.save { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 99px; background: rgba(16, 185, 129, .15); color: var(--good); font-weight: 700; font-size: 15px; }
.summary { margin-top: 12px; }
.setlist { display: grid; gap: 8px; }
.setlist a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); }
.setlist img { flex: none; width: 46px; height: 58px; object-fit: cover; border-radius: 6px; }
.setlist span { min-width: 0; font-weight: 600; line-height: 1.4; }
.setlist small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 600; }
.notebody table { width: 100%; border-collapse: collapse; margin: 10px 0; display: block; overflow-x: auto; }
.notebody td, .notebody th { padding: 7px 10px; border: 1px solid var(--line); vertical-align: top; }
.notebody h3 { font-size: 19px; margin: 16px 0 6px; }
.notebody ul, .notebody ol { padding-left: 22px; margin: 6px 0; }
.notebody li { margin: 4px 0; }

/* Store shelves: sets first as wide cards, then books by category. */
.storehead { display: grid; gap: 12px; margin-bottom: 12px; }
.shelfhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 26px 0 12px; }
.shelfhead h2 { font-size: 24px; line-height: 1.25; }
.shelfhead p { color: var(--muted); font-size: 15px; }
.shelfhead a { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 15.500px; white-space: nowrap; }
.fan { display: flex; min-width: 0; padding-left: 26px; }
.fan img { flex: none; width: 62px; height: 84px; object-fit: cover; border-radius: 6px; margin-left: -26px; border: 2px solid var(--card); box-shadow: 0 6px 14px rgba(0, 0, 0, .22); transition: transform .2s; }
.setprice { flex: none; text-align: right; display: grid; gap: 1px; }
.setprice small { color: var(--good); font-weight: 700; font-size: 14px; }
.setprice b { font-size: 24px; color: var(--accent); line-height: 1.2; }
.setprice s { color: var(--muted); font-size: 14.500px; }
.off-tag { position: absolute; top: 20px; right: 20px; z-index: 1; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #111827; color: #fff; }
.card { position: relative; }
.grid.books { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .grid.books { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid.books { grid-template-columns: repeat(5, 1fr); } }
.grid.books .card, .bookrow .card { padding: 10px; }
.grid.books .card h3, .bookrow .card h3 { font-size: 16px; line-height: 1.35; }
.grid.books .card .btn, .bookrow .card .btn { min-height: 40px; font-size: 14.500px; padding: 0 8px; }
.cartfab { position: fixed; right: 16px; bottom: 96px; z-index: 30; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 99px; background: var(--grad); color: #fff; box-shadow: 0 12px 26px rgba(91, 49, 225, .4); }
.cartfab svg { width: 24px; height: 24px; }
.cartfab i { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #111827; color: #fff; font-style: normal; font-size: 12.500px; font-weight: 700; line-height: 22px; text-align: center; }
@media (min-width: 1024px) { .cartfab { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .fan img { transition: none; } }

/* Store extras: sample pages, sold count, coupon strip, delivery box. */
.peek { display: block; margin: -4px 0 8px; padding: 6px 8px; border-radius: 10px; background: rgba(16, 185, 129, .14); color: var(--good); font-size: 14px; font-weight: 700; text-align: center; }
.soldline { margin: 4px 0; color: var(--warn); font-size: 14px; font-weight: 600; }
.setprice em { font-style: normal; color: var(--warn); font-size: 13.500px; font-weight: 600; }
.couponcode { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); color: var(--text); font: inherit; cursor: pointer; }
.couponcode code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .5px; }
.couponcode i { font-style: normal; font-size: 13.500px; color: var(--good); font-weight: 700; }
.couponcode.copied::after { content: "কপি হয়েছে"; font-size: 13px; color: var(--accent); }
.delivery { margin: 6px 0 4px; padding: 0 14px; }
.delivery > summary { padding: 12px 0; font-weight: 600; }

/* Home: one block per kind of student. */
.audience { padding: 14px 0; }
.aud { display: grid; gap: 14px; padding: 16px; border-radius: 22px; border: 1px solid var(--glass-line); background: linear-gradient(135deg, var(--blob1), var(--glass) 60%); }
@media (min-width: 980px) {
  .aud { grid-template-columns: 280px 1fr; padding: 22px; }
}

/* Cards in a row keep their button on the same line, whatever the title length. */
.grid > .card { display: flex; flex-direction: column; }
.grid > .card > .btn:last-child, .grid > .card > form:last-child { margin-top: auto; }
.play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 99px; background: rgba(0, 0, 0, .55); }
.play::after { content: ""; position: absolute; left: 18px; top: 13px; border: 10px solid transparent; border-left: 16px solid #fff; border-right: 0; }
.vfacade, .vframe { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: #000; cursor: pointer; }
.vfacade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.vfacade .play { width: 68px; height: 68px; }
.vfacade .play::after { left: 27px; top: 20px; border-width: 14px; border-left-width: 22px; }
.rcover { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.rcover img { width: 100%; display: block; }

/* About page: hero, journey timeline, albums, people with social links. */
.abouthero { padding: 22px 18px; border-radius: 24px; border: 1px solid var(--glass-line); background: linear-gradient(135deg, var(--blob1), var(--glass) 60%); }
.timeline { list-style: none; position: relative; display: grid; gap: 14px; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 33px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--p2), transparent); }
.timeline li { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: start; }
.timeline .year { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 36px; border-radius: 99px; background: var(--grad); color: #fff; font-weight: 700; font-size: 15px; }
.timeline .step { padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.timeline h3 { font-size: 18px; line-height: 1.3; }
.timeline p { color: var(--muted); margin-top: 4px; }
.timeline img { margin-top: 10px; border-radius: 12px; max-height: 260px; object-fit: cover; }
.albums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .albums { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.album { display: block; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .18s, border-color .18s; }
.album:hover { transform: translateY(-3px); border-color: var(--p2); }
.album img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.album span { display: block; padding: 10px 12px; }
.album b { display: block; font-size: 15.500px; font-weight: 600; line-height: 1.35; }
.album small { color: var(--muted); font-size: 13.500px; }
.person em { font-style: normal; font-size: 12.500px; padding: 2px 10px; border-radius: 99px; background: rgba(124, 58, 237, .14); color: var(--accent); font-weight: 600; }
.person { justify-content: flex-start; }
.socials { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); transition: color .15s, border-color .15s; }
.socials a:hover { color: var(--accent); border-color: var(--p2); }
.socials svg { width: 17px; height: 17px; }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(5, 1fr); } }
.photos a { position: relative; }
.photos a.clip .play { top: 0; bottom: auto; margin: 22% auto 0; }
@media (prefers-reduced-motion: reduce) { .album { transition: none; } .album:hover { transform: none; } }

/* A due on a course, shown above My Courses. */
.duebox { margin-bottom: 14px; padding: 14px; border-radius: 18px; border: 1px solid rgba(251, 146, 60, .5); background: var(--glass); }
.duebox.hold { border-color: rgba(248, 113, 113, .6); }
.duetop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.duetop b { display: block; line-height: 1.35; }
.duetop p { color: var(--muted); }
.duebox .sec { margin-top: 10px; }

/* Student attendance. */
.attend { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--p2); background: var(--glass); }
.attend b { display: block; }
.attend small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.attend .btn { flex: none; min-height: 42px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.calendar span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: var(--field); color: var(--muted); font-size: 15px; font-weight: 600; }
.calendar .present { background: var(--grad); color: #fff; }
.calendar .today { outline: 2px solid var(--p2); outline-offset: 1px; }
.calendar .future { opacity: .4; }

/* Speed on small phones: blurring what is behind a bar is the most expensive thing a cheap phone can be asked to paint,
   so the bars are simply solid there. Wide screens keep the glass look. */
@media (max-width: 899px) {
  .top, .tabbar, .mnav nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 12, 20, .97); }
  :root[data-theme="light"] .top, :root[data-theme="light"] .tabbar, :root[data-theme="light"] .mnav nav { background: rgba(255, 255, 255, .97); }
  .card, .box, .cat, .panel, .q, .person, .vcard, .order, .sec, .item, .deck, .hero { box-shadow: none; }
}

/* Heart and flag at the top right of an MCQ */
.q { position: relative; }
.qtools { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 4px; }
.q:has(.qtools) legend, .q:has(.qtools) .qt { width: calc(100% - 84px); }
.q legend + *, .q .qt + * { clear: both; }
.qtool { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); cursor: pointer; }
.qtool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qtool.heart.on { color: #e11d48; border-color: rgba(225, 29, 72, .45); }
.qtool.heart.on svg { fill: currentColor; }
.qtool.flag.on { color: var(--warn); border-color: currentColor; }
.qtool:active { transform: scale(.92); }
.reveal-ans summary { cursor: pointer; color: var(--accent); font-weight: 600; margin: 4px 0 10px; clear: both; }

/* Picture viewer */
.lbopen, .lbopen body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(3, 6, 12, .94); touch-action: pan-y; }
.lb.open { display: flex; animation: lbfade .18s ease-out; }
.lbpic { max-width: min(94vw, 1200px); max-height: 80vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.97); transition: opacity .2s ease, transform .2s ease; user-select: none; -webkit-user-drag: none; }
.lbpic.in { opacity: 1; transform: none; }
.lbtop { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.lbcount { padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lbbtn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.lbbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lbbtn:hover { background: rgba(255, 255, 255, .24); }
.lbbtn:active { transform: scale(.92); }
.lbnav { position: absolute; top: 50%; margin-top: -23px; }
.lbnav:active { transform: scale(.92); }
.lbprev { left: 10px; } .lbnext { right: 10px; }
.lb.single .lbnav, .lb.single .lbcount { visibility: hidden; }
.lbcap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px 18px 20px; text-align: center; color: #e2e8f0; font-size: 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 900px) { .lbbtn { width: 54px; height: 54px; } .lbnav { margin-top: -27px; } .lbprev { left: 28px; } .lbnext { right: 28px; } }
@media (prefers-reduced-motion: reduce) { .lb.open { animation: none; } .lbpic { transition: none; } }

/* Search */
.sbox { position: fixed; inset: 0; z-index: 150; padding: 10px; background: rgba(3, 6, 12, .6); overflow-y: auto; animation: lbfade .15s ease-out; }
.sbox[hidden] { display: none; }
.sform { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto; padding: 6px 8px 6px 14px; border-radius: 99px; background: var(--deep, #0b1220); border: 1px solid var(--glass-line); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
:root[data-theme="light"] .sform, :root[data-theme="light"] .sres { background: #fff; }
.sform svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.sform input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; padding: 9px 0; }
.sform button { flex: none; width: 38px; height: 38px; border: 0; border-radius: 99px; background: rgba(148, 163, 184, .16); color: inherit; cursor: pointer; }
.sres { display: grid; gap: 2px; max-width: 640px; margin: 8px auto 0; padding: 6px; border-radius: 20px; background: var(--deep, #0b1220); border: 1px solid var(--glass-line); }
.sres:empty { display: none; }
.sres a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; }
.sres a:hover, .sres a:focus { background: rgba(124, 58, 237, .14); }
.sres i { flex: none; min-width: 64px; padding: 2px 8px; border-radius: 99px; text-align: center; font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(124, 58, 237, .14); }
.sres span { min-width: 0; display: grid; }
.sres b { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.sres small { color: var(--muted); font-size: 14px; }
.snone { margin: 0; padding: 12px; color: var(--muted); text-align: center; }
.sres.page { max-width: none; margin-top: 14px; }
.findbar { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 14px; }
.findbar input { flex: 1; min-width: 0; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--glass-line); background: var(--glass); color: inherit; font: inherit; }
.findbar .btn { flex: none; }
.panel .findbar { margin-left: 0; }
.menufind { width: 100%; margin: 0 0 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--glass-line); background: transparent; color: inherit; font: inherit; font-size: 16px; }
.wrap.narrow { max-width: 760px; }

/* Copy-link buttons and the small message that confirms a copy */
.copybtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--glass-line); background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.copybtn:hover { color: var(--accent); border-color: var(--accent); }
.copybtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copybtn.mini { padding: 0; width: 36px; height: 36px; justify-content: center; flex: none; }
.toast { position: fixed; left: 50%; bottom: 92px; z-index: 300; transform: translateX(-50%); padding: 9px 18px; border-radius: 99px; background: #0f172a; color: #fff; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.toast[hidden] { display: none; }

/* Merit list rows: gold, silver, bronze for the first three */
.lbrow.top1 .kind { background: #f59e0b; color: #fff; } .lbrow.top2 .kind { background: #94a3b8; color: #fff; } .lbrow.top3 .kind { background: #b45309; color: #fff; }
.lbrow .kind { min-width: 34px; text-align: center; border-radius: 99px; }

/* Self Study */
.two-col { display: grid; gap: 14px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col .box label { display: block; margin: 10px 0 4px; font-size: 15px; color: var(--muted); }
.studynow { text-align: center; }
.studytopic { display: block; font-size: 20px; margin: 2px 0 6px; }
.studyclock { font-size: 54px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--accent); }
.studynow.done .studyclock { color: var(--good); }
.stats small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }

.two-col .box input, .two-col .box select { width: 100%; min-height: 44px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass); color: inherit; font: inherit; }
.two-col .box input:focus, .two-col .box select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.mt .row2 > * { min-width: 0; }
.mt .row2 .btn { white-space: normal; text-align: center; justify-content: center; }
@media (max-width: 520px) { .mt .row2 { grid-template-columns: 1fr; } }

/* Model test filters and tags */
.examfilter { display: grid; gap: 8px; margin: 0 0 10px; }
@media (min-width: 700px) { .examfilter { grid-template-columns: repeat(3, 1fr); } }
.examfilter select { min-width: 0; min-height: 44px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass); color: inherit; font: inherit; }
.examfilter select:disabled { opacity: .55; }
.examtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.examtags span { padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; border: 1px solid var(--glass-line); }
.examtags .k-program { color: var(--accent); } .examtags .k-subject { color: var(--good); } .examtags .k-chapter { color: #38bdf8; }

.bar { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: rgba(148, 163, 184, .25); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }

/* Student avatar: letter, blood group chip, ring in the badge colour */
.avatarx { --s: 64px; --ring: transparent; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%; background: linear-gradient(135deg, #6d28d9, #a21caf); color: #fff; box-shadow: 0 0 0 3px var(--ring); }
.avatarx b { font-size: calc(var(--s) * .42); line-height: 1; }
.avatarx i { position: absolute; right: -4px; bottom: -4px; min-width: 22px; padding: 1px 5px; border-radius: 99px; background: #dc2626; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; text-align: center; border: 2px solid var(--card, #fff); }
.avatarx img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pcard { text-align: center; overflow: hidden; }
.pcover { height: 0; padding-top: 33.33%; margin: -18px -18px 0; position: relative; background: linear-gradient(135deg, #4c1d95, #a21caf 60%, #db2777); border-radius: 14px; overflow: hidden; }
.pcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcover + .avatarx { margin-top: -48px; border: 4px solid var(--card, #fff); }
.picform { max-width: 520px; margin-bottom: 14px; }
.picform h2 { font-size: 18px; margin: 0 0 6px; }
.picrow { margin: 10px 0; }
.picrow > label:first-child { display: block; margin-bottom: 4px; font-weight: 600; }
.picrow input[type=file] { width: 100%; font: inherit; color: inherit; }
.picrow .rm { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.picrow .rm input { width: auto; min-height: 0; }
@media print { .noprint, header, footer, nav, .side, .sidebar { display: none !important; } }
.pcard h1 { font-size: 24px; margin: 12px 0 4px; }
.pbadge, .minibadge { display: inline-block; padding: 3px 12px; border-radius: 99px; border: 1px solid var(--ring); color: var(--ring); font-weight: 700; font-size: 14px; font-style: normal; }
.minibadge { padding: 0 8px; font-size: 12px; margin-left: 4px; }
.pfacts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 0; }
.pfacts span { padding: 3px 12px; border-radius: 99px; border: 1px solid var(--glass-line); font-size: 14px; }
.pform select { width: 100%; min-height: 48px; padding: 9px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--field, transparent); color: inherit; font: inherit; }
.pform label { display: block; margin: 12px 0 4px; }
.lbrow { display: flex; align-items: center; gap: 10px; }

/* ---------- Study coach: Today, streak, weak topics ---------- */
.streak { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 16px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, rgba(249, 115, 22, .16), rgba(234, 179, 8, .08)); }
.streak-num { text-align: center; line-height: 1.1; }
.streak-num b { display: block; font-size: 40px; font-weight: 800; color: #f97316; }
.streak-num span { font-size: 14px; color: var(--muted); font-weight: 600; }
.streak-week { display: flex; justify-content: space-between; gap: 4px; }
.streak-week span { display: grid; justify-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.streak-week i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); font-style: normal; font-weight: 800; color: #fff; }
.streak-week .on i { background: #f97316; border-color: #f97316; }
.streak-week .now i { box-shadow: 0 0 0 3px rgba(249, 115, 22, .25); }
.streak p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.todo { display: grid; gap: 10px; }
.todo-card { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-left: 5px solid var(--p2); border-radius: 16px; background: var(--card); }
.todo-card:hover { border-color: var(--p2); }
.todo-card small { font-size: 13px; font-weight: 700; color: var(--muted); }
.todo-card b { font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.todo-card span { font-size: 15px; color: var(--muted); }
.todo-card em { margin-top: 6px; font-style: normal; font-weight: 700; color: var(--accent); }
.todo-card.main { border-left-color: #22c55e; background: linear-gradient(135deg, rgba(34, 197, 94, .12), transparent 60%), var(--card); }
.todo-card.live { border-left-color: #ef4444; }
.todo-card.warn { border-left-color: #f59e0b; }
@media (min-width: 720px) { .todo { grid-template-columns: 1fr 1fr; } .todo-card.main { grid-column: 1 / -1; } }
.topic { padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.topic.weak { border-color: #f59e0b; }
.topic.few { opacity: .75; }
.topic-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.topic-top b { overflow-wrap: anywhere; }
.topic-top span { font-weight: 800; white-space: nowrap; }
.topic.weak .topic-top span { color: #f59e0b; }
.topic.weak .bar i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.topic p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.topic-ch { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--line); }
.topic-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.topic-go:empty { display: none; }
.tfind { display: block; width: 100%; max-width: 520px; margin: 0 auto; min-height: 52px; padding: 0 20px; border-radius: 99px; border: 2px solid var(--line); background: var(--card); color: inherit; font: inherit; }
.tfind:focus { outline: 0; border-color: var(--p2); }
.tchips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tchips button { min-height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.tchips button.on { background: var(--violet); border-color: var(--violet); color: #fff; }
/* The tool cards live in css/features/tool-board.css (linked by partials/tool-card). */
.trecent { margin-bottom: 26px; }
.trecent .subhead { margin-top: 0; }
.tframe { display: block; width: 100%; min-height: 70vh; border: 1px solid var(--line); border-radius: 18px; background: #fff; }

/* ---------- Study routine ---------- */
.rform fieldset { margin: 0 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); min-width: 0; }
.rform legend { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-weight: 800; font-size: 19px; }
.rform legend span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 16px; }
.rform label { display: block; margin: 12px 0 4px; font-weight: 600; }
.rform input[type=text], .rform input[type=date], .rform input[type=time], .rform select { width: 100%; min-height: 48px; padding: 9px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--field, transparent); color: inherit; font: inherit; }
.rform input:focus, .rform select:focus { outline: 0; border-color: var(--p2); }
.rtwo { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .rtwo { grid-template-columns: 1fr 1fr; } }
.rhint { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.rpick { display: flex; flex-wrap: wrap; gap: 6px; }
.rpick label { margin: 0; }
.rpick input { position: absolute; opacity: 0; }
.rpick span { display: block; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); font-weight: 700; cursor: pointer; }
.rpick input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.rpick input:focus-visible + span { outline: 2px solid var(--p2); outline-offset: 2px; }
.rsub { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.rsub input[type=text] { flex: 1; min-width: 0; }
.rsub label { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; font-weight: 600; }
.rsub input[type=checkbox] { width: 20px; height: 20px; accent-color: #f59e0b; }
.rtop { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 640px) { .rtop { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.rtop div { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.rtop small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.rtop b { display: block; font-size: 20px; margin: 2px 0; }
.rtop span { color: var(--muted); font-size: 14px; }
.rday-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 10px; text-align: center; margin-bottom: 10px; }
.rday-head h2 { font-size: 22px; }
.rday-head p { color: var(--muted); margin: 0; font-size: 15px; }
.rday-head .btn { min-height: 44px; padding: 0; font-size: 24px; }
.rsum { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; color: var(--muted); font-size: 15px; }
.rsum b { color: var(--head); }
.rline { display: grid; gap: 6px; }
.rblock { --k: #64748b; display: grid; grid-template-columns: 86px 34px 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line); border-left: 5px solid var(--k); background: var(--card); }
.rblock.k-study { --k: #8b5cf6; } .rblock.k-prayer { --k: #14b8a6; } .rblock.k-meal { --k: #f59e0b; } .rblock.k-move { --k: #22c55e; } .rblock.k-fixed { --k: #ef4444; } .rblock.k-break { --k: #38bdf8; }
.rblock.k-sleep { opacity: .7; }
.rblock.k-study { background: linear-gradient(90deg, rgba(139, 92, 246, .12), transparent 70%), var(--card); }
.rblock.now { box-shadow: 0 0 0 2px var(--k); }
.rblock.done b { text-decoration: line-through; opacity: .65; }
.rtime { font-weight: 700; font-size: 14px; line-height: 1.25; }
.rtime small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.rblock i { font-style: normal; font-size: 20px; text-align: center; }
.rwhat { min-width: 0; }
.rwhat b { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.rwhat small { color: var(--muted); font-size: 13px; }
.rblock form { margin: 0; }
.rtick { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: transparent; font-size: 18px; font-weight: 800; cursor: pointer; }
.rtick:hover { border-color: #22c55e; }
.rtick.on { background: #22c55e; border-color: #22c55e; color: #fff; }
.rweek { display: grid; gap: 8px; }
@media (min-width: 720px) { .rweek { grid-template-columns: repeat(2, 1fr); } }
.rweek a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.rweek a:hover, .rweek a.on { border-color: var(--p2); }
.rweek a.today b::after { content: " · আজ"; color: var(--accent); }
.rweek small { display: block; color: var(--muted); font-size: 13px; }
.rweek span { display: block; margin-top: 4px; font-size: 15px; }
.rjump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.rgoto { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; }
.rgoto input[type=number] { width: 86px; min-height: 42px; padding: 0 10px; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: inherit; font: inherit; }
.rstages { display: grid; gap: 8px; }
@media (min-width: 720px) { .rstages { grid-template-columns: repeat(3, 1fr); } }
.rstages div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.rstages div.on { border-color: var(--p2); background: linear-gradient(135deg, rgba(139, 92, 246, .16), transparent), var(--card); }
.rstages small { display: block; color: var(--muted); }
@media print { .dmenu, .tabbar, .noprint, .topstrip, .mnav { display: none !important; } .rblock { break-inside: avoid; padding: 4px 8px; } .panel { border: 0 !important; box-shadow: none !important; } }
.rsave { display: grid; gap: 8px; padding: 14px; margin-bottom: 16px; border: 1px dashed var(--p1); border-radius: 16px; }
.rsave div { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; } /* PDF and wallpaper buttons in even columns */
.rsave div .btn { justify-content: center; }
.rsave small { color: var(--muted); font-size: 14px; }
.rme { display: flex; gap: 14px; align-items: flex-start; padding: 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.rme b { display: block; font-size: 18px; }
.rme small { display: block; color: var(--muted); font-size: 14px; }
.rme p { margin: 6px 0 0; font-size: 15.5px; }

/* ---------- Chance Checker ---------- */
.cc { display: grid; gap: 16px; margin-bottom: 10px; }
@media (min-width: 980px) { .cc { grid-template-columns: 380px 1fr; align-items: start; } .cc-in { position: sticky; top: 84px; } .cc-how { grid-column: 1 / -1; } }
.cc-in, .cc-out { min-width: 0; }
.cc-in { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc label, .cc-lbl { display: block; margin-bottom: 5px; font-weight: 700; font-size: 16px; }
.cc label small { font-weight: 500; color: var(--muted); }
.cc input[type=number], .cc select { width: 100%; min-height: 50px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--field, transparent); color: inherit; font: inherit; font-size: 19px; font-weight: 700; }
.cc select { font-size: 16px; font-weight: 600; }
.cc input:focus, .cc select:focus { outline: 0; border-color: var(--p2); }
.cc input.bad { border-color: #ef4444; }
.cc-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; border: 2px solid var(--line); }
.cc-seg button { min-height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.cc-seg button[aria-pressed=true] { background: var(--violet); color: #fff; }
.cc-seg button:disabled { opacity: .4; cursor: not-allowed; }
.cc-seg.wide { margin-bottom: 8px; }
.cc-mcq { padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(56, 189, 248, .08)); }
.cc-mcq label b { font-size: 26px; color: var(--accent); margin-left: 6px; }
.cc-mcq input[type=range] { width: 100%; height: 34px; accent-color: #8b5cf6; }
.cc-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cc-levels button { min-height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cc-levels button[aria-pressed=true] { border-color: var(--p2); color: var(--accent); }
.cc-note { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
.cc-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cc-years summary, .cc-how summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.cc-years .cc-row { margin-top: 10px; }
.cc-how { padding: 14px 18px; border: 1px dashed var(--line); border-radius: 16px; }
.cc-how p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.cc-score { --sc: #8b5cf6; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: 22px; border: 2px solid var(--sc); background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 18%, transparent), transparent 70%), var(--card); transition: border-color .3s; }
.cc-score.ok { --sc: #22c55e; } .cc-score.warn { --sc: #f59e0b; } .cc-score.no { --sc: #ef4444; }
.cc-total { text-align: center; line-height: 1; }
.cc-total b { display: block; font-size: clamp(40px, 9vw, 58px); font-weight: 800; color: var(--sc); font-variant-numeric: tabular-nums; }
.cc-total span { color: var(--muted); font-weight: 700; }
.cc-bars { display: grid; gap: 8px; min-width: 0; }
.cc-bars div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 14px; }
.cc-bars span { color: var(--muted); }
.cc-bars b { font-variant-numeric: tabular-nums; }
.cc-bars i { grid-column: 1 / -1; grid-row: 2; height: 9px; border-radius: 99px; background: var(--field, rgba(148, 163, 184, .2)); overflow: hidden; }
.cc-bars u { display: block; height: 100%; border-radius: 99px; background: #38bdf8; transition: width .35s ease; }
.cc-bars u.m { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.cc-lead { margin: 12px 0; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 17px; background: var(--card); border: 1px solid var(--line); }
.cc-lead.ok { border-color: #22c55e; color: var(--good); } .cc-lead.warn { border-color: #f59e0b; color: var(--warn, #f59e0b); } .cc-lead.no { border-color: #ef4444; color: var(--bad); }
.cc-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.cc-tabs button { min-height: 44px; padding: 0 4px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.cc-tabs button[aria-selected=true] { background: var(--violet); color: #fff; }
.cc-pane { display: grid; gap: 12px; }
.cc-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.cc-card.best { border: 2px solid var(--p2); background: linear-gradient(135deg, rgba(139, 92, 246, .14), transparent 60%), var(--card); }
.cc-card.bad { border-color: #ef4444; }
.cc-card > small { font-weight: 700; color: var(--accent); }
.cc-card h3 { font-size: 20px; line-height: 1.35; margin: 2px 0 8px; }
.cc-card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.cc-card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.cc-empty { padding: 26px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
.cc-warn { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid #f59e0b; color: var(--warn, #f59e0b); font-size: 15px; }
.cc-pill { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid currentColor; }
.cc-pill.ok { color: #16a34a; background: rgba(34, 197, 94, .12); } .cc-pill.warn { color: #d97706; background: rgba(245, 158, 11, .12); } .cc-pill.no { color: #dc2626; background: rgba(239, 68, 68, .1); } .cc-pill.mid { color: var(--muted); }
.cc-paths { display: grid; gap: 10px; }
@media (min-width: 640px) { .cc-paths { grid-template-columns: repeat(3, 1fr); } }
.cc-path { display: grid; gap: 8px; align-content: start; padding: 14px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: inherit; font: inherit; cursor: pointer; }
.cc-path.on { border: 2px solid var(--p2); }
.cc-path.shut { cursor: default; opacity: .8; }
.cc-path b { font-size: 18px; }
.cc-path .cc-pill { justify-self: start; }
.cc-path p { margin: 0; font-size: 14px; color: var(--muted); }
.cc-path dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; font-size: 14.5px; }
.cc-path dt { color: var(--muted); } .cc-path dd { margin: 0; font-weight: 800; }
.cc-path em { font-style: normal; font-weight: 700; color: var(--accent); font-size: 14.5px; }
.cc-scroll { overflow-x: auto; }
.cc-what { width: 100%; border-collapse: collapse; font-size: 15px; }
.cc-what th, .cc-what td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.cc-what td:first-child, .cc-what th:first-child { text-align: left; }
.cc-sub { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.cc-filter { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cc-filter select { width: auto; flex: 1 1 180px; min-height: 44px; }
.cc-filter label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 15px; }
.cc-filter input { width: 20px; height: 20px; accent-color: #8b5cf6; }
.cc-count { margin: 0; color: var(--muted); font-size: 14.5px; }
.cc-list { display: grid; gap: 10px; }
@media (min-width: 1180px) { .cc-list { grid-template-columns: 1fr 1fr; } }
.cc-col { --cl: #94a3b8; padding: 14px; border: 1px solid var(--line); border-left: 5px solid var(--cl); border-radius: 16px; background: var(--card); }
.cc-col.ok { --cl: #22c55e; } .cc-col.warn { --cl: #f59e0b; } .cc-col.no { --cl: #ef4444; }
.cc-col-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cc-col-top b { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.cc-col-top small { display: block; color: var(--muted); font-size: 13.5px; }
.cc-col-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 10px 0; font-size: 14px; color: var(--muted); }
.cc-col-nums b { display: block; font-size: 18px; color: var(--head); font-variant-numeric: tabular-nums; }
.cc-col-nums b.up { color: #16a34a; } .cc-col-nums b.dn { color: #dc2626; }
.cc-setgoal { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.cc-goalnums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.cc-goalnums div { padding: 10px; border-radius: 14px; border: 1px solid var(--line); text-align: center; }
.cc-goalnums span { display: block; font-size: 13px; color: var(--muted); }
.cc-goalnums b { font-size: 26px; font-variant-numeric: tabular-nums; }
.cc-track { height: 14px; border-radius: 99px; background: var(--field, rgba(148, 163, 184, .2)); overflow: hidden; }
.cc-track u { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8b5cf6, #22c55e); transition: width .4s ease; }
.cc-card p.cc-big { margin: 12px 0 0; font-size: 22px; font-weight: 800; color: var(--head); }
.cc-big.ok { color: #16a34a !important; } .cc-big.no { color: #dc2626 !important; }
.cc-checks { list-style: none; padding: 0 !important; }
.cc-checks li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.cc-checks i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 14px; color: #fff; background: #94a3b8; }
.cc-checks li.y i { background: #22c55e; } .cc-checks li.n i { background: #ef4444; }
.cc-checks small { color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) { .cc-score { grid-template-columns: 1fr; } .cc-tabs button { font-size: 14px; } }

/* ---------- Clinical calculators ---------- */
.kc { margin-bottom: 12px; }
.kc-top { position: sticky; top: 70px; z-index: 5; padding: 10px 0; background: var(--bg, var(--deep)); }
.kc-find { display: block; width: 100%; min-height: 52px; padding: 0 20px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: inherit; font: inherit; font-size: 17px; }
.kc-find:focus { outline: 0; border-color: var(--p2); }
.kc-chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.kc-chips::-webkit-scrollbar { display: none; }
.kc-chips button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.kc-chips button b { margin-left: 4px; padding: 1px 7px; border-radius: 99px; font-size: 12px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.kc-chips button[aria-selected=true] { background: var(--c); border-color: var(--c); color: #fff; }
.kc-chips button[aria-selected=true] b { background: rgba(255, 255, 255, .25); color: #fff; }
.kc-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 4px; }
.kc-mine b { width: 100%; font-size: 14px; color: var(--muted); }
.kc-mine button { padding: 7px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.kc section h2, .kc-saved h2 { display: flex; align-items: center; gap: 8px; margin: 20px 0 10px; font-size: 19px; }
.kc section h2 i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-style: normal; background: color-mix(in srgb, var(--c) 16%, transparent); }
.kc section h2 em { margin-left: auto; padding: 1px 10px; border-radius: 99px; font-style: normal; font-size: 13px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }
.kc-cards { display: grid; gap: 10px; }
@media (min-width: 640px) { .kc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .kc-cards { grid-template-columns: repeat(3, 1fr); } }
.kc-card { display: flex; align-items: stretch; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 16px; background: var(--card); transition: transform .12s ease, border-color .12s ease; }
.kc-card:hover { transform: translateY(-2px); border-color: var(--c); }
.kc-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.kc-open i { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; font-style: normal; font-size: 24px; background: color-mix(in srgb, var(--c) 14%, transparent); }
.kc-open b { display: block; font-size: 16.5px; line-height: 1.3; }
.kc-open small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.kc-star { flex: none; width: 46px; border: 0; background: none; color: var(--line); font-size: 22px; cursor: pointer; }
.kc-star:hover, .kc-star.on { color: #f59e0b; }
.kc-none { padding: 30px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
.kc-kept { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.kc-kept b { display: block; font-size: 14px; color: var(--muted); }
.kc-kept small { display: block; font-size: 12.5px; color: var(--muted); }
.kc-kept button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.kc-care { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.kc-over { position: fixed; inset: 0; z-index: 200; display: grid; align-items: end; justify-items: center; background: rgba(2, 6, 23, .6); }
.kc-over[hidden] { display: none; }
.kc-sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; overflow-x: hidden; border-radius: 24px 24px 0 0; background: var(--card); border-top: 5px solid var(--c); animation: kc-up .2s ease; }
@keyframes kc-up { from { transform: translateY(40px); opacity: .5; } }
@media (min-width: 720px) { .kc-over { align-items: center; padding: 20px; } .kc-sheet { border-radius: 24px; } }
.kc-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.kc-head i { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; font-style: normal; font-size: 24px; background: color-mix(in srgb, var(--c) 16%, transparent); }
.kc-head > div { flex: 1; min-width: 0; }
.kc-head h2 { font-size: 19px; line-height: 1.3; }
.kc-head small { color: var(--c); font-weight: 700; font-size: 13.5px; }
.kc-head .kc-star { width: 40px; height: 40px; }
#kc-close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--field, rgba(148, 163, 184, .16)); color: var(--text); font-size: 16px; cursor: pointer; }
.kc-body { padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.kc-form > *, .kc-in { min-width: 0; }
.kc-fx { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: 14.5px; font-family: ui-monospace, monospace; background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--text); overflow-wrap: anywhere; }
.kc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kc-f.full { grid-column: 1 / -1; }
.kc-f label { display: block; margin-bottom: 5px; font-weight: 700; font-size: 14.5px; }
.kc-f label em { font-weight: 500; font-style: normal; color: var(--muted); }
.kc-in { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; background: var(--field, transparent); }
.kc-in:focus-within { border-color: var(--c); }
.kc-in input { flex: 1; min-width: 0; min-height: 50px; padding: 0 12px; border: 0; background: none; color: inherit; font: inherit; font-size: 19px; font-weight: 700; }
.kc-in input:focus { outline: 0; }
.kc-in span { padding-right: 12px; color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.kc-f select, .kc-f input[type=date] { width: 100%; min-height: 52px; padding: 0 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--field, transparent); color: inherit; font: inherit; font-size: 16px; }
.kc-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; border: 2px solid var(--line); }
.kc-seg button { min-height: 42px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.kc-seg button.on { background: var(--c); color: #fff; }
.kc-res { --r: #64748b; padding: 16px; border-radius: 18px; border: 2px dashed var(--line); text-align: center; }
.kc-res.has { border-style: solid; border-color: var(--r); background: color-mix(in srgb, var(--r) 10%, transparent); animation: kc-pop .18s ease; }
@keyframes kc-pop { from { transform: scale(.97); } } .kc-res.lv-ok { --r: #16a34a; } .kc-res.lv-warn { --r: #d97706; } .kc-res.lv-bad { --r: #dc2626; }
.kc-wait { margin: 0; color: var(--muted); }
.kc-rt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kc-rt span { margin-left: 8px; padding: 2px 10px; border-radius: 99px; background: var(--r); color: #fff; letter-spacing: 0; text-transform: none; }
.kc-main { font-size: clamp(38px, 11vw, 54px); font-weight: 800; line-height: 1.15; color: var(--r); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kc-main.long { font-size: clamp(24px, 6.5vw, 32px); }
.kc-main small { margin-left: 6px; font-size: 18px; font-weight: 700; color: var(--muted); }
.kc-msg { margin: 8px 0 0; font-size: 15.5px; }
.kc-rows { display: grid; gap: 4px; margin-top: 10px; text-align: left; font-size: 15px; }
.kc-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); }
.kc-rows span { color: var(--muted); }
.kc-work { margin-top: 10px; text-align: left; font-size: 14.5px; font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.kc-work summary { font-family: inherit; font-weight: 700; color: var(--accent); cursor: pointer; }
.kc-act { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.kc-act button { min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.kc-act button.pri { background: var(--c); border-color: var(--c); color: #fff; }
.kc-share { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.kc-cd { padding: 14px; border-radius: 16px; background: #0f172a; color: #fff; text-align: right; }
.kc-cd small { display: block; min-height: 20px; color: #94a3b8; font-size: 14px; }
.kc-cd div { font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kc-keys button { min-height: 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--field, rgba(148, 163, 184, .12)); color: var(--text); font: inherit; font-size: 21px; font-weight: 700; cursor: pointer; }
.kc-keys button:active { transform: scale(.95); }
.kc-keys button.op { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.kc-keys button.eq { background: var(--c); border-color: var(--c); color: #fff; }
.kc-keys button.fn { color: #dc2626; }
.kc-toast { position: fixed; left: 50%; bottom: 96px; z-index: 210; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 99px; background: #0f172a; color: #fff; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.kc-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Nurses' quick reference ---------- */
.rf { margin-bottom: 12px; }
.rf-top { position: sticky; top: 70px; z-index: 5; padding: 10px 0; background: var(--bg, var(--deep)); }
.rf-find { display: block; width: 100%; min-height: 52px; padding: 0 20px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: inherit; font: inherit; font-size: 17px; }
.rf-find:focus { outline: 0; border-color: var(--p2); }
.rf-chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.rf-chips::-webkit-scrollbar { display: none; }
.rf-chips button { --c: #8b5cf6; flex: none; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rf-chips button b { margin-left: 4px; font-size: 12px; opacity: .7; }
.rf-chips button[aria-selected=true] { background: var(--c); border-color: var(--c); color: #fff; }
.rf-hits p { margin: 4px 0 10px; color: var(--muted); }
.rf-hit { display: grid; gap: 2px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; background: var(--card); }
.rf-hit b { font-size: 17px; }
.rf-hit span { font-size: 17px; font-weight: 700; color: var(--c); }
.rf-hit small { color: var(--muted); font-size: 13.5px; }
.rf mark { background: #fde047; color: #111; border-radius: 3px; padding: 0 2px; }
.rf-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .rf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.rf-card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; scroll-margin-top: 150px; }
.rf-card header { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, var(--c), var(--c2)); }
.rf-card header i { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; font-style: normal; font-size: 24px; background: rgba(255, 255, 255, .24); }
.rf-card header div { flex: 1; min-width: 0; }
.rf-card h2 { font-size: 19px; line-height: 1.25; color: #fff; }
.rf-card header small { font-size: 13px; opacity: .92; }
.rf-pin { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .7); font-size: 20px; cursor: pointer; }
.rf-pin.on { background: #fff; color: #f59e0b; }
.rf-scroll { overflow-x: auto; }
.rf-card table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.rf-card th { padding: 9px 12px; text-align: left; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); white-space: nowrap; }
.rf-card td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.rf-card td.k { font-weight: 700; }
.rf-card tr.sub td { font-weight: 800; font-size: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 7%, transparent); }
.rf-note { margin: 0; padding: 10px 14px; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); }
.rf-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.rf-card footer a { color: var(--accent); font-weight: 700; margin-left: 4px; }
.rf-card footer button { padding: 7px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: none; color: var(--c); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rf-src { margin-top: 18px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: 16px; }
.rf-src summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.rf-src ol { margin: 10px 0 0; padding-left: 26px; display: grid; gap: 8px; font-size: 14.5px; }
.rf-src li a { text-decoration: underline; }
.rf-src li span { color: var(--muted); }
.rf-src li.lit { background: #fde04755; border-radius: 6px; }
.rf-care { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
