@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #111113;
  --surface: #1b1b1e;
  --surface-2: #222226;
  --surface-3: #29292e;
  --input: #151517;
  --border: rgba(255,255,255,.075);
  --text: #f5f5f7;
  --muted: #92929c;
  --accent: #a78bfa;
  --accent-strong: #8b5cf6;
  --accent-soft: rgba(167,139,250,.13);
  --success: #55d69a;
  --danger: #ff647c;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.container {
  width: min(1740px, calc(100% - 64px));
  margin: 0 auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: rgba(17,17,19,.88);
  border-bottom: 1px solid rgba(255,255,255,.045);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.logo, .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1.1px;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #a78bfa, #7045d8);
  box-shadow: 0 5px 18px rgba(139,92,246,.25);
  font-size: 19px;
  font-weight: 800;
}

.logo-accent, .footer-logo span {
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-nav a {
  color: #b7b7c0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}

.header-nav a:hover,
.header-support:hover {
  color: #fff;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b7b7c0;
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(85,214,154,.5);
}

.header-support {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dedee4;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}

.header-support svg {
  width: 15px;
  height: 15px;
}

/* PAGE HEADING */

.shop-main {
  min-height: calc(100vh - 150px);
  padding: 38px 0 70px;
}

.shop-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.shop-heading h1 {
  margin: 0;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.15;
  letter-spacing: -1.7px;
  font-weight: 800;
}

.shop-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.shop-heading-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  color: #c5c5ce;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* MAIN LAYOUT */

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.games-sidebar,
.purchase-workspace,
.checkout-card,
.checkout-help {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.games-sidebar {
  padding: 24px;
  grid-column: 1;
}

.panel-heading,
.workspace-top,
.checkout-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-heading h2,
.workspace-top h2,
.checkout-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.5px;
}

.panel-count {
  padding: 7px 10px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 800;
}

/* GAME CARDS */

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

.game-btn {
  position: relative;
  min-width: 0;
  min-height: 175px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(167,139,250,.24), transparent 55%),
    linear-gradient(145deg, #303039, #222227 65%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.game-btn:nth-child(3n + 2) {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(74,135,190,.25), transparent 55%),
    linear-gradient(145deg, #2a3039, #202126 65%);
}

.game-btn:nth-child(3n + 3) {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(190,112,95,.22), transparent 55%),
    linear-gradient(145deg, #382d30, #242124 65%);
}

.game-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(167,139,250,.48);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.game-btn.active {
  border-color: var(--accent);
  background:
    radial-gradient(ellipse at 85% 15%, rgba(167,139,250,.3), transparent 55%),
    linear-gradient(145deg, #373044, #242128 70%);
  box-shadow: inset 0 0 0 1px rgba(167,139,250,.25), 0 8px 24px rgba(0,0,0,.16);
}

.game-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 17px;
  background: rgba(12,12,15,.34);
}

.game-logo {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.game-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.sidebar-note {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sidebar-note a {
  color: #c4b5fd;
  font-weight: 700;
  text-decoration: none;
}

.loading-text {
  grid-column: 1 / -1;
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
}

/* WORKSPACE */

.purchase-workspace {
  padding: 25px;
}

.workspace-top {
  margin-bottom: 22px;
}

.secure-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85,214,154,.15);
  border-radius: 12px;
  background: rgba(85,214,154,.07);
  color: var(--success);
}

.secure-mark svg {
  width: 22px;
  height: 22px;
}

.form-progress {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
}

.progress-line {
  height: 4px;
  flex: 1;
  border-radius: 5px;
  background: #35353b;
}

.progress-line.active {
  background: var(--accent-strong);
}

.form-card {
  min-width: 0;
}

.form-step {
  min-width: 0;
  animation: stepAppear .28s ease both;
}

@keyframes stepAppear {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.empty-selection {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
  text-align: center;
}

.empty-selection-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: #c4b5fd;
}

.empty-selection-icon svg {
  width: 28px;
  height: 28px;
}

.step-label {
  display: block;
  margin: 0 0 17px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.empty-selection .step-label {
  margin-bottom: 7px;
  font-size: 20px;
}

.selection-hint {
  max-width: 390px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.step-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 23px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aaaab4;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.step-back:hover {
  color: #fff;
  transform: translateX(-3px);
}

.step-back svg {
  width: 17px;
  height: 17px;
}

/* DENOMINATIONS */

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

.denom-btn {
  min-width: 0;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.denom-btn:hover {
  border-color: rgba(167,139,250,.45);
  transform: translateY(-2px);
}

.denom-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(167,139,250,.14);
}

.denom-name {
  font-size: 13px;
  font-weight: 800;
}

.denom-price {
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.game-region-note {
  grid-column: 1 / -1;
  margin-top: 5px;
}

/* FIELDS */

#fieldsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  min-width: 0;
  margin-bottom: 15px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #bcbcc5;
  font-size: 12px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 53px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  outline: none;
  background: var(--input);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input::placeholder {
  color: #777780;
  font-weight: 500;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(167,139,250,.1);
}

.field-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.payment-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.payment-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--success);
}

/* SUMMARIES */

.selection-summary {
  display: none;
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.selection-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 5px 0;
  font-size: 11px;
}

.selection-summary-label {
  color: var(--muted);
}

.selection-summary-value {
  color: #e8e8ed;
  text-align: right;
}

/* CHECKOUT */

.checkout-sidebar {
  display: none;
  min-width: 0;
  position: sticky;
  top: 94px;
}

.checkout-card {
  padding: 22px;
}

.checkout-card-heading {
  margin-bottom: 17px;
}

.checkout-live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
}

.checkout-live .status-dot {
  width: 6px;
  height: 6px;
}

.checkout-card h2 {
  margin-bottom: 17px;
  font-size: 20px;
}

.checkout-game {
  padding: 13px 14px;
  border: 1px solid rgba(167,139,250,.16);
  border-radius: 11px;
  background: var(--accent-soft);
  color: #d7ccff;
  font-size: 13px;
  font-weight: 800;
}

.checkout-details {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.checkout-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 11px;
}

.checkout-row span {
  color: var(--muted);
}

.checkout-row strong {
  max-width: 60%;
  color: #e8e8ed;
  text-align: right;
  overflow-wrap: anywhere;
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.checkout-total span {
  color: #b9b9c2;
  font-size: 12px;
  font-weight: 700;
}

.checkout-total strong {
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.8px;
  white-space: nowrap;
}

.btn-pay,
.btn-continue {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 17px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(110deg, #a78bfa, #8659e8);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(139,92,246,.18);
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.btn-pay:hover:not(:disabled),
.btn-continue:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.09);
}

.btn-pay:disabled,
.btn-continue:disabled {
  opacity: .38;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-pay svg,
.btn-continue svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.pay-button-price {
  white-space: nowrap;
}

.btn-continue {
  margin-top: 18px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  box-shadow: none;
}

.checkout-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.checkout-footnote svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--success);
}

.checkout-help {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 15px;
}

.checkout-help-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--accent-soft);
  color: #c4b5fd;
  font-weight: 800;
}

.checkout-help strong,
.checkout-help a {
  display: block;
  font-size: 11px;
}

.checkout-help strong {
  margin-bottom: 4px;
}

.checkout-help a {
  color: #bba8ff;
  text-decoration: none;
}

/* SELECTED STATE */

body.has-selection .shop-heading {
  margin-bottom: 22px;
}

body.has-selection .shop-layout {
  grid-template-columns: minmax(190px, .78fr) minmax(0, 2.1fr) minmax(270px, .95fr);
  gap: 16px;
}

body.has-selection .games-sidebar {
  grid-column: auto;
  position: sticky;
  top: 94px;
  padding: 17px;
}

body.has-selection .panel-heading {
  margin-bottom: 15px;
}

body.has-selection .panel-heading h2 {
  font-size: 16px;
}

body.has-selection .games-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

body.has-selection .game-btn {
  min-height: 61px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 11px;
}

body.has-selection .game-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 11px;
}

body.has-selection .game-logo {
  width: 29px;
  height: 29px;
}

body.has-selection .game-name {
  font-size: 12px;
}

body.has-selection .purchase-workspace {
  grid-column: auto;
}

body.has-selection .checkout-sidebar {
  display: block;
}

body.has-selection .sidebar-note {
  font-size: 10px;
}

/* ACTIVE ORDER */

#activeOrderBanner {
  margin-top: 17px;
}

.active-order-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(167,139,250,.2);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(167,139,250,.11), rgba(255,255,255,.025));
}

.active-order-banner-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--accent-soft);
  color: #c4b5fd;
}

.active-order-banner-body {
  min-width: 0;
  flex: 1;
}

.active-order-eyebrow {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.active-order-banner-title {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 800;
}

.active-order-banner-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.active-order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-order-banner-btn,
.active-order-details {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: #e9e9ee;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

/* ORDER HISTORY */

.my-orders {
  padding: 55px 0 30px;
}

.my-orders-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.8px;
}

.my-orders-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orders-page-button {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.orders-page-button:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.orders-page-button svg {
  width: 17px;
  height: 17px;
}

.my-orders-carousel {
  overflow: hidden;
}

.my-orders-list {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #49434f transparent;
}

.order-card {
  min-width: 245px;
  max-width: 290px;
  flex: 0 0 270px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}

.order-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167,139,250,.3);
}

.order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}

.order-card-status {
  padding: 5px 8px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: #c4b5fd;
  font-size: 9px;
  font-weight: 800;
}

.order-card-game {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
}

.order-game-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-3);
}

