:root {
  color-scheme: dark;
  --bg: #06101d;
  --panel: rgba(16, 31, 51, 0.72);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f5f8fc;
  --muted: #8fa1b7;
  --accent: #62e6bd;
  --accent-strong: #30c99a;
  --blue: #61a9ff;
  font-family: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, #15395c 0, transparent 44%),
    linear-gradient(160deg, #071321 0%, var(--bg) 70%);
}

button {
  font: inherit;
}

.ambient {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-one {
  top: 20%;
  right: -120px;
  background: var(--accent);
}

.ambient-two {
  bottom: 5%;
  left: -120px;
  background: var(--blue);
}

.app-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 18px
    max(28px, env(safe-area-inset-bottom));
}

.topbar,
.brand,
.metrics,
.section-heading,
.server-card,
.metric-card {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  margin-bottom: 24px;
}

.brand {
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(98, 230, 189, 0.35);
  border-radius: 14px;
  color: #07111f;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(145deg, #b5ffe8, var(--accent));
  box-shadow: 0 10px 30px rgba(48, 201, 154, 0.18);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 19px;
  letter-spacing: -0.03em;
}

h2 {
  max-width: 260px;
  margin: 7px 0 9px;
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

h3 {
  margin-top: 3px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.status-pill {
  padding: 8px 11px;
  border: 1px solid rgba(98, 230, 189, 0.15);
  border-radius: 999px;
  color: #baf6e4;
  font-size: 11px;
  font-weight: 700;
  background: rgba(98, 230, 189, 0.07);
}

.status-pill span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.glass {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  border-radius: 26px;
}

.hero-card::after {
  position: absolute;
  right: -40px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(98, 230, 189, 0.1);
  border-radius: 50%;
  content: "";
}

.muted,
.server-copy span,
.metric-card p,
.footer-note {
  color: var(--muted);
}

.muted {
  max-width: 250px;
  font-size: 13px;
  line-height: 1.5;
}

.orb {
  display: grid;
  min-width: 86px;
  height: 86px;
  margin-left: 12px;
  place-items: center;
  border: 1px solid rgba(98, 230, 189, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 230, 189, 0.22), transparent 65%);
  box-shadow: inset 0 0 30px rgba(98, 230, 189, 0.12);
}

.orb-core {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: var(--bg);
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(145deg, #c5ffed, var(--accent));
  box-shadow: 0 0 35px rgba(98, 230, 189, 0.35);
}

.metrics {
  gap: 12px;
  margin: 12px 0 28px;
}

.metric-card {
  flex: 1;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
}

.metric-icon {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  font-weight: 800;
  background: rgba(98, 230, 189, 0.09);
}

.metric-card p {
  margin-bottom: 3px;
  font-size: 11px;
}

.metric-card strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-heading {
  justify-content: space-between;
  margin: 0 3px 12px;
}

.count {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  background: rgba(98, 230, 189, 0.08);
}

.server-list {
  display: grid;
  gap: 10px;
}

.plan-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 28px;
}

.plan-card {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 15px 12px;
  border-radius: 18px;
}

.plan-card strong {
  font-size: 13px;
}

.plan-card span {
  color: var(--muted);
  font-size: 10px;
}

.plan-card button {
  min-height: 34px;
  border: 0;
  border-radius: 11px;
  color: #06110e;
  font-size: 11px;
  font-weight: 800;
  background: var(--accent);
}

.server-card {
  gap: 13px;
  padding: 15px;
  border-radius: 18px;
}

.flag {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: #dce9f7;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
}

.server-copy {
  display: grid;
  flex: 1;
  gap: 3px;
}

.server-copy strong {
  font-size: 14px;
}

.server-copy span {
  font-size: 11px;
}

.server-state {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(98, 230, 189, 0.7);
}

.skeleton {
  animation: pulse 1.5s ease-in-out infinite;
}

.notice {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(97, 169, 255, 0.18);
  border-radius: 15px;
  color: #c9dcf2;
  font-size: 12px;
  line-height: 1.5;
  background: rgba(97, 169, 255, 0.08);
}

.notice.error {
  border-color: rgba(255, 119, 119, 0.2);
  color: #ffd0d0;
  background: rgba(255, 119, 119, 0.08);
}

.hidden {
  display: none;
}

.connect-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  border: 0;
  border-radius: 18px;
  color: #04120d;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #b8ffe9, var(--accent-strong));
  box-shadow: 0 16px 36px rgba(48, 201, 154, 0.22);
  cursor: pointer;
}

.connect-button:active {
  transform: translateY(1px);
}

.connect-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.power {
  font-size: 22px;
}

.footer-note {
  margin: 12px auto 0;
  max-width: 330px;
  text-align: center;
  font-size: 10px;
  line-height: 1.45;
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

@media (max-width: 380px) {
  .hero-card {
    padding: 20px;
  }

  .orb {
    min-width: 70px;
    height: 70px;
  }

  .orb-core {
    width: 44px;
    height: 44px;
  }

  .metric-card {
    padding: 13px;
  }

  .plan-list {
    grid-template-columns: 1fr;
  }
}
