/* পড়ারHuB অ্যাডমিন প্যানেল — Glass থিম (2026-11-26 redesign, Gemini design)।
   ব্র্যান্ড: Deep Navy #101B3D / Electric Blue #176BFF / Cyan #00CFFF।
   ডার্ক ডিফল্ট (প্রোটোটাইপের glass mode), লাইট টগলও আছে। */
:root {
  color-scheme: light;
  --blue: #176bff;
  --blue-dark: #0f4fd0;
  --cyan: #00cfff;
  --navy: #101b3d;
  --orange: #f97316;
  --red: #dc2626;
  --radius: 16px;
  --bg: linear-gradient(135deg, #dbeafe 0%, #eef2ff 45%, #ecfeff 100%);
  --bg-flat: #e8eefc;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-side: rgba(16, 27, 61, 0.92);
  --ink: #0f172a;
  --ink-side: #e2e8f0;
  --muted: #5b6b84;
  --muted-side: #93a5c8;
  --line: rgba(16, 27, 61, 0.12);
  --line-side: rgba(255, 255, 255, 0.14);
  --field: rgba(255, 255, 255, 0.85);
  --shadow: 0 8px 30px rgba(16, 27, 61, 0.12);
  --teal: #0f766e;
  --teal-dark: #115e59;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: linear-gradient(135deg, #05070f 0%, #0a1128 55%, #071826 100%);
  --bg-flat: #070b16;
  --glass: rgba(17, 25, 48, 0.66);
  --glass-strong: rgba(20, 30, 58, 0.85);
  --glass-side: rgba(10, 16, 36, 0.82);
  --ink: #f1f5f9;
  --muted: #93a5c8;
  --line: rgba(148, 178, 255, 0.16);
  --field: rgba(9, 13, 28, 0.85);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --teal: #14b8a6;
  --teal-dark: #2dd4bf;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  background-attachment: fixed;
  background-color: var(--bg-flat);
  color: var(--ink);
  min-height: 100vh;
}

h1, h2, h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.9em; word-break: break-all; }
.error-text { color: var(--red); min-height: 1.2em; }

.glass, .card, .stat-card, .login-card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- ব্র্যান্ড ---------- */
.brand-logo { height: 72px; width: auto; display: block; margin: 0 auto 6px; }
.brand-logo-side { height: 58px; margin: 0 0 4px; align-self: flex-start; }
.side-sub { color: var(--muted); margin: 2px 0 18px; font-size: 0.85rem; }
.sidebar .side-sub { color: var(--muted-side); }

/* ---------- বাটন ---------- */
.btn {
  font: inherit;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  background: var(--glass-strong);
  color: var(--ink);
  transition: background 0.15s ease, transform 0.05s ease, border-color 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--blue), #0ea5e9); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--blue-dark), #0284c7); }
