:root{
  --bg:#070707;
  --text:#ececec;
  --muted:#b9b9b9;
  --brand1:#00ffab;
  --brand2:#00a4ff;
  --bad:#ff3b30;
  --shadow:0 0 28px rgba(0,255,171,.22);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  color:var(--text);
  background: radial-gradient(900px 420px at 60% 5%, rgba(0,164,255,.18), transparent 55%),
              radial-gradient(1000px 520px at 20% 25%, rgba(0,255,171,.12), transparent 55%),
              var(--bg);
}
a{color:inherit}
code{color:var(--brand1)}

.container{width:min(1120px, 92vw); margin:0 auto}

.nav{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.72));
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(0,164,255,.12);
}
.brand img{height:44px; display:block}
.nav__links{display:flex; gap:16px; align-items:center}
.nav__links a{text-decoration:none; font-weight:700; color:rgba(255,255,255,.92)}
.nav__links a:hover{color:#fff}
.nav__links .active{color:var(--brand1)}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  font-weight:900;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  color:#001014;
  border:none;
}

.top{
  margin:26px 0 18px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.kicker{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,164,255,.20);
  background: rgba(0,164,255,.06);
  color:var(--muted);
  font-weight:900;
  letter-spacing:.12em;
  font-size:12px;
}
h1{margin:10px 0 6px; font-size: clamp(30px, 4vw, 44px)}
.pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(0,255,171,.14);
  background: rgba(16,16,16,.62);
  color:var(--muted);
  font-weight:800;
}

.grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
  align-items:start;
}
.card{
  background: rgba(16,16,16,.78);
  border:1px solid rgba(0,164,255,.14);
  border-radius:18px;
  padding:16px;
}
.card__head{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  margin-bottom:12px;
}
.card__head h2{margin:0; font-size:18px}
.muted{color:var(--muted)}

.map{height:380px; border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.06)}
.legend{display:flex; gap:16px; margin-top:10px; color:var(--muted); font-weight:700}
.dot{display:inline-block; width:10px; height:10px; border-radius:999px; margin-right:8px; background:#666}
.dot--ok{background:var(--brand1)}
.dot--bad{background:var(--bad)}

.servers{display:grid; gap:12px}
.server{
  border:1px solid rgba(0,255,171,.12);
  border-radius:16px;
  padding:14px;
  background: rgba(0,0,0,.18);
}
.server__top{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.server__title{font-weight:900}
.server__host{color:var(--muted); font-size:13px; margin-top:2px}

.badge{
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.02em;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:var(--muted);
}
.badge[data-state="ok"]{
  background: rgba(0,255,171,.10);
  border-color: rgba(0,255,171,.22);
  color: var(--brand1);
}
.badge[data-state="bad"]{
  background: rgba(255,59,48,.10);
  border-color: rgba(255,59,48,.22);
  color: var(--bad);
}

.bar{
  height:10px;
  margin:10px 0 12px;
  background: rgba(255,255,255,.08);
  border-radius:999px;
  overflow:hidden;
}
.fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  border-radius:999px;
  transition: width .8s ease;
}

.kv{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
}
.kv span{display:block; color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase}
.kv strong{display:block; margin-top:3px; font-size:14px}

.chartwrap{margin:16px 0 26px}
.chartnote{margin-top:10px}

.footer{
  border-top:1px solid rgba(0,164,255,.12);
  background: rgba(0,0,0,.55);
  margin-top:26px;
}
.footer__inner{
  padding:18px 0;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

.glow{transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease}
.glow:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(0,255,171,.22);
}

@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
  .kv{grid-template-columns: repeat(2, minmax(0,1fr))}
  .map{height:320px}
}
