:root {
  color-scheme: dark;
  --ink: #090b12;
  --ink-active: #171d31;
  --line: #2a3041;
  --line-active: #8797ff;
  --text: #f7f8ff;
  --accent: #8c9bff;
  --accent-strong: #a7b2ff;
  --accent-ink: #0b0e18;
  --radius: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--ink); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 540px at 12% -8%, rgba(93, 108, 202, .18), transparent 62%),
    radial-gradient(740px 520px at 92% 105%, rgba(56, 111, 129, .14), transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(140, 155, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(140, 155, 255, .07);
  border-radius: inherit;
}

.ambient-a { top: 9%; left: -310px; }
.ambient-b { right: -330px; bottom: 3%; }

.site-header,
.checkout-shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header { padding: 32px 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 730;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(86, 101, 198, .22);
}

.brand-mark svg { width: 25px; height: 25px; }

.checkout-shell {
  display: flex;
  min-height: calc(100vh - 102px);
  align-items: center;
  justify-content: center;
  padding: 40px 0 120px;
}

.payment-panel {
  position: relative;
  width: min(820px, 100%);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(21, 25, 39, .98), rgba(14, 17, 27, .98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .38), 0 4px 18px rgba(0, 0, 0, .22);
}

.payment-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 44px;
  right: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 178, 255, .48), transparent);
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-align: center;
  text-wrap: balance;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.method {
  display: grid;
  grid-template-columns: 50px 1fr 18px;
  gap: 15px;
  align-items: center;
  min-height: 100px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111522;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .24s var(--ease-out), background .24s var(--ease-out), transform .24s var(--ease-out), box-shadow .24s var(--ease-out);
}

.method:hover { transform: translateY(-2px); border-color: #4a5574; }
.method:active { transform: translateY(0); }
.method:focus-visible { outline: 3px solid rgba(140, 155, 255, .45); outline-offset: 3px; }

.method.is-selected {
  border-color: var(--line-active);
  background: var(--ink-active);
  box-shadow: 0 8px 24px rgba(7, 9, 17, .32);
}

.method-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 13px;
  background: #20263a;
  color: #c7ceff;
  transition: background .24s var(--ease-out), color .24s var(--ease-out);
}

.method.is-selected .method-icon { background: var(--accent); color: var(--accent-ink); }
.method-icon svg { width: 29px; height: 29px; }
.method strong { font-size: 1rem; font-weight: 700; }

.radio-dot {
  width: 18px;
  height: 18px;
  border: 1px solid #59627a;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px transparent;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.method.is-selected .radio-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--ink-active);
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 22px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(82, 96, 190, .25);
  transition: background .22s var(--ease-out), transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
}

.primary-action:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(82, 96, 190, .31); }
.primary-action:active { transform: translateY(0); }
.primary-action:focus-visible { outline: 3px solid rgba(200, 207, 255, .6); outline-offset: 4px; }
.primary-action svg { width: 21px; height: 21px; }

@media (max-width: 640px) {
  .site-header,
  .checkout-shell { width: min(100% - 28px, 1160px); }
  .site-header { padding: 20px 0; }
  .checkout-shell { min-height: calc(100vh - 78px); padding: 26px 0 72px; }
  .payment-panel { padding: 24px 16px 18px; }
  .payment-panel::before { left: 24px; right: 24px; }
  h1 { margin-bottom: 24px; font-size: clamp(2rem, 10vw, 2.75rem); }
  .method-list { grid-template-columns: 1fr; }
  .method { grid-template-columns: 46px 1fr 18px; min-height: 82px; padding: 14px; }
  .method-icon { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

