/* ==========================================================================
   RAILGUARD EXPRESS & NETGUARD AI - PREMIUM MODERN DESIGN SYSTEM v2.0
   Glassmorphism • Gradient Accents • Micro-Animations • Premium Light Theme
   ========================================================================== */

:root {
  /* Color Palette — Premium Modern Light */
  --bg-primary: #f0f4f8;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8eef4;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f9fc;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);
  --border-subtle: rgba(148, 163, 184, 0.22);
  --border-highlight: rgba(100, 116, 139, 0.3);
  --border-focus: #2563eb;
  --border-glass: rgba(255, 255, 255, 0.45);

  /* Brand Accents — Refined Gradients */
  --accent-cyan: #0891b2;
  --accent-blue: #2563eb;
  --accent-blue-deep: #1e40af;
  --accent-blue-light: #eff6ff;
  --accent-blue-border: #bfdbfe;
  --accent-indigo: #6366f1;
  --accent-amber: #d97706;
  --accent-orange: #ea580c;
  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #0891b2 50%, #06b6d4 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(8, 145, 178, 0.06) 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #0c4a6e 40%, #164e63 100%);
  --gradient-danger: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  --gradient-success: linear-gradient(135deg, #059669 0%, #047857 100%);

  /* Status Colors */
  --status-active: #059669;
  --status-active-bg: rgba(5, 150, 105, 0.08);
  --status-active-border: rgba(5, 150, 105, 0.2);
  
  --status-suspicious: #d97706;
  --status-suspicious-bg: rgba(217, 119, 6, 0.08);
  --status-suspicious-border: rgba(217, 119, 6, 0.2);

  --status-blocked: #dc2626;
  --status-blocked-bg: rgba(220, 38, 38, 0.06);
  --status-blocked-border: rgba(220, 38, 38, 0.2);
  
  --status-critical: #b91c1c;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', monospace;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Premium Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.14), 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-glow-blue: 0 0 20px rgba(37, 99, 235, 0.15), 0 0 40px rgba(37, 99, 235, 0.05);
  --shadow-glow-cyan: 0 0 20px rgba(8, 145, 178, 0.15), 0 0 40px rgba(8, 145, 178, 0.05);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(ellipse at 15% 8%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(8, 145, 178, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 60%);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.4); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.6); }

/* ==========================================================================
   HEADER & NAVIGATION — Glassmorphism
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.02);
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  color: #ffffff;
  transition: transform var(--transition-spring);
}
.brand-icon:hover { transform: scale(1.08) rotate(-3deg); }
.brand-badge {
  background: var(--gradient-brand-subtle);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.15);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-link:hover {
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.06);
}
.nav-link.active {
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.08);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   BUTTONS — Premium Gradient System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-1px);
}
.btn-danger {
  background: rgba(220, 38, 38, 0.06);
  color: var(--status-blocked);
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.btn-danger:hover {
  background: var(--gradient-danger);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
  transform: translateY(-1px);
}
.btn-success {
  background: rgba(5, 150, 105, 0.06);
  color: var(--status-active);
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.btn-success:hover {
  background: var(--gradient-success);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transform: translateY(-1px);
}
.btn-sm {
  padding: 6px 14px;
  font-size: 0.775rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   BADGES — Refined with Glow
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.badge-active {
  background: rgba(5, 150, 105, 0.1);
  color: var(--status-active);
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.badge-suspicious {
  background: rgba(217, 119, 6, 0.1);
  color: var(--status-suspicious);
  border: 1px solid rgba(217, 119, 6, 0.2);
}
.badge-blocked {
  background: rgba(220, 38, 38, 0.08);
  color: var(--status-blocked);
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.badge-low {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.badge-medium {
  background: rgba(217, 119, 6, 0.08);
  color: var(--status-suspicious);
  border: 1px solid rgba(217, 119, 6, 0.2);
}
.badge-high {
  background: rgba(234, 88, 12, 0.08);
  color: var(--accent-orange);
  border: 1px solid rgba(234, 88, 12, 0.2);
}
.badge-critical {
  background: rgba(185, 28, 28, 0.08);
  color: var(--status-critical);
  border: 1px solid rgba(185, 28, 28, 0.2);
  animation: criticalPulse 2s ease-in-out infinite;
}
@keyframes criticalPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 8px rgba(220, 38, 38, 0.2); }
}

/* ==========================================================================
   LAYOUT & PAGE TRANSITIONS
   ========================================================================== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 28px;
}
.page-view {
  display: none;
}
.page-view.active {
  display: block;
  animation: pageIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   TRAIN BOOKING PORTAL — Premium Cards
   ========================================================================== */
