:root {
  --bg-dark: #070707;
  --bg-primary: #020a05;
  --bg-secondary: #040f08;
  --bg-panel: #050d09;
  --bg-card: #071410;
  --green-bright: #00ff88;
  --blue-bright:rgb(15, 15, 252);
  --green-mid: #00c466;
  --green-dim: #007a40;
  --green-trace: #003820;
  --amber: #ffb800;
  --amber-dim: #7a5800;
  --red-alert: #ff2244;
  --red-dim: #7a1020;
  --cyan: #00e5ff;
  --cyan-dim: #006070;
  --white-dim: #8aada0;
  --border: #0d2a1a;
  --border-bright: #1a4a2a;
  --grid-line: rgba(0, 255, 136, 0.04);
  --scanline: rgba(0, 0, 0, 0.015);
  --font-mono: "Share Tech Mono", monospace;
  --font-display: "Orbitron", monospace;
  --font-ui: "Rajdhani", sans-serif;
  --panel-shadow:
    0 0 30px rgba(0, 255, 136, 0.05), inset 0 0 60px rgba(0, 0, 0, 0.8);
  --glow-green:
    0 0 10px rgba(0, 255, 136, 0.4), 0 0 30px rgba(0, 255, 136, 0.15);
  --glow-red: 0 0 10px rgba(255, 34, 68, 0.5), 0 0 30px rgba(255, 34, 68, 0.2);
  --glow-amber:
    0 0 10px rgba(255, 184, 0, 0.4), 0 0 20px rgba(255, 184, 0, 0.15);
  --glow-cyan:
    0 0 10px rgba(0, 229, 255, 0.4), 0 0 25px rgba(0, 229, 255, 0.15);
  --glow-soft: 0 0 12px rgba(0, 229, 255, 0.25);
  --glow-strong: 0 0 20px rgba(0, 229, 255, 0.6);
  --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.7);
  --bg-0: #000000;
  --bg-1: #06090c;
  --bg-2: #0b1116;

  --primary: #00e5ff;
  /* cyan */
  --primary-strong: #00ffff;
  --primary-dim: #00a8b5;

  --accent: #22ff88;
  /* green */
  --warn: #ffb020;
  /* amber */
  --danger: #ff2d55;
  /* red */

  --text: #c7f9ff;
  --text-dim: #7bd7e6;

  /* Motion */
  --fast: 150ms;
  --normal: 250ms;
}
.tactical-badge {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.55rem 1rem;

  border-radius: 0.85rem;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.95),
    rgba(3, 7, 18, 0.98)
  );

  color: #cbd5e1;

  font-size: 0.68rem;
  font-weight: 800;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  overflow: hidden;

  backdrop-filter: blur(12px);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 20px rgba(0, 255, 255, 0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* =============================================== */
/* HOVER                                           */
/* =============================================== */

.tactical-badge:hover {
  transform: translateY(-2px);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 30px rgba(0, 255, 255, 0.12);

  border-color: rgba(0, 255, 255, 0.25);
}

/* =============================================== */
/* INNER GLOW LINE                                 */
/* =============================================== */

.tactical-badge::before {
  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 60%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );

  transform: skewX(-20deg);

  animation: tacticalSweep 5s linear infinite;
}

/* =============================================== */
/* LEFT STATUS DOT                                 */
/* =============================================== */

.tactical-badge::after {
  content: "";

  width: 0.45rem;
  height: 0.45rem;

  border-radius: 999px;

  margin-left: 0.65rem;

  background: currentColor;

  box-shadow: 0 0 12px currentColor;
}

/* =============================================== */
/* THREAT TYPES                                    */
/* =============================================== */

.badge-critical {
  color: #ff4d4d;

  border-color: rgba(255, 0, 0, 0.25);

  background: linear-gradient(
    180deg,
    rgba(40, 0, 0, 0.95),
    rgba(12, 0, 0, 0.98)
  );

  box-shadow: 0 0 25px rgba(255, 0, 0, 0.15);
}

.badge-high {
  color: #fb923c;

  border-color: rgba(251, 146, 60, 0.25);

  background: linear-gradient(
    180deg,
    rgba(50, 20, 0, 0.95),
    rgba(15, 7, 0, 0.98)
  );

  box-shadow: 0 0 25px rgba(251, 146, 60, 0.12);
}

