:root {
  --bg: #071018;
  --card: rgba(16, 28, 38, 0.82);
  --line: rgba(255,255,255,0.08);
  --text: #eef6fb;
  --muted: #8aa0b3;
  --ok: #3ee0a0;
  --warn: #ffc14a;
  --bad: #ff6b6b;
  --accent: #7ad7ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: Manrope, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #163246 0%, var(--bg) 45%);
  color: var(--text);
  padding: 16px 16px 40px;
  overflow-x: hidden;
}

.glow {
  position: fixed; pointer-events: none; filter: blur(50px); z-index: 0;
}
.glow-a { width: 220px; height: 220px; background: #1c6b8a55; top: -40px; right: -40px; }
.glow-b { width: 280px; height: 280px; background: #0d4a3a33; bottom: 10%; left: -80px; }

.top, .hero, .filters, .tabs, .list, .districts { position: relative; z-index: 1; }

.top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(160deg, #8ce7ff, #2d8dff);
  color: #041018; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 8px 24px #2d8dff44;
}
.city { font-weight: 800; letter-spacing: -0.03em; font-size: 18px; }
.sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

.pill {
  border: 1px solid var(--line); background: #0d1a24;
  color: var(--text); border-radius: 999px; padding: 8px 12px;
  font-size: 12px; display: flex; gap: 8px; align-items: center;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 10px var(--ok); animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: .4 } }

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px 18px;
  backdrop-filter: blur(16px);
}
.hero-kicker { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.hero-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.hero-num { font-size: 32px; font-weight: 800; letter-spacing: -0.05em; }
.hero-num.warn { color: var(--warn); }
.hero-num.bad { color: var(--bad); }
.hero-label { color: var(--muted); font-size: 12px; }
.divider { width: 1px; height: 36px; background: var(--line); }

.filters { display: flex; gap: 8px; overflow: auto; margin: 16px 0 10px; padding-bottom: 4px; }
.chip, .tab {
  border: 1px solid var(--line); background: #0c1822; color: var(--text);
  border-radius: 999px; padding: 8px 12px; font-size: 13px; white-space: nowrap;
}
.chip.on, .tab.on {
  background: #e8f6ff; color: #071018; font-weight: 700;
}

.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.brand-tabs {
  position: sticky; top: 0; z-index: 5;
  overflow-x: auto; white-space: nowrap;
  padding: 8px 0 10px;
  background: linear-gradient(#071018 75%, transparent);
  scrollbar-width: none;
}
.brand-tabs::-webkit-scrollbar { display: none; }
.brand-tabs .tab small {
  margin-left: 6px; color: inherit; opacity: .7; font-weight: 600;
}

.list { display: grid; gap: 18px; }
.brand-block { display: grid; gap: 10px; }
.brand-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 800; font-size: 18px; letter-spacing: -0.03em;
  padding: 4px 4px 0;
}
.brand-count {
  font-size: 12px; color: var(--muted); font-weight: 600;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 14px; display: grid; gap: 10px;
}
.card-top { display: flex; justify-content: space-between; gap: 10px; }
.name { font-weight: 800; font-size: 16px; }
.addr { color: var(--muted); font-size: 13px; margin-top: 3px; }
.badge {
  height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; white-space: nowrap;
}
.badge.ok { background: #14352c; color: var(--ok); }
.badge.warn { background: #3a2e12; color: var(--warn); }
.badge.bad { background: #3a1717; color: var(--bad); }

.fuels { display: flex; gap: 6px; flex-wrap: wrap; }
.fuel {
  font-size: 12px; border-radius: 10px; padding: 6px 8px; background: #0b1520; border: 1px solid var(--line);
}
.fuel.off { opacity: .4; text-decoration: line-through; }
.meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn {
  border: 0; border-radius: 14px; padding: 11px 12px; font-weight: 700; font-size: 13px;
}
.btn.primary { background: linear-gradient(180deg, #8ce7ff, #4db6ff); color: #041018; }
.btn.ghost { background: #132230; color: var(--text); border: 1px solid var(--line); }

.districts { display: grid; gap: 10px; }
.d-card {
  border-radius: 20px; padding: 16px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #102131, #0b1822);
}
.d-title { font-weight: 800; margin-bottom: 8px; }
.bars { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #0a1218; }
.bar-ok { background: var(--ok); }
.bar-warn { background: var(--warn); }
.bar-bad { background: var(--bad); }
.d-meta { margin-top: 8px; color: var(--muted); font-size: 12px; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: #0d1822; border-radius: 24px 24px 0 0; padding: 10px 16px 28px;
  border-top: 1px solid var(--line);
}
.sheet-handle { width: 42px; height: 4px; background: #345; border-radius: 99px; margin: 6px auto 14px; }
.backdrop { position: fixed; inset: 0; background: #0008; z-index: 15; }
.hidden { display: none !important; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #e8f6ff; color: #071018; padding: 10px 14px; border-radius: 12px;
  font-weight: 700; z-index: 30;
}

.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.opt {
  background: #12202c; border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  text-align: left; color: var(--text);
}
.opt.on { border-color: #8ce7ff; background: #163246; }
