@import url('https://banglawebfonts.pages.dev/css/ekushey-lal-sabuj.css');
/* ── DESIGN TOKENS ──
   Green (trust/growth, matches the reference brand's color grading) +
   teal (secondary) + amber (achievement/highlight). Same structure in
   both themes (primary stays green in both) so light/dark feel like the
   same brand, just re-tuned per mode for contrast. */
:root {
  --bg:          #0a1120;
  --bg2:         #0f1a2e;
  --surface:     #121e33;
  --surface2:    #182742;
  --border:      rgba(255,255,255,0.09);
  --border-hi:   rgba(34,197,94,0.45);
  --primary:     #16a34a;
  --primary-hi:  #4ade80;
  --accent:      #14b8a6;
  --accent2:     #f59e0b;
  --text:        #e7ecf5;
  --text-muted:  #93a1b8;
  --yes:         #22c55e;
  --no:          #ef4444;
  --tab-radius:  14px;
  --glass:       none; /* backdrop-filter blur is expensive to paint on every
                           scroll/repaint — solid surface colors above give
                           the same layered look for a fraction of the cost */
  --shadow:      0 8px 28px rgba(0,0,0,0.4);
}
[data-theme="light"] {
  --bg:          #f3f9f4;
  --bg2:         #e7f3e9;
  --surface:     #ffffff;
  --surface2:    #f0f8f1;
  --border:      rgba(21,128,61,0.14);
  --border-hi:   rgba(21,128,61,0.5);
  --primary:     #15803d;
  --primary-hi:  #166534;
  --accent:      #0f766e;
  --accent2:     #d97706;
  --text:        #101827;
  --text-muted:  #55637a;
  --yes:         #16a34a;
  --no:          #dc2626;
  --shadow:      0 10px 26px rgba(21,128,61,0.12);
}
[data-theme="light"] header,
[data-theme="light"] .profile-card {
  background: #ffffffcc;
}
[data-theme="light"] thead tr { background: #eef3fc; }
[data-theme="light"] .tab-btn.active { box-shadow: 0 4px 14px rgba(21,128,61,.25); }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
body {
  font-family: 'SolaimanLipi', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  /* No background/color transition here on purpose — the theme is already
     set correctly before first paint (see the inline script in <head>), so
     animating it on every fresh page load just re-introduced a visible
     fade that looked exactly like a flash. Transition is only turned on
     for the brief moment a person actually clicks the theme toggle — see
     .theme-anim below, applied by assets/common.js. */
  /* Sticky footer: #app grows to fill leftover space so the footer always
     sits at the bottom of the viewport, even on short pages (login,
     register, about, contact) — previously it rode up right under the
     content with a blank gap below it on anything but the longest pages. */
  display: flex;
  flex-direction: column;
}
#site-header { flex: 0 0 auto; }
#app { flex: 1 0 auto; }
#site-footer { flex: 0 0 auto; }

.theme-anim, .theme-anim body, .theme-anim * {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease !important;
}

/* ── BACKGROUND ──
   Minimalist + lightweight: two soft blurred shapes instead of three, a
   smaller blur radius, and no animated repeating grid overlay. The old
   version (3 orbs at 80px blur + a scrolling 1px grid painted on every
   frame + heavy backdrop-filter blur across header/dropdowns/toasts) was
   the main cause of the janky/laggy feel on first load, especially on
   phones — this keeps the same "glow" aesthetic for a fraction of the
   paint cost.
   UPDATE: removed entirely — a flat background reads as calmer/more
   minimalist for an education site, and the markup for .bg-canvas/.orb-*
   is still present in each page's HTML, so this single rule is all that's
   needed to turn it off (no HTML edits required). */
.bg-canvas { display: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

#app { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 0 14px 60px; }
#app.wide { max-width: 1100px; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 58px; gap: 10px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  animation: slideDown .6s cubic-bezier(.22,1,.36,1) both;
}
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } }
.brand-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-family: 'Ekushey Lal Sabuj', sans-serif; font-size: 1.02rem; font-weight: 800; flex-shrink: 1; min-width: 0; }
.brand-link img { height: 30px; border-radius: 8px; flex-shrink: 0; }
.brand-link span { background: linear-gradient(135deg, var(--primary-hi), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { display: flex; align-items: center; gap: 2px; font-size: .72rem; font-weight: 600; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: var(--text-muted); text-decoration: none; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface2); }

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-icon {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); cursor: pointer; text-decoration: none;
  display: grid; place-items: center; font-size: .9rem; position: relative;
  transition: border-color .2s, background .2s, transform .15s;
  flex-shrink: 0;
}
.btn-icon:hover { border-color: var(--primary-hi); transform: scale(1.07); }
.btn-icon .badge-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent2); border: 2px solid var(--bg); }
.avatar-icon { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border-hi); cursor: pointer; flex-shrink: 0; }

