:root {
  color-scheme: dark;
  --bg: #050810;
  --panel: rgba(11, 16, 32, 0.8);
  --text: #f0f4ff;
  --muted: #98a2b8;
  --line: rgba(255, 255, 255, 0.14);
  --hot: #ff6a61;
  --orange: #ff8b61;
  --pink: #ffc2df;
  --panel-strong: rgba(13, 18, 35, 0.9);
  --shadow: 0 16px 54px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 106, 97, 0.2), transparent 30rem),
    radial-gradient(circle at 82% 20%, rgba(125, 211, 252, 0.08), transparent 24rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.76) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 106, 97, 0.3) 0 1px, transparent 1.5px);
  background-position:
    24px 30px,
    220px 80px;
  background-size:
    180px 210px,
    330px 280px;
  opacity: 0.42;
}

.checkout-shell {
  width: min(1120px, calc(100% - 38px));
  margin: 0 auto;
  padding: 18px 0 24px;
}

.order-page {
  min-height: 100vh;
}

.order-page .checkout-shell {
  display: grid;
  min-height: 100vh;
  align-content: center;
  padding: 18px 0;
}

.checkout-hero {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.checkout-hero > div {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.corner-back {
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 24;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5ef;
  background: rgba(10, 15, 29, 0.82);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  font-weight: 850;
}

.checkout-hero img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(255, 106, 97, 0.52));
}

.order-page .checkout-hero {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.order-page .checkout-hero img {
  width: 64px;
  height: 64px;
}

.order-page h1 {
  max-width: none;
  overflow: hidden;
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-page .checkout-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--hot);
  font-weight: 900;
  letter-spacing: 0.12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  width: 100%;
  max-width: 850px;
  margin-bottom: 10px;
  overflow: hidden;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--pink), var(--hot) 58%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.plan-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.order-page .plan-picker {
  gap: 12px;
  margin-bottom: 12px;
}

.purchase-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 16, 32, 0.58);
  backdrop-filter: blur(14px);
}

.purchase-flow span {
  color: #dce5ff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.purchase-flow i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 106, 97, 0.58), rgba(255, 255, 255, 0.08));
}

.plan-option {
  display: grid;
  min-height: 170px;
  gap: 10px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), var(--panel);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.order-page .plan-option {
  min-height: 138px;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
}

.plan-option:hover {
  border-color: rgba(255, 106, 97, 0.42);
  transform: translateY(-2px);
}

.plan-option span {
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--hot);
  background: rgba(255, 106, 97, 0.14);
  font-size: 13px;
  font-weight: 900;
}

.plan-option strong {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1;
}

.plan-option b {
  color: #fff;
  font-size: 27px;
}

.order-page .plan-option b {
  font-size: 25px;
}

.plan-option small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.order-page .plan-option small {
  font-size: 14px;
  line-height: 1.45;
}

.plan-option.active {
  border-color: rgba(255, 106, 97, 0.66);
  background:
    linear-gradient(145deg, rgba(255, 106, 97, 0.18), rgba(255, 139, 97, 0.06)),
    var(--panel-strong);
  box-shadow: 0 20px 58px rgba(255, 106, 97, 0.16);
}

.checkout-grid {
  display: block;
}

.checkout-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.checkout-trust article {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.checkout-trust span {
  color: var(--hot);
  font-size: 13px;
  font-weight: 900;
}

.checkout-trust strong {
  color: #fff;
  line-height: 1.35;
}

.checkout-trust p {
  margin: 0;
  font-size: 14px;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 20px;
  align-items: start;
}

.payment-stack {
  display: grid;
  gap: 14px;
}

.pay-plan-card,
.pay-order-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.pay-plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  min-height: 150px;
  padding: 22px;
}

.pay-plan-card strong {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.pay-order-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.order-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.order-lines div {
  display: grid;
  gap: 8px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 8, 16, 0.54);
}

.order-lines small {
  color: var(--muted);
  font-weight: 850;
}

.order-lines strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 18px;
}

.pay-method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 16px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(255, 106, 97, 0.36);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 106, 97, 0.12), rgba(255, 139, 97, 0.04)),
    rgba(5, 8, 16, 0.48);
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.summary-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 106, 97, 0.14);
  color: var(--hot);
  font-size: 13px;
  font-weight: 900;
}

.price {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 32px;
  font-weight: 950;
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr) minmax(180px, 0.42fr) minmax(210px, 0.5fr);
  gap: 14px;
  align-items: end;
  padding: 20px;
}