.order-card-denom {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.order-card-price {
  margin-top: 5px;
  font-size: 19px;
  font-weight: 800;
}

.order-card-actions {
  display: flex;
  gap: 7px;
  margin-top: 15px;
}

.order-card-link,
.order-card-details,
.order-card-remove {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: #dedee5;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* FOOTER */

.footer {
  margin-top: 35px;
  border-top: 1px solid var(--border);
  background: #0e0e10;
}

.footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  font-size: 17px;
}

.footer-copy {
  color: #777780;
  font-size: 11px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: #92929c;
  font-size: 11px;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* MODAL */

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.order-modal.is-open {
  display: flex;
  animation: modalFade .2s ease;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(8px);
}

.order-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  height: min(760px, 90vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 25px 100px rgba(0,0,0,.5);
}

.order-modal-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 800;
}

.order-modal-close {
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 9px;
  background: var(--surface-3);
  color: #fff;
  font-size: 23px;
  cursor: pointer;
}

.order-modal-frame {
  width: 100%;
  flex: 1;
  border: 0;
  background: #fff;
}

body.order-modal-open {
  overflow: hidden;
}

/* ERRORS */

.form-error {
  margin-top: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(255,100,124,.2);
  border-radius: 10px;
  background: rgba(255,100,124,.08);
  color: #ff9aa9;
  font-size: 12px;
  line-height: 1.5;
}

/* RESPONSIVE */

@media (min-width: 1500px) {
  .container {
    width: min(1840px, calc(100% - 88px));
  }

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

  body.has-selection .shop-layout {
    grid-template-columns: minmax(210px, .78fr) minmax(0, 2.2fr) minmax(290px, .95fr);
  }
}

@media (max-width: 1150px) {
  .container {
    width: calc(100% - 40px);
  }

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

  body.has-selection .shop-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  body.has-selection .checkout-sidebar {
    position: static;
    grid-column: 2;
  }

  body.has-selection .games-sidebar {
    grid-row: 1 / span 2;
  }
}

@media (max-width: 760px) {
  .header {
    height: 65px;
  }

  .header-inner {
    gap: 15px;
  }

  .logo {
    font-size: 19px;
  }

  .logo-mark {
    width: 31px;
    height: 31px;
  }

  .header-nav {
    display: none;
  }

  .header-status {
    display: none;
  }

  .header-right {
    gap: 0;
  }

  .container {
    width: calc(100% - 28px);
  }

  .shop-main {
    padding-top: 25px;
  }

  .shop-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .shop-heading h1 {
    font-size: 29px;
  }

  .shop-heading p {
    font-size: 12px;
    line-height: 1.6;
  }

  .shop-heading-badge {
    padding: 8px 11px;
    font-size: 10px;
  }

  .games-sidebar,
  .purchase-workspace {
    padding: 17px;
  }

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

  .game-btn {
    min-height: 135px;
    padding: 13px;
  }

  .game-mark {
    width: 48px;
    height: 48px;
  }

  .game-logo {
    width: 34px;
    height: 34px;
  }

  .game-name {
    font-size: 12px;
  }

  body.has-selection .shop-layout {
    display: flex;
    flex-direction: column;
  }

  body.has-selection .games-sidebar,
  body.has-selection .purchase-workspace,
  body.has-selection .checkout-sidebar {
    width: 100%;
    position: static;
  }

  body.has-selection .games-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
  }

  body.has-selection .games-grid::-webkit-scrollbar {
    display: none;
  }

  body.has-selection .game-btn {
    min-width: 130px;
    min-height: 54px;
    flex: 0 0 auto;
  }

  body.has-selection .game-mark {
    width: 35px;
    height: 35px;
  }

  body.has-selection .game-logo {
    width: 25px;
    height: 25px;
  }

  .purchase-workspace {
    width: 100%;
  }

  .checkout-sidebar {
    width: 100%;
  }

  .checkout-card {
    padding: 18px;
  }

  #fieldsGrid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .denoms-grid {
    grid-template-columns: 1fr;
  }

  .empty-selection {
    min-height: 190px;
    padding: 22px 15px;
  }

  .active-order-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .active-order-actions {
    width: 100%;
    padding-left: 56px;
  }

  .my-orders {
    padding-top: 38px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 22px);
  }

  .header-support {
    font-size: 11px;
  }

  .games-sidebar,
  .purchase-workspace {
    padding: 14px;
  }

  .game-btn {
    min-height: 120px;
  }

  .workspace-top h2 {
    font-size: 17px;
  }

  .checkout-total strong {
    font-size: 22px;
  }

  .order-modal {
    padding: 8px;
  }

  .order-modal-dialog {
    height: 94vh;
    border-radius: 13px;
  }
}

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


/* =========================================================
   LUMINARY SHOP — НОВАЯ КОМПОНОВКА
   ========================================================= */

.shop-main {
  padding-top: 30px;
}

.shop-heading {
  margin-bottom: 30px;
}

.shop-heading h1 {
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -1.8px;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "workspace checkout"
    "catalog catalog";
  align-items: start;
  gap: 22px;
}

.games-sidebar {
  grid-area: catalog;
  min-width: 0;
  padding: 25px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(35,35,43,.96), rgba(24,24,30,.96));
}

.purchase-workspace {
  grid-area: workspace;
  min-width: 0;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: linear-gradient(145deg, #24242c, #1d1d24);
}

.checkout-sidebar {
  grid-area: checkout;
  display: block;
  position: sticky;
  top: 24px;
  min-width: 0;
}

.checkout-card {
  padding: 24px;
  border: 1px solid rgba(167,139,250,.17);
  border-radius: 20px;
  background: linear-gradient(155deg, #292631, #201f27);
}

.checkout-help {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px;
  background: #222229;
}

.workspace-top {
  margin-bottom: 24px;
}

.workspace-top h2 {
  font-size: 23px;
}

.form-progress {
  display: none;
}

.form-card {
  min-height: 120px;
}

.step-label {
  display: block;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 800;
}

#denomsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#denomsGrid .steam-input-field {
  min-width: 0;
}

.steam-input-field label {
  display: block;
  margin-bottom: 10px;
  color: #e8e5ef;
  font-size: 13px;
  font-weight: 700;
}

.steam-input-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  outline: none;
  background: #17171d;
  color: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}

.steam-input-field input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167,139,250,.12);
}

.steam-input-field .field-hint {
  margin-top: 9px;
}

.games-sidebar .panel-heading {
  margin-bottom: 20px;
}

.games-sidebar .panel-heading h2 {
  font-size: 21px;
}

.games-grid {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 2px 13px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #55505f transparent;
}

.game-btn,
body.has-selection .game-btn {
  flex: 0 0 205px;
  width: 205px;
  min-width: 205px;
  min-height: 155px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(167,139,250,.17), transparent 60%),
    linear-gradient(145deg, #30303a, #222229);
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.game-btn:hover {
  transform: translateY(-3px);
}

.game-btn.active {
  border-color: #a78bfa;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(167,139,250,.25), transparent 60%),
    linear-gradient(145deg, #373143, #24212d);
}

.game-mark,
body.has-selection .game-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 15px;
}

.game-logo,
body.has-selection .game-logo {
  width: 39px;
  height: 39px;
}

.game-name,
body.has-selection .game-name {
  font-size: 14px;
}

.sidebar-note {
  margin-top: 15px;
}

.checkout-game {
  padding: 15px;
  border-radius: 13px;
  font-size: 14px;
}

.checkout-row {
  font-size: 12px;
}

.checkout-total {
  padding: 21px 0;
}

.checkout-total strong {
  font-size: 27px;
}

body.has-selection .shop-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
}

body.has-selection.is-steam .shop-layout {
  grid-template-areas:
    "workspace checkout"
    "catalog catalog";
}

body.has-selection:not(.is-steam) .shop-layout {
  grid-template-areas:
    "catalog catalog"
    "workspace checkout";
}

body.has-selection .games-sidebar {
  grid-area: catalog;
  position: static;
  padding: 25px;
}

body.has-selection .games-grid {
  display: flex;
  grid-template-columns: none;
  gap: 15px;
}

body.has-selection .purchase-workspace {
  grid-area: workspace;
  padding: 30px;
}

body.has-selection .checkout-sidebar {
  grid-area: checkout;
  display: block;
  position: sticky;
  top: 24px;
}

body.has-selection .sidebar-note {
  font-size: 12px;
}

#activeOrderBanner {
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .shop-layout,
  body.has-selection .shop-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 15px;
  }

  .checkout-card {
    padding: 19px;
  }

  .purchase-workspace,
  body.has-selection .purchase-workspace {
    padding: 22px;
  }
}

@media (max-width: 760px) {
  .shop-layout,
  body.has-selection .shop-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .purchase-workspace,
  body.has-selection .purchase-workspace {
    order: 1;
    width: 100%;
    padding: 21px;
  }

  .checkout-sidebar,
  body.has-selection .checkout-sidebar {
    order: 2;
    display: block;
    position: static;
    width: 100%;
  }

  .games-sidebar,
  body.has-selection .games-sidebar {
    order: 3;
    width: 100%;
    padding: 20px;
  }

  body.has-selection:not(.is-steam) .games-sidebar {
    order: 0;
  }

  .games-grid,
  body.has-selection .games-grid {
    display: flex;
    overflow-x: auto;
    gap: 11px;
  }

  .game-btn,
  body.has-selection .game-btn {
    flex-basis: 165px;
    width: 165px;
    min-width: 165px;
    min-height: 135px;
  }

  #denomsGrid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .shop-heading {
    margin-bottom: 22px;
  }
}

@media (max-width: 420px) {
  .shop-main {
    padding-top: 20px;
  }

  .purchase-workspace,
  body.has-selection .purchase-workspace {
    padding: 17px;
  }

  .games-sidebar,
  body.has-selection .games-sidebar {
    padding: 16px;
  }

  .workspace-top h2 {
    font-size: 19px;
  }

  .steam-input-field input {
    min-height: 54px;
  }

  .game-btn,
  body.has-selection .game-btn {
    flex-basis: 150px;
    width: 150px;
    min-width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .games-grid {
    scroll-behavior: auto;
  }

  .game-btn {
    transition: none;
  }
}



/* ===== LUMINARY SHOP — CLEAN STOREFRONT LAYOUT ===== */

.shop-main {
  width: 100%;
  padding: 34px 0 56px;
}

.shop-main > .container {
  width: min(100% - 48px, 1440px);
  max-width: 1440px;
  margin-inline: auto;
}

.shop-heading {
  display: flex !important;
}

.shop-layout,
body.has-selection .shop-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 30px;
  width: 100%;
  max-width: none;
}

