@import url("https://fonts.maateen.me/kalpurush/font.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #0d2b5e;
  --navy-2: #163d7f;
  --navy-ink: #0a1f44;
  --gold: #c9a227;
  --gold-soft: #f6eccb;
  --bg: #f3f5f9;
  --card: #ffffff;
  --line: #dde3ee;
  --ink: #1b2433;
  --muted: #5d6a80;
  --ok: #1f8a4c;
  --ok-soft: #e3f4ea;
  --bad: #c0392b;
  --bad-soft: #fbe7e4;
  --warn: #b7791f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 43, 94, .06), 0 4px 16px rgba(13, 43, 94, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", system-ui, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--navy-2); }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- header / footer ---------- */
.site-head {
  background: linear-gradient(135deg, var(--navy-ink), var(--navy) 60%, var(--navy-2));
  color: #fff; border-bottom: 4px solid var(--gold);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; object-fit: contain; border: 2px solid var(--gold); flex: none; }
.brand-logo.fallback { display: grid; place-items: center; color: var(--navy); font-weight: 700; font-size: 15px; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .3px; line-height: 1.2; }
.brand-tag { color: var(--gold); font-size: 14px; font-weight: 500; }
.brand-phones { font-size: 13px; opacity: .85; }
.site-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 16px 40px; }
.site-foot b { color: var(--navy); }

.wrap { max-width: 920px; margin: 0 auto; }
main.wrap { padding: 16px; }

.demo-bar {
  background: var(--gold-soft); color: #6b5410; border-bottom: 1px solid #e8d79c;
  font-size: 14px; padding: 8px 16px; text-align: center;
}
.demo-bar button { margin-left: 6px; }

/* ---------- generic ---------- */
h1, h2, h3 { color: var(--navy); line-height: 1.3; margin: 0 0 8px; }
h1 { font-size: 24px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.section-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 18px; color: var(--navy); font-weight: 700; }
.section-title::before { content: ""; width: 6px; height: 20px; background: var(--gold); border-radius: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; text-decoration: none;
  min-height: 44px; transition: transform .05s, background .15s;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); }