.order-page .order-card {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr) minmax(170px, 0.38fr) minmax(200px, 0.46fr);
  gap: 12px;
  padding: 18px;
}

.compact {
  margin-bottom: 8px;
  font-size: 13px;
}

.selected-copy {
  margin: 8px 0 0;
}

.checkout-total {
  display: grid;
  gap: 7px;
  min-height: 50px;
}

.checkout-total span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.checkout-total strong {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

label {
  display: grid;
  gap: 8px;
  color: #dce5ff;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(5, 8, 16, 0.76);
  outline: none;
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--hot), var(--orange));
  cursor: pointer;
  font-weight: 950;
}

.form-note {
  min-height: 24px;
  margin: 0;
}

ul {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

li {
  color: #c8d0e2;
  line-height: 1.55;
}

li::before {
  margin-right: 8px;
  color: var(--hot);
  content: "✓";
  font-weight: 900;
}

.pay-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 8, 16, 0.66);
}

.pay-box small {
  color: var(--muted);
}

.pay-box strong {
  font-size: 20px;
}

.pay-box p {
  margin: 0;
}

.pay-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 100%;
  margin-top: 6px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--hot), var(--orange));
  font-weight: 950;
}

button.pay-action {
  border: 0;
}

.pay-page {
  overflow-x: hidden;
}

.pay-page .checkout-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1100px, calc(100% - 40px));
  padding: clamp(18px, 3vh, 34px) 0;
}

.pay-page .checkout-hero {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: clamp(14px, 2.5vh, 26px);
}

.pay-page .checkout-hero img {
  width: 58px;
  height: 58px;
}

.pay-page .eyebrow {
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.pay-page h1 {
  max-width: none;
  overflow: hidden;
  margin-bottom: 8px;
  color: #f7f9ff;
  background: none;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-page .checkout-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 17px;
}

.pay-page .payment-stack {
  display: grid;
  min-height: 0;
  align-content: center;
}

.payment-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(300px, 1fr);
  grid-template-areas:
    "plan detail"
    "plan action";
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 106, 97, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(11, 16, 32, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.payment-plan,
.payment-detail,
.payment-action-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5, 8, 16, 0.5);
}

.payment-plan {
  grid-area: plan;
  display: grid;
  min-height: 360px;
  align-content: space-between;
  padding: clamp(20px, 3vw, 30px);
}

.payment-plan h2 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-plan strong {
  display: block;
  margin: 16px 0;
  color: #fff;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1;
}

.payment-plan p {
  margin-bottom: 0;
  font-size: 16px;
}

.payment-detail {
  grid-area: detail;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.detail-row {
  display: grid;
  min-height: 106px;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-row small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.detail-row strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
}

.payment-action-card {
  grid-area: action;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 18px;
  align-items: end;
  padding: clamp(18px, 2.6vw, 26px);
  border-color: rgba(255, 106, 97, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 106, 97, 0.15), rgba(255, 139, 97, 0.04)),
    rgba(5, 8, 16, 0.52);
}

.payment-action-card h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.payment-action-card p {
  margin-bottom: 0;
}

.payment-action-card .pay-action {
  min-height: 58px;
  margin-top: 0;
  box-shadow: 0 14px 34px rgba(255, 106, 97, 0.22);
}

.pay-action-wrap {
  display: grid;
  gap: 12px;
}

.wechat-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.wechat-qr img {
  width: min(190px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.wechat-qr small {
  color: #1f2937;
  font-weight: 900;
}

.pay-page .summary-card {
  width: min(540px, 100%);
  margin: auto;
}

.pay-page .corner-back {
  top: 22px;
  right: 22px;
  bottom: auto;
  min-height: 40px;
  background: rgba(11, 16, 32, 0.7);
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(10px);
}

.login-modal[hidden] {
  display: none;
}

.login-panel {
  position: relative;
  display: grid;
  width: min(430px, 100%);
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11, 16, 32, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.76);
}

.login-tabs,
.code-row {
  display: grid;
  gap: 8px;
}

.login-tabs {
  grid-template-columns: 1fr 1fr;
}

.code-row {
  grid-template-columns: 1fr 92px;
}

.login-tabs button,
#send-code {
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(5, 8, 16, 0.76);
}

.login-tabs .active,
.login-submit {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--hot), var(--orange));
}

.login-note {
  min-height: 22px;
  margin: 0;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 12, 0.74);
  backdrop-filter: blur(18px);
}

.support-modal[hidden] {
  display: none;
}

.order-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 12, 0.78);
  backdrop-filter: blur(18px);
}

