:root {
  --bg: #0b0b0b;
  --panel: rgba(18, 18, 18, 0.68);
  --panel-2: rgba(28, 22, 16, 0.72);
  --line: rgba(255, 243, 214, 0.14);
  --text: #fff8ea;
  --muted: #a8a09a;
  --primary: #ff6b00;
  --primary-2: #ffb800;
  --accent: #fff3d6;
  --danger: #ff6a6a;
  --glass: rgba(18, 18, 18, 0.62);
  --glow: 0 0 28px rgba(255, 107, 0, 0.38), 0 0 80px rgba(255, 184, 0, 0.16);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(255, 107, 0, 0.18), transparent 30%),
    radial-gradient(circle at 12% 28%, rgba(255, 184, 0, 0.10), transparent 28%),
    linear-gradient(180deg, #090909 0%, var(--bg) 46%, #050505 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background-image:
    radial-gradient(circle, rgba(255, 243, 214, 0.62) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 107, 0, 0.50) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 184, 0, 0.32) 0 1px, transparent 1.5px);
  background-position: 0 0, 28px 46px, 86px 18px;
  background-size: 120px 120px, 180px 180px, 240px 240px;
  opacity: 0.34;
  animation: particles-drift 22s linear infinite;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 184, 0, 0.12) 44%, transparent 56% 100%),
    linear-gradient(rgba(255, 243, 214, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 243, 214, 0.025) 1px, transparent 1px);
  background-size: 260% 100%, 42px 42px, 42px 42px;
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: light-sweep 9s ease-in-out infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255, 243, 214, 0.10);
  background: rgba(11, 11, 11, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.brand,
.nav,
.account,
.balance {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 243, 214, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b0b0b;
  box-shadow: var(--glow);
}

.nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  position: relative;
  padding: 26px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.70);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
  content: "";
}

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

.nav a.active::after,
.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.account {
  gap: 12px;
  min-width: 0;
}

.account .btn.small {
  flex: 0 1 auto;
}

.balance {
  gap: 8px;
  min-width: 92px;
  justify-content: center;
  border: 1px solid rgba(255, 184, 0, 0.30);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--accent);
  background: rgba(19, 18, 16, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 243, 214, 0.08), 0 0 24px rgba(255, 107, 0, 0.16);
  backdrop-filter: blur(14px);
}

.coin-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff3d6, var(--secondary, #ffb800) 48%, var(--primary) 75%);
  box-shadow: 0 0 18px rgba(255, 184, 0, 0.72);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero::before {
  top: 38px;
  right: clamp(18px, 8vw, 140px);
  z-index: -1;
  width: min(520px, 56vw);
  height: min(560px, 62vw);
  border: 1px solid rgba(255, 184, 0, 0.16);
  border-radius: 42% 58% 48% 52% / 30% 32% 68% 70%;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 243, 214, 0.95) 0 5%, transparent 6%),
    linear-gradient(120deg, transparent 0 34%, rgba(255, 243, 214, 0.20) 34% 36%, transparent 37%),
    radial-gradient(ellipse at 50% 43%, rgba(255, 107, 0, 0.92) 0 18%, rgba(255, 184, 0, 0.34) 22%, transparent 45%),
    linear-gradient(145deg, rgba(255, 107, 0, 0.95), rgba(21, 17, 14, 0.88) 52%, rgba(255, 184, 0, 0.42));
  filter: drop-shadow(0 0 60px rgba(255, 107, 0, 0.42));
  opacity: 0.82;
  transform: skewX(-6deg);
  animation: hero-float 5.5s ease-in-out infinite;
}

.hero::after {
  right: -120px;
  bottom: 26px;
  z-index: -2;
  width: 620px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(255, 107, 0, 0.42), transparent 68%);
  filter: blur(16px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.98), rgba(11, 11, 11, 0.78) 45%, rgba(11, 11, 11, 0.36)),
    radial-gradient(circle at 76% 42%, rgba(255, 107, 0, 0.38), transparent 32%),
    radial-gradient(circle at 52% 16%, rgba(255, 184, 0, 0.18), transparent 28%),
    linear-gradient(145deg, #111 0%, #090909 52%, #1b1008 100%);
}