.purchase-workspace,
body.has-selection .purchase-workspace {
  order: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 0;
}

.workspace-top .section-eyebrow,
.workspace-top .secure-mark,
.form-progress {
  display: none !important;
}

.workspace-top h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.8px;
}

.form-card {
  width: 100%;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
  background: linear-gradient(145deg, #24232b, #1d1c23);
  box-shadow: 0 14px 40px rgba(0,0,0,.13);
}

.form-step {
  width: 100%;
  min-width: 0;
}

.form-step[style*="display:none"] {
  display: none !important;
}

.step-label {
  display: block;
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 750;
}

.step-back {
  margin-bottom: 20px;
}

.purchase-workspace.steam-home-mode #denomStep > .step-back,
.purchase-workspace.steam-home-mode #denomStep > .step-label,
.purchase-workspace.steam-home-mode #fieldsStep > .step-back,
.purchase-workspace.steam-home-mode #fieldsStep > .step-label {
  display: none !important;
}

.purchase-workspace.steam-home-mode #denomStep {
  display: block !important;
}

.purchase-workspace.steam-home-mode #denomsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.purchase-workspace.steam-home-mode .steam-input-field {
  min-width: 0;
  margin: 0;
}

.purchase-workspace.steam-home-mode .steam-input-field label,
.field label {
  display: block;
  margin: 0 0 9px;
  color: var(--text-muted, #aaa);
  font-size: 13px;
  font-weight: 600;
}

.purchase-workspace.steam-home-mode .steam-input-field input,
.field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  outline: none;
  background: #19181f;
  color: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.purchase-workspace.steam-home-mode .steam-input-field input:focus,
.field input:focus {
  border-color: rgba(167,139,250,.8);
  box-shadow: 0 0 0 3px rgba(167,139,250,.12);
}

.purchase-workspace.steam-home-mode .steam-input-field .field-hint {
  margin-top: 8px;
  color: var(--text-muted, #999);
  font-size: 12px;
}

.checkout-review-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  border-radius: 13px;
  font-weight: 750;
  transition: transform .2s ease, opacity .2s ease, filter .2s ease;
}

.checkout-review-btn:not(:disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.checkout-review-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.checkout-review-btn svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

#fieldsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

#fieldsGrid .field {
  min-width: 0;
  margin: 0;
}

.payment-note {
  margin-top: 18px;
}

#activeOrderBanner {
  width: 100%;
  margin-top: 20px;
}

/* Каталог */
.games-sidebar,
body.has-selection .games-sidebar {
  order: 1;
  width: 100%;
  min-width: 0;
  padding: 25px 28px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
  background: #222128;
  box-shadow: none;
}

.games-sidebar .panel-heading {
  margin: 0 0 20px;
}

.games-sidebar .panel-heading .section-eyebrow,
.games-sidebar .panel-count {
  display: none;
}

.games-sidebar .panel-heading h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
}

.games-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
}

.games-grid,
body.has-selection .games-grid {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 3px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.games-grid::-webkit-scrollbar,
body.has-selection .games-grid::-webkit-scrollbar {
  display: none;
}

.game-btn,
body.has-selection .game-btn,
.game-card {
  position: relative;
  display: flex;
  flex: 0 0 230px;
  width: 230px;
  min-width: 230px;
  min-height: 145px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(166,112,255,.3), transparent 58%),
    linear-gradient(135deg, #393344, #222128 75%);
  scroll-snap-align: start;
  transition: transform .22s ease, border-color .22s ease, filter .22s ease;
}

.game-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.055) 50%, transparent 75%);
}

.game-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.game-btn.active {
  border-color: #a78bfa;
  box-shadow: inset 0 0 0 1px rgba(167,139,250,.25);
}

.game-mark,
.game-logo {
  display: none !important;
}

.game-name {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
}

.game-card-action {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 600;
}

.game-card-pubg_mobile,
.game-card-pubg_pc {
  background: radial-gradient(ellipse at 80% 10%, rgba(222,143,57,.38), transparent 55%), linear-gradient(135deg, #46352b, #202020 78%);
}

.game-card-freefire {
  background: radial-gradient(ellipse at 80% 10%, rgba(239,82,44,.4), transparent 55%), linear-gradient(135deg, #4a2a27, #202020 78%);
}

.game-card-mlbb {
  background: radial-gradient(ellipse at 80% 10%, rgba(71,130,255,.4), transparent 55%), linear-gradient(135deg, #293b55, #202020 78%);
}

.game-card-roblox {
  background: radial-gradient(ellipse at 80% 10%, rgba(255,255,255,.2), transparent 55%), linear-gradient(135deg, #393939, #202020 78%);
}

.game-card-valorant {
  background: radial-gradient(ellipse at 80% 10%, rgba(255,55,83,.38), transparent 55%), linear-gradient(135deg, #49262e, #202020 78%);
}

.game-card-fortnite {
  background: radial-gradient(ellipse at 80% 10%, rgba(69,160,255,.4), transparent 55%), linear-gradient(135deg, #283c5a, #202020 78%);
}

.game-card-steam {
  background: radial-gradient(ellipse at 80% 10%, rgba(88,151,204,.38), transparent 55%), linear-gradient(135deg, #263c50, #202020 78%);
}

.games-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  background: rgba(25,25,25,.9);
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease, transform .2s ease;
}

.games-arrow svg {
  width: 21px;
  height: 21px;
}

.games-arrow:hover:not(:disabled) {
  background: #8b5cf6;
  transform: translateY(-50%) scale(1.06);
}

.games-arrow:disabled {
  opacity: .25;
  cursor: default;
}

.games-arrow-prev {
  left: -14px;
}

.games-arrow-next {
  right: -14px;
}

.sidebar-note {
  display: none;
}

/* Окно подтверждения заказа */
.checkout-sidebar,
body.has-selection .checkout-sidebar {
  display: block;
  position: static;
  width: 100%;
  min-width: 0;
}

.checkout-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.checkout-modal.is-open {
  display: flex;
  animation: checkoutFadeIn .2s ease both;
}

.checkout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,7,10,.78);
  backdrop-filter: blur(9px);
}

.checkout-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: linear-gradient(145deg, #292731, #1c1b22);
  box-shadow: 0 28px 90px rgba(0,0,0,.48);
  animation: checkoutDialogIn .24s ease both;
}

.checkout-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.05);
  cursor: pointer;
}

.checkout-modal-close svg {
  width: 19px;
  height: 19px;
}

.checkout-modal-heading {
  margin: 0 42px 24px 0;
}

.checkout-modal-heading h2 {
  margin: 7px 0;
  font-size: 27px;
  font-weight: 800;
}

.checkout-modal-heading p {
  margin: 0;
  color: var(--text-muted, #aaa);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-modal .checkout-card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.checkout-modal .checkout-card h2 {
  display: none;
}

.checkout-modal .checkout-help {
  display: none;
}

.checkout-modal .btn-pay {
  width: 100%;
  min-height: 56px;
}

body.checkout-modal-open {
  overflow: hidden;
}

@keyframes checkoutFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes checkoutDialogIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* История заказов */
.my-orders {
  width: 100%;
  margin: 42px auto 0;
}

.my-orders > .container {
  width: min(100% - 48px, 1440px);
  max-width: 1440px;
  margin-inline: auto;
}

.my-orders-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.my-orders-list {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 3px 14px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.my-orders-list::-webkit-scrollbar {
  display: none;
}

.order-card {
  position: relative;
  display: flex;
  flex: 0 0 285px;
  width: 285px;
  min-width: 285px;
  min-height: 230px;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 19px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 17px;
  background: #24232b;
  overflow: hidden;
}

.order-card-latest {
  border-color: rgba(167,139,250,.45);
}

.order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
}

.order-card-game {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 750;
}

.order-card-game > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-game-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
}

.order-game-icon svg {
  width: 20px;
  height: 20px;
}

.order-card-denom {
  color: var(--text-muted, #aaa);
  font-size: 13px;
}

.order-card-price {
  font-size: 23px;
  font-weight: 850;
}

.order-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-right: 20px;
}

.order-card-actions button,
.order-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.06);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.order-card-remove {
  position: absolute;
  top: 13px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(167,139,250,.38);
  border-radius: 10px;
  color: rgba(224,213,255,.82);
  background: rgba(139,92,246,.10);
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease,
              color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.order-card-remove:hover {
  border-color: rgba(196,181,253,.85);
  color: #fff;
  background: rgba(139,92,246,.25);
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(139,92,246,.10);
}

.order-card-remove:active {
  transform: scale(.94);
}

.order-card-remove:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}

.order-card-remove svg {
  width: 17px;
  height: 17px;
}

.order-card-remove svg {
  width: 17px;
  height: 17px;
}

#myOrdersPagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.orders-page-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  color: #fff;
  background: #24232b;
  cursor: pointer;
}

.orders-page-button:disabled {
  opacity: .3;
  cursor: default;
}

