/* ==========================================================================
   XHOPEDEV NEXT-GEN EDGE FIREWALL & ANTI-DDOS CONTROL PLANE
   Modern High-Tech Cybersecurity & SOC Theme System (Dark / Light)
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Cyber Dark Palette */
  --bg: #070a10;
  --bg-gradient: radial-gradient(circle at 50% 0%, #0d1527 0%, #070a10 70%);
  --surface: #0e1420;
  --surface-2: #131b2b;
  --surface-3: #182236;
  --surface-hover: #1e2b44;
  --line: #1c273a;
  --line-strong: #2a3a54;
  --line-glow: rgba(16, 185, 129, 0.22);
  --text: #e6edf7;
  --text-bright: #ffffff;
  --muted: #798ba5;

  /* Semantic Cyber Defense Colors */
  --green: #10b981;
  --green-glow: 0 0 16px rgba(16, 185, 129, 0.35);
  --green-soft: #08261e;
  --green-border: #145942;

  --cyan: #00f0ff;
  --cyan-soft: #072a38;
  --cyan-border: #0e5b74;

  --blue: #3b82f6;
  --blue-soft: #0c2345;
  --blue-border: #1d467c;

  --amber: #f59e0b;
  --amber-soft: #2d1d06;
  --amber-border: #6d4409;

  --red: #ef4444;
  --red-glow: 0 0 16px rgba(239, 68, 68, 0.35);
  --red-soft: #301016;
  --red-border: #6f222d;

  --sidebar: 256px;
  --card-bg: var(--surface);
  --header-bg: rgba(9, 13, 21, 0.88);
  --sub-panel-bg: #0a0f18;
  --table-head-bg: #0b1019;
  --table-hover-bg: #121a28;
  --dialog-bg: #0e1522;
  --dialog-border: #2c3c56;
  --dialog-backdrop: rgba(3, 6, 11, 0.82);
  --input-bg: #090e17;
  --input-border: #233148;

  --public-bg: #070a10;
  --public-overlay: linear-gradient(90deg, rgba(7, 10, 16, 0.98) 0%, rgba(7, 10, 16, 0.88) 42%, rgba(7, 10, 16, 0.25) 75%, rgba(7, 10, 16, 0.45) 100%);
  --public-header-bg: rgba(7, 10, 16, 0.65);
  --public-telemetry-bg: rgba(10, 15, 24, 0.84);
  --public-footline-bg: rgba(7, 10, 16, 0.75);
  --public-endpoint-bg: rgba(11, 17, 28, 0.88);

  --shadow-panel: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.32);
  --shadow-dialog: 0 24px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-tooltip: 0 12px 32px rgba(0, 0, 0, 0.55);

  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Fira Code", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.01em;
}

/* Light Theme: Clean Enterprise Cyber SOC Dashboard */
:root[data-theme="light"],
html[data-theme="light"],
body[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f6fa;
  --bg-gradient: radial-gradient(circle at 50% 0%, #e8edf6 0%, #f4f6fa 70%);
  --surface: #ffffff;
  --surface-2: #edf2f8;
  --surface-3: #e2e9f3;
  --surface-hover: #eaf0f9;
  --line: #d8e2ee;
  --line-strong: #c2d2e4;
  --line-glow: rgba(5, 150, 105, 0.2);
  --text: #111a28;
  --text-bright: #070c14;
  --muted: #5e728d;

  --green: #059669;
  --green-glow: 0 0 14px rgba(5, 150, 105, 0.25);
  --green-soft: #ecfdf5;
  --green-border: #a7f3d0;

  --cyan: #0284c7;
  --cyan-soft: #f0f9ff;
  --cyan-border: #bae6fd;

  --blue: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;

  --amber: #b45309;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;

  --red: #dc2626;
  --red-glow: 0 0 14px rgba(220, 38, 38, 0.25);
  --red-soft: #fef2f2;
  --red-border: #fecaca;

  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.92);
  --sub-panel-bg: #f8fafc;
  --table-head-bg: #f1f5f9;
  --table-hover-bg: #f8fafc;
  --dialog-bg: #ffffff;
  --dialog-border: #cbd5e1;
  --dialog-backdrop: rgba(15, 23, 42, 0.5);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;

  --public-bg: #f1f5f9;
  --public-overlay: linear-gradient(90deg, rgba(241, 245, 249, 0.98) 0%, rgba(241, 245, 249, 0.92) 42%, rgba(241, 245, 249, 0.3) 75%, rgba(241, 245, 249, 0.6) 100%);
  --public-header-bg: rgba(255, 255, 255, 0.88);
  --public-telemetry-bg: rgba(255, 255, 255, 0.95);
  --public-footline-bg: rgba(255, 255, 255, 0.92);
  --public-endpoint-bg: rgba(255, 255, 255, 0.96);

  --shadow-panel: 0 4px 14px rgba(20, 35, 55, 0.06), 0 1px 3px rgba(20, 35, 55, 0.04);
  --shadow-card: 0 2px 8px rgba(20, 35, 55, 0.05);
  --shadow-dialog: 0 24px 70px rgba(20, 35, 55, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  --shadow-tooltip: 0 10px 28px rgba(20, 35, 55, 0.14);
}

:root[data-theme="light"] .public-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #cbd5e1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
:root[data-theme="light"] .header-edge-pill {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.3);
}
:root[data-theme="light"] .edge-dot-live {
  background: #059669;
  box-shadow: 0 0 8px #059669;
}
:root[data-theme="light"] .edge-pill-title {
  color: #059669;
}
:root[data-theme="light"] .stat-card.cyber-card,
:root[data-theme="light"] .arch-card.cyber-card,
:root[data-theme="light"] .radar-station-card,
:root[data-theme="light"] .pricing-card.cyber-card,
:root[data-theme="light"] .rental-guide-banner {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
:root[data-theme="light"] .pricing-card.featured {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #10b981;
}
:root[data-theme="light"] .radar-station-header,
:root[data-theme="light"] .radar-telemetry-strip {
  background: #f8fafc;
  border-color: #e2e8f0;
}
:root[data-theme="light"] .arch-points,
:root[data-theme="light"] .pricing-features {
  color: #334155;
}
:root[data-theme="light"] .cyber-scanline-fx {
  opacity: 0.04;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
* { box-sizing: border-box; }
html {
  min-width: 320px;
  background: var(--bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { color: inherit; }
svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
.hidden { display: none !important; }

/* Custom Scrollbars */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; border: 1px solid var(--line); }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* ==========================================================================
   Brand & Shield Emblem
   ========================================================================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand-shield {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-soft) 0%, var(--surface-2) 100%);
  border: 1px solid var(--green-border);
  color: var(--green);
  box-shadow: var(--green-glow);
  transition: transform 0.2s ease;
}
.brand:hover .brand-shield { transform: scale(1.05); }
.brand-shield svg { width: 20px; height: 20px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; font-weight: 800; letter-spacing: 0.04em; color: var(--text-bright); }
.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.button, .icon-button, .nav-item {
  border: 0;
  cursor: pointer;
  transition: all 0.18s ease;
}
.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.button svg { width: 15px; height: 15px; }
.button:disabled { cursor: wait; opacity: 0.55; }
.button-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #03140d;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}
.button-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}
.button-secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
}
.button-secondary:hover {
  border-color: #4b6182;
  background: var(--surface-3);
  color: var(--text-bright);
}
.button-warning {
  background: var(--amber);
  color: #1a1002;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}
.button-danger {
  border: 1px solid var(--red-border);
  background: var(--red-soft);
  color: #fca5a5;
}
.button-full { width: 100%; }

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover { background: var(--surface-3); color: var(--text-bright); }
.icon-button svg { width: 18px; height: 18px; }

/* Status Indicators */
.region-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--blue-border);
  background: var(--blue-soft);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
}
.region-tag svg { width: 12px; height: 12px; }

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}
.live-status > i, .panel-status > i, .status-pill > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.threat-level-badge, .defense-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--green-border);
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
}
.threat-level-badge svg, .defense-badge svg { width: 13px; height: 13px; }

