:root {
  --bg-1: #04111f;
  --bg-2: #10304f;
  --bg-3: #256f6b;
  --card: rgba(5, 15, 24, 0.75);
  --border: rgba(164, 233, 201, 0.3);
  --text: #e6fff1;
  --muted: #9cc6b8;
  --accent: #ffd166;
  --accent-2: #2dd4bf;
  --danger: #ef4444;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 20% 0%, var(--bg-3), transparent 45%),
    radial-gradient(circle at 80% 15%, #7f1d1d, transparent 45%),
    linear-gradient(165deg, var(--bg-1), var(--bg-2));
}

.backdrop {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  pointer-events: none;
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  margin: 32px auto 50px;
  display: grid;
  gap: 18px;
}

.hero {
  padding: 22px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: hero-enter 0.7s ease;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero h1 {
  margin: 10px 0 8px;
  font-family: "Bebas Neue", cursive;
  letter-spacing: 0.08em;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 0.9;
}

.subtitle {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  animation: fade-up 0.8s ease both;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.progress-value {
  font-family: "Bebas Neue", cursive;
  font-size: clamp(2rem, 6vw, 3.7rem);
  color: var(--accent);
  letter-spacing: 0.06em;
}

.progress-track {
  width: 100%;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #facc15, #bef264);
  transition: width 0.6s ease;
}

.big-number {
  font-family: "Bebas Neue", cursive;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

th {
  color: var(--muted);
  font-weight: 500;
}

#map {
  width: 100%;
  height: 460px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.leaflet-container {
  background: linear-gradient(145deg, #0f172a, #1f2937 70%, #064e3b);
}

.map-controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.map-controls label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.85rem;
}

.map-controls select,
.map-controls button {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  padding: 0 12px;
  font-family: "Space Grotesk", sans-serif;
}

.map-controls button {
  cursor: pointer;
  background: linear-gradient(90deg, #0ea5e9, #14b8a6);
  border: none;
  font-weight: 700;
}

.map-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  justify-self: end;
}

#blueMapFrame {
  width: 100%;
  height: 460px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: #111827;
}

.legend {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .cards,
  .grid-two {
    grid-template-columns: 1fr;
  }

  #map {
    height: 360px;
  }

  .map-controls {
    grid-template-columns: 1fr;
  }

  .map-link {
    justify-self: start;
  }

  #blueMapFrame {
    height: 360px;
  }
}
