:root {
  --bg: #03060e;
  --bg-card: rgba(10, 16, 30, 0.92);
  --bg-card-alt: rgba(6, 11, 22, 0.85);
  --border: rgba(56, 189, 248, 0.16);
  --border-strong: rgba(56, 189, 248, 0.35);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #38bdf8;
  --indigo: #6366f1;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --purple: #a855f7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

code, pre, .mono {
  font-family: 'JetBrains Mono', monospace;
}

.hidden {
  display: none !important;
}

.muted-sm {
  font-size: 12px;
  color: var(--muted);
}

/* Ambient Background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}
.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 { top: -180px; left: -120px; background: rgba(56, 189, 248, 0.11); }
.glow-2 { bottom: -180px; right: -120px; background: rgba(16, 185, 129, 0.09); }

/* ==========================================================================
   AUTH & FIRST-USER SETUP
   ========================================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 5, 12, 0.88);
  backdrop-filter: blur(18px);
}
.auth-card {
  width: 100%;
  max-width: 620px;
  background: linear-gradient(165deg, rgba(13, 20, 38, 0.97), rgba(6, 10, 22, 0.99));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}
.login-card { max-width: 460px; }

.auth-brand { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.brand-logo {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.brand-logo svg { width: 25px; height: 25px; }
.brand-logo.sm { width: 38px; height: 38px; border-radius: 10px; }
.brand-logo.sm svg { width: 20px; height: 20px; }

.logo-pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.45; }
}

.auth-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.auth-brand h1 { font-size: 22px; font-weight: 800; margin-bottom: 5px; }
.auth-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }

.db-pill-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
  font-size: 12px;
  color: #d1fae5;
  margin-bottom: 18px;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.online { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: pulseDot 1.8s infinite; }

.auth-form { display: flex; flex-direction: column; gap: 13px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 600; color: #cbd5e1; }

input, select {
  background: rgba(4, 9, 20, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--text);
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 13px;
  outline: none;
}
input:focus, select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.auth-error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fecdd3;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-lg { padding: 13px 18px; font-size: 14px; }

/* ==========================================================================
   MAIN SHELL & SIDEBAR
   ========================================================================== */
.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(6, 10, 20, 0.96);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand-title { font-weight: 800; font-size: 15px; letter-spacing: 0.04em; }
.brand-sub { font-size: 11px; color: var(--cyan); font-family: 'JetBrains Mono', monospace; }

.nav-section-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
  padding: 0 6px;
}

