/* =====================================================
   css/style.css — সাইটের সব ডিজাইন এখানে
   রঙ বদলাতে শুধু নিচের :root অংশ বদলান
   ===================================================== */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --accent: #f59e0b;
  --bg: radial-gradient(circle at 50% 0%, #0f172a 0%, #064e3b 45%, #022c22 100%);
  --card: rgba(255, 255, 255, 0.96);
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box; margin: 0; padding: 0;
  font-family: 'Segoe UI', 'Noto Sans Bengali', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
}
input, textarea, select, .selectable {
  -webkit-user-select: text; -moz-user-select: text; user-select: text;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); background-attachment: fixed; color: var(--text);
  padding-bottom: 95px; min-height: 100vh;
}
body.modal-open { overflow: hidden; }
.hidden { display: none !important; }
button, .prog-card, .hub-card-3d, .nav-item, .media-item, .chip, .subj-card { cursor: pointer; touch-action: manipulation; }
img { max-width: 100%; }

/* ---------- হেডার ---------- */
header {
  background: rgba(5, 150, 105, 0.95); backdrop-filter: blur(12px); color: #fff;
  padding: 10px 14px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,.3); gap: 8px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-profile-wrap { cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.header-profile-img {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #34d399; object-fit: cover;
  box-shadow: 0 0 10px rgba(52,211,153,.6); transition: transform .2s;
}
.header-profile-img:hover { transform: scale(1.08); }
.header-profile-hint { font-size: 8px; color: #a7f3d0; margin-top: 1px; font-weight: bold; }
.brand-title { font-size: 15px; font-weight: 800; }
.brand-sub { font-size: 10px; opacity: .9; }
.header-right-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-converter-badge {
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 14px;
  display: flex; align-items: center; gap: 4px; transition: all .2s;
}
.header-converter-badge:hover { background: rgba(255,255,255,.35); transform: scale(1.04); }
.header-visitor-bubble {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 9px; font-weight: 900;
  padding: 4px 8px; border-radius: 20px; box-shadow: 0 0 12px rgba(245,158,11,.7);
  animation: visitorPulse 2s infinite ease-in-out; white-space: nowrap;
}
@keyframes visitorPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 6px rgba(245,158,11,.5); }
  50% { transform: scale(1.06); box-shadow: 0 0 16px rgba(245,158,11,.95); }
}

