:root {
  color-scheme: light;
  --blue: #2563eb;
  --blue-dark: #1746b2;
  --blue-soft: #eaf0ff;
  --ink: #141a2b;
  --muted: #677085;
  --paper: #f5f7fb;
  --white: #fff;
  --line: #e4e9f2;
  --success: #18a76f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; min-width: 320px; overflow-x: clip; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 5%, rgba(37, 99, 235, .12), transparent 28rem),
    radial-gradient(circle at 92% 28%, rgba(103, 134, 245, .10), transparent 25rem),
    linear-gradient(180deg, #fbfcff 0, var(--paper) 48rem);
}

.page-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 9px 22px rgba(37, 99, 235, .2); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: #9aa3b4; font-size: 7px; font-weight: 700; letter-spacing: .16em; }
.secure-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.secure-note i { width: 20px; height: 20px; display: grid; place-items: center; color: var(--success); background: #e8f7f1; border-radius: 50%; font-size: 11px; font-style: normal; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.history-trigger { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--ink); background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: 11px; font-size: 12px; font-weight: 700; }
.history-trigger span { min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 999px; font-size: 9px; }

.hero { padding: 60px 0 54px; text-align: center; }
.official-banner { width: fit-content; margin: 0 auto 28px; padding: 8px 13px; display: flex; align-items: center; gap: 8px; color: #147353; background: #eaf8f2; border: 1px solid #ccebdd; border-radius: 999px; font-size: 12px; font-weight: 650; }
.official-banner > span { width: 17px; height: 17px; display: grid; place-items: center; color: white; background: var(--success); border-radius: 50%; font-size: 9px; font-weight: 800; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .22em; }
.hero h1 { margin: 0; font-size: clamp(46px, 6.5vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy { width: min(590px, 100%); margin: 24px auto 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

.plans { padding: 30px 0 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-kicker { margin: 0 0 6px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.section-heading > span { padding-bottom: 3px; color: var(--muted); font-size: 13px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card {
  min-width: 0;
  min-height: 232px;
  padding: 27px 25px 24px;
  position: relative;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 45px rgba(31, 48, 87, .055);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.plan-card:hover { transform: translateY(-3px); border-color: #c8d5f7; box-shadow: 0 20px 50px rgba(31, 48, 87, .09); }
.plan-card:focus-visible { outline: 3px solid rgba(37, 99, 235, .23); outline-offset: 3px; }
.plan-card.is-selected { border-color: var(--blue); background: var(--white); box-shadow: 0 20px 48px rgba(37, 99, 235, .14); }
.plan-card.is-selected::after { content: ""; position: absolute; right: -35px; bottom: -45px; width: 125px; height: 125px; background: radial-gradient(circle, rgba(37, 99, 235, .13), transparent 68%); }
.plan-badge { position: absolute; top: 0; right: 0; padding: 7px 14px 8px; color: white; background: var(--blue); border-radius: 0 20px 0 15px; font-size: 11px; font-weight: 750; letter-spacing: .05em; }
.plan-check { position: absolute; top: 23px; right: 22px; width: 24px; height: 24px; display: grid; place-items: center; color: transparent; border: 1.5px solid #d8deea; border-radius: 50%; font-size: 12px; font-weight: 800; }
.plan-card.is-featured .plan-check { display: none; }
.plan-card.is-selected .plan-check { color: white; border-color: var(--blue); background: var(--blue); }
.plan-name, .plan-days, .plan-level, .plan-price, .plan-unit { display: block; }
.plan-name { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.plan-days { margin-top: 6px; color: var(--muted); font-size: 13px; }
.plan-level { width: fit-content; margin-top: 13px; padding: 5px 9px; color: var(--blue); background: var(--blue-soft); border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.plan-price { margin-top: 18px; display: flex; align-items: flex-start; color: var(--ink); }
.plan-price small { margin: 8px 4px 0 0; font-size: 17px; font-weight: 750; }
.plan-price strong { font-size: 45px; line-height: 1; letter-spacing: -.055em; }
.plan-unit { margin-top: 11px; color: var(--muted); font-size: 12px; font-weight: 550; }
.plan-card.is-selected .plan-unit { color: var(--blue); }
.level-note { margin: 14px 3px 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.benefits { margin: 24px 0; padding: 22px 26px; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255, 255, 255, .67); border: 1px solid rgba(228, 233, 242, .9); border-radius: 20px; }
.benefits > div { min-width: 0; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; padding: 4px 22px; }
.benefits > div + div { border-left: 1px solid var(--line); }
.benefits span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 11px; font-size: 11px; font-weight: 800; }
.benefits strong { font-size: 14px; }
.benefits small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.checkout { margin: 0 0 30px; padding: 23px 26px; display: grid; grid-template-columns: minmax(0, 1fr) 250px 240px; gap: 13px 22px; align-items: center; color: white; background: linear-gradient(135deg, #1b49b9, #2563eb 58%, #4079ef); border-radius: 22px; box-shadow: 0 22px 48px rgba(37, 99, 235, .2); }
.checkout-summary span, .checkout-summary strong { display: block; }
.checkout-summary span { margin-bottom: 6px; color: rgba(255, 255, 255, .7); font-size: 12px; }
.checkout-summary strong { font-size: 20px; }
.payment-picker { width: 250px; padding: 4px; display: flex; gap: 4px; background: rgba(10, 35, 101, .24); border-radius: 13px; }
.payment-option { height: 42px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: rgba(255, 255, 255, .74); background: transparent; border: 0; border-radius: 10px; font-size: 12px; font-weight: 700; transition: color .15s ease, background-color .15s ease; }
.payment-picker .payment-option { flex: 1; justify-content: center; }
.payment-option.is-selected { color: var(--ink); background: white; box-shadow: 0 6px 15px rgba(11, 32, 88, .15); }
.payment-option:disabled { cursor: not-allowed; opacity: .48; }
.payment-option > small { font-size: 8px; font-weight: 650; white-space: nowrap; }
.payment-option:focus-visible { outline: 3px solid rgba(255, 255, 255, .4); outline-offset: 2px; }
.alipay-mark, .wechat-mark, .usdt-mark { width: 21px; height: 21px; display: grid; place-items: center; color: white; border-radius: 6px; font-size: 11px; font-weight: 850; }
.alipay-mark { background: #1677ff; }
.wechat-mark { background: #07c160; }
.usdt-mark { background: #26a17b; border-radius: 50%; font-size: 14px; }
.payment-logo { width: 22px; height: 22px; flex: 0 0 auto; display: block; object-fit: contain; }
.checkout-action { width: 240px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.total { text-align: right; }
.total span, .total strong { display: block; }
.total span { margin-bottom: 3px; color: rgba(255, 255, 255, .7); font-size: 11px; }
.total strong { font-size: 25px; }
.primary-button { min-height: 52px; padding: 0 24px; cursor: pointer; border: 0; border-radius: 14px; color: var(--blue); background: white; font-size: 15px; font-weight: 750; box-shadow: 0 8px 22px rgba(11, 32, 88, .16); transition: transform .15s ease, opacity .15s ease; }
.primary-button:hover { transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.checkout > p { grid-column: 1 / -1; margin: 0; color: rgba(255, 255, 255, .7); font-size: 11px; }
.pending-order-bar { margin: -14px 0 30px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border: 1px solid #dfe6f4; border-radius: 16px; box-shadow: 0 12px 30px rgba(29, 53, 103, .08); }
.pending-order-bar[hidden] { display: none; }
.pending-order-bar span, .pending-order-bar strong { display: block; }
.pending-order-bar span { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.pending-order-bar strong { font-size: 14px; }
.pending-order-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.pending-order-actions button { min-height: 38px; padding: 0 14px; cursor: pointer; border: 0; border-radius: 10px; color: var(--muted); background: #f1f4f9; font-size: 12px; font-weight: 750; }
.pending-order-actions button:first-child { color: white; background: var(--blue); }

.guide { margin: 75px 0 55px; }
.guide h2 { margin: 0 0 22px; font-size: 23px; letter-spacing: -.03em; }
.guide ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.guide li { padding: 20px; display: flex; align-items: center; gap: 13px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.guide li > span { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 12px; font-weight: 800; }
.guide strong, .guide small { display: block; }
.guide strong { font-size: 14px; }
.guide small { margin-top: 4px; color: var(--muted); font-size: 11px; }

footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8891a3; border-top: 1px solid var(--line); font-size: 12px; }
footer a { color: inherit; font-weight: 700; text-decoration: none; }

.dialog-backdrop { width: 100%; max-width: 100vw; position: fixed; inset: 0; z-index: 20; padding: 20px; place-items: center; overflow-x: hidden; background: rgba(12, 18, 34, .48); backdrop-filter: blur(9px); }
.dialog-backdrop:not([hidden]) { display: grid; }
.dialog-card { width: min(420px, 100%); min-width: 0; max-width: 100%; padding: 32px; position: relative; background: white; border-radius: 24px; box-shadow: 0 35px 90px rgba(15, 24, 48, .25); animation: dialog-in .2s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog-close { width: 34px; min-width: 34px; height: 34px; padding: 0; position: absolute; top: 13px; right: 13px; display: block; cursor: pointer; overflow: hidden; border: 0; border-radius: 50%; color: #657087; background: #f1f4f8; font-size: 0; }
.dialog-close::before, .dialog-close::after { content: ""; width: 16px; height: 2px; position: absolute; top: 50%; left: 50%; border-radius: 999px; background: currentColor; }
.dialog-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.dialog-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.dialog-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #9d6b00; background: #fff4cf; border-radius: 14px; font-size: 18px; font-weight: 850; }
.dialog-card h2 { margin: 20px 0 8px; font-size: 24px; letter-spacing: -.035em; }
.dialog-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialog-card label { margin: 22px 0 8px; display: block; font-size: 12px; font-weight: 700; }
.dialog-card input { width: 100%; height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 13px; outline: none; font-size: 16px; }
.dialog-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .09); }
.form-error { min-height: 20px; padding-top: 7px; color: #d33a4b !important; font-size: 12px !important; }
.dialog-submit { width: 100%; color: white; background: var(--blue); box-shadow: 0 12px 25px rgba(37, 99, 235, .22); }
.success-card { text-align: center; }
.payment-card { width: min(500px, 100%); max-height: calc(100dvh - 32px); padding: 25px 29px; overflow-x: hidden; overflow-y: auto; text-align: center; }
.payment-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; }
.payment-heading > div { min-width: 0; }
.payment-heading small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.payment-heading h2 { margin: 3px 0 0; overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.payment-heading > strong { align-self: end; margin: 0 35px 1px 0; font-size: 22px; letter-spacing: -.04em; line-height: 1.2; white-space: nowrap; }
.payment-brand { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; box-shadow: 0 10px 22px rgba(21, 59, 130, .14); }
.payment-brand img { width: 100%; height: 100%; grid-area: 1 / 1; display: block; object-fit: contain; }
.payment-brand-symbol { grid-area: 1 / 1; color: white; font-size: 27px; font-weight: 800; line-height: 1; }
.payment-brand img[hidden], .payment-brand-symbol[hidden] { display: none; }
.alipay-brand { background: transparent; }
.wechat-brand { background: #07c160; }
.usdt-brand { background: #26a17b; border-radius: 50%; }
.qr-panel { margin-top: 14px; }
.qr-shell { width: 180px; height: 180px; margin: 0 auto; padding: 10px; position: relative; display: grid; place-items: center; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 32px rgba(25, 43, 83, .09); }
.qr-shell::before, .qr-shell::after { content: ""; position: absolute; inset: 5px; pointer-events: none; border: 2px solid transparent; border-radius: 17px; }
.qr-shell::before { border-top-color: var(--blue); border-left-color: var(--blue); clip-path: polygon(0 0, 34% 0, 34% 2px, 2px 2px, 2px 34%, 0 34%); }
.qr-shell::after { border-right-color: var(--blue); border-bottom-color: var(--blue); clip-path: polygon(66% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 66%, 100% 66%, 100% 100%, 66% 100%); }
.qr-shell img { width: 160px; height: 160px; display: block; border-radius: 7px; }
.qr-panel > p, .launch-panel > p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.crypto-panel { width: 100%; min-width: 0; margin-top: 7px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; text-align: left; }
.crypto-panel[hidden] { display: none; }
.crypto-panel > * { min-width: 0; max-width: 100%; }
.crypto-exact, .crypto-address { padding: 9px 12px; background: #f5f8f7; border-radius: 12px; }
.crypto-exact > span, .crypto-address > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.crypto-exact button, .crypto-address button { width: 100%; padding: 0; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink); background: transparent; border: 0; text-align: left; }
.crypto-exact strong { color: #16835f; font-size: 23px; letter-spacing: -.025em; }
.crypto-exact b { font-size: 13px; }
.crypto-panel button small { flex: 0 0 auto; margin-left: auto; color: var(--blue); font-size: 12px; font-weight: 750; white-space: nowrap; }
.crypto-address code { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #273245; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; white-space: nowrap; }
.crypto-warning { margin: 0; padding: 8px 10px; overflow-wrap: anywhere; color: #9a5a00; background: #fff7e5; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.crypto-expiry { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.crypto-expiry strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.crypto-expiry strong.is-urgent { color: #d94938; }
.launch-panel { margin-top: 27px; }
.launch-panel .primary-button { width: 100%; margin-top: 17px; display: flex; align-items: center; justify-content: center; color: white; background: var(--blue); text-decoration: none; box-shadow: 0 12px 25px rgba(37, 99, 235, .22); }
.payment-fallback { margin-top: 15px; display: inline-block; color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.payment-progress { min-height: 38px; margin-top: 7px; padding: 8px 11px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: #f5f7fb; border-radius: 11px; font-size: 12px; }
.payment-spinner { width: 15px; height: 15px; flex: 0 0 auto; display: block; border: 2px solid #d9e1f5; border-top-color: var(--blue); border-radius: 50%; animation: payment-spin .8s linear infinite; }
.payment-progress.is-expired { color: #c43d32; background: #fff0ee; }
.payment-progress.is-expired .payment-spinner { display: none; }
.payment-order-reference { margin-top: 9px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: #f7f8fa; border-radius: 9px; font-size: 12px; text-align: left; }
.payment-order-reference > span { flex: 0 0 auto; }
.payment-order-reference button { min-width: 0; flex: 1; padding: 0; display: flex; align-items: center; gap: 6px; cursor: pointer; background: transparent; border: 0; }
.payment-order-reference code { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #4f596b; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px; white-space: nowrap; }
.payment-order-reference small { flex: 0 0 auto; margin-left: auto; color: var(--blue); font-size: 11px; font-weight: 750; white-space: nowrap; }
.dialog-backdrop.is-expired .qr-panel, .dialog-backdrop.is-expired .crypto-panel { opacity: .38; pointer-events: none; }
.payment-card > .dialog-submit { margin-top: 14px; color: white; background: var(--blue); }
.qr-panel[hidden], .launch-panel[hidden], .payment-fallback[hidden], .payment-card > .dialog-submit[hidden] { display: none; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
.success-mark { width: 58px; height: 58px; margin: 0 auto; display: grid; place-items: center; color: white; background: var(--success); border-radius: 50%; font-size: 25px; font-weight: 800; box-shadow: 0 12px 25px rgba(24, 167, 111, .22); }
.success-kicker { margin-top: 16px !important; color: var(--success) !important; font-size: 11px !important; font-weight: 800; letter-spacing: .14em; }
.success-card h2 { margin-top: 6px; }
.code-box { width: 100%; margin: 22px 0 14px; padding: 18px 12px 14px; cursor: pointer; border: 1.5px dashed #a9bce8; border-radius: 16px; background: #f4f7ff; }
.code-box strong, .code-box span { display: block; }
.code-box strong { color: var(--blue-dark); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: clamp(20px, 6vw, 27px); letter-spacing: .08em; }
.code-box span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.secondary-button { min-height: 50px; margin-top: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink); background: #f1f3f7; border-radius: 14px; font-size: 14px; font-weight: 700; text-decoration: none; }
.success-tip { margin-top: 17px; display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.history-card { width: min(500px, 100%); }
.history-kicker { color: var(--blue) !important; font-size: 11px !important; font-weight: 750; letter-spacing: .08em; }
.history-card h2 { margin: 5px 0 20px; }
.history-list { max-height: min(520px, 65vh); overflow-y: auto; overscroll-behavior: contain; }
.history-empty { padding: 38px 15px; color: var(--muted); background: #f6f8fb; border-radius: 15px; text-align: center; font-size: 13px; }
.history-item { padding: 15px 0; display: grid; grid-template-columns: 1fr auto; column-gap: 15px; align-items: center; border-top: 1px solid var(--line); }
.history-item:first-child { padding-top: 0; border-top: 0; }
.history-item-copy { min-width: 0; }
.history-item-title { display: flex; align-items: center; gap: 8px; }
.history-item-title strong { font-size: 14px; }
.history-item-title span { color: var(--muted); font-size: 11px; }
.history-item-code { margin-top: 7px; display: block; overflow: hidden; color: var(--blue-dark); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 14px; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.history-item-time { margin-top: 6px; display: block; color: #929aab; font-size: 10px; }
.history-copy-button { min-height: 38px; padding: 0 13px; cursor: pointer; color: var(--blue); background: var(--blue-soft); border: 0; border-radius: 10px; font-size: 12px; font-weight: 750; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 40; max-width: calc(100% - 36px); padding: 11px 16px; color: white; background: rgba(20, 26, 43, .92); border-radius: 11px; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .page-shell { width: calc(100% - 28px); }
  .topbar { height: 72px; }
  .topbar-actions { gap: 8px; }
  .secure-note { font-size: 11px; }
  .history-trigger { min-height: 36px; padding: 0 10px; }
  .hero { padding: 42px 0 39px; }
  .official-banner { margin-bottom: 24px; font-size: 11px; }
  .hero h1 { white-space: nowrap; font-size: clamp(42px, 12vw, 58px); }
  .hero-copy { font-size: 13px; }
  .section-heading { display: block; }
  .section-heading > span { margin-top: 7px; display: block; }
  .plan-grid { grid-template-columns: 1fr; gap: 11px; }
  .plan-card { min-height: 136px; padding: 20px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; align-content: center; }
  .plan-name { grid-column: 1; grid-row: 1; font-size: 17px; }
  .plan-days { grid-column: 1; grid-row: 2; margin-top: 4px; }
  .plan-level { grid-column: 1; grid-row: 3; margin-top: 9px; }
  .plan-price { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0 8px 0 20px; }
  .plan-price small { margin-top: 5px; font-size: 14px; }
  .plan-price strong { font-size: 34px; }
  .plan-unit { grid-column: 2; grid-row: 3; align-self: center; margin: 9px 8px 0 16px; text-align: right; }
  .plan-check { top: auto; right: 17px; bottom: 16px; width: 20px; height: 20px; font-size: 10px; }
  .plan-badge { padding: 5px 11px 6px; border-radius: 0 18px 0 13px; font-size: 10px; }
  .benefits { padding: 7px 18px; grid-template-columns: 1fr; }
  .benefits > div { padding: 14px 2px; }
  .benefits > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .checkout { padding: 22px; grid-template-columns: 1fr; }
  .payment-picker { width: 100%; }
  .payment-option { flex: 1; justify-content: center; }
  .checkout-action { width: 100%; justify-content: space-between; gap: 15px; }
  .total { text-align: left; }
  .checkout .primary-button { flex: 1; padding: 0 13px; }
  .pending-order-bar { margin-top: -15px; padding: 15px; align-items: stretch; flex-direction: column; gap: 12px; }
  .pending-order-actions { width: 100%; }
  .pending-order-actions button { flex: 1; }
  .guide { margin-top: 55px; }
  .guide ol { grid-template-columns: 1fr; gap: 9px; }
  footer { padding: 25px 0; flex-direction: column; justify-content: center; gap: 7px; text-align: center; }
  .dialog-backdrop { padding: 14px; align-items: end; }
  .dialog-card { padding: 29px 22px max(24px, env(safe-area-inset-bottom)); border-radius: 23px 23px 0 0; }
  .history-card { max-height: 85vh; }
  .payment-heading { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; }
  .payment-brand { width: 42px; height: 42px; border-radius: 12px; font-size: 17px; }
  .payment-heading h2 { font-size: 16px; }
  .payment-heading > strong { font-size: 18px; }
  .qr-panel { margin-top: 14px; }
  .qr-shell { width: 180px; height: 180px; }
  .qr-shell img { width: 160px; height: 160px; }
}

@media (max-width: 480px) {
  .secure-note { display: none; }
  .payment-card { max-height: calc(100dvh - 14px); padding: 23px 22px max(20px, env(safe-area-inset-bottom)); overflow-y: auto; }
  .payment-heading { grid-template-columns: minmax(0, 1fr) auto; padding-top: 23px; padding-right: 42px; align-items: baseline; }
  .payment-heading .payment-brand, .payment-heading small { display: none; }
  .payment-heading h2 { font-size: 16px; letter-spacing: -.025em; }
  .payment-heading > strong { align-self: baseline; margin: 0; font-size: 18px; }
}

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

/* Soft blue production layout */
.soft-production-page { min-height: 100vh; color: #172037; background: #eef4ff; }
.soft-production-page::before { display: none; }
.soft-production-shell { width: min(960px, calc(100% - 38px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.soft-production-header { height: 72px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.soft-header-brand { min-width: 0; padding-right: 94px; }
.soft-production-header .brand img { box-shadow: 0 9px 22px rgba(37, 99, 235, .16); }
.soft-production-header .brand > span { height: 40px; padding: 2px 0; display: flex; flex-direction: column; justify-content: space-between; }
.soft-brand-title { position: relative; display: block; width: fit-content; }
.soft-production-header .brand strong { font-size: 17px; line-height: 19px; }
.soft-production-header .brand small { margin: 0; font-size: 9px; line-height: 11px; letter-spacing: .14em; }
.soft-history-button { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: #5d6d8b; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); border-radius: 10px; font-size: 12px; font-weight: 700; }
.soft-history-button span { min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; color: white; background: #2563eb; border-radius: 999px; font-size: 9px; }
.soft-production-main { flex: 1; padding: 0 0 36px; }
.soft-production-title { text-align: center; }
.soft-production-title > span { padding: 6px 10px; display: inline-block; color: #2453ba; background: rgba(255, 255, 255, .72); border-radius: 999px; font-size: 10px; font-weight: 800; }
.soft-production-title h1 { margin: 14px 0 7px; font-size: clamp(36px, 5vw, 52px); letter-spacing: -.06em; }
.soft-production-title p { margin: 0; color: #6d7890; font-size: 13px; }
.soft-production-board { margin-top: 25px; padding: 12px; display: grid; grid-template-columns: 1.25fr .9fr; gap: 12px; background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .94); border-radius: 26px; box-shadow: 0 24px 65px rgba(53, 88, 156, .11); backdrop-filter: blur(18px); }
.soft-production-plans { padding: 18px; background: white; border-radius: 18px; }
.soft-production-plans > h2 { margin: 0 0 11px; font-size: 17px; }
.soft-production-plans > div { display: grid; grid-template-columns: 1fr; gap: 8px; }
.soft-plan-card { min-height: 72px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; cursor: pointer; color: #1c2740; background: #f5f7fb; border: 1.5px solid transparent; border-radius: 13px; text-align: left; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.soft-plan-card:hover { transform: translateY(-1px); }
.soft-plan-card.is-selected { background: #edf3ff; border-color: #4c79e7; }
.soft-plan-card strong, .soft-plan-card small { display: block; }
.soft-plan-card strong { font-size: 15px; }
.soft-plan-card small { margin-top: 4px; color: #7d879b; font-size: 11px; }
.soft-plan-card b { color: #2459d2; font-size: 25px; letter-spacing: -.035em; }
.soft-plan-card b i { font-size: 11px; font-style: normal; }
.soft-plan-card:focus-visible, .soft-payment-option:focus-visible, .soft-production-buy:focus-visible, .soft-history-button:focus-visible { outline: 3px solid rgba(37, 99, 235, .25); outline-offset: 2px; }
.soft-production-summary { padding: 21px; display: flex; flex-direction: column; color: white; background: linear-gradient(145deg, #2457cb, #3f79ec); border-radius: 18px; }
.soft-production-summary > span { color: rgba(255, 255, 255, .7); font-size: 11px; }
.soft-production-summary h2 { min-height: 48px; margin: 6px 0 3px; font-size: 20px; line-height: 1.25; }
.soft-production-summary > p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 11px; }
.soft-production-payments { margin-top: 21px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.soft-payment-option { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; color: rgba(255, 255, 255, .74); background: rgba(15, 45, 116, .27); border: 0; border-radius: 10px; font-size: 12px; font-weight: 700; }
.soft-payment-option.is-selected { color: #183264; background: white; }
.soft-payment-option .payment-logo { width: 22px; height: 22px; }
.soft-payment-option .usdt-mark { width: 22px; height: 22px; font-size: 14px; }
.soft-production-total { margin-top: auto; padding-top: 19px; }
.soft-production-total small, .soft-production-total strong { display: block; }
.soft-production-total small { color: rgba(255, 255, 255, .68); font-size: 10px; }
.soft-production-total strong { margin-top: 1px; font-size: 32px; letter-spacing: -.04em; }
.soft-production-buy { min-height: 49px; margin-top: 9px; cursor: pointer; color: #2457cb; background: white; border: 0; border-radius: 12px; font-size: 14px; font-weight: 780; box-shadow: 0 10px 24px rgba(16, 48, 125, .16); }
.soft-production-buy:disabled { cursor: wait; opacity: .68; }
.soft-production-trust { margin-top: 13px; display: flex; justify-content: center; gap: 11px; color: rgba(255, 255, 255, .72); font-size: 9px; }
.soft-production-trust span::before { content: "✓"; margin-right: 4px; font-weight: 900; }
.soft-pending-order { margin: 13px 12px 0; }
.soft-production-footer { min-height: 58px; flex: 0 0 auto; padding: 0; color: #77849d; border-top: 1px solid rgba(109, 128, 164, .14); font-size: 11px; }
.soft-production-footer a { color: inherit; }

@media (max-width: 720px) {
  .soft-production-shell { width: min(100% - 28px, 620px); }
  .soft-production-header { height: 66px; gap: 8px; }
  .soft-production-main { padding: 0 0 28px; }
  .soft-production-title h1 { margin-top: 12px; font-size: 36px; }
  .soft-production-board { margin-top: 22px; grid-template-columns: 1fr; border-radius: 22px; }
  .soft-production-plans { padding: 15px; }
  .soft-plan-card { min-height: 68px; }
  .soft-production-summary { min-height: 300px; padding: 19px; }
  .soft-production-summary h2 { min-height: auto; }
  .soft-pending-order { margin: 12px 0 0; }
  .soft-production-footer { min-height: 70px; padding: 20px 0; }
}

@media (max-width: 420px) {
  .soft-production-header .brand small { display: block; }
  .soft-production-title h1 { font-size: 32px; }
  .soft-production-title p { font-size: 12px; }
  .soft-production-board { padding: 9px; }
  .soft-production-plans { padding: 13px; }
  .soft-production-summary { min-height: 285px; }
  .soft-production-trust { gap: 8px; }
}