.badge-warning {
  color: #facc15;

  border-color: rgba(250, 204, 21, 0.25);

  background: linear-gradient(
    180deg,
    rgba(50, 45, 0, 0.95),
    rgba(15, 12, 0, 0.98)
  );

  box-shadow: 0 0 25px rgba(250, 204, 21, 0.1);
}

.badge-safe {
  color: #22c55e;

  border-color: rgba(34, 197, 94, 0.25);

  background: linear-gradient(
    180deg,
    rgba(0, 35, 10, 0.95),
    rgba(0, 12, 5, 0.98)
  );

  box-shadow: 0 0 25px rgba(34, 197, 94, 0.1);
}

.badge-info {
  color: #38bdf8;

  border-color: rgba(56, 189, 248, 0.25);

  background: linear-gradient(
    180deg,
    rgba(0, 25, 45, 0.95),
    rgba(0, 8, 18, 0.98)
  );

  box-shadow: 0 0 25px rgba(56, 189, 248, 0.12);
}

.badge-purple {
  color: #c084fc;

  border-color: rgba(192, 132, 252, 0.25);

  background: linear-gradient(
    180deg,
    rgba(35, 0, 45, 0.95),
    rgba(10, 0, 18, 0.98)
  );

  box-shadow: 0 0 25px rgba(192, 132, 252, 0.12);
}

/* =============================================== */
/* PULSE MODE                                      */
/* =============================================== */

.badge-pulse {
  animation: tacticalPulse 1.5s infinite;
}

/* =============================================== */
/* SIZE MODIFIERS                                  */
/* =============================================== */

.badge-sm {
  font-size: 0.58rem;

  padding: 0.35rem 0.7rem;
}

.badge-lg {
  font-size: 0.82rem;

  padding: 0.8rem 1.4rem;
}

/* =============================================== */
/* ANIMATIONS                                       */
/* =============================================== */

@keyframes tacticalSweep {
  0% {
    left: -120%;
  }

  100% {
    left: 140%;
  }
}

@keyframes tacticalPulse {
  0% {
    box-shadow: 0 0 0 rgba(255, 0, 0, 0);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.18);
  }

  100% {
    box-shadow: 0 0 0 rgba(255, 0, 0, 0);
  }
}
.leaflet-control-attribution {
  display: none !important;
}

.leaflet-container,
.leaflet-pane,
.leaflet-tile-pane {
  background: #050806 !important;
}
.leaflet-popup-content-wrapper {
  background: linear-gradient(rgba(0, 0, 0, 0.658));
}
.mycolorlegend {
  width: 70px;
  height: 70px;
  border-radius: 15px;
}

.popupgrid {
  width: fit-content;
  min-width: 250px;
}

.stat-card {
  border: 1px solid;
  background: rgba(2, 17, 10, 0.6);
  backdrop-filter: blur(4px);
  padding: 10px;
  text-align: center;
  min-width: 100%;
}

.stat-title {
  font-size: 0.7rem;
  letter-spacing: 1px;
  opacity: 0.8;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  margin: 5px 0;
}

.stat-sub {
  font-size: 0.65rem;
  opacity: 0.6;
}

.gradient-text {
  background: linear-gradient(270deg, #00ffff, #00bcd4, #22ff88, #00ffff);
  background-size: 600% 600%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: gradientFlow 6s ease infinite;
}
.gradient-text2 {
  background: linear-gradient(
    270deg,
    rgb(235, 79, 6),
    rgb(223, 208, 223),
    rgb(34, 252, 5)
  );
  background-size: 600% 600%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: gradientFlow 6s ease infinite;
}
.gradient-text3 {
  background: linear-gradient(
    270deg,
    #00ffff,
    #00bcd4,
    #22ff88,
    #00ffff,
    red,
    purple,
    blue,
    yellow
  );
  background-size: 600% 600%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--shadow-deep),
    inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.glass-strong {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-deep), var(--glow-soft);
}

.glass-hover:hover {
  border-color: var(--primary-strong);
  box-shadow: var(--shadow-deep), var(--glow-strong);
  transform: translateY(-2px);
  transition: all var(--normal) ease;
}

/* ===== BUTTONS ===== */
.btn-tactical {
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 8px 16px;
  background: transparent;
  letter-spacing: 0.08em;
  transition: all var(--fast) ease;
}

.btn-tactical:hover {
  background: var(--primary);
  color: #000;
  box-shadow: var(--glow-strong);
}

.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: #000;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ===== RADAR SWEEP ===== */
.radar {
  position: relative;
  overflow: hidden;
}