.security-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--cyan-border);
  background: var(--cyan-soft);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
}
.security-chip svg { width: 13px; height: 13px; }

/* ==========================================================================
   Public View (Cyberpunk Landing Page & Global Threat Operations)
   ========================================================================== */
.public-view {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--public-bg);
  color: var(--text);
  scroll-behavior: smooth;
}

.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 1;
}

.cyber-scanline-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 50%);
  background-size: 100% 4px;
  opacity: 0.16;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.18);
  background: rgba(7, 10, 16, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(0, 255, 136, 0.12);
  gap: 16px;
}

.cyber-glow-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(0, 240, 255, 0.2) 100%);
  border: 1px solid rgba(0, 255, 136, 0.45);
  color: #00ff88;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.35);
}

.header-edge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(8, 38, 30, 0.65);
  border: 1px solid rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
}
.edge-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: pulse-dot 1.4s infinite;
}
.edge-pill-title {
  font-weight: 800;
  color: #00ff88;
  letter-spacing: 0.06em;
}
.edge-pill-divider { color: rgba(255, 255, 255, 0.2); }
.edge-pill-sub {
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.edge-pill-state { color: var(--text-bright); font-weight: 600; }

/* Defense Mode Pill Variations */
.defense-pill-normal {
  background: rgba(8, 38, 30, 0.65);
  border: 1px solid rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.15);
}
.defense-pill-normal .edge-dot-live {
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
}
.defense-pill-normal .edge-pill-title {
  color: #00ff88;
}

.defense-pill-elevated {
  background: rgba(45, 30, 5, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.3);
}
.defense-pill-elevated .edge-dot-live {
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
  animation: pulse-dot 0.9s infinite;
}
.defense-pill-elevated .edge-pill-title {
  color: #fbbf24;
}

.defense-pill-attack {
  background: rgba(50, 10, 15, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.45);
  animation: attack-shield-pulse 1s infinite alternate;
}
.defense-pill-attack .edge-dot-live {
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
  animation: pulse-dot 0.5s infinite;
}
.defense-pill-attack .edge-pill-title {
  color: #f87171;
}

@keyframes attack-shield-pulse {
  0% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.3); border-color: rgba(239, 68, 68, 0.6); }
  100% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.7); border-color: rgba(239, 68, 68, 1); }
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.public-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.public-nav-link:hover {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}
.public-nav-link svg { width: 14px; height: 14px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-action-btn {
  font-size: 13px;
  font-weight: 700;
}
.nav-admin-btn {
  font-size: 13px;
  font-weight: 700;
  border-color: rgba(0, 240, 255, 0.4) !important;
}

.public-stage {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: calc(100vh - 72px);
  flex-direction: column;
  padding: 40px 36px 60px;
}

.landing-container {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ==========================================================================
   LANDING HERO SECTION
   ========================================================================== */
.landing-hero {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.1);
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}
.kicker-glow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00ff88;
}
.kicker-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: pulse-dot 1.5s infinite;
}
.kicker-divider { color: rgba(255, 255, 255, 0.2); }
.kicker-tag { color: var(--text-bright); }
.kicker-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cyan);
}
.kicker-loc svg { width: 12px; height: 12px; }

.landing-headline {
  margin: 0;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-bright);
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
}

.landing-lead {
  max-width: 820px;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}

/* Cyberpunk Stats HUD Grid */
.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 28px 0 36px;
}
.stat-card.cyber-card {
  position: relative;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.stat-card.cyber-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.15);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.8), transparent);
  opacity: 0.7;
}
.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.stat-icon { width: 16px; height: 16px; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-subval { font-size: 18px; color: var(--muted); }
.stat-divider { color: rgba(255, 255, 255, 0.25); font-weight: 400; margin: 0 2px; }
.stat-subtext {
  font-size: 11px;
  color: var(--muted);
}

.neon-emerald { color: #00ff88 !important; text-shadow: 0 0 16px rgba(0, 255, 136, 0.45); }
.neon-crimson { color: #ff3344 !important; text-shadow: 0 0 16px rgba(255, 51, 68, 0.45); }
.neon-cyan { color: #00f0ff !important; text-shadow: 0 0 16px rgba(0, 240, 255, 0.45); }
.neon-blue { color: #3b82f6 !important; text-shadow: 0 0 16px rgba(59, 130, 246, 0.45); }
.neon-purple { color: #c084fc !important; text-shadow: 0 0 16px rgba(192, 132, 252, 0.45); }
.text-emerald { color: #00ff88 !important; }
.text-cyan { color: #00f0ff !important; }
.text-blue { color: #3b82f6 !important; }
.text-purple { color: #c084fc !important; }

.icon-emerald { color: #00ff88 !important; }
.icon-crimson { color: #ff3344 !important; }
.icon-cyan { color: #00f0ff !important; }
.icon-blue { color: #3b82f6 !important; }
.icon-purple { color: #c084fc !important; }

.landing-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.landing-btn-primary {
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
}
.landing-btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.55);
}
.landing-btn-secondary {
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.landing-btn-sim {
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #ff3344 !important;
  background: rgba(239, 68, 68, 0.08) !important;
}
.landing-btn-sim:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ff3344 !important;
  box-shadow: 0 0 20px rgba(255, 51, 68, 0.35);
}
.landing-btn-admin {
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
}

.landing-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-item svg {
  width: 14px;
  height: 14px;
  color: #00ff88;
}

/* ==========================================================================
   4-LAYER DEFENSE ARCHITECTURE
   ========================================================================== */
.landing-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 10px;
}
.section-heading.text-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #00f0ff;
  margin-bottom: 8px;
}
.section-kicker svg { width: 14px; height: 14px; }
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-bright);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.arch-card.cyber-card {
  position: relative;
  padding: 24px;
  border-radius: 14px;
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.arch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.45);
}
.arch-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.6), transparent);
}
.arch-layer-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.arch-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
}
.arch-icon-wrap svg { width: 22px; height: 22px; }
.arch-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.25;
}
.arch-subtitle {
  margin: -6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.arch-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
}
.arch-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.arch-points li svg {
  width: 14px;
  height: 14px;
  color: #00ff88;
  flex-shrink: 0;
  margin-top: 3px;
}
.arch-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}
.cyber-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ==========================================================================
   LIVE SECURITY MONITOR & RADAR STATION
   ========================================================================== */
.radar-station-card {
  position: relative;
  border-radius: 14px;
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.08);
  display: flex;
  flex-direction: column;
}
.radar-station-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 21, 0.7);
  flex-wrap: wrap;
  gap: 12px;
}
.radar-station-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.radar-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #00ff88;
}
.radar-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse-dot 1.5s infinite;
}
.radar-node-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.radar-node-badge svg { width: 13px; height: 13px; }
.radar-dest-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.radar-station-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-clean { background: #00ff88; box-shadow: 0 0 6px #00ff88; }
.dot-threat { background: #ff3344; box-shadow: 0 0 6px #ff3344; }

.radar-canvas-container {
  position: relative;
  width: 100%;
  height: 480px;
  background: #04070c;
  overflow: hidden;
}
.radar-hud-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.radar-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.radar-hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 240, 255, 0.4);
}
.corner-tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.corner-tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.corner-br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.radar-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 24px;
  background: rgba(9, 13, 21, 0.85);
  border-top: 1px solid var(--line);
  gap: 16px;
}
.radar-strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
}
.strip-label {
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.strip-val {
  font-size: 13.5px;
  font-weight: 700;
}

/* ==========================================================================
   LANDING SIMULATOR CARD (100% CANVAS VECTOR - ZERO STATIC IMAGES)
   ========================================================================== */
.landing-simulator-card {
  padding: 24px;
  border-radius: 14px;
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card), 0 0 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.landing-simulator-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: var(--shadow-card), 0 0 50px rgba(0, 240, 255, 0.1);
}