.order-card-status {
  max-width: calc(100% - 35px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .shop-main {
    padding-top: 22px;
  }

  .shop-main > .container,
  .my-orders > .container {
    width: min(100% - 28px, 1440px);
  }

  .form-card {
    padding: 20px;
    border-radius: 17px;
  }

  .purchase-workspace.steam-home-mode #denomsGrid,
  #fieldsGrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .games-sidebar,
  body.has-selection .games-sidebar {
    padding: 19px 17px;
    border-radius: 17px;
  }

  .game-btn,
  body.has-selection .game-btn,
  .game-card {
    flex-basis: 195px;
    width: 195px;
    min-width: 195px;
    min-height: 135px;
    padding: 17px;
  }

  .game-name {
    font-size: 19px;
  }

  .games-arrow {
    width: 36px;
    height: 36px;
  }

  .games-arrow-prev {
    left: -10px;
  }

  .games-arrow-next {
    right: -10px;
  }

  .checkout-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .checkout-modal-dialog {
    width: 100%;
    max-height: 88vh;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .checkout-modal-heading h2 {
    font-size: 24px;
  }

  .order-card {
    flex-basis: 265px;
    width: 265px;
    min-width: 265px;
  }

  .my-orders {
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .games-grid,
  .my-orders-list {
    scroll-behavior: auto;
  }

  .game-btn,
  .checkout-modal-dialog {
    transition: none;
    animation: none;
  }
}

/* ===== LUMINARY — SUBTLE GRID BACKGROUND ===== */

body.site-page {
  position: relative;
  isolation: isolate;
}

body.site-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(126, 87, 194, .13),
      transparent 55%
    ),
    linear-gradient(rgba(177, 156, 217, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 156, 217, .045) 1px, transparent 1px);

  background-size:
    auto,
    42px 42px,
    42px 42px;

  background-position:
    center top,
    center center,
    center center;

  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.9),
    rgba(0,0,0,.45) 65%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.9),
    rgba(0,0,0,.45) 65%,
    transparent 100%
  );
}


/* ===== LUMINARY SHOP — LAYOUT REFRESH ===== */

/* Единая ширина шапки, контента и подвала */
.header-inner,
.footer-inner,
.shop-main > .container,
.my-orders > .container {
  width: min(100% - 48px, 1440px);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* Убираем странный квадратный знак логотипа */
.logo-mark {
  display: none !important;
}

.logo {
  gap: 0;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -.8px;
}

.logo-accent,
.footer-logo span {
  color: #a78bfa;
}

.footer-logo {
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.7px;
}

/* Каталог всегда сверху, оформление под ним */
.shop-layout,
body.has-selection .shop-layout,
body.has-selection.is-steam .shop-layout,
body.has-selection:not(.is-steam) .shop-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 30px !important;
}

.games-sidebar,
body.has-selection .games-sidebar {
  order: 1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.purchase-workspace {
  order: 2 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body.has-selection .shop-heading {
  display: flex !important;
}

/* Карточки игр 240 × 320 */
.games-grid,
body.has-selection .games-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px !important;
}

.game-btn,
body.has-selection .game-btn,
.game-card {
  position: relative;
  display: flex !important;
  flex: 0 0 240px !important;
  width: 240px !important;
  min-width: 240px !important;
  height: 320px !important;
  min-height: 320px !important;
  max-height: 320px !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  padding: 23px !important;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 20px !important;
  animation: luminaryCardIn .45s ease both;
}

.game-name {
  position: relative;
  z-index: 1;
  font-size: 24px !important;
  line-height: 1.15;
  font-weight: 850;
}

.game-card-action {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(15,14,20,.48);
  color: #e8ddff;
  font-size: 13px;
  font-weight: 700;
}

.game-btn:nth-child(n) {
  animation-delay: 0s;
}

.games-grid::-webkit-scrollbar,
.my-orders-list::-webkit-scrollbar {
  display: none;
}

/* Подтверждение — фирменная кнопка, доступная для нажатия */
.checkout-review-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  border: 1px solid rgba(190,160,255,.28) !important;
  border-radius: 13px !important;
  background: linear-gradient(110deg, #7650cf, #9168e8) !important;
  color: #fff !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 25px rgba(126,87,194,.2);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.checkout-review-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.09);
  box-shadow: 0 12px 30px rgba(126,87,194,.3);
}

.checkout-review-btn:disabled {
  opacity: 1 !important;
}

.checkout-review-btn svg {
  width: 20px;
  height: 20px;
}

/* Информация о заказе — без повторяющихся сводок */
#denomSummary,
#fieldsSummary,
.selection-summary {
  display: none !important;
}

.checkout-modal-dialog {
  width: min(100%, 560px);
}

.checkout-modal .checkout-card {
  padding: 4px 0 0 !important;
}

.checkout-game {
  margin-bottom: 16px;
  padding: 15px 17px;
  border: 1px solid rgba(167,139,250,.18);
  border-radius: 13px;
  background: rgba(167,139,250,.07);
  font-weight: 800;
}

.checkout-details {
  display: grid;
  gap: 13px;
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.checkout-row strong {
  max-width: 65%;
  text-align: right;
  overflow-wrap: anywhere;
}

.checkout-total {
  padding: 20px 0;
}

/* Этапы оформления */
.form-progress {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  margin: 0 0 18px !important;
  counter-reset: step;
}

.progress-line {
  position: relative;
  display: flex !important;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  height: 34px !important;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.045) !important;
  color: #aaa5b7;
}

.progress-line::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 12px;
  font-weight: 800;
}

.progress-line.active {
  border-color: rgba(167,139,250,.45) !important;
  background: rgba(139,92,246,.2) !important;
  color: #d8c6ff !important;
  box-shadow: inset 0 0 18px rgba(139,92,246,.08);
}

/* Иконки заказов */
.order-game-icon {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  border: 1px solid rgba(167,139,250,.2);
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(139,92,246,.24), rgba(139,92,246,.07)) !important;
  color: #c9b2ff;
}

.order-game-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.order-card {
  border-color: rgba(167,139,250,.12);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  animation: luminaryCardIn .4s ease both;
}

.order-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167,139,250,.4);
  background: #292631;
}

.order-card-actions button,
.order-card-actions a {
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.order-card-actions button:hover,
.order-card-actions a:hover {
  transform: translateY(-1px);
  border-color: rgba(167,139,250,.45);
  background: rgba(139,92,246,.2);
}

/* Плавное появление элементов */
@keyframes luminaryCardIn {
  from {
    opacity: 0;
    transform: translateY(13px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.games-sidebar,
.purchase-workspace,
.my-orders-heading {
  animation: luminaryCardIn .45s ease both;
}

.form-card {
  animation: luminaryCardIn .4s ease both;
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .shop-main > .container,
  .my-orders > .container {
    width: calc(100% - 28px) !important;
  }

  .game-btn,
  body.has-selection .game-btn,
  .game-card {
    flex-basis: 210px !important;
    width: 210px !important;
    min-width: 210px !important;
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
  }

  .shop-layout,
  body.has-selection .shop-layout {
    gap: 22px !important;
  }

  .header-inner {
    gap: 12px;
  }

  .logo {
    font-size: 19px;
  }

  .footer-inner {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .games-sidebar,
  .purchase-workspace,
  .my-orders-heading,
  .form-card,
  .game-btn,
  .order-card {
    animation: none !important;
  }
}

/* =====================================================
   LUMINARY — HOME + GAME PAGE
   ===================================================== */

/* Главная: сначала Steam, затем каталог */
.shop-layout,
body.has-selection .shop-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 30px !important;
}

.purchase-workspace {
  order: 1 !important;
  width: 100% !important;
  max-width: none !important;
}

.games-sidebar {
  order: 2 !important;
  width: 100% !important;
  max-width: none !important;
}

/* На главной Steam — полноценный первый блок */
body:not(.game-page) .purchase-workspace {
  display: block !important;
}

body:not(.game-page) #backToCatalog {
  display: none !important;
}

body:not(.game-page) #backToGames {
  display: none !important;
}

/* Отдельный экран выбранной игры */
body.game-page .shop-heading {
  display: flex !important;
}

body.game-page .games-sidebar {
  display: none !important;
}

body.game-page .purchase-workspace {
  order: 1 !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 20px auto 60px !important;
  padding: 32px !important;
  border: 1px solid rgba(167,139,250,.16);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(139,92,246,.10), transparent 50%),
    linear-gradient(145deg, #24232d, #1b1a22);
  box-shadow: 0 22px 65px rgba(0,0,0,.2);
  animation: gamePageEnter .35s ease both;
}

body.game-page .catalog-back {
  display: inline-flex !important;
  margin-bottom: 25px;
}

body.game-page .workspace-top {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

body.game-page .workspace-top h2 {
  font-size: clamp(24px, 3vw, 32px);
}

body.game-page .form-card {
  padding: 26px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.game-page #backToGames {
  display: none !important;
}

body.game-page #activeOrderBanner {
  margin-top: 24px;
}

/* Каталог */
.games-sidebar {
  padding: 27px !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  border-radius: 21px !important;
  background: linear-gradient(145deg, rgba(35,34,43,.96), rgba(24,23,30,.97)) !important;
}

.games-grid,
body.has-selection .games-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory;
  padding: 7px 4px 16px !important;
}

.game-btn,
body.has-selection .game-btn,
.game-card {
  position: relative;
  display: flex !important;
  flex: 0 0 240px !important;
  width: 240px !important;
  min-width: 240px !important;
  height: 320px !important;
  min-height: 320px !important;
  max-height: 320px !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 22px !important;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 19px !important;
  text-align: left;
  animation: gamePageEnter .4s ease both;
}

.game-name,
body.has-selection .game-name {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 23px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
}

/* Способ пополнения — подпись, а не кнопка */
.game-card-action {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(224,210,255,.78) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .1px;
}

/* Названия и карточки не обрезаются */
.game-btn .game-name {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* Красивые поля и номиналы */
body.game-page #denomsGrid {
  gap: 14px;
}

body.game-page .denom-card,
body.game-page .denom-item {
  border-radius: 13px;
}

body.game-page .field input,
body.game-page #fieldsGrid input,
body.game-page #fieldsGrid select {
  min-height: 54px;
  border-radius: 12px;
}

body.game-page .checkout-review-btn {
  margin-top: 25px;
}

/* Ошибки только по факту проверки */
.form-error {
  margin-top: 14px;
  padding: 12px 15px;
  border: 1px solid rgba(248,113,113,.22);
  border-radius: 11px;
  background: rgba(248,113,113,.08);
  color: #ffaaaa;
  line-height: 1.5;
}

/* Полноценное оформление заказа */
.checkout-modal-dialog {
  display: block;
  width: min(100%, 560px) !important;
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 30px !important;
  border: 1px solid rgba(167,139,250,.2) !important;
  border-radius: 23px !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(139,92,246,.13), transparent 48%),
    linear-gradient(145deg, #292733, #1c1b23) !important;
  box-shadow: 0 30px 100px rgba(0,0,0,.55) !important;
}

