:root {
  color-scheme: dark;
  --checkout-bg: #030303;
  --checkout-text: #f0efeb;
  --checkout-muted: rgba(240, 239, 235, 0.55);
  --checkout-faint: rgba(240, 239, 235, 0.28);
  --checkout-border: rgba(240, 239, 235, 0.14);
  --checkout-border-strong: rgba(240, 239, 235, 0.26);
  --checkout-glass: rgba(15, 15, 16, 0.18);
  --checkout-glass-raised: rgba(20, 20, 22, 0.3);
  --checkout-accent: #78879a;
  --checkout-accent-soft: rgba(120, 135, 154, 0.2);
  --checkout-pay: #9caf9f;
  --checkout-pay-strong: #b2c3b5;
  --checkout-danger: #d59b95;
  --checkout-safe-bottom: max(10px, env(safe-area-inset-bottom));
  --checkout-actions-space: 230px;
  --checkout-font: "Onest", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --checkout-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--checkout-bg);
  scroll-behavior: smooth;
}

body.checkout-page {
  position: relative;
  min-width: 0;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  color: var(--checkout-text);
  background: var(--checkout-bg);
  font: 400 16px/1.45 var(--checkout-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.checkout-page::selection {
  color: #050505;
  background: var(--checkout-text);
}

body.checkout-page button,
body.checkout-page input {
  font: inherit;
}

body.checkout-page button {
  cursor: pointer;
}

body.checkout-page [hidden] {
  display: none !important;
}

body.checkout-page :focus-visible {
  outline: 2px solid rgba(214, 221, 230, 0.9);
  outline-offset: 4px;
}

.checkout-background,
.checkout-background__veil {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.checkout-background {
  z-index: 0;
  display: block;
  opacity: 0.72;
}

.checkout-background__veil {
  z-index: 1;
  background:
    radial-gradient(circle at 72% 18%, transparent 0, rgba(3, 3, 3, 0.08) 36%, rgba(3, 3, 3, 0.42) 82%),
    linear-gradient(90deg, rgba(3, 3, 3, 0.22), transparent 34%, rgba(3, 3, 3, 0.12) 72%, rgba(3, 3, 3, 0.3)),
    linear-gradient(180deg, rgba(3, 3, 3, 0.12), transparent 23%, transparent 70%, rgba(3, 3, 3, 0.64));
}

.checkout-header {
  z-index: 50;
}

.checkout-header::after {
  opacity: 1;
}

.checkout-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 920px);
  min-height: 100svh;
  margin-inline: auto;
  place-items: start center;
  padding: clamp(108px, 13vh, 142px) 20px max(clamp(230px, 29vh, 284px), var(--checkout-actions-space));
  transition: padding-bottom 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.checkout-layout {
  width: 100%;
}

.checkout-flow {
  width: 100%;
}

.checkout-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  width: min(100%, 760px);
  margin: 0 auto clamp(22px, 4vh, 38px);
  color: var(--checkout-muted);
  font: 650 9px/1 var(--checkout-mono);
  letter-spacing: 0.15em;
}

.checkout-progress > span:first-child {
  color: var(--checkout-text);
}

.checkout-progress > i {
  grid-column: 1 / -1;
  position: relative;
  height: 1px;
  margin-top: 9px;
  overflow: hidden;
  background: rgba(240, 239, 235, 0.12);
}

.checkout-progress > i > b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--checkout-accent);
  box-shadow: 0 0 18px rgba(120, 135, 154, 0.42);
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.checkout-stage-stack {
  position: relative;
  display: grid;
  width: min(100%, 760px);
  margin-inline: auto;
}

.checkout-stage {
  grid-area: 1 / 1;
  width: 100%;
  scroll-margin-bottom: var(--checkout-actions-space);
}

.checkout-stage[class*="is-entering-"],
.checkout-stage[class*="is-exiting-"] {
  pointer-events: none;
  will-change: opacity, filter, transform;
}

