*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;font-size:13.5px;line-height:1.5;transition:background .25s ease,color .25s ease}
::-webkit-scrollbar{width:4px;height:4px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(100,116,139,0.18);border-radius:99px}
::-webkit-scrollbar-thumb:hover{background:rgba(100,116,139,0.35)}
button{font-family:'Inter',inherit;cursor:pointer;border:none;outline:none;-webkit-tap-highlight-color:transparent}
input,textarea,select{font-family:'Inter',inherit;outline:none;appearance:none;-webkit-appearance:none}
a{color:var(--accent);text-decoration:none}
.hidden{display:none!important}

:root{
  --bg:#f4f6fb;
  --surface:#ffffff;
  --surface-2:#f8fafd;
  --surface-3:#f0f4f8;
  --surface-4:#e8eef6;
  --border:rgba(15,23,42,0.08);
  --border-strong:rgba(15,23,42,0.15);
  --border-focus:rgba(99,102,241,0.5);
  --text:#0f172a;
  --text-secondary:#334155;
  --text-muted:#64748b;
  --text-faint:#94a3b8;
  --accent:#6366f1;
  --accent-hover:#4f46e5;
  --accent-light:rgba(99,102,241,0.07);
  --accent-medium:rgba(99,102,241,0.13);
  --accent-strong:rgba(99,102,241,0.22);
  --accent-glow:rgba(99,102,241,0.18);
  --accent-soft:rgba(99,102,241,0.07);
  --green:#10b981;--green-bg:rgba(16,185,129,0.09);--green-text:#065f46;
  --red:#ef4444;--red-bg:rgba(239,68,68,0.09);--red-text:#991b1b;
  --amber:#f59e0b;--amber-bg:rgba(245,158,11,0.09);--amber-text:#92400e;
  --purple:#8b5cf6;--purple-bg:rgba(139,92,246,0.09);
  --sb-w:220px;--sb-w-collapsed:60px;
  --sb-bg:#0c0f1a;
  --sb-border:rgba(255,255,255,0.06);
  --sb-text:rgba(255,255,255,0.5);
  --sb-text-hover:rgba(255,255,255,0.92);
  --sb-text-active:#ffffff;
  --sb-item-h:rgba(255,255,255,0.05);
  --sb-item-active:rgba(99,102,241,0.18);
  --sb-accent:#818cf8;
  --topbar-h:56px;
  --r-sm:6px;--r:10px;--r-md:13px;--r-lg:16px;--r-xl:22px;
  --shadow:0 1px 3px rgba(0,0,0,0.07),0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:0 2px 8px rgba(0,0,0,0.06),0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:0 4px 16px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:0 12px 32px rgba(0,0,0,0.10),0 4px 8px rgba(0,0,0,0.06);
  --shadow-accent:0 4px 14px rgba(99,102,241,0.30);
  --ring:0 0 0 3px rgba(99,102,241,0.18);
}

[data-theme="dark"]{
  --bg:#080c14;
  --surface:#0e1421;
  --surface-2:#131926;
  --surface-3:#182030;
  --surface-4:#1e2840;
  --border:rgba(255,255,255,0.07);
  --border-strong:rgba(255,255,255,0.13);
  --border-focus:rgba(129,140,248,0.5);
  --text:#e2e8f5;
  --text-secondary:#94a3b8;
  --text-muted:#6b7c9d;
  --text-faint:#3d4f6e;
  --accent:#818cf8;
  --accent-hover:#6366f1;
  --accent-light:rgba(129,140,248,0.10);
  --accent-medium:rgba(129,140,248,0.17);
  --accent-strong:rgba(129,140,248,0.28);
  --accent-glow:rgba(129,140,248,0.22);
  --accent-soft:rgba(129,140,248,0.08);
  --green:#10b981;--green-bg:rgba(16,185,129,0.12);--green-text:#34d399;
  --red:#ef4444;--red-bg:rgba(239,68,68,0.12);--red-text:#fca5a5;
  --amber:#f59e0b;--amber-bg:rgba(245,158,11,0.12);--amber-text:#fcd34d;
  --purple:#a78bfa;--purple-bg:rgba(167,139,250,0.12);
  --sb-bg:#06090f;
  --shadow:0 1px 3px rgba(0,0,0,0.4);
  --shadow-sm:0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:0 12px 32px rgba(0,0,0,0.5);
  --shadow-accent:0 4px 14px rgba(129,140,248,0.35);
  --ring:0 0 0 3px rgba(129,140,248,0.22);
}

