﻿:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface2: #f7f9fb;
  --border: #e3e8ef;
  --border2: #c9d2dd;
  --navy: #0f2137;
  --navy2: #1a3250;
  --navy3: #243d5e;
  --blue: #1a56db;
  --blue-light: #ebf0ff;
  --teal: #0694a2;
  --teal-light: #e0f7f9;
  --green: #057a55;
  --green-light: #e3faf1;
  --coral: #e02424;
  --coral-light: #fdf2f2;
  --amber: #c27803;
  --amber-light: #fdf6e3;
  --purple: #6c2bd9;
  --purple-light: #f0ebff;
  --pink: #d61f69;
  --pink-light: #fdf2f8;
  --slate: #64748b;
  --text: #0f2137;
  --text-mid: #3d5166;
  --text-muted: #7a8fa6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

* { margin:0; padding:0; box-sizing:border-box; }
body { background:var(--bg); color:var(--text); font-family:'IBM Plex Sans',sans-serif; font-size:14px; }

/* ===== LOGIN ===== */
.login-bg {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:var(--navy);
  position:relative; overflow:hidden;
}
.login-bg::before {
  content:''; position:absolute; width:600px; height:600px; border-radius:50%;
  background:radial-gradient(circle, rgba(77,148,255,0.10) 0%, transparent 70%);
  top:-100px; right:-100px;
}
.login-bg::after {
  content:''; position:absolute; width:500px; height:500px; border-radius:50%;
  background:radial-gradient(circle, rgba(108,43,217,0.08) 0%, transparent 70%);
  bottom:-150px; left:-100px;
}
.login-grid {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size:50px 50px;
}
.login-card {
  position:relative; z-index:2;
  background:var(--surface); border-radius:16px;
  padding:44px 40px; width:420px; max-width:92vw;
  box-shadow:var(--shadow-lg);
}
.login-header { text-align:center; margin-bottom:34px; }
.login-brand { font-family:'Epilogue',sans-serif; font-size:26px; font-weight:900; color:var(--navy); letter-spacing:-0.5px; }
.login-brand em { color:#4d94ff; font-style:normal; }
.login-sub { font-family:'IBM Plex Mono',monospace; font-size:10px; color:var(--text-muted); letter-spacing:2px; text-transform:uppercase; margin-top:4px; }
.login-title { font-family:'Epilogue',sans-serif; font-size:18px; font-weight:800; color:var(--navy); margin-top:20px; }

/* ===== FORMS ===== */
.fg { margin-bottom:16px; }
.fg label { display:block; font-family:'IBM Plex Mono',monospace; font-size:10px; text-transform:uppercase; letter-spacing:1px; color:var(--text-muted); margin-bottom:6px; }
.fg input, .fg select, .fg textarea {
  width:100%; background:var(--surface2); border:1px solid var(--border); border-radius:8px;
  padding:10px 13px; font-size:13.5px; color:var(--text); font-family:'IBM Plex Sans',sans-serif;
  outline:none; transition:border-color 0.15s;
}
.fg input:focus, .fg select:focus { border-color:var(--blue); background:#fff; }
.fg textarea { resize:vertical; min-height:75px; }
.fg .hint { font-size:11px; color:var(--text-muted); margin-top:4px; font-family:'IBM Plex Mono',monospace; }
.fr { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.fr3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.input-icon-wrap { position:relative; }
.input-icon-wrap input { padding-right:40px; }
.input-icon-btn {
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  background:none; border:none; cursor:pointer; color:var(--text-muted); font-size:16px; padding:4px;
  transition:color 0.15s;
}
.input-icon-btn:hover { color:var(--text); }

/* ===== BUTTONS ===== */
.btn { display:inline-flex; align-items:center; gap:6px; padding:9px 18px; border-radius:8px; border:none; cursor:pointer; font-size:13px; font-weight:600; font-family:'IBM Plex Sans',sans-serif; transition:all 0.15s; text-decoration:none; white-space:nowrap; }
.btn-primary { background:var(--blue); color:#fff; }
.btn-primary:hover { background:#1447c0; transform:translateY(-1px); box-shadow:0 4px 14px rgba(26,86,219,0.3); }
.btn-primary-full { background:var(--blue); color:#fff; width:100%; justify-content:center; padding:12px; font-size:14px; }
.btn-primary-full:hover { background:#1447c0; }
.btn-teal { background:var(--teal); color:#fff; }
.btn-teal:hover { background:#057a85; }
.btn-green { background:var(--green); color:#fff; }
.btn-green:hover { background:#046644; }
.btn-ghost { background:var(--surface); border:1px solid var(--border); color:var(--text-mid); }
.btn-ghost:hover { border-color:var(--border2); color:var(--text); }
.btn-danger-soft { background:var(--coral-light); color:var(--coral); border:1px solid rgba(224,36,36,0.15); }
.btn-danger-soft:hover { background:var(--coral); color:#fff; }
.btn-sm { padding:6px 13px; font-size:12px; }
.btn-xs { padding:4px 10px; font-size:11px; border-radius:6px; }

/* ===== ALERT ===== */
.alert { padding:12px 16px; border-radius:9px; display:flex; align-items:flex-start; gap:10px; font-size:13px; margin-bottom:14px; }
.alert-icon { font-size:16px; flex-shrink:0; margin-top:1px; }
.alert-coral { background:var(--coral-light); border:1px solid rgba(224,36,36,0.2); color:#9b1c1c; }
.alert-amber { background:var(--amber-light); border:1px solid rgba(194,120,3,0.2); color:#92400e; }
.alert-blue { background:var(--blue-light); border:1px solid rgba(26,86,219,0.2); color:#1e40af; }
.alert-green { background:var(--green-light); border:1px solid rgba(5,122,85,0.2); color:#03543f; }

/* ===== APP LAYOUT ===== */
.app-wrap { display:flex; min-height:100vh; }
.sidebar-toggle {
  display:none;
  position:fixed;
  top:12px;
  left:12px;
  z-index:360;
  width:42px;
  height:42px;
  border:none;
  border-radius:12px;
  background:var(--navy);
  box-shadow:var(--shadow);
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-direction:column;
  cursor:pointer;
}
.sidebar-toggle span {
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background:#fff;
}
.sidebar-backdrop {
  display:none;
  position:fixed;
  inset:0;
  background:rgba(15,33,55,0.42);
  z-index:320;
}

/* ===== SIDEBAR ===== */
aside {
  width:252px; min-width:252px;
  background:var(--navy);
  display:flex; flex-direction:column;
  position:sticky; top:0; height:100vh;
  overflow-y:auto; z-index:200;
}
.logo-wrap { padding:26px 22px 22px; border-bottom:1px solid rgba(255,255,255,0.06); }
.logo-wrap .system { font-family:'Epilogue',sans-serif; font-size:21px; font-weight:900; color:#fff; letter-spacing:-0.5px; }
.logo-wrap .system em { color:#4d94ff; font-style:normal; }
.logo-wrap .version { font-family:'IBM Plex Mono',monospace; font-size:9px; color:rgba(255,255,255,0.25); letter-spacing:2px; text-transform:uppercase; margin-top:3px; }
.nav-label { font-family:'IBM Plex Mono',monospace; font-size:9px; color:rgba(255,255,255,0.22); text-transform:uppercase; letter-spacing:2px; padding:18px 22px 6px; }
nav a {
  display:flex; align-items:center; gap:11px;
  padding:10px 22px; color:rgba(255,255,255,0.45);
  text-decoration:none; font-size:13px; font-weight:400;
  cursor:pointer; transition:all 0.15s;
  border-left:3px solid transparent;
}
nav a:hover { color:rgba(255,255,255,0.8); background:rgba(255,255,255,0.04); }
nav a.active { color:#fff; background:rgba(77,148,255,0.14); border-left-color:#4d94ff; }
nav a .ni { width:28px; height:28px; border-radius:7px; background:rgba(255,255,255,0.05); display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
nav a.active .ni { background:rgba(77,148,255,0.2); }
nav a .nb { background:var(--coral); color:#fff; font-size:9px; padding:1px 6px; border-radius:8px; font-family:'IBM Plex Mono',monospace; margin-left:auto; }
.sidebar-nav { display:grid; gap:10px; padding-bottom:18px; }
.sidebar-group { display:grid; gap:6px; }
.sidebar-group-title {
  padding:0 22px;
  color:rgba(255,255,255,0.24);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-family:'IBM Plex Mono',monospace;
}
.sidebar-subnav { display:grid; gap:2px; }
.sidebar-subnav a { padding-left:22px; }
.sidebar-subnav a .nav-text { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.sidebar-bottom { margin-top:auto; padding:16px 22px; border-top:1px solid rgba(255,255,255,0.06); display:flex; align-items:center; gap:10px; cursor:pointer; transition:background 0.15s; }
.sidebar-bottom:hover { background:rgba(255,255,255,0.04); }
.sb-avatar { width:34px; height:34px; border-radius:9px; background:linear-gradient(135deg,#4d94ff,#1a56db); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12px; color:#fff; flex-shrink:0; }
.sb-info { flex:1; min-width:0; }
.sb-info strong { display:block; font-size:12px; color:#fff; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-info span { font-size:11px; color:rgba(255,255,255,0.3); }
.sb-logout { background:none; border:none; color:rgba(255,255,255,0.3); cursor:pointer; font-size:16px; padding:4px; transition:color 0.15s; }
.sb-logout:hover { color:var(--coral); }

/* ===== MAIN ===== */
main { flex:1; overflow-y:auto; min-width:0; }
.page { display:none; animation:fadeUp 0.25s ease; }
.page.active { display:block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* ===== TOPBAR ===== */
.topbar {
  background:var(--surface); border-bottom:1px solid var(--border);
  padding:0 36px; height:60px;
  display:flex; align-items:center; justify-content:space-between;
  position:sticky; top:0; z-index:100; box-shadow:var(--shadow-sm);
}
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:13px; }
.breadcrumb .bc-root { color:var(--text-muted); cursor:pointer; }
.breadcrumb .bc-root:hover { color:var(--blue); }
.breadcrumb .bc-sep { color:var(--border2); }
.breadcrumb .bc-cur { color:var(--text); font-weight:600; }
.topbar-actions { display:flex; gap:8px; align-items:center; }

/* ===== CONTENT ===== */
.content { padding:30px 36px; }
.section-hdr { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:24px; }
.section-hdr h1 { font-family:'Epilogue',sans-serif; font-size:24px; font-weight:900; letter-spacing:-0.5px; color:var(--navy); }
.section-hdr p { font-size:12px; color:var(--text-muted); margin-top:5px; font-family:'IBM Plex Mono',monospace; }

/* ===== STAT STRIP ===== */
.stat-strip { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:24px; }
.stat-box { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:18px 20px; box-shadow:var(--shadow-sm); position:relative; overflow:hidden; }
.stat-box::after { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; border-radius:12px 0 0 12px; }
.stat-box.blue::after{background:var(--blue)} .stat-box.teal::after{background:var(--teal)}
.stat-box.green::after{background:var(--green)} .stat-box.amber::after{background:var(--amber)}
.stat-box.purple::after{background:var(--purple)} .stat-box.coral::after{background:var(--coral)}
.stat-val { font-family:'Epilogue',sans-serif; font-size:28px; font-weight:900; letter-spacing:-1px; color:var(--navy); line-height:1; }
.stat-lbl { font-size:11px; color:var(--text-muted); margin-top:5px; font-family:'IBM Plex Mono',monospace; text-transform:uppercase; letter-spacing:0.5px; }
.stat-sub { font-size:11.5px; color:var(--text-muted); margin-top:6px; }

/* ===== CARD ===== */
.card { background:var(--surface); border:1px solid var(--border); border-radius:13px; box-shadow:var(--shadow-sm); }
.card-hdr { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid var(--border); }
.card-title { font-family:'Epilogue',sans-serif; font-size:14px; font-weight:800; color:var(--navy); }
.card-body { padding:22px; }
.mb18 { margin-bottom:18px; }
.mt18 { margin-top:18px; }

/* ===== BADGES ===== */
.badge { display:inline-flex; align-items:center; gap:4px; padding:3px 9px; border-radius:20px; font-size:11px; font-weight:600; font-family:'IBM Plex Mono',monospace; white-space:nowrap; }
.badge-blue{background:var(--blue-light);color:var(--blue)}
.badge-teal{background:var(--teal-light);color:var(--teal)}
.badge-green{background:var(--green-light);color:var(--green)}
.badge-amber{background:var(--amber-light);color:var(--amber)}
.badge-coral{background:var(--coral-light);color:var(--coral)}
.badge-purple{background:var(--purple-light);color:var(--purple)}
.badge-pink{background:var(--pink-light);color:var(--pink)}
.badge-gray{background:var(--surface2);color:var(--text-muted);border:1px solid var(--border)}
.badge-navy{background:var(--navy);color:#fff}

/* ===== TABLE ===== */
.tbl { width:100%; border-collapse:collapse; }
.tbl th { text-align:left; font-family:'IBM Plex Mono',monospace; font-size:10px; text-transform:uppercase; letter-spacing:1px; color:var(--text-muted); padding:10px 16px; border-bottom:1px solid var(--border); font-weight:400; background:var(--surface2); }
.tbl td { padding:12px 16px; border-bottom:1px solid var(--border); font-size:13px; vertical-align:middle; }
.tbl tr:last-child td { border-bottom:none; }
.tbl tbody tr:hover td { background:#fafbfd; }
.tbl td.mono { font-family:'IBM Plex Mono',monospace; font-size:12px; }

/* ===== PERSON CELL ===== */
.pcell { display:flex; align-items:center; gap:10px; }
.av { width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#fff; flex-shrink:0; }
.pname { font-weight:700; font-size:13px; color:var(--navy); }
.pmeta { font-size:11px; color:var(--text-muted); font-family:'IBM Plex Mono',monospace; }

/* ===== TOOLBAR ===== */
.toolbar { display:flex; align-items:center; gap:10px; margin-bottom:18px; flex-wrap:wrap; }
.searchbox { display:flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:8px 13px; flex:1; max-width:320px; transition:border-color 0.15s; }
.searchbox:focus-within { border-color:var(--blue); }
.searchbox input { border:none; outline:none; background:transparent; font-size:13px; color:var(--text); flex:1; font-family:'IBM Plex Sans',sans-serif; }
.searchbox span { color:var(--text-muted); font-size:15px; }
.fsel { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:8px 13px; font-size:13px; color:var(--text-mid); font-family:'IBM Plex Sans',sans-serif; cursor:pointer; outline:none; }
.fsel:focus { border-color:var(--blue); }

/* ===== GRIDS ===== */
.g2 { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.g3 { display:grid; grid-template-columns:2fr 1fr; gap:18px; margin-bottom:18px; }
.g4 { display:grid; grid-template-columns:3fr 2fr; gap:18px; margin-bottom:18px; }

/* ===== TABS ===== */
.tabs { display:flex; gap:2px; background:var(--surface2); border:1px solid var(--border); border-radius:10px; padding:3px; width:fit-content; margin-bottom:22px; }
.tab-btn { padding:8px 18px; border:none; background:transparent; border-radius:7px; font-size:13px; font-family:'IBM Plex Sans',sans-serif; cursor:pointer; color:var(--text-muted); font-weight:500; transition:all 0.15s; }
.tab-btn.active { background:var(--surface); color:var(--navy); box-shadow:var(--shadow-sm); font-weight:700; }

/* ===== MODAL ===== */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(15,33,55,0.55); backdrop-filter:blur(3px); z-index:1000; align-items:center; justify-content:center; padding:20px; }
.modal-overlay.open { display:flex; }
.modal { background:var(--surface); border-radius:16px; width:600px; max-width:100%; max-height:90vh; overflow-y:auto; box-shadow:var(--shadow-lg); animation:modalIn 0.25s ease; }
.modal-wide { width:760px; }
.modal-xl { width:900px; }
@keyframes modalIn { from{opacity:0;transform:scale(0.96) translateY(10px)} to{opacity:1;transform:none} }
.modal-hdr { padding:22px 26px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; background:var(--surface); z-index:10; border-radius:16px 16px 0 0; }
.modal-hdr h2 { font-family:'Epilogue',sans-serif; font-size:17px; font-weight:900; color:var(--navy); }
.modal-close { width:30px; height:30px; border-radius:7px; background:var(--surface2); border:1px solid var(--border); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:16px; color:var(--text-muted); transition:all 0.15s; }
.modal-close:hover { background:var(--coral-light); color:var(--coral); }
.modal-body { padding:24px 26px; }
.modal-footer { padding:16px 26px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; position:sticky; bottom:0; background:var(--surface); border-radius:0 0 16px 16px; }
.modal-footer.no-stick { position:static; padding:16px 0 0; border-top:none; background:transparent; border-radius:0; }

/* ===== PERMISOS MATRIX ===== */
.perm-module { margin-bottom:18px; }
.perm-module-title { font-family:'Epilogue',sans-serif; font-size:12px; font-weight:800; color:var(--navy); text-transform:uppercase; letter-spacing:0.3px; margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.perm-module-title::after { content:''; flex:1; height:1px; background:var(--border); }
.perm-item { display:flex; align-items:center; justify-content:space-between; padding:8px 12px; border-radius:7px; margin-bottom:4px; transition:background 0.1s; }
.perm-item:hover { background:var(--surface2); }
.perm-label { font-size:13px; color:var(--text-mid); }
.perm-toggle { position:relative; width:38px; height:22px; cursor:pointer; }
.perm-toggle input { opacity:0; width:0; height:0; }
.perm-slider { position:absolute; inset:0; background:var(--border2); border-radius:22px; transition:all 0.2s; }
.perm-slider::before { content:''; position:absolute; width:16px; height:16px; border-radius:50%; background:#fff; left:3px; top:3px; transition:all 0.2s; box-shadow:var(--shadow-sm); }
.perm-toggle input:checked + .perm-slider { background:var(--blue); }
.perm-toggle input:checked + .perm-slider::before { transform:translateX(16px); }

/* ===== AUDIT LOG ===== */
.log-item { display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--border); }
.log-item:last-child { border-bottom:none; }
.log-dot { width:10px; height:10px; border-radius:50%; margin-top:5px; flex-shrink:0; }
.log-dot.auth { background:var(--blue); }
.log-dot.crear { background:var(--green); }
.log-dot.editar { background:var(--amber); }
.log-dot.alerta { background:var(--coral); }
.log-dot.eliminar { background:var(--coral); }
.log-info { flex:1; min-width:0; }
.log-action { font-weight:600; font-size:13px; color:var(--navy); }
.log-detail { font-size:12px; color:var(--text-muted); margin-top:2px; }
.log-time { font-size:11px; color:var(--text-muted); font-family:'IBM Plex Mono',monospace; flex-shrink:0; white-space:nowrap; }

/* ===== ROLE CARD ===== */
.role-card { display:block; text-decoration:none; color:inherit; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:18px 20px; margin-bottom:12px; cursor:pointer; transition:all 0.15s; box-shadow:var(--shadow-sm); position:relative; overflow:hidden; }
.role-card:hover { border-color:var(--blue); transform:translateY(-1px); box-shadow:var(--shadow); }
.role-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(180deg, var(--blue), #7bb0ff); }
.role-card.is-selected { border-color:var(--blue); background:linear-gradient(180deg,#fbfdff 0%, #f2f7ff 100%); box-shadow:var(--shadow); }
.role-card.is-selected::before { width:6px; background:linear-gradient(180deg, var(--amber), #ffc95f); }
.role-name { font-family:'Epilogue',sans-serif; font-size:15px; font-weight:800; color:var(--navy); }
.role-meta { font-size:11px; color:var(--text-muted); margin-top:4px; font-family:'IBM Plex Mono',monospace; }
.role-perms { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }

/* ===== PASSWORD STRENGTH ===== */
.pass-strength { display:flex; gap:4px; margin-top:6px; height:4px; }
.pass-bar { flex:1; border-radius:2px; background:var(--border); transition:background 0.3s; }
.pass-bar.active.weak { background:var(--coral); }
.pass-bar.active.medium { background:var(--amber); }
.pass-bar.active.strong { background:var(--green); }
.pass-text { font-size:11px; margin-top:4px; font-family:'IBM Plex Mono',monospace; }

/* ===== PROFILE HERO ===== */
.profile-hero { background:linear-gradient(135deg,var(--navy) 0%,var(--navy2) 60%,#1a3d6b 100%); border-radius:14px; padding:26px; display:flex; align-items:center; gap:22px; margin-bottom:20px; position:relative; overflow:hidden; }
.profile-hero::before { content:''; position:absolute; right:-30px; top:-30px; width:180px; height:180px; background:rgba(77,148,255,0.08); border-radius:50%; }
.ph-avatar { width:72px; height:72px; border-radius:16px; background:rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:900; font-family:'Epilogue',sans-serif; color:#fff; flex-shrink:0; border:2px solid rgba(255,255,255,0.2); }
.ph-info { flex:1; }
.ph-info h2 { font-family:'Epilogue',sans-serif; font-size:22px; font-weight:900; color:#fff; letter-spacing:-0.3px; }
.ph-info .ph-sub { font-size:12px; color:rgba(255,255,255,0.5); margin-top:4px; font-family:'IBM Plex Mono',monospace; }
.ph-badges { display:flex; gap:7px; margin-top:10px; flex-wrap:wrap; }
.ph-badge { padding:3px 10px; border-radius:6px; font-size:11px; font-family:'IBM Plex Mono',monospace; background:rgba(255,255,255,0.12); color:rgba(255,255,255,0.8); }
.ph-stats { display:flex; gap:12px; margin-left:auto; }
.ph-stat { background:rgba(255,255,255,0.08); border-radius:10px; padding:12px 18px; text-align:center; min-width:80px; }
.ph-stat-v { font-family:'Epilogue',sans-serif; font-size:20px; font-weight:900; color:#fff; }
.ph-stat-l { font-size:9px; color:rgba(255,255,255,0.4); font-family:'IBM Plex Mono',monospace; text-transform:uppercase; letter-spacing:0.5px; margin-top:2px; }

/* ===== TOAST ===== */
.toast { position:fixed; bottom:24px; right:24px; background:var(--navy); color:#fff; padding:13px 18px; border-radius:11px; font-size:13px; box-shadow:var(--shadow-lg); display:none; align-items:center; gap:9px; z-index:9999; animation:toastIn 0.3s ease; max-width:380px; }
.toast.show { display:flex; }
@keyframes toastIn { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border2); border-radius:4px; }

/* ===== UTILS ===== */
.divider { border:none; border-top:1px solid var(--border); margin:20px 0; }
.tab-content { display:none; }
.tab-content.active { display:block; }
.text-center { text-align:center; }
.actions-cell { display:flex; gap:4px; }

/* ===== LOGIN ===== */
.login-shell { min-height:100vh; display:grid; place-items:center; padding:36px 18px; background:
  radial-gradient(circle at top left, rgba(255,183,77,0.18), transparent 28%),
  radial-gradient(circle at bottom right, rgba(77,148,255,0.16), transparent 30%),
  linear-gradient(180deg, #f7f4ec 0%, #eef3f8 100%); }
.login-panel { width:min(980px, 100%); display:grid; grid-template-columns:1.15fr 0.85fr; gap:24px; align-items:stretch; }
.login-brand { border:1px solid var(--border); border-radius:24px; padding:38px; background:
  linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,247,228,0.98) 100%);
  box-shadow:var(--shadow); display:flex; flex-direction:column; justify-content:center; }
.login-brand h1 { font-family:'Epilogue',sans-serif; font-size:42px; line-height:1; letter-spacing:-1.2px; color:var(--navy); margin:12px 0; }
.login-brand p { max-width:42ch; color:var(--text-mid); font-size:15px; line-height:1.6; }
.login-card { border:1px solid var(--border); border-radius:24px; overflow:hidden; background:rgba(255,255,255,0.96); box-shadow:var(--shadow-lg); }
.login-form { display:grid; gap:16px; }
.login-submit { width:100%; justify-content:center; min-height:48px; margin-top:4px; }
.login-help { margin-top:18px; padding:14px 16px; border-radius:14px; border:1px solid #d9e5f2; background:#f5f9fe; color:var(--text-mid); display:grid; gap:4px; font-size:13px; }
.login-help code { font-family:'IBM Plex Mono',monospace; color:var(--navy); }

@media (max-width: 860px) {
  .login-panel { grid-template-columns:1fr; }
  .login-brand { padding:28px; }
  .login-brand h1 { font-size:34px; }
}

