.payment-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgb(47 107 255 / 18%), transparent 36rem),
    linear-gradient(180deg, #050914, #080d18 58%, #050914);
  color: #f6f8fc;
}

[hidden] { display: none !important; }

.payment-nav {
  display: flex;
  width: min(100% - 2rem, 1120px);
  min-height: 88px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgb(143 185 255 / 16%);
}

.payment-nav img { width: min(232px, 55vw); height: auto; }

.payment-language {
  display: inline-flex;
  padding: 4px;
  border: 1px solid #25334c;
  border-radius: 999px;
  background: #0b1220;
}

.payment-language a {
  min-width: 42px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #8190a8;
  font-size: .75rem;
  font-weight: 900;
  text-align: center;
}

.payment-language a.is-active { background: #285acb; color: #fff; }

.checkout-shell {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 6rem) 0 4rem;
}

.checkout-intro { max-width: 760px; margin-bottom: 2.25rem; }
.checkout-intro h1 { margin: 0; font-size: clamp(2.9rem, 8vw, 5.8rem); line-height: .96; }
.checkout-secure { margin-top: 1rem; color: #9babc3; }
.checkout-secure span:first-child { color: #65e6b5; font-size: .7em; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 1rem; align-items: start; }
.checkout-card {
  border: 1px solid #22314a;
  border-radius: 14px;
  background: linear-gradient(155deg, rgb(18 27 43 / 98%), rgb(7 13 24 / 98%));
  box-shadow: 0 30px 80px -50px #000;
}

.checkout-product, .checkout-confirm { padding: clamp(1.35rem, 4vw, 2rem); }
.checkout-product__head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid #26354c; }
.checkout-label { margin-bottom: .45rem; color: #00d4ff; font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.checkout-product h2 { max-width: 18ch; font-size: clamp(1.55rem, 4vw, 2.25rem); }
.checkout-price { flex: none; text-align: right; }
.checkout-price strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 400; line-height: 1; }
.checkout-price span { color: #8f9db3; font-size: .82rem; }
.checkout-summary { padding: 1.4rem 0 .75rem; color: #c3ccda; font-size: 1.02rem; }
.checkout-billing { padding: .8rem 1rem; border: 1px solid rgb(47 107 255 / 35%); border-radius: 8px; background: rgb(47 107 255 / 10%); color: #b9ccff; font-size: .86rem; }
.checkout-breakdown { margin-top: 1.3rem; padding: 1.15rem; border: 1px solid #2a3b56; border-radius: 10px; background: #080f1c; }
.checkout-breakdown h3 { margin-bottom: .75rem; color: #eaf0fa; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.checkout-breakdown dl { display: grid; gap: .7rem; margin: 0; }
.checkout-breakdown dl div, .checkout-breakdown__total { display: flex; justify-content: space-between; gap: 1rem; }
.checkout-breakdown dt { color: #aebbd0; }
.checkout-breakdown dd { margin: 0; color: #f4f7fc; font-weight: 800; white-space: nowrap; }
.checkout-breakdown__total { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid #2a3b56; color: #fff; }
.checkout-breakdown__total strong { color: #65e6b5; font-size: 1.2rem; }
.checkout-includes { margin-top: 1.6rem; }
.checkout-includes h3 { margin-bottom: .8rem; font-size: .86rem; text-transform: uppercase; }
.checkout-includes ul { display: grid; gap: .7rem; list-style: none; }
.checkout-includes li { position: relative; padding-left: 1.6rem; color: #aebbd0; }
.checkout-includes li::before { position: absolute; left: 0; content: "✓"; color: #65e6b5; font-weight: 900; }
.checkout-facts { display: grid; gap: .45rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid #26354c; color: #75849c; font-size: .76rem; }

.checkout-confirm { position: sticky; top: 1rem; }
.checkout-confirm__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.checkout-confirm h2 { font-size: 1.2rem; }
.checkout-confirm__heading span { color: #6f7e96; font-size: .72rem; }
.checkout-confirm > p { color: #9eacc0; font-size: .84rem; line-height: 1.65; }
.checkout-consent { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; margin: 1.4rem 0; cursor: pointer; color: #d5ddeb; font-size: .86rem; line-height: 1.55; }
.checkout-consent input { width: 20px; height: 20px; margin-top: .1rem; accent-color: #2f6bff; }
.checkout-pay { width: 100%; gap: .7rem; }
.checkout-fallback { margin-top: 1rem; padding: 1rem; border: 1px solid #3d4655; border-radius: 9px; background: #111722; }
.checkout-fallback strong { color: #ffd38c; }
.checkout-fallback p { margin: .35rem 0 .9rem; color: #9ba8ba; font-size: .8rem; }
.checkout-fallback .btn { width: 100%; }
.checkout-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1.2rem; color: #7ea7ef; font-size: .76rem; text-decoration: underline; text-underline-offset: .2em; }
.checkout-back { display: inline-flex; margin-top: 1.5rem; color: #8f9db3; font-size: .85rem; }
.checkout-card--empty { padding: 2rem; }
.checkout-card--empty h2 { margin-bottom: 1rem; }

.payment-result { width: min(100% - 2rem, 720px); margin: 0 auto; padding: clamp(3rem, 10vw, 8rem) 0; text-align: center; }
.payment-result__mark { display: grid; width: 72px; height: 72px; margin: 0 auto 1.5rem; place-items: center; border: 1px solid rgb(101 230 181 / 40%); border-radius: 999px; background: rgb(101 230 181 / 10%); color: #65e6b5; font-size: 2rem; }
.payment-result--cancel .payment-result__mark { border-color: rgb(255 211 140 / 40%); background: rgb(255 211 140 / 10%); color: #ffd38c; }
.payment-result h1 { font-size: clamp(2.7rem, 9vw, 5rem); }
.payment-result > p { max-width: 58ch; margin: 1rem auto; color: #aebbd0; }
.payment-result__actions { display: flex; justify-content: center; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }

@media (max-width: 800px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-confirm { position: static; }
}

@media (max-width: 520px) {
  .checkout-product__head { display: grid; }
  .checkout-price { text-align: left; }
  .payment-nav { min-height: 74px; }
  .checkout-links { flex-direction: column; align-items: center; }
}