.radar::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    rgba(0, 229, 255, 0) 0deg,
    rgba(0, 229, 255, 0.15) 20deg,
    rgba(0, 229, 255, 0) 60deg
  );
  animation: sweep 4s linear infinite;
}

@keyframes sweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

#map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: rgba(0, 255, 120, 0.06);
  mix-blend-mode: overlay;
  z-index: 300;
}

#map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(0, 255, 120, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 120, 0.06) 1px, transparent 1px);

  background-size: 40px 40px;
  opacity: 0.25;
  z-index: 200;
}

.leaflet-control-container {
  filter: brightness(0.8) contrast(1.1);
}

.asset-label {
  background: rgba(0, 255, 120, 0.1);
  border: 1px solid rgba(0, 255, 120, 0.3);
  color: #00ff88;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: "Orbitron", monospace;
  font-size: 12px;
  letter-spacing: 1px;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltiptext {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);

  background: #020617;
  color: #00ff88;
  border: 1px solid #00ff88;

  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;

  opacity: 0;
  transition: 0.2s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--blue-bright);
  
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  font-size: 11px;
}

/* Scanline overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--scanline) 2px,
    var(--scanline) 4px
  );
  pointer-events: none;
  z-index: 9999;
  animation: scanRoll 8s linear infinite;
}

.damslogo {
  width: 64px;
  height: 64px;
  position: absolute;
  top: 1px;
  left: 3px;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: yellow;
}

/* Grid background */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.gunshot {
  position: absolute;
  height: 3px;
  /* dotted tracer */
  background: repeating-linear-gradient(
    90deg,
    #00ff88 0px,
    #0919f1 6px,
    transparent 6px,
    transparent 12px
  );

  box-shadow:
    0 0 6px #00ff88,
    0 0 14px #00ff88;

  transform-origin: left center;
  pointer-events: none;
  z-index: 40;
}

.muzzle-flash {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #fff, #ffcc00, #ff5500, transparent);
  border-radius: 50%;
  z-index: 60;
  animation: muzzleFlash 0.25s forwards;
}

@keyframes muzzleFlash {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.impact {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ff3344;
  border-radius: 50%;
  box-shadow: 0 0 14px red;
  animation: impactBlast 0.4s forwards;
  z-index: 60;
}

@keyframes impactBlast {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes scanRoll {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 100%;
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: var(--glow-green);
  }

  50% {
    box-shadow:
      0 0 20px rgba(0, 255, 136, 0.8),
      0 0 60px rgba(0, 255, 136, 0.3);
  }
}

@keyframes pulse-red {
  0%,
  100% {
    box-shadow: var(--glow-red);
    opacity: 1;
  }

  50% {
    box-shadow:
      0 0 25px rgba(255, 34, 68, 0.9),
      0 0 60px rgba(255, 34, 68, 0.4);
    opacity: 0.85;
  }
}

@keyframes rotate-radar {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes radar-sweep {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes ping {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes data-scroll {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

@keyframes flicker {
  0%,
  95%,
  100% {
    opacity: 1;
  }

  96% {
    opacity: 0.4;
  }

  97% {
    opacity: 1;
  }

  98% {
    opacity: 0.3;
  }

  99% {
    opacity: 0.9;
  }
}

@keyframes jataayu-fly {
  0% {
    left: 20%;
    top: 70%;
  }

  20% {
    left: 35%;
    top: 45%;
  }

  40% {
    left: 55%;
    top: 30%;
  }

  60% {
    left: 62%;
    top: 28%;
  }

  80% {
    left: 40%;
    top: 55%;
  }

  100% {
    left: 20%;
    top: 70%;
  }
}

@keyframes threat-blink {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--red-alert));
  }

  50% {
    opacity: 0.4;
    filter: drop-shadow(0 0 2px var(--red-alert));
  }
}

@keyframes countup {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* HEADER */
.header {
  position: relative;
  z-index: 100;
  background: linear-gradient(180deg, #000000 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border-bright);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 4px 40px rgba(0, 255, 136, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-emblem {
  width: 44px;
  height: 44px;
  border: 2px solid var(--green-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-green);
  animation: pulse-glow 3s ease-in-out infinite;
  position: relative;
  flex-shrink: 0;
}

.logo-emblem::before {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1px solid var(--green-dim);
  border-radius: 50%;
}

.logo-emblem svg {
  width: 22px;
  height: 22px;
  fill: var(--green-bright);
}

.header-title-block {
}

.header-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--green-bright);
  text-shadow: var(--glow-green);
}

.header-subtitle {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--green-dim);
  font-weight: 500;
}

.header-center {
  text-align: center;
}

.system-status {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green-bright);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulsedot-red {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-alert);
  box-shadow: var(--glow-red);
  animation: blink 1s infinite;
}
.pulsedot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: var(--glow-green);
  animation: blink 1s infinite;
}
.pulsedot-purple {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(120, 6, 173);
  box-shadow: rgb(90, 3, 86);
  animation: blink 1s infinite;
}
.pulsedot-sky {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(5, 173, 240);
  box-shadow: rgb(3, 56, 116);
  animation: blink 1s infinite;
}
.pulsedot-yellow {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(143, 250, 4);
  box-shadow: rgb(134, 115, 3);
  animation: blink 1s infinite;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: var(--glow-green);
  animation: blink 1s infinite;
}

