/* ─── StreamX Control Core – Design System ───────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Base */
  --bg:       #05050f;
  --bg2:      #080818;
  --bg3:      #0c0c20;
  --bg-glass: rgba(8,8,22,0.92);

  /* Borders */
  --border:   rgba(255,255,255,0.05);
  --border2:  rgba(255,255,255,0.1);
  --border3:  rgba(124,92,252,0.22);

  /* Brand */
  --purple:   #7c5cfc;
  --purple2:  #a78bfa;
  --pink:     #f472b6;
  --grad:     linear-gradient(135deg, #7c5cfc, #f472b6);
  --grad2:    linear-gradient(135deg, #7c5cfc 0%, #a855f7 50%, #f472b6 100%);

  /* Semantic */
  --text:     #f0eeff;
  --muted:    rgba(240,238,255,0.45);
  --muted2:   rgba(240,238,255,0.22);
  --green:    #34d399;
  --red:      #f87171;
  --yellow:   #fbbf24;
  --blue:     #60a5fa;
  --orange:   #fb923c;
  --cyan:     #22d3ee;

  /* Layout */
  --sidebar:  260px;
  --radius:   14px;
  --radius-sm: 9px;

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.4);
  --glow-purple:  0 0 30px rgba(124,92,252,0.2);
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(124,92,252,0.07), transparent 60%),
    radial-gradient(ellipse 50% 35% at 80% 80%, rgba(244,114,182,0.05), transparent 55%),
    radial-gradient(ellipse 40% 30% at 60% 5%,  rgba(96,165,250,0.04), transparent 50%);
  pointer-events: none; z-index: 0;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
.font-syne { font-family: "Syne", sans-serif; }
.grad-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ── SIDEBAR ──────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar);
  background: rgba(4,4,12,0.98);
  border-right: 1px solid var(--border3);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 50; backdrop-filter: blur(20px);
}
.sidebar::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad); opacity: 0.5;
}
.sb-top    { padding: 1.5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--border); }
.sb-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sb-logo-icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: "Syne", sans-serif; font-size: 15px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 14px rgba(124,92,252,0.45);
}
.sb-logo { font-family: "Syne", sans-serif; font-size: 17px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sb-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; color: var(--purple2);
  background: rgba(124,92,252,0.08); border: 1px solid rgba(124,92,252,0.18);
  border-radius: 20px; padding: 3px 10px; font-weight: 700; letter-spacing: 0.5px;
}
.sb-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.35} }

