:root {
  --bg-0: #070b1a;
  --bg-1: #0b1127;
  --panel-0: rgba(18, 26, 58, 0.94);
  --panel-1: rgba(28, 38, 79, 0.96);
  --line: rgba(106, 110, 190, 0.24);
  --line-strong: rgba(106, 110, 190, 0.42);
  --text: #f6f3ff;
  --soft: #aeb5db;
  --muted: #636a8f;
  --ice: #64d8ff;
  --grad: linear-gradient(90deg, #8f4ff2 0%, #c255f5 45%, #ff5ea8 100%);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(124, 92, 255, 0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(168, 85, 247, 0.16), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(255, 94, 168, 0.14), transparent 20%),
    linear-gradient(180deg, #090d1d 0%, #0a1127 52%, #070b1a 100%);
}

/* ── Topbar ───────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 20px;
  background: linear-gradient(90deg, rgba(31, 28, 60, 0.96), rgba(10, 14, 35, 0.96));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img { width: 44px; height: 44px; border-radius: 8px; }
.brand-title { font-weight: 800; font-size: 1rem; }
.brand-sub { color: var(--soft); font-size: 0.79rem; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }

.tab {
  border: 1px solid rgba(132, 116, 235, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.tab.active { background: var(--grad); border-color: transparent; }
.tab-ice { background: linear-gradient(90deg, #2e7cf6, #49c6ff 60%, #b9fbff); color: #051018; border-color: transparent; }

/* ── Server Banner (WW2RP block) ──────────────────────── */
.server-banner {
  background: linear-gradient(180deg, #0e1432 0%, #080d22 100%);
  border-bottom: 2px solid rgba(124, 92, 255, 0.4);
}

.server-banner-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px 16px;
}

.server-back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.79rem;
  margin-bottom: 8px;
  transition: color 0.14s;
}
.server-back-link:hover { color: var(--soft); }

.server-banner-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.server-status-pill {
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: rgba(87, 242, 135, 0.13);
  border: 1px solid rgba(87, 242, 135, 0.36);
  color: #57f287;
  white-space: nowrap;
}

.server-status-pill.coming-soon {
  background: rgba(255, 211, 125, 0.11);
  border-color: rgba(255, 211, 125, 0.32);
  color: #ffd37d;
}

.server-name {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

.server-desc {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 0.84rem;
}

/* ── Page shell ───────────────────────────────────────── */
.page-shell { min-height: 100vh; }

.pkg-layout {
  max-width: 1240px;
  margin: 16px auto 0;
  padding: 0 20px 28px;
  display: grid;
  grid-template-columns: 266px 1fr;
  gap: 14px;
  align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────── */
.pkg-sidebar {
  background: var(--panel-0);
  border: 1px solid var(--line);
}

.sidebar-section {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}
.sidebar-section:last-child { border-bottom: none; }

.sidebar-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--soft);
}

.stack { display: grid; gap: 7px; }

.input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 0.87rem;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--soft) 50%),
    linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 8px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 30px;
  color-scheme: dark;
}

select.input option, select.input optgroup { background: #172041; color: var(--text); }
select.input option:disabled { background: #121933; color: var(--muted); }

.btn {
  width: 100%;
  border: 1px solid rgba(132, 116, 235, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.btn-primary { background: var(--grad); border-color: transparent; }

.account-status {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  padding: 7px 9px;
  margin-top: 7px;
  font-size: 0.82rem;
}
.account-status.signed-in { border-color: rgba(102, 255, 153, 0.38); color: #9ef5c1; }

.category-list { display: grid; gap: 4px; }

.category-link {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 6px 9px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}
.category-link.active { background: rgba(124, 92, 255, 0.2); border-color: rgba(169, 142, 255, 0.4); }

.coming-soon-note {
  color: #ffd37d;
  font-size: 0.81rem;
  padding: 8px 13px;
  border-top: 1px solid var(--line);
}

/* ── Package main area ────────────────────────────────── */
.pkg-main {
  background: var(--panel-0);
  border: 1px solid var(--line);
}

.pkg-section-title {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--soft);
  background: rgba(28, 38, 79, 0.45);
}

/* ── Package cards — Prometheus-tight ─────────────────── */
.package-list { display: grid; gap: 0; }

.package-row {
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.package-row:last-child { border-bottom: none; }

/* Package name bar */
.store-box-header {
  padding: 9px 14px 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(28, 38, 79, 0.55);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

/* Price + badge row */
.store-box { padding: 10px 14px 4px; }

.store-box-upper {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.store-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.store-badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }

.store-badge {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--soft);
  border: 1px solid var(--line);
  padding: 2px 7px;
}

.badge-soon { color: #ffd37d; border-color: rgba(255, 211, 125, 0.33); }

/* Description + features */
.store-box-lower {
  color: var(--soft);
  line-height: 1.65;
  font-size: 0.87rem;
  padding-bottom: 4px;
}

.store-features {
  margin: 7px 0 0;
  padding-left: 16px;
  font-size: 0.86rem;
}
.store-features li { margin-bottom: 2px; }

/* Buy button */
.buy-row { padding: 8px 14px 12px; }

.buy-btn {
  width: 100%;
  border: none;
  background: var(--grad);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.buy-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  border: 1px solid var(--line);
}

/* ── Result box + Footer ──────────────────────────────── */
.result-box {
  margin: 8px 14px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  padding: 8px 10px;
  min-height: 58px;
  color: #d5dcff;
  white-space: pre-wrap;
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px 22px;
  color: var(--muted);
  font-size: 0.81rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tos-link { color: #9cc9ff; text-decoration: none; font-weight: 700; }
.hidden { display: none; }

@media (max-width: 960px) {
  .pkg-layout { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