@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes modalIn{from{opacity:0;transform:scale(0.97) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes slideUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes toastIn{from{opacity:0;transform:translateX(18px) scale(.97)}to{opacity:1;transform:none}}
@keyframes pageIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
@keyframes pulse-dot{0%,100%{opacity:1}50%{opacity:.4}}

.skeleton{
  background:linear-gradient(90deg,var(--surface-3) 25%,var(--surface-4) 50%,var(--surface-3) 75%);
  background-size:200% 100%;
  animation:shimmer 1.5s ease infinite;
  border-radius:var(--r-sm);
}
.skeleton-line{height:12px;border-radius:4px;margin-bottom:8px}
.skeleton-line:last-child{width:55%;margin-bottom:0}
.skeleton-title{height:18px;width:38%;border-radius:4px;margin-bottom:12px}
.skeleton-avatar{width:30px;height:30px;border-radius:50%;flex-shrink:0}
.skeleton-badge{width:60px;height:20px;border-radius:99px}
.skeleton-btn{width:58px;height:26px;border-radius:var(--r-sm)}
.skeleton-row{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--border)}
.skeleton-row:last-child{border-bottom:none}

.app-shell{display:flex;height:100vh;overflow:hidden;background:var(--bg)}

/* ── SIDEBAR ── */
.sidebar{
  width:var(--sb-w);background:var(--sb-bg);display:flex;flex-direction:column;
  flex-shrink:0;transition:width .24s cubic-bezier(0.22,1,0.36,1);
  position:sticky;top:0;height:100vh;overflow:hidden;z-index:200;
  border-right:1px solid var(--sb-border);
}
.sidebar.collapsed{width:var(--sb-w-collapsed)}
.sidebar.collapsed .sb-label,
.sidebar.collapsed .sb-section-label,
.sidebar.collapsed .sb-wordmark-name,
.sidebar.collapsed .sb-user-info{opacity:0;width:0;overflow:hidden;white-space:nowrap;pointer-events:none}
.sidebar.collapsed .sb-item{justify-content:center;padding:10px 0;border-radius:10px;margin:0 9px}
.sidebar.collapsed .sb-item-icon{margin:0}
.sidebar.collapsed .sb-section-label-wrap{justify-content:center;padding:6px 9px 3px}
.sidebar.collapsed .sb-section-line{display:none}
.sidebar.collapsed .sb-user{padding:10px 9px;justify-content:center}
.sidebar.collapsed .sb-wordmark{justify-content:center;padding:0 12px}

.sb-top{
  padding:16px 16px;border-bottom:1px solid var(--sb-border);
  flex-shrink:0;display:flex;align-items:center;justify-content:space-between;
  min-height:64px;
}
.sb-wordmark{display:flex;align-items:center;gap:10px;overflow:hidden;flex:1}
.sb-logo-wrap{
  width:34px;height:34px;border-radius:10px;flex-shrink:0;
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 1px rgba(255,255,255,0.12),0 4px 12px rgba(99,102,241,0.4);
}
.sb-logo-wrap svg{width:15px;height:15px;color:#fff}
.sb-wordmark-name{font-size:14px;font-weight:700;color:#fff;letter-spacing:-.4px;transition:opacity .2s,width .2s;white-space:nowrap}
.sb-collapse-btn{
  background:none;border:1px solid rgba(255,255,255,0.08);border-radius:7px;
  cursor:pointer;width:26px;height:26px;display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,0.3);flex-shrink:0;transition:all .15s;
}
.sb-collapse-btn:hover{background:rgba(255,255,255,0.07);color:rgba(255,255,255,0.6);border-color:rgba(255,255,255,0.15)}
.sb-collapse-btn svg{width:12px;height:12px}

.sb-nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:8px 0;display:flex;flex-direction:column}
.sb-nav::-webkit-scrollbar{width:0}

.sb-section{margin-bottom:2px}
.sb-section-label-wrap{display:flex;align-items:center;gap:8px;padding:10px 16px 4px;overflow:hidden}
.sb-section-label{font-size:9.5px;font-weight:600;color:rgba(255,255,255,0.22);text-transform:uppercase;letter-spacing:1.4px;white-space:nowrap;transition:opacity .2s,width .2s;flex-shrink:0}
.sb-section-line{flex:1;height:1px;background:rgba(255,255,255,0.05)}

.sb-item{
  display:flex;align-items:center;gap:10px;padding:8px 12px;
  margin:1px 8px;border-radius:9px;cursor:pointer;
  color:var(--sb-text);font-size:12.5px;font-weight:400;letter-spacing:-.1px;
  transition:background .15s,color .15s,transform .1s;border:none;background:transparent;
  font-family:'Inter',sans-serif;text-align:left;width:calc(100% - 16px);
  position:relative;overflow:hidden;white-space:nowrap;
}
.sb-item:hover{color:var(--sb-text-hover);background:var(--sb-item-h)}
.sb-item:active{transform:scale(.98)}
.sb-item.active{
  color:var(--sb-text-active);background:var(--sb-item-active);font-weight:500;
}
.sb-item.active::before{
  content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:3px;height:55%;background:var(--sb-accent);border-radius:0 3px 3px 0;
}
.sb-item-icon{width:16px;height:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center;opacity:0.65;transition:opacity .15s}
.sb-item-icon svg{width:15px;height:15px}
.sb-item:hover .sb-item-icon,.sb-item.active .sb-item-icon{opacity:1}
.sb-label{transition:opacity .2s,width .2s;white-space:nowrap;overflow:hidden;flex:1}

.sidebar.collapsed .sb-item:hover::after{
  content:attr(data-label);position:absolute;left:calc(100% + 10px);top:50%;
  transform:translateY(-50%);background:#1a2035;color:rgba(255,255,255,0.92);
  font-size:12px;font-weight:500;padding:6px 11px;border-radius:8px;
  border:1px solid rgba(255,255,255,0.08);white-space:nowrap;pointer-events:none;
  box-shadow:0 4px 20px rgba(0,0,0,0.4);z-index:999;font-family:'Inter',sans-serif;
}

.sb-bottom{border-top:1px solid var(--sb-border);padding:10px;flex-shrink:0}
.sb-user{
  display:flex;align-items:center;gap:9px;padding:8px;
  border-radius:10px;cursor:pointer;background:transparent;border:none;
  width:100%;text-align:left;font-family:'Inter',sans-serif;transition:background .15s;overflow:hidden;
}
.sb-user:hover{background:rgba(255,255,255,0.05)}
.sb-user-avatar{
  width:30px;height:30px;border-radius:9px;flex-shrink:0;
  background:linear-gradient(135deg,rgba(99,102,241,0.3),rgba(99,102,241,0.15));
  border:1px solid rgba(99,102,241,0.35);
  display:flex;align-items:center;justify-content:center;
  font-size:10.5px;font-weight:700;color:#a5b4fc;font-family:'Inter',sans-serif;
}
.sb-user-info{overflow:hidden;transition:opacity .2s,width .2s;min-width:0}
.sb-user-name{font-size:12px;font-weight:600;color:rgba(255,255,255,0.82);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-user-role{font-size:10px;color:rgba(255,255,255,0.28);margin-top:1px}

/* ── MAIN ── */
.main-area{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}

/* ── TOPBAR ── */
.topbar{
  height:var(--topbar-h);
  background:var(--surface);
  border-bottom:1px solid var(--border);
  display:flex;align-items:center;padding:0 22px 0 24px;gap:10px;flex-shrink:0;
  position:sticky;top:0;z-index:100;
}
.topbar-left{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.topbar-breadcrumb{display:flex;align-items:center;gap:5px;font-size:12px}
.topbar-breadcrumb .bc-section{color:var(--text-muted);font-weight:500}
.topbar-breadcrumb .sep{color:var(--text-faint);font-size:10px;opacity:.5;margin:0 1px}
.topbar-breadcrumb .bc-page{color:var(--text);font-weight:600}

.topbar-search{
  flex:0 1 270px;display:flex;align-items:center;gap:7px;
  padding:7px 12px;border:1.5px solid var(--border);border-radius:var(--r-md);
  background:var(--surface-2);transition:all .18s;cursor:text;
  color:var(--text-faint);
}
.topbar-search:focus-within{border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 4px var(--accent-glow);color:var(--text)}
.topbar-search svg{width:13px;height:13px;flex-shrink:0}
.topbar-search input{border:none;background:transparent;color:var(--text);font-size:12.5px;font-family:'Inter',sans-serif;width:100%;min-width:0}
.topbar-search input::placeholder{color:var(--text-faint)}
.topbar-search-kbd{font-size:9.5px;color:var(--text-faint);border:1px solid var(--border);border-radius:5px;padding:1px 5px;font-family:'JetBrains Mono',monospace;flex-shrink:0;white-space:nowrap;transition:opacity .15s}
.topbar-search:focus-within .topbar-search-kbd{opacity:0;pointer-events:none}

.tn-icon-btn{
  width:34px;height:34px;border-radius:9px;
  background:transparent;border:1px solid var(--border);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  color:var(--text-muted);transition:all .15s;position:relative;
}
.tn-icon-btn:hover{background:var(--surface-2);border-color:var(--border-strong);color:var(--text)}
.tn-icon-btn svg{width:14px;height:14px}
.tn-divider{width:1px;height:20px;background:var(--border);margin:0 2px}
.tn-notif-dot{width:7px;height:7px;border-radius:50%;background:#ef4444;position:absolute;top:5px;right:5px;border:2px solid var(--surface);animation:pulse-dot 2s infinite}
.avatar-wrap{position:relative}
.tn-avatar{
  width:34px;height:34px;border-radius:9px;
  background:linear-gradient(135deg,rgba(99,102,241,0.18),rgba(99,102,241,0.08));
  border:1.5px solid rgba(99,102,241,0.22);
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:700;color:var(--accent);cursor:pointer;
  font-family:'Inter',sans-serif;transition:all .15s;border:none;user-select:none;
}
[data-theme="dark"] .tn-avatar{color:#a5b4fc;background:linear-gradient(135deg,rgba(129,140,248,0.25),rgba(129,140,248,0.12));border:1.5px solid rgba(129,140,248,0.3)}
.tn-avatar:hover{transform:scale(1.05)}

.avatar-dropdown{
  position:absolute;top:calc(100% + 9px);right:0;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);
  min-width:215px;z-index:999;overflow:hidden;animation:fadeUp .15s ease both;
}
.avatar-dropdown.hidden{display:none!important}
.dd-header{padding:13px 15px;border-bottom:1px solid var(--border);background:var(--surface-2)}
.dd-avatar{
  width:34px;height:34px;border-radius:9px;flex-shrink:0;
  background:linear-gradient(135deg,rgba(99,102,241,0.18),rgba(99,102,241,0.08));
  border:1.5px solid rgba(99,102,241,0.22);
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:700;color:var(--accent);font-family:'Inter',sans-serif;
}
.dd-name{font-size:13px;font-weight:600;color:var(--text);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dd-email{font-size:11.5px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.dd-section{padding:4px}
.dd-item{
  display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:var(--r-sm);
  cursor:pointer;color:var(--text-secondary);font-size:12.5px;font-weight:500;
  transition:background .12s;border:none;background:transparent;width:100%;
  text-align:left;font-family:'Inter',sans-serif;
}
.dd-item svg{color:var(--text-muted);flex-shrink:0;width:14px;height:14px}
.dd-item:hover{background:var(--accent-soft);color:var(--text)}
.dd-item.danger{color:var(--red)}
.dd-item.danger svg{color:var(--red)}
.dd-item.danger:hover{background:var(--red-bg)}
.dd-sep{height:1px;background:var(--border);margin:3px 4px}

/* ── CONTENT ── */
.content-wrap{flex:1;overflow-y:auto;background:var(--bg)}
.content{padding:26px 30px;max-width:1320px;animation:pageIn .3s cubic-bezier(0.22,1,0.36,1) both}
@media(max-width:768px){.content{padding:20px 16px}}
#content-area{animation:pageIn .3s cubic-bezier(0.22,1,0.36,1) both}

/* ── PAGE HEADER ── */
.page-hd{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px;gap:16px;flex-wrap:wrap}
.page-hd-eyebrow{font-size:11px;font-weight:600;color:var(--text-muted);margin-bottom:3px;text-transform:uppercase;letter-spacing:.7px}
.page-hd-title{font-size:clamp(19px,4vw,23px);font-weight:700;color:var(--text);letter-spacing:-.5px;line-height:1.2}
.page-hd-sub{font-size:12.5px;color:var(--text-muted);margin-top:3px;line-height:1.5}
.page-hd-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0}

/* ── BUTTONS ── */
.btn{
  display:inline-flex;align-items:center;gap:7px;padding:7px 16px;
  border-radius:var(--r-md);font-size:12.5px;font-weight:500;font-family:'Inter',sans-serif;
  transition:all .18s cubic-bezier(0.22,1,0.36,1);cursor:pointer;white-space:nowrap;
  border:1.5px solid transparent;letter-spacing:.1px;position:relative;
}
.btn svg{width:13px;height:13px;flex-shrink:0}
.btn-primary{
  background:var(--accent);
  color:#fff;border-color:transparent;box-shadow:var(--shadow-accent);
}
.btn-primary:hover{background:var(--accent-hover);transform:translateY(-1px);box-shadow:0 6px 20px var(--accent-glow);}
.btn-primary:active{transform:scale(.98)}
.btn-secondary{background:var(--surface);color:var(--text-secondary);border-color:var(--border);box-shadow:var(--shadow)}
.btn-secondary:hover{background:var(--surface-2);border-color:var(--border-strong);color:var(--text)}
.btn-ghost{background:transparent;color:var(--accent);border-color:transparent;padding:7px 14px}
.btn-ghost:hover{background:var(--accent-soft);border-color:transparent}
.btn-danger{background:transparent;color:var(--red);border-color:rgba(239,68,68,0.2)}
.btn-danger:hover{background:var(--red-bg);border-color:rgba(239,68,68,0.25)}
.btn-success{background:transparent;color:var(--green);border-color:rgba(16,185,129,0.2)}
.btn-success:hover{background:var(--green-bg)}
.btn-sm{padding:5px 11px;font-size:11.5px;gap:5px;border-radius:var(--r-sm)}
.btn-sm svg{width:12px;height:12px}
.btn-lg{padding:10px 26px;font-size:13.5px;border-radius:var(--r-md)}
.btn-icon{width:30px;height:30px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--r-sm)}
.btn-icon.btn-sm{width:27px;height:27px}
.btn-loading{pointer-events:none;opacity:.6}

/* ── STAT CARDS ── */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px;margin-bottom:22px}

.stat-card{
  background:var(--surface);border-radius:16px;padding:20px 20px;
  border:1px solid var(--border);
  transition:border-color .22s,box-shadow .22s,transform .22s;
  position:relative;overflow:hidden;cursor:default;
}
.stat-card::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,0.02) 0%,transparent 60%);
  pointer-events:none;
}
.stat-card:hover{transform:translateY(-2px);}
.stat-card-ghost{
  position:absolute;top:-8px;right:-8px;pointer-events:none;
  transition:opacity .28s,transform .28s;
  opacity:0.035;
}
.stat-card:hover .stat-card-ghost{opacity:0.12;transform:scale(1.1) rotate(-5deg);}
.stat-card-inner{position:relative;z-index:1}
.stat-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.stat-icon{
  width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:all .22s;
}
.stat-icon svg{width:16px;height:16px}
.stat-card:hover .stat-icon{transform:scale(1.07)}
.stat-icon-blue{background:rgba(99,102,241,0.10);color:var(--accent)}
.stat-icon-green{background:rgba(16,185,129,0.10);color:var(--green)}
.stat-icon-amber{background:rgba(245,158,11,0.10);color:var(--amber)}
.stat-icon-purple{background:rgba(139,92,246,0.10);color:var(--purple)}
.stat-icon-red{background:rgba(239,68,68,0.10);color:var(--red)}
.stat-card-blue:hover{border-color:rgba(99,102,241,0.35);box-shadow:0 8px 28px rgba(99,102,241,0.10)}
.stat-card-blue:hover .stat-icon-blue{background:var(--accent);box-shadow:0 4px 14px rgba(99,102,241,0.38);color:#fff}
.stat-card-blue:hover .stat-val{color:var(--accent)}
.stat-card-green:hover{border-color:rgba(16,185,129,0.35);box-shadow:0 8px 28px rgba(16,185,129,0.10)}
.stat-card-green:hover .stat-icon-green{background:var(--green);box-shadow:0 4px 14px rgba(16,185,129,0.38);color:#fff}
.stat-card-green:hover .stat-val{color:var(--green)}
.stat-card-amber:hover{border-color:rgba(245,158,11,0.35);box-shadow:0 8px 28px rgba(245,158,11,0.10)}
.stat-card-amber:hover .stat-icon-amber{background:var(--amber);box-shadow:0 4px 14px rgba(245,158,11,0.38);color:#fff}
.stat-card-amber:hover .stat-val{color:var(--amber)}
.stat-card-purple:hover{border-color:rgba(139,92,246,0.35);box-shadow:0 8px 28px rgba(139,92,246,0.10)}
.stat-card-purple:hover .stat-icon-purple{background:var(--purple);box-shadow:0 4px 14px rgba(139,92,246,0.38);color:#fff}
.stat-card-purple:hover .stat-val{color:var(--purple)}
.stat-card-red:hover{border-color:rgba(239,68,68,0.35);box-shadow:0 8px 28px rgba(239,68,68,0.10)}
.stat-card-red:hover .stat-icon-red{background:var(--red);box-shadow:0 4px 14px rgba(239,68,68,0.38);color:#fff}
.stat-card-red:hover .stat-val{color:var(--red)}
.stat-val{font-size:30px;font-weight:700;color:var(--text);line-height:1;letter-spacing:-1.2px;margin-bottom:5px;transition:color .22s}
.stat-label{font-size:11.5px;color:var(--text-muted);font-weight:500}
.stat-sub{font-size:11px;color:var(--text-muted);margin-top:8px;padding-top:8px;border-top:1px solid var(--border);line-height:1.5}

/* ── CARDS ── */
.card{
  background:var(--surface);border-radius:16px;
  border:1px solid var(--border);
  transition:box-shadow .2s ease,border-color .2s ease;overflow:hidden;
}
.card:hover{box-shadow:var(--shadow-md);border-color:var(--border-strong)}
.card-header{
  padding:14px 18px;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:var(--surface);
}
.card-title{
  font-size:13px;font-weight:600;color:var(--text);
  display:flex;align-items:center;gap:9px;letter-spacing:-.2px;
}
.card-title svg{width:14px;height:14px;color:var(--text-muted)}
.card-title-icon{
  width:26px;height:26px;border-radius:7px;
  background:var(--accent-soft);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.card-title-icon svg{width:12px;height:12px;color:var(--accent)}
.card-body{padding:16px 18px}

/* ── TABLES ── */
.tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse}
thead th{
  padding:10px 15px;text-align:left;font-size:10.5px;font-weight:600;
  color:var(--text-muted);letter-spacing:.7px;text-transform:uppercase;
  background:var(--surface-2);border-bottom:1px solid var(--border);white-space:nowrap;
}
tbody tr{border-bottom:1px solid var(--border);transition:background .12s}
tbody tr:last-child{border-bottom:none}
tbody tr:hover{background:var(--accent-light) !important}
td{padding:12px 15px;font-size:12.5px;color:var(--text-secondary);vertical-align:middle}
td.td-bold{font-weight:600;color:var(--text)}
.td-actions{display:flex;align-items:center;gap:4px}
.td-actions .btn{opacity:0;transition:opacity .15s,transform .1s;transform:scale(0.9)}
tbody tr:hover .td-actions .btn{opacity:1;transform:scale(1)}
.tbl-avatar{
  width:30px;height:30px;border-radius:9px;
  background:var(--accent-light);border:1px solid var(--accent-medium);
  display:flex;align-items:center;justify-content:center;
  font-size:10.5px;font-weight:700;color:var(--accent);flex-shrink:0;font-family:'Inter',sans-serif;
}

/* ── BADGES ── */
.badge{
  display:inline-flex;align-items:center;gap:5px;padding:2px 9px;
  border-radius:99px;font-size:11px;font-weight:600;letter-spacing:.1px;border:1px solid transparent;
  white-space:nowrap;
}
.dot{width:5px;height:5px;border-radius:50%;flex-shrink:0}
.badge-green{background:rgba(16,185,129,0.10);color:var(--green-text);border-color:rgba(16,185,129,0.2);}
[data-theme="dark"] .badge-green{color:#34d399}
.dot-green{background:var(--green)}
.badge-red{background:rgba(239,68,68,0.10);color:var(--red-text);border-color:rgba(239,68,68,0.2);}
[data-theme="dark"] .badge-red{color:#fca5a5}
.dot-red{background:var(--red)}
.badge-amber{background:rgba(245,158,11,0.10);color:var(--amber-text);border-color:rgba(245,158,11,0.2);}
[data-theme="dark"] .badge-amber{color:#fcd34d}
.dot-amber{background:var(--amber)}
.badge-blue{background:var(--accent-light);color:var(--accent);border-color:var(--accent-medium);}
.dot-blue{background:var(--accent)}
.badge-gray{background:var(--surface-3);color:var(--text-muted);border-color:var(--border);}
.dot-gray{background:var(--text-faint)}
.badge-purple{background:rgba(139,92,246,0.10);color:var(--purple);border-color:rgba(139,92,246,0.2);}

/* ── FORMS ── */
.form-grid{display:grid;gap:13px}
.form-grid-2{grid-template-columns:1fr 1fr}
@media(max-width:640px){.form-grid-2{grid-template-columns:1fr}}
.form-field{display:flex;flex-direction:column;gap:5px}
.form-label{font-size:11.5px;font-weight:600;color:var(--text-secondary);letter-spacing:.1px}
.form-input{
  width:100%;padding:8px 12px;border:1.5px solid var(--border);
  border-radius:var(--r);background:var(--surface-2);color:var(--text);
  font-size:13px;font-family:'Inter',sans-serif;transition:all .15s;
}
.form-input:hover{border-color:var(--border-strong)}
.form-input:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-glow);background:var(--surface)}
.form-input::placeholder{color:var(--text-faint)}
.form-input:disabled{opacity:.55;cursor:not-allowed;background:var(--surface-3)}
textarea.form-input{resize:vertical;line-height:1.6;min-height:80px}
select.form-input{
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;padding-right:34px;
}
.form-hint{font-size:11.5px;color:var(--text-muted);line-height:1.55}
.form-actions{display:flex;align-items:center;gap:8px;margin-top:4px;flex-wrap:wrap}
.input-wrap{position:relative}
.input-wrap .form-input{padding-right:38px}
.input-eye{position:absolute;right:9px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex;padding:5px;border-radius:5px;transition:color .12s}
.input-eye:hover{color:var(--text)}
.input-eye svg{width:13px;height:13px}
.check-row{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:13px;color:var(--text-secondary);user-select:none}
.check-row input[type=checkbox]{width:14px;height:14px;accent-color:var(--accent);border-radius:4px;cursor:pointer;appearance:checkbox;-webkit-appearance:checkbox}

.modal-section-sep{height:1px;background:var(--border);margin:14px 0}
.modal-section-label{font-size:10.5px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.8px;margin-bottom:9px}

/* ── SEARCH ── */
.search-bar{
  display:flex;align-items:center;gap:8px;padding:7px 12px;
  border:1.5px solid var(--border);border-radius:var(--r-md);
  background:var(--surface-2);color:var(--text-muted);flex:1;max-width:250px;transition:all .15s;
}
.search-bar:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-glow);background:var(--surface);color:var(--text)}
.search-bar svg{width:13px;height:13px;flex-shrink:0}
.search-bar input{border:none;background:transparent;color:var(--text);font-size:12.5px;font-family:'Inter',sans-serif;width:100%}
.search-bar input::placeholder{color:var(--text-faint)}

/* ── FILTER TABS ── */
.filter-tabs{display:flex;gap:1px;background:var(--surface-3);border:1px solid var(--border);border-radius:10px;padding:3px}
.filter-tab{padding:5px 12px;border-radius:8px;font-size:11.5px;font-weight:500;cursor:pointer;color:var(--text-muted);background:transparent;border:none;transition:all .12s;font-family:'Inter',sans-serif}
.filter-tab:hover{color:var(--text-secondary)}
.filter-tab.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow);border:1px solid var(--border);font-weight:600}

/* ── PAGINATION ── */
.pagination{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;border-top:1px solid var(--border);font-size:12px;color:var(--text-muted)}
.pg-btns{display:flex;gap:3px}
.pg-btn{padding:5px 9px;border-radius:7px;background:var(--surface-2);border:1px solid var(--border);color:var(--text-secondary);font-size:11.5px;cursor:pointer;transition:all .1s;font-family:'Inter',sans-serif;font-weight:500;display:flex;align-items:center;justify-content:center;}
.pg-btn:hover:not([disabled]){background:var(--surface-3);border-color:var(--border-strong)}
.pg-btn[disabled]{opacity:.3;cursor:not-allowed}
.pg-btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.pg-btn svg{width:12px;height:12px}

/* ── MODAL ── */
.modal-overlay{
  position:fixed;inset:0;background:rgba(6,9,15,0.65);z-index:1000;
  display:flex;align-items:center;justify-content:center;padding:20px;
  backdrop-filter:blur(8px);animation:fadeIn .18s ease both;
}
.modal{
  background:var(--surface);border-radius:20px;box-shadow:var(--shadow-lg);
  width:100%;max-width:510px;max-height:90vh;display:flex;flex-direction:column;
  animation:modalIn .22s cubic-bezier(0.22,1,0.36,1) both;border:1px solid var(--border);
}
.modal-header{
  padding:17px 20px 15px;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;flex-shrink:0;
}
.modal-title{font-size:15px;font-weight:700;color:var(--text);letter-spacing:-.3px;display:flex;align-items:center;gap:8px}
.modal-close{
  width:30px;height:30px;border-radius:8px;background:transparent;
  border:1px solid var(--border);cursor:pointer;display:flex;align-items:center;
  justify-content:center;color:var(--text-muted);transition:all .15s;
}
.modal-close:hover{background:var(--red-bg);border-color:rgba(239,68,68,.3);color:var(--red)}
.modal-close svg{width:13px;height:13px}
.modal-body{padding:18px 20px;overflow-y:auto;flex:1}
.modal-footer{
  padding:13px 20px;border-top:1px solid var(--border);
  display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0;
}

/* ── CONFIRM ── */
.confirm-overlay{position:fixed;inset:0;background:rgba(6,9,15,0.65);z-index:1100;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(8px)}
.confirm-box{background:var(--surface);border-radius:20px;box-shadow:var(--shadow-lg);width:100%;max-width:330px;padding:22px;animation:modalIn .2s cubic-bezier(.22,1,.36,1) both;border:1px solid var(--border)}
.confirm-icon-wrap{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.confirm-icon-danger{background:var(--red-bg);color:var(--red)}
.confirm-icon-warning{background:var(--amber-bg);color:var(--amber)}
.confirm-title{font-size:15px;font-weight:700;color:var(--text);margin-bottom:6px;letter-spacing:-.3px}
.confirm-msg{font-size:12.5px;color:var(--text-muted);line-height:1.65;margin-bottom:18px}
.confirm-actions{display:flex;gap:8px}
.confirm-actions .btn{flex:1;justify-content:center}

/* ── TOAST ── */
#toast-container{position:fixed;bottom:22px;right:22px;z-index:9999;display:flex;flex-direction:column;gap:7px}
.toast{
  display:flex;align-items:center;gap:10px;padding:11px 15px;border-radius:13px;
  font-size:13px;font-weight:500;font-family:'Inter',sans-serif;box-shadow:var(--shadow-lg);
  animation:toastIn .22s cubic-bezier(.22,1,.36,1);min-width:220px;max-width:330px;
  border:1px solid transparent;
}
.toast svg{width:14px;height:14px;flex-shrink:0}
.toast-success{background:#041a10;color:#6ee7b7;border-color:rgba(16,185,129,0.22)}
.toast-error{background:#1c0508;color:#fca5ab;border-color:rgba(239,68,68,0.22)}
.toast-info{background:#06102a;color:#93c5fd;border-color:rgba(99,102,241,0.22)}

/* ── LOADING ── */
#global-loading{position:fixed;inset:0;background:rgba(6,9,15,0.5);z-index:9998;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(8px)}
.spinner-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:22px 30px;display:flex;flex-direction:column;align-items:center;gap:11px;box-shadow:var(--shadow-lg)}
.spinner{width:24px;height:24px;border:2.5px solid var(--border-strong);border-top-color:var(--accent);border-radius:50%;animation:spin .65s linear infinite}
.spinner-label{font-size:12px;color:var(--text-muted);font-weight:500}

/* ── EMPTY STATE ── */
.empty-state{text-align:center;padding:52px 24px}
.empty-icon{width:48px;height:48px;border-radius:13px;background:var(--surface-2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin:0 auto 13px;color:var(--text-faint)}
.empty-icon svg{width:20px;height:20px}
.empty-title{font-size:13.5px;font-weight:600;color:var(--text-secondary);margin-bottom:5px;letter-spacing:-.2px}
.empty-sub{font-size:12px;color:var(--text-muted);line-height:1.6}

/* ── STATUS BAR ── */
.status-bar{display:flex;align-items:center;gap:10px;padding:11px 15px;border-radius:var(--r-md);border:1px solid;margin-bottom:14px;font-size:13px;font-weight:500}
.status-bar svg{width:14px;height:14px;flex-shrink:0}
.status-bar-connected{background:var(--green-bg);border-color:rgba(16,185,129,0.2);color:var(--green-text)}
.status-bar-disconnected{background:var(--surface-2);border-color:var(--border);color:var(--text-muted)}
.status-bar-label{font-weight:600}
.status-bar-meta{font-size:11px;opacity:.7;margin-left:auto;font-weight:400}

/* ── PROGRESS ── */
.progress-wrap{background:var(--surface-3);border-radius:99px;height:5px;overflow:hidden;margin:6px 0}
.progress-bar{height:100%;border-radius:99px;background:var(--accent);transition:width .4s ease}

/* ── QUICK ACTIONS ── */
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.quick-card{
  background:var(--surface-2);border:1px solid var(--border);border-radius:13px;
  padding:13px;display:flex;align-items:center;gap:11px;cursor:pointer;
  transition:all .18s ease;
}
.quick-card:hover{background:var(--accent-soft);border-color:var(--accent-medium);transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.quick-card:hover .quick-icon{background:var(--accent);color:#fff;box-shadow:0 4px 14px rgba(99,102,241,0.35);transform:scale(1.08)}
.quick-icon{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;transition:all .18s;flex-shrink:0}
.quick-icon svg{width:14px;height:14px}
.quick-label{font-size:12.5px;font-weight:600;color:var(--text);line-height:1.3}
.quick-sub{font-size:11px;color:var(--text-muted);margin-top:1px}

/* ── MINI CHART ── */
.mini-chart-bars{display:flex;align-items:flex-end;gap:4px;height:52px;padding-top:4px}
.mini-bar{flex:1;border-radius:4px 4px 0 0;background:var(--accent-medium);transition:background .2s;min-width:0;cursor:default;position:relative}
.mini-bar:hover{background:var(--accent)}
.mini-bar-today{background:var(--accent-strong)}
.mini-bar:hover::after{
  content:attr(data-tip);position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);
  background:#1a2035;color:rgba(255,255,255,.9);font-size:10px;padding:3px 7px;border-radius:6px;
  white-space:nowrap;z-index:10;font-family:'Inter',sans-serif;
}
.chart-labels{display:flex;gap:4px;margin-top:4px}
.chart-label{flex:1;font-size:9px;color:var(--text-faint);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── MISC ── */
.admin-badge{display:inline-flex;align-items:center;gap:4px;background:linear-gradient(135deg,#d97706,#dc2626);color:#fff;padding:2px 9px;border-radius:99px;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.profile-header{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.profile-avatar{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,rgba(99,102,241,.22),rgba(99,102,241,.10));border:1.5px solid rgba(99,102,241,.22);display:flex;align-items:center;justify-content:center;font-family:'Inter',sans-serif;font-size:15px;font-weight:700;color:var(--accent);flex-shrink:0}
.profile-name{font-size:14px;font-weight:700;color:var(--text);letter-spacing:-.3px}
.profile-email{font-size:12px;color:var(--text-muted);margin-top:2px}
.code-mono{font-family:'JetBrains Mono',monospace;font-size:11.5px;color:var(--text-muted)}
.token-box{font-family:'JetBrains Mono',monospace;font-size:11px;word-break:break-all;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r);padding:12px;color:var(--text-muted);max-height:72px;overflow-y:auto;margin-top:8px;line-height:1.8}
.webhook-url-box{font-family:'JetBrains Mono',monospace;font-size:11px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r);padding:10px 13px;color:var(--accent);word-break:break-all;line-height:1.7;margin-top:8px}
.event-row{padding:11px 16px;border-bottom:1px solid var(--border);font-size:12.5px}
.event-row:last-child{border-bottom:none}
.event-type{font-size:10.5px;font-weight:700;padding:2px 9px;border-radius:99px;background:var(--accent-light);color:var(--accent)}
.notif-panel{position:absolute;top:calc(100% + 9px);right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);width:305px;z-index:999;overflow:hidden;animation:fadeUp .16s cubic-bezier(.22,1,.36,1)}
.notif-panel.hidden{display:none!important}
.notif-header{padding:12px 15px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;background:var(--surface-2)}
.notif-title{font-size:12.5px;font-weight:600;color:var(--text)}
.notif-body{max-height:300px;overflow-y:auto}
.notif-item{padding:10px 15px;border-bottom:1px solid var(--border);display:flex;gap:10px;align-items:flex-start;transition:background .1s}
.notif-item:hover{background:var(--accent-soft)}
.notif-item:last-child{border-bottom:none}
.notif-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0;margin-top:5px}
.notif-dot.read{background:var(--text-faint)}
.notif-text{font-size:12px;color:var(--text-secondary);line-height:1.5}
.notif-time{font-size:10.5px;color:var(--text-muted);margin-top:2px}
.notif-empty{padding:26px;text-align:center;color:var(--text-muted);font-size:13px}

/* ── RESOURCE ITEMS ── */
.resource-item{
  display:flex;align-items:center;gap:10px;padding:9px 11px;
  border-radius:var(--r);background:var(--surface-2);border:1px solid var(--border);
  transition:all .15s;cursor:default;
}
.resource-item:hover{border-color:var(--accent-medium);background:var(--accent-soft);box-shadow:var(--shadow-sm);}
.resource-item:hover .resource-icon{color:var(--accent)}
.resource-icon{color:var(--text-muted);flex-shrink:0;transition:color .15s}
.resource-label{font-size:12.5px;font-weight:600;color:var(--text)}
.resource-sub{font-size:11px;color:var(--text-muted)}

/* ── AUTH ── */
.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 430px;background:var(--bg);overflow:hidden}
@media(max-width:900px){.auth-wrap{grid-template-columns:1fr}.auth-deco{display:none}}
.auth-deco{position:relative;background:linear-gradient(155deg,#060912 0%,#0d1630 50%,#080e22 100%);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:64px 54px;overflow:hidden}
.auth-deco::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 50% 50% at 15% 35%,rgba(99,102,241,0.16) 0%,transparent 65%),radial-gradient(ellipse 40% 45% at 85% 65%,rgba(139,92,246,0.10) 0%,transparent 55%)}
.auth-deco-inner{position:relative;z-index:1;max-width:400px}
.auth-deco-wordmark{display:flex;align-items:center;gap:11px;margin-bottom:48px}
.auth-deco-icon{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#6366f1,#8b5cf6);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 24px rgba(99,102,241,0.4)}
.auth-deco-brand{font-size:15px;font-weight:700;color:#fff;letter-spacing:-.4px}
.auth-deco-headline{font-size:34px;font-weight:800;color:#fff;letter-spacing:-1.5px;line-height:1.1;margin-bottom:12px}
.auth-deco-headline span{background:linear-gradient(135deg,#a5b4fc,#c4b5fd);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.auth-deco-sub{font-size:13.5px;color:rgba(255,255,255,0.4);line-height:1.75;margin-bottom:40px}
.auth-features{display:flex;flex-direction:column;gap:7px}
.auth-feat{display:flex;align-items:center;gap:11px;padding:10px 13px;border-radius:12px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06);transition:all .2s}
.auth-feat:hover{background:rgba(255,255,255,0.06)}
.auth-feat-icon-wrap{width:30px;height:30px;border-radius:8px;background:rgba(255,255,255,0.05);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.5);flex-shrink:0}
.auth-feat-label{font-size:12px;font-weight:600;color:#fff}
.auth-feat-desc{font-size:10.5px;color:rgba(255,255,255,0.35);margin-top:1px}
.auth-form-panel{background:var(--surface);border-left:1px solid var(--border);display:flex;flex-direction:column;justify-content:center;padding:48px 40px;overflow-y:auto}
@media(max-width:900px){.auth-form-panel{border-left:none;min-height:100vh;padding:40px 24px}}
.auth-box{animation:slideUp .4s cubic-bezier(.22,1,.36,1) both}
.auth-box-logo{display:flex;align-items:center;gap:10px;margin-bottom:28px}
.auth-box-logo-icon{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#6366f1,#8b5cf6);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-accent)}
.auth-box-logo-name{font-size:14.5px;font-weight:700;color:var(--text);letter-spacing:-.3px}
.auth-heading{font-size:22px;font-weight:800;color:var(--text);letter-spacing:-.6px;margin-bottom:5px}
.auth-subheading{font-size:12.5px;color:var(--text-muted);margin-bottom:24px;line-height:1.6}
.auth-field{margin-bottom:12px}
.auth-label{display:block;font-size:11.5px;font-weight:600;color:var(--text-secondary);margin-bottom:5px;letter-spacing:.1px}
.auth-input{width:100%;padding:9px 12px;border:1.5px solid var(--border);border-radius:var(--r-md);background:var(--surface-2);color:var(--text);font-size:13px;font-family:'Inter',sans-serif;transition:all .15s}
.auth-input:hover{border-color:var(--border-strong)}
.auth-input:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-glow);background:var(--surface)}
.auth-input::placeholder{color:var(--text-faint)}
.auth-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.auth-btn{width:100%;padding:10px;margin-top:7px;border-radius:var(--r-md);background:var(--accent);color:#fff;font-size:13px;font-weight:600;font-family:'Inter',sans-serif;border:none;transition:all .18s;box-shadow:var(--shadow-accent);cursor:pointer}
.auth-btn:hover{background:var(--accent-hover);transform:translateY(-1px);box-shadow:0 6px 24px var(--accent-glow)}
.auth-btn:active{transform:scale(.985)}
.auth-btn:disabled{opacity:.5;pointer-events:none}
.auth-switch{font-size:12px;color:var(--text-muted);margin-top:16px;text-align:center}
.auth-switch span{color:var(--accent);cursor:pointer;font-weight:600}
.auth-switch span:hover{text-decoration:underline;text-underline-offset:3px}

/* ── TOOLBAR ── */
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.toolbar-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.toolbar-right{display:flex;align-items:center;gap:6px}

@media(max-width:768px){
  .stats-grid{grid-template-columns:1fr 1fr}
  .quick-grid{grid-template-columns:1fr 1fr}
  .sidebar{position:fixed;top:0;left:0;bottom:0;z-index:500}
  .content{padding:18px 14px}
}
@media(max-width:480px){
  .stats-grid{grid-template-columns:1fr}
}