.train-hero-section {
  padding: 20px 0 48px;
}
.booking-search-card {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.booking-search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}
.booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.booking-search-grid {
  display: grid;
  grid-template-columns: 2fr auto 2fr 1.5fr 1.5fr 1.5fr auto;
  gap: 14px;
  align-items: flex-end;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.search-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.search-input-box {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}
.search-input-box:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-sm);
}
.btn-swap-stations {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-spring);
  margin-bottom: 2px;
  font-size: 1.1rem;
}
.btn-swap-stations:hover {
  background: var(--gradient-brand);
  color: #fff;
  transform: rotate(180deg) scale(1.05);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.station-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.station-pill {
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(8px);
}
.station-pill:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

/* Train Result Cards — Glassmorphism */
.trains-list-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}
.train-card {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.train-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: var(--gradient-brand);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.train-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
  transform: translateY(-3px);
}
.train-card:hover::after { opacity: 1; }

.train-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.train-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.train-num-tag {
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.train-name-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.train-runs-badge {
  font-size: 0.775rem;
  color: var(--text-muted);
}
.train-journey-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 22px;
  background: rgba(248, 250, 252, 0.8);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.journey-time {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}
.journey-station {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.journey-duration-col {
  text-align: center;
  padding: 0 24px;
}
.journey-line {
  height: 2px;
  background: var(--gradient-brand);
  position: relative;
  margin: 8px 0;
}
.journey-line::before, .journey-line::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}
.journey-line::before { left: 0; }
.journey-line::after { right: 0; background: var(--accent-cyan); box-shadow: 0 0 8px rgba(8, 145, 178, 0.3); }

/* Classes & Fares */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.class-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}
.class-box:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.03);
  transform: translateY(-1px);
}
.class-box.selected {
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.class-name {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.class-fare {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-blue);
  font-family: var(--font-mono);
}
.class-avail {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--status-active);
}

/* ==========================================================================
   SERVICE CARDS — Hover Animations
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.service-card {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  border-color: rgba(37, 99, 235, 0.15);
}
.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.service-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  transition: all var(--transition-normal);
}
.service-card:hover .service-icon-box {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.service-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   E-BOARDING PASS / TICKET
   ========================================================================== */
.boarding-pass-card {
  background: #ffffff;
  border: 2px solid var(--accent-blue);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: var(--text-primary);
  position: relative;
  box-shadow: var(--shadow-xl);
}
.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 2px dashed rgba(148, 163, 184, 0.3);
  margin-bottom: 18px;
}
.ticket-pnr-banner {
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent-blue);
}
.ticket-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.ticket-barcode-box {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}
.barcode-mock {
  height: 40px;
  width: 100%;
  background: repeating-linear-gradient(90deg, #0f172a 0px, #0f172a 3px, #ffffff 3px, #ffffff 6px, #0f172a 6px, #0f172a 10px, #ffffff 10px, #ffffff 12px);
  margin-bottom: 6px;
}

/* ==========================================================================
   FILE UPLOAD DROPZONE
   ========================================================================== */
.file-dropzone {
  border: 2px dashed rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: rgba(37, 99, 235, 0.03);
  cursor: pointer;
  transition: all var(--transition-normal);
}
.file-dropzone:hover {
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.08);
}
.dropzone-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: var(--accent-blue);
}

/* ==========================================================================
   ADMIN SOC — Premium Enterprise Dashboard
   ========================================================================== */
.soc-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - 80px);
}
.soc-sidebar {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.soc-nav-heading {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: 14px 14px 6px;
}
.soc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  border: 1px solid transparent;
}
.soc-nav-item:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent-blue);
}
.soc-nav-item.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
  font-weight: 600;
  border-color: rgba(37, 99, 235, 0.12);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.soc-nav-item.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--gradient-brand);
  border-radius: 0 3px 3px 0;
}
.soc-content {
  padding: 28px;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  background: var(--bg-primary);
}
.soc-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.soc-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* KPI Cards — Glassmorphism */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.kpi-card {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.kpi-card:hover::after { opacity: 1; }
.kpi-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.kpi-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}
.kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ==========================================================================
   DATA TABLES — Premium Enterprise
   ========================================================================== */