.status-dot.red {
  background: var(--red-alert);
  box-shadow: var(--glow-red);
  animation: pulse-red 0.8s infinite;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.clock {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--green-bright);
  text-shadow: var(--glow-green);
  letter-spacing: 3px;
}

.clock-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-dim);
  letter-spacing: 2px;
}

/* MAIN LAYOUT */
/* ============================= */
/* MAIN RESPONSIVE GRID LAYOUT   */
/* ============================= */

.main-layout {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns: clamp(220px, 18vw, 320px) minmax(0, 1fr) clamp(
      240px,
      20vw,
      360px
    );

  grid-template-rows: auto 1fr auto;

  min-height: calc(100vh - 64px);

  gap: 1px;
  background: var(--border);

  width: 100%;
}

/* LEFT / RIGHT COLUMNS */

.left-col,
.right-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.center-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  min-height: 50vh;
}

/* ============================= */
/* ULTRA WIDE SCREENS (>1600px) */
/* ============================= */

@media (min-width: 1600px) {
  .main-layout {
    grid-template-columns: minmax(260px, 340px) 1fr minmax(280px, 360px);
  }

  .radar-scope {
    width: 320px;
    height: 320px;
  }

  .stat-value {
    font-size: 20px;
  }
}

/* ============================= */
/* LARGE LAPTOPS                */
/* ============================= */

@media (max-width: 1400px) {
  .main-layout {
    grid-template-columns: minmax(200px, 240px) 1fr minmax(220px, 260px);
  }

  .radar-scope {
    width: 220px;
    height: 220px;
  }
}

/* ============================= */
/* TABLETS                      */
/* ============================= */

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: minmax(200px, 220px) 1fr;
  }

  .right-col {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .right-col .panel {
    flex: 1 1 300px;
  }

  .radar-scope {
    width: 200px;
    height: 200px;
  }

  .stats-bar {
    flex-wrap: wrap;
    height: auto;
    gap: 20px;
    padding: 10px 14px;
  }
}

/* ============================= */
/* SMALL TABLETS                */
/* ============================= */

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "center";
  }

  .left-col {
    grid-area: left;
  }

  .right-col {
    grid-area: right;
  }

  .center-col {
    grid-area: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 100%;
    min-height: 50vh;
  }

  .main-layout {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .left-col,
  .right-col,
  .center-col {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 100%;
    min-height: 50vh;
  }

  .map-container {
    position: relative;
    width: 100%;
    min-height: 50vh;
    overflow: hidden;
  }
}

/* ============================= */
/* MOBILE                       */
/* ============================= */

@media (max-width: 768px) {
  .header {
    padding: 0 12px;
    height: auto;
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-left {
    gap: 12px;
  }

  .header-title {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .clock {
    font-size: 14px;
  }

  .main-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stats-bar {
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px;
    height: auto;
  }

  .stat-value {
    font-size: 14px;
  }

  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .radar-scope {
    width: 170px;
    height: 170px;
  }
}

/* ============================= */
/* SMALL PHONES                 */
/* ============================= */

@media (max-width: 480px) {
  .main-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "center";
  }

  .left-col {
    grid-area: left;
    min-width: 0;
  }

  .right-col {
    grid-area: center;

    /* make it behave like center panel */
    flex: 1;
    width: fit-content;
    min-height: 50vh;
  }

  .center-col {
    grid-area: right;

    display: flex;
    flex-direction: column;
    gap: 1px;

    width: 100%;
    min-width: 0;
  }

  #mapOverlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 400;

    background: rgba(0, 255, 120, 0.08);
    /* green tint */
    mix-blend-mode: overlay;
  }

  body {
    font-size: 12px;
  }

  .header-title {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .header-subtitle {
    display: none;
  }

  .logo-emblem {
    width: 36px;
    height: 36px;
  }

  .clock {
    font-size: 12px;
  }

  .panel-header {
    padding: 6px 8px;
  }

  .panel-title {
    font-size: 8px;
  }

  .radar-scope {
    width: 140px;
    height: 140px;
  }

  .asset-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .stats-bar {
    gap: 10px;
    flex-wrap: wrap;
    height: auto;
  }

  .stat-value {
    font-size: 12px;
  }
}

.jataayu {
  background-color: #00e5ff;
}

.artillery {
  background-color: #086805;
}

.skywatch {
  background-color: #863008;
}

.leaflet-container {
  background: #050806 !important;
  /* same as your body */
}

/* PANEL BASE */
.panel {
  /* background: var(--bg-panel); */
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.02) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.panel-header {
  background: linear-gradient(90deg, var(--bg-card), transparent);
  border-bottom: 1px solid var(--border-bright);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red-alert);
  text-transform: uppercase;
}

