/* statistics.css — RhinoBox Observatory Traffic Counter & Telemetry */

:root {
  --bg-deep: #070d18;
  --bg-surface: rgba(13, 23, 42, 0.72);
  --bg-surface-hover: rgba(20, 36, 66, 0.85);
  --border-glass: rgba(148, 197, 255, 0.16);
  --border-focus: rgba(0, 240, 255, 0.5);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #00f0ff;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --glow-cyan: 0 0 24px rgba(0, 240, 255, 0.35);
  --font-family: Noto Sans, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', Menlo, Consolas, Monaco, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
}

html, body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Lighting Background */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
}
.glow-cyan {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  top: -100px;
  left: 10%;
}
.glow-blue {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  top: 30%;
  right: -100px;
}

.stats-shell {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 64px 24px;
}

/* Masthead */
.stats-masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.back-link:hover {
  color: #fff;
  transform: translateX(-4px);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 240, 255, 0.14);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-weight: 700;
}
.brand-desc {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 720px;
}

.masthead-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
.live-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-green);
}
.timestamp-readout {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

/* =========================================================================
   TRAFFIC INGRESS FILTER MODE SELECTOR (DEFAULT: VERIFIED HUMAN ONLOAD)
   ========================================================================= */
.traffic-mode-section {
  margin-bottom: 24px;
}
.traffic-mode-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: rgba(13, 20, 36, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 14px;
  padding: 20px 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(0, 240, 255, 0.2);
  flex-wrap: wrap;
}
.traffic-mode-left {
  flex: 1;
  min-width: 300px;
}
.traffic-mode-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.traffic-mode-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
}
.traffic-mode-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  transition: all 0.3s ease;
}
.traffic-mode-status.status-dev {
  background: rgba(168, 85, 247, 0.16);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}
.traffic-mode-status.status-raw {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}
.traffic-mode-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.traffic-mode-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.45;
}
.traffic-mode-toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.traffic-mode-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}
.traffic-mode-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.traffic-mode-btn.active#btn-mode-human {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), inset 0 0 12px rgba(0, 240, 255, 0.1);
}
.traffic-mode-btn.active#btn-mode-dev {
  background: rgba(168, 85, 247, 0.14);
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), inset 0 0 12px rgba(168, 85, 247, 0.12);
}
.traffic-mode-btn.active#btn-mode-raw {
  background: rgba(245, 158, 11, 0.14);
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), inset 0 0 12px rgba(245, 158, 11, 0.12);
}
.mode-btn-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.traffic-mode-btn.active#btn-mode-human .mode-btn-indicator {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}
.traffic-mode-btn.active#btn-mode-dev .mode-btn-indicator {
  background: #a855f7;
  border-color: #a855f7;
  box-shadow: 0 0 10px #a855f7;
}
.traffic-mode-btn.active#btn-mode-raw .mode-btn-indicator {
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}
.mode-btn-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mode-btn-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}
.mode-btn-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.traffic-mode-btn.active .mode-btn-sub {
  color: #cbd5e1;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 197, 255, 0.32);
}
.kpi-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.kpi-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-trend.positive {
  color: var(--accent-green);
  font-weight: 700;
}
.highlight-cyan {
  color: var(--accent-cyan);
}
.shield-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

/* Controls Panel */
.controls-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.controls-panel.single-control {
  grid-template-columns: 1fr;
}
.control-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(12px);
}
.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.control-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 2px;
}
.control-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.active-endpoint-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 29, 52, 0.8);
  border: 1px solid currentColor;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.time-window-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 29, 52, 0.8);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  letter-spacing: 0.04em;
}
.control-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Cyber Range Slider */
.slider-wrapper {
  position: relative;
  margin-bottom: 12px;
}
.cyber-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: background 0.2s ease;
}
.cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cyber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--accent-cyan);
}
.cyber-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan);
  cursor: pointer;
}

.slider-track-ticks {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0 4px;
}
.track-tick {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, height 0.2s ease;
}
.track-tick.active {
  background: var(--accent-cyan);
  height: 10px;
  box-shadow: 0 0 6px var(--accent-cyan);
}