.header-menu-wrap { position: relative; }
.header-dropdown {
  position: absolute; right: 0; top: 46px; min-width: 190px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px; display: none; flex-direction: column; gap: 2px;
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  box-shadow: var(--shadow); z-index: 200;
}
.header-dropdown.open { display: flex; }
.header-dropdown a, .header-dropdown button {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: .82rem; font-weight: 600;
  background: none; border: none; cursor: pointer; width: 100%; text-align: left; font-family: inherit;
}
.header-dropdown a:hover, .header-dropdown button:hover { background: var(--surface); color: var(--primary-hi); }
.header-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

.hamburger { display: none; }

/* Below 640px the full nav links are hidden behind a hamburger, so only
   the brand + a couple of icon buttons share the header width. Shrinking
   progressively (rather than the old all-or-nothing display:none) keeps
   the site name legible while guaranteeing the header itself never grows
   wider than the screen. */
@media (max-width: 640px) {
  .main-nav { display: none; }
  .hamburger { display: grid; }
  header { padding: 0 10px; gap: 6px; }
  .brand-link { gap: 6px; font-size: .88rem; }
  .brand-link img { height: 26px; }
  .header-right { gap: 6px; }
  .btn-icon, .avatar-icon { width: 33px; height: 33px; font-size: .82rem; }
}
@media (max-width: 420px) {
  header { padding: 0 8px; gap: 4px; }
  .brand-link { gap: 5px; font-size: .74rem; max-width: 40vw; }
  .brand-link img { height: 22px; }
  .btn-icon, .avatar-icon { width: 31px; height: 31px; font-size: .78rem; }
}
@media (max-width: 340px) {
  .brand-link { font-size: .64rem; max-width: 34vw; }
  .brand-link img { height: 20px; }
}

/* mobile slide nav */
.mobile-nav {
  position: fixed; inset: 58px 0 0 0; z-index: 90; background: var(--bg2);
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  display: none; flex-direction: column; padding: 18px; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text); text-decoration: none; padding: 13px 12px; border-radius: 10px; font-size: .95rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { background: var(--surface2); }

/* ── FOOTER ── */
footer { position: relative; z-index: 1; text-align: center; padding: 24px 16px; font-size: .82rem; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 40px; }
footer a { color: var(--primary-hi); font-weight: 700; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .foot-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ── SECTION / PAGE HEADINGS ── */
.page-title { font-family: 'Ekushey Lal Sabuj', sans-serif; font-weight: 800; font-size: 1.5rem; margin: 30px 0 6px; animation: fadeUp .6s both; }
.page-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; animation: fadeUp .6s .05s both; }
.section-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }

/* ── CARD ── */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  animation: fadeUp .6s both;
   text-align: justify; 
}