.sb-nav { padding: 0.4rem 0; flex: 1; overflow-y: auto; scrollbar-width: none; }
.sb-nav::-webkit-scrollbar { display: none; }
.sb-sect { font-size: 9px; color: rgba(240,238,255,0.18); text-transform: uppercase; letter-spacing: 2px; padding: 0.7rem 1.25rem 0.25rem; font-weight: 700; }
.sb-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 1.25rem;
  font-size: 12.5px; color: var(--muted); cursor: pointer;
  border: none; background: none; width: 100%; font-family: "DM Sans", sans-serif;
  text-align: left; position: relative; transition: all 0.15s;
}
.sb-item:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.sb-item.active { color: #fff; background: linear-gradient(90deg, rgba(124,92,252,0.13), transparent); }
.sb-item.active::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 2.5px; background: var(--grad); border-radius: 0 3px 3px 0;
}
.sb-icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(255,255,255,0.04); display: flex; align-items: center;
  justify-content: center; font-size: 13px; flex-shrink: 0; transition: all 0.15s;
}
.sb-item:hover .sb-icon, .sb-item.active .sb-icon { background: rgba(124,92,252,0.18); }
.sb-count {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 20px;
  min-width: 18px; text-align: center; box-shadow: 0 2px 8px rgba(248,113,113,0.4);
}
.sb-bottom { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.sb-user-info {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: rgba(124,92,252,0.06); border: 1px solid rgba(124,92,252,0.12);
  border-radius: 12px; margin-bottom: 10px;
}
.sb-av {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: "Syne", sans-serif; font-size: 14px; font-weight: 800;
  color: #fff; flex-shrink: 0; box-shadow: 0 4px 12px rgba(124,92,252,0.35);
}
.sb-name  { font-size: 12px; font-weight: 700; color: var(--text); }
.sb-role  { font-size: 9px; color: var(--muted2); margin-top: 1px; }
.sb-logout {
  width: 100%; padding: 8px;
  background: rgba(248,113,113,0.05); border: 1px solid rgba(248,113,113,0.12);
  border-radius: 10px; color: rgba(248,113,113,0.7); font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: "DM Sans", sans-serif; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sb-logout:hover { background: rgba(248,113,113,0.1); color: var(--red); }

/* ── MAIN ─────────────────────────────────────────────────────────────────── */
.main { margin-left: var(--sidebar); padding: 2rem; min-height: 100vh; position: relative; z-index: 1; }
.page { display: none; }
.page.active { display: block; animation: fadeInPage 0.25s ease both; }
@keyframes fadeInPage { from{opacity:0;transform:translateY(7px)} to{opacity:1;transform:translateY(0)} }

/* ── PAGE HEADER ──────────────────────────────────────────────────────────── */
.ph { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
.ph h1 { font-family: "Syne", sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ph p { font-size: 12px; color: var(--muted2); margin-top: 3px; }
.ph-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── STAT CARDS ───────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 1.75rem; }
.stat-card {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.25rem 1.5rem; position: relative; overflow: hidden;
  transition: all 0.25s;
}
.stat-card::after { content: ""; position: absolute; top:-40px; right:-40px; width:120px; height:120px; border-radius:50%; opacity:0.07; transition:opacity 0.25s; }
.stat-card:hover { transform: translateY(-2px); border-color: var(--border2); }
.stat-card:hover::after { opacity: 0.14; }
.s-purple::after { background: var(--purple); }
.s-green::after  { background: var(--green); }
.s-yellow::after { background: var(--yellow); }
.s-red::after    { background: var(--red); }
.s-blue::after   { background: var(--blue); }
.s-orange::after { background: var(--orange); }
.stat-icon  { font-size: 20px; margin-bottom: 10px; display: block; }
.stat-num   { font-family: "Syne", sans-serif; font-size: 28px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 500; }
.s-purple .stat-num { color: var(--purple2); }
.s-green  .stat-num { color: var(--green); }
.s-yellow .stat-num { color: var(--yellow); }
.s-red    .stat-num { color: var(--red); }
.s-blue   .stat-num { color: var(--blue); }
.s-orange .stat-num { color: var(--orange); }

/* ── CARDS ─────────────────────────────────────────────────────────────────── */
.card { background: rgba(255,255,255,0.015); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 1.25rem; transition: border-color 0.2s; }
.card:hover { border-color: rgba(255,255,255,0.08); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-title { font-family: "Syne", sans-serif; font-size: 13px; font-weight: 700; }
.card-sub   { font-size: 11px; color: var(--muted2); margin-top: 2px; }

/* ── TABLES ─────────────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10px; color: rgba(240,238,255,0.25); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 9px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.025); vertical-align: middle; font-size: 13px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.015); }
.empty-row td { text-align: center; color: var(--muted2); padding: 2.5rem; }
@keyframes rowFlash { 0%,100%{background:transparent} 50%{background:rgba(124,92,252,0.1)} }
.row-flash td { animation: rowFlash 0.8s ease; }

/* ── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; border: none; font-family: "DM Sans", sans-serif; transition: all 0.15s; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.btn-prim   { background: var(--grad); color: #fff; box-shadow: 0 2px 16px rgba(124,92,252,0.3); }
.btn-prim:hover   { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(124,92,252,0.45); }
.btn-green  { background: rgba(52,211,153,0.1);  color: var(--green);  border: 1px solid rgba(52,211,153,0.25); }
.btn-green:hover  { background: rgba(52,211,153,0.18); }
.btn-red    { background: rgba(248,113,113,0.1); color: var(--red);    border: 1px solid rgba(248,113,113,0.2); }
.btn-red:hover    { background: rgba(248,113,113,0.18); }
.btn-yellow { background: rgba(251,191,36,0.1);  color: var(--yellow); border: 1px solid rgba(251,191,36,0.2); }
.btn-yellow:hover { background: rgba(251,191,36,0.18); }
.btn-ghost  { background: rgba(255,255,255,0.04); color: var(--muted);  border: 1px solid var(--border2); }
.btn-ghost:hover  { background: rgba(255,255,255,0.08); color: var(--text); }
.btn-blue   { background: rgba(96,165,250,0.1);  color: var(--blue);   border: 1px solid rgba(96,165,250,0.2); }
.btn-sm  { padding: 5px 10px; font-size: 11px; border-radius: 7px; }
.btn-xs  { padding: 3px 8px;  font-size: 10px; border-radius: 6px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ── BADGES ─────────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.badge-super    { background: rgba(251,191,36,0.12);  color: var(--yellow); border: 1px solid rgba(251,191,36,0.3); }
.badge-admin    { background: rgba(124,92,252,0.12);  color: var(--purple2);border: 1px solid rgba(124,92,252,0.3); }
.badge-user     { background: rgba(255,255,255,0.05); color: var(--muted);  border: 1px solid var(--border); }
.badge-active   { background: rgba(52,211,153,0.1);   color: var(--green);  border: 1px solid rgba(52,211,153,0.25); }
.badge-banned   { background: rgba(248,113,113,0.1);  color: var(--red);    border: 1px solid rgba(248,113,113,0.25); }
.badge-debug    { background: rgba(255,255,255,0.04); color: var(--muted2); border: 1px solid var(--border); }
.badge-info     { background: rgba(96,165,250,0.1);   color: var(--blue);   border: 1px solid rgba(96,165,250,0.2); }
.badge-warn     { background: rgba(251,191,36,0.1);   color: var(--yellow); border: 1px solid rgba(251,191,36,0.2); }
.badge-error    { background: rgba(248,113,113,0.1);  color: var(--red);    border: 1px solid rgba(248,113,113,0.2); }
.badge-critical { background: rgba(248,113,113,0.2);  color: #fca5a5;       border: 1px solid rgba(248,113,113,0.4); }
.badge-risk-none{ background:rgba(255,255,255,0.04);  color:var(--muted2);  border:1px solid var(--border); }
.badge-risk-low { background:rgba(52,211,153,0.1);    color:var(--green);   border:1px solid rgba(52,211,153,0.2); }
.badge-risk-med { background:rgba(251,191,36,0.1);    color:var(--yellow);  border:1px solid rgba(251,191,36,0.2); }
.badge-risk-high{ background:rgba(248,113,113,0.15);  color:var(--red);     border:1px solid rgba(248,113,113,0.3); }

/* ── INPUTS ─────────────────────────────────────────────────────────────────── */
.sx-input, .sx-select {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border2);
  border-radius: 12px; padding: 12px 14px; color: var(--text);
  font-size: 13px; font-family: "DM Sans", sans-serif; outline: none; transition: all 0.2s;
  width: 100%;
}
.sx-input:focus, .sx-select:focus  { border-color: rgba(124,92,252,0.5); background: rgba(124,92,252,0.05); box-shadow: 0 0 0 3px rgba(124,92,252,0.08); }
.sx-input::placeholder { color: var(--muted2); }
.sx-select option { background: #0a0a18; }
.sx-label { font-size: 10px; color: var(--muted2); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; display: block; font-weight: 600; }

/* ── SEARCH BAR ─────────────────────────────────────────────────────────────── */
.search-bar { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--border2); border-radius: 9px; padding: 7px 12px; }
.search-bar input { background: none; border: none; outline: none; color: var(--text); font-size: 13px; font-family: "DM Sans", sans-serif; width: 200px; }
.search-bar input::placeholder { color: var(--muted2); }

/* ── FILTER ROW ─────────────────────────────────────────────────────────────── */
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-sel { background: rgba(255,255,255,0.03); border: 1px solid var(--border2); border-radius: 9px; padding: 7px 12px; color: var(--muted); font-size: 12px; font-family: "DM Sans", sans-serif; outline: none; cursor: pointer; }
.filter-sel option { background: #0a0a18; }

/* ── MODAL ──────────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-overlay.open { display: flex; }
.modal { background: rgba(7,7,20,0.99); border: 1px solid var(--border3); border-radius: 20px; padding: 2rem; width: 100%; max-width: 460px; box-shadow: 0 0 60px rgba(0,0,0,0.8); animation: modalIn 0.22s ease; }
@keyframes modalIn { from{opacity:0;transform:scale(0.95)} to{opacity:1;transform:scale(1)} }
.modal-title { font-family: "Syne", sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.modal-sub   { font-size: 13px; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 1.5rem; }

/* ── TOAST ──────────────────────────────────────────────────────────────────── */
#errorToastContainer { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.sx-toast {
  background: var(--bg-glass); border: 1px solid var(--border2); border-radius: 12px;
  padding: 12px 14px; font-size: 13px; display: flex; align-items: center; gap: 9px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5); max-width: 320px;
  opacity: 0; transform: translateX(16px); transition: all 0.3s;
  pointer-events: auto;
}
.sx-toast.visible { opacity: 1; transform: translateX(0); }
.sx-toast-success { border-color: rgba(52,211,153,0.3); }
.sx-toast-error   { border-color: rgba(248,113,113,0.35); }
.sx-toast-warn    { border-color: rgba(251,191,36,0.3); }
.sx-toast-info    { border-color: rgba(124,92,252,0.3); }
.sx-toast-close   { background: none; border: none; color: var(--muted2); cursor: pointer; font-size: 12px; margin-left: auto; padding: 0 2px; }
.sx-toast-msg     { flex: 1; }

/* ── LIVE BADGE ─────────────────────────────────────────────────────────────── */
.live-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--green); background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2); border-radius: 20px; padding: 3px 9px; font-weight: 600; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse-dot 1.5s ease infinite; }