.sim-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.sim-eyebrow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.sim-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff3344;
}
.sim-eyebrow svg { width: 13px; height: 13px; }
.sim-mode-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.sim-header-info h2 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
.sim-header-info p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.5;
}

.sim-header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sim-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sim-status-badge svg { width: 13px; height: 13px; }
.sim-status-badge.active {
  background: rgba(239, 68, 68, 0.12);
  color: #ff3344;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 12px rgba(255, 51, 68, 0.2);
}
.sim-status-badge.clean {
  background: rgba(16, 185, 129, 0.12);
  color: #00ff88;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
}

.sim-canvas-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #060a12;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}
.ddos-simulation-canvas {
  display: block;
  width: 100%;
  height: 330px;
  cursor: crosshair;
}

.sim-canvas-legend {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(7, 12, 20, 0.95);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}
.legend-chip.danger { border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.legend-chip.warning { border-color: rgba(245, 158, 11, 0.35); color: #fde68a; }
.legend-chip.success { border-color: rgba(16, 185, 129, 0.35); color: #a7f3d0; }
.chip-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip-color.red { background: #ff3344; box-shadow: 0 0 6px #ff3344; }
.chip-color.orange { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.chip-color.green { background: #00ff88; box-shadow: 0 0 6px #00ff88; }

.sim-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sim-tel-card {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
}
.sim-tel-card .tel-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.sim-tel-card strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 3px;
}
.sim-tel-card small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.text-danger { color: #ff3344 !important; }
.text-warning { color: #f59e0b !important; }
.text-success { color: #00ff88 !important; }
.text-accent { color: var(--accent) !important; }

/* ==========================================================================
   PRICING & RENTAL TIERS
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
/* Single Full-Config Plan Styling */
.pricing-single-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}
.pricing-card.single-plan-card {
  width: 100%;
  padding: 38px 44px;
  transform: none !important;
  background: linear-gradient(180deg, rgba(8, 38, 30, 0.45) 0%, rgba(14, 20, 32, 0.94) 100%);
  border: 1px solid rgba(0, 255, 136, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 255, 136, 0.16);
}
.pricing-card.single-plan-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 255, 136, 0.28);
}
.single-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.single-plan-info {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.single-plan-info .pricing-plan-title {
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.02em;
}
.single-plan-info .pricing-plan-desc {
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}
.single-plan-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 280px;
  text-align: right;
}
.price-subnote {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.price-subnote svg { width: 13px; height: 13px; }
.single-plan-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.4), transparent);
  margin: 8px 0 16px;
}
.single-plan-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  text-align: left;
}
.feature-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.col-title svg { width: 14px; height: 14px; }

.pricing-card.cyber-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 14px;
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
}
.pricing-card.featured {
  border-color: rgba(0, 255, 136, 0.5);
  background: linear-gradient(180deg, rgba(8, 38, 30, 0.4) 0%, rgba(14, 20, 32, 0.88) 100%);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 255, 136, 0.18);
  transform: scale(1.02);
}
.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 255, 136, 0.3);
}
.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #059669, #10b981);
  color: #061510;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
  white-space: nowrap;
}
.pricing-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.pricing-plan-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-bright);
}
.pricing-plan-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price-val {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
.price-unit {
  font-size: 13px;
  color: var(--muted);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13px;
  color: #cbd5e1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pricing-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #00ff88;
}
.pricing-features li.disabled {
  color: rgba(148, 163, 184, 0.45);
}
.pricing-features li.disabled svg {
  color: rgba(148, 163, 184, 0.35);
}
.pricing-rent-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14px;
}
.button-glow {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}
.button-glow:hover {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.rental-guide-banner {
  margin-top: 24px;
  padding: 24px 30px;
  border-radius: 12px;
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid rgba(0, 240, 255, 0.25);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00f0ff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.guide-heading svg { width: 16px; height: 16px; }
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: #00f0ff;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
}
.guide-step-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.guide-step-item strong {
  font-size: 13.5px;
  color: var(--text-bright);
}
.guide-step-item small {
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   CYBERPUNK FOOTER
   ========================================================================== */
.public-cyber-footer {
  margin-top: 40px;
  padding: 32px 0 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cyber-glow-shield-sm {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: #00ff88;
}
.cyber-glow-shield-sm svg { width: 16px; height: 16px; }
.footer-brand strong { display: block; font-size: 14px; color: var(--text-bright); }
.footer-brand small { display: block; font-size: 10px; color: var(--muted); font-family: var(--font-mono); }
.footer-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.footer-badge svg { width: 12px; height: 12px; color: #00f0ff; }
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.footer-clock-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
}
.footer-clock-box svg { width: 13px; height: 13px; }

/* ==========================================================================
   User View (Security Monitor)
   ========================================================================== */
.user-view { min-height: 100vh; background: var(--bg); color: var(--text); }
.user-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 42px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}
.user-header-actions { display: flex; align-items: center; gap: 14px; }
.user-account-label {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--green-border);
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.user-workspace { width: min(1520px, 100%); margin: 0 auto; padding: 28px 42px 64px; }

.user-lookup-panel { padding: 22px; border-radius: 8px; }
.user-lookup-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.7fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 14px;
}
.user-lookup-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.user-lookup-form input {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 13px;
}
.user-lookup-form input:focus { outline: none; border-color: var(--green); box-shadow: var(--green-glow); }
.user-rental-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  margin-top: 14px;
}
.user-rental-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.user-rental-form input, .user-rental-form select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 13px;
}
.user-rental-form input:focus, .user-rental-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: var(--green-glow);
}
.rental-wallet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.rental-wallet > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--sub-panel-bg);
}
.rental-wallet span { color: var(--muted); font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; }
.rental-wallet strong { color: var(--green); font-size: 18px; }
.rental-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rental-list-heading strong, .rental-list-heading small { display: block; }
.rental-list-heading strong { color: var(--text-bright); font-size: 13px; }
.rental-list-heading small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.rental-card-list, .rental-admin-list { display: grid; gap: 9px; margin-top: 12px; }
.rental-card, .rental-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--sub-panel-bg);
}
.rental-card-main { display: grid; min-width: 0; gap: 4px; }
.rental-card-main strong { color: var(--text-bright); font-size: 12.5px; }
.rental-card-main code { overflow-wrap: anywhere; color: var(--green); font-size: 11px; }
.rental-card-main small { color: var(--muted); font-size: 10px; }
.member-subdomain-label {
  margin-top: 3px;
  color: var(--muted) !important;
  font-family: var(--font-mono);
  font-size: 8.5px !important;
  font-weight: 800;
  text-transform: uppercase;
}
.member-origin-editor {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, .45fr) auto;
  align-items: end;
  gap: 9px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.member-origin-editor label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.member-origin-editor input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-bright);
  font-family: var(--font-mono);
}
.member-origin-editor input:focus { outline: none; border-color: var(--green); box-shadow: var(--green-glow); }
.rental-card-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.rental-status {
  display: inline-flex;
  width: max-content;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
}
.rental-status.pending { border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .1); color: var(--amber); }
.rental-status.approved { border-color: var(--green-border); background: var(--green-soft); color: var(--green); }
.rental-status.rejected { border-color: var(--red-border); background: var(--red-soft); color: var(--red); }
.rental-admin-panel { margin-bottom: 14px; }
.customer-balance-panel { margin-bottom: 14px; }
.rental-price-form {
  display: grid;
  grid-template-columns: minmax(220px, 420px) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.rental-price-form label, .customer-balance-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
}
.rental-price-form input, .customer-balance-row input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-bright);
  font-family: var(--font-mono);
}
.customer-balance-list { display: grid; gap: 8px; }
.customer-balance-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, .6fr) minmax(160px, .8fr) auto;
  align-items: end;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--sub-panel-bg);
}
.customer-balance-row > div { display: grid; gap: 3px; }
.customer-balance-row strong { color: var(--text-bright); }
.customer-balance-row small { color: var(--muted); font-size: 9.5px; }
.customer-balance-row > b { align-self: center; color: var(--green); font-family: var(--font-mono); }
.rental-admin-row.pending { border-color: rgba(245, 158, 11, .3); }
.rental-admin-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.user-privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}
.user-privacy-note svg { width: 14px; height: 14px; color: var(--amber); }

