/* =========================================================================
   Quaggy — Arcade High-Score Threat Framework Stylesheet
   Theme: High-Tech Neon Grid with Video Game Leaderboard Aesthetic
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=JetBrains+Mono:wght@400;700;800&family=Inter:wght@400;600;700&display=swap');

:root {
  --bg-dark: #030611;
  --bg-surface: #0a0f24;
  --bg-card: rgba(10, 15, 36, 0.88);
  --bg-card-hover: rgba(16, 24, 56, 0.95);
  --border: rgba(0, 243, 255, 0.25);
  --border-glow: rgba(0, 243, 255, 0.7);
  
  --neon-cyan: #00f3ff;
  --neon-pink: #ff007f;
  --neon-amber: #ffb700;
  --neon-green: #00ff66;
  --neon-purple: #b026ff;
  
  --text: #f0f6fc;
  --text-muted: #8b9bb4;
  --text-dim: #4c5d78;

  --font-title: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;

  --radius: 10px;
  --radius-sm: 4px;
  --shadow-neon-cyan: 0 0 15px rgba(0, 243, 255, 0.35);
  --shadow-neon-pink: 0 0 15px rgba(255, 0, 127, 0.35);
  --shadow-neon-amber: 0 0 15px rgba(255, 183, 0, 0.35);
  
  --max-w: 1360px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(176, 38, 255, 0.15) 0%, transparent 75%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scanline Effect */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.35;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
  background: linear-gradient(135deg, #fff 20%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}
h3 {
  font-size: 1.15rem;
  color: var(--neon-cyan);
}
h4 {
  font-size: 0.8rem;
  color: var(--neon-pink);
  letter-spacing: 0.12em;
}

p { color: var(--text-muted); }
a { color: var(--neon-cyan); text-decoration: none; transition: all 0.2s; }
a:hover { color: #fff; text-shadow: 0 0 10px var(--neon-cyan); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header & Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 6, 17, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 4px 25px rgba(0, 243, 255, 0.15);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.4rem;
  cursor: pointer;
}
.logo-text {
  color: #fff;
  text-shadow: 0 0 12px var(--neon-cyan);
}
.logo-dot {
  color: var(--neon-pink);
  text-shadow: 0 0 12px var(--neon-pink);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.4);
  color: var(--neon-green);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse-glow 1.5s infinite alternate;
}
@keyframes pulse-glow {
  from { opacity: 0.4; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.4rem;
}
.nav-tab {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-tab:hover {
  color: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-neon-cyan);
}
.nav-tab.active {
  color: #fff;
  background: rgba(0, 243, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* Nav Dropdowns — groups related tabs behind a single top-level toggle
   instead of a long flat row (docs/todo.md Phase 30). Hover/focus-driven,
   no JS state needed; leaf items keep the .nav-tab contract so existing
   click routing/active-highlighting needs no changes for nested items. */
.nav-dropdown {
  position: relative;
  display: inline-flex;
}
.nav-dropdown-toggle {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.nav-dropdown.open .nav-dropdown-toggle {
  color: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-neon-cyan);
}
.nav-dropdown.has-active .nav-dropdown-toggle {
  color: #fff;
  background: rgba(0, 243, 255, 0.12);
  border-color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 220px;
  padding: 0.4rem;
  background: rgba(3, 6, 17, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.1);
  z-index: 150;
  list-style: none;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-menu .nav-tab {
  width: 100%;
  justify-content: flex-start;
}

/* Platform Admin sub-navigation — a single unified pill bar shown above
   whichever platform-admin page is active (System Health/BGP/Users/
   Integrations/Configurations sub-panels within view-superadmin, plus
   Flowspec/Signatures/Collector Rules/Honeypots, each still their own
   top-level view) so all of platform management reads as one console
   instead of a scattered nav dropdown (docs/todo.md Phase 30). */
.platform-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1400px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
}
.subnav-pill {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: transparent;
  font-family: var(--font-title);
  font-size: 0.78rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.subnav-pill:hover {
  color: #fff;
  box-shadow: var(--shadow-neon-cyan);
}
.subnav-pill.active {
  color: #fff;
  background: rgba(0, 243, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* User Controls */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* User badge: avatar + name + org/role, all one clickable unit that opens
   My Account - replaces the old flat "badge / name / (role)" text row. */
.user-badge-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.user-badge-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-neon-cyan);
}
.user-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: #03060f;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
  flex-shrink: 0;
}
/* Super Admin shield: a compact icon on the avatar itself instead of a
   third text pill next to name/org - user reported the upper-right nav
   felt crowded, and "SUPER ADMIN" as a wordy badge alongside org name
   was a big part of that. Only super_admin gets this; org_admin/member
   keep the existing text badge, which is already compact. */
.avatar-shield {
  position: absolute;
  bottom: -3px;
  right: -4px;
  font-size: 0.75rem;
  line-height: 1;
  background: var(--bg-dark);
  border-radius: 50%;
  padding: 1px 2px;
  filter: drop-shadow(0 0 4px #ffd700);
}
.user-badge-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}
.user-badge-info strong {
  color: #fff;
  font-size: 0.85rem;
}
.user-badge-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.user-badge-meta .badge {
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary {
  background: rgba(0, 243, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}
.btn-primary:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 25px var(--neon-cyan);
  transform: translateY(-1px);
}
.btn-pink {
  background: rgba(255, 0, 127, 0.15);
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
  box-shadow: var(--shadow-neon-pink);
}
.btn-pink:hover {
  background: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 25px var(--neon-pink);
}
.btn-amber {
  background: rgba(255, 183, 0, 0.15);
  border: 1px solid var(--neon-amber);
  color: var(--neon-amber);
  box-shadow: var(--shadow-neon-amber);
}
.btn-amber:hover {
  background: var(--neon-amber);
  color: #000;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--neon-cyan);
  color: #fff;
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

/* Sections */
.view-section {
  display: none;
  padding: 2.5rem 0;
  animation: sectionFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.view-section.active {
  display: block;
}
.admin-subpanel {
  display: none;
}
.admin-subpanel.active {
  display: block;
  animation: sectionFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes sectionFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Per-card entrance, applied by switchTab()/showAdminSubpanel() in app.js
   with a small stagger delay per card — borrowed directly from
   about.html's IntersectionObserver reveal (docs/todo.md Phase 55), since
   the dashboard felt static/instant next to that page's more fluid scroll
   narrative. `backwards` fill-mode means a card's pre-animation state is
   the `from` keyframe, so there's no flash of the final state if this
   class is ever applied a frame late; if the class is never applied at
   all (JS disabled/broken), cards simply render normally — no permanent
   opacity:0 anywhere in this stylesheet. */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.card-enter {
  animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.glass-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}
.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 243, 255, 0.12);
}

/* Live-feed metric tiles - deliberately not .glass-card: these are small
   static numbers, not entrance-animated/hover-lifted cards, and nesting
   full glass-cards inside the live-feed card's own glass-card looked
   busy (double border/shadow). Kept out of reviveCards()'s selector
   scope entirely by using a different class name. */
.metric-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.metric-tile-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.metric-tile-value {
  font-family: var(--font-title);
  font-size: 1.6rem;
}

/* Grids */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Honeypot Port Sliders */
.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}
.port-group-title {
  font-family: var(--font-title);
  color: var(--neon-cyan);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin: 1.25rem 0 0.6rem;
  text-transform: uppercase;
}
.port-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 243, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s;
}
.port-card.port-occupied {
  opacity: 0.45;
  filter: grayscale(0.8);
}
.port-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.port-card-label {
  font-weight: 700;
  color: #fff;
}
.port-card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--text-dim);
  border-radius: 22px;
  transition: 0.2s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
.toggle-switch input:disabled + .toggle-slider {
  cursor: not-allowed;
  opacity: 0.5;
}

.mode-pill-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.72rem;
}
.mode-pill {
  flex: 1;
  text-align: center;
  padding: 0.25rem 0;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: 0.15s;
}
.mode-pill.active-report {
  background: var(--neon-cyan);
  color: #001;
  font-weight: 700;
}
.mode-pill.active-blacklist {
  background: var(--neon-pink);
  color: #001;
  font-weight: 700;
}
.port-card.port-occupied .mode-pill,
.port-card.port-occupied .toggle-switch {
  pointer-events: none;
}

/* Stat Cards */
.stat-card {
  border-left: 3px solid var(--neon-cyan);
}
.stat-card.stat-pink { border-left-color: var(--neon-pink); }
.stat-card.stat-amber { border-left-color: var(--neon-amber); }
.stat-card.stat-purple { border-left-color: var(--neon-purple); }

.stat-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0.4rem 0;
  text-shadow: 0 0 12px var(--neon-cyan);
  color: #fff;
}
.stat-pink .stat-value { text-shadow: 0 0 12px var(--neon-pink); color: var(--neon-pink); }
.stat-amber .stat-value { text-shadow: 0 0 12px var(--neon-amber); color: var(--neon-amber); }
.stat-purple .stat-value { text-shadow: 0 0 12px var(--neon-purple); color: var(--neon-purple); }