.panel-body {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--green-mid);
}

.ptr {
  cursor: pointer;
}

.panel-id {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green-dim);
  letter-spacing: 1px;
}

/* LEFT COLUMN */
.left-col {
  /* background: green; */
  display: flex;
  flex-direction: column;
  gap: 1px;
  grid-row: 1 / -1;
  background: var(--border);
  width: fit-content;
}

/* HOSTILE TARGETS */
#hostiletargets .map-asset {
  transition:
    left 2s linear,
    top 2s linear;
}

/* THREAT PANEL */
.threat-panel {
  flex: 0 0 auto;
  height: fit-content;
}

.threat-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: fit-content;
  overflow-y: auto;
}

.threat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.threat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.threat-item.hostile::before {
  background: var(--red-alert);
  box-shadow: var(--glow-red);
}

.threat-item.unknown::before {
  background: var(--amber);
  box-shadow: var(--glow-amber);
}

.threat-item.friendly::before {
  background: var(--green-bright);
  box-shadow: var(--glow-green);
}

.threat-item:hover {
  background: rgba(0, 255, 136, 0.05);
  border-color: var(--green-dim);
}

.threat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.threat-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green-bright);
  letter-spacing: 1px;
}

.threat-tag {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 1px 6px;
  border: 1px solid;
}

.threat-tag.hostile {
  color: var(--red-alert);
  border-color: var(--red-alert);
  background: rgba(255, 34, 68, 0.1);
  animation: pulse-red 1.5s infinite;
}

.threat-tag.unknown {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(255, 184, 0, 0.08);
}

.threat-tag.friendly {
  color: var(--green-bright);
  border-color: var(--green-bright);
  background: rgba(0, 255, 136, 0.08);
}

.threat-tag.neutralized {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.threat-data {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white-dim);
  display: flex;
  gap: 12px;
}

/* IFF PANEL */
.iff-panel {
  flex: 0 0 auto;
}

.iff-display {
  padding: 10px 12px;
}

.iff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.iff-row:last-child {
  border-bottom: none;
}

.iff-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--white-dim);
  font-weight: 500;
}

.iff-val {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-bright);
}

.iff-val.active {
  color: var(--green-bright);
  text-shadow: var(--glow-green);
}

.iff-val.warn {
  color: var(--amber);
  text-shadow: var(--glow-amber);
}

.iff-val.danger {
  color: var(--red-alert);
  text-shadow: var(--glow-red);
}

/* NABHDRISHTI PANEL */
.nabhdrishti-panel {
  flex: 1;
}

.nabh-list {
  padding: 8px;
  overflow-y: auto;
  height: 100%;
}

.nabh-report {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--amber);
  padding: 8px 10px;
  margin-bottom: 6px;
}

.nabh-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.nabh-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
}

.nabh-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green-dim);
}

.nabh-coords {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white-dim);
  margin-bottom: 3px;
}

.nabh-detail {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--green-dim);
  letter-spacing: 1px;
}

.nabh-status {
  display: inline-block;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 2px;
  padding: 1px 6px;
  border: 1px solid var(--amber);
  color: var(--amber);
}

/* CENTER */
.center-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  /* background: var(--border); */
}

/* RADAR/MAP */
.radar-panel {
  flex: 1;
  position: relative;
}

.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* TACTICAL MAP */

