:root {
  --bg: #0f1117;
  --surface: #181b24;
  --surface-2: #1f2330;
  --border: rgba(255, 255, 255, 0.07);
  --text: #f0f2f5;
  --muted: #8b93a7;
  --accent: #6ee7b7;
  --accent-2: #60a5fa;
  --danger: #f87171;
  --radius: 16px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

ul { list-style: none; }

/* Ambient */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.ambient__orb--1 {
  width: 500px; height: 500px;
  background: rgba(110, 231, 183, 0.07);
  top: -200px; right: -100px;
}

.ambient__orb--2 {
  width: 400px; height: 400px;
  background: rgba(96, 165, 250, 0.06);
  bottom: -100px; left: -80px;
}

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.brand__mark {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(110, 231, 183, 0.2);
}

.brand__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__tag {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.panel--accent {
  background: linear-gradient(135deg, rgba(110,231,183,0.06), rgba(96,165,250,0.04));
  border-color: rgba(110, 231, 183, 0.12);
}

.panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel__title {
  font-size: 1rem;
  font-weight: 700;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.18);
}

.status-pill--offline {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.18);
}

.status-pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* MOTD */
.motd-card {
  padding: 16px 18px;
  background: var(--surface-2);
  border-radius: 12px;
  margin-bottom: 20px;
}

.motd-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.motd__line {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.motd__line + .motd__line {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.metric {
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 12px;
}

.metric:first-child { grid-column: 1 / -1; }

.metric__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.metric__value {
  font-size: 1.1rem;
  font-weight: 700;
}

.metric__bar {
  height: 4px;
  margin-top: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.metric__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.5s ease;
}

.metric__ip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric__ip code {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: rgba(110, 231, 183, 0.3);
}

/* Online players */
.online { margin-bottom: 12px; }

.online__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.online__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.online__count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.online__empty {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 20px;
  text-align: center;
  background: var(--surface-2);
  border-radius: 12px;
}

.online__empty.hidden { display: none; }

.online__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.online__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  background: var(--surface-2);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
}

.online__list img {
  width: 24px; height: 24px;
  border-radius: 6px;
}

.sync {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Download */
.download {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.download__text {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

.download__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.download__features li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 100px;
}

.download__action {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), #34d399);
  color: #0a0f0d;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.2s;
  box-shadow: 0 4px 20px rgba(110, 231, 183, 0.25);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(110, 231, 183, 0.35);
}

.download__ver {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Footer */
.foot {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0;
  transition: 0.25s;
  pointer-events: none;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .metric:first-child { grid-column: auto; }
  .download__action { flex-direction: column; align-items: stretch; }
  .cta { justify-content: center; }
}