/* ── ALERT ── */
.alert { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 14px; padding: 12px 16px; border-radius: 12px; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.22); font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.alert i { color: var(--accent2); margin-top: 2px; flex-shrink: 0; }
.alert.info { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.22); }
.alert.info i { color: var(--accent); }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); font-family: inherit; font-size: .9rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary-hi); box-shadow: 0 0 0 3px rgba(21,128,61,.18); }
input[type="checkbox"] { width: auto; accent-color: var(--primary); }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: .85rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-size: .88rem; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none; font-family: inherit;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #14532d); color: #fff; }
.btn-accent  { background: linear-gradient(135deg, var(--accent), #029973); color: #fff; }
.btn-danger  { background: linear-gradient(135deg, var(--no), #b0185f); color: #fff; }
.btn-outline { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-google  { background: #fff; color: #333; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: .76rem; border-radius: 8px; }

.divider-or { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: .8rem; margin: 18px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-wrap { max-width: 420px; margin: 40px auto; }
.auth-switch { text-align: center; margin-top: 16px; font-size: .85rem; color: var(--text-muted); }
.auth-switch a { color: var(--primary-hi); font-weight: 700; text-decoration: none; }

.field-error { color: var(--no); font-size: .78rem; margin-top: 5px; display: none; }
.form-msg { padding: 10px 14px; border-radius: 10px; font-size: .83rem; margin-bottom: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.form-msg.success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: var(--accent); }

/* ── TOAST ── */
#toast-stack { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; width: 92%; max-width: 380px; }
.toast {
  background: var(--surface2); border: 1px solid var(--border-hi); border-radius: 12px;
  padding: 12px 16px; font-size: .84rem; color: var(--text); display: flex; align-items: center; gap: 10px;
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); box-shadow: var(--shadow);
  animation: toastIn .35s cubic-bezier(.22,1,.36,1) both; width: 100%;
}
.toast i { color: var(--primary-hi); }
.toast.leaving { animation: toastOut .3s ease-in both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }

/* ── SPINNER ── */
/* Ticking-clock loader — replaces the plain spinning ring with a small
   clock face whose hands actually sweep round in discrete ticks, matching
   the site's "countdown" theme instead of a generic loading circle. Same
   .spinner class/usage everywhere (buttons + loading blocks), so no other
   markup had to change. */
.spinner {
  --sp: 18px;
  width: var(--sp); height: var(--sp);
  border-radius: 50%;
  border: 2px solid rgba(128,128,128,.4);
  position: relative;
  display: inline-block;
  vertical-align: -3px;
}
.spinner::before, .spinner::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: currentColor; border-radius: 2px;
  transform-origin: 50% 100%;
}
.spinner::before { width: 15%; height: 28%; margin: -28% 0 0 -7.5%; animation: tickHour 4.8s steps(12) infinite; }
.spinner::after  { width: 10%; height: 38%; margin: -38% 0 0 -5%; background: var(--accent, #10b981); animation: tickMin 1.6s steps(8) infinite; }
@keyframes tickHour { to { transform: rotate(360deg); } }
@keyframes tickMin  { to { transform: rotate(360deg); } }
.field-hint { font-size: .74rem; margin-top: 5px; min-height: 1em; font-weight: 600; }
.field-hint.checking { color: var(--text-muted); }
.field-hint.ok { color: var(--yes); }
.field-hint.taken { color: var(--no); }

.hero-illustration { text-align: center; padding: 22px 0 10px; }
.hero-title { font-family: 'Ekushey Lal Sabuj', sans-serif; font-size: 1.2rem; font-weight: 800; line-height: 1.5; color: var(--text); max-width: 480px; margin: 0 auto 18px; }
.hero-banner { width: 100%; max-width: 380px; height: auto; border-radius: 20px; }
@media (max-width: 480px) { .hero-title { font-size: 1.05rem; } .hero-banner { max-width: 300px; } }

.steps-section { text-align: center; margin: 30px 0 10px; }
.steps-heading { font-family: 'Ekushey Lal Sabuj', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.steps-sub { font-size: .82rem; color: var(--text-muted); max-width: 420px; margin: 0 auto 26px; line-height: 1.6; }
/* Always one line — on narrow screens the items shrink to fit rather than
   stacking into a column, so the "3 steps in a row" layout never breaks. */
.steps-row { display: flex; align-items: flex-start; justify-content: center; gap: 4px; }
.step-item { flex: 1; min-width: 0; max-width: 150px; display: flex; flex-direction: column; align-items: center; opacity: 0; animation: fadeUp .55s both; }
.step-icon {
  position: relative; width: 66px; height: 66px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  display: grid; place-items: center; margin-bottom: 12px;
}
/* Soft "radar ping" ring behind each icon — a small ambient animation so
   the infographic doesn't feel static, without being distracting. */
.step-icon::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--primary); opacity: 0;
  animation: stepPing 2.8s ease-out infinite;
}
.step-item:nth-child(3) .step-icon::before { animation-delay: .5s; }
.step-item:nth-child(5) .step-icon::before { animation-delay: 1s; }
@keyframes stepPing { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.35); opacity: 0; } }
.step-icon i { position: relative; font-size: 1.3rem; color: var(--primary); }
.step-num {
  position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent2); color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg); z-index: 1;
}
.step-item h3 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 5px; white-space: nowrap; }
.step-item p { font-size: .74rem; color: var(--text-muted); line-height: 1.5; }
/* Dashed connector with a subtle flowing motion, like progress moving
   from one step to the next. */
.step-connector {
  flex: 1 1 20px; max-width: 40px; height: 1px; margin-top: 33px; align-self: flex-start;
  background-image: linear-gradient(90deg, var(--border-hi) 60%, transparent 40%);
  background-size: 10px 1px; background-repeat: repeat-x;
  animation: dashFlow 1s linear infinite;
}
@keyframes dashFlow { to { background-position: -10px 0; } }
@media (max-width: 560px) {
  .step-item { max-width: 92px; }
  .step-icon { width: 50px; height: 50px; }
  .step-icon i { font-size: 1rem; }
  .step-item h3 { font-size: .72rem; white-space: normal; }
  .step-item p { display: none; } /* description reads fine on wider screens; keep the row compact on phones */
  .step-connector { max-width: 18px; margin-top: 25px; }
}

.only-calendar-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin: 10px 0 16px; padding: 11px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none;
  box-shadow: 0 6px 20px rgba(21,128,61,.3); transition: transform .15s, box-shadow .15s;
   font-family: 'Ekushey Lal Sabuj'; 
}
.only-calendar-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(21,128,61,.4); }

