/* ═══════════════════════════════════════════════
   Banking Times Quiz Plugin — bt-quiz.css
   ═══════════════════════════════════════════════ */

.bt-quiz-wrap {
  --navy:  #0a1628;
  --navy2: #0f2040;
  --gold:  #c8962a;
  --gold2: #f0b93a;
  --red:   #e53e3e;
  --green: #38a169;
  --blue:  #3182ce;
  --purple:#805ad5;
  --bg:    #060d1a;
  --card:  #0d1f36;
  --card2: #112540;
  --border:rgba(200,150,42,0.18);
  --text:  #e8eef7;
  --muted: #7a9ab8;
  --r:     14px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100svh;
  overflow: hidden;
}

/* ── Import Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

.bt-quiz-wrap * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* Syne for headings */
.bt-quiz-wrap h1,.bt-quiz-wrap h2,.bt-quiz-wrap h3,
.bt-logo,.bt-hero-title,.bt-tc-name,.bt-screen-title,
.bt-qt-title,.bt-score-big,.bt-conf-title,.bt-timer,
.bt-stat-n,.bt-rs-n,.bt-ring-center,.bt-panel-title {
  font-family: 'Syne', sans-serif;
}

/* ── SCREENS ── */
.bt-screen { display: none; min-height: 100svh; flex-direction: column; }
.bt-screen.bt-active { display: flex; }
#bt-home.bt-active { display: block; }

/* ── HOME ── */
.bt-home-inner { padding-bottom: 74px; }
.bt-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 0;
}
.bt-logo { color: var(--gold2); font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.bt-streak {
  background: rgba(200,150,42,0.12); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px;
  font-size: 12px; font-weight: 600; color: var(--gold2);
}
.bt-hero { padding: 22px 18px 18px; }
.bt-hero-sub { font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.bt-hero-title {
  font-size: 26px; font-weight: 800; line-height: 1.2;
  color: #fff; margin-bottom: 18px;
}
.bt-hero-title span { color: var(--gold2); }

/* Daily Card */
.bt-daily-card {
  background: linear-gradient(135deg,#c8962a 0%,#f0b93a 50%,#c8962a 100%);
  border-radius: var(--r); padding: 18px;
  position: relative; overflow: hidden;
  cursor: pointer; transition: transform .18s;
  box-shadow: 0 8px 28px rgba(200,150,42,.28);
}
.bt-daily-card:active { transform: scale(.98); }
.bt-daily-card::after {
  content:''; position:absolute; right:-20px; top:-20px;
  width:120px; height:120px;
  background:rgba(255,255,255,.1); border-radius:50%;
}
.bt-dc-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: rgba(0,0,0,.6); text-transform: uppercase; margin-bottom: 5px;
}
.bt-dc-title { font-family:'Syne',sans-serif; font-size: 18px; font-weight: 800; color: #0a1628; margin-bottom: 3px; }
.bt-dc-meta { font-size: 12px; color: rgba(10,22,40,.6); margin-bottom: 13px; }
.bt-dc-btn {
  display: inline-flex; align-items: center;
  background: #0a1628; color: var(--gold2);
  border: none; border-radius: 8px;
  padding: 8px 15px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: 'Syne', sans-serif;
}

/* Stats */
.bt-stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; padding: 0 18px; margin-bottom: 22px;
}
.bt-stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 8px; text-align: center;
}
.bt-stat-n { font-size: 22px; font-weight: 800; color: var(--gold2); }
.bt-stat-l { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* Section Label */
.bt-sec-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--muted); text-transform: uppercase;
  padding: 0 18px; margin-bottom: 10px;
}

/* Type Grid */
.bt-type-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 11px; padding: 0 18px; margin-bottom: 24px;
}
.bt-type-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 15px 13px;
  cursor: pointer; transition: all .18s;
  position: relative; overflow: hidden;
}
.bt-type-card:active { transform: scale(.97); }
.bt-type-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background: var(--c, var(--gold));
}
.bt-tc-icon { font-size: 22px; margin-bottom: 8px; }
.bt-tc-name { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.bt-tc-meta { font-size: 11px; color: var(--muted); }
.bt-tc-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--c, var(--gold)); color: #000;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 8px;
}

