:root {
  --bg: #0a0e14;
  --panel: #10151f;
  --border: #1e293b;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(34,211,238,0.06), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(16,185,129,0.05), transparent 45%),
    var(--bg);
  background-attachment: fixed;
  color: #e2e8f0;
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
}

/* subtle scanline atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 100;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.panel-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #22d3ee;
  margin: 0 0 4px 0;
  font-weight: 700;
}
.metric-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  transition: transform .15s ease, border-color .15s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: #334155;
}

.field-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 4px;
}
.input-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: #0a0e14;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  color: #e2e8f0;
  outline: none;
  transition: border-color .15s;
}
.input-mono:focus { border-color: #22d3ee; box-shadow: 0 0 0 2px rgba(34,211,238,0.15); }

.btn-accent {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  background: #22d3ee;
  color: #0a0e14;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  transition: filter .15s;
}
.btn-accent:hover { filter: brightness(1.1); }
.btn-outline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: transparent;
  color: #94a3b8;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all .15s;
}
.btn-outline:hover { border-color: #22d3ee; color: #22d3ee; }

.terminal {
  background: #05080d;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  line-height: 1.5;
}
.log-line {
  padding: 1px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  animation: fadeIn .2s ease;
  word-break: break-word;
}
@keyframes fadeIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

.pulse-dot { animation: pulse 1.4s ease-in-out infinite; font-family: 'JetBrains Mono', monospace; font-weight: 700; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.worker-busy { animation: flicker 0.9s ease-in-out infinite; }
@keyframes flicker { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.tooltip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 140%;
  width: 220px;
  background: #05080d;
  border: 1px solid #22d3ee;
  border-radius: 6px;
  padding: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  text-transform: none;
  letter-spacing: normal;
  color: #cbd5e1;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.ssrf-result { animation: popIn .25s ease; }
@keyframes popIn { from { transform: scale(0.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.report-modal { animation: slideUp .3s ease; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0e14; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

select.input-mono { cursor: pointer; }
input[type="checkbox"] { accent-color: #22d3ee; }