:root {
  --cv-bg: #070b14;
  --cv-panel: #0f172a;
  --cv-panel-soft: #152238;
  --cv-text: #e8eef9;
  --cv-muted: #94a3b8;
  --cv-cyan: #22d3ee;
  --cv-blue: #3b82f6;
  --cv-purple: #8b5cf6;
  --cv-accent: linear-gradient(135deg, #22d3ee 0%, #6366f1 45%, #a855f7 100%);
  --cv-shop: #f97316;
  --cv-shop-hover: #fb923c;
  --cv-radius: 16px;
  --cv-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --cv-width: 1200px;
  --cv-sidebar: 260px;
  --font-main: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 0%, #12203a 0%, var(--cv-bg) 45%, #05070d 100%);
  color: var(--cv-text);
  font-family: var(--font-main);
  line-height: 1.6;
}

a {
  color: var(--cv-cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-shell {
  max-width: var(--cv-width);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--cv-sidebar) 1fr;
  gap: 28px;
  padding: 28px 20px 40px;
}

.site-sidebar {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--cv-radius);
  padding: 22px 18px;
  box-shadow: var(--cv-shadow);
  position: sticky;
  top: 20px;
  align-self: start;
}

.brand-block {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  text-decoration: none;
  color: inherit;
}

.brand-block:hover {
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-short {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cv-cyan);
}

.brand-full {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nav-link {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--cv-text);
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.nav-link:hover {
  background: rgba(59, 130, 246, 0.12);
  text-decoration: none;
}

.nav-link.is-active {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
}

.nav-link-shop {
  background: linear-gradient(135deg, var(--cv-shop), #ea580c);
  color: #fff !important;
  text-align: center;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
  border: none;
}

.nav-link-shop:hover,
.nav-link-shop.is-active {
  background: linear-gradient(135deg, var(--cv-shop-hover), #f97316);
  transform: translateY(-1px);
}

.sidebar-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.sidebar-game {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--cv-muted);
}

.sidebar-play {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cv-accent);
  color: #041018 !important;
  font-weight: 700;
}

.site-main-wrap {
  min-width: 0;
}

.site-main {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--cv-radius);
  padding: 28px;
  box-shadow: var(--cv-shadow);
  min-height: 520px;
}

.site-footer {
  margin-top: 18px;
  padding: 18px 8px 0;
  color: var(--cv-muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copy {
  margin: 14px 0 0;
  font-size: 0.82rem;
  opacity: 0.85;
}

.page-head {
  margin-bottom: 24px;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  background: var(--cv-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-head p {
  margin: 0;
  color: var(--cv-muted);
  max-width: 62ch;
}

.banner-zone {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.banner-zone img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
}

.banner-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 24px;
  background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.92));
}

.banner-caption h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.banner-caption p {
  margin: 0;
  color: #cbd5e1;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 8px;
}

.cta-row a {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.cta-row a:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.cta-row img {
  height: 52px;
  width: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--cv-panel-soft);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--cv-muted);
  font-size: 0.95rem;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
  margin-top: 26px;
}

.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.icon-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(21, 34, 56, 0.75);
  border-radius: 12px;
  padding: 12px;
}

.icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.15);
  color: var(--cv-cyan);
  font-size: 1.1rem;
}

.media-thumb {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  max-width: 320px;
}

.media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0;
}

.media-row img {
  width: 180px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.game-shot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.game-shot-grid img {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.contact-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}

.contact-lines p {
  margin: 0 0 10px;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.shop-intro {
  margin-bottom: 18px;
}

.goods-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.goods-head h2 {
  margin: 0;
}

.goods-head-note {
  margin: 0;
  color: var(--cv-muted);
  font-size: 0.9rem;
}

.goods-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.goods-tab {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: var(--cv-text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.goods-tab:hover {
  border-color: rgba(34, 211, 238, 0.45);
}

.goods-tab.is-active {
  border-color: var(--cv-cyan);
  color: var(--cv-cyan);
  background: rgba(34, 211, 238, 0.1);
}

.goods-panel {
  max-height: min(420px, 52vh);
  overflow: auto;
  margin-bottom: 22px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 15, 30, 0.55);
}

.goods-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goods-list.is-loading {
  min-height: 120px;
  position: relative;
}

.goods-list.is-loading::after {
  content: 'Loading packages…';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--cv-muted);
  font-weight: 600;
}

.goods-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  background: var(--cv-panel-soft);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: left;
}

.goods-card:hover,
.goods-card.is-selected {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.goods-card.is-selected {
  background: rgba(34, 211, 238, 0.08);
}

.goods-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.goods-card-main {
  min-width: 0;
}

.goods-card h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.goods-card-type {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cv-muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.goods-card .price {
  margin: 0;
  color: var(--cv-cyan);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.checkout-panel {
  background: rgba(8, 15, 30, 0.85);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 16px;
  padding: 20px;
}

.checkout-panel h2 {
  margin-top: 0;
}

.checkout-alert {
  display: none;
  margin-bottom: 14px;
}

.checkout-alert.is-visible {
  display: block;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid > label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: #dbeafe;
}

.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0b1220;
  color: #fff;
}

.form-grid input.input-readonly,
.form-grid input[readonly] {
  background: rgba(21, 34, 56, 0.9);
  color: #cbd5e1;
  cursor: default;
  border-color: rgba(148, 163, 184, 0.22);
}

.payment-options {
  display: grid;
  gap: 8px;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(21, 34, 56, 0.65);
}

.payment-options .display-only {
  opacity: 0.65;
  cursor: not-allowed;
}

.currency-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.currency-switch button {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #111827;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.currency-switch button.is-active {
  border-color: var(--cv-cyan);
  color: var(--cv-cyan);
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.agree-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--cv-cyan);
}

.agree-row-text {
  display: block;
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--cv-muted);
  font-weight: 400;
}

.agree-row-text .policy-external-link {
  display: inline;
  white-space: normal;
  word-break: break-word;
}

.btn-primary {
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cv-shop), #ea580c);
  color: #fff;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.delivery-promise {
  margin-top: 22px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(21, 34, 56, 0.75);
  border: 1px dashed rgba(148, 163, 184, 0.35);
}

.delivery-promise h3 {
  margin-top: 0;
}

.delivery-promise h4 {
  margin-bottom: 6px;
}

.confirm-card,
.status-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 16px;
  background: var(--cv-panel-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.confirm-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.confirm-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.policy-external-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 980px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: static;
  }

  .feature-grid,
  .footer-grid,
  .split-section,
  .contact-card,
  .game-shot-grid {
    grid-template-columns: 1fr;
  }
}
