.paymentPage {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(111, 196, 208, 0.1), transparent 34rem),
    radial-gradient(circle at 90% 35%, rgba(98, 183, 123, 0.08), transparent 30rem),
    var(--bg);
}

.paymentMain {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.paymentIntro {
  max-width: 760px;
  margin-bottom: 30px;
}

.paymentIntro h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.04;
}

.paymentIntro p {
  color: var(--muted);
  font-size: 18px;
}

.paymentLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.paymentCard {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(25, 26, 23, 0.96);
}

.paymentCard h2 {
  margin-bottom: 18px;
  font-size: 23px;
}

.paymentSummary {
  position: sticky;
  top: 90px;
}

.paymentPrice {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.paymentPrice strong {
  font-size: 34px;
  line-height: 1;
}

.paymentPrice span {
  color: var(--muted);
  font-size: 14px;
}

.paymentFacts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.paymentFacts li {
  position: relative;
  padding-left: 23px;
  color: var(--muted);
}

.paymentFacts li + li {
  margin-top: 10px;
}

.paymentFacts li::before {
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.paymentExclusion {
  margin: 22px 0 0;
  padding: 15px 16px;
  border-left: 3px solid var(--amber);
  background: rgba(224, 173, 69, 0.09);
  color: #e9dec4;
  font-size: 14px;
}

.paymentField {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.paymentField label {
  font-weight: 700;
}

.paymentField input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #505349;
  border-radius: 6px;
  outline: 0;
  background: #11120f;
  color: var(--text);
  font: inherit;
}

.paymentField input[type="email"]:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(111, 196, 208, 0.14);
}

.paymentHint,
.paymentSecurity,
.paymentOrderNumber {
  color: var(--muted);
  font-size: 14px;
}

.paymentChecks {
  display: grid;
  gap: 14px;
  margin: 6px 0 24px;
}

.paymentCheck {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  color: var(--muted);
}

.paymentCheck input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--green);
}

.paymentCheck a,
.paymentSupport a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paymentSubmit {
  width: 100%;
  cursor: pointer;
}

.paymentSubmit:disabled,
.paymentAction:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.paymentSecurity {
  margin: 15px 0 0;
}

.paymentNotice {
  margin-bottom: 20px;
  padding: 15px 17px;
  border: 1px solid rgba(224, 173, 69, 0.4);
  border-radius: 7px;
  background: rgba(224, 173, 69, 0.09);
  color: #e9dec4;
}

.paymentNotice[data-kind="error"] {
  border-color: rgba(229, 106, 98, 0.48);
  background: rgba(229, 106, 98, 0.09);
  color: #ffd7d3;
}

.paymentNotice[data-kind="success"] {
  border-color: rgba(98, 183, 123, 0.5);
  background: rgba(98, 183, 123, 0.1);
  color: #dff7e5;
}

.paymentNotice[hidden] {
  display: none;
}

.paymentResult {
  max-width: 760px;
}

.paymentStateIcon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(111, 196, 208, 0.5);
  border-radius: 50%;
  background: rgba(111, 196, 208, 0.1);
  color: var(--cyan);
  font-size: 24px;
  font-weight: 800;
}

.paymentStateIcon.isSuccess {
  border-color: rgba(98, 183, 123, 0.55);
  background: rgba(98, 183, 123, 0.12);
  color: var(--green);
}

.paymentStateIcon.isError {
  border-color: rgba(229, 106, 98, 0.55);
  background: rgba(229, 106, 98, 0.1);
  color: var(--red);
}

.paymentResult h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
}

.paymentResult > p {
  color: var(--muted);
}

.paymentStatusCard {
  margin: 28px 0 20px;
}

.paymentStatusCard h2 {
  margin-bottom: 10px;
}

.paymentStatusText {
  min-height: 50px;
  color: var(--muted);
}

.paymentActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.paymentSupport {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.paymentSupport p {
  margin-bottom: 9px;
}

.paymentSupportLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.paymentSpinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(111, 196, 208, 0.25);
  border-top-color: var(--cyan);
  border-radius: 50%;
  vertical-align: -2px;
  animation: paymentSpin 800ms linear infinite;
}

@keyframes paymentSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .paymentMain {
    width: min(100% - 30px, 1040px);
    padding-top: 42px;
  }

  .paymentLayout {
    display: flex;
    flex-direction: column;
  }

  .paymentSummary {
    position: static;
    order: -1;
    width: 100%;
  }

  .paymentCard {
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paymentSpinner {
    animation: none;
  }
}
