/* ==========================================================================
   CyberSentry AI - Fake Social Media Account Detection Platform
   Design System & Premium Cyber Forensic Aesthetics
   ========================================================================== */

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0d1424;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(22, 34, 62, 0.85);
  --bg-glass: rgba(13, 20, 36, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.35);
  --border-danger-glow: rgba(255, 51, 102, 0.4);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #8a2be2;
  --accent-violet: #7928ca;
  --accent-emerald: #00f5a0;
  --accent-amber: #ffb703;
  --accent-crimson: #ff3366;
  --accent-danger: #ff0055;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-cyan: #38bdf8;
  --text-emerald: #34d399;
  --text-danger: #fb7185;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.2);
  --shadow-danger: 0 0 25px rgba(255, 51, 102, 0.25);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(121, 40, 202, 0.06) 0%, transparent 45%),
    linear-gradient(to bottom, #080c14, #0a0f1d);
  background-attachment: fixed;
}

/* Background Cyber Grid */
.cyber-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 12, 20, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(121, 40, 202, 0.3));
  border: 1px solid rgba(0, 242, 254, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.brand-text h1 {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(79, 172, 254, 0.35));
  border: 1px solid rgba(0, 242, 254, 0.5);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
  font-weight: 600;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-engine-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(0, 245, 160, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 245, 160, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite ease-in-out;
}

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

.btn-github {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.35s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Header Hero Banner
   ========================================================================== */
.section-hero {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-hero-title h2 {
  font-family: var(--font-main);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-hero-title p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 680px;
}

/* Preset Account Pills */
.preset-selector-bar {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
}

.preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.preset-header span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.preset-chips-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.preset-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.preset-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

.preset-chip.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.2);
}

.preset-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.preset-chip-info strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text-primary);
}

.preset-chip-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
}

.preset-chip-tag.danger { color: var(--accent-crimson); }
.preset-chip-tag.safe { color: var(--accent-emerald); }
.preset-chip-tag.warning { color: var(--accent-amber); }

/* ==========================================================================
   Tab 1: Single Account Deep Auditor Layout
   ========================================================================== */
.auditor-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .auditor-grid {
    grid-template-columns: 1fr;
  }
}

/* Card General */
.cyber-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cyber-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.card-title {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Input Form Elements */
.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: rgba(10, 15, 28, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.form-check input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: #040812;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.45);
}

/* Right Auditor Results Pane */
.results-pane {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Verdict Header Card */
.verdict-banner {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.verdict-banner.danger {
  border-color: var(--border-danger-glow);
  box-shadow: var(--shadow-danger);
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.08), rgba(15, 23, 42, 0.8));
}

.verdict-banner.safe {
  border-color: rgba(0, 245, 160, 0.4);
  box-shadow: 0 0 25px rgba(0, 245, 160, 0.15);
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.06), rgba(15, 23, 42, 0.8));
}

.verdict-banner.warning {
  border-color: rgba(255, 183, 3, 0.4);
  box-shadow: 0 0 25px rgba(255, 183, 3, 0.15);
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.06), rgba(15, 23, 42, 0.8));
}

/* Circular Gauge Dial */
.gauge-container {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 12;
}

.gauge-val-circle {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 408;
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s ease;
}

.gauge-inner-text {
  position: absolute;
  text-align: center;
}

.gauge-percent {
  font-family: var(--font-main);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.gauge-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* Verdict Details */
.verdict-details h3 {
  font-family: var(--font-main);
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.verdict-meta-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.verdict-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-danger {
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-crimson);
  border: 1px solid rgba(255, 51, 102, 0.35);
}

.badge-safe {
  background: rgba(0, 245, 160, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 245, 160, 0.35);
}

.badge-warning {
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 183, 3, 0.35);
}

.verdict-narrative {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.verdict-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.95rem;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Feature Attribution & Radar Grid */
.features-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .features-split-grid {
    grid-template-columns: 1fr;
  }
}

/* Vector Progress Bars */
.vector-bars-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.vector-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vector-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.vector-name {
  color: var(--text-secondary);
}