.news-ticker { background: #dc2626; color: #fff; display: flex; align-items: center; font-size: 12px; font-weight: bold; overflow: hidden; }
.news-badge { background: #991b1b; padding: 6px 12px; white-space: nowrap; z-index: 2; }
.news-content { flex: 1; overflow: hidden; white-space: nowrap; }
.news-scroll { display: inline-block; padding-left: 100%; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translate(0,0); } 100% { transform: translate(-100%,0); } }

.container { max-width: 650px; margin: 0 auto; padding: 14px; }

/* ---------- স্প্ল্যাশ (ভিজিটর অ্যানিমেশন) ---------- */
#splash {
  position: fixed; inset: 0; z-index: 5000; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #065f46 0%, #022c22 55%, #020617 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transition: opacity .7s ease, visibility .7s ease; padding: 20px;
}
#splash.hide { opacity: 0; visibility: hidden; }
.splash-rings { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.splash-rings span {
  position: absolute; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%;
  border: 2px solid rgba(52,211,153,.55); animation: ring 3.6s ease-out infinite;
}
.splash-rings span:nth-child(2) { animation-delay: 1.2s; }
.splash-rings span:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.splash-dots { position: absolute; inset: 0; pointer-events: none; }
.splash-dots i {
  position: absolute; bottom: -20px; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(253,224,71,.85); box-shadow: 0 0 10px rgba(253,224,71,.9);
  animation: floatUp linear infinite;
}
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-110vh) scale(1.2); opacity: 0; } }
.splash-inner { position: relative; z-index: 2; }
.splash-logo { font-size: 54px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.splash-title { font-size: 20px; font-weight: 900; margin-top: 4px; }
.splash-sub { font-size: 13px; color: #a7f3d0; margin-top: 18px; }
.splash-count {
  font-size: clamp(46px, 16vw, 78px); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #34d399, #fde047, #34d399); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 3s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.splash-label { font-size: 15px; font-weight: 800; color: #fde047; margin-top: 2px; }
.splash-live { margin-top: 18px; font-size: 12px; color: #cbd5e1; display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; display: inline-block; animation: blink 1.2s infinite; box-shadow: 0 0 8px #ef4444; }
@keyframes blink { 50% { opacity: .25; } }
.splash-btn {
  margin-top: 22px; background: #fff; color: #065f46; border: none; padding: 10px 26px; border-radius: 30px;
  font-weight: 900; font-size: 13px; box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

/* ---------- হিরো ---------- */
.hero-banner {
  background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(30,41,59,.92)); color: #fff;
  border-radius: 18px; padding: 16px; margin-bottom: 14px; display: flex; align-items: center;
  justify-content: space-between; box-shadow: 0 10px 25px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1);
}
.hero-content { max-width: 62%; }
.hero-tag { background: rgba(16,185,129,.2); color: #34d399; font-size: 10px; padding: 3px 8px; border-radius: 20px; font-weight: bold; display: inline-block; margin-bottom: 4px; }
.hero-title { font-size: 16px; font-weight: 800; line-height: 1.3; }
.hero-desc { font-size: 11px; color: #94a3b8; margin-top: 3px; }
.teacher-care-combo { display: flex; flex-direction: column; align-items: center; cursor: pointer; animation: floatGentle 3s ease-in-out infinite; }
@keyframes floatGentle { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.teacher-care-img { width: 70px; height: 70px; border-radius: 50%; border: 3px solid #10b981; object-fit: cover; box-shadow: 0 0 18px rgba(16,185,129,.7); }
.any-question-pill { background: linear-gradient(135deg, #0284c7, #0369a1); color: #fff; border: 1.5px solid #38bdf8; padding: 4px 12px; border-radius: 20px; font-size: 10px; font-weight: 900; margin-top: -10px; z-index: 2; }
.combo-hint { font-size: 8px; color: #38bdf8; margin-top: 3px; font-weight: bold; }

/* ---------- ভিজিটর কার্ড ---------- */
.visitor-card {
  background: linear-gradient(135deg, #0f172a, #134e4a); color: #fff; border-radius: 16px; padding: 14px 16px;
  margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid rgba(52,211,153,.35); box-shadow: 0 0 22px rgba(16,185,129,.25); position: relative; overflow: hidden;
}
.visitor-card::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent); animation: sweep 4s infinite;
}
@keyframes sweep { 0% { left: -60%; } 60%,100% { left: 130%; } }
.visitor-card .big { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fde047; line-height: 1.1; }
.visitor-card .lbl { font-size: 11px; color: #a7f3d0; font-weight: 700; }

/* ---------- স্লাইডার/কার্ড ---------- */
.prog-slider { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; }
.prog-slider::-webkit-scrollbar { display: none; }
.prog-card { flex: 0 0 100px; background: rgba(255,255,255,.95); border: 1px solid var(--border); border-radius: 16px; padding: 10px 4px; text-align: center; box-shadow: 0 6px 14px rgba(0,0,0,.12); transition: transform .2s; }
.prog-card:hover { transform: translateY(-4px); }
.prog-circle { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; font-size: 18px; }

.special-sec-title { font-size: 14px; margin-bottom: 12px; color: #f8fafc; font-weight: 800; }
.grid-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.hub-card-3d { background: rgba(255,255,255,.94); border-radius: 16px; padding: 14px 12px; border: 1px solid rgba(255,255,255,.5); box-shadow: 0 10px 20px rgba(0,0,0,.15); transition: transform .25s; }
.hub-card-3d:hover { transform: translateY(-4px) scale(1.02); }
.hub-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 8px; }
.hub-card-3d h4 { font-size: 13px; font-weight: 800; }
.hub-card-3d p { font-size: 10px; color: #475569; margin-top: 3px; }

/* ফ্রি পরীক্ষার বড় ব্যানার */
.free-hero {
  background: linear-gradient(120deg, #f59e0b, #ef4444 55%, #8b5cf6); color: #fff; border-radius: 18px;
  padding: 16px; margin-bottom: 14px; cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 12px 28px rgba(239,68,68,.35); transition: transform .25s;
}
.free-hero:hover { transform: scale(1.02); }
.free-hero::before { content: '🎒'; position: absolute; right: 8px; bottom: -10px; font-size: 80px; opacity: .22; }
.free-hero-tag { display: inline-block; background: rgba(255,255,255,.25); border-radius: 20px; padding: 2px 10px; font-size: 10px; font-weight: 900; }
.free-hero h3 { font-size: 16px; margin: 6px 0 3px; }
.free-hero p { font-size: 11px; opacity: .95; }
.class-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.class-pills span { background: rgba(255,255,255,.9); color: #b91c1c; font-size: 10px; font-weight: 900; padding: 3px 9px; border-radius: 14px; }

.live-exam-highlight-card { background: linear-gradient(135deg, #4f46e5, #3730a3); color: #fff; border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: 0 10px 25px rgba(79,70,229,.4); border: 1px solid #818cf8; cursor: pointer; transition: transform .25s; }
.live-exam-highlight-card:hover { transform: scale(1.02); }

.media-slider-box { background: rgba(15,23,42,.92); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 14px; margin-bottom: 14px; color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.4); }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.link-btn { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 4px 10px; font-size: 10px; font-weight: 800; }
.media-slider { display: flex; gap: 12px; overflow-x: auto; padding: 8px 4px; scrollbar-width: none; scroll-behavior: smooth; }
.media-slider::-webkit-scrollbar { display: none; }
.media-item { flex: 0 0 160px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px; text-align: center; border: 1px solid rgba(255,255,255,.1); transition: all .3s cubic-bezier(.34,1.56,.64,1); color: #fff; display: block; text-decoration: none; }
.media-item:hover { transform: translateY(-8px) scale(1.05); background: rgba(255,255,255,.18); border-color: #34d399; }
.media-item .thumb { position: relative; }
.media-item img { width: 100%; height: 90px; border-radius: 8px; object-fit: cover; display: block; }
.media-item .play { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(220,38,38,.92); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 14px rgba(0,0,0,.5); }
.mi-title { font-size: 10px; font-weight: bold; margin-top: 5px; color: #e2e8f0; line-height: 1.35; }
.empty-note { font-size: 11px; color: #94a3b8; padding: 14px 6px; text-align: center; width: 100%; }

.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.video-grid .media-item { flex: none; background: #0f172a; }
.chip-row { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1.5px solid #cbd5e1; background: #fff; color: #334155; border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 800; transition: all .2s; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(5,150,105,.4); }

.copyright-notice-bar { background: rgba(15,23,42,.85); border: 1px dashed rgba(245,158,11,.5); color: #cbd5e1; padding: 10px; border-radius: 10px; font-size: 10px; text-align: center; margin-bottom: 14px; line-height: 1.5; }
.pay-note { background: rgba(255,255,255,.95); border-left: 4px solid #f59e0b; padding: 10px 12px; border-radius: 8px; font-size: 11px; margin-bottom: 14px; }
.site-footer { text-align: center; font-size: 11px; color: #94a3b8; margin: 6px 0 18px; line-height: 1.9; }
.site-footer a, .site-footer button { color: #a7f3d0; background: none; border: none; font-size: 11px; text-decoration: underline; }

.float-actions { position: fixed; right: 16px; bottom: 85px; z-index: 99; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 6px 20px rgba(0,0,0,.3); text-decoration: none; transition: transform .2s; }
.float-btn:hover { transform: scale(1.1); }
.wa-btn { background: #25d366; } .call-btn { background: #0284c7; }

.back-action-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.back-btn-pill { background: #fff; border: 1px solid var(--border); color: #0f172a; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

.card { background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--border); box-shadow: 0 6px 15px rgba(0,0,0,.15); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.badge-green { background: #dcfce7; color: #15803d; } .badge-hot { background: #fee2e2; color: #b91c1c; }
.badge-fee { background: #fef3c7; color: #92400e; } .badge-tech { background: #e0f2fe; color: #0369a1; }

.ch-card { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: #fafafa; overflow: hidden; }
.ch-header { padding: 12px; background: #fff; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; gap: 8px; }
.ch-header h4 { font-size: 13px; font-weight: 700; color: #1e293b; }
.ch-body { padding: 12px; }

.input-box { width: 100%; padding: 10px; border: 1.5px solid #cbd5e1; border-radius: 8px; font-size: 13px; margin-top: 6px; outline: none; background: #fff; color: #0f172a; }
.input-box:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5,150,105,.15); }
.btn { width: 100%; border: none; padding: 11px; border-radius: 10px; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: transform .1s, filter .2s; }
.btn:hover { filter: brightness(1.07); } .btn:active { transform: scale(.98); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-green { background: #059669; color: #fff; } .btn-amber { background: #d97706; color: #fff; }
.btn-dark { background: #0f172a; color: #fff; } .btn-red { background: #ef4444; color: #fff; }
.btn-sm { width: auto; padding: 5px 10px; font-size: 11px; }

.opt-btn { background: #1e293b; color: #fff; border: 1px solid #334155; padding: 11px 14px; border-radius: 8px; font-size: 13px; text-align: left; width: 100%; display: flex; align-items: center; transition: all .2s; }
.opt-btn:not(:disabled):hover { background: #334155; }
.q-card { padding: 12px; margin-bottom: 12px; }
.q-text { font-weight: 700; font-size: 13px; color: #0f172a; }
.q-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.res-hint { font-size: 11px; margin-top: 6px; font-weight: bold; }

.student-inpage-box { background: linear-gradient(135deg, rgba(6,78,59,.95), rgba(2,44,34,.95)); color: #fff; border-radius: 16px; padding: 14px; margin-bottom: 14px; border: 1px solid rgba(255,255,255,.15); }

/* ---------- মডাল ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 14px; }
.modal-box { background: #fff; border-radius: 18px; max-width: 440px; width: 100%; padding: 18px; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 15px 35px rgba(0,0,0,.5); animation: pop .25s ease; }
.modal-box.wide { max-width: 640px; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 14px; background: #f1f5f9; border: none; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; z-index: 5; }
.chat-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; height: 260px; overflow-y: auto; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { padding: 8px 12px; border-radius: 12px; font-size: 12px; max-width: 85%; line-height: 1.5; }
.msg-bot { background: #e0f2fe; color: #0369a1; align-self: flex-start; border-bottom-left-radius: 2px; }
.msg-user { background: #059669; color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }

/* ভিডিও ও পিডিএফ ফুল-স্ক্রিন */
.fs-modal { position: fixed; inset: 0; background: #020617; z-index: 2500; display: flex; flex-direction: column; }
.fs-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #0f172a; color: #fff; gap: 8px; }
.fs-bar b { font-size: 12px; }
.fs-body { position: relative; flex: 1; }
.fs-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.video-wrap { position: relative; width: 100%; padding-top: 56.25%; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ওয়াটারমার্ক (স্ক্রিনশট শেয়ার ঠেকাতে ছাত্রের নাম-নম্বর) */
.watermark { position: absolute; inset: 0; overflow: hidden; pointer-events: none; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; z-index: 3; }
.watermark span { transform: rotate(-24deg); font-size: 13px; font-weight: 800; color: rgba(15,23,42,.10); padding: 22px 12px; white-space: nowrap; }
.fs-body .watermark span { color: rgba(220,38,38,.16); }

/* নোট ভিউয়ার */
.note-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0; scrollbar-width: none; }
.note-tabs::-webkit-scrollbar { display: none; }
.note-body { position: relative; min-height: 120px; }
.qa-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; position: relative; z-index: 1; }
.qa-q { font-size: 13px; font-weight: 800; color: #0f172a; }
.qa-a { font-size: 12px; color: #065f46; background: #ecfdf5; border-left: 3px solid #10b981; padding: 8px 10px; border-radius: 6px; margin-top: 6px; white-space: pre-line; line-height: 1.7; }
.type-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.type-legend span { font-size: 10px; font-weight: 800; background: #f1f5f9; border-radius: 12px; padding: 3px 9px; color: #334155; }

/* ফ্রি পরীক্ষা */
.subj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.subj-card { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 10px 4px; text-align: center; font-size: 12px; font-weight: 800; transition: all .2s; }
.subj-card .ic { font-size: 22px; display: block; margin-bottom: 3px; }
.subj-card.active { background: #ecfdf5; border-color: #10b981; box-shadow: 0 4px 12px rgba(16,185,129,.3); transform: translateY(-2px); }
.free-intro { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 14px; padding: 14px; text-align: center; }
.stat-strip { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: bold; color: #334155; }
.result-card { background: linear-gradient(135deg, #ecfdf5, #fef9c3); border: 2px solid #34d399; border-radius: 16px; padding: 16px; text-align: center; margin-top: 14px; animation: pop .4s ease; }
.result-card .big { font-size: 36px; font-weight: 900; color: #047857; }

/* বিজ্ঞাপন */
.ad-banner { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; background: #fff; margin: 12px 0; text-decoration: none; color: #0f172a; min-height: 50px; }
.ad-banner img { width: 100%; display: block; }
.ad-tag { position: absolute; top: 4px; left: 4px; background: rgba(15,23,42,.75); color: #fff; font-size: 9px; padding: 1px 6px; border-radius: 6px; z-index: 2; }
.ad-text { padding: 22px 14px 14px; font-size: 13px; font-weight: 800; text-align: center; background: linear-gradient(135deg, #fef3c7, #fde68a); }
.ad-count { font-size: 12px; color: #64748b; margin: 10px 0; text-align: center; font-weight: 700; }

/* লাইভ পরীক্ষা ও লিডারবোর্ড */
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.live-stat { background: linear-gradient(135deg, #1e1b4b, #312e81); color: #fff; border-radius: 12px; padding: 10px 6px; text-align: center; border: 1px solid rgba(129,140,248,.5); }
.live-stat b { font-size: 22px; display: block; font-variant-numeric: tabular-nums; color: #fde047; }
.live-stat small { font-size: 10px; color: #c7d2fe; font-weight: 700; }
.live-stat.pulse { animation: statPulse 2.2s infinite; }
@keyframes statPulse { 50% { box-shadow: 0 0 18px rgba(129,140,248,.9); } }
.timer-bar { background: #fef2f2; border: 1.5px solid #fecaca; border-radius: 12px; padding: 10px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.timer-bar span:last-child { font-size: 18px; font-weight: 900; color: #dc2626; font-family: monospace; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 14px 0 12px; min-height: 190px; }
.pod { flex: 1; max-width: 108px; text-align: center; animation: rise .9s cubic-bezier(.2,.9,.3,1.25) both; }
.pod .nm { font-size: 11px; font-weight: 800; margin-bottom: 4px; word-break: break-word; }
.pod .crown { font-size: 22px; animation: bob 2s ease-in-out infinite; }
.pod .bar { border-radius: 10px 10px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 8px; color: #fff; font-weight: 900; }
.pod .bar small { font-size: 10px; opacity: .9; font-weight: 700; }
.pod.p1 { order: 2; animation-delay: .5s; } .pod.p2 { order: 1; animation-delay: .25s; } .pod.p3 { order: 3; animation-delay: 0s; }
.pod.p1 .bar { height: 120px; background: linear-gradient(#fbbf24, #d97706); box-shadow: 0 0 22px rgba(251,191,36,.7); }
.pod.p2 .bar { height: 90px; background: linear-gradient(#cbd5e1, #64748b); }
.pod.p3 .bar { height: 68px; background: linear-gradient(#fdba74, #c2410c); }
@keyframes rise { from { transform: translateY(60px) scale(.8); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.lb-row { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; position: relative; overflow: hidden; animation: slideIn .55s ease both; animation-delay: calc(var(--i) * 90ms); }
.lb-row .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(16,185,129,.18), rgba(16,185,129,.03)); z-index: 0; transition: width 1s ease; }
.lb-row > * { position: relative; z-index: 1; }
.lb-row.me { border-color: #f59e0b; box-shadow: 0 0 12px rgba(245,158,11,.5); }
.lb-rank { width: 26px; font-weight: 900; text-align: center; }
.lb-name { flex: 1; font-size: 12px; font-weight: 800; }
.lb-score { font-weight: 900; color: #047857; font-size: 13px; }
@keyframes slideIn { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- এডমিন ---------- */
.adm-sec { background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 12px; margin-top: 10px; overflow: hidden; }
.adm-sec > summary { padding: 12px; font-size: 13px; font-weight: 800; list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.adm-sec > summary::-webkit-details-marker { display: none; }
.adm-sec > summary::after { content: '▾'; font-size: 14px; transition: transform .2s; }
.adm-sec[open] > summary::after { transform: rotate(180deg); }
.adm-sec .adm-in { padding: 0 12px 12px; }
.adm-sec.admin-only > summary { background: #fff7ed; color: #9a3412; }
.adm-sec.staff > summary { background: #f0fdf4; color: #166534; }
.adm-item { background: #fff; border: 1px solid #cbd5e1; padding: 8px; border-radius: 8px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; }
.adm-hint { font-size: 10px; color: #64748b; margin-top: 4px; line-height: 1.5; }

/* ---------- টোস্ট ও নেভিগেশন ---------- */
#toastBox { position: fixed; top: 70px; left: 0; right: 0; z-index: 6000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { background: #065f46; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 12px; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,.35); max-width: 420px; animation: toastIn .3s ease; }
.toast.err { background: #b91c1c; }
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

.nav-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 6px 0 8px; z-index: 100; }
.nav-item { border: none; background: none; color: #64748b; font-size: 10px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 1px; flex: 1; line-height: 1.2; }
.nav-item .ni { font-size: 18px; }
.nav-item.active { color: var(--primary); font-weight: 900; }
.nav-item.active .ni { transform: scale(1.18); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
