*{margin:0;padding:0;box-sizing:border-box}
:root{--bg:#0B0E14;--card:#12161F;--border:#1E2330;--text:#E6EDF3;--text2:#8B949E;--purple:#8B5CF6;
  --blue:#3B82F6;--green:#22C55E;--red:#EF4444;--orange:#F59E0B;--gold:#C4A265}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--text);min-height:100vh}

/* ═══ TOPBAR ═══ */
.topbar{display:flex;align-items:center;justify-content:space-between;padding:16px 32px;
  border-bottom:1px solid var(--border);background:var(--card)}
.topbar-left{display:flex;align-items:center;gap:12px}
.topbar-left .logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#6366F1,#8B5CF6);
  display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;font-size:14px}
.topbar-left h1{font-size:18px;font-weight:700;letter-spacing:-.3px}
.topbar-left span{font-size:12px;color:var(--text2);margin-left:8px;background:rgba(139,92,246,.15);
  padding:2px 8px;border-radius:4px;color:var(--purple);font-weight:600}
.topbar-right{display:flex;align-items:center;gap:16px}
.topbar-right .btn-dash{padding:8px 16px;border-radius:8px;border:1px solid var(--border);
  background:transparent;color:var(--text2);font-size:12px;font-weight:600;cursor:pointer;
  font-family:inherit;transition:all .2s}
.topbar-right .btn-dash:hover{background:rgba(255,255,255,.05);color:var(--text)}
.topbar-right .user-chip{display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:8px;
  background:rgba(255,255,255,.04);font-size:13px}
.topbar-right .user-chip .avatar{width:26px;height:26px;border-radius:50%;background:var(--gold);
  display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#1A1814}
.btn-logout{background:none;border:none;color:var(--text2);cursor:pointer;font-size:16px;
  transition:color .2s}
.btn-logout:hover{color:var(--red)}

/* ═══ TABS ═══ */
.tabs{display:flex;gap:4px;padding:12px 32px;border-bottom:1px solid var(--border);background:var(--card)}
.tab{padding:8px 20px;border-radius:8px;font-size:13px;font-weight:600;color:var(--text2);
  cursor:pointer;border:none;background:none;font-family:inherit;transition:all .2s}
.tab:hover{color:var(--text);background:rgba(255,255,255,.04)}
.tab.active{color:#fff;background:var(--purple)}
.tab .tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;
  height:18px;border-radius:9px;background:rgba(255,255,255,.1);font-size:10px;margin-left:6px;
  padding:0 5px}
.tab.active .tab-count{background:rgba(255,255,255,.2)}

/* ═══ CONTENT ═══ */
.content{padding:24px 32px;max-width:1200px;margin:0 auto}
.panel{display:none}
.panel.active{display:block}

/* ═══ STATS GRID ═══ */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
.stat-card{padding:20px;border-radius:12px;background:var(--card);border:1px solid var(--border)}
.stat-card .label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--text2);font-weight:600}
.stat-card .value{font-size:32px;font-weight:800;margin-top:4px}
.stat-card .sub{font-size:12px;color:var(--text2);margin-top:4px}
.stat-card.purple .value{color:var(--purple)}
.stat-card.blue .value{color:var(--blue)}
.stat-card.green .value{color:var(--green)}
.stat-card.orange .value{color:var(--orange)}

/* ═══ TABLE ═══ */
.table-card{background:var(--card);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.table-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;
  border-bottom:1px solid var(--border)}
.table-header h3{font-size:15px;font-weight:700}
.btn-add{padding:8px 16px;border-radius:8px;border:none;background:var(--purple);color:#fff;
  font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .2s}
.btn-add:hover{filter:brightness(1.1);transform:translateY(-1px)}
table{width:100%;border-collapse:collapse}
th{text-align:left;padding:10px 20px;font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;color:var(--text2);border-bottom:1px solid var(--border)}
td{padding:12px 20px;font-size:13px;border-bottom:1px solid var(--border)}
tr:last-child td{border-bottom:none}
tr:hover td{background:rgba(255,255,255,.02)}
.role-badge{display:inline-block;padding:3px 10px;border-radius:6px;font-size:11px;font-weight:700;text-transform:uppercase}
.role-badge.admin{background:rgba(239,68,68,.15);color:#FCA5A5}
.role-badge.editor{background:rgba(59,130,246,.15);color:#93C5FD}
.role-badge.viewer{background:rgba(34,197,94,.15);color:#86EFAC}
.btn-action{padding:4px 10px;border-radius:6px;border:1px solid var(--border);background:none;
  color:var(--text2);font-size:11px;cursor:pointer;font-family:inherit;margin-right:4px;transition:all .15s}
.btn-action:hover{background:rgba(255,255,255,.06);color:var(--text)}
.btn-action.danger:hover{background:rgba(239,68,68,.15);color:var(--red);border-color:rgba(239,68,68,.3)}

/* ═══ MODAL ═══ */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:100;
  align-items:center;justify-content:center;backdrop-filter:blur(4px)}
.modal-overlay.show{display:flex}
.modal{width:400px;background:var(--card);border:1px solid var(--border);border-radius:16px;padding:28px}
.modal h3{font-size:16px;font-weight:700;margin-bottom:20px}
.modal .field{margin-bottom:16px}
.modal .field label{display:block;font-size:12px;font-weight:600;color:var(--text2);
  text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}
.modal .field input,.modal .field select{width:100%;padding:10px 14px;border-radius:8px;
  border:1px solid var(--border);background:rgba(255,255,255,.05);color:var(--text);
  font-size:14px;font-family:inherit;outline:none}
.modal .field input:focus,.modal .field select:focus{border-color:var(--purple)}
.modal .actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.modal .btn-cancel{padding:8px 16px;border-radius:8px;border:1px solid var(--border);
  background:none;color:var(--text2);font-size:13px;font-weight:600;cursor:pointer;font-family:inherit}
.modal .btn-submit{padding:8px 20px;border-radius:8px;border:none;background:var(--purple);
  color:#fff;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit}

/* ═══ EMPTY ═══ */
.empty{text-align:center;padding:60px 20px;color:var(--text2)}
.empty .icon{font-size:48px;margin-bottom:12px;opacity:.3}
.empty p{font-size:14px}

@media(max-width:768px){.stats{grid-template-columns:repeat(2,1fr)}.content{padding:16px}}