.user-monitor-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 16px;
}
.user-monitor-heading h1 { margin: 0; font-size: 26px; font-weight: 800; color: var(--text-bright); }
.user-route-endpoint {
  margin: 6px 0 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.route-ip-endpoint { display: block; color: var(--muted, #8698ac); font-size: 11px; margin-top: 4px; }

.user-charts { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.45fr); gap: 14px; margin-top: 14px; }
.user-metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.user-metric-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.user-metric-grid span { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.user-metric-grid strong { display: block; margin-top: 12px; color: var(--text-bright); font-family: var(--font-mono); font-size: 26px; font-weight: 800; }
.user-metric-grid small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }

.user-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr); gap: 14px; margin-top: 14px; }
.user-traffic-panel, .user-infra-panel, .user-events-panel { padding: 20px; border-radius: 8px; }

.user-data-table { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; background: var(--sub-panel-bg); }
.user-data-table > div { padding: 14px 16px; border-left: 1px solid var(--line); }
.user-data-table > div:first-child { border-left: 0; }
.user-data-table span, .user-health-grid span { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; font-weight: 700; }
.user-data-table strong { display: block; margin-top: 10px; color: var(--green); font-family: var(--font-mono); font-size: 14px; font-weight: 800; }

.user-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; background: var(--sub-panel-bg); }
.user-health-grid > div { padding: 14px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.user-health-grid > div:nth-child(-n+3) { border-top: 0; }
.user-health-grid > div:nth-child(3n+1) { border-left: 0; }
.user-health-grid strong { display: block; margin-top: 8px; color: var(--text-bright); font-family: var(--font-mono); font-size: 13px; font-weight: 750; }

.user-event-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--sub-panel-bg); }
.user-event-row {
  display: grid;
  grid-template-columns: 140px 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
}
.user-event-row:first-child { border-top: 0; }
.user-event-row span { color: var(--muted); }
.user-event-row strong { color: var(--text-bright); font-weight: 700; text-transform: uppercase; }
.user-event-row small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   Admin View (Control Plane)
   ========================================================================== */
.admin-view { min-height: 100vh; background: var(--bg); color: var(--text); }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.sidebar-brand {
  min-height: 74px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.edge-identity {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  margin: 14px 12px 6px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-2);
}
.edge-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-glow 2s infinite ease-in-out;
}
.edge-identity strong, .edge-identity small { display: block; }
.edge-identity strong {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-bright);
}
.edge-identity small { margin-top: 3px; color: var(--muted); font-size: 9.5px; }

.main-nav { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 14px 10px; }
.nav-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { background: var(--surface-2); color: var(--text-bright); }
.nav-item.active {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
  font-weight: 750;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.operator { display: flex; min-width: 0; align-items: center; gap: 10px; }
.operator > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid var(--green-border);
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}
.operator strong, .operator small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operator strong { font-size: 11.5px; font-weight: 750; color: var(--text-bright); }
.operator small { max-width: 120px; margin-top: 2px; color: var(--muted); font-size: 9px; }

.admin-content { min-height: 100vh; margin-left: var(--sidebar); }
.admin-header {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-heading h1 { margin: 0; font-size: 20px; font-weight: 800; color: var(--text-bright); }
.utc-clock, .last-updated {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.health-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--green-border);
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}
.health-chip svg { width: 14px; height: 14px; }
.health-degraded { border-color: var(--amber-border); background: var(--amber-soft); color: var(--amber); }
.health-critical { border-color: var(--red-border); background: var(--red-soft); color: var(--red); }

.workspace { width: min(1680px, 100%); margin: 0 auto; padding: 24px 32px 64px; }
.page { display: none; }
.page.active { display: block; }
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.panel-heading, .section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-heading { margin-bottom: 18px; }
.panel-heading h2, .section-toolbar h2 { margin: 0; font-size: 16px; font-weight: 750; color: var(--text-bright); }
.section-toolbar { min-height: 52px; margin-bottom: 18px; }
.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
}
.count-badge {
  display: inline-grid;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

/* Warnings */
.warning-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--amber-border);
  border-radius: 7px;
  background: var(--amber-soft);
}
.warning-banner > svg { width: 20px; height: 20px; color: var(--amber); }
.warning-banner strong { display: block; color: var(--amber); font-size: 12px; font-weight: 750; }
.warning-banner span { display: block; margin-top: 3px; color: var(--text); font-size: 11px; }

/* Command Metrics Grid */
.command-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.command-metric {
  position: relative;
  min-height: 124px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.command-metric:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.command-metric::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--line-strong);
  content: "";
}
.command-metric.metric-health::after { background: var(--green); }
.command-metric.metric-drops::after { background: var(--red); }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-top span { color: var(--muted); font-family: var(--font-mono); font-size: 9.5px; font-weight: 750; }
.metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
}
.metric-badge svg { width: 10px; height: 10px; }
.badge-threat { border-color: var(--red-border); background: var(--red-soft); color: var(--red); }

.command-metric strong {
  display: block;
  margin-top: 14px;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}
