@font-face {
  font-family: "Inter";
  src: url("../assets/font/Inter.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b1220;
  --bg-deep: #09101c;
  --panel: #111b2e;
  --panel-2: #162238;
  --panel-3: #1a2740;
  --border: #263550;
  --border-soft: #202e47;
  --text: #f7f9fd;
  --muted: #7f8ba2;
  --muted-2: #5f6c82;
  --blue: #2c82e9;
  --blue-hover: #3d91f2;
  --green: #06c168;
  --green-soft: rgba(6, 193, 104, 0.15);
  --red: #ef4359;
  --red-soft: rgba(239, 67, 89, 0.14);
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.17);

  /* Main page: change these two values to adjust the control heights. */
  --home-quantity-height: 41.4px;
  --home-mode-switch-height: 37.8px;

  /* Order details: former 44px fields increased by approximately 15%. */
  --order-input-height: 51px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.section-shell {
  width: min(1380px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  border-bottom: 1px solid #1f2b42;
  background: rgba(11, 18, 32, 0.97);
  backdrop-filter: blur(16px);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-logo {
  width: 26px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-mark {
  position: relative;
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
}
.brand-mark::before,
.brand-mark::after,
.brand-mark i::before,
.brand-mark i::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: linear-gradient(180deg, #3ea5ff, #1776ce);
}
.brand-mark::before { width: 6px; height: 24px; transform: rotate(-45deg); }
.brand-mark::after { width: 6px; height: 24px; transform: rotate(45deg); }
.brand-mark i:first-child::before { width: 11px; height: 6px; left: 2px; top: 3px; transform: rotate(-45deg); }
.brand-mark i:first-child::after { width: 11px; height: 6px; right: 2px; top: 3px; transform: rotate(45deg); }
.brand-mark i:last-child::before { width: 9px; height: 6px; left: 2px; bottom: 3px; transform: rotate(-45deg); }
.brand-mark i:last-child::after { width: 9px; height: 6px; right: 2px; bottom: 3px; transform: rotate(45deg); }
.top-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.top-nav a {
  color: #b4bdcc;
  font-size: 13px;
  font-weight: 650;
  transition: color 150ms ease;
}
.top-nav a:hover { color: #fff; }
.steam-button {
  height: 38px;
  min-width: 190px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(95, 166, 255, 0.35);
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(44, 130, 233, 0.2);
  transition: background 150ms ease, transform 150ms ease;
}
.steam-button:hover { background: var(--blue-hover); transform: translateY(-1px); }
.steam-button img { width: 16px; height: 16px; }
.mobile-nav-toggle { display: none; }

.site-main { padding-bottom: 86px; }
.page-intro { padding-top: 30px; padding-bottom: 26px; }
.page-intro h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 820;
}
.page-intro p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 29, 49, 0.98), rgba(14, 24, 41, 0.98));
  box-shadow: var(--shadow);
}
.exchange {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(330px, 0.78fr);
  gap: 24px;
  align-items: stretch;
}
.chart-card { min-height: 500px; padding: 26px 28px 22px; display: flex; flex-direction: column; }
.chart-header { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.chart-header h2 { margin: 0; font-size: 15px; font-weight: 760; }
.period-switch { display: flex; gap: 6px; }
.period-button {
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #5f6c82;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.period-button:hover { color: #cbd5e5; background: #1a2740; }
.period-button.is-active { color: #fff; background: var(--blue); box-shadow: 0 4px 13px rgba(44, 130, 233, .22); }
.chart-stage {
  position: relative;
  flex: 1;
  min-height: 330px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(180deg, #151f31 0%, #101827 100%);
}
.price-chart { width: 100%; height: 100%; min-height: 330px; touch-action: none; }
.chart-grid { stroke: #25344d; stroke-width: 1; }
.chart-axis-label { fill: #536077; font-size: 11px; font-family: "Inter", Arial, sans-serif; pointer-events: none; }
.chart-line-steam, .chart-line-site { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-steam { stroke: var(--blue); stroke-width: 3; }
.chart-line-site { stroke-width: 3; }
.chart-hover-line { stroke: #7f8da4; stroke-width: 1; stroke-dasharray: 4 4; }
.chart-tooltip {
  position: absolute;
  top: 16px;
  z-index: 4;
  min-width: 180px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  transform: translateX(-50%);
  border: 1px solid #344661;
  border-radius: 7px;
  background: rgba(7, 13, 23, 0.96);
  box-shadow: 0 18px 35px rgba(0,0,0,.35);
  color: #dce4f0;
  font-size: 11px;
  pointer-events: none;
}
.chart-tooltip strong { color: #fff; }
.chart-footer {
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.chart-legend { display: flex; align-items: center; gap: 24px; color: #77849a; font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend img { width: 26px; height: 18px; }
.chart-legend b { font-weight: 650; }
.chart-summary { display: flex; align-items: flex-end; gap: 34px; }
.chart-stat { display: grid; gap: 2px; min-width: 86px; }
.chart-stat span { color: #637087; font-size: 10px; }
.chart-stat strong { font-size: 16px; }
.chart-stat--site { display: none; }
.positive, .buy-color { color: var(--green); }
.negative, .sell-color { color: var(--red); }
.legend-line { width: 0; height: 0; }

.exchange-card { min-height: 500px; padding: 22px 24px 20px; display: flex; flex-direction: column; }
.mode-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: var(--home-mode-switch-height);
  height: var(--home-mode-switch-height);
  padding: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #162138;
}
.mode-switch::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 50%;
  border-radius: 7px;
  background: #123d33;
  transform: translateX(0);
  transition:
    transform 280ms cubic-bezier(.22, .75, .25, 1),
    background-color 220ms ease;
  pointer-events: none;
}
.mode-switch.is-sell::before {
  transform: translateX(100%);
  background: #42202b;
}
.mode-button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: var(--home-mode-switch-height);
  height: var(--home-mode-switch-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #79859a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 220ms ease;
}
.mode-button--buy.is-active { color: var(--green); }
.mode-button--sell.is-active { color: #ff7285; }
@media (prefers-reduced-motion: reduce) {
  .mode-switch::before,
  .mode-button { transition: none; }
}
.product-row { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.product-details { min-width: 0; }
.product-row--large { margin-top: 0; }
.product-image {
  width: 64px;
  height: 58px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #18243a;
}
.product-image img { width: 58px; max-height: 44px; object-fit: contain; }
.product-row h2 { margin: 0; font-size: 13px; font-weight: 720; }
.product-row p { margin: 3px 0 0; color: #6d788c; font-size: 11px; }
.product-row .product-availability {
  margin-top: 3px;
  color: #8c97aa;
  line-height: 1.35;
  font-weight: 650;
  transition: color 220ms ease;
}
.product-row .product-availability.is-buy { color: var(--green); }
.product-row .product-availability.is-sell { color: var(--red); }
.divider { height: 1px; margin: 20px 0; background: var(--border-soft); }
.field-block { display: grid; gap: 7px; margin-bottom: 18px; color: #758197; font-size: 11px; }

.home-product-availability {
  margin: 0 0 7px;
  color: #8a95a8;
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
}
.home-product-availability.is-buy,
.home-product-availability.is-sell {
  color: #8a95a8;
}
.price-box, .quantity-control {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-radius: 6px;
  background: #19243a;
}
.price-box strong { color: #fff; font-size: 17px; }
.price-box small { color: #68758a; font-size: 10px; }
.quantity-control { padding: 0; overflow: hidden; }
.quantity-control button {
  width: 45px;
  height: 46px;
  border: 0;
  background: #202d45;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.quantity-control button:hover { background: #263650; }
.quantity-control input {
  min-width: 0;
  width: 100%;
  height: 46px;
  flex: 1 1 auto;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}
.quantity-control input:focus-visible {
  box-shadow: inset 0 0 0 1px var(--blue);
}
.total-row { margin-top: auto; padding: 5px 0 14px; display: flex; justify-content: space-between; align-items: center; }
.total-row span { color: #8a95a8; font-size: 12px; }
.total-row strong { font-size: 19px; }
.primary-button {
  min-height: 46px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 760;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.primary-button--buy { background: var(--green); box-shadow: 0 10px 25px rgba(6, 193, 104, .13); }
.primary-button--sell { background: var(--red); box-shadow: 0 10px 25px rgba(239, 67, 89, .12); }
.primary-button--blue { background: var(--blue); }
.card-note { margin: 13px 0 0; color: #5e6a7d; text-align: center; font-size: 10px; }
.card-note--security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.4;
}
.card-note--security img {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.content-section { padding-top: 82px; }
.section-title { margin: 0 0 26px; font-size: 24px; line-height: 1.2; letter-spacing: -0.025em; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  position: relative;
  min-height: 155px;
  padding: 23px 22px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #111b2e;
}
.step-card img { width: 25px; height: 25px; margin-bottom: 15px; }
.step-card > span { position: absolute; top: 18px; right: 20px; color: #23324b; font-size: 23px; font-weight: 800; }
.step-card h3 { margin: 0; font-size: 13px; }
.step-card p { margin: 8px 0 0; color: #6f7b90; font-size: 11px; line-height: 1.45; }

.faq-list {
  height: 340px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #111b2e;
}
.faq-item + .faq-item { border-top: 1px solid #24334c; }
.faq-question {
  width: 100%;
  min-height: 54px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: transparent;
  color: #eef3fb;
  text-align: left;
  font-size: 12px;
  font-weight: 620;
  cursor: pointer;
}
.faq-question i { position: relative; width: 14px; height: 14px; flex: 0 0 14px; }
.faq-question i::before, .faq-question i::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 7px;
  height: 1.5px;
  background: #65738a;
  transition: transform 90ms ease, background-color 90ms ease;
}
.faq-question i::before { left: 1px; transform: rotate(45deg); }
.faq-question i::after { right: 1px; transform: rotate(-45deg); }
.faq-item.is-open { background: #1a2944; }
.faq-item.is-open .faq-question i::before,
.faq-item.is-open .faq-question i::after { background: var(--blue); }
.faq-item.is-open .faq-question i::before { transform: rotate(-45deg); }
.faq-item.is-open .faq-question i::after { transform: rotate(45deg); }
.faq-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 80ms ease;
}
.faq-answer p { margin: 0; padding: 0 24px 14px; color: #7c899f; font-size: 11px; }
.faq-item.is-open .faq-answer { height: 63px; opacity: 1; }

.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.all-reviews-link {
  color: #fff;
  font-size: 11px;
  text-decoration: none;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 120ms ease;
}
.all-reviews-link span {
  color: inherit;
  margin-left: 5px;
}
.all-reviews-link:hover,
.all-reviews-link:focus-visible {
  color: var(--blue);
  text-decoration-line: underline;
}
.review-preview-grid, .reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  min-height: 145px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #111b2e;
}
.review-author { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; }
.review-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.review-author h3 { margin: 0; color: #fff; font-size: 12px; }
.review-author time { color: #6f7c91; font-size: 10px; }
.review-author > span { color: var(--green); font-size: 12px; font-weight: 750; }
.review-card p { margin: 16px 0 0; color: #a1abba; font-size: 11px; line-height: 1.55; }

.site-footer { margin-top: 6px; border-top: 1px solid #1f2c43; background: #0b1322; }
.footer-grid { min-height: 178px; padding-top: 38px; padding-bottom: 34px; display: grid; grid-template-columns: 1.25fr 1fr 1.25fr 1fr; gap: 36px; }
.footer-grid section + section { border-left: 1px solid #243149; padding-left: 36px; }
.footer-brand .brand { color: var(--blue); font-size: 14px; }
.footer-brand p { margin: 10px 0 0; color: #667287; font-size: 11px; }
.footer-grid h2 { margin: 0 0 14px; color: #eef2f9; font-size: 11px; font-weight: 700; }
.footer-links, .footer-contact { display: grid; gap: 8px; color: #6e7a8f; font-size: 10px; }
.footer-links a:hover { color: #fff; }
.footer-contact span { display: flex; align-items: center; gap: 8px; }
.footer-contact img { width: 15px; height: 15px; opacity: .75; }
.footer-bottom { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #1f2c43; color: #526075; font-size: 9px; }

/* Inner pages */
.inner-page { min-height: calc(100vh - 68px); padding-top: 30px; padding-bottom: 90px; }
.inner-heading { margin-bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.inner-heading h1 { margin: 0; font-size: 32px; letter-spacing: -0.03em; }
.inner-heading p { margin: 8px 0 0; color: var(--muted); }
.text-link { color: #a7b1c2; font-size: 12px; }
.text-link:hover { color: #fff; }
.reviews-grid { grid-template-columns: repeat(3, 1fr); }
.pagination { margin-top: 30px; display: flex; justify-content: center; gap: 7px; }
.pagination button {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 6px; background: #111b2e; color: #8f9bad; cursor: pointer;
}
.pagination button:hover, .pagination button.is-active { color: #fff; background: var(--blue); border-color: var(--blue); }
.pagination button:disabled { opacity: .35; cursor: default; }
.checkout-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 24px; }
.checkout-card { padding: 26px; }
.checkout-card h2 { margin: 0; font-size: 18px; }
.checkout-card--payment { display: flex; flex-direction: column; }
.payment-methods { margin: 22px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-method {
  min-height: 64px; padding: 10px 12px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; background: #141f34; color: #dce4f0; cursor: pointer;
}
.payment-method img { width: 38px; height: 38px; object-fit: contain; }
.payment-method i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #263550; color: transparent; font-style: normal; }
.payment-method.is-selected { border-color: var(--blue); background: rgba(44,130,233,.08); }
.payment-method.is-selected i { background: var(--blue); color: #fff; }
.text-input, .modal-field input {
  width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid #2a3953; border-radius: 6px; outline: none; background: #18243a; color: #fff;
}
.text-input:focus, .modal-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,130,233,.12); }
.total-row--checkout { margin-top: auto; border-top: 1px solid var(--border-soft); padding-top: 18px; }
.success-panel { margin-top: 24px; padding: 24px; display: flex; align-items: center; gap: 18px; border: 1px solid rgba(6,193,104,.35); border-radius: 10px; background: rgba(6,193,104,.08); }
.success-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--green); font-size: 21px; font-weight: 800; }
.success-panel h2 { margin: 0; font-size: 17px; }
.success-panel p { margin: 5px 0 0; color: #91a0b4; }
.secondary-button { margin-left: auto; padding: 11px 15px; border: 1px solid #3a4963; border-radius: 6px; }
.legal-content { max-width: 920px; margin-inline: auto; }
.legal-card { padding: 34px; }
.legal-card h1 { margin: 0 0 20px; font-size: 31px; }
.legal-card h2 { margin: 26px 0 8px; font-size: 17px; }
.legal-card p, .legal-card li { color: #9aa5b7; }
.legal-card ul { padding-left: 20px; }
.legal-back { margin-top: 22px; display: inline-flex; width: auto; padding: 0 22px; align-items: center; justify-content: center; }

/* Registration */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; padding: 24px; display: grid; place-items: center; background: rgba(3, 7, 13, .78); backdrop-filter: blur(6px);
}
.modal-backdrop[hidden] { display: none !important; }
.registration-modal {
  width: min(640px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 28px; border: 1px solid #34435d; border-radius: 11px; background: #182238; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.modal-heading { position: relative; padding-right: 46px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-heading h2 { margin: 0; font-size: 25px; }
.modal-heading p { margin: 6px 0 0; color: #7e8aa0; }
.modal-step { color: #728097; font-size: 11px; }
.modal-close { position: absolute; right: 0; top: -7px; width: 34px; height: 34px; border: 0; background: transparent; color: #9ba7b8; font-size: 28px; cursor: pointer; }
.steam-auth-step { padding-top: 28px; text-align: center; }
.steam-auth-icon { width: 70px; height: 70px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: #0f1829; color: var(--blue); font-size: 30px; font-weight: 850; }
.steam-auth-step h3 { margin: 0; }
.steam-auth-step > p { color: #8f9aad; }
.steam-auth-step .primary-button { margin-top: 18px; }
.modal-form { padding-top: 25px; display: grid; gap: 19px; }
.modal-field { display: grid; gap: 8px; color: #eef3fb; font-size: 13px; font-weight: 600; }
.account-field { min-height: 54px; padding: 8px 12px; display: flex; align-items: center; gap: 11px; border-radius: 7px; background: #141e32; }
.account-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); }
.account-text { display: grid; }
.account-text small { color: #738097; font-weight: 400; }
.trade-row { display: grid; grid-template-columns: 1fr 100px; gap: 10px; }
.get-button { display: grid; place-items: center; border-radius: 6px; background: #c7cff9; color: #171d2b; font-weight: 800; }
.checkbox-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: #dde4ef; font-size: 12px; }
.checkbox-row input { margin: 2px 0 0; }
.checkbox-row a { color: #9ba9ff; text-decoration: underline; }
.modal-note { margin: 12px 0 0; color: #6f7c90; text-align: center; font-size: 11px; }
.toast-root { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: grid; gap: 10px; }
.toast { max-width: 360px; padding: 13px 16px; border: 1px solid #34445e; border-radius: 7px; background: #162238; box-shadow: 0 16px 40px rgba(0,0,0,.35); }

@media (max-width: 1080px) {
  .exchange { grid-template-columns: 1fr; }
  .exchange-card { min-height: auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid section + section { border-left: 0; padding-left: 0; }
  .review-preview-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section-shell { width: min(100% - 28px, 1380px); }
  .site-header { height: 62px; }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 10px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 24px; height: 24px; }
  .steam-button { min-width: 44px; width: 44px; padding: 0; }
  .steam-button span { display: none; }
  .mobile-nav-toggle { display: block; width: 40px; height: 38px; border: 1px solid var(--border); border-radius: 6px; background: #121d30; cursor: pointer; }
  .top-nav { position: absolute; left: 14px; right: 14px; top: 70px; display: none; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: #111b2e; box-shadow: var(--shadow); }
  .top-nav.is-open { display: grid; gap: 6px; }
  .top-nav a { padding: 10px; }
  .page-intro { padding-top: 24px; }
  .page-intro h1 { font-size: 28px; }
  .brand-logo { width: 23px; height: 32px; }
  .faq-list { height: 368px; }
  .faq-item.is-open .faq-answer { height: 91px; }
  .chart-card, .exchange-card { padding: 18px; }
  .chart-stage, .price-chart { min-height: 280px; }
  .chart-footer { align-items: flex-start; flex-direction: column; }
  .chart-summary { width: 100%; justify-content: space-between; gap: 12px; }
  .content-section { padding-top: 58px; }
  .steps-grid, .review-preview-grid, .reviews-grid, .checkout-grid { grid-template-columns: 1fr; }
  .section-heading-row, .inner-heading { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid section + section { border-top: 1px solid #243149; padding-top: 22px; }
  .footer-bottom { padding: 16px 0; align-items: flex-start; flex-direction: column; }
  .payment-methods { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page-intro h1 { font-size: 24px; }
  .chart-header { align-items: flex-start; flex-direction: column; }
  .chart-summary { display: grid; grid-template-columns: 1fr 1fr; }
  .chart-legend { flex-direction: column; align-items: flex-start; gap: 8px; }
  .steps-grid { grid-template-columns: 1fr; }
  .trade-row { grid-template-columns: 1fr; }
  .get-button { min-height: 42px; }
  .registration-modal { padding: 21px; }
}
.chart-legend img.is-sell { filter: hue-rotate(240deg) saturate(2.4) brightness(1.05); }

/* Reviews page — fixed-height database-driven layout */
.reviews-page {
  --reviews-block-height: 570px; /* Самостоятельно меняйте высоту блока отзывов здесь */
  --reviews-column-gap: 20px;
  --reviews-card-gap: 16px;
  --reviews-pagination-gap: 4px;
  background: #0b1220;
}

.reviews-page-main {
  width: min(1280px, calc(100% - 80px));
}

.reviews-page-main {
  min-height: 540px;
  padding-top: 22px;
  padding-bottom: 24px;
  display: grid;
  grid-template-rows: auto var(--reviews-block-height) 42px;
  gap: 18px;
}

.reviews-page-title {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
}

.reviews-list-shell {
  position: relative;
  width: 100%;
  height: var(--reviews-block-height);
  min-height: var(--reviews-block-height);
  max-height: var(--reviews-block-height);
  overflow: hidden;
}

.reviews-columns {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--reviews-column-gap);
  align-items: start;
  overflow: hidden;
}

.review-column {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--reviews-card-gap);
  overflow: hidden;
}

.reviews-page .review-card {
  width: 100%;
  min-height: 0;
  max-height: var(--reviews-block-height);
  padding: 20px 22px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #263550;
  border-radius: 10px;
  background: linear-gradient(180deg, #111c30 0%, #0f192a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.reviews-page .review-author {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}

.review-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid #33445f;
  border-radius: 50%;
  background: linear-gradient(135deg, #223552, #17243a);
}

.review-avatar img,
.review-avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.review-avatar img {
  z-index: 2;
  object-fit: cover;
  opacity: 0;
  transition: opacity 120ms ease;
}

.review-avatar.has-image img {
  opacity: 1;
}

.review-avatar-fallback {
  display: grid;
  place-items: center;
  color: #8ec5ff;
  font-size: 13px;
  font-weight: 800;
}

.review-author-copy {
  min-width: 0;
}

.reviews-page .review-author h3 {
  margin: 0;
  overflow: hidden;
  color: #f5f8fd;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reviews-page .review-author time {
  display: block;
  margin-top: 3px;
  color: #7b879a;
  font-size: 10px;
  line-height: 1.2;
}

.reviews-page .review-rating {
  color: #09c46c;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.reviews-page .review-card p {
  margin: 15px 0 0;
  color: #aab3c2;
  font-size: 12px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.reviews-measure {
  position: fixed;
  left: -10000px;
  top: 0;
  z-index: -1;
  visibility: hidden;
  pointer-events: none;
}

.reviews-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 1px dashed #2b3c58;
  border-radius: 10px;
  color: #8f9caf;
  text-align: center;
}

.reviews-status--error {
  color: #ff91a0;
  border-color: rgba(239, 67, 89, 0.45);
  background: rgba(239, 67, 89, 0.05);
}

.review-card--skeleton {
  height: 140px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
}

.review-card--skeleton span {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a2840 25%, #263752 50%, #1a2840 75%);
  background-size: 200% 100%;
  animation: review-skeleton 1.2s linear infinite;
}

.review-card--skeleton span:first-child { width: 62%; }
.review-card--skeleton span:nth-child(2) { width: 92%; }
.review-card--skeleton span:nth-child(3) { width: 78%; }

@keyframes review-skeleton {
  to { background-position: -200% 0; }
}

.reviews-pagination-shell {
  width: 100%;
  height: 42px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.reviews-pagination {
  /* На компьютере ширина пагинации равна ширине одной колонки с отзывами. */
  width: calc((100% - (var(--reviews-column-gap) * 2)) / 3);
  min-width: calc((100% - (var(--reviews-column-gap) * 2)) / 3);
  max-width: calc((100% - (var(--reviews-column-gap) * 2)) / 3);
  min-height: 30px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: center;
  gap: var(--reviews-pagination-gap);
  overflow: visible;
}

.reviews-pagination .pagination-button,
.reviews-pagination .pagination-ellipsis {
  width: 100%;
  min-width: 0;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 10px;
}

.reviews-pagination .pagination-button {
  border: 1px solid #284467;
  background: #101c30;
  color: #91a7c2;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.reviews-pagination .pagination-button:hover:not(:disabled) {
  border-color: var(--blue-hover);
  background: #17345a;
  color: #ffffff;
}

.reviews-pagination .pagination-button.is-active {
  position: relative;
  z-index: 1;
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(44, 130, 233, 0.2);
}

.reviews-pagination .pagination-button:disabled {
  opacity: 0.32;
  cursor: default;
}

.reviews-pagination .pagination-ellipsis {
  color: #65738a;
  cursor: default;
  opacity: 1 !important;
}

.reviews-pagination .pagination-placeholder {
  visibility: hidden;
  pointer-events: none;
}


/* Текущая страница не реагирует на наведение и повторный клик. */
.reviews-pagination .pagination-button.is-active,
.reviews-pagination .pagination-button.is-active:hover,
.reviews-pagination .pagination-button.is-active:disabled {
  opacity: 1;
  pointer-events: none;
  cursor: default;
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(44, 130, 233, 0.2);
}

/* Многоточие является только обозначением пропущенных страниц. */
.reviews-pagination .pagination-ellipsis,
.reviews-pagination .pagination-ellipsis:hover,
.reviews-pagination .pagination-ellipsis:disabled {
  opacity: 1 !important;
  pointer-events: none;
  cursor: default;
  border-color: #284467;
  background: #101c30;
  color: #65738a;
  box-shadow: none;
}

@media (max-width: 980px) {
  .reviews-page-main {
    width: min(100% - 40px, 1280px);
  }

  .reviews-page-main {
    min-height: calc(100svh - 68px);
  }

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

  .reviews-pagination {
    width: calc((100% - var(--reviews-column-gap)) / 2);
    min-width: calc((100% - var(--reviews-column-gap)) / 2);
    max-width: calc((100% - var(--reviews-column-gap)) / 2);
  }
}

@media (max-width: 620px) {
  .reviews-page {
    --reviews-block-height: 620px;
  }

  .reviews-page-main {
    width: min(100% - 28px, 1280px);
  }

  .reviews-page-main {
    padding-top: 18px;
    gap: 14px;
  }

  .reviews-page-title {
    font-size: 24px;
  }

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

  .reviews-pagination-shell {
    overflow: visible;
  }

  .reviews-pagination {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    margin-inline: 0;
    gap: 2px;
  }

  .reviews-pagination .pagination-button,
  .reviews-pagination .pagination-ellipsis {
    height: 27px;
    font-size: 9px;
    border-radius: 3px;
  }
}

/* Reviews pagination corners: square inside, rounded only on the outer edge */
.reviews-pagination > * {
  border-radius: 0 !important;
}

.reviews-pagination > :first-child {
  border-radius: 4px 0 0 4px !important;
}

.reviews-pagination > :last-child {
  border-radius: 0 4px 4px 0 !important;
}

/* Disabled edge arrows keep their normal appearance on the first/last page. */
.reviews-pagination > .pagination-button:first-child:disabled,
.reviews-pagination > .pagination-button:first-child:disabled:hover,
.reviews-pagination > .pagination-button:last-child:disabled,
.reviews-pagination > .pagination-button:last-child:disabled:hover {
  pointer-events: none;
  cursor: default;
  opacity: 0.32;
  border-color: #284467;
  background: #101c30;
  color: #91a7c2;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Order details page — matched to the supplied PDF layout
   -------------------------------------------------------------------------- */
body[data-page="payment"] {
  background: #111827;
}

.order-details-shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.order-details-main {
  min-height: 659px;
  padding: 0;
  background: #111827;
}

.order-details-shell {
  padding-top: 49px;
}

.order-details-heading {
  width: min(821px, 100%);
  display: grid;
  gap: 8px;
}

.order-details-title {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.order-details-subtitle {
  margin: 0 0 0 15%;
  color: #c8d0de;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.checkout-grid--reference {
  margin-top: 25px;
  display: grid;
  grid-template-columns: minmax(0, 821px) minmax(0, 421px);
  gap: 38px;
  align-items: stretch;
}

.checkout-reference-card {
  height: 470px;
  padding: 28px 24px;
  overflow: hidden;
  border: 2px solid #26344d;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .2) 100%),
    #162033;
  box-shadow: none;
}

.checkout-reference-card--product {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-product-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.order-product-image {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #1e263d;
}

.order-product-image img {
  width: 66px;
  height: 52px;
  object-fit: contain;
}

.order-product-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

.order-product-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

.order-product-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.order-product-game {
  color: #8a95a8;
}

.order-product-availability {
  color: #06c168;
}

body[data-order-mode="sell"] .order-product-availability {
  color: #ff3e53;
}

.order-divider,
.order-payment-divider {
  width: 100%;
  height: 1px;
  flex: 0 0 1px;
  background: #2a3050;
}

.order-field {
  display: grid;
  gap: 6px;
  color: #8a95a8;
  font-size: 13px;
  line-height: 1.2;
}

.order-price-box,
.order-quantity-control {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #2a3050;
  border-radius: 8px;
  background: #1e2436;
}

.order-price-box {
  padding: 0 16px;
}

.order-price-box strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.order-price-box small {
  color: #8a95a8;
  font-size: 12px;
  line-height: 1;
}

.order-quantity-control {
  padding: 0 14px;
}

.order-quantity-control button {
  width: 30px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #2a3050;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.order-quantity-control button:hover {
  background: #334064;
}

.order-quantity-control output {
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.checkout-reference-card--payment {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.payment-methods--reference {
  height: 207px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 94px;
  align-content: start;
  gap: 8px 4px;
}

.payment-method--reference {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 94px;
  padding: 9px 10px 8px;
  display: block;
  overflow: hidden;
  border: 2px solid #26344d;
  border-radius: 8px;
  background: transparent;
  color: #26344d;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.payment-method--reference:hover {
  border-color: #355379;
}

.payment-method--reference img {
  position: absolute;
  left: 10px;
  top: 9px;
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: none;
}

.payment-method--reference span {
  position: absolute;
  left: 10px;
  right: 8px;
  bottom: 9px;
  overflow: hidden;
  color: inherit;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: clip;
}

.payment-method--reference i {
  display: none;
}

.payment-method--reference.is-selected {
  border-color: #2c82e9;
  background: rgba(44, 130, 233, .02);
  color: #2c82e9;
}

.payment-method--reference.is-selected:hover {
  border-color: #2c82e9;
}

.payment-method--reference.is-selected img {
  transform: none;
}

.payment-method--reference.is-selected i {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 2px solid #2c82e9;
  border-radius: 50%;
  background: transparent;
  color: #2c82e9;
  font-size: 15px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
}

.order-payment-divider {
  margin-top: 0;
}

.order-total-row {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-total-row span {
  color: #8a95a8;
  font-size: 14px;
  line-height: 1.2;
}

.order-total-row strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.order-buy-button {
  width: 100%;
  height: 52px;
  flex: 0 0 52px;
  border: 0;
  border-radius: 10px;
  background: #06c168;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: filter 140ms ease;
}

.order-buy-button:hover {
  filter: brightness(1.06);
}

body[data-order-mode="sell"] .order-buy-button {
  background: #ff3e53;
}

.order-security-note {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8a95a8;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.order-security-note img {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

@media (max-width: 1200px) {
  .checkout-grid--reference {
    grid-template-columns: minmax(0, 1fr) 421px;
    gap: 24px;
  }
}

@media (max-width: 920px) {
  .order-details-main {
    min-height: auto;
    padding-bottom: 48px;
  }

  .checkout-grid--reference {
    grid-template-columns: 1fr;
  }

  .checkout-reference-card {
    height: auto;
    min-height: 470px;
  }

  .checkout-reference-card--payment {
    width: min(421px, 100%);
  }
}

@media (max-width: 520px) {
  .order-details-shell {
    width: min(100% - 28px, 1280px);
  }

  .order-details-title {
    font-size: 25px;
  }

  .order-details-subtitle {
    font-size: 18px;
  }

  .checkout-reference-card {
    padding: 20px 16px;
  }

  .payment-methods--reference {
    width: 100%;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 88px;
  }

  .payment-method--reference {
    width: 100%;
    height: 88px;
  }

  .order-security-note {
    white-space: normal;
  }
}


/* Unified quantity input on the home, purchase and sale pages. */
.order-quantity-control.quantity-control {
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #19243a;
}
.order-quantity-control.quantity-control button {
  width: 45px;
  height: 46px;
  flex: 0 0 45px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #202d45;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.order-quantity-control.quantity-control button:hover {
  background: #263650;
}
.order-quantity-control.quantity-control input {
  height: 46px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Floating labels for editable fields
   -------------------------------------------------------------------------- */
.floating-field {
  position: relative;
  display: block;
  width: 100%;
  height: 44px;
  overflow: hidden;
  border: 1px solid #2a3050;
  border-radius: 8px;
  background: transparent;
  color: #8a95a8;
  cursor: text;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.floating-field:focus-within {
  border-color: #2c82e9;
  box-shadow: 0 0 0 2px rgba(44, 130, 233, .10);
}

.floating-field > input {
  width: 100%;
  height: 100%;
  padding: 14px 14px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  appearance: textfield;
  -moz-appearance: textfield;
}

.floating-field > input::-webkit-outer-spin-button,
.floating-field > input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.floating-field > span {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  max-width: calc(100% - 28px);
  overflow: hidden;
  transform: translateY(-50%);
  color: #8a95a8;
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: top 150ms ease, transform 150ms ease, font-size 150ms ease;
}

.floating-field:focus-within > span,
.floating-field.has-value > span {
  top: 7px;
  transform: none;
  font-size: 11px;
}

/* Floating quantity field on the main page keeps the +/- buttons. */
.field-block--floating {
  display: block;
  margin-bottom: 18px;
}

.home-quantity-field {
  position: relative;
  display: block;
  width: 100%;
  height: var(--home-quantity-height);
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #19243a;
}

.home-quantity-field:focus-within {
  border-color: transparent;
  box-shadow: none;
}

.home-quantity-field .quantity-control {
  width: 100%;
  height: var(--home-quantity-height);
  min-height: var(--home-quantity-height);
  border-radius: 6px;
  background: transparent;
}

.home-quantity-field .quantity-control button,
.home-quantity-field .quantity-control input {
  height: var(--home-quantity-height);
}

.home-quantity-field .quantity-control input {
  padding: 0 10px;
  box-shadow: none !important;
}

.home-quantity-field .quantity-control input:focus,
.home-quantity-field .quantity-control input:focus-visible {
  outline: none;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Order details page — exact layout from the supplied Pixso/PDF reference
   -------------------------------------------------------------------------- */
body[data-page="payment"] {
  min-height: 100vh;
  background: #0b1220;
}

body[data-page="payment"] .order-site-header {
  position: relative;
  top: auto;
  height: 68px;
  border-bottom: 1px solid #2a2f42;
  background: #0b1220;
  backdrop-filter: none;
}

body[data-page="payment"] .order-header-inner {
  width: 100%;
  height: 100%;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body[data-page="payment"] .order-header-inner .brand {
  gap: 6px;
  color: #2c82e9;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

body[data-page="payment"] .order-header-inner .brand-logo {
  width: 30px;
  height: 70px;
}

body[data-page="payment"] .order-header-inner .steam-button {
  width: auto;
  min-width: 203px;
  height: 40px;
  padding: 0 22px;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: #2c82e9;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

body[data-page="payment"] .order-header-inner .steam-button:hover {
  background: #2c82e9;
  transform: none;
  filter: brightness(1.05);
}

.order-details-main {
  min-height: 669px;
  padding: 0;
  overflow: hidden;
  background: #111827;
}

.order-details-shell {
  width: min(1280px, calc(100% - 160px));
  margin-inline: auto;
  padding-top: 31px;
}

.order-details-heading {
  width: 100%;
  display: block;
}

.order-details-title {
  margin: 0 0 0 15px;
  color: #fff;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
}

.order-details-subtitle {
  margin: 15px 0 0 97px;
  color: #c8d0de;
  font-size: 30px;
  line-height: 1.5;
  font-weight: 500;
}

.checkout-grid--reference {
  width: 1113px;
  margin: 12px 0 0 97px;
  display: grid;
  grid-template-columns: 659px 421px;
  gap: 33px;
  align-items: stretch;
}

.checkout-reference-card {
  width: 100%;
  height: 560px;
  overflow: hidden;
  border: 2px solid #26344d;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.checkout-reference-card--product {
  padding: 28px 24px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-product-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.order-product-image {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}

.order-product-image img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.order-product-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.order-product-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

.order-product-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
}

.order-product-game { color: #8a95a8; }
.order-product-availability { color: #06c168; }
body[data-order-mode="sell"] .order-product-availability { color: #ff3e53; }

.order-divider,
.order-payment-divider {
  width: 100%;
  height: 1px;
  flex: 0 0 1px;
  background: #2a3050;
}

.order-floating-field {
  height: var(--order-input-height);
  flex: 0 0 var(--order-input-height);
}

.order-floating-field > input[type="url"],
.order-floating-field > input[type="email"] {
  font-size: 14px;
  font-weight: 500;
}

.order-quantity-field > input {
  font-size: 18px;
  font-weight: 700;
}

.checkout-reference-card--payment {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.payment-methods--reference {
  width: 373px;
  height: 207px;
  flex: 0 0 207px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 122px);
  grid-template-rows: repeat(2, 94px);
  align-content: start;
  gap: 8px 4px;
}

.payment-method--reference {
  position: relative;
  width: 122px;
  height: 94px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 2px solid #26344d;
  border-radius: 8px;
  background: transparent;
  color: #26344d;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.payment-method--reference:hover {
  border-color: #355379;
}

.payment-method--reference img {
  display: none;
  position: absolute;
  left: 11px;
  top: 9px;
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

.payment-method--reference span {
  position: absolute;
  left: 11px;
  right: 6px;
  bottom: 8px;
  overflow: visible;
  color: inherit;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: clip;
}

.payment-method--reference small {
  position: absolute;
  right: 8px;
  top: 10px;
  color: inherit;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.payment-method--reference i {
  display: none;
}

.payment-method--reference.is-selected {
  border-color: #2c82e9;
  background: transparent;
  color: #2c82e9;
}

.payment-method--reference.is-selected:hover {
  border-color: #2c82e9;
}

.payment-method--reference.is-selected img {
  display: block;
}

.payment-method--reference.is-selected small {
  display: none;
}

.payment-method--reference.is-selected i {
  position: absolute;
  right: 11px;
  top: 9px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 3px solid #2c82e9;
  border-radius: 50%;
  background: transparent;
  color: #2c82e9;
  font-size: 16px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
}

.order-payment-divider {
  margin: 0;
}

.order-email-field {
  height: var(--order-input-height);
  flex: 0 0 var(--order-input-height);
}

.order-total-row {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-total-row span {
  color: #8a95a8;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
}

.order-total-row strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.order-buy-button {
  width: 100%;
  height: 52px;
  min-height: 52px;
  flex: 0 0 52px;
  border: 0;
  border-radius: 10px;
  background: #06c168;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: filter 140ms ease;
}

.order-buy-button:hover {
  filter: brightness(1.06);
}

body[data-order-mode="sell"] .order-buy-button {
  background: #ff3e53;
}

.order-security-note {
  width: 100%;
  min-height: 15px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8a95a8;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
}

.order-security-note img {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

body[data-page="payment"] .order-site-footer {
  min-height: 57px;
  margin: 0;
  border-top: 1px solid #26344d;
  background: #0b1220;
}

.order-footer-inner {
  width: 100%;
  min-height: 56px;
  padding: 0 80px;
  display: flex;
  align-items: center;
  color: #8a95a8;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
}

body[data-page="payment"] .success-panel {
  position: relative;
  z-index: 5;
  width: 1113px;
  margin: 18px 0 30px 97px;
}

@media (max-width: 1280px) {
  body[data-page="payment"] .order-header-inner { padding-inline: 40px; }

  .order-details-main {
    min-height: auto;
    padding-bottom: 40px;
    overflow: visible;
  }

  .order-details-shell {
    width: min(100% - 80px, 1280px);
  }

  .checkout-grid--reference {
    width: calc(100% - 97px);
    grid-template-columns: minmax(0, 1fr) 421px;
    gap: 24px;
  }

  body[data-page="payment"] .success-panel {
    width: calc(100% - 97px);
  }
}

@media (max-width: 980px) {
  .order-details-shell {
    width: min(100% - 48px, 820px);
  }

  .order-details-title,
  .order-details-subtitle,
  .checkout-grid--reference,
  body[data-page="payment"] .success-panel {
    margin-left: 0;
  }

  .checkout-grid--reference,
  body[data-page="payment"] .success-panel {
    width: 100%;
  }

  .checkout-grid--reference {
    grid-template-columns: 1fr;
  }

  .checkout-reference-card--payment {
    width: min(421px, 100%);
  }
}

@media (max-width: 560px) {
  body[data-page="payment"] .order-header-inner {
    padding-inline: 14px;
  }

  body[data-page="payment"] .order-header-inner .brand {
    font-size: 15px;
  }

  body[data-page="payment"] .order-header-inner .brand-logo {
    width: 24px;
    height: 56px;
  }

  body[data-page="payment"] .order-header-inner .steam-button {
    width: 42px;
    min-width: 42px;
    height: 38px;
    padding: 0;
  }

  body[data-page="payment"] .order-header-inner .steam-button span {
    display: none;
  }

  .order-details-shell {
    width: min(100% - 28px, 820px);
    padding-top: 24px;
  }

  .order-details-title {
    font-size: 27px;
  }

  .order-details-subtitle {
    margin-top: 10px;
    font-size: 21px;
  }

  .checkout-grid--reference {
    margin-top: 14px;
  }

  .checkout-reference-card {
    height: auto;
    min-height: 493px;
  }

  .checkout-reference-card--product,
  .checkout-reference-card--payment {
    padding: 20px 16px;
  }

  .payment-methods--reference {
    width: 100%;
    height: auto;
    flex-basis: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 94px);
  }

  .payment-method--reference {
    width: 100%;
  }

  .order-security-note {
    white-space: normal;
  }

  .order-footer-inner {
    padding: 18px 14px;
  }
}

/* CSS fallback: keep a label raised whenever its input already has a value. */
.floating-field:has(> input:not(:placeholder-shown)) > span,
.home-quantity-field:has(input:not(:placeholder-shown)) > span {
  top: 7px;
  transform: none;
  font-size: 11px;
}

.home-quantity-field:has(input:not(:placeholder-shown)) > span {
  top: 6px;
}

/* --------------------------------------------------------------------------
   Order details refinements from the latest supplied reference
   -------------------------------------------------------------------------- */
body[data-page="payment"] .order-auth-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

body[data-page="payment"] .order-account-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

body[data-page="payment"] .order-account-pill {
  height: 48px;
  padding: 5px 12px 5px 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #26344d;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
}

body[data-page="payment"] .order-account-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
}

body[data-page="payment"] .order-logout-button {
  width: 28px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  opacity: .34;
  cursor: pointer;
  transition: opacity 140ms ease;
}

body[data-page="payment"] .order-logout-button:hover {
  opacity: .72;
}

body[data-page="payment"] .order-logout-button img {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}

/* Product information order: item, divider, trade-link helper, input, stock, quantity. */
.checkout-reference-card--product {
  gap: 0;
}

.checkout-reference-card--product > .order-divider {
  margin-top: 20px;
}

.order-trade-block {
  width: 100%;
  margin-top: 17px;
}

.order-trade-help {
  width: max-content;
  max-width: 100%;
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a95a8;
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: color 140ms ease;
}

.order-trade-help:hover {
  color: #b7c1d0;
}

.order-trade-help img {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.order-trade-block .order-floating-field {
  margin-top: 7px;
}

.order-stock-line {
  margin: 18px 0 7px;
  color: #8a95a8;
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
}

/* Keep every supplied payment SVG visible and keep its existing 30px rendered size. */
.payment-method--reference img,
.payment-method--reference.is-selected img {
  display: block;
  width: 30px;
  height: 30px;
  transform: none;
  transition: none;
}

/* Floating labels start vertically centered, then slide upward on click/focus. */
.floating-field > input {
  padding: 17px 14px 3px;
}

.floating-field > span {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
  transition:
    top 180ms ease,
    transform 180ms ease,
    font-size 180ms ease,
    color 180ms ease;
}

.floating-field:focus-within > span,
.floating-field.is-focused > span,
.floating-field.has-value > span {
  top: 6px;
  transform: translateY(0);
  font-size: 11px;
}

.floating-field:focus-within > span,
.floating-field.is-focused > span {
  color: #9ba8bb;
}

@media (max-width: 560px) {
  body[data-page="payment"] .order-account-area {
    gap: 4px;
  }

  body[data-page="payment"] .order-account-pill {
    height: 40px;
    padding: 3px 7px 3px 3px;
    font-size: 12px;
  }

  body[data-page="payment"] .order-account-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  body[data-page="payment"] .order-logout-button {
    width: 24px;
  }
}

/* Pixel-alignment corrections for the 1440 x 794 reference canvas. */
body[data-page="payment"] .order-header-inner {
  padding-inline: 80px;
}

.order-details-title {
  margin-left: 0;
}

.checkout-reference-card {
  background: #162033;
}

.checkout-reference-card--product {
  padding: 26px 22px 26px 18px;
}

.checkout-reference-card--product > .order-divider {
  margin-top: 19px;
}

.checkout-reference-card--payment {
  padding: 26px 22px;
}

.payment-methods--reference {
  gap: 10px 4px;
}

@media (max-width: 1280px) {
  body[data-page="payment"] .order-header-inner {
    padding-inline: 40px;
  }
}

@media (max-width: 560px) {
  body[data-page="payment"] .order-header-inner {
    padding-inline: 14px;
  }

  .checkout-reference-card--product,
  .checkout-reference-card--payment {
    padding: 20px 16px;
  }
}

/* Final alignment with the latest reference. */
body[data-page="payment"] .order-header-inner {
  padding: 0 60px 0 80px;
}

body[data-page="payment"] .order-account-area {
  gap: 15px;
}

body[data-page="payment"] .order-account-pill {
  padding-right: 15px;
}

.order-trade-block .order-floating-field {
  margin-top: 3px;
}

@media (max-width: 1280px) {
  body[data-page="payment"] .order-header-inner {
    padding-inline: 40px;
  }
}

@media (max-width: 560px) {
  body[data-page="payment"] .order-header-inner {
    padding-inline: 14px;
  }
}


/* --------------------------------------------------------------------------
   Requested form refinements
   -------------------------------------------------------------------------- */

body[data-page="payment"] .order-floating-field {
  height: var(--order-input-height);
  min-height: var(--order-input-height);
  flex-basis: var(--order-input-height);
}

body[data-page="payment"] .order-floating-field > input {
  padding: 20px 14px 4px;
}

body[data-page="payment"] .order-floating-field:focus-within > span,
body[data-page="payment"] .order-floating-field.is-focused > span,
body[data-page="payment"] .order-floating-field.has-value > span,
body[data-page="payment"] .order-floating-field:has(> input:not(:placeholder-shown)) > span {
  top: 7px;
}

.order-policy-checkbox {
  width: 100%;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: #dce4ef;
  font-size: 11px;
  line-height: 1.45;
  cursor: pointer;
}

.order-policy-checkbox input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #2c82e9;
  cursor: pointer;
}

.order-policy-checkbox a {
  color: #9ba9ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.registration-modal--steam-only {
  max-width: 610px;
}

@media (max-width: 820px) {
  .checkout-reference-card {
    min-height: 560px;
  }
}

/* --------------------------------------------------------------------------
   Final layout refinements: order footer/header and compact home checkout
   -------------------------------------------------------------------------- */

/* Order pages: keep the header dimensions identical to the main page. */
body[data-page="payment"] .order-site-header {
  height: 68px;
}

body[data-page="payment"] .order-header-inner {
  width: min(1380px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 56px;
}

body[data-page="payment"] .order-header-inner .brand {
  gap: 9px;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

body[data-page="payment"] .order-header-inner .brand-logo {
  width: 26px;
  height: 36px;
}

body[data-page="payment"] .order-auth-slot {
  grid-column: 3;
}

body[data-page="payment"] .order-header-inner .steam-button {
  width: auto;
  min-width: 190px;
  height: 38px;
  padding: 0 18px;
  gap: 9px;
  border: 1px solid rgba(95, 166, 255, 0.35);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 6px 18px rgba(44, 130, 233, 0.2);
}

body[data-page="payment"] .order-account-pill {
  height: 38px;
  padding: 4px 10px 4px 5px;
  gap: 7px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

body[data-page="payment"] .order-account-avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

body[data-page="payment"] .order-logout-button {
  height: 38px;
}

/* Leave a clear space between the order cards and the footer. */
body[data-page="payment"] .order-details-main {
  min-height: auto;
  padding-bottom: 48px;
  overflow: visible;
}

/* Main page: remove the large automatic gap below the quantity input. */
body[data-page="home"] .exchange-card .field-block--floating {
  margin-bottom: 0;
}

body[data-page="home"] .exchange-card .total-row {
  margin-top: 0;
  padding-top: 14px;
}

@media (max-width: 560px) {
  body[data-page="payment"] .order-site-header {
    height: 62px;
  }

  body[data-page="payment"] .order-header-inner {
    width: min(1380px, calc(100% - 28px));
    gap: 10px;
  }

  body[data-page="payment"] .order-header-inner .brand {
    font-size: 15px;
  }

  body[data-page="payment"] .order-header-inner .brand-logo {
    width: 24px;
    height: 34px;
  }

  body[data-page="payment"] .order-header-inner .steam-button {
    width: 40px;
    min-width: 40px;
    height: 38px;
    padding: 0;
  }

  body[data-page="payment"] .order-details-main {
    padding-bottom: 32px;
  }
}


/* --------------------------------------------------------------------------
   Targeted corrections requested after the homepage reference update
   -------------------------------------------------------------------------- */

/* The line between payment methods and the email field is intentionally removed. */
body[data-page="payment"] .order-payment-divider {
  display: none;
}

/* Align only the order-page H1 with the logo in the shared navigation header. */
@media (min-width: 1281px) {
  body[data-page="payment"] .order-details-title {
    margin-left: clamp(-56px, calc((100vw - 1540px) / 2), -50px);
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  body[data-page="payment"] .order-details-title {
    margin-left: -16px;
  }
}

/* --------------------------------------------------------------------------
   Real Steam account state in the main navigation
   -------------------------------------------------------------------------- */
.header-auth-slot,
.header-account-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-account-area {
  gap: 10px;
}

.header-account-pill {
  height: 38px;
  max-width: 210px;
  padding: 4px 11px 4px 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #26344d;
  border-radius: 7px;
  background: #111c31;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.header-account-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-account-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  object-fit: cover;
}

.header-logout-button {
  width: 28px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  opacity: .42;
  cursor: pointer;
  transition: opacity 140ms ease;
}

.header-logout-button:hover {
  opacity: .8;
}

.header-logout-button img {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
}

.order-account-pill {
  text-decoration: none;
}

@media (max-width: 720px) {
  .header-account-pill {
    width: 38px;
    padding: 4px;
  }

  .header-account-pill span,
  .header-logout-button {
    display: none;
  }
}


/* Home page fields use the same visual style as the order-details page. */
body[data-page="home"] .exchange-card .field-block {
  gap: 6px;
  margin-bottom: 18px;
  color: #8a95a8;
  font-size: 13px;
  line-height: 1.2;
}

body[data-page="home"] .exchange-card .price-box {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #2a3050;
  border-radius: 8px;
  background: #1e2436;
}

body[data-page="home"] .exchange-card .price-box strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

body[data-page="home"] .exchange-card .price-box small {
  color: #8a95a8;
  font-size: 12px;
  line-height: 1;
}

body[data-page="home"] .home-order-quantity-field {
  width: 100%;
  height: var(--order-input-height);
  min-height: var(--order-input-height);
  flex: 0 0 var(--order-input-height);
  border: 1px solid #2a3050;
  border-radius: 8px;
  background: transparent;
}

body[data-page="home"] .home-order-quantity-field > input {
  padding: 20px 14px 4px;
  font-size: 18px;
  font-weight: 700;
}

body[data-page="home"] .home-order-quantity-field > span {
  color: #8a95a8;
}

body[data-page="home"] .home-order-quantity-field:focus-within {
  border-color: #2a3050;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Dynamic payment / payout page
   -------------------------------------------------------------------------- */
.payment-flow-main {
  min-height: calc(100vh - 68px);
  padding: 46px 0 64px;
  background: #111827;
}

.payment-flow-shell {
  width: min(1184px, calc(100% - 120px));
  margin: 0 auto;
}

.payment-flow-heading {
  margin-bottom: 24px;
}

.payment-flow-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.payment-flow-card {
  border: 2px solid #26344d;
  border-radius: 12px;
  background: #172033;
  box-shadow: none;
}

.payment-flow-card--summary {
  padding: 24px;
}

.payment-flow-card--instructions {
  padding: 28px;
}

.payment-flow-badge {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 11px;
  border: 1px solid #2a3050;
  border-radius: 999px;
  background: #1e2436;
  color: #8a95a8;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

.payment-flow-card h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.payment-summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.payment-summary-list div {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a3050;
}

.payment-summary-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.payment-summary-list dt {
  color: #8a95a8;
  font-size: 12px;
  line-height: 1.2;
}

.payment-summary-list dd {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
  word-break: break-word;
}

.payment-flow-note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #2a3050;
  border-radius: 8px;
  background: #111827;
  color: #8a95a8;
  font-size: 12px;
  line-height: 1.45;
}

.payment-flow-note img {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.payment-method-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.payment-method-heading img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #111827;
}

.payment-method-heading span {
  display: block;
  margin-bottom: 4px;
  color: #8a95a8;
  font-size: 12px;
  line-height: 1;
}

.payment-method-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
}

.method-content {
  display: grid;
  gap: 18px;
}

.method-lead {
  margin: 0;
  color: #9ba8bb;
  font-size: 15px;
  line-height: 1.55;
}

.payment-detail-box {
  display: grid;
  overflow: hidden;
  border: 1px solid #2a3050;
  border-radius: 8px;
  background: #111827;
}

.payment-detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border-bottom: 1px solid #2a3050;
}

.payment-detail-row:last-child {
  border-bottom: 0;
}

.payment-detail-row span {
  color: #8a95a8;
  font-size: 12px;
  line-height: 1.25;
}

.payment-detail-row strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  word-break: break-word;
}

.copy-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #2c82e9;
  border-radius: 7px;
  background: transparent;
  color: #9ec8ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(44, 130, 233, .12);
}

.method-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: method-step;
}

.method-steps li {
  position: relative;
  min-height: 34px;
  padding-left: 44px;
  color: #9ba8bb;
  font-size: 14px;
  line-height: 1.45;
  counter-increment: method-step;
}

.method-steps li::before {
  content: counter(method-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1e2436;
  color: #2c82e9;
  font-size: 11px;
  font-weight: 800;
}

.payment-warning {
  padding: 13px 14px;
  border: 1px solid rgba(255, 184, 77, .35);
  border-radius: 8px;
  background: rgba(255, 184, 77, .08);
  color: #ffd18a;
  font-size: 13px;
  line-height: 1.45;
}

.payment-flow-input {
  height: var(--order-input-height);
  min-height: var(--order-input-height);
}

.payment-flow-input > input {
  padding: 20px 14px 4px;
}

.payment-flow-actions {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.payment-secondary-link,
.payment-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #9ba8bb;
  font-size: 14px;
  text-decoration: none;
}

.payment-secondary-link:hover {
  color: #fff;
}

.payment-flow-result {
  margin-top: 32px;
}

@media (max-width: 920px) {
  .payment-flow-shell {
    width: min(100% - 32px, 640px);
  }

  .payment-flow-grid {
    grid-template-columns: 1fr;
  }

  .payment-detail-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .copy-button {
    width: fit-content;
  }
}


.sbp-qr-box {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sbp-qr-image-wrap {
  padding: 14px;
  border: 1px solid #2a3050;
  border-radius: 12px;
  background: #111827;
}

.sbp-qr-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.card-payment-demo {
  padding: 10px 0 4px;
}

.card-payment-panel {
  padding: 18px 18px 16px;
  border-radius: 12px;
  background: #e5e5e5;
}

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

.card-form-row {
  display: grid;
  gap: 8px;
}

.card-form-row--single {
  margin-bottom: 14px;
}

.card-form-row--owner {
  margin-bottom: 0;
}

.card-form-label {
  color: #ff1f1f;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.card-form-label--owner {
  color: #495970;
}

.card-input-wrap {
  position: relative;
}

.card-input-wrap--icon .card-demo-input {
  padding-right: 64px;
}

.card-demo-input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #ff3b30;
  border-radius: 4px;
  background: #ffffff;
  color: #55657d;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  outline: 0;
}

.card-demo-input::placeholder {
  color: #9aa7ba;
}

.card-demo-input:focus {
  border-color: #ff3b30;
  box-shadow: 0 0 0 1px rgba(255, 59, 48, .15);
}

.card-demo-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 40px;
  height: 30px;
  transform: translateY(-50%);
  border-radius: 4px;
  background:
    linear-gradient(to bottom, transparent 0, transparent 6px, #8c8c8c 6px, #8c8c8c 13px, transparent 13px),
    linear-gradient(#8c8c8c, #8c8c8c);
  background-size: 100% 100%, 40px 30px;
  background-repeat: no-repeat;
}

.card-field-note {
  margin: 0;
  color: #ff1f1f;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 920px) {
  .sbp-qr-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .card-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card-payment-panel {
    padding: 16px 14px 14px;
  }

  .card-demo-input {
    font-size: 16px;
  }
}


/* --------------------------------------------------------------------------
   Exact crypto checkout layouts from the supplied references
   -------------------------------------------------------------------------- */

body.is-crypto-checkout {
  background: #0b1220;
}

body.is-crypto-checkout .payment-flow-main {
  min-height: calc(100vh - 68px);
  padding: 0 0 96px;
  background: #111827;
}

body.is-crypto-checkout .payment-flow-shell {
  width: 793px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding-top: 38px;
}

.crypto-reference-section {
  width: 100%;
}

.crypto-reference-title {
  margin: 0 0 8px;
  color: #d9dfe8;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.crypto-reference-grid {
  display: grid;
  grid-template-columns: 469px 300px;
  gap: 26px;
  align-items: start;
}

.crypto-reference-card {
  min-height: 476px;
  border: 2px solid #26344d;
  border-radius: 8px;
  background: #172033;
  box-shadow: none;
}

.crypto-reference-card--left {
  padding: 24px 12px 22px;
}

.crypto-reference-card--right {
  padding: 34px 16px 0;
}

.crypto-reference-order {
  margin: 0 0 25px;
  color: #778397;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 400;
}

.crypto-reference-steps {
  display: grid;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crypto-reference-steps li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-height: 23px;
}

.crypto-reference-steps span {
  color: #26344d;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.crypto-reference-steps strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.crypto-reference-help {
  margin-top: 26px;
}

.crypto-reference-help p {
  margin: 0 0 17px;
  color: #778397;
  font-size: 11px;
  line-height: 1.2;
}

.crypto-reference-help a,
.crypto-reference-help img {
  display: block;
  width: 30px;
  height: 30px;
}

.crypto-reference-policy {
  width: 375px;
  max-width: 100%;
  margin: 34px 0 0;
  color: #778397;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}

.crypto-reference-policy a {
  color: #8a95a8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crypto-reference-method-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
}

.crypto-reference-method-title img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.crypto-reference-method-title h2 {
  margin: 0;
  color: #d9dfe8;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.crypto-reference-kicker {
  margin: 0 0 15px;
  color: #8a95a8;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.crypto-reference-input-group {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.crypto-reference-input-group span,
.crypto-reference-qr-block > span {
  display: block;
  margin: 0 0 6px;
  color: #8a95a8;
  font-size: 11px;
  line-height: 1.2;
}

.crypto-reference-input-group input {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  border: 1px solid #26344d;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  outline: 0;
}

.crypto-reference-input-group input::placeholder {
  color: #596579;
}

.crypto-reference-input-group input:focus {
  border-color: #2c82e9;
}

.crypto-reference-warning {
  height: 37px;
  margin: 0 0 23px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e0b86f;
  border-radius: 6px;
  background: rgba(224, 184, 111, .08);
  color: #d9bd7f;
  font-size: 11px;
  line-height: 1.2;
}

.crypto-reference-warning img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.crypto-reference-qr-block {
  margin: 0 0 13px;
}

.crypto-reference-qr-card {
  width: 100%;
  height: 184px;
  padding: 15px 10px 8px;
  border: 1px solid #26344d;
  border-radius: 6px;
  background: transparent;
  text-align: center;
}

.crypto-reference-qr {
  display: block;
  width: 135px;
  height: 135px;
  margin: 0 auto 6px;
  object-fit: contain;
}

.crypto-reference-qr-card p {
  margin: 0;
  color: #d9dfe8;
  font-size: 11px;
  line-height: 1.2;
  word-break: break-all;
}

.crypto-reference-total {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 15px;
}

.crypto-reference-total span {
  color: #8a95a8;
  font-size: 13px;
  line-height: 1;
}

.crypto-reference-total strong {
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.crypto-reference-button {
  width: 100%;
  height: 51px;
  border: 0;
  border-radius: 6px;
  background: #06c168;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.crypto-reference-button--sell {
  background: #f53249;
}

.crypto-reference-button:hover {
  filter: brightness(1.05);
}

.crypto-reference-security {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 17px;
  color: #8a95a8;
  font-size: 11px;
  line-height: 1;
}

.crypto-reference-security img {
  width: 13px;
  height: 13px;
}

.crypto-reference-result {
  margin-top: 32px;
}

@media (max-width: 880px) {
  body.is-crypto-checkout .payment-flow-shell {
    width: min(100% - 32px, 520px);
    padding-top: 28px;
  }

  .crypto-reference-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .crypto-reference-card {
    min-height: auto;
  }

  .crypto-reference-card--left,
  .crypto-reference-card--right {
    padding: 22px 16px;
  }

  .crypto-reference-title {
    font-size: 28px;
  }
}
