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

body {
  font-family: Inter, Arial, sans-serif;
  background: #f5f8fc;
  color: #101828;
}

a {
  text-decoration: none;
  color: inherit;
}

.topbar {
  min-height: 76px;
  padding: 14px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #e6edf5;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b3b75, #0ea5e9);
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.brand h1 {
  font-size: 18px;
  color: #0b2447;
}

.brand p {
  font-size: 12px;
  color: #64748b;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}

nav a:hover {
  color: #0ea5e9;
}

.hero {
  padding: 70px 6%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 35%),
    linear-gradient(135deg, #ffffff, #eef7ff);
}

.alert-pill {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero h2 {
  font-size: 48px;
  line-height: 1.08;
  color: #071f3d;
  margin-bottom: 18px;
}

.hero p {
  font-size: 17px;
  color: #475569;
  max-width: 650px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: #0b3b75;
  color: white;
  box-shadow: 0 12px 24px rgba(11, 59, 117, 0.24);
}

.btn.secondary {
  background: white;
  color: #0b3b75;
  border: 1px solid #cfe0f2;
}

.hero-card {
  background: #ffffff;
  border: 1px solid #dce9f7;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.radar {
  height: 280px;
  border-radius: 28px;
  background: radial-gradient(circle, #e0f2fe, #f8fbff);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.radar span {
  position: absolute;
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 50%;
  animation: pulse 2.8s infinite;
}

.radar span:nth-child(1) {
  width: 90px;
  height: 90px;
}

.radar span:nth-child(2) {
  width: 160px;
  height: 160px;
  animation-delay: 0.5s;
}

.radar span:nth-child(3) {
  width: 230px;
  height: 230px;
  animation-delay: 1s;
}

.radar-core {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #0b3b75;
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  z-index: 3;
  box-shadow: 0 0 35px rgba(14, 165, 233, 0.55);
}

@keyframes pulse {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  100% {
    transform: scale(1.18);
    opacity: 0.2;
  }
}

.threat-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.threat-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 14px;
  border-radius: 16px;
}

.danger,
.warning {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.warning {
  background: #fef3c7;
  color: #92400e;
}

.stats-grid {
  padding: 32px 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid #e6edf5;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.stat-card h3 {
  font-size: 32px;
  color: #0b3b75;
}

.stat-card p {
  color: #64748b;
  margin-top: 8px;
}

.danger-card h3 {
  color: #dc2626;
}

.modules {
  padding: 46px 6%;
}

.modules h2,
.live-panel h2 {
  font-size: 30px;
  color: #071f3d;
  margin-bottom: 22px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.module-card {
  background: white;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid #e6edf5;
  transition: 0.25s;
  min-height: 190px;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border-color: #93c5fd;
}

.module-card h3 {
  color: #0b3b75;
  margin-bottom: 12px;
}

.module-card p {
  color: #64748b;
  line-height: 1.6;
}

.live-panel {
  margin: 20px 6% 50px;
  padding: 34px;
  border-radius: 28px;
  background: #071f3d;
  color: white;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.live-panel p {
  color: #cbd5e1;
  line-height: 1.6;
}

.live-feed {
  display: grid;
  gap: 12px;
}

.feed-item {
  background: rgba(255, 255, 255, 0.09);
  padding: 14px;
  border-radius: 16px;
  border-left: 4px solid #38bdf8;
}

.danger-dot {
  border-left-color: #ef4444;
}

.warning-dot {
  border-left-color: #f59e0b;
}

.safe-dot {
  border-left-color: #22c55e;
}

footer {
  text-align: center;
  padding: 24px;
  color: #64748b;
  background: white;
  border-top: 1px solid #e6edf5;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  nav {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 42px 5%;
  }

  .hero h2 {
    font-size: 34px;
  }

  .stats-grid,
  .module-grid,
  .live-panel {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    padding: 24px 5%;
  }

  .modules {
    padding: 34px 5%;
  }

  .live-panel {
    margin: 10px 5% 40px;
  }
}
.check-hero {
  padding: 40px 6%;
}

.check-hero h2 {
  font-size: 32px;
  color: #071f3d;
}

.check-hero p {
  color: #64748b;
  margin-top: 8px;
}

.check-container {
  padding: 20px 6% 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.check-box, .result-box {
  background: white;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid #e6edf5;
}

.input-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.tab {
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef2f7;
  border: none;
  cursor: pointer;
}

.tab.active {
  background: #0b3b75;
  color: white;
}

textarea {
  width: 100%;
  height: 120px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dbe2ea;
  margin-bottom: 14px;
}

.scan-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: #0b3b75;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.result-status {
  padding: 10px;
  border-radius: 10px;
  margin: 12px 0;
  text-align: center;
  font-weight: bold;
}

.result-status.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.result-status.warning {
  background: #fef3c7;
  color: #92400e;
}

.result-status.safe {
  background: #dcfce7;
  color: #166534;
}

.result-status.scanning {
  background: #e0f2fe;
  color: #0369a1;
}

.result-status.neutral {
  background: #f1f5f9;
}

.result-details p {
  margin: 6px 0;
}

@media (max-width: 900px) {
  .check-container {
    grid-template-columns: 1fr;
  }
}
.dash-header {
  padding: 36px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dash-header h2 {
  font-size: 34px;
  color: #071f3d;
}

.dash-header p {
  margin-top: 8px;
  color: #64748b;
}

.dash-time {
  background: #071f3d;
  color: white;
  border-radius: 20px;
  padding: 18px 24px;
  min-width: 160px;
  text-align: center;
}

.dash-time span {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
}

.dash-time b {
  display: block;
  font-size: 28px;
  color: #22c55e;
  margin-top: 4px;
}

.dash-stats {
  padding: 0 6% 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dash-card {
  background: white;
  border: 1px solid #e6edf5;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.dash-card p {
  color: #64748b;
  font-weight: 700;
}

.dash-card h3 {
  font-size: 34px;
  color: #0b3b75;
  margin: 10px 0;
}

.dash-card span {
  font-size: 13px;
  color: #64748b;
}

.dash-card.red h3 {
  color: #dc2626;
}

.dash-card.orange h3 {
  color: #ea580c;
}

.dash-card.green h3 {
  color: #16a34a;
}

.dashboard-grid {
  padding: 8px 6% 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.panel {
  background: white;
  border: 1px solid #e6edf5;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title h3 {
  color: #071f3d;
  font-size: 19px;
}

.panel-title span {
  font-size: 12px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.live-dot {
  position: relative;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 12px #22c55e;
}

.fake-map {
  height: 380px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(11, 59, 117, 0.06)),
    repeating-linear-gradient(45deg, #f8fbff, #f8fbff 14px, #eef7ff 14px, #eef7ff 28px);
  position: relative;
  overflow: hidden;
  border: 1px solid #dbeafe;
}

.fake-map::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(14, 165, 233, 0.25), transparent 30%);
  animation: sweep 5s linear infinite;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.zone {
  position: absolute;
  z-index: 3;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.zone.high {
  background: #dc2626;
}

.zone.medium {
  background: #ea580c;
}

.zone.low {
  background: #16a34a;
}

.threat-feed {
  display: grid;
  gap: 12px;
}

.threat-row {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.threat-row span {
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
}

.danger-row {
  border-left: 4px solid #dc2626;
}

.danger-row span {
  background: #fee2e2;
  color: #b91c1c;
}

.warning-row {
  border-left: 4px solid #ea580c;
}

.warning-row span {
  background: #ffedd5;
  color: #9a3412;
}

.info-row {
  border-left: 4px solid #0ea5e9;
}

.info-row span {
  background: #e0f2fe;
  color: #0369a1;
}

.bar-list {
  display: grid;
  gap: 16px;
}

.bar-list p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #334155;
}

.bar-list span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.bar-list i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b3b75, #0ea5e9);
}

.command-panel button {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: none;
  background: #eef7ff;
  color: #0b3b75;
  font-weight: 900;
  margin-bottom: 10px;
  cursor: pointer;
}

.command-panel button:hover {
  background: #0b3b75;
  color: white;
}

.action-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  text-align: center;
}

.action-status.success {
  background: #dcfce7;
  color: #166534;
}

.case-table-section {
  margin: 0 6% 46px;
  background: white;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid #e6edf5;
}

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

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

th, td {
  padding: 14px;
  border-bottom: 1px solid #e6edf5;
  text-align: left;
  font-size: 14px;
}

th {
  color: #475569;
  background: #f8fafc;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.badge.safe {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 900px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 5%;
  }

  .dash-stats,
  .dashboard-grid {
    grid-template-columns: 1fr;
    padding-left: 5%;
    padding-right: 5%;
  }

  .case-table-section {
    margin-left: 5%;
    margin-right: 5%;
  }
}
/* ================= CHECK PAGE FIX ================= */

.check-hero {
  padding: 42px 6% 20px;
}

.check-hero h2 {
  font-size: 34px;
  color: #071f3d;
}

.check-hero p {
  color: #64748b;
  margin-top: 8px;
  font-size: 16px;
}

.check-container {
  padding: 20px 6% 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.check-box,
.result-box {
  background: #ffffff;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid #e6edf5;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.check-box h3,
.result-box h3 {
  font-size: 22px;
  color: #071f3d;
  margin-bottom: 16px;
}

.input-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tab {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eef7ff;
  color: #0b3b75;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: #0b3b75;
  color: #ffffff;
}

.check-box textarea {
  width: 100%;
  height: 160px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 16px;
  font-size: 15px;
  outline: none;
  resize: none;
  margin-bottom: 16px;
}

.scan-btn {
  width: 100%;
  border: 0;
  padding: 15px;
  border-radius: 16px;
  background: #0b3b75;
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
}

.result-status {
  padding: 16px;
  border-radius: 18px;
  margin: 16px 0;
  text-align: center;
  font-weight: 900;
  font-size: 18px;
}

.result-status.neutral {
  background: #f1f5f9;
  color: #475569;
}

.result-status.scanning {
  background: #e0f2fe;
  color: #0369a1;
}

.result-status.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.result-status.warning {
  background: #fef3c7;
  color: #92400e;
}

.result-status.safe {
  background: #dcfce7;
  color: #166534;
}

.result-details {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.result-details p {
  background: #f8fafc;
  padding: 14px;
  border-radius: 14px;
  color: #334155;
}

.report-btn {
  margin-top: 18px;
}


/* ================= DASHBOARD PAGE FIX ================= */

.dash-header {
  padding: 36px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dash-header h2 {
  font-size: 34px;
  color: #071f3d;
  margin-top: 8px;
}

.dash-header p {
  margin-top: 8px;
  color: #64748b;
  font-size: 16px;
}

.dash-time {
  background: #071f3d;
  color: white;
  border-radius: 22px;
  padding: 20px 28px;
  min-width: 170px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.dash-time span {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
}

.dash-time b {
  display: block;
  font-size: 30px;
  color: #22c55e;
  margin-top: 4px;
}

.dash-stats {
  padding: 0 6% 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dash-card {
  background: white;
  border: 1px solid #e6edf5;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.dash-card p {
  color: #64748b;
  font-weight: 800;
}

.dash-card h3 {
  font-size: 34px;
  color: #0b3b75;
  margin: 10px 0;
}

.dash-card span {
  font-size: 13px;
  color: #64748b;
}

.dash-card.red h3 { color: #dc2626; }
.dash-card.orange h3 { color: #ea580c; }
.dash-card.green h3 { color: #16a34a; }

.dashboard-grid {
  padding: 8px 6% 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.panel {
  background: white;
  border: 1px solid #e6edf5;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title h3 {
  color: #071f3d;
  font-size: 20px;
}

.panel-title span {
  font-size: 12px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 7px 11px;
  border-radius: 999px;
  font-weight: 900;
}

.fake-map {
  height: 380px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(14,165,233,0.14), rgba(11,59,117,0.06)),
    repeating-linear-gradient(45deg, #f8fbff, #f8fbff 14px, #eef7ff 14px, #eef7ff 28px);
  position: relative;
  overflow: hidden;
  border: 1px solid #dbeafe;
}

.zone {
  position: absolute;
  z-index: 3;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: white;
}

.zone.high { background: #dc2626; }
.zone.medium { background: #ea580c; }
.zone.low { background: #16a34a; }

.threat-feed {
  display: grid;
  gap: 12px;
}

.threat-row {
  padding: 15px;
  border-radius: 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.threat-row span {
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
}

.danger-row { border-left: 4px solid #dc2626; }
.warning-row { border-left: 4px solid #ea580c; }
.info-row { border-left: 4px solid #0ea5e9; }

.danger-row span {
  background: #fee2e2;
  color: #b91c1c;
}

.warning-row span {
  background: #ffedd5;
  color: #9a3412;
}

.info-row span {
  background: #e0f2fe;
  color: #0369a1;
}

.bar-list {
  display: grid;
  gap: 16px;
}

.bar-list p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #334155;
}

.bar-list span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.bar-list i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b3b75, #0ea5e9);
}

.command-panel button {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: #eef7ff;
  color: #0b3b75;
  font-weight: 900;
  margin-bottom: 10px;
  cursor: pointer;
}

.command-panel button:hover {
  background: #0b3b75;
  color: white;
}

.action-status {
  margin-top: 12px;
  padding: 13px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 800;
  text-align: center;
}

.action-status.success {
  background: #dcfce7;
  color: #166534;
}

.case-table-section {
  margin: 0 6% 46px;
  background: white;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid #e6edf5;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

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

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

th, td {
  padding: 14px;
  border-bottom: 1px solid #e6edf5;
  text-align: left;
  font-size: 14px;
}

th {
  color: #475569;
  background: #f8fafc;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.badge.safe {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 900px) {
  .check-container,
  .dash-stats,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .check-hero,
  .check-container,
  .dash-header,
  .dash-stats,
  .dashboard-grid {
    padding-left: 5%;
    padding-right: 5%;
  }

  .case-table-section {
    margin-left: 5%;
    margin-right: 5%;
  }
}
/* ================= ADMIN PANEL ================= */

.admin-header {
  padding: 36px 6%;
}

.admin-header h2 {
  font-size: 34px;
  color: #071f3d;
}

.admin-header p {
  margin-top: 8px;
  color: #64748b;
}

.admin-grid {
  padding: 10px 6% 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.admin-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid #e6edf5;
  box-shadow: 0 14px 34px rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-card h3 {
  color: #0b3b75;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dbe2ea;
  font-size: 14px;
}

.admin-card textarea {
  height: 100px;
}

.admin-card button {
  margin-top: 6px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #0b3b75;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.watchlist {
  list-style: none;
  display: grid;
  gap: 8px;
}

.watchlist li {
  background: #f8fafc;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
}

#adminStatus {
  margin: 0 6% 30px;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
    padding-left: 5%;
    padding-right: 5%;
  }
}
/* ================= COMMAND CENTER ================= */

.war-room {
  padding: 42px 6%;
  background:
    radial-gradient(circle at top right, rgba(239,68,68,0.16), transparent 30%),
    linear-gradient(135deg, #071f3d, #0b3b75);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.war-room h2 {
  font-size: 42px;
  margin-top: 14px;
}

.war-room p {
  color: #dbeafe;
  margin-top: 10px;
  max-width: 760px;
  line-height: 1.6;
}

.war-live {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 22px 28px;
  text-align: center;
  min-width: 180px;
}

.war-live span {
  color: #cbd5e1;
  font-size: 13px;
}

.war-live b {
  display: block;
  color: #f87171;
  font-size: 34px;
  margin-top: 8px;
}

.war-stats {
  padding: 26px 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.war-stats div {
  background: white;
  border: 1px solid #e6edf5;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.06);
}

.war-stats p {
  color: #64748b;
  font-weight: 800;
}

.war-stats h3 {
  color: #0b3b75;
  font-size: 34px;
  margin-top: 10px;
}

.command-layout {
  padding: 0 6% 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.attack-map {
  height: 420px;
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(14,165,233,0.18), transparent 42%),
    linear-gradient(135deg, #06182f, #0b2447);
  position: relative;
  overflow: hidden;
}

.attack-map::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(125,211,252,0.2);
  border-radius: 24px;
}

.scan-line {
  position: absolute;
  left: -20%;
  top: 0;
  width: 22%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.35), transparent);
  animation: moveScan 3s infinite linear;
}

@keyframes moveScan {
  to {
    left: 110%;
  }
}

.pulse-point {
  position: absolute;
  color: white;
  font-weight: 900;
  font-size: 12px;
  background: rgba(239,68,68,0.9);
  padding: 9px 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
  animation: alertPulse 1.7s infinite;
  z-index: 2;
}

@keyframes alertPulse {
  70% {
    box-shadow: 0 0 0 18px rgba(239,68,68,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239,68,68,0);
  }
}

.p1 { top: 18%; left: 20%; }
.p2 { top: 38%; left: 62%; }
.p3 { top: 64%; left: 34%; }
.p4 { top: 72%; left: 72%; }
.p5 { top: 28%; left: 44%; }

.ai-panel {
  display: grid;
  gap: 14px;
}

.prediction {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border-left: 5px solid #0ea5e9;
}

.prediction b {
  color: #071f3d;
}

.prediction p {
  margin-top: 6px;
  color: #64748b;
  line-height: 1.5;
}

.prediction.critical {
  border-left-color: #dc2626;
}

.prediction.warning {
  border-left-color: #ea580c;
}

.prediction.safe {
  border-left-color: #16a34a;
}

.queue-list {
  display: grid;
  gap: 12px;
}

.queue-list div {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.emergency-panel p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 14px;
}

.emergency-panel button {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  background: #0b3b75;
  color: white;
  font-weight: 900;
  margin-bottom: 10px;
  cursor: pointer;
}

.emergency-panel button:hover {
  background: #dc2626;
}

.district-ranking {
  margin: 0 6% 46px;
  background: white;
  border: 1px solid #e6edf5;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.06);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rank-card {
  border-radius: 20px;
  padding: 20px;
  background: #f8fafc;
}

.rank-card h4 {
  color: #071f3d;
  font-size: 18px;
}

.rank-card p {
  color: #64748b;
  margin: 8px 0;
}

.rank-card b {
  font-size: 36px;
}

.rank-card.high b { color: #dc2626; }
.rank-card.medium b { color: #ea580c; }
.rank-card.low b { color: #16a34a; }

@media (max-width: 900px) {
  .war-room {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 5%;
  }

  .war-room h2 {
    font-size: 32px;
  }

  .war-stats,
  .command-layout,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .war-stats,
  .command-layout {
    padding-left: 5%;
    padding-right: 5%;
  }

  .district-ranking {
    margin-left: 5%;
    margin-right: 5%;
  }
}