.btn.gold:hover { background: #d8b13a; }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.ghost:hover { background: #eef2fa; }
.btn.danger { background: #fff; color: var(--bad); border-color: #e6b5ae; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.sm { min-height: 34px; padding: 5px 10px; font-size: 14px; border-radius: 8px; }
.btn.block { width: 100%; }

label.f { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid #c8d1e1; border-radius: 10px; padding: 10px 12px; background: #fff; min-height: 44px;
}
.input:focus { outline: 2px solid rgba(201, 162, 39, .5); border-color: var(--gold); }
textarea.input { min-height: 80px; resize: vertical; }
.field { margin-bottom: 12px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 3px; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.badge.live { background: var(--ok-soft); color: var(--ok); }
.badge.live::before { content: "● "; animation: blink 1.2s infinite; }
.badge.upcoming { background: var(--gold-soft); color: #7a5d0c; }
.badge.ended { background: #e9edf3; color: var(--muted); }
.badge.draft { background: var(--bad-soft); color: var(--bad); }
@keyframes blink { 50% { opacity: .25; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { background: #eef2fa; color: var(--navy); font-size: 13px; padding: 3px 10px; border-radius: 99px; }

.exam-card h3 { margin: 6px 0 2px; }
.exam-card .when { font-size: 14px; color: var(--muted); }
.countdown { font-weight: 700; color: var(--navy); }

.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid #d3dbea; border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- exam taking ---------- */
.exam-bar {
  position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; border-bottom: 3px solid var(--gold);
}
.exam-bar .t { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.12); padding: 2px 12px; border-radius: 8px; }
.exam-bar .t.warn { background: var(--warn); }
.exam-bar .t.danger { background: var(--bad); animation: blink 1s infinite; }
.exam-bar .info { font-size: 14px; line-height: 1.3; }
.q {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.q .qt { font-weight: 600; margin-bottom: 10px; white-space: pre-wrap; }
.q .qn { display: inline-block; min-width: 30px; color: var(--navy); font-weight: 700; }
.opt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  border: 1.5px solid #d4dbe8; background: #fbfcfe; border-radius: 10px; padding: 10px 12px; margin: 6px 0; cursor: pointer; min-height: 46px;
}
.opt .l { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #9aa8c2; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--navy); background: #fff; }
.opt:hover { border-color: var(--navy-2); }
.opt.sel { border-color: var(--navy); background: #e8eefb; }
.opt.sel .l { background: var(--navy); color: #fff; border-color: var(--navy); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.right .l { background: var(--ok); color: #fff; border-color: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .l { background: var(--bad); color: #fff; border-color: var(--bad); }
.opt[disabled] { cursor: default; }
.exp { margin-top: 8px; padding: 8px 12px; border-left: 4px solid var(--gold); background: #fffaf0; border-radius: 6px; font-size: 15px; white-space: pre-wrap; }
.q.res-ok { border-left: 5px solid var(--ok); }
.q.res-bad { border-left: 5px solid var(--bad); }
.q.res-skip { border-left: 5px solid #aab4c6; }

.navgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.navgrid a { display: grid; place-items: center; height: 36px; border-radius: 8px; background: #eef2fa; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 600; }
.navgrid a.done { background: var(--navy); color: #fff; }

.submit-bar { position: sticky; bottom: 0; background: rgba(243,245,249,.95); padding: 10px 0 14px; backdrop-filter: blur(4px); }

/* ---------- result ---------- */
.score-hero { text-align: center; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 22px 16px; margin-bottom: 14px; border-bottom: 4px solid var(--gold); }
.score-hero .big { font-size: 46px; font-weight: 700; line-height: 1.1; color: var(--gold); }
.score-hero .sub { opacity: .9; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.stats div { background: rgba(255,255,255,.1); border-radius: 10px; padding: 8px 4px; }
.stats b { display: block; font-size: 22px; }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { background: var(--navy); color: #fff; text-align: left; padding: 9px 10px; font-weight: 600; white-space: nowrap; }
.tbl td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:nth-child(even) td { background: #f8fafd; }
.tbl tr.top3 td:first-child { color: var(--gold); font-weight: 700; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.dim td { opacity: .45; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 31, 68, .55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); padding: 20px; max-width: 420px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
#mls-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--navy-ink); color: #fff; padding: 10px 18px; border-radius: 10px; opacity: 0; transition: .25s; z-index: 99; max-width: 90vw; text-align: center; pointer-events: none; }
#mls-toast.show { opacity: 1; transform: translate(-50%, 0); }
#mls-toast.err { background: var(--bad); }
#mls-toast.ok { background: var(--ok); }

/* ---------- admin ---------- */
.qedit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fff; }
.qedit .hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.qedit .optrow { display: flex; gap: 8px; align-items: center; margin: 5px 0; }
.qedit .optrow input[type=radio] { width: 22px; height: 22px; accent-color: var(--ok); flex: none; }
.qedit .optrow .l { width: 22px; font-weight: 700; color: var(--navy); flex: none; }
.qedit.bad { border-color: var(--bad); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 99px; cursor: pointer; font-weight: 600; color: var(--navy); }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sticky-save { position: sticky; bottom: 0; background: rgba(243,245,249,.96); padding: 10px 0; display: flex; gap: 8px; justify-content: flex-end; z-index: 10; }
pre.sample { background: #f6f8fc; border: 1px dashed #c8d1e1; padding: 10px; border-radius: 8px; font-size: 13px; white-space: pre-wrap; margin: 6px 0; font-family: inherit; }

/* ---------- print (merit list → PDF) ---------- */
.print-only { display: none; }
@media print {
  body { background: #fff; font-size: 12px; }
  .no-print, .site-head, .site-foot, .demo-bar, #mls-toast { display: none !important; }
  .print-only { display: block; }
  main.wrap { padding: 0; max-width: none; }
  .card { box-shadow: none; border: none; padding: 0; }
  .tbl th { background: var(--navy) !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tbl td { padding: 4px 8px; }
  .print-head { display: flex; align-items: center; gap: 12px; border-bottom: 3px solid var(--gold); padding-bottom: 8px; margin-bottom: 10px; }
  .print-head img { width: 60px; height: 60px; }
  .print-head .n { font-size: 20px; font-weight: 700; color: var(--navy); }
  .q { break-inside: avoid; box-shadow: none; }
}

/* =====================================================
   Lively layer — hero, cards, countdown, ring, podium
   ===================================================== */
body {
  background:
    radial-gradient(900px 400px at 100% -10%, rgba(201,162,39,.10), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(22,61,127,.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

/* hero */
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #0a1f44 0%, #0d2b5e 45%, #1d4c9a 100%);
  color: #fff; border-radius: 20px; padding: 26px 24px; margin: 6px 0 18px; box-shadow: 0 14px 40px rgba(13,43,94,.28);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px); background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--gold), #f3d77a, var(--gold)); }
.hero-text { position: relative; z-index: 1; }
.hero-kicker { display: inline-block; background: rgba(201,162,39,.2); color: #f3d77a; border: 1px solid rgba(243,215,122,.4); padding: 2px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.hero h1 { color: #fff; font-size: clamp(22px, 4.6vw, 32px); line-height: 1.25; margin: 10px 0 8px; text-wrap: balance; }
.hero p { margin: 0 0 14px; opacity: .85; font-size: 15px; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats div { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 6px 14px; min-width: 76px; text-align: center; }
.hero-stats b { display: block; font-size: 24px; color: #f3d77a; line-height: 1.2; }
.hero-stats span { font-size: 13px; opacity: .85; }
.hero-art { width: 100%; max-width: 230px; justify-self: center; position: relative; z-index: 1; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
.hero-art .beam { transform-origin: 120px 60px; animation: sway 5s ease-in-out infinite; }
.hero-art .pan-l { transform-origin: 52px 64px; animation: counter 5s ease-in-out infinite; }
.hero-art .pan-r { transform-origin: 188px 64px; animation: counter 5s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes counter { 0%,100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; padding: 22px 18px 26px; }
  .hero-art { max-width: 150px; grid-row: 1; justify-self: end; margin: -6px -4px -40px 0; opacity: .9; }
}

/* section titles */
.section-title .count { margin-left: 4px; background: var(--navy); color: #fff; font-size: 13px; min-width: 24px; height: 24px; border-radius: 99px; display: inline-grid; place-items: center; padding: 0 7px; }
.section-title.live::before { background: var(--ok); }

/* exam cards */
.cards { display: grid; gap: 14px; margin-bottom: 8px; }
.exam-card {
  display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s; animation: rise .45s both; animation-delay: calc(var(--i, 0) * 70ms);
}
.exam-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(13,43,94,.13); }
.exam-card h3 { margin: 6px 0 2px; font-size: 18px; }
.exam-card.st-live { border-color: rgba(31,138,76,.45); box-shadow: 0 0 0 3px rgba(31,138,76,.10), var(--shadow); }
.exam-card.st-ended { background: #fbfcfe; }
.exam-card .when { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.exam-card .actions { margin-top: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.date-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(13,43,94,.06);
}
.date-tile .dt-m { width: 100%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 0; }
.st-live .date-tile .dt-m { background: var(--ok); }
.st-upcoming .date-tile .dt-m { background: var(--gold); color: var(--navy-ink); }
.date-tile .dt-d { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.15; padding-top: 4px; }
.date-tile .dt-w { font-size: 12px; color: var(--muted); padding-bottom: 6px; }
@media (max-width: 420px) { .exam-card { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 14px; } .date-tile .dt-d { font-size: 24px; } }

.btn.go { padding-inline: 20px; box-shadow: 0 6px 16px rgba(201,162,39,.35); }
.btn.go .ic { transition: transform .2s; }
.btn.go:hover .ic { transform: translateX(4px); }
.ends { color: var(--ok); font-weight: 600; }

/* countdown boxes */
.cd-wrap { width: 100%; }
.cd-label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cd { display: inline-grid; grid-template-columns: repeat(4, minmax(54px, 1fr)); gap: 6px; }
.cd div { background: linear-gradient(180deg, #12306b, #0a1f44); color: #fff; border-radius: 10px; text-align: center; padding: 5px 4px 4px; box-shadow: inset 0 -2px 0 rgba(201,162,39,.7); }
.cd b { display: block; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd span { font-size: 11px; opacity: .8; }

/* exam taking */
.exam-bar { flex-wrap: wrap; position: sticky; }
.exam-bar .prog { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: rgba(255,255,255,.15); }
.exam-bar .prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f3d77a, var(--gold)); transition: width .3s; }
.q .qt { display: flex; gap: 10px; align-items: flex-start; }
.q .qn {
  flex: none; min-width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px;
  background: var(--gold-soft); color: var(--navy); font-weight: 700; font-size: 15px; border: 1px solid #ead9a0;
}
.opt { transition: border-color .15s, background .15s, transform .08s; }
.opt:active { transform: scale(.985); }
.opt.sel .l { animation: pop .25s; }
@keyframes pop { 50% { transform: scale(1.18); } }

/* result */
.score-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0a1f44, #0d2b5e 50%, #1d4c9a); border-radius: 20px; }
.ring-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto 6px; }
.ring { width: 100%; height: 100%; }
.ring-val { animation: fill 1.2s .2s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes fill { to { stroke-dashoffset: var(--to); } }
.ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-txt .big { font-size: 38px; }
.ring-txt .of { font-size: 15px; opacity: .8; }
.verdict { font-size: 18px; font-weight: 700; color: #f3d77a; margin-bottom: 2px; }
.stats .s-ok b { color: #7fe0a6; }
.stats .s-bad b { color: #ff9c90; }

/* podium */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; margin: 4px 0 16px; }
.pod { text-align: center; animation: rise .5s both; }
.pod .medal { width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 20px; color: #3b2a00; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.pod .pn { font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.pod .ps { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.pod .block { border-radius: 12px 12px 0 0; background: linear-gradient(180deg, var(--navy-2), var(--navy)); }
.pod.p1 .medal { background: linear-gradient(135deg, #f8e28c, #c9a227); width: 54px; height: 54px; font-size: 24px; }
.pod.p2 .medal { background: linear-gradient(135deg, #f1f3f6, #aeb6c2); }
.pod.p3 .medal { background: linear-gradient(135deg, #f3c9a1, #c07a3e); }
.pod.p1 .block { height: 96px; border-top: 4px solid var(--gold); }
.pod.p2 .block { height: 66px; }
.pod.p3 .block { height: 46px; }
.pod.p1 { animation-delay: .15s; } .pod.p3 { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ring-val { stroke-dashoffset: var(--to); }
}

/* admin: section tabs, radio rows, banner preview */
.admin-tabs a { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 99px; font-weight: 600; color: var(--navy); text-decoration: none; }
.admin-tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
label.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
label.radio input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); }
.adm-prev { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: linear-gradient(120deg, #fff7d6, #f6d77a); border: 1px solid #efd88a; }
.adm-prev.off { opacity: .5; }
.adm-prev img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; }
.adm-prev b { display: block; font-size: 18px; color: var(--navy); }
.adm-prev p { margin: 4px 0 8px; font-size: 14px; }
.adm-tag-a { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: #dc2626; padding: 1px 8px; border-radius: 99px; }

/* admin header — premium */
.site-head { background: linear-gradient(110deg, #050a18 0%, #0a1733 35%, #12306b 55%, #0a1733 80%, #050a18 100%); border-bottom: 3px solid #d4af5a; }
.brand-name { font-family: "Playfair Display", "Hind Siliguri", serif; }
.brand-tag { color: #f5e1a4; }
.brand-logo { border-color: #d4af5a; object-fit: cover; }
.acc-switch { display: inline-flex; border: 1px solid #d9dfeb; border-radius: 99px; overflow: hidden; background: #fff; }
.acc-switch button { border: 0; background: transparent; padding: 6px 12px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: #5d6a80; min-height: 34px; }
.acc-switch button.on.prem { background: linear-gradient(180deg, #f5e1a4, #d4af5a); color: #2a1d00; }
.acc-switch button.on.free { background: #dcfce7; color: #166534; }
.pdf-card { border-left: 4px solid #d4af5a; }
.pdf-sum { margin: 8px 0; }
.tbl input.input.cell { min-height: 36px; padding: 6px 8px; font-size: 14px; }
.tbl tr.warn-row td { background: #fff7e6 !important; }
.card.migrate { border-left: 4px solid #1aa3d9; background: linear-gradient(90deg, #eef8fd, #fff); }
/* admin — refined */
body:not(.app) { background: #f7f5f0; }
.site-head { background: #0b1a36; border-bottom: 2px solid #c9a24e; }
.brand-tag { color: #e9d39a; }
.btn.gold { background: #c9a24e; border-color: #a8822f; color: #0b1a36; }
.btn.gold:hover { background: #d3ae5c; }
.btn:not(.gold):not(.ghost):not(.danger) { background: #0b1a36; border-color: #0b1a36; }
.admin-tabs a.on { background: #0b1a36; border-color: #0b1a36; }
.tbl th { background: #0b1a36; }
.card { border-color: #e7e1d2; }
.acc-switch button.on.prem { background: #c9a24e; color: #0b1a36; }

/* admin v6: 3-way access, content manager */
.admin-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.admin-tabs a { flex: none; }
.acc-switch button.on.open { background: #0d9488; color: #fff; }
.grid2 .field.full { grid-column: 1 / -1; }
textarea.input.big { min-height: 260px; font-size: 15px; line-height: 1.6; }
.cm-item { display: flex; gap: 14px; align-items: flex-start; }
.cm-item.dim { opacity: .6; }
.cm-img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; flex: none; border: 1px solid var(--line); }
.cm-b { flex: 1; min-width: 0; }
.cm-thumb { margin-top: 8px; }
.cm-thumb img { max-width: 260px; max-height: 180px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.cm-ed { border-left: 5px solid #c9a24e; }
.modal.wide { max-width: 620px; width: calc(100vw - 32px); }
.le-rows { display: grid; gap: 8px; margin: 8px 0; max-height: 55vh; overflow-y: auto; }
.le-row { display: flex; gap: 6px; align-items: center; }
.le-row .input { flex: 1; min-width: 0; }
.le-row .btn { flex: none; padding-left: 9px; padding-right: 9px; }
.input.sm { padding: 5px 8px; font-size: 14px; width: auto; min-height: 0; }
.fchips-a { display: flex; gap: 6px; flex-wrap: wrap; }
.fchips-a button { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 99px; padding: 6px 12px; font-weight: 600; cursor: pointer; font-size: 14px; }
.fchips-a button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-card, .oc-card { border-left: 5px solid #0d9488; }
.acc-switch button.on.open { background: #dbeafe; color: #1e40af; }
@media (max-width: 520px) { .le-row { flex-wrap: wrap; } .le-row .input { flex-basis: 100%; } }
.rules-warn { border-left: 5px solid #dc2626; background: #fef2f2; }
.rules-warn h3 { color: #b91c1c; margin: 0 0 4px; }

/* v9 admin: fonts + access groups + reset requests */
body, button, input, select, textarea { font-family: "Inter", "Noto Sans Bengali", system-ui, sans-serif; }
.brand-name { font-family: "Inter", "Noto Sans Bengali", sans-serif; font-weight: 800; }
.chip.acc { background: #fbf6e9; color: #6b4f12; border: 1px solid #ead39a; }
.acc-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; cursor: pointer; }
.acc-row.all { background: #fbf6e9; border-color: #ead39a; }
.acc-row.inline { display: inline-flex; margin: 4px 6px 4px 0; padding: 6px 10px; }
.grp-checks { display: flex; flex-wrap: wrap; }
.rr-card { border-left: 5px solid #c8a24a; }
.rr-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.bulk-card { border-left: 5px solid #1f3f86; }
.code-big { font-size: 30px; font-weight: 800; letter-spacing: 6px; text-align: center; background: #fbf6e9; border: 2px dashed #c8a24a; border-radius: 12px; padding: 12px; margin: 10px 0; font-family: "Inter", monospace; }
.wa-btn { background: #25d366 !important; border-color: #1ebe5b !important; color: #fff !important; display: inline-block; text-decoration: none; }

/* v10 admin: Kalpurush */
body, button, input, select, textarea { font-family: "Inter", "Kalpurush", "Noto Sans Bengali", system-ui, sans-serif; }
.pr-grade .pg-body { max-height: 55vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.pg-q { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.pg-ans { white-space: pre-line; background: #f6f7fb; border-radius: 8px; padding: 8px 10px; margin: 6px 0; line-height: 1.7; }
.card.dim { opacity: .6; }

/* practice sub-tabs (admin) */
.pr-subf { margin: 10px 0 6px; flex-wrap: wrap; }
.pr-sec { margin-top: 14px; }
.pr-sec-h { margin: 6px 0 8px; padding-bottom: 6px; border-bottom: 2px solid #e6eaf2; }
.rt-tog { margin-top: 6px; color: #334155; }