.side-nav { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.nav-item:hover { background: rgba(56, 189, 248, 0.07); color: #fff; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(16, 185, 129, 0.14));
  border-color: rgba(56, 189, 248, 0.38);
  color: #fff;
}
.nav-pill {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
}
.nav-pill.live { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.nav-pill.shield { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.nav-pill.warn { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }

.sidebar-status-box {
  background: rgba(11, 18, 34, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 11px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}
.ss-title { font-size: 10px; font-weight: 800; color: var(--cyan); letter-spacing: 0.07em; margin-bottom: 2px; }
.ss-row { display: flex; justify-content: space-between; color: var(--muted); }

.txt-cyan { color: var(--cyan); }
.txt-green { color: var(--emerald); }
.txt-amber { color: var(--amber); }
.txt-rose { color: var(--rose); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.user-meta { flex: 1; overflow: hidden; }
.user-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; color: var(--cyan); font-weight: 700; }
.btn-icon {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

/* ==========================================================================
   TOP 5-KPI STRIP
   ========================================================================== */
.main-area { display: flex; flex-direction: column; min-width: 0; }

.kpi-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.1fr 0.9fr;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(6, 10, 20, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.kpi-box {
  background: rgba(12, 19, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-box.shield-kpi { border-color: rgba(16, 185, 129, 0.35); background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(12, 19, 36, 0.9)); }
.kpi-box.rx-kpi { border-color: rgba(56, 189, 248, 0.32); }
.kpi-box.tx-kpi { border-color: rgba(16, 185, 129, 0.32); }

.kpi-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.kpi-val-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.kpi-val-row strong {
  font-size: 15px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}
.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   TAB VIEWS & OVERVIEW LAYOUT
   ========================================================================== */
.tab-view {
  display: none;
  padding: 18px 22px;
  flex-direction: column;
  gap: 16px;
}
.tab-view.active { display: flex; }

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.panel-head h2 { font-size: 17px; font-weight: 800; margin-bottom: 3px; }
.panel-head h3 { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.panel-head p { font-size: 12px; color: var(--muted); }

.legend-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lpill i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lpill.rx i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.lpill.tx i { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.lpill.drop i { background: var(--rose); box-shadow: 0 0 8px var(--rose); }
.lpill.db i { background: var(--purple); box-shadow: 0 0 8px var(--purple); }

/* Overview Top Grid: Canvas + Node Inspector */
.overview-top-grid {
  display: grid;
  grid-template-columns: 1fr 365px;
  gap: 16px;
  align-items: stretch;
}

.canvas-stage {
  position: relative;
  width: 100%;
  height: 76vh;
  min-height: 640px;
  background: radial-gradient(circle at 45% 50%, rgba(14, 24, 48, 0.9), rgba(4, 8, 17, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 13px;
  overflow: hidden;
}
.canvas-stage.fullscreen {
  position: fixed;
  inset: 12px;
  z-index: 80;
  height: auto;
  min-height: 0;
}
.zoom-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
}
.zoom-toolbar button {
  background: rgba(8, 14, 28, 0.92);
  color: #e2e8f0;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
#zoom-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #7dd3fc; }

#network-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

/* Inspector Panel */
.inspector-panel {
  border-color: var(--border-strong);
  justify-content: space-between;
}
.insp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.insp-vmid-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.14);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.insp-top h3 { font-size: 19px; font-weight: 800; }

.state-badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.state-badge.running { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.state-badge.stopped { background: rgba(244, 63, 94, 0.18); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.4); }

.insp-live-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.meter-box {
  padding: 10px 11px;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meter-box.rx { background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3); }
.meter-box.tx { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); }
.meter-label { font-size: 9.5px; font-weight: 800; color: var(--muted); }
.meter-val { font-size: 15px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.meter-sub { font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

.insp-details {
  background: var(--bg-card-alt);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}
.d-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.d-row span:first-child { color: var(--muted); }

.insp-subhead {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.perm-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.24);
  color: #e0f2fe;
}
.perm-tag.root {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-weight: 700;
}

.ipmi-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.btn-ipmi {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.14s;
}
.btn-ipmi.start { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.btn-ipmi.reboot { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.4); color: #7dd3fc; }
.btn-ipmi.shutdown { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.4); color: #fcd34d; }
.btn-ipmi.reset { background: rgba(168, 85, 247, 0.14); border-color: rgba(168, 85, 247, 0.4); color: #d8b4fe; }
.btn-ipmi.stop { background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.4); color: #fda4af; }
.btn-ipmi.snap { background: rgba(99, 102, 241, 0.14); border-color: rgba(99, 102, 241, 0.4); color: #a5b4fc; }
.btn-ipmi:hover { filter: brightness(1.22); transform: translateY(-1px); }

/* Overview Bottom Grid: Bandwidth Chart + Live VM Table */
.overview-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
}

#traffic-chart-canvas {
  width: 100%;
  height: 215px;
  display: block;
}

.chart-badges { display: flex; gap: 8px; }
.cbadge { font-size: 11.5px; padding: 4px 9px; border-radius: 7px; font-family: 'JetBrains Mono', monospace; }
.cbadge.rx { background: rgba(56, 189, 248, 0.12); color: var(--cyan); }
.cbadge.tx { background: rgba(16, 185, 129, 0.12); color: var(--emerald); }

.mini-gauges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mgauge { display: flex; flex-direction: column; gap: 5px; }
.mg-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.mg-top strong { color: var(--text); font-family: 'JetBrains Mono', monospace; }
.mg-bar { height: 6px; background: rgba(255, 255, 255, 0.07); border-radius: 999px; overflow: hidden; }
.mg-fill { height: 100%; width: 0%; transition: width 0.35s; }
.mg-fill.cyan { background: var(--cyan); }
.mg-fill.indigo { background: var(--indigo); }
.mg-fill.emerald { background: var(--emerald); }
.mg-fill.amber { background: var(--amber); }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  white-space: nowrap;
}
.data-table th {
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compact-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.compact-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}
.compact-table tbody tr.selected-row {
  background: rgba(56, 189, 248, 0.14);
}

/* ==========================================================================
   TAB 2: PERIMETER FIREWALL & CYBER-DEFENSE
   ========================================================================== */
.posture-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-posture {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-posture.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--emerald);
  color: #6ee7b7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}
.btn-posture.warn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--amber);
  color: #fde68a;
}
.btn-posture.danger.active {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--rose);
  color: #fecdd3;
}

.threat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.threat-card {
  background: var(--bg-card-alt);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.t-label { font-size: 9.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.05em; }
.t-val { font-size: 22px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.threat-card small { font-size: 10.5px; color: #64748b; }

.security-split-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}
.security-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; }

/* ==========================================================================
   TAB 3, 4, 5
   ========================================================================== */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.section-header h2 { font-size: 19px; font-weight: 800; margin-bottom: 3px; }
.section-header p { font-size: 12.5px; color: var(--muted); }

.chassis-grid, .maint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.blade-card, .maint-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.maint-card.in-maint {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.08), rgba(10, 16, 30, 0.94));
}
.blade-top, .maint-top { display: flex; justify-content: space-between; align-items: center; }
.blade-u {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}
.blade-leds { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.maint-domain { font-size: 14.5px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.maint-cat { font-size: 12px; color: var(--muted); }

.global-maint-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-danger {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.diag-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.diag-controls input { width: 170px; }

.terminal-box {
  background: #02050b;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 11px;
  padding: 13px;
  color: #a7f3d0;
  font-size: 11.5px;
  line-height: 1.5;
  min-height: 240px;
  max-height: 380px;
  overflow: auto;
  white-space: pre-wrap;
}

.users-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.sep { border: none; border-top: 1px solid rgba(255, 255, 255, 0.07); margin: 8px 0; }
.mini-form { display: flex; flex-direction: column; gap: 9px; }
.audit-list { display: flex; flex-direction: column; gap: 7px; max-height: 460px; overflow-y: auto; }
.audit-item {
  background: var(--bg-card-alt);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.audit-top { display: flex; justify-content: space-between; font-weight: 700; }

.toast {
  position: fixed;
  bottom: 22px;
  right: 24px;
  z-index: 200;
  background: rgba(13, 21, 40, 0.97);
  border: 1px solid var(--cyan);
  color: #fff;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

@media (max-width: 1300px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .overview-top-grid, .overview-bottom-grid, .security-split-grid, .users-split { grid-template-columns: 1fr; }
  .threat-grid { grid-template-columns: repeat(2, 1fr); }
}
