:root {
  color-scheme: light;
  --ink: #15171a;
  --muted: #6e737b;
  --line: #dfe2e6;
  --soft: #f5f5f7;
  --white: #fff;
  --blue: #0877e6;
  --blue-dark: #0066cc;
  --green: #147a55;
  --danger: #b84a3f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.account-header {
  height: 58px;
  padding: 0 max(22px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(18px);
}
.account-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 750; }
.account-brand img { width: 29px; height: 29px; border-radius: 7px; }
.back-home { color: #4f5965; font-size: 12px; }

.account-shell {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 76px 0 110px;
}
.account-intro { max-width: 740px; margin-bottom: 38px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 750; }
.account-intro h1 { margin: 0; font-size: clamp(36px, 5.3vw, 62px); line-height: 1.08; letter-spacing: -.035em; }
.account-intro > p:not(.eyebrow) { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.trust { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 9px; }
.trust span { padding: 7px 10px; color: #53606d; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; }

.auth-card, .member-area {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 58px rgba(24,36,50,.08);
}
.auth-card { width: min(440px, 100%); }
.auth-tabs { padding: 4px; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; background: #eef1f4; border-radius: 11px; }
.auth-tabs button { min-height: 39px; border: 0; border-radius: 8px; color: #66717e; background: transparent; font-weight: 700; }
.auth-tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.auth-form { margin-top: 22px; display: grid; gap: 14px; }
.auth-form select { appearance:auto; background:#fff; border:1px solid #d9e0e9; border-radius:12px; color:#263245; font:inherit; min-height:46px; padding:0 12px; width:100%; }
.auth-form label span { display: block; margin-bottom: 6px; color: #566170; font-size: 11px; font-weight: 700; }
.auth-form label > small { margin-top: 6px; display: block; color: #16865f; font-size: 9px; line-height: 1.5; }
.auth-form .legal-consent { display:grid; grid-template-columns:18px 1fr; gap:9px; align-items:start; color:#5f6b78; font-size:11px; line-height:1.65; }
.auth-form .legal-consent input { width:16px; min-height:16px; margin-top:2px; }
.auth-form .legal-consent span { margin:0; font-weight:500; }
.legal-consent a,.account-footer a { color:var(--blue); text-decoration:none; }
.verification-row { display: grid; grid-template-columns: minmax(0,1fr) 128px; gap: 8px; align-items: end; }
.verification-row label { min-width: 0; }
.verification-button { min-height: 44px; padding: 0 10px; font-size: 11px; }
input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #d5dae0;
  border-radius: 10px;
  color: var(--ink);
  background: #fbfcfd;
}
input:focus { outline: 0; border-color: #7baee1; box-shadow: 0 0 0 4px rgba(8,119,230,.1); }
.primary-button, .secondary-button, .text-button {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 10px;
  font-weight: 750;
}
.primary-button { border: 0; color: #fff; background: var(--blue); }
.primary-button:hover { background: var(--blue-dark); }
.primary-button:disabled, .secondary-button:disabled { opacity: .55; cursor: wait; }
.secondary-button { color: #33404e; background: #fff; border: 1px solid #cfd5dc; }
.text-button { min-height: 36px; color: var(--blue); background: transparent; border: 0; }
.form-message { min-height: 18px; margin: 13px 0 0; color: var(--danger); font-size: 11px; line-height: 1.6; }
.is-success { color: #147a55 !important; }
.is-error { color: var(--danger) !important; }

.member-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.member-head h2 { margin: 0; font-size: 28px; }
.member-head div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.member-summary { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.member-summary article { min-height: 132px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 13px; background: #fafbfc; }
.member-summary span, .member-summary small { color: var(--muted); font-size: 11px; }
.member-summary strong { margin: auto 0 7px; font-size: 27px; }
.section-heading { margin-top: 48px; }
.section-heading h2 { margin: 0; font-size: 27px; }
.plan-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 11px; }
.plan-card { min-height: 158px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.plan-card.featured { border-color: #9fc7ee; background: #f6faff; }
.plan-card.selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue), 0 10px 30px rgba(8,119,230,.1); }
.plan-card > span { color: var(--blue); font-size: 12px; font-weight: 750; }
.plan-card > em { margin-top: 10px; padding: 4px 8px; border-radius: 999px; color: #ad4710; background: #fff0e6; font-size: 11px; font-style: normal; font-weight: 800; }
.plan-card strong { margin-top: 15px; font-size: 23px; line-height: 1.25; }
.plan-card strong small { color: var(--muted); font-size: 11px; font-weight: 500; }
.plan-card p { margin: 14px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.renew-offer { margin: 0 0 14px; padding: 9px 10px; color: #9b3d0c; background: #fff5ea; border: 1px solid #ffd4aa; border-radius: 9px; font-size: 11px; line-height: 1.55; }
.renew-offer b { font-size: 14px; }
.plan-card > button, .plan-option-actions { margin-top: auto; width: 100%; }
.plan-option-actions { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; }
.renew-button { padding: 8px 6px; border: 1px solid #f0a24b; border-radius: 9px; color: #9b3d0c; background: #fff5ea; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.renew-button small { font-size: 10px; font-weight: 700; }
.renew-button:hover, .renew-button:focus-visible { border-color: #d76a16; background: #ffead7; outline: none; }
.wallet-panel { margin-top: 16px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #b9d7f5; border-radius: 13px; background: #f3f8ff; }
.wallet-panel strong { font-size: 15px; }
.wallet-panel p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.wallet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.auto-renew-panel { margin-top: 20px; padding: 20px; border: 1px solid #cfdce8; border-radius: 13px; background: linear-gradient(135deg, #f8fbff, #f7faf8); }
.auto-renew-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.auto-renew-heading .eyebrow { margin-bottom: 5px; }
.auto-renew-heading h3 { margin: 0; font-size: 20px; }
.auto-renew-state { padding: 6px 10px; color: #4d5b69; background: #fff; border: 1px solid #d5dde5; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.auto-renew-state.is-active { color: var(--green); border-color: #9dcdb8; background: #f0fbf6; }
.auto-renew-detail { margin: 13px 0 0; color: #596675; font-size: 12px; line-height: 1.7; }
.auto-renew-providers { margin-top: 15px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.auto-renew-providers div { padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.78); border: 1px solid #dfe6ec; border-radius: 10px; }
.auto-renew-providers strong { font-size: 12px; }
.auto-renew-providers span { color: var(--muted); font-size: 11px; text-align: right; }
.auto-renew-footer { margin-top: 15px; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #dce5ec; }
.auto-renew-footer p { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.auto-renew-panel button:disabled { cursor: not-allowed; }
.payment-panel { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.payment-methods { margin-right: auto; display: flex; gap: 8px; }
.payment-methods label { position: relative; }
.payment-methods input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.payment-methods span { min-height: 42px; padding: 0 15px; display: flex; align-items: center; color: #4e5966; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 700; }
.payment-methods input:checked + span { color: var(--blue); border-color: var(--blue); background: #f2f8ff; }
.payment-methods input:disabled + span { opacity: .48; cursor: not-allowed; }
.payment-result { margin-top: 17px; padding: 15px; white-space: pre-line; color: #586575; background: #f7f8fa; border-radius: 11px; font-size: 12px; line-height: 1.7; }
.payment-qr { margin-top: 14px; padding: 16px; display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 13px; }
.payment-qr img { width: 164px; height: 164px; padding: 6px; object-fit: contain; border: 1px solid #edf0f2; border-radius: 9px; }
.payment-qr p { max-width: 300px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.security-card { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.temporary-password-notice {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid #f1c783;
  border-radius: 12px;
  background: #fff8e8;
  color: #7a4b00;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}
.security-card summary { color: #465667; font-size: 12px; font-weight: 750; cursor: pointer; }
.security-form { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; }
.support-grid { margin-top:16px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.support-form,.data-rights-card { padding:18px; border:1px solid var(--line); border-radius:13px; background:#fafbfc; }
.support-form { display:grid; gap:10px; }
.support-form h3,.data-rights-card h3 { margin:0 0 5px; font-size:16px; }
.support-form select,.support-form textarea { width:100%; padding:12px 13px; border:1px solid #d5dae0; border-radius:10px; color:var(--ink); background:#fff; font:inherit; }
.support-form textarea { min-height:100px; resize:vertical; line-height:1.6; }
.data-rights-card > p { margin:10px 0 14px; color:var(--muted); font-size:11px; line-height:1.7; }
.danger-button { min-height:44px; padding:0 17px; border:1px solid #e4b8b8; border-radius:10px; color:#a23333; background:#fff7f7; font-weight:750; }
.account-footer { width:min(1180px,calc(100% - 42px)); margin:0 auto 42px; display:flex; justify-content:center; flex-wrap:wrap; gap:18px; color:var(--muted); font-size:11px; }

@media (max-width: 760px) {
  .account-header { padding: 0 16px; }
  .account-shell { width: min(100% - 28px, 560px); padding: 50px 0 70px; }
  .account-intro { margin-bottom: 27px; }
  .account-intro h1 { font-size: clamp(34px, 10vw, 46px); }
  .account-intro > p:not(.eyebrow) { font-size: 14px; }
  .auth-card, .member-area { padding: 20px; border-radius: 15px; }
  .verification-row { grid-template-columns: minmax(0,1fr) 112px; }
  .member-summary, .plan-grid { grid-template-columns: 1fr; }
  .wallet-panel { align-items: stretch; flex-direction: column; }
  .wallet-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wallet-actions button { padding: 0 8px; }
  .auto-renew-providers { grid-template-columns: 1fr; }
  .auto-renew-footer { align-items: stretch; flex-direction: column; }
  .auto-renew-footer button { width: 100%; }
  .member-summary article { min-height: 112px; }
  .payment-panel { align-items: stretch; }
  .payment-methods { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .payment-methods span { justify-content: center; }
  .payment-panel > button { flex: 1 1 100%; }
  .payment-qr { flex-direction: column; align-items: flex-start; }
  .payment-qr img { width: min(164px, 62vw); height: min(164px, 62vw); align-self: center; }
  .security-form { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns:1fr; }
}