/* Subject Pills */
.bt-subject-row {
  display: flex; gap: 9px; overflow-x: auto;
  padding: 0 18px 4px; scrollbar-width: none; margin-bottom: 24px;
}
.bt-subject-row::-webkit-scrollbar { display: none; }
.bt-subj-pill {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; cursor: pointer;
  transition: all .18s; min-width: 66px; text-align: center;
  font-size: 19px;
}
.bt-subj-pill:active { transform: scale(.95); }
.bt-subj-pill.bt-active { background: var(--gold); border-color: var(--gold2); }
.bt-sp-name { font-size: 10px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.bt-subj-pill.bt-active .bt-sp-name { color: #000; }

/* Test Card */
.bt-rec-list,.bt-list-pad { padding: 0 18px; }
.bt-test-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px;
  margin-bottom: 10px; cursor: pointer;
  transition: all .18s;
  display: flex; align-items: center; gap: 13px;
}
.bt-test-item:active { transform: scale(.98); }
.bt-ti-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.bt-ti-info { flex: 1; }
.bt-ti-name { font-family:'Syne',sans-serif; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.bt-ti-meta { font-size: 11px; color: var(--muted); }
.bt-ti-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.bt-tag { background: rgba(49,130,206,.14); color: #90cdf4; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 7px; }
.bt-ti-arr { color: var(--muted); font-size: 18px; }

/* Bottom Nav */
.bt-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--card); border-top: 1px solid var(--border);
  display: flex; z-index: 50;
  padding-bottom: env(safe-area-inset-bottom,0);
}
.bt-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 9px 5px; cursor: pointer; color: var(--muted);
  font-size: 10px; font-weight: 600; gap: 3px;
  font-family: 'Syne', sans-serif; transition: color .18s;
}
.bt-nav-item svg { width: 21px; height: 21px; }
.bt-nav-item.bt-active { color: var(--gold2); }

/* ── SELECT SCREEN ── */
#bt-select { background: var(--bg); }
.bt-screen-hdr {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--card); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10; flex-shrink: 0;
}
.bt-back {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.07); border: none; border-radius: 8px;
  color: var(--text); cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.bt-screen-title { font-size: 16px; font-weight: 700; }