/* Presets bar */
.slider-presets {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.preset-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.preset-btn.active {
  background: rgba(59, 130, 246, 0.22);
  border-color: var(--accent-blue);
  color: #fff;
}

/* Quick endpoint pills */
.endpoint-scroll-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 2px;
}
.ep-pill {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.ep-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.ep-pill.active {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}
.ep-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Main Chart Section */
.chart-section {
  margin-bottom: 24px;
}
.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(12px);
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.chart-main-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.chart-sub-title {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.chart-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chart-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Canvas Container */
.canvas-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  margin-bottom: 20px;
}
canvas#trafficChart {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

/* Floating Chart Tooltip */
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(10, 20, 36, 0.94);
  border: 1px solid rgba(148, 197, 255, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11.5px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 20;
  opacity: 0;
  transition: opacity 0.15s ease;
  max-width: 280px;
}
.tooltip-title {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}
.tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 3px;
}
.tooltip-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.tooltip-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}

/* Legend Box */
.chart-legend-box {
  background: rgba(10, 18, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
}
.legend-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.legend-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 12px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.15s ease;
  user-select: none;
}
.legend-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.legend-item.legend-all {
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.12);
  color: #fff;
  font-weight: 700;
}
.legend-item.active {
  border: 1px solid var(--accent-cyan);
  background: rgba(0, 240, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}
.legend-item.dimmed {
  opacity: 0.35;
  filter: grayscale(80%);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 10px;
}
.legend-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.legend-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: #fff;
}

/* Aggregated Information Grid */
.aggregated-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.agg-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(12px);
}
.agg-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.agg-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.agg-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

/* World Map SVG */
.world-map-wrap {
  width: 100%;
  height: 160px;
  background: rgba(10, 18, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.world-map-svg {
  width: 100%;
  height: 100%;
}
.map-path {
  fill: rgba(59, 130, 246, 0.18);
  stroke: rgba(148, 197, 255, 0.25);
  stroke-width: 1.2;
}
.ping-group {
  cursor: pointer;
}
.ping-circle {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 1.5;
  animation: ping-wave 2s infinite ease-out;
}
.ping-core {
  fill: var(--accent-cyan);
}
.ping-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
}
@keyframes ping-wave {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Geo Table */
.geo-table-wrap {
  overflow-x: auto;
}
.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.geo-table th {
  text-align: left;
  padding: 6px 8px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.geo-table td {
  padding: 8px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}
.geo-bar-wrap {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.geo-bar {
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 3px;
}

/* Referrers & Devices Lists */
.referrers-list, .devices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ref-item, .dev-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ref-top, .dev-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}
.ref-name, .dev-name {
  color: var(--text-muted);
}
.ref-val, .dev-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}
.bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 3px;
}

.sub-section-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 18px 0;
}

/* Live Feed Section */
.live-feed-section {
  margin-bottom: 32px;
}
.live-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 1.5s infinite;
}
.log-stream-table-wrap {
  overflow-x: auto;
}
.stream-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: var(--font-mono);
}
.stream-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-dim);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.stream-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}
.status-badge-200 {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  font-size: 10.5px;
  font-weight: 700;
}

/* =========================================================================
   FREE OPEN-STACK FIRMOGRAPHICS & NETWORK INTELLIGENCE
   ========================================================================= */
.firmographics-section {
  margin-top: 24px;
  margin-bottom: 32px;
}
.firmographics-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.firmographics-title-wrap {
  flex: 1;
  min-width: 320px;
}
.section-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.firmographics-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.zero-spend-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.5;
}
.firmographics-summary-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 29, 52, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.summary-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.summary-pill .pill-label {
  color: var(--text-muted);
  font-size: 11px;
}
.summary-pill .pill-val {
  font-weight: 800;
  color: #fff;
}
.cloud-pill .pill-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.enterprise-pill .pill-dot {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}
.eyeball-pill .pill-dot {
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
}