.btn-secondary { border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-danger { border-color: #fecaca; color: var(--red); }
.btn-danger:hover { background: rgba(220, 38, 38, 0.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-block { width: 100%; padding: 12px; font-weight: 600; }
.btn-filter { border-color: var(--line); }
.btn-filter.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-mini {
  padding: 2px 10px; font-size: 0.78rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--field); color: var(--ink); cursor: pointer;
}
.btn-mini:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- লগইন ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card {
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 22px;
}
.login-card h1 { font-size: 1.35rem; text-align: center; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.login-card input, .field-label input, .field-label select, .field-label textarea,
#johnnyPrompt, .reply-box textarea, .search-box, #globalSearch {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--ink);
  width: 100%;
}
.login-card input:focus, .field-label input:focus, .field-label select:focus,
.field-label textarea:focus, #johnnyPrompt:focus, .reply-box textarea:focus,
.search-box:focus, #globalSearch:focus { outline: 2px solid var(--blue); }
.field-label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; margin-bottom: 12px; }

.warn-box {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: #c2410c;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  line-height: 1.55;
}
[data-theme="dark"] .warn-box { color: #fdba74; }

/* ---------- লেআউট ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 282px;
  flex-shrink: 0;
  overflow-x: hidden;
  background: var(--glass-side);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-right: 1px solid var(--line-side);
  color: var(--ink-side);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-btn {
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
  color: var(--ink-side);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.08); }
.nav-btn.active { background: linear-gradient(135deg, var(--blue), #0284c7); color: #fff; }
.nav-badge {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
}
.health-widget {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-side);
  border-radius: 14px;
  padding: 12px 14px;
}
.health-widget h4 { margin: 0 0 8px; font-size: 0.9rem; color: #fff; }
.health-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line-side); font-size: 0.8rem; }
.health-row:last-of-type { border-bottom: none; }
.health-row strong { color: var(--cyan); text-align: right; white-space: nowrap; font-size: 0.78rem; }
.health-widget .muted { color: var(--muted-side); }
.side-foot { margin-top: auto; padding-top: 14px; }
.side-foot .muted { color: var(--muted-side); }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}
.topbar-search { flex: 1; max-width: 460px; }
.pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-xp { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.pill-status { background: var(--glass-strong); border: 1px solid var(--line); color: var(--muted); }
.pill-status.online { color: #059669; border-color: rgba(5, 150, 105, 0.4); }
.pill-status.offline { color: var(--red); border-color: rgba(220, 38, 38, 0.4); }

.content { flex: 1; padding: 26px; min-width: 0; }
.section { display: none; max-width: 1080px; }
.section.active { display: block; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sub-head { margin-top: 26px; }

/* ---------- স্ট্যাট কার্ড ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.stat-card { padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-ic {
  width: 40px; height: 40px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 6px;
  background: rgba(23, 107, 255, 0.12);
}
.ic-blue { background: rgba(23, 107, 255, 0.15); }
.ic-teal { background: rgba(20, 184, 166, 0.15); }
.ic-orange { background: rgba(249, 115, 22, 0.15); }
.ic-green { background: rgba(34, 197, 94, 0.15); }
.ic-amber { background: rgba(245, 158, 11, 0.15); }
.ic-violet { background: rgba(139, 92, 246, 0.15); }
.ic-cyan { background: rgba(0, 207, 255, 0.15); }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.15; }
.stat-num.small-num { font-size: 1.15rem; padding-top: 8px; }
.stat-label { color: var(--muted); font-size: 0.9rem; }
.stat-card.hero { background: rgba(23, 107, 255, 0.13); border: 1px solid rgba(23, 107, 255, 0.45); }
.stat-card.hero .stat-ic { background: rgba(23, 107, 255, 0.28); }

/* ---------- কার্ড / চিপ ---------- */
.card { padding: 18px; }
.card-list { display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.chip {
  font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(100, 116, 139, 0.15); color: var(--muted); white-space: nowrap;
}
.chip-premium, .chip-ok { background: rgba(20, 184, 166, 0.18); color: #0d9488; }
[data-theme="dark"] .chip-premium, [data-theme="dark"] .chip-ok { color: #5eead4; }
.chip-free { background: rgba(100, 116, 139, 0.15); color: var(--muted); }
.chip-pending { background: rgba(249, 115, 22, 0.18); color: #c2410c; }
[data-theme="dark"] .chip-pending { color: #fdba74; }
.chip-bad { background: rgba(220, 38, 38, 0.15); color: var(--red); }
.chip-info { background: rgba(23, 107, 255, 0.15); color: var(--blue); }
.chip-gold { background: linear-gradient(135deg, #f59e0b, #f5b700); color: #451a03; }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 18px; margin: 0 0 12px; }
.profile-grid dt { color: var(--muted); font-size: 0.85rem; }
.profile-grid dd { margin: 2px 0 0; font-weight: 500; }
.body-text { line-height: 1.65; white-space: pre-wrap; }

.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.action-label { font-weight: 600; }
.action-row input[type="number"] {
  font: inherit; width: 110px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--field); color: var(--ink);
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ---------- ড্যাশবোর্ড ---------- */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.dash-card { padding: 18px; margin-top: 14px; }
.dash-grid .dash-card { margin-top: 0; }
.dash-card h3 { margin-bottom: 12px; font-size: 1.05rem; }
.method-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.method-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #fff; background: #94a3b8; }
.method-badge.bkash { background: #e2136e; }
.method-badge.nagad { background: #f6921e; }
.method-badge.other { background: #94a3b8; }
.bar { height: 8px; border-radius: 999px; background: rgba(100, 116, 139, 0.2); overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--blue); transition: width 0.6s ease; }
#barBkash { background: #e2136e; }
#barNagad { background: #f6921e; }
#revTxCount { margin-top: 12px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: none; }
.recent-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.recent-row:last-child { border-bottom: none; }
.recent-main { display: flex; flex-direction: column; flex: 1; min-width: 160px; }

/* চার্ট + ডোনাট */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 8px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 70%; max-width: 44px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--cyan), var(--blue)); min-height: 4px; transition: height 0.5s ease; }
.chart-val { font-size: 0.78rem; font-weight: 700; }
.chart-lab { font-size: 0.78rem; color: var(--muted); }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut { width: 140px; height: 140px; border-radius: 50%; flex-shrink: 0; position: relative; }
.donut::after {
  content: ""; position: absolute; inset: 22px; border-radius: 50%;
  background: var(--glass-strong);
}
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }

/* ---------- প্রাইসিং ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 10px; }
.price-plan { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--glass-strong); }
.price-plan.featured { border-color: rgba(23, 107, 255, 0.45); }
.price-plan h4 { margin: 0 0 8px; }
.price-amount { font-size: 1.7rem; font-weight: 700; margin: 4px 0; }
.price-label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; margin: 8px 0; }
.price-label input { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); width: 130px; }

/* ---------- লিগ ---------- */
.league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 14px; }
.league-card { padding: 16px; text-align: left; }
.league-card h4 { margin: 0 0 6px; font-size: 1.02rem; }
.league-emoji { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.league-card .mini-row { font-size: 0.88rem; }

/* ---------- ব্যাজ ---------- */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.badge-card { padding: 16px; }
.badge-card h4 { margin: 0 0 4px; }
.badge-levels { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 0.85rem; }
.badge-levels .mini-row { padding: 5px 0; }
.rarity-common { color: #b45309; }
.rarity-rare { color: #0284c7; }
.rarity-epic { color: #9333ea; }
.rarity-legendary { color: #d97706; font-weight: 700; }

/* ---------- শিক্ষার্থী ---------- */
.search-box { margin-bottom: 16px; }
.users-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.user-list { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; }
.user-row {
  font: inherit; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; background: var(--glass); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.user-row:hover { border-color: var(--blue); }
.user-row.selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(23, 107, 255, 0.35); }
.user-main { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-weight: 600; color: var(--ink); }
.user-sub { color: var(--muted); font-size: 0.85rem; }
.user-uid { color: var(--muted); font-size: 0.72rem; }
.profile-card { position: sticky; top: 86px; }

/* ---------- টিকিট থ্রেড ---------- */
.thread { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.reply { border-radius: 10px; padding: 10px 12px; }
.reply p { margin: 2px 0 0; white-space: pre-wrap; line-height: 1.6; }
.reply-meta { font-size: 0.8rem; color: var(--muted); }
.reply-admin { background: rgba(20, 184, 166, 0.1); border: 1px solid rgba(20, 184, 166, 0.35); }
.reply-student { background: rgba(100, 116, 139, 0.08); border: 1px solid var(--line); }
.reply-box textarea { resize: vertical; margin-top: 12px; }
#johnnyPrompt { resize: vertical; }

/* কমিউনিটি মডারেশন */
.mod-post { background: rgba(100, 116, 139, 0.08); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.mod-post-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.mod-photo { max-width: 100%; max-height: 260px; border-radius: 12px; display: block; margin-top: 8px; }

/* ---------- পুশ প্রিভিউ + ফ্ল্যাগ ---------- */
.phone-preview {
  max-width: 320px; margin: 6px auto 4px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border-radius: 28px; padding: 26px 14px 20px; position: relative;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 90px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); }
.phone-notif { display: flex; gap: 10px; background: rgba(255, 255, 255, 0.92); border-radius: 16px; padding: 12px; color: #0f172a; }
.phone-notif-icon { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #fff; }
.phone-notif-text strong { font-size: 0.92rem; display: block; }
.phone-notif-text p { margin: 2px 0; font-size: 0.85rem; line-height: 1.45; }
.flag-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.flag-row p { margin: 2px 0 0; }
.switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(100, 116, 139, 0.35); cursor: pointer; transition: background 0.2s; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::before { transform: translateX(22px); }
.switch input:disabled + span { opacity: 0.5; cursor: wait; }

/* ---------- ফিল্টার সারির select/search ---------- */
.filter-row select, #paletteInput, #finMonth {
  font: inherit; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--field); color: var(--ink);
}
#finMonth { min-width: 190px; margin-left: 8px; }
.filter-row .search-box { flex: 1; min-width: 180px; }
.filter-row select:focus, #paletteInput:focus { outline: 2px solid var(--blue); }
input[type="range"] { width: 100%; accent-color: var(--blue); cursor: pointer; }

/* ---------- মডাল ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5, 8, 18, 0.55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 28px 14px;
}
.modal-card {
  width: 100%; max-width: 620px; padding: 20px; border-radius: 18px;
  max-height: calc(100vh - 56px); overflow-y: auto;
}
.modal-card .field-label input, .modal-card .field-label select, .modal-card .field-label textarea { width: 100%; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-head h3 { margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.symbol-row { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 12px; cursor: pointer; }
.picker-results { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }

/* ---------- মাসিক শিট প্রিভিউ ---------- */
.sheet-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 16px; }
.sheet-box {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: var(--glass-strong); display: flex; flex-direction: column; gap: 2px;
}
.sheet-box span { color: var(--muted); font-size: 0.85rem; }
.sheet-box strong { font-size: 1.25rem; color: var(--blue); }
[data-theme="dark"] .sheet-box strong { color: var(--cyan); }
.total-row { font-weight: 700; border-top: 2px solid var(--line); margin-top: 4px; }

/* ---------- ইন্সপেক্টর ড্রয়ার ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 65; background: rgba(5, 8, 18, 0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 70;
  width: min(430px, 94vw); height: 100vh; overflow-y: auto;
  border-radius: 18px 0 0 18px; padding: 18px;
  transform: translateX(105%); transition: transform 0.25s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer-head h3 { margin: 0; }
.user-list-wide { max-height: none; overflow: visible; }

/* ---------- বেল অ্যালার্ট ---------- */
.bell-wrap { position: relative; }
.bell-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 75;
  width: min(360px, 90vw); max-height: 420px; overflow-y: auto;
  border-radius: 14px; padding: 10px;
}
.bell-dropdown h4 { margin: 4px 6px 8px; font-size: 0.95rem; }
.bell-item {
  font: inherit; display: flex; flex-direction: column; gap: 2px; width: 100%;
  text-align: left; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 9px 6px; cursor: pointer; color: var(--ink);
}
.bell-item:hover { background: rgba(23, 107, 255, 0.08); }
.nav-badge-flag { background: #f59e0b; }

/* ---------- Ctrl-K প্যালেট ---------- */
.palette-backdrop {
  position: fixed; inset: 0; z-index: 85; background: rgba(5, 8, 18, 0.55);
  display: flex; align-items: flex-start; justify-content: center; padding: 10vh 14px 14px;
}
.palette-card { width: 100%; max-width: 520px; border-radius: 16px; padding: 12px; }
.palette-card input { width: 100%; }
.palette-list { display: flex; flex-direction: column; margin-top: 8px; max-height: 50vh; overflow-y: auto; }
.palette-item {
  font: inherit; display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 11px 8px; cursor: pointer; color: var(--ink);
}
.palette-item:hover { background: rgba(23, 107, 255, 0.1); }
.palette-item .muted { margin-left: auto; }

/* ---------- লিগ কাউন্টডাউন / ড্রাই-রান / ব্যাজ ---------- */
.countdown { font-size: 1.3rem; font-weight: 700; color: var(--blue); margin: 10px 0 2px; }
[data-theme="dark"] .countdown { color: var(--cyan); }
.dryrun-group { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.dryrun-names { text-align: right; font-size: 0.88rem; }
.badge-disabled { opacity: 0.55; }
.badge-actions { display: inline-flex; align-items: center; gap: 10px; }
.flag-card { padding: 16px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a; color: #fff; padding: 11px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }

/* ---------- মোবাইল ---------- */
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .users-layout { grid-template-columns: 1fr; }
  .user-list { max-height: 40vh; }
  .profile-card { position: static; }
}
@media (max-width: 820px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; padding: 14px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-btn { padding: 9px 12px; }
  .health-widget { display: none; }
  .topbar { flex-wrap: wrap; }
  .content { padding: 16px; }
}
