:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #101010;
  --panel-2: #151311;
  --line: rgba(255, 255, 255, 0.09);
  --line-hot: rgba(255, 100, 42, 0.42);
  --text: #f4f1ed;
  --muted: #9b948d;
  --soft: #c9c2bb;
  --orange: #ff6a32;
  --orange-2: #d94d34;
  --green: #5fcf7a;
  --red: #e55345;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 58% 0%, rgba(92, 38, 24, 0.3), transparent 34%),
    linear-gradient(90deg, #030303 0%, #050505 48%, #090605 100%);
  color: var(--text);
  font: 16px/1.45 "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 300px;
  padding: 30px 16px;
  background: rgba(5, 5, 5, 0.94);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 27px;
  font-weight: 850;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 106, 50, 0.7);
}

.brand-copy {
  max-width: 240px;
  margin: 18px 0 38px;
  color: var(--muted);
  font-weight: 650;
}

.nav {
  display: grid;
  gap: 14px;
}

.nav a {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--soft);
  text-decoration: none;
  font-weight: 760;
  background: rgba(255, 255, 255, 0.012);
}

.nav a span {
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0;
}

.nav a.active {
  color: var(--text);
  border-color: var(--line-hot);
  background: linear-gradient(90deg, rgba(255, 106, 50, 0.16), rgba(255, 106, 50, 0.03));
}

.sidebar-footer {
  margin-top: 30px;
  display: grid;
  gap: 8px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 106, 50, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(72, 29, 18, 0.24), rgba(14, 14, 14, 0.84));
}

.sidebar-footer small,
.eyebrow,
.stat-card small {
  color: var(--orange);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-footer strong {
  font-size: 19px;
}

.sidebar-footer span {
  color: var(--muted);
  font-weight: 650;
}

.app {
  margin-left: 300px;
  min-height: 100vh;
  padding: 34px 44px 70px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  margin-bottom: 34px;
}

.page-head h1 {
  margin: 12px 0 0;
  font-size: clamp(54px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.status-chip,
.ghost-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-weight: 760;
}

.status-chip::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 106, 50, 0.75);
}

.ghost-button {
  cursor: pointer;
}

.hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 260px;
  gap: 42px;
  align-items: center;
  margin-bottom: 24px;
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 20%, rgba(255, 106, 50, 0.2), transparent 30%),
    linear-gradient(120deg, rgba(73, 31, 22, 0.7), rgba(18, 18, 18, 0.92) 55%, rgba(8, 8, 8, 0.92));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
}

.hero h2 {
  max-width: 720px;
  margin: 14px 0 18px;
  font-size: clamp(44px, 4.2vw, 62px);
  line-height: 0.98;
}

.lede {
  max-width: 600px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 650;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.metric,
.server-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(22, 22, 22, 0.94), rgba(13, 13, 13, 0.94));
}

.metric {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.metric span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 760;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 28px 0 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
}

.section-head span {
  color: var(--muted);
  font-weight: 740;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.server-card {
  min-height: 132px;
  padding: 24px;
}

.server-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.server-title h3 {
  margin: 0;
  font-size: 32px;
}

.server-title p,
.empty {
  color: var(--muted);
  font-weight: 680;
}

.badge {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #a8f0b9;
  border: 1px solid rgba(95, 207, 122, 0.35);
  background: rgba(95, 207, 122, 0.1);
  font-weight: 820;
}

.badge.offline {
  color: #ffb0a8;
  border-color: rgba(229, 83, 69, 0.45);
  background: rgba(229, 83, 69, 0.12);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.stat-card {
  min-height: 440px;
  padding: 24px 26px;
}

.stat-card header {
  margin-bottom: 22px;
}

.stat-card h3 {
  margin: 10px 0 0;
  font-size: 27px;
}

.stat-list {
  display: grid;
}

.stat-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.stat-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.stat-row span {
  color: var(--muted);
  font-weight: 760;
}

.empty {
  padding: 18px 0;
}

@media (max-width: 1240px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
  }

  .app {
    margin-left: 0;
    padding: 24px 18px 52px;
  }

  .page-head,
  .server-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}
