/* Checkout page — premium Zenith styling */

.checkout-page-body {
  background: #0a0c10;
}

.checkout-page {
  position: relative;
  isolation: isolate;
  padding: calc(var(--nav) + var(--safe-top) + 20px) 0 72px;
  min-height: 100vh;
  overflow: hidden;
}

.checkout-ambient {
  position: absolute;
  inset: -10% 0 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 8%, rgba(239, 68, 68, 0.14), transparent 62%),
    radial-gradient(ellipse 55% 45% at 88% 22%, rgba(239, 68, 68, 0.1), transparent 58%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(239, 68, 68, 0.06), transparent 70%);
}

.checkout-shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

/* Hero */
.checkout-hero {
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.65rem 0.35rem 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(246, 247, 251, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.checkout-back:hover {
  color: #f87171;
}

.checkout-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.checkout-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 247, 251, 0.92);
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.32);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.12);
}

.checkout-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.checkout-page-title {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}

.checkout-page-lead {
  margin: 0;
  max-width: 36ch;
  color: rgba(246, 247, 251, 0.58);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.55;
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  list-style: none;
  border-radius: 999px;
  border: 1px solid rgba(246, 247, 251, 0.1);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  font-style: normal;
  color: rgba(246, 247, 251, 0.38);
}

.checkout-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid rgba(246, 247, 251, 0.14);
  background: rgba(0, 0, 0, 0.35);
}

.checkout-step em {
  font-size: 0.72rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.02em;
}

.checkout-step.is-active {
  color: rgba(246, 247, 251, 0.88);
}

.checkout-step.is-active span {
  color: #0b0b10;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

/* Grid */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

/* Panels */
.checkout-panel {
  position: relative;
  border-radius: var(--radius-lg, 24px);
  border: 1px solid rgba(246, 247, 251, 0.1);
  background-image:
    repeating-linear-gradient(
      105deg,
      transparent 0,
      transparent 20px,
      rgba(239, 68, 68, 0.045) 20px,
      rgba(239, 68, 68, 0.045) 21px
    ),
    linear-gradient(180deg, rgba(14, 15, 22, 0.96) 0%, rgba(10, 11, 16, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(246, 247, 251, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.checkout-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(246, 247, 251, 0.16), transparent);
  pointer-events: none;
  z-index: 2;
}

.checkout-summary.checkout-summary--featured {
  border-color: rgba(239, 68, 68, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(246, 247, 251, 0.09),
    0 0 0 1px rgba(239, 68, 68, 0.2),
    0 18px 52px rgba(0, 0, 0, 0.45),
    0 0 56px rgba(239, 68, 68, 0.12);
}

.checkout-summary.checkout-summary--featured::after {
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.6), transparent);
}

.checkout-panel-inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
}

.checkout-panel-label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 247, 251, 0.46);
  font-weight: 800;
}

.checkout-panel-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.checkout-panel-glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
}

.checkout-panel-glow span:nth-child(1) {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -30px;
  background: rgba(239, 68, 68, 0.22);
}

.checkout-panel-glow span:nth-child(2) {
  width: 140px;
  height: 140px;
  bottom: 10%;
  left: -20px;
  background: rgba(239, 68, 68, 0.12);
}

.checkout-panel-glow span:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: -20px;
  right: 25%;
  background: rgba(239, 68, 68, 0.1);
}

.checkout-panel-glow--soft span {
  opacity: 0.28;
}

/* Product picker */
.checkout-product-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.checkout-product-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.checkout-product-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-product-option-inner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(246, 247, 251, 0.1);
  background: rgba(0, 0, 0, 0.26);
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.checkout-product-option-inner strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(246, 247, 251, 0.82);
  line-height: 1.2;
}

.checkout-product-option-inner small {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(246, 247, 251, 0.42);
}

.checkout-product-option input:checked + .checkout-product-option-inner,
.checkout-product-option-inner.is-selected {
  border-color: rgba(239, 68, 68, 0.52);
  background: linear-gradient(165deg, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(239, 68, 68, 0.12);
  transform: translateY(-1px);
}

.checkout-product-option input:checked + .checkout-product-option-inner strong,
.checkout-product-option-inner.is-selected strong {
  color: #fff;
}

/* Summary showcase */
.checkout-summary-showcase {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(246, 247, 251, 0.08);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(239, 68, 68, 0.08), transparent 65%),
    rgba(0, 0, 0, 0.22);
}

.checkout-summary-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 0.5rem;
}