.command-metric small {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Overview Layouts */
.overview-primary { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(320px, 0.75fr); gap: 14px; margin-top: 14px; }
.topology-panel, .alert-panel, .traffic-panel, .stack-panel, .server-facts, .kernel-panel, .retention-panel, .account-panel, .discord-panel, .backup-panel, .origin-guidance {
  padding: 22px;
  border-radius: 8px;
}
.topology-panel { position: relative; min-height: 440px; overflow: hidden; }
.global-map { display: block; width: 100%; height: 350px; }
.map-overlay {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}
.map-overlay span { color: var(--muted); }
.map-overlay strong { color: var(--green); }

.alert-panel { min-height: 440px; }
.alert-list { display: grid; gap: 8px; }
.alert-item {
  display: grid;
  min-height: 68px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sub-panel-bg);
}
.alert-item > svg { width: 17px; height: 17px; color: var(--amber); }
.alert-critical > svg { color: var(--red); }
.alert-item strong { display: block; font-size: 11px; font-weight: 750; color: var(--text-bright); }
.alert-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.alert-item b {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.alert-critical b { color: var(--red); }

.overview-secondary { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.8fr); gap: 14px; margin-top: 14px; }
.traffic-heading { align-items: flex-start; }
.traffic-panel-actions { display: flex; align-items: center; gap: 16px; }
.chart-legend { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 10px; }
.legend-in, .legend-out { display: inline-flex; align-items: center; gap: 6px; }
.legend-in::before { width: 9px; height: 9px; border-radius: 2px; background: var(--green); content: ""; }
.legend-out::before { width: 9px; height: 9px; border-radius: 2px; background: var(--blue); content: ""; }

.chart-mode-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.chart-mode-switch button {
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chart-mode-switch button:hover { color: var(--text-bright); }
.chart-mode-switch button.active {
  background: var(--surface-3);
  color: var(--green);
}

.traffic-summary {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sub-panel-bg);
}
.traffic-summary span { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; font-weight: 700; }
.traffic-summary strong { display: block; margin-top: 6px; color: var(--text-bright); font-family: var(--font-mono); font-size: 17px; font-weight: 800; }
.traffic-primary strong { color: var(--green); font-size: 22px; }
.traffic-primary small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

.traffic-filter-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface-2);
}
.xdp-traffic-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-style: italic;
}
.traffic-chart-wrap { position: relative; width: 100%; height: 260px; }
.traffic-chart { display: block; width: 100%; height: 260px; }
.traffic-tooltip {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 10.5px;
  box-shadow: var(--shadow-tooltip);
}

/* Stack Panel */
.stack-list { display: grid; gap: 10px; }
.stack-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sub-panel-bg);
}
.stack-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--green);
}
.stack-icon svg { width: 17px; height: 17px; }
.stack-item > span { flex: 1; }
.stack-item strong { display: block; font-size: 12px; font-weight: 750; color: var(--text-bright); }
.stack-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.state-pill {
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}
.state-active { border-color: var(--green-border); background: var(--green-soft); color: var(--green); }

/* Route Panel Preview */
.route-panel { margin-top: 14px; padding: 22px; }
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.route-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--sub-panel-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}
.route-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

/* ==========================================================================
   Tables & Data Presentation
   ========================================================================== */
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { width: 100%; overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12.5px;
}
thead th {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--table-head-bg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}
tbody tr:hover { background: var(--table-hover-bg); }
tbody tr:last-child td { border-bottom: 0; }
.empty-cell { text-align: center; padding: 36px 18px; color: var(--muted); }

.service-summary-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
}
.service-summary-bar b { color: var(--green); font-weight: 800; font-size: 13px; }

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.status-running {
  border: 1px solid var(--green-border);
  background: var(--green-soft);
  color: var(--green);
}
.status-stopped {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
}
.status-warning {
  border: 1px solid var(--amber-border);
  background: var(--amber-soft);
  color: var(--amber);
}
.status-cooldown,
.status-error {
  border: 1px solid var(--amber-border);
  background: var(--amber-soft);
  color: var(--amber);
}
.circuit-notice {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--amber-border);
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 750;
}

/* ==========================================================================
   Infrastructure & Hardware
   ========================================================================== */
.infra-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.infra-metrics article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.infra-metric-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.infra-metric-head span { color: var(--muted); font-family: var(--font-mono); font-size: 10px; font-weight: 750; }
.infra-metric-head strong { color: var(--text-bright); font-family: var(--font-mono); font-size: 24px; font-weight: 850; }
progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-2);
}
progress::-webkit-progress-bar { background: var(--surface-2); }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--green) 0%, var(--cyan) 100%); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 4px; }

.infra-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 14px; }
.server-facts dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.server-facts dt { color: var(--muted); font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; font-weight: 700; }
.server-facts dd { margin: 4px 0 0; color: var(--text-bright); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }

.counter-list { display: grid; gap: 8px; }
.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--sub-panel-bg);
  font-family: var(--font-mono);
  font-size: 11px;
}
.counter-row span { color: var(--muted); }
.counter-row strong { color: var(--red); font-weight: 800; }

.service-xdp-panel { margin-top: 14px; }
.service-xdp-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.service-xdp-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--sub-panel-bg);
}
.service-xdp-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.service-xdp-card code { color: var(--cyan); font-size: 11px; }
.service-xdp-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}
.service-xdp-card dt { color: var(--muted); font: 700 9px var(--font-mono); text-transform: uppercase; }
.service-xdp-card dd { margin: 4px 0 0; color: var(--text-bright); font: 750 11px var(--font-mono); }
.attack-fingerprint {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font: 700 9px var(--font-mono);
}
.attack-fingerprint span { color: var(--muted); text-transform: uppercase; }
.attack-fingerprint strong { color: var(--amber); }
.attack-fingerprint small { color: var(--text-bright); }
.mode-badge {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font: 800 9px var(--font-mono);
}
.mode-badge.mode-strict { color: var(--amber); }
.mode-badge.mode-emergency { color: var(--red); }

/* ==========================================================================
   Operations & Policies
   ========================================================================== */
.operations-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.retention-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.retention-form label, .form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.retention-form input, .form-grid input, .select-control, .dialog input, .dialog select {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.retention-form input:focus, .form-grid input:focus, .dialog input:focus, .dialog select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: var(--green-glow);
}
.retention-form button { grid-column: span 2; margin-top: 8px; }
.storage-line {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.storage-line b { color: var(--green); font-weight: 800; }

.operation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sub-panel-bg);
}
.operation-row > svg { width: 22px; height: 22px; color: var(--green); }
.operation-row > div { flex: 1; }
.operation-row strong { display: block; font-size: 13px; font-weight: 750; color: var(--text-bright); }
.operation-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }

.discord-panel { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.toggle-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.toggle-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); }

.ip-management-panel { margin-bottom: 14px; }
.ip-block-form {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.4fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 4px;
}
.ip-block-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}
.ip-block-form input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.ip-block-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: var(--green-glow);
}
.ip-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.ip-list-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--sub-panel-bg);
}
.ip-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.ip-list-heading strong, .ip-list-heading small { display: block; }
.ip-list-heading strong { color: var(--text-bright); font-size: 12.5px; }
.ip-list-heading small { margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.ip-list-heading > span {
  min-width: 28px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.blocked-list-card .ip-list-heading > span { color: var(--red); }
.quarantine-list-card { grid-column: 1 / -1; }
.ip-source.xdp { border-color: var(--amber-border); color: var(--amber); }
.ip-management-list { display: grid; max-height: 430px; overflow-y: auto; }
.ip-management-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
}
.ip-management-row:first-child { border-top: 0; }
.ip-management-row.is-blocked { background: var(--red-soft); }
.ip-row-main { display: grid; min-width: 0; gap: 3px; }
.ip-row-main code {
  overflow: hidden;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ip-row-main > span { overflow-wrap: anywhere; color: var(--text); font-size: 10.5px; }
.ip-row-main small { color: var(--muted); font-family: var(--font-mono); font-size: 9.5px; }
.ip-address-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ip-source, .ip-status {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
}
.ip-source.automatic, .ip-status.blocked { border-color: var(--red-border); color: var(--red); }
.ip-action-button { flex: 0 0 auto; min-height: 36px; padding: 8px 10px; font-size: 10px; }

.backup-panel { margin-bottom: 14px; }
.backup-list { display: grid; gap: 8px; }
.backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sub-panel-bg);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.origin-guidance code {
  display: block;
  padding: 12px 16px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sub-panel-bg);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
}
.origin-lock-list { display: grid; gap: 8px; }
.origin-lock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sub-panel-bg);
}
.origin-lock-row > div { display: grid; gap: 4px; min-width: 0; }
.origin-lock-row strong { color: var(--cyan); font: 800 12px var(--font-mono); }
.origin-lock-row span, .origin-lock-row small { color: var(--muted); font-size: 10px; }