.bt-filter-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 16px; scrollbar-width: none;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.bt-filter-tabs::-webkit-scrollbar { display: none; }
.bt-ftab {
  flex-shrink: 0; padding: 6px 14px; border-radius: 18px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); transition: all .18s;
}
.bt-ftab.bt-active { background: var(--gold); border-color: var(--gold2); color: #000; }

/* ── QUIZ SCREEN ── */
#bt-quiz { background: var(--bg); }
.bt-quiz-topbar {
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 11px 14px;
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
}
.bt-qt-title {
  flex: 1; font-size: 13px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bt-timer {
  display: flex; align-items: center; gap: 4px;
  background: rgba(229,62,62,.12); border: 1px solid rgba(229,62,62,.3);
  border-radius: 7px; padding: 5px 9px;
  font-size: 13px; font-weight: 800; color: #fc8181; flex-shrink: 0;
}
.bt-timer.bt-warn { animation: bt-pulse 1s infinite; }
@keyframes bt-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.bt-panel-btn {
  width: 33px; height: 33px; border-radius: 7px;
  background: var(--card2); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; font-size: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.bt-prog-bar { height: 3px; background: var(--card2); flex-shrink: 0; }
.bt-prog-fill {
  height: 100%; background: linear-gradient(90deg,var(--gold),var(--gold2));
  transition: width .3s ease;
}
.bt-sec-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px; background: rgba(200,150,42,.05);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
  font-size: 12px; color: var(--muted);
}
.bt-sec-info strong { color: var(--gold2); }

/* Question body */
.bt-quiz-body { flex: 1; overflow-y: auto; padding: 14px; }
.bt-q-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 9px;
}
.bt-mark-btn {
  display: flex; align-items: center; gap: 4px;
  background: rgba(128,90,213,.1); border: 1px solid rgba(128,90,213,.3);
  border-radius: 6px; padding: 4px 9px;
  color: #b794f4; font-size: 11px; font-weight: 600; cursor: pointer;
}
.bt-mark-btn.bt-marked { background: rgba(128,90,213,.25); border-color: #805ad5; }
.bt-question-box {
  font-size: 15px; font-weight: 500; line-height: 1.6; color: #fff;
  background: var(--card); padding: 14px;
  border-radius: 12px; border: 1px solid var(--border); margin-bottom: 16px;
}
.bt-q-num { font-weight: 800; color: var(--gold2); margin-right: 5px; }
.bt-opts { display: flex; flex-direction: column; gap: 9px; }
.bt-opt {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 11px; padding: 13px;
  cursor: pointer; transition: all .16s;
}
.bt-opt:active { transform: scale(.99); }
.bt-opt.bt-sel { border-color: var(--gold); background: rgba(200,150,42,.08); }
.bt-opt.bt-correct { border-color: var(--green); background: rgba(56,161,105,.1); }
.bt-opt.bt-wrong { border-color: var(--red); background: rgba(229,62,62,.08); }
.bt-opt-lbl {
  width: 27px; height: 27px; border-radius: 7px;
  background: var(--card2); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family:'Syne',sans-serif; font-size:11px; font-weight:700;
  color: var(--muted); flex-shrink: 0; margin-top: 1px; transition: all .16s;
}
.bt-opt.bt-sel .bt-opt-lbl { background: var(--gold); border-color: var(--gold2); color: #000; }
.bt-opt.bt-correct .bt-opt-lbl { background: var(--green); border-color: var(--green); color: #fff; }
.bt-opt.bt-wrong .bt-opt-lbl { background: var(--red); border-color: var(--red); color: #fff; }
.bt-opt-txt { font-size: 14px; line-height: 1.5; color: var(--text); flex: 1; }
.bt-exp-box {
  margin-top: 12px; background: rgba(56,161,105,.07);
  border: 1px solid rgba(56,161,105,.25); border-radius: 11px; padding: 13px; display: none;
}
.bt-exp-box.show { display: block; }
.bt-exp-title { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #68d391; text-transform: uppercase; margin-bottom: 5px; }
.bt-exp-box p { font-size: 12px; line-height: 1.6; color: var(--muted); }

/* Quiz foot */
.bt-quiz-foot {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 11px 14px; display: flex; gap: 9px; flex-shrink: 0;
  padding-bottom: calc(11px + env(safe-area-inset-bottom,0));
}
.bt-btn-prev,.bt-btn-next,.bt-btn-submit {
  flex: 1; padding: 12px; border-radius: 9px;
  font-family:'Syne',sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .16s; border: none;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.bt-btn-prev { background: var(--card2); color: var(--muted); border: 1px solid var(--border); }
.bt-btn-next { background: var(--gold); color: #0a1628; }
.bt-btn-submit { background: linear-gradient(135deg,#38a169,#2f855a); color: #fff; }

/* ── RESULT ── */
#bt-result { background: var(--bg); overflow-y: auto; }
.bt-result-body { padding-bottom: 24px; }
.bt-result-top {
  padding: 24px 20px 18px; text-align: center;
  background: linear-gradient(180deg,var(--card) 0%,transparent 100%);
  border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.bt-res-emoji { font-size: 50px; margin-bottom: 10px; }
.bt-res-headline { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.bt-res-sub { font-size: 13px; color: var(--muted); }
.bt-ring-wrap { display: flex; justify-content: center; margin: 16px 0; }
.bt-ring { width: 130px; height: 130px; position: relative; }
.bt-ring svg { width: 100%; height: 100%; }
.bt-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.bt-score-big { font-size: 28px; font-weight: 800; color: var(--gold2); }
.bt-score-tot { font-size: 12px; color: var(--muted); }
.bt-res-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 0 18px; margin-bottom: 18px;
}
.bt-rs {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 11px; padding: 12px; text-align: center;
}
.bt-rs-n { font-family:'Syne',sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 2px; }
.bt-rs-l { font-size: 10px; color: var(--muted); }
.bt-green { color: #68d391; }
.bt-red   { color: #fc8181; }
.bt-blue  { color: #90cdf4; }
.bt-muted { color: var(--muted); }
.bt-analysis { padding: 0 18px; margin-bottom: 18px; }
.bt-an-title { font-family:'Syne',sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.bt-an-row {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 9px; padding: 11px 13px;
  margin-bottom: 7px;
  display: flex; align-items: center; gap: 10px;
}
.bt-an-subj { flex: 1; font-size: 12px; font-weight: 600; }
.bt-an-bar-w { flex: 2; height: 5px; background: var(--card2); border-radius: 3px; overflow: hidden; }
.bt-an-bar { height: 100%; border-radius: 3px; transition: width .8s ease; }
.bt-an-sc { font-family:'Syne',sans-serif; font-size: 12px; font-weight: 700; color: var(--gold2); min-width: 36px; text-align: right; }
.bt-res-actions { display: flex; gap: 10px; padding: 0 18px; margin-bottom: 10px; }
.bt-ra {
  flex: 1; padding: 13px; border-radius: 9px;
  font-family:'Syne',sans-serif; font-size: 12px; font-weight: 700;
  cursor: pointer; border: none; transition: all .18s;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.bt-ra-pri { background: var(--gold); color: #0a1628; }
.bt-ra-sec { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.bt-ra-review { background: var(--blue); color: #fff; flex: 2; }

/* ── REVIEW ── */
#bt-review { background: var(--bg); overflow-y: auto; }
.bt-rq-card {
  margin: 0 14px 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.bt-rq-hdr {
  padding: 11px 14px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.bt-rq-num { font-size: 11px; font-weight: 700; color: var(--muted); }
.bt-rq-status { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 7px; }
.s-correct { background: rgba(56,161,105,.15); color: #68d391; }
.s-wrong   { background: rgba(229,62,62,.15);  color: #fc8181; }
.s-skip    { background: rgba(122,154,184,.15); color: var(--muted); }
.bt-rq-body { padding: 13px 14px; }
.bt-rq-q { font-size: 13px; line-height: 1.6; color: #fff; margin-bottom: 10px; }
.bt-rq-opts { display: flex; flex-direction: column; gap: 7px; }
.bt-rq-opt {
  padding: 9px 11px; border-radius: 7px;
  font-size: 12px; display: flex; gap: 7px; border: 1px solid transparent;
}
.rq-c { background: rgba(56,161,105,.1); border-color: rgba(56,161,105,.3); color: #68d391; }
.rq-w { background: rgba(229,62,62,.08); border-color: rgba(229,62,62,.25); color: #fc8181; }
.rq-n { background: var(--card2); color: var(--muted); }
.bt-rq-exp {
  margin-top: 9px; padding: 9px 11px;
  background: rgba(49,130,206,.07); border-radius: 7px;
  border-left: 3px solid var(--blue);
  font-size: 11px; color: var(--muted); line-height: 1.6;
}

/* ── LEADERBOARD ── */
#bt-leader { background: var(--bg); overflow-y: auto; }
.bt-lb-body { padding-bottom: 80px; }
.bt-lb-top3 {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 8px; padding: 24px 18px 18px;
  background: linear-gradient(180deg,var(--card) 0%,transparent 100%);
  border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.bt-lbp { display:flex; flex-direction:column; align-items:center; gap:6px; flex:1; }
.bt-lb-av {
  width:50px; height:50px; border-radius:50%;
  background:var(--card2); border:3px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:20px;
}
.bt-lbp.r1 .bt-lb-av { width:62px; height:62px; border-color:var(--gold2); }
.bt-lbp.r2 .bt-lb-av { border-color:#a0aec0; }
.bt-lbp.r3 .bt-lb-av { border-color:#c97535; }
.bt-lb-nm { font-family:'Syne',sans-serif; font-size:11px; font-weight:700; text-align:center; }
.bt-lb-pts { font-size:10px; color:var(--gold2); font-weight:600; }
.bt-lb-rnk { font-size:10px; font-weight:700; padding:2px 7px; border-radius:7px; }
.bt-lb-row {
  display:flex; align-items:center; gap:11px;
  padding:11px 14px; margin:0 14px 8px;
  background:var(--card); border:1px solid var(--border); border-radius:9px;
}
.bt-lb-r-rank { font-family:'Syne',sans-serif; font-size:13px; font-weight:800; color:var(--muted); min-width:26px; }
.bt-lb-r-av { width:34px; height:34px; border-radius:50%; background:var(--card2); display:flex; align-items:center; justify-content:center; font-size:15px; }
.bt-lb-r-inf { flex:1; }
.bt-lb-r-nm { font-size:13px; font-weight:600; }
.bt-lb-r-sub { font-size:10px; color:var(--muted); }
.bt-lb-r-pts { font-family:'Syne',sans-serif; font-size:13px; font-weight:800; color:var(--gold2); }

/* ── PANEL ── */
.bt-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.72); z-index:200;
}
.bt-overlay.show { display:block; }
.bt-panel {
  position:fixed; bottom:0; left:50%; transform:translateX(-50%) translateY(100%);
  width:100%; max-width:480px;
  background:var(--card); border-top:1px solid var(--border);
  border-radius:18px 18px 0 0; padding:18px 14px;
  max-height:64vh; overflow-y:auto; z-index:201;
  transition:transform .28s ease;
  padding-bottom:calc(18px + env(safe-area-inset-bottom,0));
}
.bt-panel.show { transform:translateX(-50%) translateY(0); }
.bt-ph { width:38px; height:4px; background:var(--border); border-radius:2px; margin:0 auto 14px; }
.bt-panel-title { font-size:14px; font-weight:700; margin-bottom:12px; }
.bt-legend { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.bt-leg { display:flex; align-items:center; gap:4px; font-size:10px; color:var(--muted); }
.bt-leg-dot { width:11px; height:11px; border-radius:3px; }
.bt-qgrid { display:grid; grid-template-columns:repeat(7,1fr); gap:7px; }
.bt-qg-btn {
  aspect-ratio:1; border-radius:7px; border:none;
  font-family:'Syne',sans-serif; font-size:10px; font-weight:700;
  cursor:pointer; transition:all .14s;
  background:var(--card2); color:var(--muted);
}
.bt-qg-btn.ans { background:var(--green); color:#fff; }
.bt-qg-btn.mkd { background:var(--purple); color:#fff; }
.bt-qg-btn.skp { background:rgba(229,62,62,.3); color:#fc8181; }
.bt-qg-btn.cur { box-shadow:0 0 0 2px var(--gold2); }
.bt-panel-close {
  width:100%; margin-top:14px; padding:11px;
  background:var(--gold); border:none; border-radius:9px;
  font-family:'Syne',sans-serif; font-size:13px; font-weight:700;
  color:#0a1628; cursor:pointer;
}

/* ── CONFIRM ── */
.bt-confirm-ov {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.78); z-index:300;
  align-items:flex-end; justify-content:center;
}
.bt-confirm-ov.show { display:flex; }
.bt-confirm-box {
  background:var(--card); border-top:1px solid var(--border);
  border-radius:18px 18px 0 0; padding:22px 18px;
  width:100%; max-width:480px;
  padding-bottom:calc(22px + env(safe-area-inset-bottom,0));
}
.bt-conf-title { font-size:17px; font-weight:800; margin-bottom:7px; }
.bt-conf-sub { font-size:13px; color:var(--muted); margin-bottom:18px; line-height:1.6; }
.bt-conf-btns { display:flex; gap:9px; }
.bt-cb-cancel {
  flex:1; padding:12px; border-radius:9px;
  background:var(--card2); border:1px solid var(--border);
  color:var(--text); font-family:'Syne',sans-serif; font-size:13px; font-weight:700; cursor:pointer;
}
.bt-cb-ok {
  flex:2; padding:12px; border-radius:9px;
  background:var(--green); border:none;
  color:#fff; font-family:'Syne',sans-serif; font-size:13px; font-weight:700; cursor:pointer;
}

/* ── LOADING ── */
.bt-loading {
  display:none; position:fixed; inset:0;
  background:var(--bg); z-index:500;
  align-items:center; justify-content:center; flex-direction:column; gap:14px;
}
.bt-loading.show { display:flex; }
.bt-spinner {
  width:44px; height:44px;
  border:4px solid var(--card2); border-top-color:var(--gold2);
  border-radius:50%; animation:bt-spin .75s linear infinite;
}
@keyframes bt-spin { to { transform:rotate(360deg); } }
.bt-load-txt { font-family:'Syne',sans-serif; font-size:13px; color:var(--muted); }

/* ── TOAST ── */
.bt-toast {
  position:fixed; bottom:84px; left:50%; transform:translateX(-50%) translateY(16px);
  background:var(--card); border:1px solid var(--border);
  border-radius:9px; padding:9px 18px;
  font-size:13px; font-weight:600; color:var(--text);
  z-index:999; opacity:0; transition:all .28s; white-space:nowrap;
  box-shadow:0 4px 24px rgba(0,0,0,.5);
}
.bt-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ── Fade in ── */
@keyframes bt-fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.bt-fade { animation:bt-fadeUp .3s ease forwards; }

/* ── Empty State ── */
.bt-empty { text-align:center; padding:40px 20px; color:var(--muted); }
.bt-empty-icon { font-size:36px; margin-bottom:10px; }
.bt-empty p { font-size:13px; }

/* ── v2 Additions ── */
.bt-neg-tag { font-size:10px; color:#fc8181; background:rgba(229,62,62,.12); border-radius:4px; padding:1px 5px; margin-left:auto; flex-shrink:0; }
.bt-diff-indicator { float:right; font-size:10px; font-weight:700; letter-spacing:.5px; padding:2px 8px; border-radius:8px; }
.bt-diff-easy   { background:rgba(56,161,105,.15); color:#68d391; }
.bt-diff-medium { background:rgba(200,150,42,.15); color:#f0b93a; }
.bt-diff-hard   { background:rgba(229,62,62,.15);  color:#fc8181; }
.bt-neg-info { margin:0 18px 16px; background:rgba(229,62,62,.06); border:1px solid rgba(229,62,62,.2); border-radius:10px; padding:12px 16px; }
.bt-neg-row { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--muted); padding:4px 0; }
.bt-neg-total { border-top:1px solid rgba(229,62,62,.2); margin-top:6px; padding-top:8px; font-weight:700; color:var(--text); }
.bt-my-result-card { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:14px 16px; margin:0 14px 10px; }
.bt-mrc-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.bt-mrc-name { font-family:'Syne',sans-serif; font-size:13px; font-weight:700; }
.bt-mrc-pct  { font-family:'Syne',sans-serif; font-size:18px; font-weight:800; }
.bt-mrc-stats { display:flex; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.bt-qg-btn.vis { background:rgba(49,130,206,.2); color:#90cdf4; }
.bt-spinner { width:40px; height:40px; border:4px solid var(--card2); border-top-color:var(--gold2); border-radius:50%; animation:bt-spin .75s linear infinite; }
.bt-home-scroll { padding-bottom: 74px; }

/* ── Daily Subject Grid ── */
.bt-daily-subject-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 14px 30px;
}
.bt-daily-subj-card {
  background: var(--sc, rgba(200,150,42,0.10));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px 14px 14px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bt-daily-subj-card:active { transform: scale(.97); }
.bt-dsc-icon  { font-size: 26px; margin-bottom: 4px; }
.bt-dsc-name  { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.2; }
.bt-dsc-meta  { font-size: 11px; color: var(--muted); }
.bt-dsc-arrow { font-size: 11px; color: var(--gold2); font-weight: 700; margin-top: 6px; }

/* ── Filter tabs scrollable ── */
.bt-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  scrollbar-width: none;
}
.bt-filter-tabs::-webkit-scrollbar { display: none; }
.bt-ftab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.bt-ftab.bt-active {
  background: var(--gold2);
  color: #0a1628;
  border-color: var(--gold2);
}

/* ══════════════════════════════════
   QUIZ SETS — Level 2 list
══════════════════════════════════ */
.bt-set-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 14px 10px;
  cursor: pointer;
  transition: background .15s;
}
.bt-set-item:active { background: var(--card2); }
.bt-set-latest {
  border-color: var(--gold2);
  background: rgba(200,150,42,0.07);
}
.bt-si-left { flex-shrink: 0; }
.bt-si-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.bt-si-info { flex: 1; min-width: 0; }
.bt-si-name {
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--white); margin-bottom: 3px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.bt-latest-badge {
  font-size: 10px; font-weight: 700;
  background: rgba(200,150,42,0.2); color: var(--gold2);
  border-radius: 6px; padding: 2px 6px;
}
.bt-si-date { font-size: 11px; color: var(--gold2); margin-bottom: 2px; }
.bt-si-meta { font-size: 11px; color: var(--muted); }

/* ── Daily Subject Grid badge ── */
.bt-dsc-badge {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  color: var(--gold2);
  background: rgba(200,150,42,0.12);
  border-radius: 6px; padding: 2px 6px;
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   UNIFIED SUBJECT / EXAM GRID  (L1 cards)
═══════════════════════════════════════ */
.bt-subj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
}
.bt-subj-card {
  background: var(--sc, rgba(200,150,42,0.10));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px 14px 12px;
  cursor: pointer;
  transition: transform .12s, border-color .12s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bt-subj-card:active { transform: scale(0.97); }
.bt-sc-icon { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.bt-sc-name { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: var(--white); }
.bt-sc-sub  { font-size: 10px; color: var(--muted); }
.bt-sc-arrow { font-size: 11px; color: var(--gold2); margin-top: 6px; font-weight: 600; }

.bt-dsc-badge {
  display: inline-block;
  font-size: 10px; font-weight: 600; color: var(--gold2);
  background: rgba(200,150,42,0.15); border-radius: 6px; padding: 2px 6px; margin-top: 2px;
}
.bt-dsc-badge--empty { color: var(--muted); background: rgba(255,255,255,0.05); }

/* ═══════════════════════════════════════
   SET LIST  (L2 rows)
═══════════════════════════════════════ */
.bt-set-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 14px 10px;
  cursor: pointer;
  transition: background .15s;
}
.bt-set-item:active { background: var(--card2); }
.bt-set-latest { border-color: var(--gold2); background: rgba(200,150,42,0.06); }

.bt-si-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.bt-si-info { flex: 1; min-width: 0; }
.bt-si-name {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--white); display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.bt-latest-badge {
  font-size: 10px; font-weight: 700; background: rgba(200,150,42,0.2);
  color: var(--gold2); border-radius: 6px; padding: 2px 6px;
}
.bt-si-date { font-size: 11px; color: var(--gold2); margin: 2px 0; }
.bt-si-meta { font-size: 11px; color: var(--muted); }

.bt-loading-inner {
  display: flex; align-items: center; justify-content: center; padding: 60px 20px;
}
.bt-spinner {
  width: 32px; height: 32px; border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--gold2); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