/* ── SKELETON ───────────────────────────────────────────────────────────────── */
.skel { background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%); background-size: 200% 100%; animation: skel 1.4s ease infinite; border-radius: 6px; height: 14px; }
@keyframes skel { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── REFRESH BTN ────────────────────────────────────────────────────────────── */
.refresh-btn { display: flex; align-items: center; gap: 6px; padding: 7px 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--border2); border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; font-family: "DM Sans", sans-serif; transition: all 0.15s; }
.refresh-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.spinning { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SPINNER ────────────────────────────────────────────────────────────────── */
.spinner-sm { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,0.2); border-top-color: currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ── USER AVATAR CELL ───────────────────────────────────────────────────────── */
.em-cell { display: flex; align-items: center; gap: 10px; }
.em-av { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; font-family: "Syne", sans-serif; flex-shrink: 0; color: #fff; }

/* ── LOGIN PAGE ─────────────────────────────────────────────────────────────── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.login-card { width: 100%; max-width: 440px; }
.login-box { background: rgba(8,8,22,0.97); border: 1px solid rgba(124,92,252,0.22); border-radius: 24px; padding: 2.5rem; backdrop-filter: blur(40px); box-shadow: 0 0 80px rgba(124,92,252,0.1); }
.login-logo { font-family: "Syne", sans-serif; font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; }
.login-sub { font-size: 13px; color: var(--muted2); margin-top: 4px; margin-bottom: 2rem; }

/* ── OTP INPUTS ─────────────────────────────────────────────────────────────── */
.otp-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 1.5rem; }
.otp-digit { width: 52px; height: 64px; background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.15); border-radius: 14px; color: var(--text); font-size: 28px; font-weight: 800; font-family: monospace; text-align: center; outline: none; transition: all 0.2s; caret-color: var(--purple2); }
.otp-digit:focus { border-color: rgba(124,92,252,0.7); background: rgba(124,92,252,0.08); box-shadow: 0 0 0 3px rgba(124,92,252,0.12); }
.otp-digit.filled  { border-color: rgba(124,92,252,0.45); }
.otp-digit.error   { border-color: rgba(248,113,113,0.6); animation: shake 0.35s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* ── ACTIONS ROW ────────────────────────────────────────────────────────────── */
.actions-row { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }

/* ── RISK METER ─────────────────────────────────────────────────────────────── */
.risk-bar-wrap { width: 80px; }
.risk-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.07); overflow: hidden; }
.risk-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }

/* ── REALTIME LOG FEED ──────────────────────────────────────────────────────── */
.log-feed { height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(124,92,252,0.3) transparent; }
.log-entry { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,0.025); animation: logSlideIn 0.3s ease; font-size: 12px; }
@keyframes logSlideIn { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.log-entry:hover { background: rgba(255,255,255,0.015); }

/* ── PRESENCE INDICATOR ─────────────────────────────────────────────────────── */
#presenceCount { font-size: 11px; color: var(--green); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