/* ==========================================================================
   Dialogs (Modals)
   ========================================================================== */
dialog {
  border: 1px solid var(--dialog-border);
  border-radius: 10px;
  background: var(--dialog-bg);
  color: var(--text);
  padding: 24px;
  box-shadow: var(--shadow-dialog);
  max-width: 90vw;
}
dialog::backdrop {
  background: var(--dialog-backdrop);
  backdrop-filter: blur(8px);
}
.login-dialog { width: 420px; }
.wide-dialog { width: 680px; }
.detail-dialog { width: 840px; }

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text-bright); }
.dialog form { display: grid; gap: 14px; }
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.form-error {
  margin: 4px 0 0;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface-2);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
  transition: all 0.15s ease;
}
.segmented input { display: none; }
.segmented label:has(input:checked) {
  border-color: var(--green-border);
  background: var(--green-soft);
  color: var(--green);
}

.advanced-settings {
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--sub-panel-bg);
}
.advanced-settings summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
}
.advanced-settings summary:hover { color: var(--text-bright); }
.advanced-grid { margin-top: 14px; }

/* Lease Panel */
.lease-panel {
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
}
.lease-active { border-color: var(--green-border); background: var(--green-soft); color: var(--green); }
.lease-warning { border-color: var(--amber-border); background: var(--amber-soft); color: var(--amber); }
.lease-expired { border-color: var(--red-border); background: var(--red-soft); color: var(--red); }
.lease-policy-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

/* Toast Notifications */
.toast {
  position: fixed;
  z-index: 100;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-dialog);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
}
.toast.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast.toast-error { border-color: var(--red-border); background: var(--red-soft); color: #fca5a5; }
.toast.toast-success { border-color: var(--green-border); background: var(--green-soft); color: var(--green); }

/* ==========================================================================
   Firewall Component Details & SOC Table Styling
   ========================================================================== */
code {
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

/* Route Cards */
.route-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
}
.route-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.route-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.route-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--green);
}
.route-icon svg { width: 15px; height: 15px; }
.route-card h3 { margin: 0; font-size: 13.5px; font-weight: 750; color: var(--text-bright); }
.route-card code { align-self: flex-start; }
.lease-countdown { margin: 0; color: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.route-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}
.route-stats span:first-child { color: var(--green); font-weight: 700; }

/* Service Table Details */
.service-name-cell strong { display: block; font-size: 13px; font-weight: 750; color: var(--text-bright); }
.service-name-cell span { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; }

.inspection-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.inspection-pill svg { width: 12px; height: 12px; color: var(--cyan); }

.lease-table-cell { font-family: var(--font-mono); font-size: 11px; }
.lease-table-cell strong { display: block; color: var(--text-bright); margin-bottom: 2px; }
.lease-table-cell small { display: block; color: var(--muted); font-size: 9.5px; }
.lease-renew { margin-top: 6px; padding: 4px 10px; min-height: 28px; font-size: 10px; }

.row-actions { text-align: right; }

/* Severity Badges (Events / Threat Stream) */
.severity-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.severity-pill > i { width: 6px; height: 6px; border-radius: 50%; }
.severity-info {
  border: 1px solid var(--blue-border);
  background: var(--blue-soft);
  color: var(--blue);
}
.severity-info > i { background: var(--blue); }
.severity-warning {
  border: 1px solid var(--amber-border);
  background: var(--amber-soft);
  color: var(--amber);
}
.severity-warning > i { background: var(--amber); }
.severity-error {
  border: 1px solid var(--red-border);
  background: var(--red-soft);
  color: var(--red);
}
.severity-error > i { background: var(--red); }

.reason-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Backup Rows */
.backup-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--green);
}
.backup-icon svg { width: 16px; height: 16px; }
.latest-tag {
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}

/* Detail Modal Styling */
.detail-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.detail-topline h2 { margin: 4px 0 6px; font-size: 20px; font-weight: 800; color: var(--text-bright); }
.detail-endpoint { font-size: 13px; color: var(--green); }
.detail-actions { display: flex; align-items: center; gap: 8px; }

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.detail-metrics > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sub-panel-bg);
}
.detail-metrics span { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; font-weight: 700; }
.detail-metrics strong { display: block; margin-top: 6px; color: var(--text-bright); font-family: var(--font-mono); font-size: 20px; font-weight: 800; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.detail-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sub-panel-bg);
}
.detail-block h3 { margin: 0 0 12px; font-size: 13px; font-weight: 750; color: var(--text-bright); }
.detail-block dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.detail-block dt { color: var(--muted); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; font-weight: 700; }
.detail-block dd { margin: 2px 0 0; color: var(--text-bright); font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; }

.detail-events h3 { margin: 0 0 10px; font-size: 13px; font-weight: 750; color: var(--text-bright); }
.detail-event-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sub-panel-bg);
}
.detail-event {
  display: grid;
  grid-template-columns: 140px 140px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.detail-event:first-child { border-top: 0; }
.detail-event span { color: var(--muted); }
.detail-event strong { color: var(--text-bright); }

.split-actions { justify-content: space-between; }

/* Lease Details */
.lease-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.lease-heading strong { font-size: 13px; font-weight: 800; }
.lease-heading span { font-size: 10px; color: var(--muted); }
.lease-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.lease-dates dt { color: var(--muted); font-size: 9px; text-transform: uppercase; font-weight: 700; }
.lease-dates dd { margin: 2px 0 0; font-weight: 700; }

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}
.empty-state.compact { padding: 24px 14px; font-size: 11px; }

