:root {
  --bg: #08111d;
  --panel: rgba(13, 25, 42, 0.9);
  --panel-soft: rgba(18, 34, 57, 0.94);
  --line: rgba(85, 255, 255, 0.22);
  --text: #eef6ff;
  --muted: #c9f0f2;
  --accent: #55ffff;
  --accent-strong: #9affff;
  --emerald: #7ed7c5;
  --danger: #ff8e6e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(85, 255, 255, 0.17), transparent 34%),
    linear-gradient(180deg, #0d1728 0%, #08111d 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.35;
}
.page-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1rem 0 3rem; }
.promo-strip {
  margin-bottom: 1rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(85, 255, 255, 0.3);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(85, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  text-align: center;
  box-shadow: var(--shadow);
}
.promo-strip p { margin: 0; color: var(--text); }
.hero, .section, .footer { position: relative; z-index: 1; }
.hero { padding: 1rem 0 2rem; }
.hero--compact { padding-bottom: 0.5rem; }
.topbar, .hero__content, .stats, .spotlight, .footer { display: grid; gap: 1.5rem; }
.topbar { align-items: center; grid-template-columns: minmax(0, 1fr) auto; }
.brand, .nav-actions { display: flex; align-items: center; gap: 1rem; }
.brand {
  color: inherit;
  text-decoration: none;
}
.brand:visited,
.brand:hover,
.brand:active,
.brand:focus {
  color: inherit;
  text-decoration: none;
}
.brand h1,
.brand .eyebrow {
  color: inherit;
  text-decoration: none;
}
.brand__logo { display: block; width: 4.75rem; height: 4.75rem; object-fit: contain; border-radius: 18px; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 0.35rem; font-size: 0.8rem; color: var(--accent-strong); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Press Start 2P", cursive; line-height: 1.1; }
h1 { font-size: clamp(1rem, 2vw, 1.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 3.1rem); }
.hero__content { margin-top: 3rem; grid-template-columns: 1.3fr 0.8fr; align-items: center; }
.hero__text, .store-card p, .feature-list p, .checkout-note, .hero__card p, .empty-state, #cartItems p { color: var(--muted); line-height: 1.7; font-size: 1.05rem; }
.hero__actions, .footer__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.5rem; }
.hero__actions--compact { margin-top: 1rem; }
.button, .copy-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.button { color: #06111d; background: linear-gradient(135deg, var(--accent) 0%, #caffff 100%); box-shadow: 0 14px 40px rgba(85, 255, 255, 0.2); }
.button:hover, .copy-chip:hover { transform: translateY(-2px); }
.button--ghost, .copy-chip, .cart-link { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.button--full { width: 100%; text-align: center; }
.is-disabled { pointer-events: none; opacity: 0.55; }
.server-pill, .hero__card, .store-card, .checkout-panel, .spotlight__panel, .feature-list article, .stats article, .footer, .summary-card, .cart-item {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.server-pill { display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0.9rem; border-radius: 999px; }
.server-pill__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 14px var(--emerald); }
.hero__card, .store-card, .checkout-panel, .spotlight__panel, .footer, .stats article, .summary-card, .cart-item { border-radius: 28px; }
.hero__card { padding: 1.6rem; transform: rotate(2deg); }
.hero__card-label, .tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #06111d;
  background: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tag--gold { background: #8cc8ff; }
.tag--emerald { background: var(--emerald); }
.price-row, .store-card__meta, .summary-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.price-row, .store-card__meta { margin: 1.5rem 0; }
.price-row strong, .store-card__meta strong, .stats strong { font-size: 1.8rem; }
.price-row span, .store-card__meta span, .stats span, .summary-row span { color: var(--muted); }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0 3rem; }
.stats article, .store-card, .feature-list article, .spotlight__panel, .checkout-panel, .summary-card, .cart-item { padding: 1.5rem; }
.checkout-panel { max-width: 760px; }
.section { padding: 2rem 0; }
.section-heading { margin-bottom: 1.5rem; }
.card-grid, .feature-list { display: grid; gap: 1.25rem; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spotlight { grid-template-columns: 1fr 1fr; align-items: start; }
.input-group { display: grid; gap: 0.7rem; font-weight: 700; }
.input-group input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.input-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(85, 255, 255, 0.16); }
.input-group input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 142, 110, 0.12); }
.checkout-note--success { min-height: 1.6rem; color: var(--emerald); }
.purchase-button:disabled {
  cursor: not-allowed;
  color: rgba(6, 17, 29, 0.6);
  background: linear-gradient(135deg, rgba(85, 255, 255, 0.4) 0%, rgba(202, 255, 255, 0.4) 100%);
  box-shadow: none;
  transform: none;
}
.checkout-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.25rem; align-items: start; }
.verify-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.25rem;
  align-items: start;
}
.shop-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.shop-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}
.shop-main {
  display: grid;
  gap: 1.5rem;
}
.catalog-section {
  display: grid;
  gap: 1rem;
}
.catalog-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.catalog-header span { color: var(--muted); }
.category-list {
  display: grid;
  gap: 0.7rem;
}
.category-list a {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  background: var(--panel-soft);
}
.category-list a:visited,
.category-list a:active,
.category-list a:focus {
  color: var(--text);
  text-decoration: none;
}
.category-list a:hover {
  color: var(--accent);
  border-color: rgba(85, 255, 255, 0.5);
}
.card-grid--shop {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.store-front-grid {
  display: grid;
  gap: 1.25rem;
}
.server-tabs-shell {
  position: relative;
  margin-top: 1.25rem;
  padding-top: 0;
  display: flex;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  isolation: isolate;
  z-index: 30;
}
.server-tabs-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  filter: none;
  width: fit-content;
  max-width: 100%;
  z-index: 31;
}
.server-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  width: 100%;
}
.server-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.25rem;
  min-width: 220px;
  padding: 1.25rem 1.6rem;
  border-radius: 28px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, border-color 180ms ease;
}
.server-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  filter: brightness(1.05);
}
.server-tab.is-active {
  transform: translateY(-2px);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.28);
}
.server-tab--blue { background: linear-gradient(180deg, #4fb8ec 0%, #34a1dd 100%); }
.server-tab--green { background: linear-gradient(180deg, #44cf33 0%, #37bc28 100%); }
.server-tab--orange { background: linear-gradient(180deg, #ff9828 0%, #f58212 100%); }
.server-tab--red { background: linear-gradient(180deg, #f05757 0%, #e84545 100%); }
.server-tab--purple { background: linear-gradient(180deg, #9177ef 0%, #8267e2 100%); }
.server-tab-menu {
  position: absolute;
  top: calc(100% + 18px);
  width: 280px;
  padding: 0.75rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
  z-index: 80;
  transform: translateX(-50%);
  background: rgba(8, 17, 29, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.server-tab-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translateX(-50%) rotate(45deg);
  background: inherit;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
}
.server-tab-menu.is-hidden {
  display: none;
}
.server-tab-menu a {
  position: relative;
  display: block;
  margin: 0.35rem 0;
  padding: 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.server-tab-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.server-tab-menu--blue { border-color: rgba(79, 184, 236, 0.45); color: rgba(79, 184, 236, 0.45); }
.server-tab-menu--green { border-color: rgba(68, 207, 51, 0.45); color: rgba(68, 207, 51, 0.45); }
.server-tab-menu--orange { border-color: rgba(255, 152, 40, 0.45); color: rgba(255, 152, 40, 0.45); }
.server-tab-menu--red { border-color: rgba(240, 87, 87, 0.45); color: rgba(240, 87, 87, 0.45); }
.server-tab-menu--purple { border-color: rgba(145, 119, 239, 0.45); color: rgba(145, 119, 239, 0.45); }
.category-page-shell {
  display: grid;
  gap: 1.5rem;
}
.category-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
  align-items: start;
}
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.category-link:hover,
.category-link:visited,
.category-link:focus {
  color: var(--text);
  text-decoration: none;
}
.category-link--active {
  color: #06111d;
  background: var(--accent);
}
.category-theme--blue .category-link--active,
.category-theme--blue .hero__card-label,
.category-theme--blue .tag--blue {
  background: #4fb8ec;
}
.category-theme--green .category-link--active,
.category-theme--green .hero__card-label,
.category-theme--green .tag--green {
  background: #44cf33;
}
.category-theme--orange .category-link--active,
.category-theme--orange .hero__card-label,
.category-theme--orange .tag--orange {
  background: #ff9828;
}
.category-theme--red .category-link--active,
.category-theme--red .hero__card-label,
.category-theme--red .tag--red {
  background: #f05757;
}
.category-theme--purple .category-link--active,
.category-theme--purple .hero__card-label,
.category-theme--purple .tag--purple {
  background: #9177ef;
}
.mode-grid,
.info-grid {
  display: grid;
  gap: 1.25rem;
}
.mode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mode-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}
.info-grid {
  grid-template-columns: 1.15fr 0.9fr 1fr;
}
.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.payment-badges span,
.recent-payment {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}
.hero__card h3,
.spotlight__panel h2,
.summary-card h3,
.mode-card h3,
.checkout-panel h3,
.catalog-header h3 {
  color: #fff7df;
}
.input-group span,
.summary-row strong,
.recent-payment strong,
.recent-payment span {
  color: var(--text);
}
.recent-payments {
  display: grid;
  gap: 0.75rem;
}
.recent-payment {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.summary-row { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.summary-row--total { border-bottom: 0; padding-bottom: 0; }
.summary-card--tight { margin-top: 1rem; }
.checkout-form { display: grid; gap: 1rem; }
.checkout-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; margin-top: 1rem; }
.quantity-controls { display: flex; align-items: center; gap: 0.75rem; }
.quantity-button { width: 2.6rem; height: 2.6rem; padding: 0; }
.footer { grid-template-columns: 1fr auto; align-items: center; padding: 1.75rem; margin-top: 2rem; }

@media (max-width: 920px) {
  .topbar, .hero__content, .stats, .card-grid, .spotlight, .feature-list, .checkout-layout, .verify-layout, .footer, .cart-item, .shop-layout, .mode-grid, .info-grid, .card-grid--shop, .server-tabs { grid-template-columns: 1fr; }
  .hero__card { transform: none; }
  .shop-sidebar { position: static; }
  .server-tab { min-width: 100%; }
  .server-tabs-shell,
  .server-tabs-banner {
    width: 100%;
  }
  .server-tab-menu {
    position: static;
    width: min(100%, 340px);
    margin-top: 1rem;
    transform: none;
  }
  .server-tab-menu::before { display: none; }
  .category-page-hero { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 1rem, 1180px); }
  h2 { font-size: clamp(1.4rem, 9vw, 2.2rem); }
  .button, .copy-chip { width: 100%; text-align: center; }
  .server-pill { flex-direction: column; align-items: stretch; border-radius: 24px; }
  .checkout-form__row { grid-template-columns: 1fr; }
  .nav-actions { width: 100%; flex-wrap: wrap; }
}
