/* SudoTag Buy — premium single-product storefront */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.buy-page {
  --buy-bg: #0c0c0c;
  --buy-surface: #161616;
  --buy-surface-2: #1e1e1e;
  --buy-border: rgba(255, 255, 255, 0.08);
  --buy-accent: #e58147;
  --buy-accent-soft: rgba(229, 129, 71, 0.14);
  --buy-text: #f7f7f7;
  --buy-muted: rgba(247, 247, 247, 0.58);
  --buy-danger: #f87171;
  --buy-radius: 20px;
  --buy-shell: min(1120px, calc(100% - 2rem));
  --buy-font: "DM Sans", system-ui, sans-serif;
  --buy-display: "Raleway", system-ui, sans-serif;

  margin: 0;
  min-height: 100vh;
  color: var(--buy-text);
  font-family: var(--buy-font);
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(229, 129, 71, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 5%, rgba(229, 129, 71, 0.07), transparent 50%),
    var(--buy-bg);
  -webkit-font-smoothing: antialiased;
}

.buy-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.buy-shell {
  width: var(--buy-shell);
  margin-inline: auto;
}

.buy-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(12, 12, 12, 0.82);
  border-bottom: 1px solid var(--buy-border);
}

.buy-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.buy-logo img {
  height: 34px;
  width: auto;
}

.buy-back-link {
  color: var(--buy-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.buy-back-link:hover {
  color: var(--buy-accent);
}

.buy-main {
  padding: 1.5rem 0 6.5rem;
}

/* —— Product stage —— */
.product-stage {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2.25rem;
  animation: buy-fade-up 0.55s ease both;
}

@media (min-width: 900px) {
  .product-stage {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.product-media {
  position: relative;
  display: block;
  width: min(100%, 100%);
  max-width: 520px;
  padding: 0;
  border: 1px solid var(--buy-border);
  border-radius: calc(var(--buy-radius) + 4px);
  overflow: hidden;
  background:
    linear-gradient(160deg, #222 0%, #141414 55%, #1a1512 100%);
  cursor: zoom-in;
  isolation: isolate;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 900px) {
  .product-gallery {
    align-items: flex-start;
  }

  .product-media {
    max-width: 560px;
  }
}

.product-media:hover,
.product-media:focus-visible {
  border-color: rgba(229, 129, 71, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(229, 129, 71, 0.15);
  outline: none;
}

.product-media__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.product-media:hover .product-media__img {
  transform: scale(1.04);
}

.product-media__hint {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.25rem;
}

.product-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--buy-accent);
}

.product-info h1 {
  margin: 0;
  font-family: var(--buy-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.product-desc {
  margin: 0;
  color: var(--buy-muted);
  line-height: 1.55;
  max-width: 34rem;
  font-size: 1.02rem;
}

.product-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--buy-border);
  border-bottom: 1px solid var(--buy-border);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.product-price__amount {
  font-family: var(--buy-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-price__note {
  color: var(--buy-muted);
  font-size: 0.9rem;
}

.product-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--buy-accent-soft);
  color: rgba(247, 247, 247, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
}

.product-badges i {
  color: var(--buy-accent);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.qty-row--inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--buy-muted);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--buy-surface);
  border-radius: 12px;
  padding: 0.2rem;
  border: 1px solid var(--buy-border);
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--buy-text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.qty-btn:hover {
  background: var(--buy-accent-soft);
  color: var(--buy-accent);
}

#quantity {
  width: 44px;
  text-align: center;
  border: 0;
  background: transparent;
  color: var(--buy-text);
  font-weight: 700;
  font-size: 1rem;
  -moz-appearance: textfield;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.buy-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e58147, #d46a2e);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(229, 129, 71, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.buy-pay-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(229, 129, 71, 0.36);
  color: #fff;
}

.buy-pay-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.buy-pay-btn--hero {
  flex: 1;
  min-width: 160px;
}

.buy-pay-btn--compact {
  min-height: 46px;
  padding-inline: 1.1rem;
  font-size: 0.95rem;
}

.buy-pay-btn__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: buy-spin 0.7s linear infinite;
}

.product-total-hint {
  margin: 0;
  color: var(--buy-muted);
  font-size: 0.92rem;
}

.product-total-hint strong {
  color: var(--buy-text);
}

/* —— Checkout —— */
.checkout-stage {
  animation: buy-fade-up 0.55s ease 0.08s both;
}

.checkout-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    align-items: start;
  }
}

.buy-section {
  background: var(--buy-surface);
  border: 1px solid var(--buy-border);
  border-radius: var(--buy-radius);
  padding: 1.35rem 1.35rem 1.5rem;
  scroll-margin-top: 5.5rem;
}

.buy-section h2,
.summary-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--buy-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.section-lead {
  margin: 0 0 1.15rem;
  color: var(--buy-muted);
  font-size: 0.92rem;
}

.field-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: rgba(247, 247, 247, 0.88);
}