.checkout-summary-art img {
  width: min(160px, 70%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(239, 68, 68, 0.22));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.checkout-summary-showcase:hover .checkout-summary-art img {
  transform: scale(1.03) translateY(-2px);
}

.checkout-summary-meta {
  text-align: center;
}

.checkout-summary-ribbon {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 247, 251, 0.9);
  background: linear-gradient(180deg, rgba(246, 247, 251, 0.12), rgba(246, 247, 251, 0.04));
  border: 1px solid rgba(246, 247, 251, 0.14);
}

.checkout-summary--featured .checkout-summary-ribbon {
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.28);
}

.checkout-summary-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.checkout-summary-desc {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(246, 247, 251, 0.52);
}

.checkout-summary-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
}

.checkout-price-hero {
  font-size: clamp(1.85rem, 4vw, 2.35rem) !important;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff !important;
  text-shadow: 0 0 32px rgba(239, 68, 68, 0.2);
}

.checkout-summary-price-row .product-price-period {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(246, 247, 251, 0.48);
}

/* Trust strip */
.checkout-trust-strip {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-trust-strip li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(246, 247, 251, 0.06);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(246, 247, 251, 0.58);
}

.checkout-trust-strip svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #f87171;
}

/* Form */
.checkout-form-block + .checkout-form-block {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(246, 247, 251, 0.07);
}

.checkout-field {
  display: block;
  margin-bottom: 0.75rem;
}

.checkout-field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(246, 247, 251, 0.62);
}

.checkout-field input {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(246, 247, 251, 0.12);
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.checkout-field input::placeholder {
  color: rgba(246, 247, 251, 0.28);
}

.checkout-field input:focus {
  outline: none;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(0, 0, 0, 0.42);
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.checkout-agree-card {
  margin: 0.25rem 0 0;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(246, 247, 251, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.checkout-agree-card .checkout-agree-text {
  font-size: 0.76rem;
  line-height: 1.5;
}

/* Payment methods */
.checkout-pay-methods {
  display: grid;
  gap: 0.7rem;
}

.checkout-pay-method {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(246, 247, 251, 0.1);
  background: rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.checkout-pay-method:hover:not(.is-disabled) {
  border-color: rgba(239, 68, 68, 0.32);
  transform: translateY(-1px);
}

.checkout-pay-method.is-selected {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(165deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(239, 68, 68, 0.1);
}

.checkout-pay-method.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: saturate(0.75);
}

.checkout-pay-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-pay-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(246, 247, 251, 0.22);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.checkout-pay-method.is-selected .checkout-pay-check {
  border-color: #ef4444;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.checkout-pay-method.is-selected .checkout-pay-check::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: #0b0b10;
}

.checkout-pay-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #f87171;
}

.checkout-pay-method-icon svg {
  width: 20px;
  height: 20px;
}

.checkout-pay-method.is-disabled .checkout-pay-method-icon {
  background: rgba(246, 247, 251, 0.06);
  border-color: rgba(246, 247, 251, 0.1);
  color: rgba(246, 247, 251, 0.45);
}

.checkout-pay-method-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  color: #fff;
}

.checkout-pay-method-desc {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(246, 247, 251, 0.52);
  font-weight: 600;
}

.checkout-pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 247, 251, 0.78);
  background: rgba(246, 247, 251, 0.08);
  border: 1px solid rgba(246, 247, 251, 0.12);
  white-space: nowrap;
}

/* Pay button */
.checkout-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  border-radius: 14px;
  box-shadow:
    0 18px 46px rgba(239, 68, 68, 0.22),
    0 0 0 1px rgba(239, 68, 68, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.checkout-pay-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.checkout-pay-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 24px 60px rgba(239, 68, 68, 0.28),
    0 0 0 1px rgba(239, 68, 68, 0.22);
}

.checkout-pay-btn:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.checkout-pay-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.checkout-legal-notes {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(246, 247, 251, 0.06);
}

.checkout-legal-notes .checkout-merchant-note,
.checkout-legal-notes .checkout-disclaimer {
  margin: 0.35rem 0 0;
}

/* Sticky summary on desktop */
@media (min-width: 901px) {
  .checkout-summary {
    position: sticky;
    top: calc(var(--nav) + var(--safe-top) + 16px);
  }
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-hero-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-steps {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .checkout-step em {
    display: none;
  }

  .checkout-step.is-active em {
    display: inline;
  }
}

@media (max-width: 520px) {
  .checkout-product-picker {
    grid-template-columns: 1fr;
  }

  .checkout-pay-method {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .checkout-pay-check {
    grid-row: 1 / span 2;
  }

  .checkout-pay-method-icon {
    display: none;
  }

  .checkout-pay-badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.15rem;
  }
}
