/* ==========================================================
   Commerce pages — Pricing / Auth / Account / Legal
   Builds on style.css + style-sections.css + style-more.css + style-pages.css
   ========================================================== */

/* ---------- Nav additions ---------- */
.nav-cta .btn-ghost.btn-sm { white-space: nowrap; }
#navAuth.logged { border-color: rgba(34,211,238,.4); color: var(--accent2); }
/* Phones hide .btn-ghost in the nav bar, so auth.js adds a menu entry instead */
.nav-m-auth { display: none; }
@media (max-width: 640px) { .nav-m-auth { display: block; color: var(--accent2); font-weight: 600; } }
#navAuth .t-acct { display: none; }
#navAuth.logged .t-acct { display: inline; }
#navAuth.logged .t-in { display: none; }

/* ---------- Billing toggle ---------- */
.bill-toggle { display: inline-flex; gap: 4px; margin-top: 30px; padding: 4px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg2); }
.bill-toggle button { position: relative; padding: 9px 22px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: color .15s, background .15s; }
.bill-toggle button.on { color: #fff; background: linear-gradient(120deg, #27d3ff 0%, #2f7bff 45%, #8b5cf6 100%); }
.bill-toggle .save { margin-left: 6px; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(34,211,238,.16); color: var(--accent2); }
.bill-toggle button.on .save { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Plan cards ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 22px; border: 1px solid var(--rule); background: var(--bg2); transition: border-color .25s, transform .25s; }
.plan:hover { border-color: rgba(109,92,255,.5); transform: translateY(-3px); }
.plan.hot { border: 1px solid transparent; background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--grad) border-box; box-shadow: 0 30px 80px rgba(109,92,255,.22); }
.plan .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; background: linear-gradient(120deg, #27d3ff 0%, #2f7bff 45%, #8b5cf6 100%); white-space: nowrap; }
.plan h3 { font-size: 22px; letter-spacing: -.01em; }
.plan .for { margin-top: 6px; min-height: 44px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.plan .price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-height: 54px; }
.plan .price b { font-size: 42px; line-height: 1; letter-spacing: -.03em; }
.plan .price b.txt { font-size: 30px; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .price-sub { min-height: 22px; font-size: 13px; color: var(--muted); }
.plan .price-sub s { opacity: .7; }
.plan .plan-cta { margin: 20px 0 22px; }
.plan .plan-cta .btn { width: 100%; }
.plan ul { list-style: none; display: grid; gap: 11px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14.5px; color: #c3c8da; line-height: 1.5; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: rgba(34,211,238,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2322d3ee' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5l2.4 2.4 4.6-5'/%3E%3C/svg%3E") center / 100% no-repeat; }
.plan li.lead { padding-left: 0; color: var(--ink); font-weight: 600; }
.plan li.lead::before { display: none; }
.soon { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fbbf24; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.3); vertical-align: 2px; }

/* price switching (monthly / yearly) */
[data-cycle="month"] .y-only, [data-cycle="year"] .m-only { display: none !important; }

.pricing-note { max-width: 860px; margin: 30px auto 0; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }
.pricing-note a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust .card { padding: 28px; }
.trust .card h3 { font-size: 18px; }

/* ---------- Compare table ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 18px; background: var(--bg2); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: center; border-top: 1px solid var(--rule); }
.cmp thead th { border-top: 0; background: var(--bg3); font-size: 14px; position: sticky; top: 0; }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--ink); width: 34%; }
.cmp td { color: #c3c8da; }
.cmp tr.grp td { background: rgba(255,255,255,.025); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); text-align: left; padding: 10px 18px; }
.cmp .yes { color: var(--accent2); font-weight: 700; }
.cmp .no { color: #4a5068; }
.cmp col.hot, .cmp th.hot, .cmp td.hot { background: rgba(109,92,255,.07); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 56px 20px 80px; position: relative; }
.auth-card { position: relative; width: 100%; max-width: 452px; padding: 38px 34px 30px; border-radius: 24px; border: 1px solid transparent; background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--grad) border-box; box-shadow: 0 30px 80px rgba(109,92,255,.2); }
.auth-card h1 { font-size: 28px; letter-spacing: -.02em; line-height: 1.2; }
.auth-card .auth-sub { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.auth-card .auth-sub b { color: var(--ink); overflow-wrap: anywhere; }
.plan-chip { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--accent2); background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3); }
.plan-chip[hidden] { display: none; }

.oauth { display: grid; gap: 10px; margin-top: 26px; }
.oauth .btn { width: 100%; padding: 12px 18px; }
.oauth .btn svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0 2px; color: var(--muted); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

.form { display: grid; gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 7px; }
.field > label, .field .lbl { font-size: 13.5px; font-weight: 600; color: #c3c8da; display: flex; justify-content: space-between; gap: 10px; }
.field .lbl a { font-weight: 400; color: var(--accent2); }
.field .lbl a:hover { text-decoration: underline; }
.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: #565d78; }
.input:focus { outline: 0; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.input[aria-invalid="true"] { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.14); }
.input.otp { font-family: var(--mono); font-size: 26px; letter-spacing: .5em; text-align: center; padding-left: calc(14px + .5em); }
.pw { position: relative; }
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row .input.otp { flex: 1; min-width: 0; font-size: 18px; letter-spacing: .3em; text-align: left; padding-left: 14px; }
.form .code-row .btn { width: auto; flex: none; white-space: nowrap; padding: 0 18px; }
.pw .input { padding-right: 62px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.pw button:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--rule); transition: background .2s; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: #f87171; }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: #fbbf24; }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: #a3e635; }
.pw-meter[data-s="4"] i { background: #34d399; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.check input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: #2f7bff; cursor: pointer; }
.check a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }

.form .btn { width: 100%; padding: 13px 22px; }
.form .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.msg-box { display: none; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.msg-box.show { display: block; }
.msg-box.err { color: #fca5a5; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.35); }
.msg-box.ok { color: #86efac; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.35); }
.msg-box.info { color: var(--accent2); background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.3); }
.auth-alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14.5px; }
.auth-alt a { color: var(--accent2); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent2); cursor: pointer; font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn[disabled] { color: var(--muted); cursor: default; text-decoration: none; font-weight: 400; }
.astep[hidden] { display: none; }
.resend { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Account ---------- */
.acct { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 90px; }
.acct-side { position: sticky; top: 92px; padding: 26px; border-radius: 20px; border: 1px solid var(--rule); background: var(--bg2); }
.avatar-lg { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: #fff; background: var(--grad); }
.acct-side .em { margin-top: 14px; font-weight: 600; overflow-wrap: anywhere; }
.acct-side .meta { margin-top: 4px; color: var(--muted); font-size: 13px; }
.acct-side .badge-plan { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.06); border: 1px solid var(--rule); }
.acct-side .badge-plan.pro { color: #fff; border-color: transparent; background: linear-gradient(120deg, #27d3ff 0%, #2f7bff 45%, #8b5cf6 100%); }
.acct-side .btn { width: 100%; margin-top: 22px; }
.acct-main { display: grid; gap: 22px; min-width: 0; }
.panel { padding: 28px; border-radius: 20px; border: 1px solid var(--rule); background: var(--bg2); }
.panel h2 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 4px; }
.panel > .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.kv { display: grid; gap: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.kv > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--rule); font-size: 14.5px; }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.upg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upg label { position: relative; display: block; padding: 18px; border-radius: 14px; border: 1px solid var(--rule); background: var(--bg); cursor: pointer; transition: border-color .15s; }
.upg input { position: absolute; opacity: 0; }
.upg label:has(input:checked) { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.upg b { display: block; font-size: 15px; }
.upg .p { display: block; margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.upg .p small { font-size: 13px; font-weight: 400; color: var(--muted); }
.upg .s { display: block; margin-top: 4px; font-size: 12.5px; color: var(--accent2); }
#upgrade .up-renew { display: none; }
#upgrade[data-pro="1"] .up-renew { display: inline; }
#upgrade[data-pro="1"] .up-new { display: none; }
.upg-actions { margin-top: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.upg-actions .hint { flex: 1 1 260px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-top: 1px solid var(--rule); }
.tbl thead th { border-top: 0; background: var(--bg3); font-size: 13px; }
.tbl td { color: #c3c8da; }
.empty { padding: 26px; text-align: center; color: var(--muted); font-size: 14.5px; border: 1px dashed var(--rule); border-radius: 12px; }
.newpw { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--bg); }
.newpw code { font-family: var(--mono); font-size: 18px; letter-spacing: .04em; color: var(--accent2); overflow-wrap: anywhere; user-select: all; }
.newpw .linkbtn.done { color: #86efac; }
.upg:empty { display: none; }
.loading-card { padding: 80px 20px; text-align: center; color: var(--muted); }

/* ---------- Legal ---------- */
.legal { max-width: 800px; margin: 0 auto; padding-bottom: 90px; }
.legal .meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.legal { counter-reset: lg; }
.legal h2 { counter-increment: lg; font-size: 22px; letter-spacing: -.01em; margin: 38px 0 12px; scroll-margin-top: 92px; }
.legal h2::before { content: counter(lg) ". "; color: var(--accent2); font-family: var(--mono); font-size: .85em; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: #c3c8da; font-size: 16px; line-height: 1.85; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--accent2); }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(34,211,238,.35); }
.legal .toc { margin: 24px 0 0; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--rule); background: var(--bg2); }
.legal .toc b { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--mono); color: var(--accent2); font-weight: 400; margin-bottom: 8px; }
.legal .toc ol { margin: 0; columns: 2; column-gap: 28px; font-size: 14.5px; }
.legal .toc li { font-size: 14.5px; margin-bottom: 4px; break-inside: avoid; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.legal-nav a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg2); color: var(--muted); font-size: 14px; }
.legal-nav a:hover { color: var(--ink); border-color: rgba(109,92,255,.55); }
.legal-nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent2); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .plans { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}
@media (max-width: 980px) {
  .acct { grid-template-columns: 1fr; }
  .acct-side { position: static; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .plan .for, .plan .price { min-height: 0; }
  .auth-card { padding: 30px 22px 24px; }
  .upg { grid-template-columns: 1fr; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .legal .toc ol { columns: 1; }
  .bill-toggle button { padding: 9px 14px; }
}

/* Trademark note under the model list */
.strip-note { margin-top: 16px; text-align: center; font-size: 12px; color: var(--muted); }

/* Home page: three plan cards */
.plans.plans-3 { grid-template-columns: repeat(3, 1fr); }
.plan .price .from { font-size: 14px; color: var(--muted); margin-right: 2px; }
@media (max-width: 900px) { .plans.plans-3 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; row-gap: 28px; } }

/* ======================= Purchase flow ======================= */
.stepbar { list-style: none; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0; padding: 0; counter-reset: s; }
.stepbar li { counter-increment: s; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.stepbar li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1px solid var(--rule); background: var(--bg2); }
.stepbar li:not(:last-child)::after { content: ''; width: 34px; height: 1px; background: var(--rule); margin-left: 6px; }
.stepbar li.on { color: var(--ink); }
.stepbar li.on::before { background: var(--grad); border-color: transparent; color: #fff; }


.co-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 80px; }
.co-left { display: grid; gap: 20px; }
.co-sum { position: sticky; top: 92px; }
.sum-plan { display: grid; gap: 2px; margin: 6px 0 16px; }
.sum-plan b { font-size: 17px; }
.sum-plan span { color: var(--muted); font-size: 13.5px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.sum-row .muted { color: var(--muted); text-align: right; font-size: 13px; }
.sum-row.total { font-size: 16px; }
.sum-row.total b { font-size: 24px; letter-spacing: -.02em; }
.co-sum .check { margin: 16px 0 6px; }
.co-sum .btn { width: 100%; margin-top: 12px; }
.sum-points, .sl-side ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; font-size: 14px; color: #c3c8da; }
.sum-points { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13.5px; }
.sl-side ul { margin-top: 14px; }
.sum-points li, .sl-side li { position: relative; padding-left: 24px; line-height: 1.5; }
.sum-points li::before, .sl-side li::before { content: ''; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: rgba(34,211,238,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2322d3ee' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5l2.4 2.4 4.6-5'/%3E%3C/svg%3E") center / 100% no-repeat; }
.secure { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.co-need { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.co-need a { color: var(--accent2); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.methods { display: grid; gap: 10px; margin-top: 14px; }
.method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--bg); cursor: pointer; }
.method:has(input:checked) { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.method input { accent-color: #2f7bff; }


.rt-card { max-width: 580px; text-align: center; }
.rt-card h1 { font-size: 26px; margin-bottom: 6px; }
.rt-card .kv { text-align: left; margin-top: 22px; }
.rt-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 32px; font-weight: 700; }
.rt-icon.ok { background: rgba(52,211,153,.14); color: #34d399; }
.rt-icon.ok::before { content: '✓'; }
.rt-icon.bad { background: rgba(248,113,113,.14); color: #f87171; }
.rt-icon.bad::before { content: '!'; }
.rt-icon.pend { border: 3px solid var(--rule); border-top-color: var(--accent2); animation: rtspin 1s linear infinite; }
@keyframes rtspin { to { transform: rotate(360deg); } }
.rt-next { text-align: left; margin-top: 22px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--rule); background: var(--bg); }
.rt-next ol { margin: 8px 0 0 18px; padding: 0; color: #c3c8da; font-size: 14.5px; line-height: 1.7; }
.rt-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.pg-h { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em; line-height: 1.2; }
.lead-sm { color: var(--muted); margin: 8px 0 24px; font-size: 16px; line-height: 1.7; }
select.input, textarea.input { font: inherit; font-size: 15px; }
textarea.input { min-height: 110px; resize: vertical; }
.sl-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1000px; margin: 0 auto; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--rule); color: var(--muted); }
.pill.paid { color: #86efac; border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.pill.pending { color: #fbbf24; border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.pill.failed, .pill.cancelled { color: #fca5a5; border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); }

/* Receipt: a white sheet, also used for printing */
.receipt-paper { background: #fff; color: #14161f; border-radius: 14px; padding: 40px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.rp-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid #14161f; padding-bottom: 18px; }
.rp-title { font-size: 28px; letter-spacing: -.02em; }
.rp-sub { color: #5a6075; font-size: 13px; margin-top: 2px; }
.rp-co { text-align: right; font-size: 13px; line-height: 1.6; color: #3b4054; }
.receipt-paper table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 14px; }
.rp-meta th { width: 34%; text-align: left; font-weight: 600; color: #5a6075; padding: 8px 0; vertical-align: top; }
.rp-meta td { padding: 8px 0; overflow-wrap: anywhere; }
.rp-items th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #5a6075; border-bottom: 1px solid #d7dbe8; padding: 8px 0; }
.rp-items td { padding: 12px 0; border-bottom: 1px solid #eceff6; }
.rp-items th:last-child, .rp-items td:last-child { text-align: right; }
.rp-items tfoot td { font-weight: 700; font-size: 16px; border-bottom: 0; }
.rp-demo { margin-top: 20px; color: #b45309; font-size: 13px; font-weight: 600; }
.rp-note { margin-top: 14px; color: #5a6075; font-size: 12.5px; line-height: 1.6; }
.rp-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .co-wrap, .sl-grid { grid-template-columns: 1fr; }
  .co-sum { position: static; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .receipt-paper { padding: 24px 18px; }
  .rp-co { text-align: left; }
}
@media print {
  html, body { background: #fff !important; }
  .glow, .nav, footer.site, .no-print { display: none !important; }
  .receipt-paper { box-shadow: none; border-radius: 0; padding: 0; }
  .block { padding: 0 !important; }
}

.proc-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(4,5,10,.78); backdrop-filter: blur(6px); }
.proc-overlay[hidden] { display: none; }
.proc-box { text-align: center; padding: 34px 40px; border-radius: 20px; border: 1px solid var(--rule); background: var(--bg2); }
.proc-box b { display: block; margin-top: 4px; font-size: 16px; }

/* ======================= Chinese typography ======================= */
/* Headings were designed with tight Latin tracking; CJK glyphs need none. */
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] h4,
html[lang^="zh"] .sec-head h2, html[lang^="zh"] .page-hero h1, html[lang^="zh"] .pg-h { letter-spacing: 0; text-wrap: balance; }
html[lang^="zh"] body { line-break: strict; }
/* Avoid a single character (or a lone full stop) stranded on the last line. */
html[lang^="zh"] p, html[lang^="zh"] li, html[lang^="zh"] dd, html[lang^="zh"] summary, html[lang^="zh"] .hint { text-wrap: pretty; }
html[lang^="zh"] .plan .for, html[lang^="zh"] .plan .price-sub, html[lang^="zh"] .auth-sub,
html[lang^="zh"] .sec-head p, html[lang^="zh"] .page-hero p.lead, html[lang^="zh"] .lead-sm, html[lang^="zh"] .card p,
html[lang^="zh"] .check, html[lang^="zh"] .rt-next li, html[lang^="zh"] .sum-points li, html[lang^="zh"] .sl-side li,
html[lang^="zh"] .pricing-note, html[lang^="zh"] .secure, html[lang^="zh"] .cta-band p { text-wrap: balance; }
html[lang^="zh"] .soon { font-size: 11px; letter-spacing: 0; text-transform: none; padding: 1px 7px; }
html[lang^="zh"] .eyebrow { letter-spacing: .04em; }
html[lang^="zh"] .plan .price b.txt { letter-spacing: 0; }
/* Keep plan cards aligned: the price note can take two lines in every language. */
.plan .price-sub { min-height: 40px; line-height: 1.5; }
.plan .for { line-height: 1.6; }

.copy .sep { margin: 0 .55em; opacity: .6; }
.nw { white-space: nowrap; }
html[lang^="zh"] .page-hero h1 { line-height: 1.3; }
html[lang^="zh"] .sec-head h2, html[lang^="zh"] .cta-band h2 { line-height: 1.3; }
