@import url('https://fonts.maateen.me/bensen-handwriting/font.css');
/* ── DESIGN TOKENS ── */
:root {
  --bg:          #07050f;
  --bg2:         #0d0b1e;
  --surface:     rgba(255,255,255,0.04);
  --surface2:    rgba(255,255,255,0.08);
  --border:      rgba(255,255,255,0.10);
  --border-hi:   rgba(139,92,246,0.45);
  --primary:     #7c3aed;
  --primary-hi:  #a78bfa;
  --accent:      #06d6a0;
  --accent2:     #f72585;
  --text:        #e2e0f0;
  --text-muted:  #8882a8;
  --yes:         #06d6a0;
  --no:          #f72585;
  --tab-radius:  14px;
  --glass:       blur(10px) saturate(140%);
  --shadow:      0 8px 32px rgba(0,0,0,0.55);
}
[data-theme="light"] {
  --bg:          #f5f2ff;
  --bg2:         #ece5fd;
  --surface:     #ffffff;
  --surface2:    #f6f2ff;
  --border:      rgba(109,40,217,0.16);
  --border-hi:   rgba(124,58,237,0.55);
  --primary:     #7c3aed;
  --primary-hi:  #6d28d9;
  --accent:      #059669;
  --accent2:     #db2777;
  --text:        #1e1a38;
  --text-muted:  #5c5581;
  --yes:         #059669;
  --no:          #db2777;
  --shadow:      0 10px 28px rgba(109,40,217,0.14);
}
/* Cards/tables/dropdowns read best as solid white "paper" against the
   light lavender page background rather than the dark theme's translucent
   glass surfaces (which just looked washed-out and low-contrast here). */
[data-theme="light"] .card,
[data-theme="light"] .table-wrap,
[data-theme="light"] .header-dropdown,
[data-theme="light"] .modal-box,
[data-theme="light"] .intro-card,
[data-theme="light"] .video-card,
[data-theme="light"] .unit-row,
[data-theme="light"] .uni-row,
[data-theme="light"] .video-admin-card {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] header,
[data-theme="light"] .profile-card {
  background: #ffffffcc;
}
[data-theme="light"] thead tr { background: #f1ebff; }
[data-theme="light"] .tab-btn.active { box-shadow: 0 4px 14px rgba(124,58,237,.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;
  transition: background .4s, color .4s;
  /* 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; }

/* ── 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. */
.bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .28; animation: drift 24s ease-in-out infinite alternate; will-change: transform; }
.orb-1 { width: 420px; height: 420px; top: -160px; left: -100px; background: radial-gradient(circle, #7c3aed, transparent 70%); }
.orb-2 { width: 340px; height: 340px; bottom: -120px; right: -100px; background: radial-gradient(circle, #06d6a0, transparent 70%); animation-delay: -10s; }
.orb-3 { display: none; }
[data-theme="light"] .orb { opacity: .15; }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(30px,24px); } }
@media (max-width: 640px) { .orb { filter: blur(40px); } }

::-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: 'Syne', 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: 'SolaimanLipi', 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;
}

/* ── ALERT ── */
.alert { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 14px; padding: 12px 16px; border-radius: 12px; background: rgba(247,37,133,.08); border: 1px solid rgba(247,37,133,.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(6,214,160,.08); border-color: rgba(6,214,160,.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(124,58,237,.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), #5b21b6); 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(247,37,133,.1); border: 1px solid rgba(247,37,133,.3); color: #ff9ec7; }
.form-msg.success { background: rgba(6,214,160,.1); border: 1px solid rgba(6,214,160,.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, #06d6a0); 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; text-align: justify; }
.field-hint.checking { color: var(--text-muted); }
.field-hint.ok { color: var(--yes); }
.field-hint.taken { color: var(--no); }

.intro-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 22px; margin: 16px 0; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
}
.intro-title { font-family: 'BenSen Handwriting', sans-serif; font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; color: var(--text); }
.intro-title i { color: var(--primary-hi); }
.intro-text { font-size: .86rem; line-height: 1.7; color: var(--text-muted); }

.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(124,58,237,.3); transition: transform .15s, box-shadow .15s;
}
.only-calendar-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(124,58,237,.4); }

.faq-section { margin: 28px 0 20px; }
.faq-heading { font-family: 'Syne', 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), #5b21b6); color: #fff; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.badge-link:hover { transform: scale(1.05); box-shadow: 0 3px 12px rgba(124,58,237,.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(247,37,133,.10); }
.countdown.soon { color: #f59e0b; background: rgba(245,158,11,.10); }
.countdown.ok { color: var(--yes); background: rgba(6,214,160,.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%, #5b21b6 100%); border-color: transparent; color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,.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(6,214,160,.4); background: rgba(6,214,160,.1); }
.chip.off { color: var(--no); border-color: rgba(247,37,133,.4); background: rgba(247,37,133,.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; }
}