.hero-bg::before,
.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-bg::before {
  background:
    linear-gradient(120deg, transparent 18%, rgba(255, 107, 0, 0.16) 44%, transparent 64%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 243, 214, 0.04) 43px 44px);
  animation: hero-scan 7s ease-in-out infinite;
}

.hero-bg::after {
  background-image: radial-gradient(circle, rgba(255, 184, 0, 0.62) 0 1px, transparent 2px);
  background-size: 86px 86px;
  opacity: 0.34;
  animation: particles-rise 14s linear infinite;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 108px;
}

.kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 184, 0, 0.38);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(255, 107, 0, 0.24);
}

h2 {
  margin-bottom: 0;
  font-size: 30px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.hero-copy {
  max-width: 560px;
  color: rgba(255, 243, 214, 0.82);
  font-size: 18px;
  line-height: 1.6;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view.section {
  min-height: calc(100vh - 238px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.pill {
  border: 1px solid rgba(255, 243, 214, 0.14);
  border-radius: 999px;
  padding: 8px 13px;
  color: rgba(255, 243, 214, 0.72);
  background: rgba(14, 14, 14, 0.66);
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.game-card,
.tier-card,
.package-card,
.custom-card,
.checkout-summary,
.checkout-form,
.contact-form,
.modal-panel,
.table-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 243, 214, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 243, 214, 0.08), rgba(255, 243, 214, 0.015)),
    var(--glass);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(145%);
}

.game-card::before,
.tier-card::before,
.package-card::before,
.custom-card::before,
.checkout-summary::before,
.checkout-form::before,
.contact-form::before,
.modal-panel::before,
.table-wrap::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 184, 0, 0.18), transparent 62% 100%);
  background-size: 260% 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: card-sheen 7s ease-in-out infinite;
  content: "";
}

.game-card:hover::before,
.tier-card:hover::before,
.package-card:hover::before,
.custom-card:hover::before,
.checkout-summary:hover::before,
.checkout-form:hover::before {
  opacity: 1;
}

.game-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px;
}

.game-art {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 184, 0, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 184, 0, 0.56), transparent 22%),
    linear-gradient(145deg, rgba(255, 107, 0, 0.55), rgba(18, 18, 18, 0.94) 58%),
    #111;
  box-shadow: inset 0 0 36px rgba(255, 107, 0, 0.16), 0 0 24px rgba(255, 107, 0, 0.12);
}

.game-art::before {
  width: 42%;
  height: 54%;
  border-radius: 46% 54% 38% 62% / 28% 30% 70% 72%;
  background: linear-gradient(150deg, var(--accent), var(--primary-2) 32%, var(--primary) 64%, #21140d);
  filter: drop-shadow(0 0 24px rgba(255, 107, 0, 0.52));
  content: "";
}

.game-art::after {
  position: absolute;
  inset: auto 14% 15% 14%;
  height: 18%;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(255, 184, 0, 0.34), transparent 70%);
  content: "";
}

.game-art img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.game-art.image-missing img {
  display: none;
}

.game-card .game-art {
  width: 180px;
}

.muted {
  color: var(--muted);
}

.tiers {
  display: grid;
  gap: 28px;
}

.tier-card {
  padding: 18px;
}

.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tier-games,
.packages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mini-game {
  position: relative;
  min-height: 204px;
  overflow: hidden;
  border: 1px solid rgba(255, 243, 214, 0.12);
  border-radius: 8px;
  background: rgba(14, 14, 14, 0.72);
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mini-game:hover {
  border-color: rgba(255, 107, 0, 0.62);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36), 0 0 28px rgba(255, 107, 0, 0.20);
  transform: translateY(-3px);
}

.mini-game:hover .game-art img,
.mini-game:hover .game-art {
  transform: scale(1.035);
}

.mini-game footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
}

.lock-tag,
.open-tag {
  color: var(--primary-2);
  font-size: 12px;
  white-space: nowrap;
}