.firmographics-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}
.firmographics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.firmographics-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-dim);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.firmographics-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  vertical-align: middle;
}
.firm-asn {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}
.firm-org {
  font-weight: 600;
  color: #fff;
}
.firm-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-cloud {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
}
.badge-enterprise {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}
.badge-eyeball {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}
.firm-source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.firm-count {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}
.firm-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}
.firm-bar-wrap {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.firm-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

/* =========================================================================
   BOT FISHTANK (100% VIEWPORT WIDTH · BIOLUMINESCENT AQUATIC OBSERVATORY)
   ========================================================================= */
.bot-fishtank-viewport {
  width: 100%;
  background: linear-gradient(180deg, #020914 0%, #031222 45%, #01060d 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 240, 255, 0.28);
  border-bottom: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: inset 0 24px 80px rgba(0, 240, 255, 0.08), inset 0 -24px 80px rgba(0, 240, 255, 0.08);
}
.bot-fishtank-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(0, 240, 255, 0.08) 0%, transparent 60%);
  animation: aquatic-depth-pulse 10s ease-in-out infinite alternate;
  z-index: 1;
}

/* Primary Moving Light Caustics */
.fishtank-ambient-caustics {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 35% 15%, rgba(0, 240, 255, 0.16) 0%, rgba(20, 241, 149, 0.08) 35%, transparent 65%),
    radial-gradient(ellipse at 70% 30%, rgba(0, 180, 255, 0.12) 0%, rgba(0, 240, 255, 0.05) 40%, transparent 70%);
  filter: blur(45px);
  animation: caustic-drift-1 14s ease-in-out infinite alternate;
  z-index: 1;
}

/* Secondary Overlapping Water Shimmer */
.fishtank-ambient-caustics-layer2 {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 65% 75%, rgba(16, 185, 129, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 25% 60%, rgba(0, 240, 255, 0.12) 0%, transparent 55%);
  filter: blur(55px);
  animation: caustic-drift-2 18s ease-in-out infinite alternate;
  z-index: 1;
}

/* Surface Wave Oscillation */
.fishtank-water-surface {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  opacity: 0.9;
  z-index: 2;
  overflow: hidden;
}
.ocean-wave-svg {
  width: 120%;
  margin-left: -10%;
  height: 52px;
  display: block;
  animation: wave-sway 12s ease-in-out infinite alternate;
}
.wave-path-1 {
  animation: wave-subtle-1 8s ease-in-out infinite alternate;
}
.wave-path-2 {
  animation: wave-subtle-2 10s ease-in-out infinite alternate;
}

/* Rising Bioluminescent Bubbles Layer */
.fishtank-bubbles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(0, 240, 255, 0.4) 60%, rgba(0, 240, 255, 0.1) 100%);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6), inset 0 0 3px rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: bubble-rise linear infinite;
}

.bubble.b1  { left: 6%;  width: 5px; height: 5px; animation-duration: 9s;  animation-delay: 0s;   }
.bubble.b2  { left: 14%; width: 7px; height: 7px; animation-duration: 12s; animation-delay: 2.5s; }
.bubble.b3  { left: 22%; width: 4px; height: 4px; animation-duration: 8s;  animation-delay: 1.2s; }
.bubble.b4  { left: 33%; width: 8px; height: 8px; animation-duration: 14s; animation-delay: 4s;   }
.bubble.b5  { left: 45%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: 0.5s; }
.bubble.b6  { left: 54%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 3s;   }
.bubble.b7  { left: 63%; width: 4px; height: 4px; animation-duration: 8.5s;animation-delay: 5s;   }
.bubble.b8  { left: 72%; width: 9px; height: 9px; animation-duration: 15s; animation-delay: 1.8s; }
.bubble.b9  { left: 81%; width: 5px; height: 5px; animation-duration: 9.5s;animation-delay: 6s;   }
.bubble.b10 { left: 89%; width: 7px; height: 7px; animation-duration: 13s; animation-delay: 3.5s; }
.bubble.b11 { left: 95%; width: 4px; height: 4px; animation-duration: 7.5s;animation-delay: 2s;   }
.bubble.b12 { left: 40%; width: 6px; height: 6px; animation-duration: 11.5s;animation-delay: 7s;  }

@keyframes caustic-drift-1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate3d(40px, -25px, 0) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translate3d(-30px, 20px, 0) scale(0.96);
    opacity: 0.8;
  }
}

@keyframes caustic-drift-2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(-45px, 30px, 0) scale(1.12);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(35px, -15px, 0) scale(0.94);
    opacity: 0.65;
  }
}

@keyframes aquatic-depth-pulse {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.9;
  }
}

@keyframes wave-sway {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-40px);
  }
}

