:root {
  color-scheme: dark;
  --page: #061027;
  --panel: rgba(9, 20, 47, 0.88);
  --panel-strong: rgba(13, 26, 61, 0.96);
  --line: rgba(148, 163, 184, 0.24);
  --ink: #f8fafc;
  --muted: #c7d2fe;
  --yellow: #ffc400;
  --yellow-strong: #f4a900;
  --cyan: #22d3ee;
  --purple: #6d5dfc;
  --danger: #ff5a66;
  --ok: #34d399;
  --warn: #fbbf24;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 6% 48%, rgba(99, 46, 222, 0.34), transparent 28%),
    radial-gradient(circle at 93% 42%, rgba(37, 99, 235, 0.24), transparent 30%),
    linear-gradient(180deg, #081226 0%, #060d21 52%, #050914 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 92px 0 auto;
  height: 610px;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(88, 28, 135, 0.24) 18% 24%, transparent 24% 76%, rgba(30, 64, 175, 0.18) 76% 83%, transparent 83%),
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1), transparent 62%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 92px;
  padding: 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(4, 10, 26, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.logo,
.main-nav a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 236px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #061027;
  font-size: 25px;
}

.logo strong {
  display: block;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0;
}

.logo small {
  display: block;
  margin-top: 7px;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
}

.main-nav a {
  position: relative;
  min-height: 92px;
  display: inline-flex;
  align-items: center;
  color: #d7dce8;
  font-size: 16px;
  font-weight: 650;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--yellow);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--yellow);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
}

button {
  border: 0;
  min-height: 48px;
  border-radius: 7px;
  padding: 0 20px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.currency-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 142px;
  justify-content: center;
  color: #eef2ff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.currency-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 190px;
  min-width: 142px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 18, 44, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.currency-menu button {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: #f8fafc;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.currency-menu button:hover {
  color: #111827;
  background: var(--yellow);
}

.login-button,
.game-card button,
.stack > button,
.inline-form button {
  color: #111827;
  background: linear-gradient(180deg, #ffd119 0%, #ffb800 100%);
  box-shadow: 0 8px 18px rgba(255, 196, 0, 0.22);
}

.login-button:hover,
.game-card button:hover,
.stack > button:hover,
.inline-form button:hover {
  background: linear-gradient(180deg, #ffe054 0%, #f6b000 100%);
}

.hero {
  position: relative;
  z-index: 1;
  width: min(1428px, calc(100% - 88px));
  margin: 0 auto;
  padding: 42px 0 34px;
}

.page-main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 44px;
}

.narrow-main {
  width: min(860px, calc(100% - 40px));
}

.page-title {
  text-align: center;
  margin-bottom: 28px;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 950;
}

.page-title h1 span {
  color: var(--yellow);
}

.page-title p {
  margin: 12px 0 0;
  color: #e2e8f0;
  font-size: 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-panel {
  display: grid;
  gap: 16px;
}

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

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
}

.price-row strong {
  color: var(--yellow);
  white-space: nowrap;
}

.price-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #111827;
  background: linear-gradient(180deg, #ffd119 0%, #ffb800 100%);
  font-weight: 850;
  text-decoration: none;
}

.hero-copy {
  text-align: center;
  margin-bottom: 34px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.14);
}

.hero-copy h1 span {
  color: var(--yellow);
}

.hero-copy p {
  margin: 14px 0 0;
  color: #f1f5f9;
  font-size: 22px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.game-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 1.5;
  overflow: hidden;
  border-radius: 18px;
  border: 2px solid transparent;
  background: var(--panel-strong);
  isolation: isolate;
  cursor: pointer;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
  color: inherit;
  text-decoration: none;
}

.game-card::before,
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  display: none;
}

.game-card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.pubg-card {
  border-color: rgba(255, 196, 0, 0.82);
}

.pubg-card::before {
  z-index: 0;
  background: linear-gradient(90deg, rgba(6, 9, 18, 0.9) 0%, rgba(9, 16, 31, 0.62) 44%, rgba(17, 24, 39, 0.06) 100%);
}

.ml-card {
  border-color: rgba(76, 83, 255, 0.9);
}

.ml-card::before {
  z-index: 0;
  background: linear-gradient(90deg, rgba(17, 24, 69, 0.88) 0%, rgba(31, 41, 105, 0.55) 48%, rgba(50, 37, 126, 0.04) 100%);
}

.game-card-content {
  position: relative;
  z-index: 2;
  width: min(430px, 68%);
  height: 100%;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.game-logo {
  margin-bottom: auto;
  color: #fff;
  font-weight: 950;
  line-height: 0.92;
  text-shadow: 0 5px 16px rgba(0, 0, 0, 0.38);
}

.pubg-logo {
  padding: 10px 14px;
  border: 5px solid #fff;
  font-size: 42px;
}

.pubg-logo span,
.ml-logo span {
  font-size: 24px;
}

.ml-logo {
  color: #ffe7a6;
  font-size: 34px;
}

.game-card h2 {
  margin: 58px 0 8px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 950;
}

.game-card p {
  margin: 0 0 52px;
  max-width: 330px;
  color: #fff;
  font-size: 17px;
  line-height: 1.55;
}

.game-card button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 174px;
  justify-content: center;
  font-size: 17px;
}

.game-card button span {
  font-size: 30px;
  line-height: 0;
}

.game-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.helmet {
  position: absolute;
  right: 122px;
  top: 92px;
  width: 106px;
  height: 92px;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(145deg, #9ca3af, #1f2937 72%);
  box-shadow: inset -16px -20px 0 rgba(0, 0, 0, 0.36), 0 16px 28px rgba(0, 0, 0, 0.3);
}

.helmet::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 22px;
  height: 20px;
  border-radius: 14px;
  background: #111827;
}