/* Scoreboard Tables */
.scoreboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}
table.scoreboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}
table.scoreboard-table th {
  background: rgba(3, 6, 17, 0.9);
  color: var(--neon-cyan);
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
}
table.scoreboard-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(0, 243, 255, 0.08);
  font-family: var(--font-sans);
}
table.scoreboard-table tr:hover td {
  background: rgba(0, 243, 255, 0.04);
}

/* Badges */
.rank-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.rank-1 { background: rgba(255, 215, 0, 0.2); color: #ffd700; border: 1px solid #ffd700; text-shadow: 0 0 8px #ffd700; }
.rank-2 { background: rgba(192, 192, 192, 0.2); color: #c0c0c0; border: 1px solid #c0c0c0; }
.rank-3 { background: rgba(205, 127, 50, 0.2); color: #cd7f32; border: 1px solid #cd7f32; }
.rank-other { color: var(--text-muted); font-size: 0.85rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-banned { background: rgba(255, 0, 127, 0.2); color: var(--neon-pink); border: 1px solid var(--neon-pink); box-shadow: 0 0 8px rgba(255, 0, 127, 0.4); }
.badge-warning { background: rgba(255, 183, 0, 0.2); color: var(--neon-amber); border: 1px solid var(--neon-amber); }
.badge-clean { background: rgba(0, 255, 102, 0.2); color: var(--neon-green); border: 1px solid var(--neon-green); }
.badge-cyan { background: rgba(0, 243, 255, 0.15); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.badge-purple { background: rgba(176, 38, 255, 0.15); color: var(--neon-purple); border: 1px solid var(--neon-purple); }
.badge-gold { background: rgba(255, 215, 0, 0.2); color: #ffd700; border: 1px solid #ffd700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.badge-red { background: rgba(255, 50, 50, 0.2); color: #ff3232; border: 1px solid #ff3232; box-shadow: 0 0 8px rgba(255, 50, 50, 0.4); }
.badge-pink { background: rgba(255, 0, 127, 0.2); color: var(--neon-pink); border: 1px solid var(--neon-pink); box-shadow: 0 0 8px rgba(255, 0, 127, 0.4); }

/* Progress bar */
.score-bar-bg {
  width: 90px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}
.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  box-shadow: 0 0 8px var(--neon-pink);
}

/* Forms & Modals */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(3, 6, 17, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}
.form-control:focus {
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(3, 6, 17, 0.88);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card {
  width: 100%; max-width: 580px;
  background: #0a0f24;
  border: 2px solid var(--neon-cyan);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 0 35px rgba(0, 243, 255, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border); padding-bottom: 0.75rem;
}
.modal-close {
  background: none; border: none; color: var(--neon-pink); font-size: 1.8rem; cursor: pointer;
}

/* Vertical IP Activity Timeline */
.ip-timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.ip-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink), rgba(255,255,255,0.1));
}
.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}
.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.timeline-content {
  background: rgba(13, 20, 44, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s;
}
.timeline-content:hover {
  border-color: var(--neon-cyan);
}
.timeline-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: rgba(13, 20, 44, 0.5);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* Toast */
#toast-container {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 300; display: flex; flex-direction: column; gap: 0.75rem;
}
.toast {
  padding: 0.9rem 1.25rem;
  background: #0a0f24;
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: var(--shadow-neon-cyan);
  display: flex; align-items: center; gap: 0.75rem;
}

/* Footer */
footer {
  margin-top: auto; border-top: 2px solid var(--border); padding: 2rem 0; background: rgba(3, 6, 17, 0.95);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted);
}