.currency-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.currency-tabs button {
  border: 1px solid rgba(255, 243, 214, 0.14);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  background: rgba(12, 12, 12, 0.66);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.currency-tabs button.active {
  border-color: rgba(255, 184, 0, 0.66);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b0b0b;
  font-weight: 900;
  box-shadow: var(--glow);
}

.package-card {
  padding: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.package-card:hover {
  border-color: rgba(255, 107, 0, 0.58);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38), 0 0 30px rgba(255, 107, 0, 0.20);
  transform: translateY(-3px);
}

.package-card .price {
  font-size: 24px;
  font-weight: 900;
}

.package-card .coins {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 20px;
  color: var(--accent);
  font-weight: 900;
}

.custom-card {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(260px, 320px) minmax(210px, 1fr) minmax(170px, 200px);
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding: 20px;
}

.custom-card > * {
  min-width: 0;
}

.custom-card .amount-field {
  width: 100%;
}

.custom-card .muted {
  margin: 0;
  overflow-wrap: anywhere;
}

.custom-card .btn {
  width: 100%;
  min-height: 56px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}

.checkout-summary {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 243, 214, 0.11);
  padding-bottom: 13px;
  color: var(--muted);
}

.summary-line strong {
  color: var(--accent);
  text-align: right;
}

.checkout-form {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.payment-section {
  display: grid;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 243, 214, 0.12);
  padding-bottom: 22px;
}

.card-preview {
  position: relative;
  display: grid;
  gap: 34px;
  min-height: 172px;
  overflow: hidden;
  border: 1px solid rgba(255, 184, 0, 0.42);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.38), rgba(12, 12, 12, 0.78) 55%, rgba(255, 184, 0, 0.18)),
    #141414;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 0 34px rgba(255, 107, 0, 0.16);
}

.card-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 243, 214, 0.18), transparent 62% 100%);
  background-size: 240% 100%;
  animation: card-sheen 6s ease-in-out infinite;
  content: "";
}

.card-preview span,
.card-preview strong {
  position: relative;
  z-index: 1;
}

.card-preview span {
  color: rgba(255, 243, 214, 0.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-preview strong {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: #fff3d6;
  font-size: 22px;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.30);
}

.card-preview-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.payment-grid {
  grid-template-columns: 1.4fr 0.8fr 0.6fr;
}

.checkout-form label,
.contact-form label,
.modal label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.checkout-form input,
.amount-field input,
.modal label input:not([type="checkbox"]),
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 243, 214, 0.12);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(3, 3, 4, 0.72);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-form input:focus,
.amount-field input:focus,
.modal label input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: rgba(8, 8, 8, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.16), 0 0 24px rgba(255, 107, 0, 0.12);
}

.checkout-wide {
  grid-column: 1 / -1;
}

.amount-field {
  position: relative;
}

.amount-field span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.amount-field input {
  padding-left: 34px;
}

.btn {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 30%, rgba(255, 243, 214, 0.44), transparent 62% 100%);
  background-size: 240% 100%;
  opacity: 0.7;
  animation: button-sheen 4.5s ease-in-out infinite;
  content: "";
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b0b0b;
  box-shadow: 0 0 22px rgba(255, 107, 0, 0.44), 0 10px 30px rgba(255, 107, 0, 0.24);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #ff7c1a, #ffd15d);
  box-shadow: 0 0 32px rgba(255, 107, 0, 0.62), 0 14px 36px rgba(255, 107, 0, 0.32);
  transform: translateY(-1px);
}