.blast {
  position: absolute;
  right: 4%;
  bottom: -22%;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.95), rgba(249, 115, 22, 0.58) 42%, transparent 68%);
  filter: blur(2px);
}

.ml-art .crystal {
  position: absolute;
  width: 82px;
  height: 138px;
  clip-path: polygon(48% 0, 100% 34%, 68% 100%, 15% 76%, 0 28%);
  background: linear-gradient(160deg, #dbeafe, #38bdf8 45%, #312e81);
  opacity: 0.82;
}

.ml-art .one {
  right: 13%;
  top: 18%;
  transform: rotate(18deg);
}

.ml-art .two {
  right: 35%;
  bottom: 8%;
  transform: rotate(-28deg) scale(0.78);
}

.blade {
  position: absolute;
  right: -5%;
  bottom: 13%;
  width: 420px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #bae6fd 18%, #2563eb 58%, transparent);
  transform: rotate(-24deg);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.8);
}

.trust-strip {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 20, 47, 0.76);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 52px rgba(0, 0, 0, 0.18);
}

.trust-strip div {
  min-height: 148px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 20px;
  align-content: center;
}

.trust-strip div + div {
  border-left: 1px solid var(--line);
}

.trust-icon {
  grid-row: span 2;
  color: var(--yellow);
  font-size: 48px;
  line-height: 1;
}

.trust-strip strong {
  font-size: 17px;
  align-self: end;
}

.trust-strip p {
  margin: 7px 0 0;
  color: #f8fafc;
  line-height: 1.45;
}

.shop-layout {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: start;
}

.order-layout {
  width: min(720px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
}

.order-layout .order-panel,
.order-layout .payment-panel {
  grid-column: 1;
}

.panel {
  background: rgba(8, 18, 44, 0.86);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.payment-panel,
.tracking-panel,
.admin-panel,
.help-panel {
  grid-column: 2;
}

.single-panel {
  grid-column: auto;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading span,
.muted,
.payment-grid span,
.amount-box span,
.qr-panel span {
  color: var(--muted);
  font-size: 13px;
}

h2 {
  margin: 0;
  font-size: 24px;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border-radius: 7px;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--ink);
  background: rgba(15, 23, 42, 0.9);
  font: inherit;
}

input[type="file"] {
  padding: 11px 12px;
}

.product-preview,
.notice {
  padding: 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  color: #dbeafe;
}

.status-row,
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.inline-form input {
  flex: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 850;
}

.badge.waiting_verification,
.badge.pending {
  color: var(--warn);
  background: rgba(251, 191, 36, 0.12);
}

.badge.paid,
.badge.completed {
  color: var(--ok);
  background: rgba(52, 211, 153, 0.12);
}

.badge.rejected,
.badge.expired {
  color: var(--danger);
  background: rgba(255, 90, 102, 0.12);
}

.amount-box {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 196, 0, 0.55);
  background: rgba(255, 196, 0, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 5px;
}

.amount-box strong {
  color: var(--yellow);
  font-size: 34px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-grid div,
.qr-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(15, 23, 42, 0.62);
  display: grid;
  gap: 6px;
}

.qr-panel {
  margin-top: 12px;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 14px;
  align-items: center;
}

.qr-panel img {
  width: 148px;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.instructions {
  margin: 18px 0;
  padding-left: 18px;
  color: #e2e8f0;
}

.instructions li + li {
  margin-top: 6px;
}

.steps {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.steps span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
}

.track-result,
.admin-orders {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.62);
  display: grid;
  gap: 10px;
}

.order-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: #dbeafe;
  font-size: 14px;
}

.order-meta a {
  color: var(--yellow);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

button.danger {
  color: #fff;
  background: var(--danger);
}

button.secondary {
  color: #fff;
  background: #475569;
}

.site-footer {
  min-height: 92px;
  padding: 0 60px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #e5e7eb;
}

.site-footer div {
  display: flex;
  gap: 32px;
}

.socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.socials button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  color: #111827;
  background: var(--yellow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: rgba(8, 18, 44, 0.98);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.46);
}

.modal h2 {
  padding-right: 42px;
  margin-bottom: 14px;
}

.modal p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.16);
  box-shadow: none;
  font-size: 24px;
}

.price-table {
  width: 100%;
  margin: 10px 0 18px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #e2e8f0;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table td:last-child {
  text-align: right;
  color: var(--yellow);
  font-weight: 850;
}

@media (max-width: 1120px) {
  .site-header {
    height: auto;
    padding: 16px 24px;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .main-nav a {
    min-height: 44px;
  }

  .hero {
    width: min(100% - 32px, 1428px);
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-strip div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 880px) {
  .game-grid,
  .shop-layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .payment-panel,
  .tracking-panel,
  .admin-panel,
  .help-panel {
    grid-column: auto;
  }

  .game-card {
    min-height: 0;
  }

  .site-footer {
    padding: 24px;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .logo {
    min-width: 0;
  }

  .header-actions {
    width: 100%;
    gap: 10px;
  }

  .currency-button,
  .login-button {
    flex: 1;
    min-width: 0;
  }

  .currency-menu {
    left: 0;
    right: auto;
    top: 58px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .game-card-content {
    width: 78%;
    padding: 24px;
  }

  .game-card h2 {
    margin-top: 38px;
    font-size: 28px;
  }

  .trust-strip,
  .payment-grid,
  .qr-panel,
  .order-meta {
    grid-template-columns: 1fr;
  }

  .trust-strip div,
  .trust-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-strip div:first-child {
    border-top: 0;
  }

  .inline-form,
  .status-row {
    align-items: stretch;
    flex-direction: column;
  }

  .qr-panel img {
    width: 100%;
    max-width: 220px;
  }
}
