:root {
  color-scheme: light;
  --ink: #111111;
  --muted: rgba(29, 29, 31, 0.56);
  --soft: rgba(29, 29, 31, 0.08);
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --page: #f5f7fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(100, 210, 255, 0.30), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(191, 220, 255, 0.42), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--page) 54%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.payment-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 760;
}

.brand img {
  width: 30px;
  height: 30px;
}

.payment-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.payment-nav a {
  display: inline-grid;
  min-width: 72px;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(29, 29, 31, 0.82);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.payment-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0 96px;
}

.payment-hero {
  width: min(760px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.overline {
  margin: 0 0 12px;
  color: rgba(29, 29, 31, 0.42);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.payment-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

.payment-hero p {
  width: min(620px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.payment-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 34px 92px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  padding: 18px;
}

.plan-column,
.order-column {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 560px;
  border-radius: 24px;
  padding: clamp(20px, 3vw, 30px);
}

.plan-column {
  background: rgba(255, 255, 255, 0.36);
}

.order-column {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 760;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
}

.plan-list {
  display: grid;
  gap: 10px;
}

.plan-card {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 116px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 18px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.plan-card.is-selected {
  border-color: rgba(0, 113, 227, 0.54);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.90), rgba(236, 247, 255, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 16px 34px rgba(0, 113, 227, 0.12);
}

.plan-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.plan-card h3 {
  margin: 0;
  font-size: 18px;
}

.plan-card strong {
  font-size: 24px;
  letter-spacing: 0;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.fine-print,
.order-note small {
  margin: 0;
  color: rgba(29, 29, 31, 0.46);
  font-size: 12px;
  line-height: 1.7;
}

.account-strip,
.order-preview,
.order-note {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  padding: 16px;
}

.account-strip span,
.order-preview span,
.payment-lines span,
.order-note span {
  color: rgba(29, 29, 31, 0.48);
  font-size: 12px;
  font-weight: 680;
}

.account-strip strong,
.order-preview strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.order-preview small {
  color: var(--muted);
  line-height: 1.6;
}

.primary-action {
  display: grid;
  min-height: 50px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 780;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status.is-error {
  color: #b42318;
}

.order-result {
  display: grid;
  gap: 16px;
}

.order-result[hidden] {
  display: none !important;
}

.qr-wrap {
  display: grid;
  width: min(100%, 264px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  padding: 14px;
}

.qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-lines {
  display: grid;
  gap: 10px;
}

.payment-lines div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  padding: 10px 12px;
}

.payment-lines strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.payment-lines button {
  min-height: 30px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.92);
  color: #ffffff;
  padding: 10px 15px;
  font-size: 13px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 860px) {
  .payment-header {
    min-height: 62px;
  }

  .payment-nav a:first-child {
    display: none;
  }

  .payment-shell {
    width: min(100% - 24px, 640px);
    padding: 48px 0 72px;
  }

  .payment-card {
    grid-template-columns: 1fr;
    border-radius: 28px;
    padding: 12px;
  }

  .plan-column,
  .order-column {
    min-height: auto;
    border-radius: 22px;
  }

  .payment-lines div {
    grid-template-columns: 1fr auto;
  }

  .payment-lines span {
    grid-column: 1 / -1;
  }
}
.payment-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(69, 200, 164, 0.25);
  border-radius: 12px;
  background: rgba(69, 200, 164, 0.08);
}

.payment-state strong { font-size: 13px; }
.payment-state span { color: var(--muted); font-variant-numeric: tabular-nums; }
