:root{
  --bg:#05060b;
  --card:#0d0f1a;
  --line:#2a2e4a;
  --text:#f2f4ff;
  --muted:#9aa3c7;
  --hot:#ff2d55;
}

*{box-sizing:border-box}
html, body { width:100%; overflow-x:hidden; }
body{
  margin:0;
  font-family:system-ui,Segoe UI,Arial;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 0%,rgba(255,45,85,.25),transparent 55%),
    var(--bg);
}

.noise{
  position:fixed; inset:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity:.08; pointer-events:none;
}

.wrap{
  max-width:1100px;
  margin:auto;
  padding:18px;
}

.muted{color:var(--muted)}
h1{
  margin:6px 0 0;
  text-transform:uppercase;
  letter-spacing:.04em;
  line-height:1.1;
}
h2{margin:0}

.header{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  align-items:flex-start;
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
  min-width:260px;
}

.logo{
  width:50px;height:50px;border-radius:14px;
  border:1px solid var(--hot);
  display:grid;place-items:center;font-weight:900;
  flex:0 0 auto;
}

.tag{
  font-size:11px;
  letter-spacing:.2em;
  color:var(--muted);
  display:inline-block;
}

.ipbox{
  background:rgba(13,15,26,.88);
  border:1px solid rgba(255,45,85,.55);
  padding:12px;
  border-radius:16px;
  width:min(420px, 100%);
}

.ipline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.badge{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}

code{
  font-family:ui-monospace,Menlo,Consolas,monospace;
  word-break:break-word;
}

.ip-actions{
  display:flex;
  gap:10px;
  margin:10px 0 6px;
  flex-wrap:wrap;
}

.btn{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#111;
  color:var(--text);
  cursor:pointer;
  letter-spacing:.08em;
  font-size:12px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btn:hover{background:#151515}
.btn.ghost{background:transparent}
.btn-primary{
  border-color:rgba(255,45,85,.65);
  background:rgba(255,45,85,.18);
}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  margin-top:12px;
}

.card{
  background:rgba(13,15,26,.82);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  min-width:0; /* penting biar ga overflow di grid */
}

.hero{border-color:rgba(255,45,85,.45)}

.card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--line);
}
.loading{background:rgba(245,158,11,.14); border-color:rgba(245,158,11,.35)}
.online{background:rgba(34,197,94,.14); border-color:rgba(34,197,94,.35)}
.offline{background:rgba(239,68,68,.14); border-color:rgba(239,68,68,.35)}
.error{background:rgba(239,68,68,.20); border-color:rgba(239,68,68,.55)}

.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin:12px 0 0;
}
.stats span{color:var(--muted);font-size:12px}
.stats b{display:block;font-size:18px;margin-top:4px}

.divider{height:1px;background:var(--line);margin:12px 0}

.motd{
  border:1px dashed rgba(154,163,199,.35);
  padding:10px;
  border-radius:12px;
  background:#0006;
  white-space:pre-wrap;
  word-break:break-word;
  margin-top:10px;
}

.list{
  list-style:none;
  padding:0;
  margin:10px 0 0;
  max-height:280px;
  overflow:auto;
  border-radius:12px;
  border:1px solid rgba(42,46,74,.6);
}
.list li{
  padding:10px 12px;
  border-bottom:1px solid rgba(42,46,74,.8);
}
.list li:last-child{border-bottom:none}

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

.select{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#0008;
  color:var(--text);
  min-width:140px;
}

.bullets{padding-left:18px;margin:10px 0 0}
.staff div{margin:10px 0}
.staff span{color:var(--muted); display:inline-block; width:90px}

.cta-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:12px;
}

.mini{display:grid; gap:6px; margin-top:8px;}
.mini-row{display:flex; gap:8px; align-items:baseline; flex-wrap:wrap;}

.footer{
  margin-top:8px;
  text-align:center;
  color:var(--muted);
  padding-bottom:28px;
}
.footer-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

/* ===== MOBILE FIX PACK ===== */
@media (max-width: 900px){
  .grid{ grid-template-columns:1fr; }
}

@media (max-width: 520px){
  .wrap{ padding:14px; }

  .brand{ width:100%; }
  .ipbox{ width:100%; }

  .ip-actions .btn{
    flex:1 1 140px;
  }

  .stats{
    grid-template-columns: 1fr;
  }

  .cta-grid{
    grid-template-columns: 1fr;
  }

  .footer-row{
    justify-content:center;
  }
}