:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #778198;
  --line: #e4e8f0;
  --paper: #ffffff;
  --canvas: #f5f7fb;
  --accent: #315efb;
  --accent-dark: #2146c7;
  --danger: #c54155;
  --success: #227c5b;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
}

body::before {
  content: "";
  display: block;
  height: 7px;
  background: var(--accent);
}

.shell {
  width: min(100%, 980px);
  min-height: calc(100vh - 7px);
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  place-items: center;
}

.panel {
  width: min(100%, 456px);
  padding: 42px 44px 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(28, 42, 76, .08);
}

.loading-panel { text-align: center; }
.loading-panel .eyebrow { margin-top: 22px; }
.loading-spinner {
  width: 38px;
  height: 38px;
  margin: 4px auto 0;
  border: 3px solid #e5e9f4;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loading-spin .75s linear infinite;
}
@keyframes loading-spin { to { transform: rotate(360deg); } }

.brand-mark, .profile-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 25px;
  font-weight: 800;
}

.eyebrow {
  margin: 23px 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: 0; }
.subtitle { margin: 10px 0 30px; color: var(--muted); font-size: 14px; }
.license-banner { margin: 0 0 22px; padding: 11px 12px; border: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.license-banner.invalid { color: var(--danger); border-color: #f0cbd2; background: #fff7f8; }
.license-banner.valid { color: var(--success); border-color: #c5e5d5; background: #f3fbf7; }

.field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sms-heading { margin-top: 22px; }

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  color: var(--ink);
  background: #fbfcfe;
  font: inherit;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(49, 94, 251, .12); }
input::placeholder { color: #a2aabd; }
input:disabled { color: #9aa3b5; background: #f1f3f7; cursor: not-allowed; }

.input-wrap { position: relative; }
.prefix { position: absolute; left: 14px; top: 14px; z-index: 1; color: var(--muted); font-size: 14px; }
.input-wrap input { padding-left: 54px; }

.text-button {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.text-button:disabled { color: #9ba5b8; cursor: default; }

.captcha-block { margin-top: 20px; }
.captcha-row { display: grid; grid-template-columns: 1fr 126px; gap: 10px; }
.captcha-image-button { height: 48px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f5f7fb; cursor: pointer; }
.captcha-image-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.captcha-image-button span { color: #63708a; font-size: 12px; }

.notice { min-height: 23px; margin: 12px 0 4px; color: var(--danger); font-size: 13px; line-height: 1.5; }
.notice.success { color: var(--success); }
.sms-wait-hint { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; color: #63708a; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.sms-wait-hint::before { content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin-top: 3px; border: 2px solid #dce4f5; border-top-color: var(--accent); border-radius: 50%; animation: loading-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .sms-wait-hint::before { animation: none; } }
#statusNotice.auto-status { display: flex; width: max-content; max-width: 100%; min-height: 38px; align-items: center; justify-content: center; gap: 9px; margin: 14px auto 0; padding: 8px 13px; border: 1px solid #d8e2ff; border-radius: 7px; color: #50617f; background: #f5f7ff; font-size: 12px; line-height: 1.5; text-align: center; white-space: nowrap; }
#statusNotice.auto-status::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(49, 94, 251, .1); animation: status-pulse 1.8s ease-in-out infinite; }
@keyframes status-pulse { 50% { opacity: .45; transform: scale(.82); } }

button { -webkit-tap-highlight-color: transparent; }
.primary-button, .secondary-button {
  width: 100%;
  min-height: 48px;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.primary-button { border: 1px solid var(--accent); color: white; background: var(--accent); }
.primary-button:hover { background: var(--accent-dark); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.secondary-button { margin-top: 28px; border: 1px solid var(--line); color: var(--ink); background: white; }
.secondary-button:hover { border-color: var(--accent); color: var(--accent); }
.privacy-note { margin: 22px 0 0; color: #9aa3b5; font-size: 11px; text-align: center; line-height: 1.5; }

.profile-panel { text-align: center; }
.profile-topline { display: inline-flex; align-items: center; gap: 8px; color: var(--success); font-size: 13px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2eae72; }
.profile-avatar { width: 82px; height: 82px; margin: 26px auto 0; border-radius: 22px; font-size: 38px; }
.profile-panel .eyebrow { margin-top: 24px; }
.panel-copy { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.profile-grid { margin-top: 28px; border-top: 1px solid var(--line); text-align: left; }
.profile-item { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile-item span { color: var(--muted); font-size: 13px; }
.profile-item strong { max-width: 68%; overflow-wrap: anywhere; font-size: 14px; text-align: right; }
.action-stack { display: grid; gap: 10px; margin-top: 28px; }
.action-stack .secondary-button { margin-top: 0; }

.status-panel { width: min(100%, 560px); }
.status-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.status-header .eyebrow { margin: 0 0 8px; }
.stage-badge, .placeholder-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid #cbd6ff; border-radius: 999px; color: var(--accent); background: #f1f4ff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.account-strip { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px; border: 1px solid var(--line); background: #fbfcfe; }
.profile-avatar.compact { flex: 0 0 auto; width: 60px; height: 60px; margin: 0; border-radius: 16px; font-size: 26px; background-repeat: no-repeat; background-size: cover; background-position: center; }
.account-copy { display: grid; min-width: 0; gap: 3px; }
.account-copy strong, .account-copy span, .account-copy small { overflow-wrap: anywhere; }
.account-copy strong { font-size: 15px; }
.account-copy span { color: var(--muted); font-size: 13px; }
.account-copy small { color: #9aa3b5; font-size: 13px; }
.status-panel .account-copy { flex: 1; gap: 8px; }
.account-identity { display: grid; gap: 10px; margin: 0; }
.account-identity > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: baseline; gap: 10px; }
.account-identity dt { color: var(--muted); font-size: 13px; }
.account-identity dd { min-width: 0; margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.recharge-card { margin-top: 16px; padding: 20px; border: 1px solid var(--line); }
.recharge-heading, .status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recharge-heading .field-label, .status-row .field-label { margin: 0; color: var(--muted); }
.placeholder-tag { min-height: 24px; border-color: var(--line); color: var(--muted); background: #f7f8fb; font-size: 11px; }
.recharge-card h2 { margin: 18px 0 22px; font-size: 20px; }
.state-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.state-badge.processing { color: #245eb8; background: #eaf2ff; }
.state-badge.success { color: #227c5b; background: #e6f6ee; }
.state-badge.failed { color: #b2354a; background: #fff0f2; }
.state-badge.expired { color: #7d5f22; background: #fff8e5; }
.state-icon { font-size: 16px; line-height: 1; }
.status-detail { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.status-actions { display: grid; gap: 10px; margin-top: 16px; }
.status-actions .secondary-button { margin-top: 0; }
.support-button { justify-self: center; margin-top: 2px; }

.account-switch-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; }
.account-switch-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(18, 29, 55, .58); cursor: default; }
.account-switch-card { position: relative; z-index: 1; width: min(100%, 438px); padding: 30px 30px 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(18, 31, 67, .26); }
.account-switch-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #315efb, #6d5cf5); }
.account-switch-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: #315efb; background: #edf2ff; font-size: 25px; font-weight: 800; }
.account-switch-copy .eyebrow { margin: 22px 0 7px; }
.account-switch-copy h2 { margin: 0; color: #17233b; font-size: 23px; line-height: 1.25; }
.account-switch-copy p:not(.eyebrow) { margin: 10px 0 0; color: #65728a; font-size: 13px; line-height: 1.6; }
.account-switch-guide { margin-top: 22px; padding: 15px; border: 1px solid #e0e6f2; border-radius: 16px; background: linear-gradient(145deg, #f8faff, #f3f6fc); }
.account-switch-guide-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.account-switch-guide-heading span { color: #34415c; font-size: 12px; font-weight: 800; }
.account-switch-guide-heading small { color: #8b96aa; font-size: 11px; }
.account-switch-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.account-switch-step { display: flex; min-height: 57px; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #e1e7f1; border-radius: 11px; background: rgba(255,255,255,.82); }
.account-switch-step > span { display: grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: #315efb; background: #edf2ff; font-size: 11px; font-weight: 800; }
.account-switch-step div { display: grid; gap: 2px; min-width: 0; }
.account-switch-step small { color: #8a95a9; font-size: 10px; }
.account-switch-step strong { overflow-wrap: anywhere; color: #293752; font-size: 12px; }
.account-switch-step.final { border-color: #b8d8ff; background: linear-gradient(135deg, #eef5ff, #f4f1ff); }
.account-switch-step.final > span { color: #fff; background: linear-gradient(145deg, #315efb, #6757ec); }
.account-switch-step.final strong { color: #3154c8; }
.account-switch-tip { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 12px 13px; border: 1px solid #c9e8d8; border-radius: 12px; color: #227c5b; background: #effaf4; font-size: 13px; }
.account-switch-tip span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: white; background: #2eae72; font-size: 12px; }
.account-switch-footnote { margin: 14px 0 0; color: #8a95a9; font-size: 12px; line-height: 1.55; }
.account-switch-actions { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10px; margin-top: 22px; }
.account-switch-actions button { min-height: 44px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.account-switch-cancel { border: 1px solid #dfe5ef; color: #63708a; background: #fff; }
.account-switch-cancel:hover { border-color: #bac6dc; color: #33415f; background: #f8faff; }
.account-switch-confirm { border: 1px solid var(--accent); color: #fff; background: linear-gradient(100deg, #315efb, #5c55e8); box-shadow: 0 8px 18px rgba(49, 94, 251, .2); }
.account-switch-confirm:hover { background: linear-gradient(100deg, #274fdc, #4f48d2); }

[hidden] { display: none !important; }

@media (max-width: 560px) {
  .shell { padding: 28px 14px 44px; }
  .panel { padding: 30px 22px 28px; border-radius: 9px; }
  h1 { font-size: 27px; }
  .captcha-row { grid-template-columns: 1fr 112px; }
  .status-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .stage-badge { align-self: flex-start; }
  .status-panel .account-strip { align-items: flex-start; }
  .status-panel .profile-avatar.compact { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
  .account-identity > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .recharge-card { padding: 16px; }
  .recharge-card h2 { font-size: 18px; }
  #statusNotice.auto-status { width: 100%; white-space: normal; text-wrap: balance; }
  .account-switch-card { padding: 27px 21px 20px; border-radius: 18px; }
  .account-switch-copy h2 { font-size: 21px; }
  .account-switch-steps { grid-template-columns: 1fr; }
  .account-switch-actions { grid-template-columns: 1fr; }
}

/* Airbnb-inspired public experience; admin styles remain independent. */
.public-body {
  --ink: #222; --muted: #6a6a6a; --line: #ddd; --paper: #fff; --canvas: #fff;
  --accent: #ff385c; --accent-dark: #e00b41; --danger: #c13515; --success: #24704d;
  --public-shadow: 0 0 0 1px rgb(0 0 0 / 2%), 0 2px 6px rgb(0 0 0 / 4%), 0 4px 8px rgb(0 0 0 / 10%);
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  color: var(--ink); background: #fff; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.public-body::before { display: none; }
.public-body :is(h1, h2, strong) { font-weight: 600; }
.public-body :is(button, input) { font-family: inherit; }
.public-body button { transition: background-color .18s, border-color .18s; }
.public-body button:focus-visible { outline: 2px solid #222; outline-offset: 4px; }
.public-header { border-bottom: 1px solid #ebebeb; background: #fff; }
.public-header-inner { display: flex; align-items: center; justify-content: space-between; width: min(100%, 1200px); min-height: 80px; margin: auto; padding: 0 40px; }
.public-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-dark); font-size: 21px; font-weight: 600; }
.public-wordmark svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.public-header-caption { padding: 8px 14px; border: 1px solid #ebebeb; border-radius: 99px; color: var(--muted); font-size: 12px; }
.journey-strip { padding: 28px 24px 0; }
.journey-steps { display: flex; align-items: center; width: fit-content; max-width: 100%; margin: 0 auto; padding: 12px 8px; border: 1px solid #ddd; border-radius: 99px; list-style: none; }
.journey-steps li { display: flex; align-items: center; gap: 10px; padding: 0 24px; color: var(--muted); }
.journey-steps li + li { border-left: 1px solid #ebebeb; }
.journey-number { display: grid; flex-shrink: 0; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f2f2f2; color: #6a6a6a; font-size: 12px; }
.journey-steps div { display: grid; gap: 2px; }
.journey-steps strong { font-size: 13px; font-weight: 500; }
.journey-steps small { font-size: 11px; }
.public-body:has(#loginPanel:not([hidden])) .journey-steps li:nth-child(1),
.public-body:has(#confirmPanel:not([hidden])) .journey-steps li:nth-child(2),
.public-body:has(#statusPanel:not([hidden])) .journey-steps li:nth-child(3) { color: #222; }
.public-body:has(#loginPanel:not([hidden])) .journey-steps li:nth-child(1) .journey-number,
.public-body:has(#confirmPanel:not([hidden])) .journey-steps li:nth-child(2) .journey-number,
.public-body:has(#statusPanel:not([hidden])) .journey-steps li:nth-child(3) .journey-number { background: var(--ink); color: #fff; }
.public-body .shell { flex: 1; width: min(100%, 1080px); min-height: 0; padding: 32px 24px 48px; align-content: start; }
.public-body .panel { width: min(100%, 520px); padding: 32px; border: 1px solid #ddd; border-radius: 20px; background: #fff; box-shadow: none; }
.public-body #loginPanel { padding: 0; overflow: hidden; }
.login-intro { position: relative; padding: 28px 32px 24px; border-bottom: 1px solid #ebebeb; }
.login-form-area { min-width: 0; padding: 24px 32px 28px; }
.public-body .brand-mark { position: absolute; top: 28px; right: 32px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #f7f7f7; color: #222; }
.brand-mark svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.public-body .eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.public-body h1 { margin: 0; font-size: 26px; line-height: 1.4; letter-spacing: -.3px; }
.public-body .subtitle { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.public-body .license-banner { margin: 0 0 24px; padding: 12px 14px; border: 1px solid #ebebeb; border-radius: 8px; color: #555; background: #f7f7f7; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.public-body .license-banner.invalid { color: var(--danger); border-color: #efd5cf; background: #fff8f6; }
.public-body .field-label { margin: 0 0 8px; color: #555; font-size: 13px; font-weight: 500; }
.public-body input { min-width: 0; min-height: 54px; padding: 12px 14px; border: 1px solid #b0b0b0; border-radius: 8px; color: #222; background: #fff; font-size: 16px; line-height: 1.5; font-weight: 400; box-shadow: none; }
.public-body input:focus { border-color: #222; outline: 0; box-shadow: inset 0 0 0 1px #222; }
.public-body input::placeholder { color: #858585; }
.public-body input:disabled { color: #858585; border-color: #ddd; background: #f7f7f7; }
.public-body .prefix { left: 14px; top: 50%; transform: translateY(-50%); color: #555; font-size: 14px; }
.public-body .input-wrap input { padding-left: 58px; }
.public-body .field-heading { gap: 8px; }
.public-body .field-heading .field-label { margin: 0; }
.public-body .sms-heading { margin: 12px 0 4px; }
.public-body .text-button { min-height: 44px; padding: 8px 0; color: #222; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.public-body .text-button:disabled { color: #929292; text-decoration: none; }
.public-body .captcha-block { margin-top: 12px; }
.public-body .captcha-row { grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; margin-top: 4px; }
.public-body .captcha-image-button { height: 54px; border-color: #ddd; border-radius: 8px; background: #f7f7f7; }
.public-body .captcha-image-button span { color: var(--muted); font-size: 12px; }
.public-body .notice { min-height: 20px; margin: 10px 0; color: var(--danger); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.public-body .notice.success { color: var(--success); }
.public-body .sms-wait-hint { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.public-body .sms-wait-hint::before { border-color: #ddd; border-top-color: #666; }
.public-body :is(.primary-button, .secondary-button) { min-height: 48px; padding: 12px 24px; border-radius: 8px; font-size: 16px; font-weight: 500; box-shadow: none; }
.public-body .primary-button { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.public-body .primary-button:hover, .public-body .primary-button:active:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.public-body .primary-button:disabled { opacity: 1; background: #ffd1da; border-color: #ffd1da; color: #81505a; cursor: not-allowed; }
.public-body .secondary-button { border: 1px solid #222; background: #fff; color: #222; }
.public-body .secondary-button:hover { background: #f7f7f7; }
.public-body .secondary-button:disabled { color: #929292; border-color: #ddd; cursor: not-allowed; }
.public-body .privacy-note { margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.public-footer { width: min(100% - 48px, 1120px); margin: 0 auto; padding: 20px 0 24px; border-top: 1px solid #ebebeb; color: var(--muted); font-size: 12px; text-align: center; }
.public-body .loading-panel { border: 0; background: transparent; padding: 64px 24px; }
.public-body .loading-spinner { width: 32px; height: 32px; border-color: #ebebeb; border-top-color: #777; }
.loading-copy { margin: 20px 0 0; color: var(--muted); font-size: 14px; }

/* Account confirmation is a single calm summary with a clear primary action. */
.public-body .profile-panel { padding: 32px; text-align: left; }
.public-body .profile-topline { color: var(--muted); font-size: 12px; font-weight: 400; }
.public-body .status-dot { width: 6px; height: 6px; background: #777; box-shadow: none; }
.public-body .profile-avatar { display: grid; place-items: center; width: 56px; height: 56px; margin: 24px 0 20px; border: 1px solid #ebebeb; border-radius: 50%; background: #f7f7f7; color: #555; font-size: 24px; font-weight: 500; }
.public-body .profile-panel .eyebrow { margin: 0 0 8px; }
.public-body .panel-copy { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.public-body .profile-grid { margin: 24px 0; padding: 0; border-top: 1px solid #ebebeb; }
.public-body .profile-item { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 18px 0; border: 0; border-bottom: 1px solid #ebebeb; background: transparent; }
.public-body .profile-item span { color: var(--muted); font-size: 14px; }
.public-body .profile-item strong { min-width: 0; max-width: none; color: #222; font-size: 14px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.public-body .action-stack { display: grid; gap: 12px; margin: 0; }
.public-body .action-stack .secondary-button { margin: 0; }
.public-body #confirmNotice:empty { min-height: 0; margin: 0; }

/* A light order summary: product and state first, account details underneath. */
.public-body .status-panel { width: min(100%, 620px); padding: 32px; }
.public-body .status-header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.public-body .status-header .eyebrow { margin: 0 0 8px; }
.public-body .stage-badge { min-height: 28px; padding: 5px 10px; border: 1px solid #ebebeb; border-radius: 99px; color: #555; background: #f7f7f7; font-size: 11px; font-weight: 400; white-space: nowrap; }
.status-content { display: grid; gap: 24px; margin-top: 28px; }
.public-body .recharge-card { min-width: 0; margin: 0; padding: 24px; border: 1px solid #ebebeb; border-radius: 14px; background: #f7f7f7; color: #222; }
.public-body .recharge-heading { justify-content: flex-start; }
.public-body .recharge-heading .field-label { color: var(--muted); font-size: 12px; }
.public-body .recharge-card h2 { margin: 8px 0 24px; color: #222; font-size: 21px; line-height: 1.5; overflow-wrap: anywhere; }
.public-body .status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid #ddd; }
.public-body .status-row > .field-label { color: var(--muted); font-size: 13px; }
.public-body .state-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0; border-radius: 0; background: transparent; color: #222; font-size: 18px; font-weight: 600; }
.public-body .state-icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 50%; color: #555; background: #fff; font-size: 17px; font-weight: 400; }
.public-body .state-badge.success .state-icon { color: var(--success); border-color: #c7e1d2; }
.public-body .state-badge.failed .state-icon, .public-body .state-badge.expired .state-icon { color: var(--danger); border-color: #efd5cf; }
.public-body .status-detail { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.public-body .account-strip { display: flex; align-items: flex-start; gap: 20px; margin: 0; padding: 0 0 24px; border: 0; border-bottom: 1px solid #ebebeb; background: #fff; }
.public-body .profile-avatar.compact { flex-shrink: 0; width: 44px; height: 44px; margin: 0; border-radius: 50%; font-size: 19px; }
.public-body .status-panel .account-copy { display: block; flex: 1; min-width: 0; }
.public-body .account-identity { gap: 14px; }
.public-body .account-identity > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: baseline; gap: 12px; }
.public-body .account-identity dt { color: var(--muted); font-size: 13px; }
.public-body .account-identity dd, .public-body #confirmedAt { margin: 0; color: #222; font-size: 14px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.public-body .status-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: 16px; }
.public-body .status-actions .secondary-button { width: auto; min-width: 156px; margin: 0; }
.public-body .support-button { margin: 0; }
.public-body #statusNotice { margin-bottom: 0; text-align: center; }
.public-body #statusNotice.auto-status { width: auto; margin: 12px auto 0; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; white-space: normal; }
.public-body #statusNotice.auto-status::before { background: #777; box-shadow: none; }

/* A compact, numbered guide in the same visual language as the login card. */
.public-body .account-switch-modal { z-index: 30; padding: 24px; }
.public-body .account-switch-backdrop { background: rgb(0 0 0 / 50%); }
.public-body .account-switch-card { width: min(100%, 480px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px; border: 1px solid #ddd; border-radius: 20px; background: #fff; box-shadow: var(--public-shadow); overscroll-behavior: contain; }
.public-body .account-switch-card::before { display: none; }
.public-body .account-switch-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f2f2f2; color: #555; font-size: 23px; font-weight: 400; }
.public-body .account-switch-copy .eyebrow { margin: 20px 0 6px; }
.public-body .account-switch-copy h2 { margin: 0; color: #222; font-size: 22px; line-height: 1.4; }
.public-body .account-switch-guide { margin-top: 24px; padding: 16px; border: 1px solid #ebebeb; border-radius: 14px; background: #f7f7f7; }
.public-body .account-switch-guide-heading { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.public-body .account-switch-guide-heading span { color: #555; font-size: 12px; font-weight: 500; }
.public-body .account-switch-guide-heading small { color: var(--muted); font-size: 11px; }
.public-body .account-switch-steps { display: grid; grid-template-columns: 1fr; gap: 0; }
.public-body .account-switch-step { display: flex; gap: 12px; min-height: 46px; padding: 10px 0; border: 0; border-bottom: 1px solid #e0e0e0; border-radius: 0; background: transparent; }
.public-body .account-switch-step:last-child { border: 0; }
.public-body .account-switch-step > span { width: 24px; height: 24px; border: 1px solid #ddd; border-radius: 50%; color: #6a6a6a; background: #fff; font-size: 11px; font-weight: 400; }
.public-body .account-switch-step div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.public-body .account-switch-step small { color: var(--muted); font-size: 12px; }
.public-body .account-switch-step strong { color: #222; font-size: 14px; font-weight: 500; }
.public-body .account-switch-step.final { background: transparent; }
.public-body .account-switch-step.final > span { color: #fff; border-color: #222; background: #222; }
.public-body .account-switch-step.final strong { color: #222; font-weight: 600; }
.public-body .account-switch-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; margin-top: 24px; }
.public-body .account-switch-actions button { min-height: 48px; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: none; }
.public-body .account-switch-cancel { color: #222; border: 1px solid #222; background: #fff; }
.public-body .account-switch-cancel:hover { background: #f7f7f7; }
.public-body .account-switch-confirm { color: #fff; border: 1px solid var(--accent); background: var(--accent); }
.public-body .account-switch-confirm:hover, .public-body .account-switch-confirm:active { background: var(--accent-dark); border-color: var(--accent-dark); }

@media (max-width: 743px) {
  .public-header-inner { min-height: 64px; padding: 0 24px; }
  .public-wordmark { font-size: 18px; gap: 8px; }
  .public-wordmark svg { width: 26px; height: 26px; }
  .public-header-caption { font-size: 11px; padding: 6px 10px; }
  .journey-strip { padding: 20px 16px 0; }
  .journey-steps { width: min(100%, 520px); justify-content: space-between; padding: 10px 4px; }
  .journey-steps li { justify-content: center; flex: 1; gap: 6px; padding: 0 8px; }
  .journey-number { width: 24px; height: 24px; font-size: 11px; }
  .journey-steps strong { font-size: 12px; }
  .journey-steps small { display: none; }
  .public-body .shell { padding: 24px 16px 32px; }
  .public-body .panel, .public-body .profile-panel, .public-body .status-panel { padding: 24px; border-radius: 16px; }
  .login-intro { padding: 24px; }
  .login-form-area { padding: 20px 24px 24px; }
  .public-body .brand-mark { top: 24px; right: 24px; width: 36px; height: 36px; }
  .brand-mark svg { width: 28px; height: 28px; }
  .public-body h1 { font-size: 24px; }
  .public-body .captcha-row { grid-template-columns: minmax(0, 1fr) 100px; gap: 8px; }
  .public-body .captcha-row input { padding: 10px 12px; }
  .public-body .profile-avatar { margin: 20px 0; }
  .public-body .profile-item { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
  .public-body .profile-item :is(span, strong) { font-size: 13px; }
  .public-body .status-header { flex-wrap: wrap; gap: 12px; }
  .public-body .stage-badge { align-self: center; }
  .status-content { gap: 20px; margin-top: 24px; }
  .public-body .recharge-card { padding: 20px; }
  .public-body .recharge-card h2 { font-size: 18px; }
  .public-body .account-strip { gap: 12px; padding-bottom: 20px; }
  .public-body .account-identity > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .public-body .account-identity { gap: 12px; }
  .public-body .status-panel .account-copy { flex: 1; }
  .public-body .profile-avatar.compact { width: 36px; height: 36px; font-size: 17px; }
  .public-body .account-switch-modal { padding: 16px; }
  .public-body .account-switch-card { max-height: calc(100dvh - 32px); padding: 24px; border-radius: 20px; }
  .public-body .account-switch-copy h2 { font-size: 21px; }
  .public-body .account-switch-guide { margin-top: 20px; }
  .public-body .account-switch-actions { gap: 8px; }
  .public-body .account-switch-actions button { padding: 10px; font-size: 13px; }
}
@media (max-width: 359px) {
  .public-header-inner { padding: 0 16px; }
  .journey-steps li { gap: 4px; padding: 0 4px; }
  .journey-steps strong { font-size: 11px; }
  .journey-number { width: 22px; height: 22px; }
  .login-intro, .login-form-area, .public-body .profile-panel, .public-body .status-panel { padding: 20px; }
  .public-body .brand-mark { right: 20px; width: 32px; height: 32px; }
  .public-body h1 { font-size: 22px; }
  .public-body .captcha-row { grid-template-columns: minmax(0, 1fr) 90px; }
  .public-body .captcha-row input { padding: 10px; }
  .public-body .recharge-card { padding: 16px; }
  .public-body .state-badge { font-size: 16px; }
  .public-body .account-switch-card { padding: 20px; }
  .public-body .account-switch-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .public-body *, .public-body *::before { animation: none !important; transition: none !important; }
}
