:root{
  --bg0:#07070c;
  --bg1:#0b0b14;
  --glass: rgba(255,255,255,.08);
  --glass2: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.16);
  --stroke2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --faint: rgba(255,255,255,.44);
  --shadow: 0 16px 60px rgba(0,0,0,.45);
  --shadow2: 0 8px 24px rgba(0,0,0,.28);
  --radius: 18px;
  --good: #36d483;
  --goodGlow: rgba(54,212,131,.38);
  --idle: rgba(255,255,255,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background: radial-gradient(1200px 900px at 25% -10%, #1d2cff35, transparent 55%),
              radial-gradient(1100px 900px at 90% 20%, #ff2f9a25, transparent 55%),
              radial-gradient(900px 700px at 20% 90%, #00ffd51f, transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg0));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-text-size-adjust: 100%;
}

.bg{
  position: fixed;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(800px 600px at 35% 20%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 700px at 70% 35%, rgba(255,255,255,.045), transparent 62%);
  filter: blur(0px);
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: calc(18px + env(safe-area-inset-top)) 18px 14px;
  margin: 0 auto;
  max-width: 1100px;
}

.brand{ display:flex; align-items:center; gap: 12px; min-width:0; }
.brandIcon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.brandIcon img{
  width: 24px;
  height: 24px;
  opacity:.92;
  display:block;
}
.brandText{ min-width:0; }
.title{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}
.subtitle{
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta{ display:flex; align-items:center; gap: 10px; }
.pill{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  font-size: 12.5px;
  color: var(--muted);
}

.button{
  appearance:none;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.06));
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 13px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  text-decoration:none;
}
.button:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
}
.button:active{ transform: translateY(0px); }

.button--ghost{
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.btnIcon svg{
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  opacity: .92;
}

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px calc(28px + env(safe-area-inset-bottom));
}

.glass{
  background: linear-gradient(180deg, var(--glass), var(--glass2));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow2);
}

.card{
  border-radius: var(--radius);
  overflow:hidden;
  position: relative;
}

.summary{ margin-top: 6px; }
.summaryCard{ padding: 14px 14px 12px; }
.summaryRow{
  display:flex;
  gap: 14px;
  align-items:flex-end;
  justify-content:space-between;
}
.summaryItem{ flex: 1; min-width:0; }
.kpi{ font-size: 24px; font-weight: 780; line-height: 1.05; }
.kpiLabel{ margin-top: 4px; font-size: 12px; color: var(--muted); }
.kpi--good{ color: rgba(255,255,255,.95); text-shadow: 0 0 18px rgba(54,212,131,.18); }
.kpi--muted{ color: rgba(255,255,255,.78); }
.fineprint{ margin-top: 10px; font-size: 12px; color: var(--faint); }

.server{ margin-top: 12px; }
.serverCard{ padding: 14px 14px 12px; }
.serverHeader{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
}
.serverTitle{ font-size: 14px; font-weight: 760; letter-spacing: -0.01em; }
.serverSub{ font-size: 12px; color: var(--muted); white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.serverGrid{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}
.serverItem{
  grid-column: span 6;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
  min-width:0;
}
.serverLabel{ font-size: 11.5px; color: var(--muted); }
.serverValue{
  margin-top: 4px;
  font-size: 13px;
  font-weight: 720;
  color: rgba(255,255,255,.90);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.containerCard{
  grid-column: span 6;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.containerCard:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 24px 80px rgba(0,0,0,.52);
}

.cardHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.actions{
  display:flex;
  gap: 8px;
  align-items:center;
}
.iconBtn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.iconBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
}
.iconBtn:active{ transform: translateY(0px); }
.iconBtn svg{
  width: 16px;
  height: 16px;
  opacity: .9;
  stroke-width: 2.2;
}
.iconBtn[disabled]{
  opacity: .55;
  cursor:not-allowed;
  transform:none;
}
.spin{ animation: spin 1s linear infinite; }
@keyframes spin{ from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }
.nameRow{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width:0;
}
.name{
  font-weight: 760;
  font-size: 15px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.status{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.image{
  margin-top: 8px;
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display:inline-block;
  background: var(--idle);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset;
}
.dot--running{
  background: var(--good);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 0 18px var(--goodGlow);
}
.dot--stopped{
  background: rgba(255,255,255,.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset;
}
.dot--idle{ background: rgba(255,255,255,.26); }

.metrics{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.metric{
  flex: 1;
  min-width: 140px;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}
.metricLabel{ font-size: 11.5px; color: var(--muted); }
.metricValue{ margin-top: 4px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.90); }
.bar{
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow:hidden;
}
.bar > span{
  display:block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(54,212,131,.95), rgba(54,212,131,.55));
}

.empty{
  margin-top: 14px;
  padding: 20px;
  text-align:center;
}
.emptyTitle{ font-size: 16px; font-weight: 760; }
.emptyText{ margin-top: 6px; color: var(--muted); font-size: 13px; }

@media (max-width: 920px){
  .containerCard{ grid-column: span 12; }
  .topbar{ padding: calc(16px + env(safe-area-inset-top)) 14px 12px; }
  .wrap{ padding: 0 14px calc(24px + env(safe-area-inset-bottom)); }
  .meta{ gap: 8px; }
  .pill{ display:none; }
  .serverItem{ grid-column: span 12; }
  .brandIcon{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .button, .containerCard{ transition:none; }
}

