:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111b3f;
  background: #f8f9fd;
  --panel: #fff;
  --panel-strong: #fff;
  --line: #e2e6ef;
  --muted: #667289;
  --violet: #635bff;
  --violet-bright: #725cff;
  --danger: #c73c46;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(99, 91, 255, 0.08), transparent 30rem),
    radial-gradient(circle at 86% 78%, rgba(91, 142, 255, 0.08), transparent 34rem),
    linear-gradient(145deg, #fbfbfe 0%, #f7f8fc 48%, #fff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 58vw;
  height: 58vw;
  min-width: 520px;
  min-height: 520px;
  border: 1px solid rgba(99, 91, 255, 0.08);
  border-radius: 46% 54% 58% 42%;
  transform: rotate(24deg);
  pointer-events: none;
}

body::before { top: -39vw; right: -13vw; box-shadow: 0 0 90px rgba(105, 81, 255, 0.04) inset; }
body::after { bottom: -44vw; left: -15vw; transform: rotate(-18deg); }

.shell,
.card {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(35, 44, 78, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(18px);
}

.shell::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.4), transparent 32%, rgba(105,81,255,.02));
}

h1 { position: relative; margin: 0 0 9px; font-size: clamp(26px, 5vw, 32px); letter-spacing: -0.035em; }
p { position: relative; color: var(--muted); line-height: 1.55; }

.field { position: relative; display: grid; gap: 8px; margin-bottom: 17px; }
label { color: #26324a; font-size: 14px; font-weight: 650; }
input {
  width: 100%;
  border: 1px solid rgba(171, 184, 238, 0.24);
  border-radius: 13px;
  padding: 14px 15px;
  color: #111b3f;
  background: #fff;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus { outline: none; border-color: var(--violet-bright); background: #fff; box-shadow: 0 0 0 4px rgba(114, 92, 255, .12); }
.amount { position: relative; }
.amount span { position: absolute; z-index: 1; left: 15px; top: 14px; color: var(--muted); }
.amount input { padding-left: 33px; }
.terms { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.45; }
.terms input { width: auto; margin-top: 3px; accent-color: var(--violet); }
a { color: #b8abff; }

button {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 15px;
  color: white;
  background: linear-gradient(110deg, #5b43f5, #8068ff 56%, #654cff);
  box-shadow: 0 13px 32px rgba(91, 67, 245, .32), 0 1px 0 rgba(255,255,255,.22) inset;
  font-size: 16px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
button:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 16px 38px rgba(91, 67, 245, .4); }
button:focus-visible { outline: 3px solid rgba(175, 160, 255, .55); outline-offset: 3px; }
button:disabled { opacity: .58; cursor: wait; transform: none; }
.message { min-height: 20px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.error { color: var(--danger); }
.suggestions button { width: auto; margin: 7px 7px 0 0; padding: 9px 12px; background: rgba(114,92,255,.16); border: 1px solid rgba(158,142,255,.24); box-shadow: none; }
.footer, .security, .stripe { position: relative; color: var(--muted); text-align: center; font-size: 12px; }
.stripe strong { color: #9f8dff; font-size: 18px; }
.total { position: relative; text-align: center; }
.total span { color: var(--muted); font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }
.total strong { display: block; margin-top: 5px; font-size: clamp(38px, 8vw, 48px); letter-spacing: -.045em; }
.payment-box { position: relative; border: 1px solid rgba(194, 202, 235, .2); border-radius: 17px; padding: 18px; background: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.24); }
.check { background: rgba(39,174,96,.09); box-shadow: 0 0 34px rgba(39,174,96,.16); }

@media (max-width: 560px) {
  body { padding: 18px 14px; align-items: center; }
  .shell, .card { padding: 24px 20px; border-radius: 21px; }
  body::before, body::after { min-width: 390px; min-height: 390px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