@keyframes wave-subtle-1 {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes wave-subtle-2 {
  0% {
    transform: translateY(-2px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(3px);
    opacity: 0.95;
  }
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  50% {
    transform: translateY(-50vh) translateX(12px);
    opacity: 0.7;
  }
  85% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-105vh) translateX(-10px);
    opacity: 0;
  }
}
.fishtank-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 52px 24px 60px 24px;
  position: relative;
  z-index: 2;
}
/* =========================================================================
   TEMPORARY WATERY EFFECT SELECTOR LAB (5 CHOICES)
   ========================================================================= */
.fishtank-effects-panel {
  background: rgba(4, 15, 30, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}
.effects-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.effects-panel-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.effects-panel-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  letter-spacing: 0.08em;
}
.effects-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.effects-panel-hint {
  font-size: 11.5px;
  color: #94a3b8;
}
.effects-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.effect-choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(10, 25, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}
.effect-choice-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}
.effect-choice-btn.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}
.effect-btn-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.effect-choice-btn.active .effect-btn-num {
  background: #00f0ff;
  color: #02070e;
}
.effect-btn-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.effect-btn-name {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}
.effect-choice-btn.active .effect-btn-name {
  color: #00f0ff;
}
.effect-btn-desc {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
}

/* =========================================================================
   BOT FISHTANK CARD & WATER EFFECTS INSIDE THE HULL
   ========================================================================= */
.fishtank-glass-hull {
  position: relative;
  overflow: hidden;
  background: rgba(4, 15, 30, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0, 4, 12, 0.95), inset 0 1px 1px rgba(0, 240, 255, 0.35);
  transition: all 0.4s ease;
}
.fishtank-header,
.fishtank-metric-rows,
.fishtank-diagnostics-strip {
  position: relative;
  z-index: 2;
}

