:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #10151d;
  --panel-2: #151b24;
  --line: #242d39;
  --text: #f4f7fb;
  --muted: #8995a5;
  --accent: #75f0bd;
  --accent-2: #1fbf83;
  --danger: #ff7c87;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 5%, rgba(42, 126, 100, .18), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: min(100%, 430px);
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(16, 21, 29, .93);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .45);
}
.brand-mark, .brand span {
  display: grid; place-items: center; width: 42px; height: 42px;
  color: #07100c; background: var(--accent); border-radius: 12px; font-weight: 900;
}
.login-card .brand-mark { margin-bottom: 34px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 8px 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.045em; line-height: 1; }
.muted, .intro p, .section-head p, .empty p { color: var(--muted); line-height: 1.55; }
form label { display: block; margin: 30px 0 9px; color: #b8c1cd; font-size: 13px; font-weight: 650; }
input {
  width: 100%; padding: 15px 16px; color: var(--text); background: #0a0e14;
  border: 1px solid #303b49; border-radius: 11px; outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(117, 240, 189, .12); }
.login-card button {
  width: 100%; margin-top: 14px; padding: 15px 18px; display: flex; justify-content: space-between;
  color: #07100c; background: var(--accent); border: 0; border-radius: 11px; font-weight: 850; cursor: pointer;
}
.login-card button:hover { background: #96f7ce; }
.alert { padding: 11px 13px; color: #ffdce0; background: rgba(255, 124, 135, .1); border: 1px solid rgba(255, 124, 135, .3); border-radius: 9px; font-size: 13px; }
.security-note { margin: 20px 0 0; color: #657283; text-align: center; font-size: 12px; }
.security-note span, .live-dot, .server-state span, .status i {
  display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 14px rgba(117, 240, 189, .8);
}
header {
  height: 72px; padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(36, 45, 57, .8); background: rgba(8, 11, 16, .72); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 2;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand span { width: 34px; height: 34px; border-radius: 9px; }
.header-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.header-meta form { display: inline; }
.logout { margin-left: 12px; padding: 8px 12px; color: #b7c0cc; background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.dashboard { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0 30px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.intro h1 { margin-top: 11px; }
.intro p { margin-bottom: 0; }
.server-state { padding: 10px 14px; color: #c7d1dc; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 42px 0 56px; }
.overview article { padding: 22px; background: linear-gradient(145deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; }
.overview p { margin: 0 0 22px; color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.overview strong { display: block; font-size: 29px; letter-spacing: -.04em; }
.overview strong em { color: var(--muted); font-size: 15px; font-style: normal; }
.overview small { display: block; margin-top: 7px; color: #697687; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head p { margin: 6px 0 0; font-size: 13px; }
.section-head > span { color: var(--muted); font-size: 12px; }
.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.site-card { padding: 25px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.site-head { display: flex; justify-content: space-between; gap: 20px; }
.site-slug { margin: 0 0 4px; color: #627082; font: 700 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.site-card h3 { margin: 0; font-size: 20px; }
.status { height: fit-content; padding: 7px 10px; color: #b9f5da; background: rgba(117, 240, 189, .08); border: 1px solid rgba(117, 240, 189, .2); border-radius: 999px; font-size: 11px; }
.status.off { color: #a3adba; background: #181e27; border-color: #2a333f; }
.status.off i { background: #657283; box-shadow: none; }
.domain { display: flex; justify-content: space-between; margin: 19px 0 25px; padding: 12px 14px; color: #b9c3d0; background: #0b0f15; border-radius: 9px; text-decoration: none; font: 12px ui-monospace, monospace; }
.meters { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meter-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.meter-row b { color: #bbc5d2; font-weight: 600; }
.bar { height: 4px; margin-bottom: 17px; overflow: hidden; background: #202833; border-radius: 99px; }
.bar:last-child { margin-bottom: 0; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: inherit; }
.site-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 17px; color: #687587; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.site-foot b { color: #aab5c3; font-weight: 600; }
.empty { grid-column: 1 / -1; padding: 70px 20px; text-align: center; background: rgba(16, 21, 29, .65); border: 1px dashed #303a47; border-radius: 18px; }
.empty div { width: 42px; height: 42px; margin: auto; display: grid; place-items: center; color: var(--accent); background: rgba(117,240,189,.08); border-radius: 50%; font-size: 22px; }
.empty h3 { margin-bottom: 0; }
footer { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 22px; color: #505d6d; border-top: 1px solid var(--line); font-size: 11px; }
@media (max-width: 800px) {
  .overview { grid-template-columns: repeat(2, 1fr); }
  .site-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .login-card { padding: 30px 24px; }
  .dashboard { width: min(100% - 28px, 1180px); padding-top: 38px; }
  header { padding: 0 14px; }
  .header-meta { font-size: 0; }
  .intro { align-items: start; flex-direction: column; }
  .overview { margin: 30px 0 42px; gap: 9px; }
  .overview article { padding: 17px; }
  .overview p { margin-bottom: 15px; }
  .overview strong { font-size: 22px; }
  .site-foot { flex-direction: column; }
}