:root {
  --bg-dark: #070b14;
  --bg-card: #0f172a;
  --bg-card-hover: #162038;
  --bg-surface: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --brand-emerald: #10b981;
  --brand-emerald-dark: #059669;
  --brand-cyan: #06b6d4;
  --brand-amber: #f59e0b;
  --brand-rose: #f43f5e;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --shadow-glow: 0 20px 50px rgba(16, 185, 129, 0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-emerald);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #34d399;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.top-dispatch-bar {
  background: linear-gradient(90deg, #064e3b 0%, #0f172a 55%, #1e293b 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.55rem 0;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.top-dispatch-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brand-emerald);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 10px var(--brand-emerald);
}

.dispatch-cta {
  background: var(--brand-emerald);
  color: #022c22;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dispatch-cta:hover {
  background: #34d399;
  color: #022c22;
}

.navbar {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.85);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo span.radar-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--brand-emerald);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
}

.hero {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.13), transparent 65%);
  border-bottom: 1px solid var(--border-subtle);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  max-width: 900px;
}

.hero p.subtitle {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 760px;
  margin-bottom: 1.75rem;
}

.zip-search-box {
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow-glow);
  max-width: 860px;
}

.zip-search-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 0.85rem;
}

@media (max-width: 768px) {
  .zip-search-grid {
    grid-template-columns: 1fr;
  }
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.input-control, select.input-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 500;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-emerald) 0%, var(--brand-emerald-dark) 100%);
  color: #022c22;
  font-weight: 800;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.98rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: #fff;
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-secondary:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
}

.kpi-card .kpi-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.kpi-card .kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.kpi-card .kpi-sub {
  font-size: 0.82rem;
  color: var(--brand-emerald);
  margin-top: 0.25rem;
}

.main-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.75rem;
  margin: 2.25rem 0;
}

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

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.65rem;
  margin-bottom: 1.5rem;
}

.panel h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.badge-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 700;
}

.badge-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.4);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.93rem;
}

.data-table th, .data-table td {
  padding: 0.8rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.lead-box {
  background: linear-gradient(180deg, #111c35 0%, #0f172a 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-glow);
  position: sticky;
  top: 4rem;
}

.lead-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.lead-step-list {
  list-style: none;
  margin: 1rem 0;
}

.lead-step-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lead-step-list li strong {
  color: #fff;
}

.zip-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.zip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.15rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.zip-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-emerald);
}

.zip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.zip-code-tag {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
}

.zip-card-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.86rem;
}

.toast-banner {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid var(--brand-emerald);
  color: #a7f3d0;
  font-size: 0.9rem;
}

@media print {
  .top-dispatch-bar, .navbar, .zip-search-box, .lead-box, .footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