.checkout-stage.is-entering-forward { animation: checkout-stage-forward-in 540ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.checkout-stage.is-exiting-forward { animation: checkout-stage-forward-out 540ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.checkout-stage.is-entering-back { animation: checkout-stage-back-in 540ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.checkout-stage.is-exiting-back { animation: checkout-stage-back-out 540ms cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes checkout-stage-forward-in {
  from {
    opacity: 0;
    filter: blur(16px);
    transform: translate3d(0, 24px, 0) scale(0.975);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes checkout-stage-forward-out {
  to {
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(0, -18px, 0) scale(1.015);
  }
}

@keyframes checkout-stage-back-in {
  from { opacity: 0; filter: blur(16px); transform: translate3d(0, -22px, 0) scale(0.975); }
}

@keyframes checkout-stage-back-out {
  to { opacity: 0; filter: blur(14px); transform: translate3d(0, 18px, 0) scale(1.015); }
}

.checkout-flow.is-transitioning .checkout-progress {
  animation: checkout-progress-shift 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.checkout-flow.is-transitioning .checkout-actions {
  animation: checkout-actions-morph 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes checkout-progress-shift { 50% { opacity: 0.54; filter: blur(2px); transform: translateY(-2px); } }
@keyframes checkout-actions-morph { 45% { border-color: rgba(120, 135, 154, 0.28); transform: translateX(50%) translateY(4px) scale(0.985); } }

.checkout-stage__head {
  display: grid;
  max-width: 650px;
  margin: 0 0 clamp(26px, 4vh, 38px);
}

.checkout-stage__head > p,
.result > p {
  margin: 0 0 13px;
  color: var(--checkout-muted);
  font: 650 9px/1 var(--checkout-mono);
  letter-spacing: 0.16em;
}

.checkout-stage__head h1,
.result h1 {
  margin: 0;
  color: var(--checkout-text);
  font-size: clamp(52px, 8vw, 82px);
  font-weight: 430;
  line-height: 0.88;
  letter-spacing: -0.072em;
}

.checkout-stage__head > span,
.result > span {
  max-width: 520px;
  margin-top: 19px;
  color: var(--checkout-muted);
  font-size: 14px;
  line-height: 1.55;
}

.checkout-stage__head > span b {
  color: var(--checkout-text);
  font-weight: 520;
}

.checkout-stage__head--compact {
  margin-bottom: clamp(28px, 5vh, 46px);
}

.checkout-glass {
  position: relative;
  border: 1px solid var(--checkout-border);
  background: var(--checkout-glass);
  box-shadow:
    -1px 0 0 rgba(209, 125, 125, 0.07),
    1px 0 0 rgba(113, 151, 196, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(1px) saturate(1.08);
  -webkit-backdrop-filter: blur(1px) saturate(1.08);
}

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

.roller-card {
  --wheel-height: 232px;
  --wheel-item: 58px;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 28px;
}

.roller-card > header {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 10px;
  color: var(--checkout-muted);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.68), rgba(5, 5, 5, 0));
  font: 650 8px/1 var(--checkout-mono);
  letter-spacing: 0.13em;
  pointer-events: none;
}

.roller-card > header b {
  overflow: hidden;
  color: var(--checkout-text);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-wheel__window {
  position: relative;
  height: var(--wheel-height);
  overflow: hidden;
  perspective: 620px;
}

.checkout-wheel {
  position: relative;
  z-index: 2;
  display: block;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc((var(--wheel-height) - var(--wheel-item)) / 2) 12px;
  scroll-padding-block: calc((var(--wheel-height) - var(--wheel-item)) / 2);
  scrollbar-width: none;
  scroll-snap-type: y proximity;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to bottom, transparent, black 17%, black 83%, transparent);
}

.roller-card.is-coasting .checkout-wheel { scroll-snap-type: none; }

.checkout-wheel::-webkit-scrollbar {
  display: none;
}

.checkout-wheel button {
  --wheel-opacity: 0.32;
  --wheel-scale: 0.86;
  --wheel-rotate: 0deg;
  --wheel-blur: 1px;
  display: grid;
  width: 100%;
  height: var(--wheel-item);
  min-height: var(--wheel-item);
  place-items: center;
  padding: 0 8px;
  border: 0;
  border-radius: 17px;
  color: var(--checkout-text);
  background: transparent;
  opacity: var(--wheel-opacity);
  filter: blur(var(--wheel-blur));
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: perspective(560px) rotateX(var(--wheel-rotate)) scale(var(--wheel-scale));
  transform-origin: center;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease, color 240ms ease;
  will-change: transform, opacity, filter;
}

.checkout-wheel button strong {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 430;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.checkout-wheel button.is-selected {
  --wheel-opacity: 1;
  --wheel-scale: 1;
  color: #d8d6cf;
  filter: none;
  text-shadow: 0 0 24px rgba(120, 135, 154, 0.14);
}

.checkout-wheel__focus {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  left: 0;
  height: var(--wheel-item);
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  pointer-events: none;
}

.checkout-wheel__focus::before,
.checkout-wheel__focus::after {
  position: absolute;
  top: auto;
  bottom: 8px;
  width: 26px;
  height: 1px;
  border-radius: 0;
  background: var(--checkout-accent);
  content: "";
  box-shadow: 0 0 18px rgba(120, 135, 154, 0.24);
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

.checkout-wheel__focus::before {
  left: 50%;
  transform: translateX(-50%);
}

.checkout-wheel__focus::after {
  display: none;
}

.roller-card.is-coasting .checkout-wheel__focus::before {
  width: 44px;
  opacity: 0.82;
}

.roller-card.is-rolling .checkout-wheel__focus::before {
  animation: checkout-wheel-line-breathe 520ms ease both;
}

@keyframes checkout-wheel-line-breathe { 50% { width: 38px; opacity: 1; } }

.promo-card {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 24px;
  scroll-margin-bottom: var(--checkout-actions-space);
  transition: border-color 240ms ease, background 240ms ease;
}

.promo-card.is-open,
.promo-card.has-promo {
  border-color: rgba(120, 135, 154, 0.36);
  background: rgba(20, 22, 25, 0.26);
}

.promo-card.has-promo {
  animation: promo-accepted 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes promo-accepted {
  45% {
    border-color: rgba(184, 197, 213, 0.62);
    box-shadow: 0 0 0 5px rgba(120, 135, 154, 0.08), 0 24px 70px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
  }
}

.promo-toggle {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border: 0;
  color: var(--checkout-text);
  text-align: left;
  background: transparent;
}

.promo-toggle > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.promo-toggle i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--checkout-border);
  border-radius: 11px;
  color: var(--checkout-muted);
  font: 550 13px/1 var(--checkout-mono);
  font-style: normal;
  background: rgba(255, 255, 255, 0.025);
}

.promo-toggle strong {
  font-size: 14px;
  font-weight: 520;
}

.promo-toggle > b {
  color: var(--checkout-muted);
  font-size: 22px;
  font-weight: 350;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms ease;
}

.promo-card.is-open .promo-toggle > b {
  color: var(--checkout-text);
  transform: rotate(45deg);
}

.promo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 0 18px 18px;
  animation: promo-panel-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.promo-panel.is-closing {
  animation: promo-panel-out 180ms ease both;
}

@keyframes promo-panel-in {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-10px);
  }
}

@keyframes promo-panel-out {
  to {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(-6px);
  }
}

.checkout-field {
  display: block;
}

.checkout-field > span {
  display: block;
  margin: 0 0 8px;
  color: var(--checkout-muted);
  font: 620 9px/1 var(--checkout-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-field input {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid var(--checkout-border);
  border-radius: 15px;
  color: var(--checkout-text);
  outline: 0;
  background: rgba(3, 3, 3, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.checkout-field input:focus {
  border-color: rgba(184, 197, 213, 0.58);
  background: rgba(8, 8, 9, 0.7);
  box-shadow: 0 0 0 4px rgba(120, 135, 154, 0.09);
}

.checkout-field input::placeholder {
  color: rgba(240, 239, 235, 0.28);
}

.checkout-field--hero {
  margin-top: 18px;
}

.checkout-field--hero input {
  min-height: 72px;
  padding-inline: 20px;
  border-radius: 20px;
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: -0.025em;
}

.checkout-field--code input {
  min-height: 86px;
  border-radius: 22px;
  font: 500 clamp(28px, 7vw, 52px)/1 var(--checkout-mono);
  letter-spacing: 0.24em;
  text-align: center;
}

.checkout-status {
  min-height: 18px;
  margin: 10px 2px 0;
  color: var(--checkout-muted);
  font-size: 12px;
}

.checkout-status.is-error,
.form-error {
  color: var(--checkout-danger);
}

.promo-card > .checkout-status:empty {
  display: none;
}

.promo-card > .checkout-status:not(:empty) {
  padding: 0 18px 15px;
}

.selection-summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 20px;
}

.selection-summary span {
  color: var(--checkout-muted);
  font: 620 8px/1 var(--checkout-mono);
  letter-spacing: 0.14em;
}

.selection-summary strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 520;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
}

.code-actions button {
  padding: 0;
  border: 0;
  color: var(--checkout-muted);
  text-decoration: underline;
  text-decoration-color: rgba(240, 239, 235, 0.22);
  text-underline-offset: 4px;
  background: transparent;
  font-size: 12px;
}

.code-actions button:hover {
  color: var(--checkout-text);
}

.payment-art {
  position: relative;
  display: grid;
  min-height: clamp(250px, 34vw, 330px);
  overflow: hidden;
  place-items: center;
  border-radius: 30px;
}

.payment-art::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(240, 239, 235, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 239, 235, 0.025) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  mask-image: radial-gradient(circle, #000, transparent 76%);
}

.payment-art__scene {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 28px 18px 46px;
  animation: payment-scene-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.payment-art__scene pre {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(240, 239, 235, 0.9);
  font: 500 clamp(10px, 2.2vw, 18px)/1.45 var(--checkout-mono);
  letter-spacing: 0.02em;
  text-shadow: -1px 0 rgba(210, 122, 122, 0.2), 1px 0 rgba(116, 153, 202, 0.24);
  white-space: pre;
  animation: ascii-float 5.6s ease-in-out infinite;
}

.payment-art footer {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  color: var(--checkout-muted);
  font: 620 8px/1 var(--checkout-mono);
  letter-spacing: 0.13em;
}

.payment-art footer b {
  color: var(--checkout-pay);
  font-weight: 650;
}

@keyframes payment-scene-in {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.94) translateY(12px);
  }
}

@keyframes ascii-float {
  50% {
    transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  }
}

.ascii-stack {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 430px);
  min-height: 205px;
  place-items: center;
  perspective: 700px;
}

.ascii-stack pre,
.payment-art__scene .ascii-stack pre {
  grid-area: 1 / 1;
  font-size: clamp(10px, 1.65vw, 15px);
  line-height: 1.35;
  animation: none;
}

.ascii-stack > strong {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  color: rgba(240, 239, 235, 0.7);
  font: 620 9px/1 var(--checkout-mono);
  letter-spacing: 0.16em;
  text-align: center;
}

.ascii-stack--card {
  animation: ascii-card-float 5.2s ease-in-out infinite;
}

.payment-art__scene .ascii-stack--card pre.ascii-frame--1 {
  animation: card-frame-one 2.6s steps(1, end) infinite;
}

.payment-art__scene .ascii-stack--card pre.ascii-frame--2 {
  opacity: 0;
  animation: card-frame-two 2.6s steps(1, end) infinite;
}

.ascii-stack--card::after {
  position: absolute;
  top: 24%;
  bottom: 25%;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(240, 239, 235, 0.1), transparent);
  content: "";
  filter: blur(7px);
  opacity: 0;
  transform: translateX(-170%) skewX(-18deg);
  animation: ascii-card-shimmer 3.6s ease-in-out infinite;
}

@keyframes ascii-card-float {
  50% { transform: translateY(-5px) rotateX(2deg) rotateY(-2deg); }
}

@keyframes card-frame-one { 0%, 45%, 100% { opacity: 1; } 46%, 99% { opacity: 0; } }
@keyframes card-frame-two { 0%, 45%, 100% { opacity: 0; } 46%, 99% { opacity: 1; } }

@keyframes ascii-card-shimmer {
  18% { opacity: 0; transform: translateX(-170%) skewX(-18deg); }
  42% { opacity: 0.76; }
  64%, 100% { opacity: 0; transform: translateX(170%) skewX(-18deg); }
}

.ascii-stack--sbp {
  min-height: 220px;
}

.payment-art__scene .ascii-stack--sbp pre.ascii-frame {
  color: rgba(240, 239, 235, 0.86);
  font-size: clamp(8px, 1.5vw, 13px);
  line-height: 1.16;
  text-align: center;
}

.payment-art__scene .ascii-stack--sbp pre.ascii-frame--1 { animation: sbp-frame-one 2.2s steps(1, end) infinite; }
.payment-art__scene .ascii-stack--sbp pre.ascii-frame--2 { opacity: 0; animation: sbp-frame-two 2.2s steps(1, end) infinite; }

@keyframes sbp-frame-one { 0%, 46%, 100% { opacity: 1; } 47%, 99% { opacity: 0; } }
@keyframes sbp-frame-two { 0%, 46%, 100% { opacity: 0; } 47%, 99% { opacity: 1; } }

.ascii-stack--crypto {
  min-height: 214px;
  isolation: isolate;
  animation: crypto-ledger-breathe 4.8s ease-in-out infinite;
}

.payment-art__scene .ascii-stack--crypto pre.crypto-ledger {
  z-index: 2;
  color: rgba(240, 239, 235, 0.86);
  font-size: clamp(9px, 1.45vw, 13px);
  line-height: 1.28;
  text-align: center;
  opacity: 1;
}

.crypto-packet {
  position: absolute;
  z-index: 4;
  top: 42.5%;
  left: 39%;
  display: block;
  color: #aeb9c6;
  font: 700 clamp(8px, 1.3vw, 12px)/1 var(--checkout-mono);
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(174, 185, 198, 0.7));
  animation: crypto-packet-route 3.4s cubic-bezier(0.32, 0.72, 0.24, 1) infinite;
  transform: translate(-50%, -50%) scale(0.6);
}

.ascii-stack--crypto::after {
  position: absolute;
  z-index: 1;
  top: 42.5%;
  left: 70.5%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174, 185, 198, 0.26), transparent 68%);
  content: "";
  opacity: 0;
  filter: blur(2px);
  animation: crypto-wallet-arrival 3.4s ease-out infinite;
  transform: translate(-50%, -50%) scale(0.5);
}

@keyframes crypto-packet-route {
  0%, 12% { left: 39%; opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
  18% { opacity: 1; }
  68% { left: 60.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  77% { left: 60.5%; opacity: 0; transform: translate(-50%, -50%) scale(1.7); }
  100% { left: 39%; opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
}

@keyframes crypto-wallet-arrival {
  0%, 64% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
  74% { opacity: 0.82; transform: translate(-50%, -50%) scale(1.2); }
  92%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

@keyframes crypto-ledger-breathe {
  50% { filter: drop-shadow(0 0 12px rgba(120, 135, 154, 0.18)); transform: translateY(-3px); }
}

.payment-art.is-switching {
  animation: payment-art-switch 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes payment-art-switch {
  34% { border-color: rgba(120, 135, 154, 0.34); box-shadow: 0 22px 74px rgba(0, 0, 0, 0.32), inset 0 0 40px rgba(120, 135, 154, 0.04); transform: scale(0.992); }
}

.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-inline: 4px;
  color: var(--checkout-muted);
  font-size: 12px;
}

.payment-summary strong {
  color: var(--checkout-pay-strong);
  font-weight: 600;
  text-align: right;
}

.form-error {
  width: min(100%, 760px);
  margin: 18px auto 0;
  padding: 13px 15px;
  border: 1px solid rgba(213, 155, 149, 0.28);
  border-radius: 15px;
  background: rgba(78, 35, 32, 0.22);
  font-size: 13px;
  scroll-margin-bottom: var(--checkout-actions-space);
}

.checkout-actions {
  position: fixed;
  z-index: 40;
  right: 50%;
  bottom: var(--checkout-safe-bottom);
  display: grid;
  width: min(660px, calc(100vw - 24px));
  gap: 8px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(10, 10, 11, 0.46);
  box-shadow:
    -1px 0 0 rgba(209, 125, 125, 0.06),
    1px 0 0 rgba(113, 151, 196, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  transform: translateX(50%);
}

.checkout-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--checkout-text);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.checkout-button:active {
  transform: scale(0.985);
}

.checkout-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.checkout-button--glass {
  border-color: var(--checkout-border);
  background: rgba(240, 239, 235, 0.045);
  font-size: 13px;
  font-weight: 550;
}

.checkout-button--primary {
  min-height: 62px;
  justify-content: space-between;
  padding-inline: 20px;
  color: #060606;
  background: var(--checkout-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(120, 135, 154, 0.14);
}

body[data-checkout-stage="payment"] .checkout-button--primary {
  background: var(--checkout-pay);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 4px 16px rgba(156, 175, 159, 0.2);
}

body[data-checkout-stage="payment"] .checkout-button--primary:hover {
  background: var(--checkout-pay-strong);
}

.checkout-action__copy,
.checkout-action__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.checkout-action__copy small {
  margin-bottom: 4px;
  color: rgba(5, 5, 5, 0.52);
  font: 650 7px/1 var(--checkout-mono);
  letter-spacing: 0.13em;
}

.checkout-action__copy strong {
  font-size: 15px;
  font-weight: 680;
}

.checkout-action__price {
  align-items: flex-end;
}

.checkout-action__price.is-updating {
  animation: checkout-price-update 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes checkout-price-update {
  0% { opacity: 0.35; filter: blur(5px); transform: translateY(7px) scale(0.96); }
  55% { filter: blur(0); transform: translateY(-2px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.checkout-action__price del {
  margin-bottom: 1px;
  color: rgba(5, 5, 5, 0.48);
  font-size: 10px;
}

.checkout-action__price b {
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.checkout-button--back {
  min-height: 48px;
  border-color: var(--checkout-border);
  color: var(--checkout-muted);
  background: rgba(240, 239, 235, 0.025);
  font-size: 12px;
  font-weight: 520;
}

.checkout-button--back:hover {
  border-color: var(--checkout-border-strong);
  color: var(--checkout-text);
  background: rgba(240, 239, 235, 0.055);
}

.checkout-nav-actions {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
}

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

.checkout-home-icon {
  padding: 0;
}

.checkout-home-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.checkout-back-step {
  gap: 8px;
}

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

.payment-method {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--checkout-border);
  border-radius: 15px;
  color: var(--checkout-muted);
  background: rgba(240, 239, 235, 0.02);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.payment-method span {
  font: 500 15px/1 var(--checkout-mono);
}

.payment-method strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-method.is-selected {
  border-color: rgba(240, 239, 235, 0.38);
  color: var(--checkout-text);
  background: rgba(240, 239, 235, 0.09);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.checkout-legal {
  margin: 1px 8px 2px;
  color: rgba(240, 239, 235, 0.38);
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

.checkout-legal a {
  color: inherit;
  text-underline-offset: 2px;
}

.result {
  width: min(100%, 700px);
  margin: auto;
  padding: clamp(26px, 6vw, 52px);
  overflow: hidden;
  border-radius: 30px;
}

.result__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--checkout-border-strong);
  border-radius: 15px;
  color: var(--checkout-text);
  background: rgba(240, 239, 235, 0.06);
  font: 500 21px/1 var(--checkout-mono);
}

.result h1 {
  font-size: clamp(42px, 8vw, 68px);
}

.result__hint {
  margin: 24px 0 18px;
  padding: 16px;
  border: 1px solid var(--checkout-border);
  border-radius: 18px;
  background: rgba(240, 239, 235, 0.035);
}

.result__hint strong {
  font-size: 12px;
  font-weight: 600;
}

.result__hint p {
  margin: 5px 0 0;
  color: var(--checkout-muted);
  font-size: 12px;
}

.result .checkout-button {
  width: 100%;
  margin-top: 8px;
}

@media (min-width: 821px) {
  .checkout-stage[data-checkout-panel="configure"] {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(430px, 1.28fr);
    gap: clamp(28px, 5vw, 58px);
    align-items: start;
  }

  .checkout-stage[data-checkout-panel="configure"] .checkout-stage__head {
    position: sticky;
    top: 122px;
    margin: 8px 0 0;
  }

  .checkout-stage[data-checkout-panel="configure"] .checkout-stage__head h1 {
    font-size: clamp(54px, 5.4vw, 76px);
  }

  .checkout-stage[data-checkout-panel="configure"] .checkout-rollers,
  .checkout-stage[data-checkout-panel="configure"] .promo-card {
    grid-column: 2;
  }

  .checkout-stage[data-checkout-panel="configure"] .checkout-rollers {
    grid-row: 1;
  }

  .checkout-stage-stack,
  .checkout-progress {
    width: min(100%, 860px);
  }

  .checkout-stage[data-checkout-panel="email"],
  .checkout-stage[data-checkout-panel="code"],
  .checkout-stage[data-checkout-panel="payment"] {
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  .checkout-header .v3-nav {
    display: none;
  }

  .checkout-shell {
    padding: 94px 14px max(242px, var(--checkout-actions-space));
  }

  .checkout-stage__head h1 {
    display: flex;
    align-items: baseline;
    column-gap: 0.18em;
    font-size: clamp(32px, 8.4vw, 46px);
    line-height: 0.96;
  }

  .checkout-stage__head h1 br {
    display: none;
  }

  .checkout-stage__head > span {
    margin-top: 14px;
    font-size: 13px;
  }

  .checkout-actions {
    width: min(620px, calc(100vw - 16px));
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .checkout-shell {
    padding: 88px 10px max(236px, var(--checkout-actions-space));
  }

  .checkout-progress {
    margin-bottom: 20px;
  }

  .checkout-stage__head {
    margin-bottom: 22px;
  }

  .checkout-stage__head h1 {
    font-size: clamp(26px, 8.2vw, 34px);
    letter-spacing: -0.055em;
    white-space: nowrap;
  }

  #emailTitle {
    font-size: clamp(22px, 7.2vw, 30px);
  }

  .checkout-stage__head > span {
    font-size: 12px;
  }

  .checkout-rollers {
    gap: 8px;
  }

  .roller-card {
    --wheel-height: 202px;
    --wheel-item: 56px;
    border-radius: 23px;
  }

  .roller-card > header {
    padding: 14px 12px 8px;
    font-size: 6.5px;
  }

  .roller-card > header b {
    display: none;
  }

  .checkout-wheel {
    padding-right: 8px;
    padding-left: 8px;
  }

  .checkout-wheel button {
    padding-inline: 3px;
  }

  .checkout-wheel button strong {
    font-size: clamp(20px, 6vw, 27px);
  }

  .checkout-wheel__focus {
    right: 8px;
    left: 8px;
  }

  .promo-card {
    margin-top: 8px;
    border-radius: 20px;
  }

  .promo-toggle {
    min-height: 58px;
    padding-inline: 14px;
  }

  .promo-toggle i {
    width: 30px;
    height: 30px;
  }

  .promo-panel {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }

  .checkout-field--hero input {
    min-height: 66px;
  }

  .checkout-field--code input {
    min-height: 76px;
    padding-inline: 8px;
    letter-spacing: 0.18em;
  }

  .payment-art {
    min-height: 238px;
    border-radius: 24px;
  }

  .payment-art__scene pre {
    font-size: clamp(9px, 2.75vw, 12px);
  }

  .ascii-stack { min-height: 190px; }
  .ascii-stack--sbp { min-height: 196px; }
  .checkout-actions {
    gap: 7px;
    padding: 8px;
    border-radius: 22px;
  }

  .checkout-button--primary {
    min-height: 58px;
    border-radius: 14px;
  }

  .checkout-button--back {
    min-height: 44px;
  }

  .checkout-nav-actions { grid-template-columns: 44px minmax(0, 1fr); }

  .payment-method {
    min-height: 48px;
    padding-inline: 5px;
  }

  .checkout-legal {
    font-size: 8px;
  }

  .result {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.checkout-motion-forced) {
    scroll-behavior: auto;
  }

  html:not(.checkout-motion-forced) .checkout-stage,
  html:not(.checkout-motion-forced) .promo-panel,
  html:not(.checkout-motion-forced) .promo-card.has-promo,
  html:not(.checkout-motion-forced) .payment-art__scene,
  html:not(.checkout-motion-forced) .payment-art.is-switching,
  html:not(.checkout-motion-forced) .payment-art__scene pre,
  html:not(.checkout-motion-forced) .ascii-stack,
  html:not(.checkout-motion-forced) .ascii-stack::before,
  html:not(.checkout-motion-forced) .ascii-stack::after,
  html:not(.checkout-motion-forced) .ascii-stack pre,
  html:not(.checkout-motion-forced) .ascii-stack > span,
  html:not(.checkout-motion-forced) .checkout-action__price.is-updating,
  html:not(.checkout-motion-forced) .checkout-progress > i > b,
  html:not(.checkout-motion-forced) .checkout-flow.is-transitioning .checkout-progress,
  html:not(.checkout-motion-forced) .checkout-flow.is-transitioning .checkout-actions,
  html:not(.checkout-motion-forced) .checkout-wheel__focus::before {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  html:not(.checkout-motion-forced) .checkout-wheel {
    scroll-behavior: auto;
  }

  html:not(.checkout-motion-forced) .checkout-wheel button {
    filter: none !important;
    transform: none !important;
    transition-duration: 0.01ms !important;
  }
}
.result .checkout-button--telegram {
  margin-top: 16px;
  color: #09121a;
  background: #78879a;
  border-color: #78879a;
}
.result .checkout-button--telegram:hover { background: #91a0b3; }
.result .checkout-button--telegram[hidden] { display: none; }