.tac-map {
  perspective: 900px;
  transform-style: preserve-3d;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 40% 50%,
      rgba(0, 50, 25, 0.3) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 30%,
      rgba(0, 30, 15, 0.2) 0%,
      transparent 40%
    ),
    #010a05;
}

/* Terrain contours */
.tac-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      ellipse 300px 200px at 40% 60%,
      rgba(0, 100, 50, 0.08) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 200px 150px at 70% 35%,
      rgba(0, 80, 40, 0.06) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 150px 100px at 25% 25%,
      rgba(0, 60, 30, 0.05) 0%,
      transparent 70%
    );
}

/* Map grid */
.tac-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.map-overlay-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(0, 255, 136, 0.2);
  letter-spacing: 2px;
  pointer-events: none;
}

/* RADAR SWEEP */
.radar-scope {
  position: absolute;
  width: 240px;
  height: 240px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
}

.radar-scope::before {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 50%;
}

.radar-scope::after {
  content: "";
  position: absolute;
  inset: 35%;
  border: 1px solid rgba(0, 255, 136, 0.08);
  border-radius: 50%;
}

.radar-crosshair-h,
.radar-crosshair-v {
  position: absolute;
  background: rgba(0, 255, 136, 0.06);
}

.radar-crosshair-h {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.radar-crosshair-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

.radar-sweep-line {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  animation: rotate-radar 4s linear infinite;
}

.radar-sweep-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.8));
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.radar-sweep-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  animation: rotate-radar 4s linear infinite;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0, 255, 136, 0.08) 20deg,
    rgba(0, 255, 136, 0.03) 60deg,
    transparent 90deg,
    transparent 360deg
  );
}

/* Map assets */
.map-asset {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  z-index: 10;
  transform: translate(-50%, -50%);
}

.asset-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 2px;
  font-size: 12px;
  position: relative;
}

.asset-icon.ground {
  border-color: var(--green-bright);
  color: var(--green-bright);
  background: rgba(0, 255, 136, 0.08);
}

.asset-icon.sam {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.asset-icon.artillery {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 184, 0, 0.08);
}

.asset-icon.drone-dock {
  border-color: var(--green-bright);
  color: var(--green-bright);
  background: rgba(0, 255, 136, 0.12);
  box-shadow: var(--glow-green);
}

.asset-icon.hostile {
  border-color: var(--red-alert);
  color: var(--red-alert);
  background: rgba(255, 34, 68, 0.1);
  animation: threat-blink 1s infinite;
}

.asset-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--green-dim);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  letter-spacing: 1px;
}

.asset-label.hostile {
  color: var(--red-alert);
}

.asset-label.sam {
  color: var(--cyan);
}

.asset-label.artillery {
  color: var(--amber);
}

/* Range ring */
.range-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* JATAAYU drone animation */
.jataayu-drone {
  position: absolute;
  z-index: 20;
  animation: jataayu-fly 14s ease-in-out infinite;
  pointer-events: none;
}

.jataayu-body {
  width: 18px;
  height: 18px;
  background: var(--green-bright);
  border-radius: 50%;
  box-shadow:
    0 0 15px rgba(0, 255, 136, 0.9),
    0 0 30px rgba(0, 255, 136, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.jataayu-trail {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.6));
  pointer-events: none;
}

/* GUN SHOT */
.tracer-shot {
  position: absolute;
  z-index: 40;
  pointer-events: none;
  transform-origin: center;
}

.tracer-body {
  width: 10px;
  height: 10px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow:
    0 0 12px #00ff88,
    0 0 25px rgba(0, 255, 136, 0.6);
}

.tracer-trail {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.8));
}

/* SKYWATCH FUNNLE */
.skywatch-radar {
  content: "2Kms of Sky";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* radar beam */
.radar-beam {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;

  background: conic-gradient(
    from -60deg,
    rgba(0, 255, 136, 0.35) 0deg,
    rgba(0, 255, 136, 0.25) 40deg,
    rgba(0, 255, 136, 0.15) 80deg,
    rgba(0, 255, 136, 0.05) 120deg,
    transparent 120deg
  );

  animation: radarSweep 4s ease-in-out infinite;
}

/* sweep animation */
@keyframes radarSweep {
  0% {
    transform: rotate(-40deg);
  }

  50% {
    transform: rotate(40deg);
  }

  100% {
    transform: rotate(-40deg);
  }
}

.skywatch-radar {
  clip-path: polygon(50% 50%, 0% 0%, 100% 0%);
}

/* Ping rings */
.ping-ring {
  position: absolute;
  border: 1px solid var(--red-alert);
  border-radius: 50%;
  animation: ping 2s ease-out infinite;
}

/* BOTTOM STATS */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-bright);
  padding: 10px 20px;
  display: flex;
  gap: 40px;
  align-items: center;
  height: 56px;
  flex-shrink: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--green-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--green-bright);
  text-shadow: var(--glow-green);
  letter-spacing: 1px;
}