.req { color: var(--buy-accent); }
.optional {
  font-weight: 400;
  color: var(--buy-muted);
  font-size: 0.78rem;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--buy-surface-2);
  color: var(--buy-text);
  padding: 0.72rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--buy-accent);
  box-shadow: 0 0 0 3px rgba(229, 129, 71, 0.18);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--buy-danger);
}

.field-error {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--buy-danger);
}

.buy-summary {
  position: relative;
}

@media (min-width: 960px) {
  .buy-summary {
    position: sticky;
    top: 5.25rem;
  }
}

.summary-card {
  background: var(--buy-surface);
  border: 1px solid rgba(229, 129, 71, 0.28);
  border-radius: var(--buy-radius);
  padding: 1.25rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.summary-card .buy-pay-btn {
  width: 100%;
  margin-top: 0.35rem;
}

.summary-product-line {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin: 1rem 0 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--buy-border);
}

.summary-product-line img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--buy-border);
}

.summary-product-line strong {
  display: block;
  font-size: 0.95rem;
}

.summary-product-line span {
  color: var(--buy-muted);
  font-size: 0.85rem;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.94rem;
  padding: 0.38rem 0;
  color: var(--buy-muted);
}

.summary-total {
  margin: 0.45rem 0 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--buy-border);
  color: var(--buy-text);
  font-size: 1.12rem;
  font-weight: 700;
}

.buy-status {
  min-height: 1.25rem;
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--buy-muted);
  text-align: center;
}

.buy-status.is-error { color: var(--buy-danger); }
.buy-status.is-success { color: #34d399; }

.summary-secure {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--buy-muted);
}

.summary-secure i {
  color: var(--buy-accent);
  margin-right: 0.25rem;
}

/* Sticky mobile CTA */
.buy-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(18, 18, 18, 0.94);
  border-top: 1px solid var(--buy-border);
  backdrop-filter: blur(16px);
}

.buy-sticky__price span {
  display: block;
  font-size: 0.72rem;
  color: var(--buy-muted);
}

.buy-sticky__price strong {
  font-size: 1.1rem;
}

@media (min-width: 960px) {
  .buy-sticky { display: none !important; }
  .buy-main { padding-bottom: 3.5rem; }
}

/* Zoom lightbox */
.zoom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.zoom-lightbox[hidden] { display: none !important; }