.btn.secondary {
  border: 1px solid rgba(255, 243, 214, 0.13);
  background: rgba(15, 15, 15, 0.76);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn.small {
  max-width: 220px;
  overflow: hidden;
  padding: 9px 15px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn.wide {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  background: #222;
  color: #666;
  box-shadow: none;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.legal {
  border-top: 1px solid var(--line);
}

.legal-body {
  max-width: 820px;
  color: rgba(255, 243, 214, 0.80);
  line-height: 1.8;
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-document {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-document li {
  position: relative;
  min-height: 28px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 243, 214, 0.06);
  color: rgba(255, 243, 214, 0.82);
  font-size: 15px;
  line-height: 1.72;
  list-style: none;
}

.legal-document li:last-child {
  border-bottom: 0;
}

.legal-document .legal-section-item {
  margin: 26px 0 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 184, 0, 0.20);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.16), rgba(255, 184, 0, 0.045)),
    rgba(255, 243, 214, 0.025);
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.legal-document .legal-subhead-item {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin: 20px 0 8px 18px;
  padding: 0 0 8px;
  border-bottom: 2px solid rgba(255, 184, 0, 0.72);
  color: rgba(255, 243, 214, 0.86);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: 0 8px 18px -18px rgba(255, 107, 0, 0.6);
}

.legal-document .legal-lead-item {
  margin-left: 18px;
  padding-top: 10px;
  padding-bottom: 4px;
  border-bottom: 0;
  color: rgba(255, 243, 214, 0.86);
  font-size: 15px;
  font-weight: 600;
}

.legal-document .legal-bullet-item {
  margin-left: 18px;
  padding: 5px 0 5px 22px;
  border-bottom: 0;
  color: rgba(255, 243, 214, 0.76);
  font-size: 14px;
  font-weight: 600;
}

.legal-document .legal-bullet-item::before {
  position: absolute;
  top: 17px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary-2);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.45);
  content: "";
}

.dashboard {
  min-height: calc(100vh - 238px);
}

.dashboard-tabs,
.auth-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  border-radius: 8px;
  background: rgba(9, 9, 9, 0.72);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.dashboard-tabs button,
.tab {
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.dashboard-tabs button.active,
.tab.active {
  color: #0b0b0b;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 243, 214, 0.10);
  color: rgba(255, 243, 214, 0.78);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--text);
  background: rgba(255, 107, 0, 0.08);
  font-weight: 900;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.amount-positive {
  color: #75e69c;
}

.amount-negative {
  color: var(--primary-2);
}

.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 38px;
  padding: 34px 40px 40px;
}

.contact-form h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form textarea {
  min-height: 172px;
  resize: vertical;
}

.send-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.send-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  transform: rotate(-35deg);
}

.footer {
  display: grid;
  gap: 28px;
  padding: 34px 40px;
  border-top: 1px solid rgba(255, 243, 214, 0.10);
  color: var(--muted);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(18px);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(170px, 0.8fr) minmax(220px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  width: min(1080px, 100%);
  margin: 0 auto;
}

.footer h3 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 20px;
}

.footer p {
  margin-bottom: 12px;
  color: rgba(255, 243, 214, 0.72);
  font-size: 18px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--primary-2);
  font-size: 18px;
}

.mail-icon {
  display: inline-grid;
  width: 18px;
  height: 14px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: transparent;
}

.payment-badges {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 12px;
  width: min(100%, 240px);
  max-width: 100%;
}

.payment-badges img {
  width: 72px;
  height: 48px;
  object-fit: contain;
  border: 1px solid rgba(255, 243, 214, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(255, 243, 214, 0.08), rgba(18, 18, 18, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.22);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.payment-badges img:hover {
  border-color: rgba(255, 184, 0, 0.72);
  transform: translateY(-1px);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-copy {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #777b86;
  text-align: center;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary-2);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.74);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(520px, calc(100vw - 32px));
  padding: 24px;
}

.game-modal {
  padding: clamp(8px, 2vw, 18px);
}

.game-panel {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(var(--app-vh, 1vh) * 100 - 24px);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
}

.game-modal-head {
  min-width: 0;
  padding-right: 36px;
}

.game-modal-head h2 {
  overflow: hidden;
  margin-bottom: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.checkline {
  grid-template-columns: auto 1fr;
  align-items: center;
  text-transform: none;
  font-weight: 500;
}

.form-message {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.icon-btn {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.game-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 243, 214, 0.18);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.9);
  color: #fff;
  box-shadow: var(--glow);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.game-close span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #070707;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.game-close:hover {
  border-color: var(--primary-2);
  transform: translateY(-1px);
}

.game-frame {
  display: grid;
  width: 100%;
  height: min(680px, calc(var(--app-vh, 1vh) * 100 - 144px));
  min-height: 420px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 243, 214, 0.12);
  border-radius: 8px;
  color: var(--muted);
  background: #080808;
}