.stat-value.red {
  color: var(--red-alert);
  text-shadow: var(--glow-red);
}

.stat-value.amber {
  color: var(--amber);
  text-shadow: var(--glow-amber);
}

.stat-value.cyan {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border-bright);
}

/* RIGHT COLUMN */
.right-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  grid-row: 1 / -1;
  background: var(--border);
  width: fit-content;
}

/* JATAAYU STATUS */
.jataayu-panel {
  flex: 0 0 auto;
}

.jataayu-status {
  padding: 10px 12px;
}

.jataayu-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--green-bright);
  box-shadow: var(--glow-green);
  margin-bottom: 10px;
}

.jataayu-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.8));
}

.jataayu-info {
}

.jataayu-callsign {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-bright);
  letter-spacing: 2px;
  text-shadow: var(--glow-green);
}

.jataayu-mission {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white-dim);
  letter-spacing: 1px;
  margin-top: 2px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.telem-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 8px;
}

.telem-label {
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--green-dim);
  font-weight: 600;
}

.telem-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green-bright);
  font-weight: bold;
  letter-spacing: 1px;
}

.mission-phases {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phase-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phase-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--green-dim);
  flex-shrink: 0;
}

.phase-dot.done {
  background: var(--green-bright);
  border-color: var(--green-bright);
  box-shadow: var(--glow-green);
}

.phase-dot.active {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: var(--glow-amber);
  animation: blink 0.8s infinite;
}

.phase-dot.pending {
  background: transparent;
}

.phase-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white-dim);
  letter-spacing: 1px;
}

.phase-label.done {
  color: var(--green-dim);
}

.phase-label.active {
  color: var(--amber);
  text-shadow: var(--glow-amber);
}

/* GROUND ASSETS PANEL */
.assets-panel {
  flex: 0 0 auto;
}

.assets-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.asset-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid;
}

.asset-row.gun {
  border-left-color: var(--amber);
}

.asset-row.sam {
  border-left-color: var(--cyan);
}

.asset-row.human {
  border-left-color: var(--green-bright);
}

.asset-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-bright);
  letter-spacing: 1px;
}

.asset-status-indicator {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
}

.asset-status-indicator.ready {
  color: var(--green-bright);
}

.asset-status-indicator.engaged {
  color: var(--amber);
  animation: blink 1s infinite;
}

.asset-status-indicator.standby {
  color: var(--green-dim);
}

/* EVENT LOG */
.log-panel {
  flex: 1;
}

.log-scroll-container {
  height: calc(100% - 33px);
  overflow: hidden;
  position: relative;
}

.log-content {
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: data-scroll 30s linear infinite;
}

.log-entry {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 255, 136, 0.04);
  font-family: var(--font-mono);
  font-size: 9px;
}

.log-time {
  color: var(--green-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.log-sys {
  color: var(--amber);
  flex-shrink: 0;
  width: 70px;
}

.log-msg {
  color: var(--white-dim);
}

.log-msg.alert {
  color: var(--red-alert);
}

.log-msg.success {
  color: var(--green-bright);
}

.log-msg.info {
  color: var(--cyan);
}

/* ENGAGEMENT CONTROL */
.engagement-panel {
  flex: 0 0 auto;
}

.engagement-controls {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eng-mode-row {
  display: flex;
  gap: 6px;
}

.eng-btn {
  flex: 1;
  padding: 8px 4px;
  border: 1px solid;
  background: transparent;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 700;
  text-transform: uppercase;
}

.eng-btn.auto {
  border-color: var(--green-bright);
  color: var(--green-bright);
}

.eng-btn.auto.active,
.eng-btn.auto:hover {
  background: rgba(0, 255, 136, 0.15);
  box-shadow: var(--glow-green);
}

.eng-btn.semi {
  border-color: var(--amber);
  color: var(--amber);
}

.eng-btn.semi:hover {
  background: rgba(255, 184, 0, 0.1);
  box-shadow: var(--glow-amber);
}

.eng-btn.manual {
  border-color: var(--white-dim);
  color: var(--white-dim);
}

.eng-btn.manual:hover {
  background: rgba(138, 173, 160, 0.1);
}

.deploy-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 34, 68, 0.15),
    rgba(255, 34, 68, 0.05)
  );
  border: 1px solid var(--red-alert);
  color: var(--red-alert);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: var(--glow-red);
  transition: all 0.2s;
  animation: pulse-red 2s infinite;
}

