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

:root {
  --bg: #06080d;
  --surface: #0e1219;
  --surface-2: #151b25;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f0f4fa;
  --muted: #8d9aad;
  --accent: #5b8cff;
  --accent-2: #ff6b8a;
  --good: #3dd68c;
  --warn: #ffb020;
  --left: #5b8cff;
  --right: #ff6b8a;
  --radius: 16px;
  --font: "Instrument Sans", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% -10%, rgba(91, 140, 255, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(255, 107, 138, 0.12), transparent);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 8, 13, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner, .tabs, .main, .footer {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 0.75rem;
}

.brand { display: flex; align-items: center; gap: 0.85rem; }

.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #7c5cff);
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.25);
}

.brand h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline { font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }

.btn, .tab {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.btn:hover, .tab:hover { border-color: rgba(91, 140, 255, 0.45); }

.tab.active, .btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 0.85rem;
}

.main { padding: 1.25rem 1.25rem 3rem; }

.weather {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.weather-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.weather-card h3 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.weather-card .temp { font-size: 1.7rem; font-weight: 700; }
.weather-card .meta { color: var(--muted); font-size: 0.82rem; margin-top: 0.2rem; }

.content { display: grid; gap: 0.9rem; }

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.section-head h2 { font-size: 0.98rem; font-weight: 600; }
.section-head .count { color: var(--muted); font-size: 0.78rem; }

.list { list-style: none; }

.item {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.item:last-child { border-bottom: none; }

.item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
}

.item a:hover { color: var(--accent); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.pill {
  font-size: 0.7rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.pill.left { color: var(--left); }
.pill.right { color: var(--right); }
.pill.good { color: var(--good); }
.pill.warn { color: var(--warn); }

.blindspot { padding: 1rem; border-bottom: 1px solid var(--line); }
.blindspot:last-child { border-bottom: none; }
.blindspot-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; color: var(--warn); }

.bar {
  display: flex;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.45rem 0;
  background: var(--bg);
}

.bar .l { background: var(--left); }
.bar .c { background: var(--muted); }
.bar .r { background: var(--right); }

.empty, .errors {
  padding: 1rem;
  border-radius: var(--radius);
  color: var(--muted);
}

.errors {
  margin-top: 1rem;
  background: rgba(255, 107, 138, 0.08);
  border: 1px solid rgba(255, 107, 138, 0.25);
  color: #ffc0cb;
  font-size: 0.85rem;
}

.hidden { display: none; }

.footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer a { color: var(--accent); text-decoration: none; }