.vector-val {
  font-family: var(--font-mono);
  font-weight: 600;
}

.vector-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.vector-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Explainability List (SHAP-style) */
.explain-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.explain-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(10, 15, 28, 0.6);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
}

.explain-item.danger {
  border-left-color: var(--accent-crimson);
}

.explain-item.safe {
  border-left-color: var(--accent-emerald);
}

.explain-item.warning {
  border-left-color: var(--accent-amber);
}

.explain-delta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.explain-delta.danger {
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-crimson);
}

.explain-delta.safe {
  background: rgba(0, 245, 160, 0.15);
  color: var(--accent-emerald);
}

.explain-delta.warning {
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-amber);
}

.explain-content strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.explain-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Temporal Circadian Histogram */
.circadian-chart-box {
  background: rgba(10, 15, 28, 0.6);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.histogram-bars {
  display: flex;
  align-items: flex-end;
  height: 120px;
  gap: 4px;
  padding-top: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hist-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.hist-bar {
  width: 100%;
  border-radius: 2px 2px 0 0;
  background: var(--accent-cyan);
  opacity: 0.7;
  transition: height 0.5s ease;
}

.hist-col:hover .hist-bar {
  opacity: 1;
  filter: brightness(1.2);
}

.hist-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ==========================================================================
   Tab 2: Batch Benchmark Studio Layout
   ========================================================================== */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-num {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Confusion Matrix Box */
.eval-split-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 960px) {
  .eval-split-grid {
    grid-template-columns: 1fr;
  }
}

.confusion-matrix-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.matrix-cell {
  background: rgba(10, 15, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
}

.matrix-cell.tp {
  border-color: rgba(255, 51, 102, 0.4);
  background: rgba(255, 51, 102, 0.06);
}

.matrix-cell.tn {
  border-color: rgba(0, 245, 160, 0.4);
  background: rgba(0, 245, 160, 0.06);
}

.matrix-cell.fp, .matrix-cell.fn {
  border-color: rgba(255, 183, 3, 0.4);
  background: rgba(255, 183, 3, 0.06);
}

.matrix-val {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
}

.matrix-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.matrix-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Data Table Styles */
.table-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.filter-select {
  background: rgba(10, 15, 28, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.cyber-table th {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cyber-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.cyber-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.handle-col strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Tab 3: Sybil Botnet Network Graph Visualizer
   ========================================================================== */
.network-canvas-container {
  position: relative;
  width: 100%;
  height: 600px;
  background: radial-gradient(circle at center, #0e172a 0%, #060911 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

#networkCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.network-overlay-controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.network-legend-panel {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 10;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.network-node-inspector {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 280px;
  background: rgba(10, 15, 28, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  z-index: 10;
}

/* ==========================================================================
   Tab 4: Model Laboratory & Tuner
   ========================================================================== */
.lab-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 960px) {
  .lab-split-grid {
    grid-template-columns: 1fr;
  }
}

.slider-group {
  margin-bottom: 1.4rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  margin-bottom: 0.4rem;
}

.slider-track {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* ==========================================================================
   Tab 5: Methodology Whitepaper
   ========================================================================== */
.whitepaper-body {
  max-width: 860px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.whitepaper-body h3 {
  font-family: var(--font-main);
  color: var(--text-primary);
  font-size: 1.35rem;
  margin: 1.8rem 0 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

.whitepaper-body p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.formula-card {
  background: rgba(10, 15, 28, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent-cyan);
  overflow-x: auto;
}

/* ==========================================================================
   Modal Dialog (Forensic Audit Report)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #0b101c;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.report-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.report-table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
}

.report-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
}

.report-hash {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  color: var(--accent-cyan);
  word-break: break-all;
}

/* Print Styles */
@media print {
  .navbar, .preset-selector-bar, .verdict-actions, .nav-tabs {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .cyber-card, .verdict-banner {
    border: 1px solid #ccc !important;
    background: none !important;
    box-shadow: none !important;
    color: #000000 !important;
  }
}
