:root {
  --bg: #06101f;
  --bg-2: #0a1628;
  --panel: rgba(10, 20, 35, 0.82);
  --line: rgba(255,255,255,0.08);
  --text: #edf4ff;
  --muted: #9fb0cb;
  --accent: #58a6ff;
  --accent-2: #7d69ff;
  --success: #29d17d;
  --danger: #ff6d85;
  --warning: #ffb347;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 18px 70px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, Segoe UI, Arial, sans-serif; background: radial-gradient(circle at top left, rgba(88,166,255,.16), transparent 24%), radial-gradient(circle at bottom right, rgba(125,105,255,.14), transparent 20%), linear-gradient(135deg, #050c16, #091424 50%, #081220); color: var(--text); }
body { position: relative; overflow-x: hidden; }
body.dashboard-page .container {padding-top: 20px;}
.bg-grid { position: fixed; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 90%); pointer-events: none; }
.orb { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.orb-a { width: 280px; height: 280px; background: rgba(88,166,255,.18); top: 60px; left: -40px; }
.orb-b { width: 340px; height: 340px; background: rgba(125,105,255,.16); right: -50px; bottom: 30px; }
.container, .topbar { position: relative; z-index: 1; width: min(1440px, calc(100% - 32px)); margin: 0 auto; }
.topbar { margin-top: 20px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; background: rgba(7, 16, 28, .72); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.brand h1 { margin: 0; font-size: 28px; }
.brand p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.topbar-actions { display: flex; gap: 12px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: rgba(41, 209, 125, .10); border: 1px solid rgba(41, 209, 125, .2); color: #d4ffe7; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 14px var(--success); }
.login-wrapper { min-height: 100vh; display: grid; place-items: center; }
.login-card, .panel, .hero-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.login-card { width: min(100%, 520px); padding: 34px; }
.eyebrow, .section-tag { margin: 0 0 10px; color: #6fdcff; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; }
.login-card h2, .hero-panel h2, .panel h3 { margin: 0; letter-spacing: -.03em; }
.login-card h2 { font-size: 34px; }
.subtext { color: var(--muted); line-height: 1.7; }
.login-form { margin-top: 24px; display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #dce8ff; }
.field input, .field select { width: 100%; background: rgba(5, 12, 22, .7); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; color: var(--text); padding: 14px 16px; outline: none; }
.field input:focus, .field select:focus { border-color: rgba(88,166,255,.6); box-shadow: 0 0 0 4px rgba(88,166,255,.12); }
.turnstile-row { padding-top: 6px; }
.error-text { min-height: 20px; color: #ff98a8; font-size: 13px; margin: 0; }
.btn { border: none; border-radius: 14px; padding: 13px 18px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 28px rgba(88,166,255,.25); }
.btn-secondary { color: #dce8ff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.hidden { display: none !important; }
.dashboard { display: grid; gap: 20px; padding: 22px 0 40px; }
.hero-panel { padding: 28px; }
.hero-panel h2 { font-size: clamp(28px, 4vw, 42px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 20px; border-radius: 22px; background: linear-gradient(180deg, rgba(15,27,46,.94), rgba(8,18,32,.94)); border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); }
.stat-card span { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.stat-card strong { display: block; margin-top: 10px; font-size: 38px; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr); gap: 20px; }
.bottom-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; }
.panel { padding: 22px; }
.wide { min-width: 0; }
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.map-stage { position: relative; min-height: 620px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at top, rgba(88,166,255,.09), transparent 28%), linear-gradient(180deg, rgba(7,14,24,.8), rgba(4,10,18,.95)); border: 1px solid rgba(255,255,255,.06); }
.map-image { width: 100%; height: 100%; object-fit: contain; display: block; opacity: .72; }
.district-overlay { position: absolute; inset: 0; }
.district-marker { position: absolute; transform: translate(-50%, -50%); cursor: pointer; }
.district-marker .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px rgba(88,166,255,.8); margin: 0 auto; }
.district-marker.mid .pulse { background: var(--warning); box-shadow: 0 0 16px rgba(255,179,71,.8); }
.district-marker.high .pulse { background: var(--danger); box-shadow: 0 0 18px rgba(255,109,133,.9); }
.district-marker .badge { margin-top: 8px; padding: 7px 10px; border-radius: 999px; background: rgba(8,18,32,.88); border: 1px solid rgba(255,255,255,.12); font-size: 12px; font-weight: 700; white-space: nowrap; }
.district-marker.active .badge { background: linear-gradient(135deg, rgba(88,166,255,.2), rgba(125,105,255,.18)); border-color: rgba(88,166,255,.45); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.legend-dot.low { background: var(--accent); }
.legend-dot.mid { background: var(--warning); }
.legend-dot.high { background: var(--danger); }
.filter-grid { display: grid; gap: 14px; }
.action-row { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.leaderboard { display: grid; gap: 12px; }
.leaderboard-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.leaderboard-item button { background: none; border: none; color: var(--text); cursor: pointer; padding: 0; font: inherit; text-align: left; }
.leaderboard-item .count { color: #dce8ff; font-weight: 800; }
.table-wrap { overflow: auto; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(5,11,20,.55); }
table { width: 100%; min-width: 1200px; border-collapse: collapse; }
thead th { position: sticky; top: 0; background: linear-gradient(180deg, #13223a, #0d1a2e); padding: 14px 16px; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; color: #ccdcff; white-space: nowrap; }
tbody td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.015); }
tbody tr:hover { background: rgba(88,166,255,.08); }
.pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(88,166,255,.12); border: 1px solid rgba(88,166,255,.18); font-size: 12px; font-weight: 700; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(88,166,255,.7), rgba(125,105,255,.7)); border-radius: 999px; }
@media (max-width: 1200px) { .layout-grid, .bottom-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .container, .topbar { width: min(100% - 20px, 1440px); } .topbar { flex-direction: column; align-items: flex-start; } .stats { grid-template-columns: 1fr; } .login-card, .panel, .hero-panel { padding: 18px; } .map-stage { min-height: 440px; } }

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 10px;
}

.pagination-left,
.pagination-right {
  display: flex;
  align-items: center;
  gap: 10px;
}