.section-divider { display: flex; align-items: center; gap: 14px; margin: 34px 0 22px; }
.section-divider span { flex: 1; height: 1px; background: var(--border); }
.section-divider i { color: var(--primary-hi); font-size: .85rem; flex-shrink: 0; }

.faq-section { margin: 18px 0 14px; }
.faq-heading { font-family: 'Ekushey Lal Sabuj', sans-serif; font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--text); }
.faq-heading i { color: var(--primary-hi); }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 16px; margin-bottom: 8px; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.faq-item summary { padding: 12px 0; font-weight: 700; font-size: .88rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .72rem; color: var(--text-muted); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding: 0 0 14px; font-size: .82rem; line-height: 1.7; color: var(--text-muted); }

.loading-block { text-align: center; padding: 40px; color: var(--text-muted); }

/* ── TABLE (shared with calendar + admin) ── */
.table-wrap {
  width: 100%; overflow-x: auto; border-radius: 16px; border: 1px solid var(--border);
  background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  /* Cap the table's height and let it scroll internally with a sticky
     header, so a long list doesn't push the whole page (and everything
     below it) far past one screen — "see all rows" is now a short scroll
     inside the card instead of a long scroll down the whole page. */
  max-height: min(62vh, 560px); overflow-y: auto;
}
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
thead tr { background: var(--bg2); border-bottom: 1px solid var(--border); }
thead { position: sticky; top: 0; z-index: 2; }
th { padding: 8px 10px; text-align: left; font-weight: 700; color: var(--primary-hi); white-space: nowrap; font-size: .74rem; letter-spacing: .03em; }
td { padding: 7px 10px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; word-break: break-word; line-height: 1.35; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--surface2); }
tbody tr:last-child td { border-bottom: none; }