.deploy-btn:hover {
  background: rgba(255, 34, 68, 0.25);
  box-shadow:
    0 0 30px rgba(255, 34, 68, 0.6),
    0 0 60px rgba(255, 34, 68, 0.3);
}

.rules-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rules-label {
  font-family: var(--font-ui);
  font-size: 9px;
  color: var(--green-dim);
  letter-spacing: 2px;
  font-weight: 600;
}

.rules-val {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green-bright);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--green-dim);
}

/* TOP BAR - ALERT RIBBON */
.alert-ribbon {
  grid-column: 1 / -1;
  background: rgba(255, 34, 68, 0.08);
  border-bottom: 1px solid var(--red-alert);
  padding: 6px 20px;
  display: flex;
  gap: 40px;
  align-items: center;
  box-shadow: 0 2px 20px rgba(255, 34, 68, 0.15);
  overflow: hidden;
  position: relative;
  z-index: 50;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ribbon-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--red-alert);
  font-weight: 700;
  text-shadow: var(--glow-red);
}

.ribbon-val {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-dim);
  letter-spacing: 1px;
}

.ribbon-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 34, 68, 0.3);
  flex-shrink: 0;
}

.divider {
  height: 5px;
  background: rgba(243, 79, 3, 0.836);
  position: relative;
}

/* .divider::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      border-top: 1px solid #2a2f3a;
  } */

/* PROGRESS BARS */
.prog-bar-bg {
  height: 3px;
  background: var(--border);
  border-radius: 0;
  overflow: hidden;
  margin-top: 4px;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 0;
  transition: width 0.5s;
}

.prog-bar-fill.green {
  background: var(--green-bright);
  box-shadow: var(--glow-green);
}

.prog-bar-fill.amber {
  background: var(--amber);
  box-shadow: var(--glow-amber);
}

.prog-bar-fill.red {
  background: var(--red-alert);
  box-shadow: var(--glow-red);
}

.prog-bar-fill.cyan {
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* IFF DOG TAG WIDGET */
.dogtag-widget {
  margin: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  padding: 8px;
}

.dogtag-header {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.dogtag-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}

.dogtag-chip {
  padding: 2px 6px;
  border: 1px solid;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
}

.dogtag-chip.f {
  border-color: var(--green-bright);
  color: var(--green-bright);
  background: rgba(0, 255, 136, 0.08);
}

.dogtag-chip.h {
  border-color: var(--red-alert);
  color: var(--red-alert);
  background: rgba(255, 34, 68, 0.08);
  animation: threat-blink 1.5s infinite;
}

.dogtag-chip.u {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 184, 0, 0.08);
}

.dogtag-data {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white-dim);
}

/* Responsive */

/* Corner decorations */
.corner-tl,
.corner-tr,
.corner-bl,
.corner-br {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 10;
  pointer-events: none;
}

.corner-tl {
  top: 0;
  left: 0;
  border-top: 1px solid var(--green-bright);
  border-left: 1px solid var(--green-bright);
}

.corner-tr {
  top: 0;
  right: 0;
  border-top: 1px solid var(--green-bright);
  border-right: 1px solid var(--green-bright);
}

.corner-bl {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid var(--green-bright);
  border-left: 1px solid var(--green-bright);
}

.corner-br {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid var(--green-bright);
  border-right: 1px solid var(--green-bright);
}

/* Coord overlay */
.coord-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 8;
}

/* Signal arcs */
.nabh-signal {
  position: absolute;
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ping 2.5s ease-out infinite;
}

/* Threat line */
.threat-vector {
  position: absolute;
  background: rgba(255, 34, 68, 0.4);
  height: 1px;
  transform-origin: left center;
  pointer-events: none;
  z-index: 6;
}

/* Engagement line */
.engage-vector {
  position: absolute;
  background: rgba(0, 255, 136, 0.5);
  height: 1px;
  transform-origin: left center;
  pointer-events: none;
  z-index: 7;
}

/* Flashing alert tag */
.flash-alert {
  background: rgba(255, 34, 68, 0.15);
  border: 1px solid var(--red-alert);
  padding: 2px 8px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--red-alert);
  animation: blink 0.6s infinite;
}