.checkout-modal-heading {
  margin: 0 42px 24px 0 !important;
}

.checkout-modal-heading h2 {
  margin: 7px 0 !important;
  color: #fff;
  font-size: 29px !important;
  letter-spacing: -.7px;
}

.checkout-modal-heading p {
  color: #aaa5b5;
}

.checkout-modal .checkout-card {
  width: 100%;
  padding: 21px !important;
  border: 1px solid rgba(167,139,250,.16) !important;
  border-radius: 17px !important;
  background: rgba(16,15,21,.42) !important;
  box-shadow: none !important;
}

.checkout-modal .checkout-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.checkout-modal .checkout-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(167,139,250,.22);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(139,92,246,.25), rgba(139,92,246,.07));
  color: #d3c0ff;
}

.checkout-modal .checkout-card-head span {
  display: block;
  margin-bottom: 5px;
  color: #aaa5b5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.checkout-modal .checkout-card-head strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.checkout-modal .checkout-card-body {
  display: grid;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.checkout-modal .checkout-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  color: #aaa6b5;
  font-size: 13px;
  line-height: 1.5;
}

.checkout-modal .checkout-row span {
  color: #aaa6b5;
}

.checkout-modal .checkout-row strong {
  max-width: 65%;
  color: #f4f0fa;
  text-align: right;
  overflow-wrap: anywhere;
}

.checkout-modal .checkout-card-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 2px;
  color: #d0cbd9;
  font-size: 14px;
  font-weight: 700;
}

.checkout-modal .checkout-card-total strong {
  color: #fff;
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -.7px;
  white-space: nowrap;
}

.checkout-modal .checkout-help {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(167,139,250,.12);
  border-radius: 13px;
  background: rgba(139,92,246,.055);
  color: #aaa5b5;
  font-size: 12px;
  line-height: 1.5;
}

.checkout-modal .checkout-help-icon {
  flex: 0 0 30px;
}

.checkout-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.checkout-modal-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 53px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, filter .2s ease;
}

.checkout-modal-actions button:hover {
  transform: translateY(-2px);
}

#checkoutCancel {
  flex: 0 0 auto;
  background: rgba(255,255,255,.055);
  color: #d2ceda;
}

#checkoutCancel:hover {
  border-color: rgba(167,139,250,.3);
  background: rgba(255,255,255,.09);
}

#checkoutConfirm {
  flex: 1 1 auto;
  border-color: transparent;
  background: linear-gradient(110deg, #7650cf, #9168e8);
  box-shadow: 0 9px 26px rgba(126,87,194,.2);
}

#checkoutConfirm:hover {
  filter: brightness(1.1);
}

#checkoutConfirm:disabled,
#checkoutCancel:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 600px) {
  .checkout-modal {
    padding: 12px;
  }

  .checkout-modal-dialog {
    padding: 19px !important;
    border-radius: 19px !important;
  }

  .checkout-modal .checkout-card {
    padding: 16px !important;
  }

  .checkout-modal-heading h2 {
    font-size: 25px !important;
  }

  .checkout-modal .checkout-card-total strong {
    font-size: 25px;
  }

  .checkout-modal-actions {
    gap: 9px;
  }

  .checkout-modal-actions button {
    min-height: 49px;
    padding: 11px 13px;
    font-size: 12px;
  }
}

/* Иконки статусов и игр в заказах */
.order-game-icon {
  width: 43px !important;
  height: 43px !important;
  flex: 0 0 43px !important;
  border: 1px solid rgba(167,139,250,.23);
  border-radius: 13px !important;
  background: linear-gradient(145deg, rgba(139,92,246,.25), rgba(139,92,246,.07)) !important;
  color: #cbb5ff;
}

.order-card {
  min-height: 235px;
  border: 1px solid rgba(167,139,250,.14);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(139,92,246,.08), transparent 55%),
    linear-gradient(145deg, #292731, #222129);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: transform .22s ease, border-color .22s ease;
}

.order-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167,139,250,.4);
}

.order-card-latest {
  border-color: rgba(167,139,250,.42);
}

/* Прокрутка и появление */
.my-orders-list {
  scroll-behavior: smooth !important;
  scroll-snap-type: x proximity;
}

.order-card {
  scroll-snap-align: start;
}

@keyframes gamePageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  body.game-page .purchase-workspace {
    width: calc(100% - 28px) !important;
    margin: 10px auto 35px !important;
    padding: 20px !important;
    border-radius: 17px !important;
  }

  .games-sidebar {
    padding: 19px 16px !important;
  }

  .game-btn,
  body.has-selection .game-btn,
  .game-card {
    flex-basis: 190px !important;
    width: 190px !important;
    min-width: 190px !important;
    height: 255px !important;
    min-height: 255px !important;
    max-height: 255px !important;
    padding: 17px !important;
  }

  .game-name,
  body.has-selection .game-name {
    font-size: 20px !important;
  }

  .checkout-modal-dialog {
    padding: 18px !important;
  }

  .checkout-modal .checkout-card {
    padding: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-btn,
  .order-card,
  .purchase-workspace {
    animation: none !important;
    transition: none !important;
  }
}


/* === Главная: сначала пополнение Steam, затем любимые игры === */
body:not(.game-page) .shop-layout {
  display: flex !important;
  flex-direction: column !important;
  grid-template-areas: none !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 24px !important;
}

body:not(.game-page) .purchase-workspace {
  order: 0 !important;
  display: block !important;
  grid-area: auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

body:not(.game-page) .games-sidebar {
  order: 1 !important;
  display: block !important;
  grid-area: auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

body:not(.game-page) #denomStep {
  display: block;
}

body:not(.game-page) #gameStep,
body:not(.game-page) #fieldsStep {
  display: none;
}

/* Регион в деталях заказа */
.order-detail-region,
.order-region {
  overflow-wrap: anywhere;
}

/* Заголовок каталога располагается между Steam и играми */
body:not(.game-page) .shop-heading {
  order: 1 !important;
  width: 100%;
}

body:not(.game-page) .games-sidebar {
  order: 2 !important;
}



/* === Игровые карточки с вертикальными постерами === */
.game-btn.game-card {
  isolation: isolate !important;
  background: linear-gradient(145deg, #302744, #17151f) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease !important;
}

.game-card-poster {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}

.game-btn.game-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10,8,16,.04) 0%,
      rgba(10,8,16,.02) 35%,
      rgba(10,8,16,.42) 65%,
      rgba(10,8,16,.94) 100%
    );
  pointer-events: none;
}

.game-btn.game-card .game-name {
  position: relative;
  z-index: 2;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
}

.game-btn.game-card .game-card-action {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,.78) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}

@media (hover: hover) {
  .game-btn.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(185,150,255,.48) !important;
    box-shadow: 0 15px 34px rgba(0,0,0,.36);
  }

  .game-btn.game-card:hover .game-card-poster {
    transform: scale(1.055);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-btn.game-card,
  .game-card-poster {
    transition: none !important;
  }
}


/* Градиент поверх постера для читаемости текста */
.game-btn.game-card::before {
  display: block !important;
  content: "" !important;
}


/* LUMINARY UI POLISH */

/* Плавные переходы для интерактивных элементов */
button,
.step-back,
.games-arrow,
.footer-links a {
  transition-property: background-color, border-color, color, box-shadow, opacity, filter;
  transition-duration: .2s;
  transition-timing-function: ease;
}

/* Кнопки не смещаются и не увеличиваются */
button:hover:not(:disabled) {
  transform: none !important;
}

button:not(.game-btn):not(.games-arrow) {
  border-radius: 10px;
}

/* Кнопки возврата с видимой обводкой */
.step-back,
#backToCatalog {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 14px !important;
  border: 1px solid rgba(190,170,235,.28) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.035) !important;
  color: #c9c3d5 !important;
  text-decoration: none;
  transform: none !important;
}

.step-back:hover,
#backToCatalog:hover {
  border-color: rgba(190,160,255,.65) !important;
  background: rgba(145,104,232,.13) !important;
  color: #fff !important;
  transform: none !important;
}

.step-back svg,
#backToCatalog svg {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

#backToCatalog {
  margin: 0 0 22px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

/* Карточки не двигаются, подсвечивается только рамка */
.game-btn.game-card,
.game-btn.game-card:hover {
  transform: none !important;
  filter: none !important;
}

.game-btn.game-card:hover {
  border-color: rgba(185,150,255,.7) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.32), 0 0 0 1px rgba(185,150,255,.12) !important;
}

.game-btn.game-card:hover .game-card-poster {
  transform: scale(1.1) !important;
}

.game-btn.game-card .game-name,
.game-btn.game-card .game-card-action {
  transform: none !important;
  transition: color .2s ease, opacity .2s ease !important;
}

/* Стрелки остаются на месте */
.games-arrow:hover:not(:disabled) {
  transform: translateY(-50%) !important;
  background: #8b5cf6;
  border-color: rgba(210,190,255,.55);
}

/* Плавное обновление индикатора этапов */
.form-progress .progress-line {
  transition: background-color .25s ease, opacity .25s ease, box-shadow .25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .game-btn.game-card {
    animation: none !important;
  }
}

/* Чёткое различие текущего и завершённых этапов */
.form-progress .progress-line.completed {
  border-color: rgba(167,139,250,.28) !important;
  background: rgba(139,92,246,.10) !important;
  color: #a99ac5 !important;
  box-shadow: none !important;
}

.form-progress .progress-line.current {
  border-color: rgba(190,155,255,.85) !important;
  background: rgba(139,92,246,.30) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(139,92,246,.18), inset 0 0 12px rgba(139,92,246,.12) !important;
}

/* Единая плавность hover: появление и исчезновение эффекта */
.game-btn,
.game-card,
.denom-btn,
button,
a,
.step-back,
.games-arrow,
.order-card,
.orders-page-button,
.checkout-review-btn,
.order-card-actions button,
.order-card-actions a,
.footer-links a {
  transition:
    background .22s ease,
    background-color .22s ease,
    border-color .22s ease,
    color .22s ease,
    box-shadow .22s ease,
    opacity .22s ease,
    filter .22s ease,
    transform .22s ease;
}