.order-alert-modal[hidden] {
  display: none;
}

.order-alert-panel {
  position: relative;
  display: grid;
  width: min(560px, 100%);
  gap: 14px;
  padding: 30px;
  border: 1px solid rgba(255, 106, 97, 0.62);
  border-radius: 26px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 106, 97, 0.24), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(11, 16, 32, 0.98);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.order-alert-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.76);
}

.order-alert-panel h2 {
  margin: 0;
  max-width: 440px;
  color: #fff;
  font-size: clamp(28px, 4.8vw, 42px);
  line-height: 1.08;
}

.order-alert-panel p:not(.eyebrow) {
  margin: 0;
  color: #d8def0;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.75;
}

.order-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.order-alert-primary,
.order-alert-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 950;
}

.order-alert-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--hot), var(--orange));
}

.order-alert-secondary {
  border: 1px solid var(--line-strong);
  color: #f3f6ff;
  background: rgba(255, 255, 255, 0.08);
}

.support-panel {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  width: min(680px, 100%);
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 106, 97, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(11, 16, 32, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.support-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.76);
}

.support-qr {
  display: grid;
  aspect-ratio: 1;
  width: 100%;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: rgba(5, 8, 16, 0.72);
}

.support-qr img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.support-qr span {
  max-width: 120px;
  color: #b7c0d6;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
  text-align: center;
}

.support-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

.support-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
}

.support-copy p:not(.eyebrow) {
  margin: 0;
  color: #c7d0e4;
  font-size: 16px;
  line-height: 1.75;
}

.support-copy-button,
.support-ok {
  justify-self: start;
  min-width: 150px;
  padding: 0 22px;
}

.support-copy-button {
  border: 1px solid var(--line);
  color: #f0f4ff;
  background: rgba(5, 8, 16, 0.78);
}