.table-wrapper {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.soc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}
.soc-table th {
  background: rgba(241, 245, 249, 0.8);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
}
.soc-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  color: var(--text-primary);
  vertical-align: middle;
  transition: background var(--transition-fast);
}
.soc-table tr:last-child td { border-bottom: none; }
.soc-table tr:hover td { background: rgba(37, 99, 235, 0.03); }
.soc-table tr:nth-child(even) td { background: rgba(248, 250, 252, 0.5); }
.soc-table tr:nth-child(even):hover td { background: rgba(37, 99, 235, 0.04); }

.font-mono { font-family: var(--font-mono); }

/* Filter Toolbar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.filter-select {
  padding: 9px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.84rem;
  transition: border-color var(--transition-fast);
}
.filter-select:focus { border-color: var(--accent-blue); outline: none; }
.search-input {
  flex: 1;
  min-width: 220px;
  padding: 9px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.84rem;
  transition: all var(--transition-fast);
}
.search-input:focus {
  border-color: var(--accent-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Pulse Dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-active);
  display: inline-block;
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
}

/* ==========================================================================
   MODALS — Premium Overlay
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}
.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 250, 252, 0.8);
}
.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(248, 250, 252, 0.8);
}

/* Audit Record Inspector */
.audit-record-box {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-primary);
}
.record-row {
  display: flex;
  margin-bottom: 8px;
}
.record-key {
  width: 140px;
  color: var(--text-muted);
  font-weight: 600;
}
.record-val {
  flex: 1;
  color: var(--text-primary);
  word-break: break-all;
}

/* ==========================================================================
   AUTH FORMS — Premium Glass
   ========================================================================== */
.auth-box {
  max-width: 460px;
  margin: 40px auto;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.auth-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.auth-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.auth-box p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-input {
  width: 100%;
  padding: 11px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}
.form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-sm);
}
.demo-creds {
  margin-top: 20px;
  padding: 16px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px dashed rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.775rem;
  color: var(--accent-blue-deep);
}
.demo-creds code {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==========================================================================
   TOAST NOTIFICATIONS — Slide & Glow
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  min-width: 340px;
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}
.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-blue);
  animation: toastTimer 4.5s linear forwards;
}
.toast.toast-error { border-left-color: var(--status-blocked); }
.toast.toast-error::after { background: var(--status-blocked); }
.toast.toast-success { border-left-color: var(--status-active); }
.toast.toast-success::after { background: var(--status-active); }
@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastTimer {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==========================================================================
   HACKER LAB — DEDICATED FULLSCREEN ATTACK CONSOLE
   ========================================================================== */
body.hacker-mode {
  background: #040711 !important;
  overflow: hidden !important;
}
body.hacker-mode .main-header,
body.hacker-mode .main-footer {
  display: none !important;
}

#view-hacker-lab {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
  height: 100vh;
  width: 100vw;
  background: #040711;
  overflow: hidden;
}

.attack-console-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #040711;
  color: #a3e635;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-sizing: border-box;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.attack-console-fullscreen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, #f59e0b, #ef4444, transparent);
  animation: scanLine 3s linear infinite;
  z-index: 1005;
}