/* 1. Theme: Bioluminescent Abyss (Default) */
.fishtank-glass-hull.effect-abyss .fishtank-ambient-caustics {
  background: 
    radial-gradient(ellipse at 35% 15%, rgba(0, 240, 255, 0.18) 0%, rgba(20, 241, 149, 0.10) 35%, transparent 65%),
    radial-gradient(ellipse at 70% 30%, rgba(0, 180, 255, 0.14) 0%, rgba(0, 240, 255, 0.06) 40%, transparent 70%);
}
.fishtank-glass-hull.effect-abyss .fishtank-ambient-caustics-layer2 {
  background: 
    radial-gradient(ellipse at 65% 75%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 25% 60%, rgba(0, 240, 255, 0.14) 0%, transparent 55%);
}
.fishtank-glass-hull.effect-abyss .wave-path-1 { fill: rgba(0, 240, 255, 0.12); }
.fishtank-glass-hull.effect-abyss .wave-path-2 { fill: rgba(16, 185, 129, 0.08); }
.fishtank-glass-hull.effect-abyss .bubble {
  background: radial-gradient(circle at 30% 30%, #fff, rgba(0, 240, 255, 0.4) 60%, rgba(0, 240, 255, 0.1) 100%);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* 2. Theme: Sunlit Coastal Reef */
.fishtank-glass-hull.effect-coastal {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 24px 64px rgba(0, 4, 12, 0.95), inset 0 1px 1px rgba(16, 185, 129, 0.4);
}
.fishtank-glass-hull.effect-coastal .fishtank-ambient-caustics {
  background: 
    radial-gradient(ellipse at 40% 10%, rgba(52, 211, 153, 0.22) 0%, rgba(6, 182, 212, 0.12) 40%, transparent 70%),
    radial-gradient(ellipse at 75% 25%, rgba(16, 185, 129, 0.16) 0%, transparent 60%);
}
.fishtank-glass-hull.effect-coastal .fishtank-ambient-caustics-layer2 {
  background: 
    radial-gradient(ellipse at 60% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(52, 211, 153, 0.14) 0%, transparent 50%);
}
.fishtank-glass-hull.effect-coastal .wave-path-1 { fill: rgba(16, 185, 129, 0.15); }
.fishtank-glass-hull.effect-coastal .wave-path-2 { fill: rgba(6, 182, 212, 0.10); }
.fishtank-glass-hull.effect-coastal .bubble {
  background: radial-gradient(circle at 30% 30%, #fff, rgba(52, 211, 153, 0.5) 60%, rgba(16, 185, 129, 0.15) 100%);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

/* 3. Theme: Midnight Arctic Trench */
.fishtank-glass-hull.effect-arctic {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 24px 64px rgba(0, 4, 12, 0.95), inset 0 1px 1px rgba(56, 189, 248, 0.4);
}
.fishtank-glass-hull.effect-arctic .fishtank-ambient-caustics {
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(56, 189, 248, 0.18) 0%, rgba(30, 58, 138, 0.25) 50%, transparent 75%),
    radial-gradient(ellipse at 80% 40%, rgba(147, 197, 253, 0.12) 0%, transparent 60%);
}
.fishtank-glass-hull.effect-arctic .fishtank-ambient-caustics-layer2 {
  background: 
    radial-gradient(ellipse at 30% 85%, rgba(30, 64, 175, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 65%, rgba(56, 189, 248, 0.12) 0%, transparent 50%);
}
.fishtank-glass-hull.effect-arctic .wave-path-1 { fill: rgba(56, 189, 248, 0.14); }
.fishtank-glass-hull.effect-arctic .wave-path-2 { fill: rgba(147, 197, 253, 0.08); }
.fishtank-glass-hull.effect-arctic .bubble {
  background: radial-gradient(circle at 30% 30%, #fff, rgba(147, 197, 253, 0.6) 60%, rgba(56, 189, 248, 0.2) 100%);
  box-shadow: 0 0 10px rgba(147, 197, 253, 0.8);
}

/* 4. Theme: Neon Cyber-Aquarium */
.fishtank-glass-hull.effect-cyber {
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 24px 64px rgba(0, 4, 12, 0.95), inset 0 1px 1px rgba(192, 132, 252, 0.45);
}
.fishtank-glass-hull.effect-cyber .fishtank-ambient-caustics {
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(192, 132, 252, 0.22) 0%, rgba(0, 240, 255, 0.12) 40%, transparent 70%),
    radial-gradient(ellipse at 75% 35%, rgba(217, 70, 239, 0.15) 0%, transparent 60%);
}
.fishtank-glass-hull.effect-cyber .fishtank-ambient-caustics-layer2 {
  background: 
    radial-gradient(ellipse at 70% 80%, rgba(0, 240, 255, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(168, 85, 247, 0.16) 0%, transparent 50%);
}
.fishtank-glass-hull.effect-cyber .wave-path-1 { fill: rgba(192, 132, 252, 0.15); }
.fishtank-glass-hull.effect-cyber .wave-path-2 { fill: rgba(0, 240, 255, 0.10); }
.fishtank-glass-hull.effect-cyber .bubble {
  background: radial-gradient(circle at 30% 30%, #fff, rgba(217, 70, 239, 0.5) 60%, rgba(192, 132, 252, 0.2) 100%);
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.8);
}

/* 5. Theme: Hydrothermal Vent */
.fishtank-glass-hull.effect-vent {
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 24px 64px rgba(0, 4, 12, 0.95), inset 0 1px 1px rgba(245, 158, 11, 0.4);
}
.fishtank-glass-hull.effect-vent .fishtank-ambient-caustics {
  background: 
    radial-gradient(ellipse at 40% 85%, rgba(245, 158, 11, 0.22) 0%, rgba(249, 115, 22, 0.14) 40%, transparent 70%),
    radial-gradient(ellipse at 65% 90%, rgba(239, 68, 68, 0.12) 0%, transparent 60%);
}
.fishtank-glass-hull.effect-vent .fishtank-ambient-caustics-layer2 {
  background: 
    radial-gradient(ellipse at 50% 20%, rgba(30, 41, 59, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 40%, rgba(245, 158, 11, 0.10) 0%, transparent 50%);
}
.fishtank-glass-hull.effect-vent .wave-path-1 { fill: rgba(245, 158, 11, 0.12); }
.fishtank-glass-hull.effect-vent .wave-path-2 { fill: rgba(249, 115, 22, 0.08); }
.fishtank-glass-hull.effect-vent .bubble {
  background: radial-gradient(circle at 30% 30%, #fff, rgba(245, 158, 11, 0.6) 60%, rgba(249, 115, 22, 0.2) 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}
.fishtank-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.fishtank-title-wrap {
  flex: 1;
  min-width: 320px;
}
.fishtank-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.fishtank-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.bio-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
  animation: bio-glow 2s infinite ease-in-out;
}
@keyframes bio-glow {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}
.fishtank-filter-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}
.fishtank-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
  margin-bottom: 6px;
}
.fishtank-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 740px;
  line-height: 1.5;
}
.fishtank-gauge-box {
  background: rgba(2, 9, 20, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 18px 22px;
  min-width: 380px;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.04);
}
.gauge-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.gauge-title {
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.gauge-ratio {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-cyan);
}
.gauge-track {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}
.gauge-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #00f0ff, #10b981);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
  transition: width 0.4s ease;
}
.gauge-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.highlight-green {
  color: #10b981;
}
.highlight-amber {
  color: #f59e0b;
}

/* Metric Rows: Professional, serious metric rows with illuminated bars */
.fishtank-metric-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fishtank-row {
  background: rgba(6, 17, 34, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 10px;
  padding: 16px 20px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.fishtank-row:hover {
  background: rgba(9, 25, 48, 0.9);
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 240, 255, 0.12);
}
.row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-indicator {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.row-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.row-subtitle {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 2px;
}
.row-right {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
}
.row-count {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.row-pct {
  font-size: 13px;
  font-weight: 700;
}
.row-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 8px;
}
.row-illuminated-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.row-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.fishtank-diagnostics-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 240, 255, 0.12);
}
.diag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.diag-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Footer */
.stats-footer {
  text-align: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.footer-sub {
  margin-top: 4px;
  color: #475569;
}

/* Responsive */
@media (max-width: 1024px) {
  .controls-panel {
    grid-template-columns: 1fr;
  }
  .aggregated-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fishtank-gauge-box {
    min-width: 100%;
  }
}
/* =========================================================================
   Human Deposit & Allocation Tracking Section
   ========================================================================= */
.deposit-tracking-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  position: relative;
}

.deposit-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.deposit-title-wrap {
  flex: 1;
  min-width: 280px;
}

.deposit-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.deposit-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.deposit-live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-glow 2s infinite;
}

.deposit-status-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #a7f3d0;
  letter-spacing: 0.04em;
}

.deposit-main-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.deposit-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.deposit-gateway-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #d1fae5;
  max-width: 480px;
}

