* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  color: #ffffff;
  background: #0b0f14;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: #0b0f14;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 8%, rgba(0, 255, 136, 0.12), transparent 24%),
    radial-gradient(circle at 12% 30%, rgba(0, 255, 136, 0.06), transparent 18%),
    radial-gradient(circle at 88% 24%, rgba(0, 255, 136, 0.05), transparent 16%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.96) 0%, rgba(11, 15, 20, 1) 100%);
  pointer-events: none;
  z-index: -2;
}

.app-shell {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 20px 16px 12px;
  min-height: 100vh;
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__icon {
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.35), transparent 35%),
    #0f151b;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand__icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.26);
}

.brand__name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.icon-button::before {
  content: "🎁";
  font-size: 18px;
}

.server-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  padding: 20px;
  margin-bottom: 18px;
}

.server-card::before,
.server-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.server-card::before {
  background: radial-gradient(circle at 30% 20%, rgba(0, 255, 136, 0.16), transparent 18%),
    radial-gradient(circle at 72% 16%, rgba(0, 255, 136, 0.1), transparent 20%);
}

.server-card::after {
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.1), transparent 36%);
}

.card-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card-scene__circle {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 260px;
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), rgba(11, 15, 20, 0.05) 35%, transparent 70%);
  filter: blur(8px);
}

.card-scene__glow {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 200px;
  height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 255, 136, 0.16), transparent 55%);
}

.server-card__content {
  position: relative;
  display: grid;
  gap: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.12);
  color: #7cffad;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.55);
}

.server-card__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.flag-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.24), transparent 40%),
    linear-gradient(135deg, #12181f 0%, #0c1116 100%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flag-badge::after {
  content: "DE";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
}

.server-card__title-text {
  display: grid;
  gap: 6px;
}

.server-card__country {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.server-card__city {
  margin: 0;
  color: #a0a0a0;
  font-size: 14px;
}

.server-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ping-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7cffad;
  font-weight: 600;
  font-size: 14px;
}

.ping-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.connection-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 28px;
  padding: 18px 18px 18px 16px;
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 24px 70px rgba(0, 255, 136, 0.07);
  margin-bottom: 18px;
}

.connection-indicator {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.22), rgba(4, 15, 18, 0.9) 60%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.connection-indicator::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.connection-text {
  flex: 1;
  display: grid;
  gap: 4px;
}

.connection-text__status {
  font-size: 18px;
  font-weight: 700;
}

.connection-text__timer {
  font-size: 14px;
  color: #a0a0a0;
}

.disconnect-button {
  min-width: 108px;
  padding: 12px 16px;
  border-radius: 18px;
  color: #fff;
  border: none;
  background: linear-gradient(135deg, #00ff88 0%, #3ddc94 100%);
  box-shadow: 0 20px 45px rgba(0, 255, 136, 0.18);
  font-weight: 700;
  cursor: pointer;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  border-radius: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.stat-card__title {
  color: #a0a0a0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.stat-card__value {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.graph-line {
  width: 100%;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.08), transparent);
  position: relative;
  overflow: hidden;
}

.graph-line::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.8) 40%, rgba(0, 255, 136, 0.05) 100%);
  transform: translateY(-50%);
}

.graph-line::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  width: calc(100% - 20px);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.32) 30%, rgba(0, 255, 136, 0.08) 70%, transparent 100%);
}

.progress-ring {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.08), transparent 55%);
  display: grid;
  place-items: center;
}

.progress-ring::before {
  content: "34%";
  font-size: 12px;
  color: #fff;
  font-weight: 700;
}

.progress-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 4px rgba(0, 255, 136, 0.35);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), black calc(100% - 1px));
}

.premium-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(0, 255, 136, 0.18);
  box-shadow: 0 20px 60px rgba(0, 255, 136, 0.1);
  margin-bottom: 18px;
}

.premium-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  clip-path: polygon(50% 0%, 100% 35%, 82% 100%, 18% 100%, 0% 35%);
  background: linear-gradient(180deg, #b4ffb2 0%, #00ff88 100%);
}

.premium-text {
  display: grid;
  gap: 4px;
  flex: 1;
}

.premium-text__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.premium-text__subtitle,
.premium-text__caption {
  margin: 0;
  color: #a0a0a0;
  font-size: 13px;
}

.premium-action {
  padding: 12px 18px;
  border-radius: 18px;
  border: none;
  color: #08110c;
  background: linear-gradient(135deg, #00ff88 0%, #6effb8 100%);
  font-weight: 700;
  cursor: pointer;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.section-title a {
  color: #7cffad;
  font-size: 13px;
  text-decoration: none;
}

.server-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.server-item {
  flex: 0 0 112px;
  min-width: 112px;
  border-radius: 26px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
}

.server-item.active {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.12);
}

.flag-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.18), rgba(255, 255, 255, 0.04));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.server-item__country {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.server-item__ping {
  margin: 0;
  color: #7cffad;
  font-size: 13px;
}

.bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 10px;
  backdrop-filter: blur(16px);
  background: rgba(11, 15, 20, 0.96);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 6px;
  color: #8a8f99;
  text-decoration: none;
  font-size: 12px;
  width: 100%;
}

.nav-item.active {
  color: #7cffad;
}

.nav-item::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active::before {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(255, 255, 255, 0.08));
}

@media (max-width: 360px) {
  .app-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