@keyframes scanLine {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.attack-console-fullscreen .terminal-header {
  background: #0a0f1d;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
  flex-shrink: 0;
  gap: 12px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot-close { background: #ef4444; }
.dot-min { background: #f59e0b; }
.dot-max { background: #22c55e; }

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 800;
  color: #f87171;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.terminal-status-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
}
.indicator-chip {
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
}
.chip-target {
  border-color: rgba(103, 232, 249, 0.4);
  color: #67e8f9;
}
.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 5px;
  animation: blink 1.5s infinite;
}
.chip-shield {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}
.chip-count {
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.terminal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.terminal-action-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.74rem;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.terminal-action-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
  border-color: #ef4444;
}
.terminal-action-btn.exit-btn {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.3);
}
.terminal-action-btn.exit-btn:hover {
  background: rgba(148, 163, 184, 0.25);
  color: #ffffff;
  border-color: #cbd5e1;
}

/* Quick Exploit Toolbar */
.terminal-toolbar {
  background: #080d1a;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.toolbar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-right: 4px;
}
.exploit-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  padding: 5px 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.exploit-chip:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}
.exploit-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.chip-num {
  color: #ef4444;
  font-weight: 700;
}

/* Terminal Log Area */
.attack-console-fullscreen .terminal-output {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  background: #040711;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.68;
  color: #a3e635;
}
.attack-console-fullscreen .terminal-output::-webkit-scrollbar {
  width: 8px;
}
.attack-console-fullscreen .terminal-output::-webkit-scrollbar-track {
  background: #050813;
}
.attack-console-fullscreen .terminal-output::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.3);
  border-radius: 4px;
}

.terminal-line {
  margin-bottom: 2px;
  animation: typeLine 0.2s ease-out;
}
@keyframes typeLine {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
.terminal-line.error { color: #f87171; font-weight: 600; }
.terminal-line.warning { color: #fbbf24; }
.terminal-line.info { color: #67e8f9; }
.terminal-line.success { color: #4ade80; }
.terminal-line.system { color: #c084fc; }
.terminal-line.cmd { color: #ffffff; font-weight: 700; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #a3e635;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* CLI Interactive Prompt */
.terminal-cli-bar {
  background: #090e1c;
  border-top: 1px solid rgba(239, 68, 68, 0.25);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cli-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}
.cli-user { color: #f87171; }
.cli-host { color: #67e8f9; }
.cli-path { color: #fbbf24; }
.cli-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
}
.cli-input::placeholder {
  color: rgba(148, 163, 184, 0.4);
}
.cli-exec-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cli-exec-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* NetGuard AI Detection Popup */
.netguard-detection-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(127, 29, 29, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: threatFlash 0.5s ease-out;
}
.netguard-detection-overlay.active { display: flex; }
@keyframes threatFlash {
  0% { background: rgba(239, 68, 68, 0.95); }
  25% { background: rgba(127, 29, 29, 0.7); }
  50% { background: rgba(239, 68, 68, 0.9); }
  100% { background: rgba(127, 29, 29, 0.85); }
}
.detection-card {
  background: #0a0e17;
  border: 2px solid #ef4444;
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 80px rgba(239, 68, 68, 0.3), 0 0 160px rgba(239, 68, 68, 0.1);
  animation: detectionIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
@keyframes detectionIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.detection-shield {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
  animation: shieldPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}
@keyframes shieldPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 50px rgba(239, 68, 68, 0.6); }
}
.detection-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fca5a5;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.detection-subtitle {
  font-size: 0.95rem;
  color: #f87171;
  margin-bottom: 24px;
  font-weight: 600;
}
.detection-details {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fca5a5;
  line-height: 1.9;
}
.detection-details .detail-label {
  color: #94a3b8;
  min-width: 130px;
  display: inline-block;
}
.detection-dismiss {
  padding: 12px 32px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
}
.detection-dismiss:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   ZEEK TELEMETRY DASHBOARD
   ========================================================================== */
.zeek-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.zeek-stat {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  transition: all var(--transition-normal);
}
.zeek-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.zeek-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 4px;
}
.zeek-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.zeek-log-viewer {
  background: #0a0e17;
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #67e8f9;
  max-height: 240px;
  overflow-y: auto;
  line-height: 1.7;
  margin-bottom: 20px;
}
.zeek-log-viewer::-webkit-scrollbar-thumb { background: rgba(8, 145, 178, 0.3); }

/* JA3 Fingerprint Cards */
.ja3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.ja3-card {
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: all var(--transition-normal);
}
.ja3-card.bot {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.03);
}
.ja3-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .soc-wrapper { grid-template-columns: 1fr; }
  .soc-sidebar { display: none; }
  .booking-search-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .classes-grid { grid-template-columns: repeat(2, 1fr); }
  .zeek-grid { grid-template-columns: repeat(2, 1fr); }
  .attack-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .booking-search-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .train-journey-bar { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .zeek-grid { grid-template-columns: 1fr; }
  .attack-grid { grid-template-columns: 1fr; }
  .detection-card { padding: 28px; }
}