.badge-link { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; font-size: .78rem; font-weight: 600; text-decoration: none; background: linear-gradient(135deg, var(--primary), #14532d); color: #fff; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.badge-link:hover { transform: scale(1.05); box-shadow: 0 3px 12px rgba(21,128,61,.4); }
.badge-link.result { background: linear-gradient(135deg, var(--accent), #029973); }

.countdown { display: inline-flex; align-items: center; gap: 5px; font-size: .70rem; font-weight: 700; white-space: nowrap; border-radius: 7px; padding: 2px 7px; transition: background .3s, color .3s; }
.countdown.expired { color: var(--no); background: rgba(239,68,68,.10); }
.countdown.soon { color: #f59e0b; background: rgba(245,158,11,.10); }
.countdown.ok { color: var(--yes); background: rgba(16,185,129,.10); }
.countdown.critical { color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 0 10px rgba(239,68,68,.5), 0 0 20px rgba(239,68,68,.2); animation: criticalPulse 1.1s ease-in-out infinite; padding: 3px 9px; }
.countdown.critical::before { content: '⚠'; font-size: .75em; opacity: .9; }
@keyframes criticalPulse { 0%,100% { box-shadow: 0 0 8px rgba(239,68,68,.5), 0 0 18px rgba(239,68,68,.2); transform: scale(1); } 50% { box-shadow: 0 0 16px rgba(239,68,68,.8), 0 0 30px rgba(239,68,68,.4); transform: scale(1.04); } }

.icon-yes { color: var(--yes); font-size: 1rem; }
.icon-no { color: var(--no); font-size: 1rem; }

.bookmark-btn { background: none; border: none; cursor: pointer; font-size: 1.05rem; color: var(--text-muted); transition: color .2s, transform .15s; }
.bookmark-btn:hover { transform: scale(1.15); }
.bookmark-btn.active { color: #f59e0b; }

.skeleton-row td { background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 400% 100%; animation: shimmer 1.6s infinite; border-radius: 6px; height: 36px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ── TABS ── */
.tabs-wrapper { margin-top: 26px; }
.tab-nav { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn { flex: 1 0 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 14px; border-radius: var(--tab-radius); font-family: 'SolaimanLipi', sans-serif; font-size: .68rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); transition: all .25s cubic-bezier(.22,1,.36,1); white-space: nowrap; }
.tab-btn:hover { color: var(--text); border-color: var(--border-hi); }
.tab-btn.active { background: linear-gradient(135deg, var(--primary) 0%, #14532d 100%); border-color: transparent; color: #fff; box-shadow: 0 4px 20px rgba(21,128,61,.45); }
.tab-btn i { font-size: .9em; }
.tab-panel { display: none; animation: panelIn .4s cubic-bezier(.22,1,.36,1) both; }
.tab-panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }

/* ── CHIP / BADGE ── */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); }
.chip.on { color: var(--accent); border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.1); }
.chip.off { color: var(--no); border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.1); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state i { font-size: 2.2rem; margin-bottom: 12px; opacity: .5; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 500px) {
  .card { padding: 16px; }
  .table-wrap { max-height: min(58vh, 480px); }
  table { font-size: .72rem; }
  th { padding: 7px 7px; font-size: .68rem; }
  td { padding: 6px 7px; }
  .badge-link { padding: 3px 7px; font-size: .7rem; }
  .countdown { font-size: .64rem; padding: 2px 6px; }
}

/* ── SITE-WIDE NOTIFICATION BANNER ── */
.notif-banner {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 800;
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; box-shadow: 0 10px 32px rgba(0,0,0,.3);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.notif-banner.open { transform: translateY(0); }
.notif-banner-icon { color: var(--primary-hi); font-size: 1.1rem; flex-shrink: 0; }
.notif-banner-text { flex: 1; font-size: .78rem; color: var(--text); line-height: 1.4; }
.notif-banner-btn {
  flex-shrink: 0; padding: 8px 14px; border: none; border-radius: 9px; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-size: .78rem; font-weight: 700; font-family: inherit;
}
.notif-banner-close {
  flex-shrink: 0; width: 26px; height: 26px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--surface2); color: var(--text-muted); display: grid; place-items: center;
}
@media (max-width: 480px) {
  .notif-banner { flex-wrap: wrap; }
  .notif-banner-text { flex-basis: 100%; }
}