/* Текст внутри игровых карточек не смещается */
.game-btn .game-name,
.game-btn .game-card-action {
  transition: color .22s ease, opacity .22s ease;
}


/* =====================================================
   LUMINARY — ЕДИНАЯ СИСТЕМА HOVER И АНИМАЦИЙ
   ===================================================== */

/* Все интерактивные элементы плавно входят и выходят из hover */
.header-nav a,
.header-support,
.game-btn,
.denom-btn,
.step-back,
#backToCatalog,
.btn-pay,
.btn-continue,
.orders-page-button,
.order-card,
.order-card-actions button,
.order-card-actions a,
.checkout-review-btn,
.games-arrow,
.footer-links a {
  transition:
    background-color .24s ease,
    border-color .24s ease,
    color .24s ease,
    box-shadow .24s ease,
    opacity .24s ease,
    filter .24s ease,
    transform .24s ease,
    text-decoration-color .24s ease !important;
}

/* Кнопки не прыгают, не увеличиваются и не сдвигают содержимое */
button:hover:not(:disabled):not(.games-arrow),
.header-nav a:hover,
.header-support:hover,
.footer-links a:hover,
.order-card:hover,
.order-card-actions button:hover,
.order-card-actions a:hover {
  transform: none !important;
}

/* Кнопки номиналов: только подсветка */
.denom-btn:hover:not(:disabled) {
  border-color: rgba(185,150,255,.7) !important;
  background-color: rgba(139,92,246,.12) !important;
  box-shadow: 0 5px 18px rgba(0,0,0,.16);
}

/* Карточки игр: только подсветка рамки и тени */
.game-btn.game-card,
.game-btn.game-card:hover {
  transform: none !important;
  filter: none !important;
}

.game-btn.game-card:hover {
  border-color: rgba(185,150,255,.78) !important;
  box-shadow:
    0 10px 28px rgba(0,0,0,.3),
    0 0 0 1px rgba(185,150,255,.16) !important;
}

/* Текст карточек не перемещается */
.game-btn.game-card .game-name,
.game-btn.game-card .game-card-action {
  transform: none !important;
  transition: color .24s ease, opacity .24s ease !important;
}

/* Стрелки остаются на исходном месте, без увеличения */
.games-arrow {
  border-radius: 10px !important;
  transform: translateY(-50%) !important;
}

.games-arrow:hover:not(:disabled) {
  transform: translateY(-50%) !important;
  background-color: #8b5cf6 !important;
  border-color: rgba(210,190,255,.7) !important;
  box-shadow: 0 4px 16px rgba(139,92,246,.2);
}

/* Основные кнопки — прямоугольные, со скруглёнными углами */
.btn-pay,
.btn-continue,
.checkout-review-btn,
.denom-btn,
.orders-page-button {
  border-radius: 10px !important;
}

/* Hover основных кнопок — без перемещения */
.btn-pay:hover:not(:disabled),
.btn-continue:hover:not(:disabled),
.checkout-review-btn:hover:not(:disabled),
.orders-page-button:hover:not(:disabled) {
  transform: none !important;
  filter: brightness(1.08);
}

/* Кнопки возврата: заметная обводка и одинаковая геометрия */
.step-back,
#backToCatalog {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(190,170,235,.48) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.045) !important;
  color: #d3cbe2 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transform: none !important;
}

.step-back:hover,
#backToCatalog:hover {
  border-color: rgba(190,160,255,.85) !important;
  background: rgba(145,104,232,.16) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(139,92,246,.12);
  transform: none !important;
}

.step-back svg,
#backToCatalog svg {
  display: block !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  transform: none !important;
  transition: none !important;
}

/* Заказные карточки также без скачков */
.order-card:hover {
  border-color: rgba(167,139,250,.48) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* Текущий и завершённые этапы оформления */
.form-progress .progress-line {
  transition:
    background-color .25s ease,
    border-color .25s ease,
    color .25s ease,
    box-shadow .25s ease,
    opacity .25s ease !important;
}

.form-progress .progress-line.completed {
  border-color: rgba(167,139,250,.35) !important;
  background: rgba(139,92,246,.13) !important;
  color: #b9a7dc !important;
  box-shadow: none !important;
}

.form-progress .progress-line.current {
  border-color: rgba(190,155,255,.9) !important;
  background: rgba(139,92,246,.3) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(139,92,246,.2) !important;
}

@media (prefers-reduced-motion: reduce) {
  .game-btn.game-card.is-revealing {
    animation: none !important;
  }

  .header-nav a,
  .header-support,
  .game-btn,
  .denom-btn,
  .step-back,
  #backToCatalog,
  .btn-pay,
  .btn-continue,
  .orders-page-button,
  .order-card,
  .games-arrow,
  .footer-links a {
    transition: none !important;
  }
}

/* Единая длительность всех hover-переходов */
button,
a,
[role="button"],
.order-card,
.step-back,
.games-arrow,
.game-btn,
.denom-btn,
.checkout-review-btn,
.orders-page-button,
.footer-links a {
  transition: all .3s ease !important;
}

/* Запрет скачков элементов при наведении */
button:hover:not(:disabled):not(.games-arrow),
a:hover,
[role="button"]:hover,
.order-card:hover {
  translate: none;
}

/* Стрелки не увеличиваются и не смещаются */
.games-arrow,
.games-arrow:hover:not(:disabled) {
  transform: translateY(-50%) !important;
}

/* Кнопки и текст не двигаются при наведении */
.game-btn.game-card,
.game-btn.game-card:hover,
.game-btn.game-card .game-name,
.game-btn.game-card .game-card-action {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  button,
  a,
  [role="button"],
  .order-card {
    transition: none !important;
  }
}


/* Исправление прокрутки каталога: анимацией управляет requestAnimationFrame */
.games-grid,
body.has-selection .games-grid {
  scroll-behavior: auto !important;
}

/* Плавные hover-эффекты как при наведении, так и при уходе курсора */
:where(
  button,
  a,
  [role="button"],
  input,
  select,
  textarea,
  .header-support,
  .order-card,
  .order-card-status,
  .game-btn,
  .denom-btn,
  .games-arrow,
  .step-back,
  #backToCatalog,
  .active-order-banner-btn,
  .active-order-details,
  .order-card-link,
  .order-card-details,
  .order-card-remove,
  .checkout-review-btn,
  .orders-page-button,
  .footer-links a
) {
  transition: all .3s ease !important;
}

/* Цвета статусов заказов */
.order-card-status.pending,
.order-card-status.paid,
.order-card-status.processing {
  background: rgba(245, 158, 11, .14) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, .32);
}

.order-card-status.completed {
  background: rgba(34, 197, 94, .14) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, .32);
}

.order-card-status.expired,
.order-card-status.failed,
.order-card-status.refund_needed {
  background: rgba(239, 68, 68, .14) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, .32);
}

@media (prefers-reduced-motion: reduce) {
  :where(
    button,
    a,
    [role="button"],
    input,
    select,
    textarea,
    .header-support,
    .order-card,
    .order-card-status,
    .game-btn,
    .denom-btn,
    .games-arrow,
    .step-back,
    #backToCatalog,
    .active-order-banner-btn,
    .active-order-details,
    .order-card-link,
    .order-card-details,
    .order-card-remove,
    .checkout-review-btn,
    .orders-page-button,
    .footer-links a
  ) {
    transition: none !important;
  }
}


/* Финальные настройки каталога, отступов и прокрутки */

/* Карусель: горизонтальная прокрутка управляется JavaScript */
.games-carousel {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.games-grid,
body.has-selection .games-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100%;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.games-grid > .game-btn,
.games-grid > .game-card {
  flex-shrink: 0 !important;
}

/* Компактные расстояния между каталогом, историей и подвалом */
.shop-layout,
body.has-selection .shop-layout,
body.has-selection.is-steam .shop-layout,
body.has-selection:not(.is-steam) .shop-layout {
  gap: 18px !important;
}

.panel-heading {
  margin-bottom: 16px !important;
}

.workspace-top {
  margin-bottom: 16px !important;
}

.shop-main {
  padding-bottom: 18px !important;
}

.my-orders {
  margin-top: 24px !important;
  padding: 20px 0 12px !important;
}

.footer {
  margin-top: 14px !important;
}


/* LUMINARY ORDER MODAL FULL WIDTH */
.order-modal {
  padding: 20px !important;
}

.order-modal-dialog {
  width: min(560px, calc(100vw - 40px)) !important;
  max-width: 560px !important;
  height: min(88vh, 900px) !important;
  max-height: 88vh !important;
  border: 1px solid rgba(167,139,250,.2) !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #292733, #1c1b23) !important;
  box-shadow: 0 30px 100px rgba(0,0,0,.55) !important;
}

.order-modal-header {
  position: absolute !important;
  z-index: 5 !important;
  inset: 0 0 auto !important;
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

.order-modal-header > span {
  display: none !important;
}

.order-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 17px !important;
  z-index: 6 !important;
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,.07) !important;
  color: #fff !important;
  font-size: 25px !important;
  pointer-events: auto !important;
  transition: background .2s ease, transform .2s ease;
}

.order-modal-close:hover {
  background: rgba(255,255,255,.14) !important;
  transform: rotate(90deg);
}

.order-modal-frame {
  display: block;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

@media (max-width: 760px) {
  .order-modal {
    padding: 8px !important;
  }

  .order-modal-dialog {
    width: calc(100vw - 16px) !important;
    height: 94vh !important;
    max-height: 94vh !important;
    border-radius: 16px !important;
  }

  .order-modal-close {
    top: 10px !important;
    right: 10px !important;
  }
}


/* LUMINARY: CLEAR MODAL CLOSE BUTTON */
.order-modal-close {
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(196,181,253,.48) !important;
  border-radius: 12px !important;
  background: rgba(139,92,246,.16) !important;
  color: #fff !important;
  font-size: 27px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background .22s ease, border-color .22s ease,
              transform .22s ease, box-shadow .22s ease !important;
}

.order-modal-close:hover {
  border-color: rgba(196,181,253,.9) !important;
  background: rgba(139,92,246,.3) !important;
  transform: rotate(90deg);
  box-shadow: 0 0 0 3px rgba(139,92,246,.12);
}

.order-modal-close:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}


