/* Public product surfaces. This file is deliberately self-contained so that
   authentication and checkout never inherit the administration console UI. */
.public-page {
  --public-navy: #0b1739;
  --public-navy-soft: #132653;
  --public-blue: #2f6bff;
  --public-blue-hover: #2358df;
  --public-canvas: #f4f7fb;
  --public-surface: #ffffff;
  --public-ink: #0f172a;
  --public-copy: #334155;
  --public-muted: #64748b;
  --public-subtle: #94a3b8;
  --public-line: #d8e0ec;
  --public-line-soft: #e9eef5;
  --public-success: #16875d;
  --public-success-bg: #ecf9f3;
  --public-warning: #a26108;
  --public-warning-bg: #fff8e8;
  --public-danger: #c33745;
  --public-danger-bg: #fff1f2;
  min-height: 100vh;
  margin: 0;
  color: var(--public-ink);
  background: var(--public-canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.public-page *, .public-page *::before, .public-page *::after { box-sizing: border-box; }
.public-page h1, .public-page h2, .public-page h3, .public-page p, .public-page dl, .public-page dd { margin-top: 0; }
.public-page button, .public-page input, .public-page textarea, .public-page select { font: inherit; }
.public-page button, .public-page a { -webkit-tap-highlight-color: transparent; }
.public-page img, .public-page svg { display: block; }
.public-page a { color: var(--public-blue); text-decoration: none; }
.public-page a:hover { text-decoration: underline; }
.public-page [hidden], .public-page .d-none { display: none !important; }
.public-page :focus-visible { outline: 3px solid rgba(47,107,255,.35); outline-offset: 3px; }

.public-brand { display: inline-flex; align-items: center; min-width: 0; gap: 12px; color: inherit !important; font-size: 19px; font-weight: 700; letter-spacing: -.01em; text-decoration: none !important; }
.public-brand img { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; border-radius: 10px; }
.public-brand .public-mark-image { padding: 2px; border-radius: 0; }

/* Shared authentication shell */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px,42%) minmax(520px,58%); }
.auth-brand-panel { position: relative; isolation: isolate; min-height: 100vh; overflow: hidden; padding: clamp(40px,5vw,72px); display: flex; flex-direction: column; color: #fff; background: var(--public-navy); }
.auth-brand-panel::before { content: ""; position: absolute; z-index: -1; width: min(42vw,620px); aspect-ratio: 1; top: -18%; right: -28%; border-radius: 50%; background: radial-gradient(circle,rgba(47,107,255,.34) 0,rgba(47,107,255,.08) 46%,transparent 70%); }
.auth-brand-panel::after { content: ""; position: absolute; z-index: -1; inset: auto -22% -24% 18%; height: 52%; transform: rotate(-9deg); border: 1px solid rgba(116,157,255,.14); border-radius: 48%; }
.auth-brand-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-brand-panel .public-brand { color: #fff !important; }
.auth-brand-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1px solid rgba(148,178,255,.22); border-radius: 999px; color: #c7d6ff; background: rgba(255,255,255,.055); font-size: 12px; letter-spacing: .04em; }
.auth-brand-copy { width: min(500px,100%); margin: auto 0; padding: 72px 0 52px; }
.auth-brand-eyebrow { display: inline-block; margin-bottom: 18px; color: #7fa5ff; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.auth-brand-copy h2 { max-width: 480px; margin-bottom: 22px; font-size: clamp(34px,3.8vw,54px); line-height: 1.14; letter-spacing: -.045em; }
.auth-brand-copy > p { max-width: 470px; margin-bottom: 34px; color: #aebddd; font-size: 16px; line-height: 1.85; }
.auth-trust-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.auth-trust-list li { display: flex; align-items: center; gap: 12px; color: #dbe5ff; font-size: 14px; }
.auth-trust-list svg { width: 20px; height: 20px; flex: 0 0 20px; color: #75a1ff; fill: none; stroke: currentColor; }
.auth-trust-list strong, .auth-trust-list small { display: block; }
.auth-trust-list small { margin-top: 1px; color: #8092b5; font-size: 11px; font-weight: 400; }
.auth-brand-foot { display: flex; align-items: center; gap: 8px; color: #7788ab; font-size: 12px; letter-spacing: .03em; }
.auth-brand-foot svg { width: 17px; height: 17px; fill: none; stroke: currentColor; }
.auth-workspace { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--public-canvas); }
.public-workspace-header { min-height: 82px; padding: 20px clamp(30px,5vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.public-workspace-header .public-brand { display: none; }
.public-workspace-label { color: var(--public-muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.auth-workspace-content { width: min(100%,604px); margin: auto; padding: 32px 72px 56px; }
.auth-panel { width: min(100%,460px); margin: 0 auto; }
.auth-panel-compact { text-align: center; }
.auth-heading { margin-bottom: 28px; }
.auth-heading-centered { text-align: center; }
.auth-heading h1 { margin-bottom: 10px; color: var(--public-ink); font-size: 30px; line-height: 1.3; letter-spacing: -.035em; }
.auth-heading p { margin-bottom: 0; color: var(--public-muted); font-size: 14px; line-height: 1.85; }
.auth-context { display: inline-flex; align-items: center; min-height: 28px; margin-bottom: 12px; padding: 4px 10px; color: #315dbd; background: #eaf1ff; border-radius: 999px; font-size: 12px; font-weight: 650; }
.auth-context svg { width: 15px; height: 15px; margin-right: 6px; fill: none; stroke: currentColor; }
.public-back { display: inline-flex; align-items: center; margin-bottom: 26px; color: var(--public-muted) !important; font-weight: 600; }
.public-back:hover { color: var(--public-blue) !important; }

/* Unified login — compact centered identity surface. */
.public-login-page {
  --public-blue: #315cf5;
  --public-blue-hover: #244bd7;
  --public-canvas: #fbfbfa;
  --public-ink: #17191f;
  --public-copy: #3e4450;
  --public-muted: #707784;
  --public-subtle: #9aa1ad;
  --public-line: #dfe3e9;
  --public-line-soft: #eceef2;
  background: var(--public-canvas);
}
.login-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--public-canvas); }
.login-header { min-height: 112px; padding: 28px 24px 18px; display: flex; align-items: center; justify-content: center; }
.login-header .public-brand { gap: 10px; color: #171b24 !important; font-size: 18px; font-weight: 720; letter-spacing: -.02em; }
.login-header .public-brand img { width: 34px; height: 34px; flex-basis: 34px; }
.login-stage { width: 100%; flex: 1; margin: 0 auto; padding: clamp(18px,3vh,36px) 20px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.login-auth-surface { width: min(100%,436px); padding: 34px 34px 26px; border: 1px solid #dfe3e8; border-radius: 15px; background: #fff; box-shadow: 0 20px 56px rgba(28,40,66,.08); }
.login-card-heading { margin-bottom: 26px; text-align: center; }
.login-card-heading > span { display: block; margin-bottom: 7px; color: var(--public-blue); font-size: 11px; font-weight: 720; letter-spacing: .12em; }
.login-card-heading h1 { margin: 0 0 7px; color: var(--public-ink); font-size: 25px; font-weight: 720; line-height: 1.35; letter-spacing: -.035em; }
.login-card-heading p { margin: 0; color: var(--public-muted); font-size: 13px; line-height: 1.65; }
.login-auth-surface > .notice { margin-bottom: 18px; }
.login-auth-surface .auth-tabs { gap: 0; margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--public-line-soft); border-radius: 0; background: transparent; }
.login-auth-surface .auth-tabs button { min-height: 42px; margin: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #747b89; font-size: 13px; }
.login-auth-surface .auth-tabs button:hover { color: var(--public-blue); background: transparent; }
.login-auth-surface .auth-tabs button[aria-selected="true"] { color: var(--public-blue); border-bottom-color: var(--public-blue); background: transparent; box-shadow: none; }
.login-auth-surface .auth-tabs svg { width: 18px; height: 18px; }
.login-auth-surface .login-binding-notice { width: 100%; min-height: 24px; margin: 0 0 18px; padding: 0; align-items: center; justify-content: center; color: #47638f; background: transparent; border: 0; }
.login-binding-notice > span { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.login-binding-notice strong { font-size: 12px; }
.login-binding-notice small { color: #68789f; font-size: 11px; white-space: nowrap; }
.login-auth-surface .wechat-frame { width: 202px; height: 202px; margin: 0 auto 18px; border-color: #e2e5ea; border-radius: 12px; box-shadow: 0 8px 24px rgba(31,42,68,.055); }
.login-auth-surface .wechat-frame img { width: 174px; height: 174px; }
.login-auth-surface .qr-instruction { margin-bottom: 0; }
.login-auth-surface .qr-instruction svg { width: 22px; height: 22px; flex-basis: 22px; }
.login-auth-surface .qr-instruction strong { color: #2b2f38; font-size: 14px; }
.login-auth-surface .qr-instruction small { margin-top: 3px; color: #7f8591; font-size: 12px; }
.login-auth-surface .qr-message { min-height: 0; }
.login-assurance { margin: 20px 0 0; color: #818896; }
.login-assurance svg { color: #738099; }
.login-shell > .public-footer { padding-top: 12px; }

.auth-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin: 0 0 28px; padding: 5px; background: #e8edf5; border-radius: 12px; }
.auth-tabs button { min-width: 0; min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 9px; color: var(--public-muted); background: transparent; cursor: pointer; font-size: 13px; font-weight: 650; white-space: nowrap; }
.auth-tabs button::after { display: none; }
.auth-tabs button:hover { color: var(--public-copy); }
.auth-tabs button[aria-selected="true"] { color: var(--public-ink); background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.09); }
.auth-tabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.auth-pane { display: none; }
.auth-pane.active { display: block; }

.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; color: var(--public-copy); font-size: 14px; font-weight: 650; }
.label-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.label-line a { font-size: 13px; }
.input { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 9px; color: var(--public-ink); background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.025); font-size: 15px; transition: border-color .16s ease,box-shadow .16s ease; }
.input::placeholder { color: var(--public-subtle); }
.input:hover { border-color: #aebbcf; }
.input:focus { border-color: var(--public-blue); outline: 0; box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.field small { display: block; margin-top: 7px; color: var(--public-muted); font-size: 12px; line-height: 1.7; }
.field-message { min-height: 0; margin: 7px 0 0; color: var(--public-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.field-message:empty { display: none; }
.field-message.error { color: var(--public-danger); }
.field-message.success { color: var(--public-success); }
.code-row { display: flex; align-items: stretch; gap: 10px; }
.code-row .input { min-width: 0; flex: 1; }
.code-row .btn { width: 128px; flex: 0 0 128px; padding-inline: 10px; font-size: 13px; }
.password-field { position: relative; }
.password-field .input { padding-right: 66px; }
.password-toggle { position: absolute; top: 0; right: 7px; height: 48px; padding: 0 10px; border: 0; color: var(--public-blue); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }

.btn { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none !important; transition: background-color .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .62; cursor: not-allowed; transform: none; }
.btn-primary { color: #fff !important; background: var(--public-blue); border-color: var(--public-blue); box-shadow: 0 9px 22px rgba(47,107,255,.2); }
.btn-primary:hover { background: var(--public-blue-hover); border-color: var(--public-blue-hover); box-shadow: 0 11px 25px rgba(47,107,255,.25); }
.btn-secondary { color: #27456e !important; background: #fff; border-color: #cbd5e1; }
.btn-secondary:hover { background: #f8fafc; border-color: #9fb0c7; }
.btn-quiet { color: var(--public-muted) !important; background: transparent; }
.btn-quiet:hover { color: var(--public-ink) !important; background: #e9eef5; }
.btn-block { width: 100%; }

.check { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 22px; color: var(--public-muted); font-size: 13px; line-height: 1.75; }
.check input { width: 17px; height: 17px; flex: 0 0 17px; margin: 3px 0 0; accent-color: var(--public-blue); }
.notice { margin: 0 0 20px; padding: 13px 15px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid; border-radius: 9px; font-size: 13px; line-height: 1.65; text-align: left; }
.notice svg { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 1px; fill: none; stroke: currentColor; }
.notice-error { color: #a92c3a; background: var(--public-danger-bg); border-color: #ffcbd0; }
.notice-success { color: #116e4c; background: var(--public-success-bg); border-color: #bee9d8; }
.notice-warning { color: #895407; background: var(--public-warning-bg); border-color: #efd99e; }
.notice-info { color: #2358b6; background: #eef4ff; border-color: #cbdcff; }
.form-footnote { margin: 15px 0 0; color: var(--public-muted); font-size: 12px; line-height: 1.75; text-align: center; }
.public-assurance { margin: 22px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--public-muted); font-size: 12px; line-height: 1.75; text-align: center; }
.public-assurance svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--public-success); fill: none; stroke: currentColor; }
.environment-badge { margin-top: 18px; padding: 7px 10px; color: #82530a; background: #fff8e7; border: 1px solid #efdfb9; border-radius: 8px; font-size: 12px; text-align: center; }

.wechat-frame { position: relative; width: 256px; height: 256px; margin: 5px auto 18px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--public-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(15,23,42,.07); }
.wechat-frame img { width: 224px; height: 224px; object-fit: contain; }
.qr-skeleton { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: linear-gradient(120deg,#f8fafc,#eef3f9,#f8fafc); }
.qr-skeleton strong { margin-top: 5px; color: var(--public-copy); font-size: 13px; }
.qr-skeleton small { color: var(--public-muted); font-size: 11px; }
.spinner { width: 28px; height: 28px; border: 3px solid #dbe5f4; border-top-color: var(--public-blue); border-radius: 50%; animation: public-spin .8s linear infinite; }
@keyframes public-spin { to { transform: rotate(360deg); } }
.qr-instruction { margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--public-copy); font-size: 14px; font-weight: 650; text-align: left; }
.qr-instruction svg { width: 27px; height: 27px; flex: 0 0 27px; color: #08a854; fill: none; stroke: currentColor; }
.qr-instruction strong, .qr-instruction small { display: block; }
.qr-instruction small { margin-top: 1px; color: var(--public-muted); font-size: 11px; font-weight: 400; }
.qr-message { min-height: 38px; margin: 0 auto; color: var(--public-muted); text-align: center; }
.link-button { margin: 8px auto 0; padding: 7px 8px; display: block; border: 0; color: var(--public-blue); background: transparent; cursor: pointer; font-size: 13px; font-weight: 650; }
.step-indicator { margin: 0 0 26px; display: grid; grid-template-columns: auto minmax(28px,1fr) auto; align-items: center; gap: 10px; }
.step-indicator > span { display: flex; align-items: center; gap: 8px; color: var(--public-subtle); font-size: 12px; font-weight: 650; }
.step-indicator > i { height: 1px; background: linear-gradient(90deg,var(--public-blue),#b8c9ef); }
.step-indicator svg, .step-indicator b { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border: 1px solid var(--public-blue); border-radius: 50%; color: #fff; background: var(--public-blue); font-size: 11px; fill: none; stroke: currentColor; }
.step-indicator small { color: inherit; font-size: 12px; }
.step-indicator .done, .step-indicator .current { color: var(--public-blue); }
.state-icon { width: 64px; height: 64px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 20px; }
.state-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; }
.state-icon-success { color: var(--public-success); background: var(--public-success-bg); }
.state-icon-warning { color: var(--public-warning); background: var(--public-warning-bg); }
.state-icon-neutral { color: var(--public-blue); background: #eaf1ff; }
.public-footer { padding: 22px clamp(24px,5vw,72px) 28px; color: #7b8799; font-size: 12px; line-height: 1.75; text-align: center; }
.public-footer nav, .public-filings { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 20px; }
.public-footer a { color: #607087; }
.public-footer p { margin: 9px 0 4px; }

/* Hosted checkout */
.public-checkout-page { min-height: 100vh; display: flex; flex-direction: column; }
.checkout-header { min-height: 76px; border-bottom: 1px solid var(--public-line-soft); background: rgba(255,255,255,.96); }
.checkout-header-inner { width: min(1080px,calc(100% - 48px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.checkout-secure-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--public-muted); font-size: 13px; font-weight: 600; }
.checkout-secure-badge svg { width: 19px; height: 19px; color: var(--public-success); fill: none; stroke: currentColor; }
.checkout-stage { flex: 1; padding: clamp(32px,5vw,72px) 24px; display: grid; place-items: center; }
.checkout-layout { width: min(1080px,100%); min-height: 570px; display: grid; grid-template-columns: minmax(360px,420px) minmax(0,1fr); overflow: hidden; border: 1px solid var(--public-line); border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(11,23,57,.1); }
.checkout-summary { position: relative; isolation: isolate; overflow: hidden; padding: 48px 42px; color: #fff; background: var(--public-navy); }
.checkout-summary::after { content: ""; position: absolute; z-index: -1; width: 400px; height: 400px; right: -260px; bottom: -210px; border: 1px solid rgba(120,155,255,.18); border-radius: 50%; box-shadow: 0 0 80px rgba(47,107,255,.12); }
.checkout-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.checkout-kicker { color: #adbcda; font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.checkout-currency { color: #7182a8; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.checkout-amount { margin: 15px 0 28px; display: flex; align-items: baseline; gap: 8px; color: #fff; font-size: clamp(44px,5vw,62px); line-height: 1; font-weight: 720; letter-spacing: -.055em; overflow-wrap: anywhere; }
.checkout-amount small { font-size: 25px; font-weight: 550; }
.checkout-summary h1 { margin-bottom: 0; color: #f7f9ff; font-size: 18px; line-height: 1.65; font-weight: 650; overflow-wrap: anywhere; }
.checkout-divider { height: 1px; margin: 34px 0 28px; background: rgba(176,195,233,.16); }
.checkout-details { display: grid; gap: 20px; }
.checkout-details div { display: grid; gap: 5px; }
.checkout-details dt { color: #8596b9; font-size: 12px; }
.checkout-details dd { margin: 0; color: #d7e1f6; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.checkout-trust { margin-top: 38px; padding-top: 25px; display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid rgba(176,195,233,.16); }
.checkout-trust > svg { width: 22px; height: 22px; flex: 0 0 22px; color: #6f9aff; fill: none; stroke: currentColor; }
.checkout-trust span { display: grid; gap: 4px; }
.checkout-trust strong { color: #dbe5fb; font-size: 13px; }
.checkout-trust small { color: #7f90b1; font-size: 11px; line-height: 1.65; }
.checkout-methods { min-width: 0; padding: 48px clamp(36px,5vw,64px); display: flex; flex-direction: column; justify-content: center; }
.checkout-methods-heading { margin-bottom: 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.checkout-step, .result-eyebrow { display: block; margin-bottom: 6px; color: var(--public-blue); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.checkout-methods h2 { margin: 0; color: var(--public-ink); font-size: 24px; line-height: 1.35; letter-spacing: -.025em; }
.checkout-timer { min-height: 32px; padding: 5px 10px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: #49617f; background: #f0f4f9; border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums; }
.checkout-timer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.payment-choices { display: grid; gap: 12px; }
.pay-method { width: 100%; min-height: 78px; padding: 14px 17px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--public-line); border-radius: 12px; color: var(--public-copy); background: #fff; cursor: pointer; text-align: left; transition: border-color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.pay-method:hover { border-color: #9bb8ff; background: #fbfdff; box-shadow: 0 8px 22px rgba(47,107,255,.08); transform: translateY(-1px); }
.pay-method:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.payment-brand-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 12px; color: #08a854; background: #e9f9f0; }
.payment-brand-icon.alipay, .pay-method.alipay .payment-brand-icon { color: #1677ff; background: #edf5ff; }
.payment-brand-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; }
.pay-method > span:nth-child(2), .selected-method > span:nth-child(2) { min-width: 0; }
.pay-method strong, .selected-method strong { display: block; color: var(--public-ink); font-size: 15px; }
.pay-method small, .selected-method small { display: block; margin-top: 3px; color: var(--public-muted); font-size: 12px; line-height: 1.5; }
.pay-arrow { width: 20px; height: 20px; margin-left: auto; flex: 0 0 20px; color: var(--public-subtle); fill: none; stroke: currentColor; }
.selected-method { min-height: 70px; margin-bottom: 22px; padding: 12px 14px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--public-line-soft); border-radius: 12px; background: #f8fafc; }
.selected-method-status { margin-left: auto; color: var(--public-blue); font-size: 12px; font-weight: 700; white-space: nowrap; }
.qr-panel { text-align: center; }
.checkout-qr-frame { width: 264px; height: 264px; margin: 0 auto; display: grid; place-items: center; border: 1px solid var(--public-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.07); }
.checkout-qr-frame img { width: 240px; height: 240px; object-fit: contain; }
.qr-panel p { margin: 18px 0 0; }
.qr-panel p strong { display: block; color: var(--public-copy); font-size: 14px; }
.qr-panel p small { display: block; margin-top: 4px; color: var(--public-muted); font-size: 12px; }
.checkout-channel-note { margin: 2px 0 22px; color: var(--public-muted); font-size: 13px; line-height: 1.75; }
.checkout-safety-note { margin-top: 26px; padding-top: 20px; display: flex; align-items: flex-start; gap: 9px; border-top: 1px solid var(--public-line-soft); color: var(--public-muted); font-size: 12px; line-height: 1.7; }
.checkout-safety-note svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: var(--public-success); fill: none; stroke: currentColor; }
.checkout-status-message { min-height: 22px; margin: 18px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--public-muted); font-size: 12px; text-align: center; }
.status-pulse { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--public-blue); box-shadow: 0 0 0 0 rgba(47,107,255,.36); animation: public-pulse 1.8s infinite; }
@keyframes public-pulse { 70% { box-shadow: 0 0 0 7px rgba(47,107,255,0); } 100% { box-shadow: 0 0 0 0 rgba(47,107,255,0); } }
.payment-result { width: min(430px,100%); margin: auto; text-align: center; }
.payment-result .state-icon { margin-bottom: 20px; }
.payment-result h2 { margin-bottom: 12px; font-size: 28px; }
.payment-result p { margin-bottom: 28px; color: var(--public-muted); font-size: 14px; line-height: 1.85; }

/* Legal documents */
.public-header { width: min(1120px,100%); min-height: 80px; margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.public-header-label { padding-left: 18px; border-left: 1px solid var(--public-line); color: var(--public-muted); font-size: 13px; }
.legal-layout { width: min(1080px,100%); margin: 0 auto; padding: 30px 32px 72px; display: grid; grid-template-columns: 200px minmax(0,1fr); align-items: start; gap: 42px; }
.legal-navigation { position: sticky; top: 28px; display: grid; gap: 7px; }
.legal-navigation a { padding: 10px 13px; border-radius: 8px; color: var(--public-muted); font-size: 14px; font-weight: 600; }
.legal-navigation a:hover { color: var(--public-blue); background: #eaf1ff; text-decoration: none; }
.legal-navigation a[aria-current="page"] { color: #174ebf; background: #e5edff; }
.legal-document { padding: clamp(30px,5vw,58px); border: 1px solid var(--public-line); border-radius: 16px; color: var(--public-copy); background: #fff; box-shadow: 0 14px 40px rgba(15,23,42,.055); font-size: 16px; line-height: 2; }
.legal-document h1 { margin-bottom: 10px; color: var(--public-ink); font-size: 31px; line-height: 1.35; letter-spacing: -.03em; }
.legal-document h2 { margin: 38px 0 12px; color: var(--public-ink); font-size: 20px; line-height: 1.5; }
.legal-document p { margin: 13px 0; }
.legal-document ul { padding-left: 23px; }
.legal-meta { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--public-line-soft); color: var(--public-muted); font-size: 13px; }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: auto; padding: 24px clamp(24px,6vw,52px); }
  .auth-brand-panel::before { width: 430px; top: -220px; right: -150px; }
  .auth-brand-top { width: 100%; }
  .auth-brand-copy { margin: 26px 0 0; padding: 0; }
  .auth-brand-copy h2 { max-width: none; margin: 0; font-size: 23px; letter-spacing: -.025em; }
  .auth-brand-copy > p, .auth-brand-eyebrow, .auth-trust-list, .auth-brand-foot { display: none; }
  .auth-workspace { min-height: calc(100vh - 134px); }
  .public-workspace-header { display: none; }
  .auth-workspace-content { padding: 52px 42px 44px; }
  .checkout-layout { grid-template-columns: minmax(300px,36%) minmax(0,1fr); }
  .checkout-summary, .checkout-methods { padding: 38px 30px; }
  .checkout-methods-heading { display: block; }
  .checkout-timer { margin-top: 13px; }
}

@media (max-width: 860px) {
  .login-stage { padding-top: 22px; }
}

@media (max-width: 700px) {
  .login-header { min-height: 84px; padding: 20px 18px 10px; }
  .login-header .public-brand { font-size: 17px; }
  .login-header .public-brand img { width: 32px; height: 32px; flex-basis: 32px; }
  .login-stage { padding: 14px 16px 24px; justify-content: flex-start; }
  .login-auth-surface { padding: 28px 22px 23px; border-radius: 14px; box-shadow: 0 14px 38px rgba(34,52,86,.075); }
  .login-card-heading { margin-bottom: 23px; }
  .login-card-heading h1 { font-size: 23px; }
  .login-auth-surface .auth-tabs { margin-top: 22px; padding-top: 14px; }
  .login-auth-surface .auth-tabs button { min-height: 42px; font-size: 12px; }
  .login-auth-surface .wechat-frame { width: 194px; height: 194px; }
  .login-auth-surface .wechat-frame img { width: 168px; height: 168px; }
  .login-shell > .public-footer { padding-top: 4px; }
  .auth-brand-panel { padding: 18px 20px; }
  .auth-brand-badge { display: none; }
  .auth-brand-copy { margin-top: 17px; }
  .auth-brand-copy h2 { font-size: 19px; }
  .auth-workspace { min-height: calc(100vh - 117px); }
  .auth-workspace-content { padding: 34px 22px 28px; }
  .auth-heading { margin-bottom: 23px; }
  .auth-heading h1 { font-size: 26px; }
  .auth-tabs { overflow-x: auto; grid-auto-columns: minmax(92px,1fr); }
  .auth-tabs button { min-height: 42px; padding-inline: 8px; }
  .wechat-frame { width: 240px; height: 240px; }
  .wechat-frame img { width: 210px; height: 210px; }
  .public-footer { padding: 18px 20px 24px; }
  .checkout-header-inner { width: calc(100% - 36px); min-height: 68px; }
  .checkout-header { min-height: 68px; }
  .checkout-secure-badge span { display: none; }
  .checkout-stage { display: block; padding: 18px; }
  .checkout-layout { min-height: 0; grid-template-columns: 1fr; border-radius: 15px; }
  .checkout-summary { padding: 26px 24px; }
  .checkout-amount { margin: 10px 0 18px; font-size: 42px; }
  .checkout-summary h1 { font-size: 16px; }
  .checkout-divider { margin: 22px 0 18px; }
  .checkout-details { grid-template-columns: 1fr 1fr; gap: 18px; }
  .checkout-trust { display: none; }
  .checkout-methods { padding: 28px 24px; }
  .checkout-methods h2 { font-size: 22px; }
  .checkout-qr-frame { width: min(264px,100%); height: auto; aspect-ratio: 1; }
  .checkout-qr-frame img { width: calc(100% - 22px); height: calc(100% - 22px); }
  .legal-layout { padding: 10px 18px 44px; grid-template-columns: 1fr; gap: 16px; }
  .legal-navigation { position: static; display: flex; overflow-x: auto; }
  .legal-navigation a { flex: 0 0 auto; }
  .legal-document { padding: 27px 23px; font-size: 16px; }
  .legal-document h1 { font-size: 26px; }
  .public-header { min-height: 70px; padding: 15px 20px; }
  .public-header-label { display: none; }
}

@media (max-width: 410px) {
  .login-stage { padding-inline: 14px; }
  .login-auth-surface { padding-inline: 16px; }
  .login-auth-surface .auth-tabs button { padding-inline: 5px; font-size: 11px; gap: 5px; }
  .login-binding-notice > span { display: block; }
  .login-binding-notice small { display: block; margin-top: 1px; }
  .auth-brand-copy h2 { font-size: 17px; }
  .auth-workspace-content { padding-inline: 18px; }
  .code-row { gap: 8px; }
  .code-row .btn { width: 116px; flex-basis: 116px; font-size: 12px; }
  .auth-tabs button { font-size: 12px; }
  .auth-tabs svg { width: 16px; height: 16px; }
  .checkout-stage { padding: 12px; }
  .checkout-summary, .checkout-methods { padding-inline: 20px; }
  .checkout-details { grid-template-columns: 1fr; gap: 13px; }
}

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

@media (forced-colors: active) {
  .auth-brand-panel, .checkout-summary { border: 1px solid CanvasText; }
  .status-pulse { forced-color-adjust: none; }
}
/* Shared by hosted authentication and first-party integration examples. */
.slider-captcha {
  box-sizing: border-box;
  width: min(376px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  overflow-y: auto;
  color: #0f172a;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 20px 64px rgb(11 23 57 / 24%);
  font-family: inherit;
  font-size: 16px;
  animation: captcha-enter .18s ease-out;
}
.slider-captcha::backdrop { background: rgb(11 23 57 / 46%); }
.slider-captcha [hidden] { display: none; }
.slider-captcha-heading, .slider-captcha-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.slider-captcha-heading h2 { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.4; }
.slider-captcha button { width: auto; min-height: 44px; margin: 0; font: inherit; cursor: pointer; border-radius: 8px; }
.slider-captcha-close, .slider-captcha-refresh { padding: 8px 4px; border: 0; color: #334155; background: transparent; }
.slider-captcha-close:hover, .slider-captcha-refresh:hover { color: #2358df; text-decoration: underline; text-underline-offset: 4px; }
.slider-captcha-instruction { margin: 12px 0 16px; color: #334155; line-height: 1.6; }
.slider-captcha-scene { position: relative; width: 100%; aspect-ratio: 320 / 168; overflow: hidden; border-radius: 8px; background: #e9eef5; user-select: none; }
.slider-captcha-background { display: block; width: 100%; height: 100%; }
.slider-captcha-piece { position: absolute; left: 0; filter: drop-shadow(0 2px 3px rgb(11 23 57 / 40%)); pointer-events: none; }
.slider-captcha-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #334155; }
.slider-captcha-label { display: block; margin: 20px 0 4px; font-weight: 550; }
.slider-captcha-range { box-sizing: border-box; appearance: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0; border: 1px solid #d8e0ec; border-radius: 8px; background: #f4f7fb; cursor: grab; touch-action: pan-y; }
.slider-captcha-range:active { cursor: grabbing; }
.slider-captcha-range::-webkit-slider-thumb { appearance: none; width: 44px; height: 42px; border: 0; border-radius: 7px; background: #2f6bff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='42' viewBox='0 0 44 42' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m17 15 6 6-6 6m7-12 6 6-6 6'/%3E%3C/svg%3E") center no-repeat; }
.slider-captcha-range::-moz-range-thumb { width: 44px; height: 42px; border: 0; border-radius: 7px; background: #2f6bff; }
.slider-captcha-hint { margin: 8px 0 0; color: #475569; font-size: 14px; line-height: 1.6; }
.slider-captcha-status { min-height: 44px; margin: 12px 0; color: #334155; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.slider-captcha-status.is-error { color: #b42336; }
.slider-captcha-confirm { padding: 10px 16px; border: 0; color: #fff; background: #2358df; }
.slider-captcha-confirm:hover { background: #1946b8; }
.slider-captcha button:disabled, .slider-captcha-range:disabled { cursor: default; opacity: .55; }
.slider-captcha :focus-visible { outline: 3px solid #2f6bff; outline-offset: 3px; }
.slider-captcha ::selection { color: #0b1739; background: #dbe7ff; }
@keyframes captcha-enter { from { transform: translateY(6px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .slider-captcha { animation: none; } }
