:root {
  color-scheme: light;
  --bg-1: #fcf8f1;
  --bg-2: #e2ebff;
  --ink: #11131a;
  --muted: #616a7a;
  --card: rgba(255, 251, 245, 0.8);
  --panel: rgba(255, 255, 255, 0.9);
  --border: rgba(17, 19, 26, 0.08);
  --accent: #2556d7;
  --accent-strong: #153a9d;
  --accent-soft: rgba(37, 86, 215, 0.14);
  --gold-soft: rgba(255, 193, 94, 0.22);
  --shadow: 0 36px 120px rgba(29, 42, 82, 0.18);
  --shadow-button: 0 18px 34px rgba(37, 86, 215, 0.34);
  --inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 194, 87, 0.32), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(37, 86, 215, 0.24), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.88), transparent 42%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

.page-shell,
.result-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.payment-card,
.result-card {
  width: min(100%, 460px);
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.summary,
.result-card p {
  margin: 16px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.payment-card-composed {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.payment-card-composed::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.card-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.card-orb-blue {
  top: -28px;
  right: -18px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, rgba(37, 86, 215, 0.18), transparent 68%);
}

.card-orb-gold {
  bottom: 88px;
  left: -30px;
  width: 112px;
  height: 112px;
  background: radial-gradient(circle at center, rgba(255, 193, 94, 0.22), transparent 68%);
}

.amount-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 250px;
  padding: 36px 24px 28px;
  border-radius: 30px;
  border: 1px solid rgba(17, 19, 26, 0.06);
  background:
    radial-gradient(circle at top left, rgba(255, 193, 94, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(37, 86, 215, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 234, 0.94));
  box-shadow:
    var(--inner-shadow),
    inset 0 -18px 32px rgba(255, 245, 224, 0.46);
  position: relative;
}

.amount-panel::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(17, 19, 26, 0.05);
  pointer-events: none;
}

.amount-currency {
  align-self: flex-start;
  margin-top: 28px;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  opacity: 0.94;
}

.hero-amount {
  font-family: "Sora", sans-serif;
  font-size: clamp(5.6rem, 18vw, 8.4rem);
  line-height: 0.8;
  letter-spacing: -0.11em;
  text-shadow: 0 8px 24px rgba(17, 19, 26, 0.06);
}

.price-block {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 24px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(28, 83, 217, 0.14);
}

.currency-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 32px;
  border-radius: 999px;
  background: rgba(28, 83, 217, 0.1);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.price-block strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.04em;
}

.pay-button,
.result-link {
  border: 0;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  width: 100%;
  padding: 0 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  position: relative;
  overflow: hidden;
}

.pay-button:hover,
.result-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(37, 86, 215, 0.38);
}

.pay-button::before,
.result-link::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02));
  opacity: 0.9;
  pointer-events: none;
}

.pay-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.status {
  min-height: 24px;
  margin: 0;
  text-align: center;
  font-family: "Instrument Sans", sans-serif;
  font-size: 14px;
  color: #b42318;
}

@media (max-width: 640px) {
  .payment-card,
  .result-card {
    padding: 22px;
    border-radius: 24px;
  }

  .amount-panel {
    min-height: 210px;
    border-radius: 22px;
    padding: 30px 18px 24px;
  }

  .amount-currency {
    margin-top: 24px;
  }

  .pay-button,
  .result-link {
    min-height: 62px;
    border-radius: 18px;
  }

  .payment-card-composed::before {
    inset: 8px;
    border-radius: 18px;
  }
}