@media (max-width: 820px) {
  .checkout-hero,
  .order-card,
  .checkout-trust,
  .payment-grid,
  .pay-plan-card,
  .order-lines,
  .pay-method,
  .purchase-flow {
    grid-template-columns: 1fr;
  }

  .checkout-hero {
    justify-items: center;
    text-align: center;
  }

  .plan-option {
    min-height: 0;
  }

  .order-page .checkout-shell {
    min-height: auto;
    align-content: start;
  }

  .order-page .order-card {
    grid-template-columns: 1fr;
  }

  .purchase-flow {
    gap: 8px;
  }

  .purchase-flow i {
    display: none;
  }

  .payment-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "plan"
      "detail"
      "action";
  }

  .payment-plan {
    min-height: auto;
  }

  .payment-detail,
  .payment-action-card {
    grid-template-columns: 1fr;
  }

  .order-alert-panel {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 106, 97, 0.16), transparent 22rem),
      var(--bg);
  }

  .checkout-shell {
    width: min(100% - 24px, 560px);
    padding: 12px 0 calc(70px + env(safe-area-inset-bottom));
  }

  .order-page .checkout-shell {
    width: min(100% - 24px, 560px);
    padding-top: 56px;
  }

  .checkout-hero {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    justify-items: start;
    margin-bottom: 12px;
    text-align: left;
  }

  .checkout-hero img {
    width: 48px;
    height: 48px;
  }

  .checkout-hero p:not(.eyebrow) {
    display: none;
  }

  .eyebrow {
    margin-bottom: 5px;
    font-size: 12px;
  }

  h1 {
    margin-bottom: 0;
    font-size: clamp(20px, 6.4vw, 30px);
    line-height: 1.12;
  }

  .order-page h1 {
    max-width: 100%;
    font-size: clamp(19px, 5.6vw, 24px);
  }

  .order-page .checkout-hero {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .order-page .checkout-hero img {
    width: 42px;
    height: 42px;
  }

  h2 {
    font-size: 24px;
  }

  .plan-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
    overflow: visible;
  }

  .plan-picker::-webkit-scrollbar {
    display: none;
  }

  .plan-option {
    min-width: 0;
    min-height: 116px;
    gap: 6px;
    padding: 13px;
    border-radius: 16px;
  }

  .plan-option span {
    padding: 5px 9px;
    font-size: 12px;
  }

  .plan-option strong {
    font-size: 21px;
  }

  .plan-option b {
    font-size: 22px;
  }

  .plan-option small {
    display: none;
  }

  .order-card {
    gap: 12px;
    padding: 16px;
    border-radius: 17px;
  }

  .selected-copy {
    display: none;
  }

  label {
    gap: 6px;
    font-size: 14px;
  }

  input,
  select,
  button {
    min-height: 46px;
  }

  .checkout-total {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: auto;
  }

  .checkout-total strong {
    font-size: 24px;
  }

  .form-note,
  .login-note {
    min-height: 18px;
    font-size: 13px;
  }

  .pay-plan-card,
  .pay-order-card,
  .summary-card {
    border-radius: 17px;
  }

  .pay-plan-card {
    min-height: auto;
    padding: 16px;
  }

  .pay-plan-card p {
    display: none;
  }

  .pay-plan-card strong {
    font-size: 32px;
  }

  .pay-order-card {
    gap: 12px;
    padding: 16px;
  }

  .order-lines {
    gap: 8px;
  }

  .order-lines div {
    min-height: auto;
    padding: 12px;
    border-radius: 14px;
  }

  .order-lines strong {
    font-size: 15px;
  }

  .pay-method {
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .pay-method p {
    font-size: 14px;
  }

  .pay-action {
    min-height: 48px;
  }

  .support-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 430px;
    padding: 22px;
    text-align: center;
  }

  .support-qr {
    width: min(230px, 100%);
    justify-self: center;
  }

  .support-copy-button,
  .support-ok {
    justify-self: stretch;
  }

  .order-alert-modal {
    align-items: end;
    padding: 12px;
  }

  .order-alert-panel {
    gap: 12px;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px;
  }

  .order-alert-panel h2 {
    max-width: calc(100% - 34px);
    font-size: 26px;
  }

  .order-alert-panel p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.65;
  }

  .order-alert-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .order-alert-primary,
  .order-alert-secondary {
    width: 100%;
  }

  .order-page .checkout-shell {
    padding-top: 56px;
  }

  .order-page .checkout-hero p:not(.eyebrow) {
    display: block;
    font-size: 14px;
    line-height: 1.55;
  }

  .order-page .plan-picker {
    margin-bottom: 10px;
  }

  .purchase-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 15px;
  }

  .purchase-flow span {
    padding: 7px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 12px;
    text-align: center;
  }

  .order-page .plan-option {
    min-height: 118px;
  }

  .corner-back {
    right: 12px;
    top: 12px;
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .order-page .corner-back {
    top: 12px;
    bottom: auto;
  }

  .pay-page .checkout-shell {
    width: min(100% - 24px, 560px);
    min-height: auto;
    padding: 12px 0 calc(70px + env(safe-area-inset-bottom));
  }

  .pay-page .checkout-hero {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    justify-items: start;
    text-align: left;
  }

  .pay-page .checkout-hero img {
    width: 42px;
    height: 42px;
  }

  .pay-page .checkout-hero p:not(.eyebrow) {
    display: block;
    font-size: 14px;
    line-height: 1.55;
  }

  .pay-page h1 {
    margin-bottom: 6px;
    font-size: clamp(20px, 6.4vw, 30px);
    line-height: 1.12;
  }

  .payment-panel {
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
  }

  .payment-plan,
  .payment-detail,
  .payment-action-card {
    border-radius: 16px;
  }

  .payment-plan {
    padding: 16px;
  }

  .payment-plan h2 {
    font-size: 28px;
  }

  .payment-plan strong {
    margin: 10px 0;
    font-size: 42px;
  }

  .payment-detail {
    gap: 8px;
    padding: 10px;
  }

  .detail-row {
    min-height: auto;
    padding: 11px;
  }

  .payment-action-card {
    gap: 12px;
    padding: 14px;
  }

  .payment-action-card .pay-action {
    min-height: 50px;
  }

  .pay-page .corner-back {
    top: auto;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .login-modal {
    align-items: end;
    padding: 12px;
  }

  .login-panel {
    width: 100%;
    max-height: min(620px, calc(100vh - 24px));
    gap: 10px;
    padding: 18px;
    overflow: auto;
    border-radius: 18px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }
}

@media (min-width: 821px) and (max-height: 820px) {
  .checkout-shell {
    padding-top: 12px;
  }

  .checkout-hero {
    grid-template-columns: 68px 1fr;
    margin-bottom: 12px;
  }

  .checkout-hero img {
    width: 68px;
    height: 68px;
  }

  h1 {
    font-size: clamp(24px, 3vw, 38px);
  }

  .plan-option {
    min-height: 142px;
    padding: 16px;
  }

  .pay-plan-card {
    min-height: 126px;
    padding: 18px;
  }

  .pay-order-card,
  .order-card,
  .summary-card {
    padding: 18px;
  }
}