/* XDP Packet Dot Indicator */
.xdp-layer-title { display: inline-flex; align-items: center; gap: 8px; }
.xdp-packet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.xdp-dot-available { background: var(--green); box-shadow: 0 0 8px var(--green); }
.xdp-dot-unavailable { background: var(--muted); }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-container { grid-template-columns: 1fr; }
  .public-telemetry { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .overview-primary, .overview-secondary { grid-template-columns: 1fr; }
  .command-grid, .user-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .user-charts, .infra-layout, .operations-layout { grid-template-columns: 1fr; }
  .service-xdp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .public-header, .user-header, .admin-header { padding: 0 20px; }
  .public-stage, .user-workspace, .workspace { padding: 24px 20px 48px; }
  .hero-copy h1 { font-size: 38px; }
  .defense-architecture { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .command-grid, .user-metric-grid, .infra-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-footline { display: none; }
  .user-lookup-form { grid-template-columns: 1fr; }
  .user-rental-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-rental-form .button { width: 100%; }
  .gateway-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-block-form, .ip-management-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .defense-architecture { grid-template-columns: 1fr; }
  .public-telemetry { grid-template-columns: 1fr; }
  .command-grid, .user-metric-grid, .infra-metrics { grid-template-columns: 1fr; }
  .service-xdp-list { grid-template-columns: 1fr; }
  .origin-lock-row { align-items: stretch; flex-direction: column; }
  .origin-lock-row .button { width: 100%; }
  .header-actions .region-tag, .header-actions .threat-level-badge { display: none; }
}

/* Mobile control plane: touch friendly navigation, compact cards and safe modals. */
@media (max-width: 860px) {
  body { overflow-x: hidden; }
  button, .button, input, select { min-height: 44px; }

  .public-header, .user-header {
    min-height: 64px;
    padding: 8px 14px;
    gap: 10px;
  }
  .brand { flex: 0 0 auto; }
  .brand-shield { width: 34px; height: 34px; }
  .brand > span:last-child small { display: none; }
  .header-actions, .user-header-actions {
    min-width: 0;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .header-actions::-webkit-scrollbar, .user-header-actions::-webkit-scrollbar,
  .admin-actions::-webkit-scrollbar { display: none; }
  .header-actions .button, .user-header-actions .button { flex: 0 0 auto; padding-inline: 11px; }
  .security-chip { display: none; }

  .public-stage { min-height: calc(100vh - 64px); padding: 30px 14px 50px; }
  .landing-container { gap: 32px; }
  .landing-hero { padding-top: 0; }
  .landing-kicker { max-width: 100%; margin-bottom: 18px; flex-wrap: wrap; justify-content: center; }
  .landing-headline { font-size: clamp(28px, 7vw, 40px); line-height: 1.12; }
  .landing-lead { margin: 14px 0 22px; font-size: 14px; line-height: 1.6; }
  .landing-cta-row { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .landing-cta-row .button { width: 100%; min-width: 0; padding: 11px 12px; white-space: normal; }
  .landing-btn-sim { grid-column: 1 / -1; }
  .landing-trust-bar { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; text-align: left; }
  .trust-item { align-items: flex-start; font-size: 10.5px; }

  .landing-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .arch-grid { grid-template-columns: 1fr; gap: 14px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 18px; }
  .pricing-single-wrap { padding: 0 4px; }
  .pricing-card.single-plan-card { padding: 24px 20px; }
  .single-plan-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .single-plan-price-box { align-items: flex-start; text-align: left; width: 100%; }
  .single-plan-price-box .pricing-rent-btn { width: 100%; }
  .single-plan-features-grid { grid-template-columns: 1fr; gap: 20px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .guide-steps { grid-template-columns: 1fr; gap: 12px; }
  .radar-canvas-container { height: 320px; }
  .radar-telemetry-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .public-header { flex-wrap: wrap; }
  .header-edge-pill { display: none; }
  .public-nav { width: 100%; order: 3; overflow-x: auto; padding-top: 6px; }

  .landing-simulator-card { padding: 15px; border-radius: 10px; gap: 12px; }
  .sim-card-header, .sim-header-status { display: grid; width: 100%; gap: 8px; }
  .sim-eyebrow-line { flex-wrap: wrap; }
  .sim-header-info h2 { font-size: 18px; }
  .sim-header-info p { font-size: 12px; }
  .sim-status-badge { width: 100%; justify-content: center; }
  .ddos-simulation-canvas { height: 250px; }
  .sim-canvas-legend { display: grid; gap: 7px; padding: 10px; }
  .legend-chip { width: 100%; font-size: 9.5px; white-space: normal; }
  .sim-telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sim-tel-card { min-width: 0; padding: 11px; }
  .sim-tel-card strong { overflow-wrap: anywhere; font-size: 12.5px; }

  .user-workspace, .workspace { padding: 16px 14px calc(94px + env(safe-area-inset-bottom)); }
  .user-dashboard-grid, .user-charts { grid-template-columns: 1fr; }
  .user-monitor-heading { align-items: flex-start; flex-direction: column; margin-top: 22px; }
  .user-data-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-data-table > div { border-top: 1px solid var(--line); }
  .user-data-table > div:nth-child(-n+2) { border-top: 0; }
  .user-data-table > div:nth-child(odd) { border-left: 0; }
  .user-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-health-grid > div:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .user-health-grid > div:nth-child(-n+2) { border-top: 0; }
  .user-health-grid > div:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .user-health-grid > div:nth-child(odd) { border-left: 0; }
  .user-event-row { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px; }
  .user-event-row small { grid-column: 1 / -1; white-space: normal; }

  .sidebar {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(72px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    transform: none;
    border-top: 1px solid var(--line-strong);
    border-right: 0;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, .28);
    z-index: 80;
  }
  .sidebar-brand, .edge-identity, .sidebar-foot { display: none; }
  .main-nav {
    display: grid;
    height: 72px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    padding: 6px;
  }
  .nav-item {
    min-width: 0;
    min-height: 60px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 5px 2px;
    border: 0;
    border-radius: 7px;
    font-size: 8.5px;
    line-height: 1.1;
    text-align: center;
  }
  .nav-item svg { width: 19px; height: 19px; flex: 0 0 19px; }
  .nav-item span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-content { margin-left: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .admin-header {
    min-height: 68px;
    align-items: center;
    padding: 8px 14px;
    gap: 10px;
  }
  .page-heading { min-width: 0; flex: 1; }
  .page-heading .eyebrow { display: none; }
  .page-heading h1 { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .admin-actions { min-width: 0; max-width: 65%; gap: 7px; overflow-x: auto; }
  .admin-actions .utc-clock, .admin-actions .defense-badge { display: none; }
  .admin-actions .button { flex: 0 0 auto; padding-inline: 10px; }
  .admin-actions .theme-toggle span, .admin-actions #deploy-button span { display: none; }
  .admin-actions .health-chip { flex: 0 0 auto; padding: 0 9px; }

  .panel-heading, .section-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .panel-heading > div, .section-toolbar > div { min-width: 0; }
  .toolbar-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar-actions .button { width: 100%; min-width: 0; white-space: normal; }
  .topology-panel, .alert-panel, .traffic-panel, .stack-panel, .server-facts, .kernel-panel,
  .retention-panel, .account-panel, .discord-panel, .cloudflare-panel, .backup-panel, .ip-management-panel,
  .origin-guidance, .route-panel, .user-lookup-panel, .user-traffic-panel, .rental-admin-panel, .customer-balance-panel,
  .user-infra-panel, .user-events-panel { padding: 15px; }
  .topology-panel, .alert-panel { min-height: 340px; }
  .global-map { height: 270px; }
  .map-overlay { right: 10px; bottom: 10px; left: 10px; justify-content: space-between; gap: 8px; overflow: hidden; }
  .traffic-panel-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .chart-legend { gap: 8px; font-size: 9px; }
  .traffic-summary, .traffic-filter-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 11px; }
  .traffic-primary { grid-column: 1 / -1; }
  .traffic-chart-wrap, .traffic-chart { height: 220px; }
  .warning-banner { grid-template-columns: auto minmax(0, 1fr); }
  .warning-banner .button { grid-column: 1 / -1; width: 100%; }
  .service-summary-bar { flex-wrap: wrap; gap: 8px 16px; }
  .table-scroll { margin: 0; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .table-scroll table { min-width: 880px; }
  .storage-line { flex-wrap: wrap; gap: 8px 16px; }
  .operation-row { flex-wrap: wrap; padding: 12px; }
  .operation-row .button { width: 100%; }
  .backup-row { gap: 8px; }
  .origin-guidance code { overflow-wrap: anywhere; }
  .rental-card, .rental-admin-row { align-items: flex-start; flex-wrap: wrap; }
  .rental-card-main { flex: 1 1 220px; }
  .rental-card-actions, .rental-admin-actions { width: 100%; }
  .rental-card-actions .button, .rental-admin-actions .button { flex: 1; }
  .member-origin-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-origin-editor .button { grid-column: 1 / -1; width: 100%; }
  .customer-balance-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-balance-row .button { width: 100%; }

  dialog {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    margin: auto;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .dialog-heading { position: sticky; z-index: 2; top: -18px; margin-inline: -2px; padding-top: 4px; background: var(--dialog-bg); }
  .form-grid, .retention-form, .detail-grid { grid-template-columns: 1fr; }
  .form-grid .span-2, .retention-form button { grid-column: 1; }
  .ip-block-form .button { width: 100%; }
  .ip-management-row { align-items: flex-start; flex-wrap: wrap; padding: 12px; }
  .ip-row-main { flex: 1 1 210px; }
  .ip-action-button { flex: 1 0 100%; width: 100%; }
  .detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-event { grid-template-columns: 1fr auto; gap: 5px 8px; }
  .detail-event span:last-child { grid-column: 1 / -1; }
  .dialog-actions { position: sticky; bottom: -18px; margin: 10px -18px -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--dialog-bg); border-top: 1px solid var(--line); }
  .split-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-actions > span { display: none; }
  .split-actions .button { width: 100%; min-width: 0; padding-inline: 8px; white-space: normal; }
  .split-actions .button-primary { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  .header-actions .button span, .user-header-actions .button span { display: none; }
  .header-actions .button, .user-header-actions .button { width: 42px; padding: 0; justify-content: center; }
  .landing-stats-grid { grid-template-columns: 1fr; }
  .radar-telemetry-strip { grid-template-columns: 1fr; }
  .footer-top-row, .footer-bottom-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .landing-kicker .kicker-divider, .landing-kicker .kicker-tag, .landing-kicker .kicker-loc { display: none; }
  .landing-trust-bar { grid-template-columns: 1fr; }
  .landing-cta-row { grid-template-columns: 1fr; }
  .landing-btn-sim { grid-column: 1; }
  .sim-telemetry-grid { grid-template-columns: 1fr; }
  .ddos-simulation-canvas { height: 210px; }
  .command-metric { min-height: 108px; padding: 15px; }
  .command-metric strong { font-size: 24px; }
  .route-grid { grid-template-columns: 1fr; }
  .server-facts dl { grid-template-columns: 1fr; }
  .user-rental-form { grid-template-columns: 1fr; }
  .rental-wallet, .rental-price-form, .customer-balance-row { grid-template-columns: 1fr; }
  .member-origin-editor { grid-template-columns: 1fr; }
  .member-origin-editor .button { grid-column: 1; }
  .lease-dates { grid-template-columns: 1fr; }
  .admin-actions { max-width: 62%; }
  .admin-actions .health-chip span { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ========================================================================== 
   Professional administration information architecture
   ========================================================================== */
.group-hidden { display: none !important; }

.admin-view {
  --sidebar: 276px;
}

.admin-view .sidebar {
  background: #0d131e;
  box-shadow: none;
}

.admin-view .sidebar-brand {
  min-height: 70px;
}

.admin-view .brand-shield {
  box-shadow: none;
}

.admin-view .edge-identity {
  min-height: 58px;
  margin: 12px 14px 8px;
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-view .edge-light {
  width: 8px;
  height: 8px;
  box-shadow: none;
  animation: none;
}

.main-nav {
  gap: 2px;
  padding: 10px 12px 18px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-section-label {
  display: block;
  margin: 15px 10px 6px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-section-label:first-child { margin-top: 6px; }

.admin-view .nav-item {
  min-height: 40px;
  gap: 11px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}

.admin-view .nav-item svg { color: #8291a7; }

.admin-view .nav-item:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.admin-view .nav-item.active {
  border-color: rgba(16, 185, 129, .28);
  background: rgba(16, 185, 129, .1);
  color: #d7f9ec;
  box-shadow: inset 3px 0 0 var(--green);
}

.admin-view .nav-item.active svg { color: var(--green); }

.admin-view .admin-header {
  min-height: 70px;
  padding-inline: 30px;
  background: rgba(9, 14, 23, .94);
  backdrop-filter: blur(12px);
}

.admin-view .workspace { padding: 28px 30px 64px; }

.admin-view .panel {
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.admin-view .eyebrow {
  color: #7c8da6;
  letter-spacing: .09em;
}

.admin-view .section-toolbar {
  min-height: 58px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-view .section-toolbar h2 { font-size: 18px; }

.section-description {
  max-width: 520px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.admin-view .button,
.admin-view .health-chip,
.admin-view .count-badge {
  box-shadow: none;
}

.admin-view .service-summary-bar {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
}

html[data-theme="light"] .admin-view .sidebar,
body[data-theme="light"] .admin-view .sidebar { background: #f8fafc; }

html[data-theme="light"] .admin-view .admin-header,
body[data-theme="light"] .admin-view .admin-header { background: rgba(255, 255, 255, .96); }

html[data-theme="light"] .admin-view .nav-item.active,
body[data-theme="light"] .admin-view .nav-item.active { color: #065f46; }

@media (max-width: 860px) {
  .admin-view { --sidebar: 100%; }
  .nav-section-label { display: none; }
  .admin-view .main-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82px, 1fr);
    grid-template-columns: none;
    gap: 3px;
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .admin-view .main-nav::-webkit-scrollbar { display: none; }
  .admin-view .nav-item {
    min-height: 60px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 5px 4px;
    font-size: 8.5px;
    text-align: center;
  }
  .admin-view .nav-item.active { box-shadow: inset 0 -3px 0 var(--green); }
  .admin-view .admin-header { min-height: 68px; padding-inline: 14px; }
  .admin-view .workspace { padding: 16px 14px calc(94px + env(safe-area-inset-bottom)); }
  .section-description { max-width: none; text-align: left; }
}

/* Tenant Custom Rules & Webhooks */
.user-rules-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-bright);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.user-rules-info-banner svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--cyan);
  margin-top: 2px;
}
.user-rules-info-banner strong {
  display: block;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 2px;
}
.user-rules-info-banner p {
  margin: 0;
  color: var(--muted);
}
.user-rules-info-banner.banner-warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}
.user-rules-info-banner.banner-warning svg,
.user-rules-info-banner.banner-warning strong {
  color: var(--amber);
}
.user-rules-info-banner.banner-success {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}
.user-rules-info-banner.banner-success svg,
.user-rules-info-banner.banner-success strong {
  color: var(--green);
}

.user-rules-add-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 12px;
}

@media (max-width: 768px) {
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

.user-rules-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  max-height: 320px;
  overflow-y: auto;
}
.user-rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.user-rules-table th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 1;
}
.user-rules-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-bright);
}
.user-rules-table tr:last-child td {
  border-bottom: none;
}
.user-rules-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.user-unblock-search-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.user-unblock-search-wrap input {
  flex: 1;
}

.tenant-logs-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .tenant-logs-kpis {
    grid-template-columns: 1fr;
  }
}

.user-rules-top-ips-wrap {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.user-top-ips-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.top-ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--red);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.top-ip-chip:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}
.top-ip-chip .chip-hits {
  background: rgba(239, 68, 68, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
}

.form-success-inline {
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  margin: 6px 0 12px;
}

.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-bright);
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
}

.webhook-channel-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  margin-bottom: 14px;
}
.webhook-channel-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.webhook-channel-heading svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