.gateway-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.deposit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.deposit-kpi-card {
  background: rgba(7, 13, 24, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.d-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.d-kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.1;
  font-family: var(--font-mono);
}

.highlight-green {
  color: #34d399 !important;
}

.highlight-orange {
  color: #fb923c !important;
}

.d-kpi-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.deposit-visual-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.deposit-panel {
  background: rgba(7, 13, 24, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 18px;
}

.deposit-bars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.deposit-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.d-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.d-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.d-bar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.d-bar-brand {
  font-weight: 700;
  color: var(--text-main);
}

.d-bar-domain {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.v-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.v-badge-live {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.v-badge-active {
  background: rgba(0, 240, 255, 0.18);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.v-badge-intent {
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.v-badge-idle {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.d-bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.d-bar-fill {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.fill-attempt {
  z-index: 2;
}

.fill-intent {
  z-index: 1;
}

/* Funnel Graphic */
.deposit-funnel-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.funnel-step {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.funnel-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.funnel-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.funnel-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.funnel-val {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}

.funnel-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: normal;
}

.funnel-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.funnel-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #3b82f6;
  transition: width 0.4s ease;
}

.funnel-arrow {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.funnel-drop {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Ledger Panel & Table */
.deposit-ledger-panel {
  background: rgba(7, 13, 24, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 18px;
}

.deposit-table-wrap {
  width: 100%;
  overflow-x: hidden;
  margin-top: 12px;
}

.deposit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.deposit-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deposit-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.table-empty-row {
  text-align: center;
  padding: 32px 16px !important;
}

.empty-state-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-icon {
  font-size: 28px;
}

.empty-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.empty-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.5;
}

.brand-tag {
  font-weight: 700;
  color: var(--accent-cyan);
}

.status-pill-queue {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

@media (max-width: 900px) {
  .deposit-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .deposit-visual-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .stats-masthead {
    flex-direction: column;
    gap: 16px;
  }
  .masthead-right {
    align-items: flex-start;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .legend-items {
    grid-template-columns: 1fr;
  }
  .row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .gauge-stats-row {
    flex-direction: column;
    gap: 4px;
  }
}
