
* { box-sizing: border-box; }

:root {
  --bg: #080811;
  --bg-soft: #11111c;
  --panel: rgba(21,21,35,.9);
  --panel-2: rgba(31,31,49,.95);
  --text: #f8f8fc;
  --muted: #aaaabd;
  --border: rgba(255,255,255,.085);
  --yellow: #f4d35e;
  --blue: #71a7ff;
  --pink: #ff8fc7;
  --red: #db4653;
  --green: #54db89;
  --shadow: 0 22px 60px rgba(0,0,0,.23);
}

body.light {
  --bg: #f3f4f9;
  --bg-soft: #eceef5;
  --panel: rgba(255,255,255,.95);
  --panel-2: rgba(247,248,252,.98);
  --text: #161620;
  --muted: #686879;
  --border: rgba(0,0,0,.08);
  --shadow: 0 18px 45px rgba(24,24,40,.08);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(244,211,94,.12), transparent 30rem),
    radial-gradient(circle at 15% 15%, rgba(219,70,83,.08), transparent 25rem),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:20px 0;
}

.brand { display:flex; align-items:center; gap:13px; }
.brand h1 { margin:0; font-size:1.05rem; letter-spacing:.18em; }
.brand p { margin:3px 0 0; color:var(--muted); font-size:.82rem; }

.nav {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a, .ghost-btn {
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  border-radius:12px;
  padding:9px 12px;
  cursor:pointer;
}
.nav a:hover, .nav a.active { background:var(--panel-2); }

.card {
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  min-height:260px;
  padding:34px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:28px;
  background:
    linear-gradient(135deg, rgba(219,70,83,.16), rgba(244,211,94,.07)),
    var(--panel);
}
.hero h2 {
  font-size:clamp(2.2rem,6vw,4.8rem);
  line-height:.95;
  margin:8px 0 14px;
}
.hero p { color:var(--muted); max-width:700px; line-height:1.6; }
.eyebrow { color:var(--muted); font-size:.72rem; font-weight:800; letter-spacing:.15em; }
.status { color:var(--muted); white-space:nowrap; }
.status-dot {
  width:9px; height:9px; display:inline-block; border-radius:50%;
  background:var(--green); box-shadow:0 0 18px var(--green); margin-right:8px;
}

main { padding:8px 0 50px; }
section { margin-top:28px; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:14px; }
.section-head h3 { margin:5px 0 0; font-size:1.5rem; }

.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }

.tile { padding:22px; min-height:210px; }
.tile h4 { margin:16px 0 8px; font-size:1.1rem; }
.tile p { color:var(--muted); line-height:1.55; }
.tile .action { margin-top:16px; display:inline-flex; }

.btn {
  border:0;
  border-radius:12px;
  padding:11px 14px;
  font-weight:800;
  cursor:pointer;
  background:var(--text);
  color:var(--bg);
}
.btn.secondary {
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
}

.diamond {
  width:32px; height:32px;
  transform:rotate(45deg);
  border-radius:7px;
}
.red { background:var(--red); }
.white { background:#f5f5fa; }
.yellow { background:var(--yellow); }
.blue { background:var(--blue); }
.pink { background:var(--pink); }

.kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.kpi { padding:20px; }
.kpi strong { display:block; font-size:1.65rem; margin-top:8px; }
.kpi span { color:var(--muted); font-size:.86rem; }

.panel { padding:24px; }
.panel h3 { margin:0 0 16px; }

.form-grid {
  display:grid;
  grid-template-columns:1.6fr .8fr .8fr auto;
  gap:10px;
}
input, select {
  width:100%;
  padding:12px 13px;
  border-radius:12px;
  background:var(--panel-2);
  color:var(--text);
  border:1px solid var(--border);
  outline:none;
}
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:12px 10px; border-bottom:1px solid var(--border); }
th { color:var(--muted); font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; }
.table-wrap { overflow:auto; }

.badge {
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:5px 9px;
  font-size:.78rem;
  color:var(--muted);
}
.badge .dot { width:7px; height:7px; border-radius:50%; background:var(--green); }
.badge.off .dot { background:#777; }

.server-card { padding:22px; }
.server-card .top { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.server-card h4 { margin:0; }
.server-card p { color:var(--muted); line-height:1.5; }
.server-meta { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin:18px 0; }
.server-meta div { background:var(--panel-2); border:1px solid var(--border); border-radius:12px; padding:11px; }
.server-meta small { display:block; color:var(--muted); margin-bottom:4px; }

.progress { height:7px; border-radius:99px; overflow:hidden; background:var(--panel-2); border:1px solid var(--border); }
.progress span { display:block; height:100%; background:var(--yellow); }

.notice {
  padding:16px 18px;
  border:1px solid rgba(244,211,94,.22);
  border-radius:16px;
  background:rgba(244,211,94,.06);
  color:var(--muted);
  line-height:1.55;
}

footer { color:var(--muted); text-align:center; padding:26px 0 36px; font-size:.84rem; }

@media (max-width:900px) {
  .grid-4,.kpis { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr 1fr; }
  .hero { flex-direction:column; align-items:flex-start; }
}
@media (max-width:620px) {
  .shell { width:min(100% - 20px,1220px); }
  .topbar { align-items:flex-start; flex-direction:column; }
  .nav { justify-content:flex-start; }
  .grid-4,.grid-2,.kpis,.form-grid { grid-template-columns:1fr; }
  .hero { padding:24px; }
}
[hidden]{display:none!important}.account-main{max-width:620px;margin:30px auto}.account-form{display:grid;gap:16px;margin-top:22px}.account-form label,.form-grid label{display:grid;gap:8px}.form-grid{align-items:end}.form-grid button{min-height:48px}.account-main h2{margin:10px 0}.account-main p{line-height:1.6}#signed-in .btn{margin:8px 8px 8px 0}#login-status{margin:18px 0}#rows td:first-child{overflow-wrap:anywhere}button:disabled{opacity:.55;cursor:wait}:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}.eyebrow,.badge,th,.brand p,footer{font-size:.875rem}