.game-frame iframe,
.game-frame canvas,
.game-frame object,
.game-frame embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: 360px;
  border: 1px solid rgba(255, 184, 0, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(18, 18, 18, 0.88);
  color: var(--text);
  box-shadow: var(--glow);
  backdrop-filter: blur(14px);
}

@keyframes particles-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-120px, -180px, 0); }
}

@keyframes particles-rise {
  from { background-position: 0 0; }
  to { background-position: 72px -240px; }
}

@keyframes light-sweep {
  0%, 100% { background-position: -160% 0, 0 0, 0 0; }
  45%, 55% { background-position: 160% 0, 0 0, 0 0; }
}

@keyframes hero-scan {
  0%, 100% { opacity: 0.25; transform: translateX(-8%); }
  50% { opacity: 0.74; transform: translateX(8%); }
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) skewX(-6deg); }
  50% { transform: translateY(-14px) skewX(-6deg); }
}

@keyframes card-sheen {
  0%, 100% { background-position: -140% 0; }
  52% { background-position: 160% 0; }
}

@keyframes button-sheen {
  0%, 100% { background-position: -130% 0; }
  45% { background-position: 160% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 860px) {
  .topbar {
    padding: 0 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand [data-site="brandName"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account {
    flex: 1;
    justify-content: flex-end;
  }

  .balance {
    min-width: 74px;
    padding: 8px 10px;
  }

  .btn.small {
    max-width: min(190px, 44vw);
  }

  #logoutBtn {
    max-width: 96px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero::before {
    top: 80px;
    right: -120px;
    width: 440px;
    height: 500px;
    opacity: 0.44;
  }

  .game-card,
  .contact-grid,
  .checkout-layout,
  .checkout-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .game-card .game-art {
    width: 100%;
  }

  .checkout-form {
    padding: 22px;
  }

  .card-preview {
    min-height: 150px;
  }

  .game-panel {
    width: min(760px, calc(100vw - 20px));
    max-height: calc(var(--app-vh, 1vh) * 100 - 16px);
    padding: 14px;
  }

  .game-frame {
    height: calc(var(--app-vh, 1vh) * 100 - 126px);
    min-height: 360px;
  }

  .tier-games,
  .packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-main {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 28px;
  }

  .payment-badges {
    grid-template-columns: repeat(auto-fit, minmax(64px, 72px));
    gap: 10px;
  }
}

@media (max-width: 980px) {
  .custom-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  }

  .custom-card .amount-field {
    justify-self: stretch;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .brand [data-site="brandName"] {
    max-width: 72px;
  }

  .balance {
    min-width: 64px;
    font-size: 13px;
  }

  .btn.small {
    max-width: 112px;
    padding: 8px 10px;
  }

  #logoutBtn {
    max-width: 82px;
  }

  .hero-content {
    padding: 92px 0 84px;
  }

  .payment-badges {
    grid-template-columns: repeat(3, 72px);
    gap: 10px;
  }

  .custom-card {
    grid-template-columns: 1fr;
  }

  .checkout-summary,
  .checkout-form {
    border-radius: 6px;
  }

  .card-preview {
    gap: 28px;
    min-height: 142px;
    padding: 18px;
  }

  .card-preview strong {
    font-size: 18px;
  }

  .game-modal {
    align-items: stretch;
    padding: 0;
  }

  .game-panel {
    width: 100vw;
    max-height: calc(var(--app-vh, 1vh) * 100);
    min-height: calc(var(--app-vh, 1vh) * 100);
    border-width: 0;
    border-radius: 0;
    padding: 12px;
  }

  .game-modal-head {
    padding-right: 50px;
  }

  .game-modal-head h2 {
    font-size: 20px;
  }

  .game-frame {
    height: calc(var(--app-vh, 1vh) * 100 - 92px);
    min-height: 0;
    border-radius: 6px;
  }

  .game-close {
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
  }

  .game-close span {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }

  .tier-games,
  .packages {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }
}
