:root {
  --bg0: #02060f;
  --bg1: #071227;
  --bg2: #0f203d;
  --ink: #edf7ff;
  --muted: #9db3c9;
  --aqua: #00d5ff;
  --green: #00f7a5;
  --amber: #ffba28;
  --danger: #ff5b7d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 213, 255, 0.2), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(255, 186, 40, 0.2), transparent 28%),
    linear-gradient(150deg, var(--bg0) 0%, var(--bg1) 40%, var(--bg2) 100%);
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0, 247, 165, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 247, 165, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
  pointer-events: none;
}

.layout {
  width: min(1180px, 92vw);
  margin: 22px auto 32px;
  display: grid;
  gap: 16px;
}

.hud-panel {
  border: 1px solid rgba(0, 213, 255, 0.4);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(0, 213, 255, 0.08), rgba(7, 15, 30, 0.85));
  box-shadow: inset 0 0 20px rgba(0, 213, 255, 0.12), 0 0 24px rgba(0, 0, 0, 0.3);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.scanline::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: scan 3.2s linear infinite;
}

@keyframes scan {
  from {
    left: -60%;
  }
  to {
    left: 120%;
  }
}

h1,
h2,
h3 {
  margin: 0 0 6px;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.status-pill {
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 247, 165, 0.4);
  border-radius: 999px;
  display: inline-block;
  background: rgba(0, 247, 165, 0.12);
  color: var(--green);
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.hero {
  border-color: rgba(255, 186, 40, 0.45);
  background: linear-gradient(155deg, rgba(255, 186, 40, 0.14), rgba(8, 15, 27, 0.9));
}

.hero strong {
  color: var(--amber);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.stat-box {
  border: 1px solid rgba(0, 247, 165, 0.35);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(0, 247, 165, 0.08);
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.stat-box strong {
  font-size: 1.2rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.action-btn {
  border: 1px solid rgba(0, 247, 165, 0.4);
  background: rgba(0, 247, 165, 0.1);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}

.action-btn:hover {
  background: rgba(0, 247, 165, 0.2);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid rgba(157, 179, 201, 0.22);
}

th {
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  color: #b7dcff;
}

.empty-row {
  color: var(--muted);
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.intel-card {
  border: 1px solid rgba(0, 213, 255, 0.35);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0, 213, 255, 0.08);
}

.intel-card strong {
  font-size: 1.12rem;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--danger);
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .intel-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

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

  .intel-grid {
    grid-template-columns: 1fr;
  }
}