/* POPUP CLOSE: SAME STYLE AS ORDER CARD CLOSE */
.order-modal-close {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(167,139,250,.38) !important;
  border-radius: 10px !important;
  color: rgba(224,213,255,.82) !important;
  background: rgba(139,92,246,.10) !important;
  font-size: 23px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background .22s ease, border-color .22s ease,
              color .22s ease, transform .22s ease, box-shadow .22s ease !important;
}

.order-modal-close:hover {
  border-color: rgba(196,181,253,.85) !important;
  color: #fff !important;
  background: rgba(139,92,246,.25) !important;
  transform: scale(1.06) !important;
  box-shadow: 0 0 0 3px rgba(139,92,246,.10) !important;
}

.order-modal-close:active {
  transform: scale(.94) !important;
}

.order-modal-close:focus-visible {
  outline: 2px solid #a78bfa !important;
  outline-offset: 3px !important;
}

/* MODAL CLOSE — SAME STYLE AS ORDER CARD REMOVE */
.order-modal-close {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(167,139,250,.38) !important;
  border-radius: 10px !important;
  color: rgba(224,213,255,.82) !important;
  background: rgba(139,92,246,.10) !important;
  font-size: 23px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transform: none;
  transition: background .22s ease, border-color .22s ease,
              color .22s ease, transform .22s ease, box-shadow .22s ease !important;
}

.order-modal-close:hover {
  border-color: rgba(196,181,253,.85) !important;
  color: #fff !important;
  background: rgba(139,92,246,.25) !important;
  transform: scale(1.06) !important;
  box-shadow: 0 0 0 3px rgba(139,92,246,.10) !important;
}

.order-modal-close:active {
  transform: scale(.94) !important;
}


/* SVG крестик попапа — идентичная иконка карточки заказа */
.order-modal-close {
  font-size: 0 !important;
  line-height: 0 !important;
}

.order-modal-close svg {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.order-modal-close:hover {
  transform: scale(1.06) !important;
}
.order-modal-close:active {
  transform: scale(.94) !important;
}


/* Карточки заказов: широкие кнопки и одинаковые внутренние отступы */
.order-card-actions {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 9px !important;
  width: 100% !important;
  margin-top: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.order-card-actions button,
.order-card-actions a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}


/* Одинаковые расстояния между блоками главной страницы */
body:not(.game-page) .shop-layout {
  gap: 30px !important;
}

/* Регион выбранной игры под заголовком оформления */
#workspaceRegionNote {
  margin-top: 9px;
  line-height: 1.5;
}


/* Одинаковое расстояние между блоками главной */
body:not(.game-page) .shop-layout {
  gap: 24px !important;
}

/* Отступ сверху перед блоком LUMINARY DIGITAL STORE */
body:not(.game-page) .shop-heading {
  margin-top: 16px !important;
}

/* Smooth hover scale for product cards */
.game-card,
.denom-card,
.denom-item {
  transition: transform 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .game-card:hover,
  .denom-card:hover,
  .denom-item:hover {
    transform: scale(1.025);
  }
}

/* Image zoom on card hover */
.game-card img,
.denom-btn img {
  transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .game-card:hover img,
  .denom-btn:hover img {
    transform: scale(1.1);
  }
}

/* Zoom poster image on game card hover */
.game-card {
  isolation: isolate;
}

.game-card-poster {
  transition: transform 0.3s ease !important;
  transform-origin: center center;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .game-card:hover .game-card-poster {
    transform: scale(1.1) !important;
  }
}


/* Скрываем индикатор этапов оформления */
.form-progress {
  display: none !important;
}


/* LUMINARY COMPACT PURCHASE WINDOW v1 */

/* Основной блок пополнения */
.purchase-workspace,
body.has-selection .purchase-workspace {
  gap: 10px !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.workspace-top {
  margin-bottom: 8px !important;
}

.workspace-top h2 {
  margin-bottom: 0 !important;
  font-size: clamp(19px, 2vw, 25px) !important;
}

.form-card {
  padding: 18px !important;
  border-radius: 16px !important;
}

.form-step {
  min-width: 0;
}

.step-label {
  margin-bottom: 12px !important;
  font-size: 15px !important;
}

/* Номиналы: компактная адаптивная сетка */
#denomsGrid,
.denoms-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)) !important;
  gap: 10px !important;
  max-height: min(52vh, 500px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0px 0px 6px 0px;
  scrollbar-width: thin;
  scrollbar-color: rgba(167,139,250,.4) transparent;
}

#denomsGrid::-webkit-scrollbar,
.denoms-grid::-webkit-scrollbar {
  width: 5px;
}

#denomsGrid::-webkit-scrollbar-thumb,
.denoms-grid::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(167,139,250,.4);
}

.denom-btn {
  min-width: 0 !important;
  padding: 13px !important;
}

/* Поля аккаунта и кнопки */
#fieldsGrid {
  gap: 10px !important;
}

.checkout-review-btn,
#continueBtn {
  margin-top: 14px !important;
  min-height: 48px !important;
}

/* Компактный попап проверки заказа */
.checkout-modal {
  padding: 14px !important;
}

.checkout-modal-dialog {
  width: min(480px, calc(100vw - 28px)) !important;
  max-height: min(86vh, 700px) !important;
  max-height: min(86dvh, 700px) !important;
  overflow-y: auto !important;
  padding: 22px !important;
  border-radius: 17px !important;
}

.checkout-modal-heading {
  margin-bottom: 16px !important;
}

.checkout-modal-heading h2 {
  font-size: 23px !important;
}

.checkout-modal .checkout-card {
  padding: 16px !important;
}

.checkout-modal .checkout-card-body {
  gap: 10px !important;
  padding: 13px 0 !important;
}

.checkout-modal .checkout-card-total {
  padding-top: 14px !important;
}

.checkout-modal .checkout-card-total strong {
  font-size: 25px !important;
}

.checkout-modal-actions {
  gap: 9px !important;
  margin-top: 14px !important;
}

.checkout-modal-actions button {
  min-height: 47px !important;
  padding: 10px 13px !important;
}

/* Телефоны */
@media (max-width: 760px) {
  .purchase-workspace,
  body.has-selection .purchase-workspace {
    padding: 0 !important;
  }

  .form-card {
    padding: 14px !important;
  }

  #denomsGrid,
  .denoms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    max-height: 48vh;
    max-height: 48dvh;
  }

  .denom-btn {
    padding: 11px 9px !important;
  }

  .checkout-modal {
    padding: 8px !important;
  }

  .checkout-modal-dialog {
    width: calc(100vw - 16px) !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    padding: 17px !important;
    border-radius: 15px !important;
  }

  .checkout-modal-heading {
    margin-right: 35px !important;
    margin-bottom: 13px !important;
  }

  .checkout-modal-heading h2 {
    font-size: 21px !important;
  }

  .checkout-modal .checkout-card {
    padding: 13px !important;
  }

  .checkout-modal .checkout-card-head {
    gap: 9px !important;
    margin-bottom: 12px !important;
  }

  .checkout-modal .checkout-card-icon {
    flex-basis: 38px !important;
    width: 38px !important;
    height: 38px !important;
  }

  .checkout-modal .checkout-row {
    gap: 10px !important;
    font-size: 12px !important;
  }

  .checkout-modal .checkout-card-total strong {
    font-size: 22px !important;
  }
}

/* Очень узкие экраны */
@media (max-width: 360px) {
  #denomsGrid,
  .denoms-grid {
    grid-template-columns: 1fr !important;
  }

  .checkout-modal-actions {
    flex-direction: column;
  }

  .checkout-modal-actions button {
    width: 100%;
  }
}


/* LUMINARY GAME PURCHASE MODAL */
.purchase-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(5, 4, 12, .78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.purchase-workspace {
  display: none !important;
}

body.game-purchase-open {
  overflow: hidden !important;
}

body.game-purchase-open .purchase-modal-backdrop {
  display: block;
}

body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
  display: block !important;
  position: fixed !important;
  z-index: 9999 !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(560px, calc(100vw - 32px)) !important;
  max-width: 560px !important;
  max-height: min(86vh, 760px) !important;
  max-height: min(86dvh, 760px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 26px !important;
  border: 1px solid rgba(167, 139, 250, .2) !important;
  border-radius: 20px !important;
  background: #171322 !important;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .6) !important;
  overscroll-behavior: contain;
}

.purchase-modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #d8d1e8;
  cursor: pointer;
}

.purchase-modal-close:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.purchase-modal-close svg {
  width: 19px;
  height: 19px;
}

body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) .workspace-top {
  padding-right: 35px;
  margin-bottom: 16px !important;
}

body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) .form-card {
  min-width: 0;
}

body.game-purchase-open #denomsGrid {
  max-height: min(48vh, 430px);
  max-height: min(48dvh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.game-purchase-open .checkout-modal {
  z-index: 10010 !important;
}

@media (max-width: 760px) {
  body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
    width: calc(100vw - 20px) !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    padding: 19px 14px !important;
    border-radius: 17px !important;
  }

  body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) .workspace-top {
    padding-right: 36px;
    margin-bottom: 12px !important;
  }

  body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) .form-card {
    padding: 12px !important;
  }

  body.game-purchase-open #denomsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    max-height: 56vh;
    max-height: 56dvh;
  }

  body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) .denom-btn {
    min-width: 0;
    padding: 11px 8px !important;
  }
}

@media (max-width: 360px) {
  body.game-purchase-open #denomsGrid {
    grid-template-columns: 1fr !important;
  }
}

/* Steam form stays visible directly on the page */
.purchase-workspace {
  display: block !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
}