.zoom-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.zoom-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.zoom-lightbox__toolbar {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.zoom-lightbox__toolbar button {
  min-width: 42px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.zoom-lightbox__toolbar button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.zoom-lightbox__stage {
  position: relative;
  z-index: 1;
  width: min(92vw, 920px);
  height: min(78vh, 920px);
  overflow: hidden;
  border-radius: 16px;
  touch-action: none;
  cursor: grab;
}

.zoom-lightbox__stage.is-dragging { cursor: grabbing; }

.zoom-lightbox__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.zoom-lightbox__hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  text-align: center;
  pointer-events: none;
}

/* —— Payment result screens —— */
.result-shell {
  max-width: 920px;
  margin: 0 auto;
  animation: buy-fade-up 0.5s ease both;
}

.result-shell--narrow {
  max-width: 520px;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.result-chip--success {
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
}

.result-chip--danger {
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
}

.result-chip--warn {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

.result-chip--info {
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
}

.result-hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.result-hero h1 {
  font-family: var(--buy-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
}

.result-amount-paid {
  margin: 0.75rem 0 0;
  font-family: var(--buy-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--buy-accent);
  letter-spacing: -0.03em;
}

.result-ref-badge {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 0.85rem;
  font-weight: 600;
}

.success-icon,
.failure-icon,
.cancel-icon,
.pending-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.success-icon {
  background: linear-gradient(135deg, #34d399, #15803d);
  box-shadow: 0 16px 40px rgba(52, 211, 153, 0.28);
  animation: success-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.failure-icon {
  background: linear-gradient(135deg, #f87171, #b91c1c);
  box-shadow: 0 16px 40px rgba(248, 113, 113, 0.25);
}

.cancel-icon {
  background: linear-gradient(135deg, #fbbf24, #b45309);
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.22);
}

.pending-icon {
  background: var(--buy-surface);
  border: 1px solid var(--buy-border);
}

.success-icon i,
.failure-icon i,
.cancel-icon i {
  font-size: 3.2rem;
  color: #fff;
}

.pending-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(229, 129, 71, 0.25);
  border-top-color: var(--buy-accent);
  border-radius: 50%;
  animation: buy-spin 0.8s linear infinite;
}

.success-lead,
.failure-lead {
  color: var(--buy-muted);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 34rem;
}

.result-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 800px) {
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.result-card {
  background: var(--buy-surface);
  border: 1px solid var(--buy-border);
  border-radius: var(--buy-radius);
  padding: 1.2rem 1.25rem;
  text-align: left;
}

.result-card--wide {
  margin-bottom: 1.25rem;
}

.result-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.result-card h2 {
  margin: 0;
  font-family: var(--buy-display);
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.result-card__text {
  margin: 0;
  color: var(--buy-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.result-card__meta {
  margin: 0.9rem 0 0;
  color: var(--buy-muted);
  font-size: 0.9rem;
}

.copy-btn {
  border: 1px solid var(--buy-border);
  background: var(--buy-surface-2);
  color: var(--buy-text);
  border-radius: 10px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--buy-accent);
  color: var(--buy-accent);
}

.detail-tile {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.7rem 0;
}

.detail-tile--compact {
  padding: 0.55rem 0;
}

.detail-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.detail-tile__icon--orange {
  background: rgba(229, 129, 71, 0.18);
  color: var(--buy-accent);
}

.detail-tile__icon--green {
  background: rgba(52, 211, 153, 0.16);
  color: #34d399;
}

.detail-tile__icon--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--buy-muted);
}

.detail-tile__label {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 247, 247, 0.45);
}

.detail-tile__value {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}

.detail-tile__value--lg {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--buy-accent);
}

.detail-tile__value--wrap {
  white-space: pre-line;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(247, 247, 247, 0.88);
}

.order-product-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.order-product-row img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--buy-border);
}

.order-product-row strong {
  display: block;
  font-size: 0.98rem;
}

.order-product-row span {
  color: var(--buy-muted);
  font-size: 0.85rem;
}

.result-divider {
  height: 1px;
  background: var(--buy-border);
  margin: 0.75rem 0;
}

.next-steps {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
}

.next-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.next-steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--buy-accent-soft);
  color: var(--buy-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.next-steps strong {
  display: block;
  margin-bottom: 0.15rem;
}

.next-steps span {
  color: var(--buy-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.tip-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: rgba(247, 247, 247, 0.82);
  font-size: 0.92rem;
  line-height: 1.4;
}

.tip-list i {
  color: var(--buy-accent);
  margin-top: 0.1rem;
}

.pending-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.pending-steps li {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--buy-muted);
  font-weight: 600;
}

.pending-steps li.is-done {
  color: #34d399;
}

.pending-steps li.is-active {
  color: var(--buy-accent);
}

.pending-steps .bi-arrow-repeat {
  animation: buy-spin 1.1s linear infinite;
}

.result-actions {
  display: grid;
  gap: 0.75rem;
  margin: 1.35rem 0 1rem;
}

.result-actions .buy-pay-btn {
  width: 100%;
}

.result-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 14px;
  border: 1.5px solid rgba(229, 129, 71, 0.75);
  color: var(--buy-accent);
  text-decoration: none;
  font-weight: 600;
}

.result-outline-btn:hover {
  background: var(--buy-accent-soft);
  color: #f0a06e;
}

.result-support {
  text-align: center;
  color: var(--buy-muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.result-support a {
  color: var(--buy-accent);
  text-decoration: none;
  font-weight: 600;
}

.result-support a:hover {
  text-decoration: underline;
}

@keyframes success-pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Fullscreen checkout loader — wheel.json via Lottie */
.buy-page.checkout-loader-open {
  overflow: hidden;
}

.checkout-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

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

.checkout-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  pointer-events: none;
}

.checkout-loader__lottie {
  width: min(140px, 36vw);
  height: min(140px, 36vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-loader__lottie svg {
  width: 100%;
  height: 100%;
  display: block;
}

.checkout-loader__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.checkout-loader__fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #e58147;
  animation: buy-spin 0.65s linear infinite;
  box-sizing: border-box;
}

@keyframes buy-spin {
  to { transform: rotate(360deg); }
}

@keyframes buy-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
