/* Biology Seekers Quiz - student interface (black & blue) */
.bsq {
  --bg: #04060d; --surface: #0a1122; --surface2: #0f1a33; --line: #1b2a4e;
  --text: #e9efff; --muted: #8b9cc6; --blue: #2f7bff; --blue2: #1d4ed8; --cyan: #38bdf8;
  --ok: #22c55e; --no: #ef4444; --warn: #f59e0b;
  position: relative; box-sizing: border-box; max-width: 1040px; margin: 24px auto; padding: 18px;
  color: var(--text); border-radius: 22px; border: 1px solid var(--line);
  background:
    radial-gradient(900px 380px at 0% -10%, rgba(47,123,255,.22), transparent 60%),
    radial-gradient(700px 320px at 100% 110%, rgba(56,189,248,.12), transparent 60%),
    var(--bg);
  font-family: "Hind Siliguri", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.bsq *, .bsq *::before, .bsq *::after { box-sizing: border-box; }
.bsq h2, .bsq h3, .bsq p { margin: 0; color: inherit; }
.bsq .hide { display: none !important; }
.bsq-standalone { margin-top: 10px; }
.bsq-loading { padding: 40px; text-align: center; color: var(--muted); }
.bsq-error { color: #fecaca; min-height: 0; }
.bsq-error:not(:empty) { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.45); padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }

/* Hero / intro */
.bsq-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.bsq-hero { padding: 34px 28px 26px; background: linear-gradient(135deg, rgba(47,123,255,.28), rgba(29,78,216,.06) 55%, transparent), var(--surface2); border-bottom: 1px solid var(--line); border-top: 4px solid var(--blue); }
.bsq-hero.small { padding: 24px 28px; }
.bsq-brandtag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.bsq-brandtag i { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 0 14px var(--blue); }
.bsq-title { font-size: clamp(24px, 4.5vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -.3px; color: #fff; }
.bsq-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.bsq-chip { background: rgba(47,123,255,.1); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; min-width: 96px; text-align: center; }
.bsq-chip b { display: block; font-size: 20px; color: #fff; line-height: 1.2; }
.bsq-chip span { font-size: 12px; color: var(--muted); }
.bsq-body { padding: 26px 28px 30px; }
.bsq-intro { white-space: pre-line; color: #cdd8f5; margin-bottom: 16px; }
.bsq-note { background: rgba(47,123,255,.1); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; color: #cdd8f5; }
.bsq-note.warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.4); color: #fde7b0; }
.bsq-thanks { font-size: 18px; margin-bottom: 14px; }

.bsq-form { display: grid; gap: 14px; margin-top: 8px; }
.bsq-f span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.bsq input[type=text], .bsq input[type=email], .bsq input[type=tel] {
  width: 100%; background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; font-size: 16px; font-family: inherit; box-shadow: none; outline: none; height: auto; transition: border-color .15s, box-shadow .15s;
}
.bsq input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,255,.3); }
.bsq input.bad { border-color: var(--no); }
.bsq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.bsq-btn {
  appearance: none; border: 0; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue2)); padding: 13px 26px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(47,123,255,.35); transition: transform .12s, filter .12s, box-shadow .12s; text-transform: none; letter-spacing: 0;
}
.bsq-btn:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.bsq-btn:active:not(:disabled) { transform: translateY(0); }
.bsq-btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.bsq-btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.bsq-btn.ghost:hover:not(:disabled) { border-color: var(--blue); }
.bsq-btn.go { background: linear-gradient(135deg, #16a34a, #15803d); box-shadow: 0 8px 24px rgba(34,197,94,.25); }

/* Exam */
.bsq-top { position: sticky; top: 0; z-index: 20; background: rgba(10,17,34,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 0; margin-bottom: 16px; overflow: hidden; }
body.admin-bar .bsq-top { top: 32px; }
.bsq-top-row { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; }
.bsq-top-title { flex: 1; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsq-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.bsq-timer { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; min-width: 74px; }
.bsq-timer small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.bsq-timer b { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--cyan); }
.bsq-timer.low b { color: var(--no); animation: bsqpulse 1s infinite; }
@keyframes bsqpulse { 50% { opacity: .45; } }
.bsq-progress { height: 4px; background: var(--line); margin: 0 -16px; }
.bsq-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .3s; }

.bsq-exam-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; align-items: start; }
.bsq-side { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
body.admin-bar .bsq-side { top: 132px; }
.bsq-side-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.bsq-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-height: 320px; overflow: auto; }
.bsq-pal { appearance: none; background: var(--surface2); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 6px 0; font-size: 13px; cursor: pointer; font-family: inherit; }
.bsq-pal:hover { border-color: var(--blue); color: #fff; }
.bsq-pal.done { background: rgba(47,123,255,.22); border-color: var(--blue); color: #fff; }
.bsq-pal.cur { outline: 2px solid var(--cyan); outline-offset: 1px; color: #fff; }

.bsq-q { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; margin-bottom: 16px; transition: border-color .2s, box-shadow .2s; animation: bsqin .25s ease; }
.bsq-q.cur { border-left-color: var(--blue); box-shadow: 0 10px 40px rgba(47,123,255,.12); }
@keyframes bsqin { from { opacity: 0; transform: translateY(6px); } }
.bsq-q-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.bsq-q-no { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--cyan); }
.bsq-q-pts { font-size: 12px; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); padding: 2px 10px; border-radius: 20px; }
.bsq-q-text { font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 16px; word-break: break-word; }
.bsq-hint { color: var(--muted); font-size: 13px; margin: -8px 0 12px; }
.bsq-opts { display: grid; gap: 10px; }
.bsq-opt { position: relative; display: flex; align-items: center; gap: 14px; background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; margin: 0; }
.bsq-opt:hover { border-color: var(--blue); background: #12203f; }
.bsq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bsq-opt i { flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid #4a5d8f; transition: .15s; display: flex; align-items: center; justify-content: center; }
.bsq-opt i.rd { border-radius: 50%; } .bsq-opt i.bx { border-radius: 6px; }
.bsq-opt i::after { content: ""; display: block; opacity: 0; transition: .15s; }
.bsq-opt i.rd::after { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.bsq-opt i.bx::after { width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.bsq-opt:has(input:checked) { border-color: var(--blue); background: linear-gradient(135deg, rgba(47,123,255,.28), rgba(47,123,255,.1)); box-shadow: 0 0 0 1px var(--blue) inset; }
.bsq-opt input:checked + i { background: var(--blue); border-color: var(--blue); }
.bsq-opt input:checked + i::after { opacity: 1; }
.bsq-opt input:focus-visible + i { box-shadow: 0 0 0 3px rgba(56,189,248,.5); }
.bsq-opt span { flex: 1; word-break: break-word; }

.bsq-nav { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.bsq-nav .sp { flex: 1; }

/* Modal & toast */
.bsq-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(2,4,10,.78); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.bsq-dialog { background: var(--surface); border: 1px solid var(--blue); border-radius: 18px; padding: 26px; max-width: 440px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.bsq-dialog h3 { font-size: 22px; margin-bottom: 10px; color: #fff; }
.bsq-dialog p { color: #cdd8f5; margin-bottom: 10px; } .bsq-dialog p.warn { color: #fcd34d; font-weight: 600; }
.bsq-dialog .bsq-nav { margin-top: 18px; }
.bsq-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--blue2); color: #fff; padding: 12px 22px; border-radius: 12px; z-index: 100000; box-shadow: 0 10px 40px rgba(0,0,0,.5); font-weight: 600; }

/* Result */
.bsq-score { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; background: var(--surface2); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 6px 0 22px; }
.bsq-ring-wrap { position: relative; width: 160px; height: 160px; flex: 0 0 160px; }
.bsq-ring { width: 100%; height: 100%; }
.bsq-ring circle { fill: none; stroke-width: 9; }
.bsq-ring .bg { stroke: var(--line); }
.bsq-ring .fg { stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.bsq-ring .fg.ok { stroke: var(--ok); } .bsq-ring .fg.no { stroke: var(--no); }
.bsq-ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bsq-ring-txt b { font-size: 32px; color: #fff; line-height: 1.1; } .bsq-ring-txt span { color: var(--muted); font-size: 13px; }
.bsq-score-side { flex: 1; min-width: 220px; }
.bsq-verdict { display: inline-block; font-weight: 800; font-size: 18px; padding: 6px 18px; border-radius: 30px; margin-bottom: 14px; }
.bsq-verdict.ok { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.5); }
.bsq-verdict.no { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid rgba(239,68,68,.5); }
.bsq-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.bsq-m { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.bsq-m b { display: block; font-size: 20px; color: #fff; } .bsq-m span { font-size: 12px; color: var(--muted); }
.bsq-m.ok b { color: var(--ok); } .bsq-m.no b { color: var(--no); }
.bsq-rev-h { font-size: 20px; margin: 10px 0 14px; color: #fff; }
.bsq-rev { background: var(--surface2); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.bsq-rev.right { border-left-color: var(--ok); } .bsq-rev.wrong { border-left-color: var(--no); }
.bsq-rev .bsq-q-text { font-size: 17px; margin-bottom: 12px; }
.bsq-badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: var(--line); color: #fff; }
.bsq-badge.right { background: rgba(34,197,94,.2); color: #86efac; } .bsq-badge.wrong { background: rgba(239,68,68,.2); color: #fca5a5; }
.bsq-ropts { display: grid; gap: 8px; }
.bsq-ropt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.bsq-ropt .mk { width: 20px; flex: 0 0 20px; text-align: center; font-style: normal; font-weight: 800; }
.bsq-ropt.c { border-color: rgba(34,197,94,.6); background: rgba(34,197,94,.1); } .bsq-ropt.c .mk { color: var(--ok); }
.bsq-ropt.w { border-color: rgba(239,68,68,.6); background: rgba(239,68,68,.1); } .bsq-ropt.w .mk { color: var(--no); }
.bsq-line { margin: 6px 0; } .bsq-line.ok { color: #86efac; } .bsq-line.muted { color: var(--muted); }
.bsq-expl { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(47,123,255,.1); border: 1px solid var(--line); color: #cdd8f5; }
.bsq-expl b { color: var(--cyan); }

@media (max-width: 760px) {
  .bsq { padding: 10px; border-radius: 16px; margin: 12px 0; }
  .bsq-hero { padding: 24px 18px 20px; } .bsq-body { padding: 20px 18px 24px; }
  .bsq-exam-grid { grid-template-columns: 1fr; }
  .bsq-side { position: static; order: -1; padding: 10px; } .bsq-palette { grid-template-columns: repeat(8, 1fr); max-height: 120px; } .bsq-side-h { display: none; }
  .bsq-q { padding: 16px; } .bsq-q-text { font-size: 17px; }
  .bsq-top-title { display: none; } .bsq-count { flex: 1; }
  .bsq-score { padding: 18px; justify-content: center; }
  .bsq-nav .bsq-btn { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) { .bsq * { animation: none !important; transition: none !important; } }

/* Clean single-quiz page (no theme chrome) */
body.bsq-page { margin: 0; min-height: 100vh; background: #02040a; color: #e9efff; }
.bsq-page-wrap { padding: 20px 12px 40px; }
body.bsq-page .bsq-standalone { margin: 0 auto; }
@media (max-width: 760px) { .bsq-page-wrap { padding: 8px 6px 30px; } }

.bsq select, .bsq textarea { width: 100%; background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: 16px; font-family: inherit; box-shadow: none; outline: none; height: auto; }
.bsq select:focus, .bsq textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,255,.3); }
.bsq select.bad, .bsq textarea.bad { border-color: var(--no); }
.bsq input[type=number], .bsq input[type=date] { width: 100%; background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: 16px; font-family: inherit; outline: none; box-shadow: none; height: auto; color-scheme: dark; }
.bsq input[type=number]:focus, .bsq input[type=date]:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,255,.3); }
.bsq input[type=number].bad, .bsq input[type=date].bad { border-color: var(--no); }