body:not(.game-purchase-open) .purchase-modal-backdrop {
  display: none !important;
}

/* Steam form stays visible directly on the page */
.purchase-workspace {
  display: block !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
}

body:not(.game-purchase-open) .purchase-modal-backdrop {
  display: none !important;
}


/* Steam: сразу показываем форму, без заглушки выбора игры */
body:not(.game-purchase-open) .purchase-workspace #backToGames {
  display: none !important;
}


/* Отступы блока заголовков на главной */
body:not(.game-page) .shop-heading {
  margin-top: 30px !important;
  margin-bottom: 10px !important;
}


/* LUMINARY COMPACT GAME PRODUCT CARDS */

/* На компьютере увеличиваем ширину попапа для большего количества товаров */
@media (min-width: 761px) {
  body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
    width: min(700px, calc(100vw - 48px)) !important;
    max-width: 700px !important;
  }
}

/* Компактные карточки товаров */
body.game-purchase-open #denomsGrid {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)) !important;
  gap: 9px !important;
}

body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) .denom-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  min-height: 66px !important;
  padding: 10px 12px !important;
  gap: 5px !important;
  text-align: left !important;
}

body.game-purchase-open .denom-name {
  font-size: 12px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

body.game-purchase-open .denom-price {
  font-size: 13px !important;
}

/* Телефоны: две компактные карточки в ряд */
@media (max-width: 760px) {
  body.game-purchase-open #denomsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) .denom-btn {
    min-height: 64px !important;
    padding: 9px 10px !important;
  }
}

@media (max-width: 360px) {
  body.game-purchase-open #denomsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* LUMINARY STEAM PLACEHOLDER WHILE GAME POPUP IS OPEN */
body.game-purchase-open .purchase-workspace.steam-workspace-placeholder {
  display: block !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  margin: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}


/* LUMINARY STEAM SHADOW PLACEHOLDER */
.steam-workspace-placeholder {
  display: block !important;
  position: relative !important;
  order: 0 !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}


/* LUMINARY STEAM FINAL ADJUSTMENTS */

/* Внутренний повторный заголовок не нужен */
.purchase-workspace.steam-home-mode #denomStep > .step-label {
  display: none !important;
}

/* Убираем верхний отступ кнопки Steam */
.purchase-workspace.steam-home-mode #reviewSteamBtn,
.purchase-workspace.steam-home-mode #continueBtn {
  margin-top: 0 !important;
}

/* Символ рубля внутри поля суммы */
.purchase-workspace.steam-home-mode .steam-input-field:has(#steamAmountInput) {
  position: relative !important;
}

.purchase-workspace.steam-home-mode .steam-input-field:has(#steamAmountInput)::after {
  content: '₽';
  position: absolute;
  top: 43px;
  right: 17px;
  color: #aaa1bf;
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
}

.purchase-workspace.steam-home-mode #steamAmountInput {
  padding-right: 44px !important;
}

/* Не сдвигаем страницу при открытии и закрытии попапов */
html {
  scrollbar-gutter: stable;
}


/* LUMINARY STEAM AND VOUCHER FINAL FIX */

/* Крестик нужен только в игровом попапе, не в Steam-блоке */
.purchase-workspace.steam-home-mode > .purchase-modal-close {
  display: none !important;
}

/* Кнопка Steam: расстояние такое же, как между полями */
.purchase-workspace.steam-home-mode #reviewSteamBtn {
  margin-top: 6px !important;
}

/* Информация о ваучере */
#voucherInfo {
  grid-column: 1 / -1;
  margin: 2px 0 4px;
  color: #aaa1bf;
  font-size: 12px;
  line-height: 1.5;
}

/* Скрытие кнопки оформления, когда она не нужна */
.checkout-review-btn[hidden] {
  display: none !important;
}


/* Кнопка оплаты заказа: залитый фирменный стиль */
.order-card-actions a.order-card-link {
  border: 1px solid rgba(190,160,255,.5) !important;
  background: linear-gradient(110deg, #7650cf, #9168e8) !important;
  color: #fff !important;
  font-weight: 750 !important;
  box-shadow: 0 5px 16px rgba(118,80,207,.24) !important;
}

.order-card-actions a.order-card-link:hover {
  border-color: rgba(210,190,255,.75) !important;
  background: linear-gradient(110deg, #825bdc, #a078f1) !important;
  box-shadow: 0 7px 20px rgba(118,80,207,.32) !important;
}

/* Единый размер основных заголовков — как у «Пополняй любимые игры» */
body .shop-heading h1,
body .workspace-top h2,
body .checkout-modal-heading h2,
body .checkout-card h2,
body .section-title {
  font-size: clamp(30px, 3.2vw, 44px) !important;
}


/* LUMINARY MODALS: FINAL CENTERING AND MOBILE VIEWPORT FIX */
.checkout-modal,
.order-modal {
  box-sizing: border-box !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

.checkout-modal.is-open,
.order-modal.is-open {
  display: flex !important;
}

.checkout-modal-dialog {
  box-sizing: border-box !important;
  width: min(480px, 100%) !important;
  max-width: 100% !important;
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  height: auto !important;
  margin: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.order-modal-dialog {
  box-sizing: border-box !important;
  width: min(560px, 100%) !important;
  max-width: 100% !important;
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  height: min(88vh, 900px) !important;
  height: min(88dvh, 900px) !important;
  margin: auto !important;
}

@media (max-width: 760px) {
  .checkout-modal,
  .order-modal {
    padding: 10px !important;
  }

  .checkout-modal-dialog {
    width: 100% !important;
    max-height: calc(100vh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 17px !important;
  }

  .order-modal-dialog {
    width: 100% !important;
    max-height: calc(100vh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    height: min(88vh, 900px) !important;
    height: min(88dvh, 900px) !important;
  }
}


/* LUMINARY: UNIFIED CENTERING FOR ALL MODALS */
.purchase-modal-backdrop,
.checkout-modal,
.order-modal {
  position: fixed !important;
  inset: 0 !important;
  box-sizing: border-box !important;
}

.checkout-modal,
.order-modal {
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  padding: 12px !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
}

.checkout-modal.is-open,
.order-modal.is-open {
  display: flex !important;
}

body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.checkout-modal-dialog,
.order-modal-dialog {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: auto !important;
  box-sizing: border-box !important;
  flex: 0 1 auto !important;
}

.checkout-modal-dialog {
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
}

.order-modal-dialog {
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
}

@media (max-width: 760px) {
  .checkout-modal,
  .order-modal {
    padding: 10px !important;
  }

  .checkout-modal-dialog,
  .order-modal-dialog {
    max-height: calc(100vh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
  }

  body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
    max-height: calc(100vh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
  }
}


/* LUMINARY: UNIFIED GAME POPUP SIZE AND CENTERING */
body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
  display: block !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;

  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;

  margin: 0 !important;
  padding: 24px !important;
  box-sizing: border-box !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

body.game-purchase-open #denomsGrid {
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 760px) {
  body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 19px 14px !important;
  }
}


/* LUMINARY: FINAL GAME POPUP CENTERING */
body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  transform: none !important;

  width: min(700px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  height: max-content !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;

  margin: auto !important;
  padding: 26px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

@media (max-width: 760px) {
  body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 19px 14px !important;
  }
}

/* LUMINARY: CHECKOUT GAME AND REGION */
.checkout-modal .checkout-game-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #aaa5b5 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.checkout-modal .checkout-game-row strong {
  color: #f4f0fa !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
}

.checkout-modal .checkout-denom-row {
  align-items: flex-start !important;
}

.checkout-modal .checkout-denom-value {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 4px !important;
  min-width: 0 !important;
  text-align: right !important;
}

.checkout-modal .checkout-denom-value small {
  color: #aaa5b5 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.checkout-modal .checkout-denom-value small[hidden] {
  display: none !important;
}

/* LUMINARY: DEFINITIVE GAME POPUP DIMENSIONS */
body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
  display: block !important;
  position: fixed !important;

  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;

  transform: none !important;
  margin: auto !important;

  width: min(700px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: 700px !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 32px) !important;

  box-sizing: border-box !important;
  padding: 26px !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.game-purchase-open #denomsGrid {
  max-height: min(48dvh, 430px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

@media (max-width: 760px) {
  body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 19px 14px !important;
  }

  body.game-purchase-open #denomsGrid {
    max-height: 56dvh !important;
  }
}

/* LUMINARY: PRODUCT POPUP — HUG HEIGHT + AUTO CENTER */
body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
  display: block !important;
  position: fixed !important;

  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  transform: none !important;
  margin: auto !important;

  width: min(700px, calc(100vw - 32px)) !important;
  max-width: 700px !important;
  height: fit-content !important;
  min-height: 0 !important;
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;

  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

body.game-purchase-open #denomsGrid {
  max-height: min(48vh, 430px) !important;
  max-height: min(48dvh, 430px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

@media (max-width: 760px) {
  body.game-purchase-open .purchase-workspace:not(.steam-workspace-placeholder) {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 19px 14px !important;
  }

  body.game-purchase-open #denomsGrid {
    max-height: 56vh !important;
    max-height: 56dvh !important;
  }
}


/* LUMINARY: STEAM HOME HEADING AND BUTTON ALIGNMENT */
body:not(.game-purchase-open) .purchase-workspace.steam-home-mode #workspaceTitle {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

body:not(.game-purchase-open) .purchase-workspace.steam-home-mode #reviewSteamBtn {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body:not(.game-purchase-open) .purchase-workspace.steam-home-mode #denomsGrid,
body:not(.game-purchase-open) .purchase-workspace.steam-home-mode .steam-input-field,
body:not(.game-purchase-open) .purchase-workspace.steam-home-mode .steam-input-field input {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 760px) {
  body:not(.game-purchase-open) .purchase-workspace.steam-home-mode #workspaceTitle {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }

  body:not(.game-purchase-open) .purchase-workspace.steam-home-mode #reviewSteamBtn {
    width: 100% !important;
  }
}
