/* 观潮 · 会员、账号与结算界面（依赖 styles.css 中的设计变量） */

/* ---------- Top bar entries ---------- */
.member-top-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 32px; padding: 0 12px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); color: var(--accent-600); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.member-top-link:hover { border-color: #f6b99b; background: #ffeadf; }
.auth-top-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; max-width: 150px; min-height: 32px; padding: 0 12px; overflow: hidden; border: 1px solid #d5d9e1; border-radius: 999px; background: #fff; color: var(--ink-700); font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s; }
.auth-top-button span { min-width: 0; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.auth-top-button:hover { border-color: #bcc3ce; background: var(--surface-2); color: var(--ink-900); }

/* ---------- Entitlement strip ---------- */
.membership-lockbar { display: flex; align-items: center; gap: 12px; margin: 0 20px 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(90deg, #fffaf6 0%, #fff 55%); color: var(--ink-500); font-size: 12.5px; line-height: 1.7; }
.membership-lockbar > svg { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.membership-lockbar > span, .membership-lockbar > div { flex: 1; min-width: 0; }
.membership-lockbar strong { margin-right: 10px; color: var(--ink-900); font-size: 13px; font-weight: 600; }
.membership-lockbar > .btn { flex: none; margin-left: auto; }
.member-inline-lock { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--accent-line); border-radius: 6px; background: var(--accent-soft); color: var(--accent-600); font-size: 11.5px; white-space: nowrap; }
.watchlist-upgrade { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 16px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); color: #8a4a2b; font-size: 13px; line-height: 1.7; }
.watchlist-upgrade > svg { color: var(--accent); }
.watchlist-upgrade > .btn, .watchlist-upgrade > .text-link { margin-left: auto; }
.demo-payment-tag { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid #f5e2bf; border-radius: 999px; background: #fffaf0; color: var(--amber); font-size: 11.5px; line-height: 1.6; white-space: nowrap; }

/* ---------- Member summary ---------- */
.member-summary { display: flex; align-items: center; gap: 28px; margin-bottom: 18px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.member-identity { display: flex; align-items: center; gap: 14px; min-width: 245px; }
.account-letter { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, #ff9d6b, #ee5a25); color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 6px 14px rgba(240, 98, 45, .26), inset 0 1px 0 rgba(255, 255, 255, .28); }
.member-identity h3 { font-size: 16px; font-weight: 650; line-height: 1.5; }
.member-identity p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; line-height: 1.6; color: var(--ink-500); }
.membership-pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border: 1px solid #f5e2bf; border-radius: 999px; background: #fffaf0; color: var(--amber); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.membership-pill.trial { border-color: var(--line); background: #f1f3f6; color: var(--ink-600); }
.membership-pill.pro { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-600); }
.membership-pill.elite { border-color: var(--ink-900); background: var(--ink-900); color: #ffd9b8; }
.member-usage { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; min-width: 0; }
.member-usage > div { min-width: 0; }
.member-usage small { display: block; font-size: 12px; line-height: 1.6; color: var(--ink-500); }
.member-usage strong { display: block; margin-top: 2px; color: var(--ink-900); font-size: 22px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.member-usage strong span { color: var(--ink-400); font-size: 13px; font-weight: 400; white-space: nowrap; }
.usage-track { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #eceef2; }
.usage-track i { display: block; max-width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffa172, var(--accent)); transition: width .25s ease; }
.member-summary > .text-link, .member-summary > .btn { flex: none; }

/* ---------- Plans hero ---------- */
.membership-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 44px 24px 46px;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(620px 320px at 12% 112%, rgba(240, 98, 45, .5), transparent 62%),
    radial-gradient(560px 340px at 92% -18%, rgba(86, 116, 255, .36), transparent 60%),
    #0d1424;
  box-shadow: var(--shadow-md);
}
.member-eyebrow { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; color: #ffb48f; font-size: 11px; font-weight: 600; letter-spacing: 2.4px; }
.membership-hero h2 { position: relative; z-index: 1; margin-top: 16px; color: #fff; font-size: 32px; font-weight: 700; line-height: 1.45; letter-spacing: .3px; }
.membership-hero h2 span { background: linear-gradient(90deg, #ffb07f, #ff7a45); -webkit-background-clip: text; background-clip: text; color: transparent; }
.membership-hero > p { position: relative; z-index: 1; margin-top: 8px; color: #aeb9cd; font-size: 14px; line-height: 1.8; }
.billing-switch { position: relative; z-index: 1; display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 13px; background: rgba(255, 255, 255, .08); }
.billing-switch button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 18px; border-radius: 9px; color: #c9d2e0; font-size: 13.5px; white-space: nowrap; transition: background .16s, color .16s; }
.billing-switch button:hover { color: #fff; }
.billing-switch button.active { background: #fff; color: var(--ink-900); font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.billing-switch button span { padding: 1px 7px; border-radius: 999px; background: rgba(240, 98, 45, .28); color: #ffc3a4; font-size: 11px; font-weight: 600; }
.billing-switch button.active span { background: var(--accent); color: #fff; }
.pricing-caption { position: relative; z-index: 1; margin-top: 14px; color: #8e9bb3; font-size: 12.5px; line-height: 1.7; }
.hero-orbit { position: absolute; z-index: 0; width: 330px; height: 330px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%; pointer-events: none; transform: rotate(-25deg); }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; inset: 28px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 50%; }
.hero-orbit::after { inset: 59px; }
.hero-orbit.one { top: -40px; left: -200px; }
.hero-orbit.two { right: -180px; bottom: -160px; width: 400px; height: 400px; }

/* ---------- Pricing ---------- */
.pricing-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 16px; }
.pricing-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 26px 24px 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card.pro { border-color: var(--accent); background: linear-gradient(180deg, #fff6f0 0%, #fff 34%); box-shadow: 0 0 0 1px var(--accent), 0 16px 36px rgba(240, 98, 45, .14); }
.pricing-card.elite { background: linear-gradient(180deg, #f3f5fb 0%, #fff 34%); }
.popular-ribbon { position: absolute; top: -13px; left: 50%; max-width: calc(100% - 28px); padding: 4px 14px; border-radius: 999px; background: var(--accent-gradient); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; box-shadow: 0 6px 14px rgba(240, 98, 45, .32); transform: translateX(-50%); }
.plan-symbol { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--amber-soft); color: #c27a12; }
.pricing-card.pro .plan-symbol { background: var(--accent-gradient); color: #fff; box-shadow: 0 6px 14px rgba(240, 98, 45, .28); }
.pricing-card.elite .plan-symbol { background: var(--ink-900); color: #ffd9b8; }
.pricing-card h3 { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.plan-description { min-height: 20px; margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--ink-500); }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-top: 20px; color: var(--ink-900); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-price > span { align-self: flex-start; margin-top: 8px; font-size: 18px; font-weight: 600; }
.plan-price strong { font-size: 40px; font-weight: 800; line-height: 1.2; letter-spacing: -1.5px; }
.plan-price small { margin-left: 4px; color: var(--ink-400); font-size: 13px; }
.pricing-card.pro .plan-price { color: var(--accent-600); }
.plan-billing { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.plan-billing del { margin-left: 6px; color: var(--ink-400); }
.plan-saving { min-height: 22px; margin-top: 4px; color: var(--green); font-size: 12.5px; font-weight: 500; line-height: 1.7; }
.plan-saving.muted { color: var(--ink-400); font-weight: 400; }
.plan-buy { width: 100%; min-height: 42px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.pricing-card.elite .plan-buy { border-color: var(--ink-900); background: var(--ink-900); color: #fff; }
.pricing-card.elite .plan-buy:hover { border-color: #000; background: #000; color: #fff; }
.plan-buy:disabled, .pricing-card.pro .plan-buy:disabled, .pricing-card.elite .plan-buy:disabled { opacity: 1; border-color: var(--line); background: #f1f3f6; color: var(--ink-400); box-shadow: none; }
.plan-divider { height: 1px; margin: 22px 0 18px; background: var(--line-soft); }
.plan-features { display: grid; gap: 13px; margin: 0 0 22px; padding: 0; list-style: none; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; }
.plan-features li > svg { width: 18px; height: 18px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.pricing-card.pro .plan-features li > svg { background: var(--accent-soft); color: var(--accent-600); }
.pricing-card.elite .plan-features li > svg { background: #e8ebf3; color: var(--ink-800); }
.plan-features strong { display: block; color: var(--ink-800); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.plan-features span { display: block; margin-top: 1px; font-size: 12px; line-height: 1.6; color: var(--ink-400); }
.plan-current { margin: auto -24px 0; padding: 12px 15px; border-top: 1px solid var(--line-soft); border-radius: 0 0 18px 18px; background: var(--surface-2); color: var(--ink-400); font-size: 12px; line-height: 1.6; text-align: center; }
.pricing-card.pro .plan-current { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-600); }
.pricing-footnote { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin-bottom: 24px; font-size: 12.5px; line-height: 1.8; color: var(--ink-400); }
.pricing-footnote > svg { margin-top: 4px; }

.custom-promo { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(100deg, #fff8f3 0%, #fff 60%); box-shadow: var(--shadow); }
.custom-promo-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.custom-promo h3 { font-size: 15.5px; font-weight: 650; line-height: 1.6; }
.custom-promo p { margin-top: 2px; font-size: 13px; line-height: 1.75; color: var(--ink-500); }
.custom-promo > .btn { flex: none; margin-left: auto; }

.membership-faq { margin-bottom: 24px; }
.membership-faq > h2 { margin-bottom: 14px; font-size: 17px; font-weight: 650; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px 16px; }
.faq-grid details { min-width: 0; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.faq-grid details:hover { border-color: #d3d8e0; }
.faq-grid details[open] { border-color: var(--accent-line); box-shadow: var(--shadow); }
.faq-grid summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; color: var(--ink-800); font-size: 13.5px; font-weight: 500; line-height: 1.6; list-style: none; cursor: pointer; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary > svg { color: var(--ink-400); transition: transform .16s; }
.faq-grid details[open] summary { color: var(--accent-600); }
.faq-grid details[open] summary > svg { color: var(--accent); transform: rotate(45deg); }
.faq-grid details > p { padding: 13px 0 16px; border-top: 1px solid var(--line-soft); font-size: 13px; line-height: 1.9; color: var(--ink-600); }
.faq-grid summary:focus-visible { border-radius: 4px; }

/* ---------- Sign in / sign up ---------- */
.auth-brand { display: flex; align-items: center; gap: 12px; padding: 0 0 20px; }
.auth-brand img { flex: none; width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 14px rgba(240, 98, 45, .28); }
.auth-brand strong { display: block; color: var(--ink-900); font-size: 14.5px; font-weight: 650; line-height: 1.6; }
.auth-brand span { display: block; margin-top: 2px; font-size: 10px; letter-spacing: 1.4px; color: var(--ink-400); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 20px; padding: 4px; border-radius: 11px; background: #eceef2; }
.auth-tabs button { min-height: 36px; border-radius: 8px; color: var(--ink-500); font-size: 13.5px; transition: background .15s, color .15s; }
.auth-tabs button:hover { color: var(--ink-900); }
.auth-tabs button.active { background: #fff; color: var(--ink-900); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06); }
#member-auth-form .form-input, #custom-creator-form .form-input { min-height: 42px; }
#member-auth-form .muted { color: var(--ink-400); font-size: 12px; font-weight: 400; }
#member-auth-form .detail-note { margin: -6px 0 14px; }
.password-wrap { position: relative; }
.password-wrap .form-input { padding-right: 44px; }
.password-wrap > button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--ink-400); }
.password-wrap > button:hover { background: #f1f3f6; color: var(--ink-800); }
.email-code-row { display: flex; align-items: flex-start; gap: 10px; }
.email-code-row .form-input { flex: 1; min-width: 0; }
.email-code-row .btn { flex: none; min-height: 42px; white-space: nowrap; }
.auth-submit { width: 100%; min-height: 44px; margin-top: 6px; font-size: 14px; }
.auth-submit + .auth-submit { margin-top: 10px; }
.form-error { margin: 0 0 14px; padding: 10px 14px; border: 1px solid #f7cfc9; border-radius: var(--radius-sm); background: var(--red-soft); color: var(--red); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.form-error[hidden] { display: none; }
.auth-demo-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--ink-500); }
.auth-demo-note > svg { margin-top: 3px; color: var(--ink-400); }
.auth-demo-note p { font-size: 12px; line-height: 1.8; }

/* ---------- Account sheet ---------- */
.account-profile { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.account-profile .account-letter { width: 60px; height: 60px; border-radius: 18px; font-size: 24px; }
.account-profile > div { min-width: 0; }
.account-profile h2 { font-size: 19px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.account-profile p { margin: 2px 0 8px; font-size: 13px; line-height: 1.6; color: var(--ink-500); overflow-wrap: anywhere; }
.account-info { display: grid; gap: 0; margin-bottom: 18px; padding: 4px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.account-info > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 13px; line-height: 1.6; }
.account-info > div + div { border-top: 1px solid var(--line-soft); }
.account-info span { color: var(--ink-500); }
.account-info strong { color: var(--ink-900); font-weight: 600; text-align: right; }
.account-links { display: flex; align-items: center; justify-content: center; margin-top: 18px; }
.account-links button { padding: 0 18px; color: var(--ink-500); font-size: 13px; line-height: 1.4; }
.account-links button + button { border-left: 1px solid var(--line); }
.account-links button:hover { color: var(--accent-600); }

/* ---------- Upgrade gate ---------- */
.gate-illustration { display: grid; place-items: center; width: 72px; height: 72px; margin: 4px auto 18px; border-radius: 22px; background: var(--accent-gradient); color: #fff; box-shadow: 0 12px 26px rgba(240, 98, 45, .3), inset 0 1px 0 rgba(255, 255, 255, .3); }
.gate-title { margin-bottom: 8px; font-size: 20px; font-weight: 700; line-height: 1.6; text-align: center; }
.gate-description { max-width: 340px; margin: 0 auto 20px; font-size: 13.5px; line-height: 1.85; color: var(--ink-500); text-align: center; }
.gate-plan { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); font-size: 13px; }
.gate-plan span { color: var(--ink-500); }
.gate-plan strong { color: var(--ink-900); font-weight: 600; }
.gate-description + .gate-plan ~ .detail-note { text-align: center; }

/* ---------- Checkout ---------- */
.checkout-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.checkout-label > span:first-child { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-500); }
.checkout-name { color: var(--ink-900); font-size: 20px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.checkout-description { margin-top: 6px; font-size: 13px; line-height: 1.8; color: var(--ink-500); }
.checkout-lines { display: grid; gap: 12px; margin: 20px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.checkout-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; line-height: 1.6; color: var(--ink-500); }
.checkout-lines strong { color: var(--ink-800); font-weight: 600; font-variant-numeric: tabular-nums; }
.checkout-lines .checkout-total { margin-top: 2px; padding-top: 14px; border-top: 1px dashed var(--ink-300); color: var(--ink-800); font-weight: 500; }
.checkout-total strong { color: var(--accent-600); font-size: 26px; font-weight: 800; line-height: 1.3; letter-spacing: -.5px; }
.payment-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 16px; }
.payment-method { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid #d5d9e1; border-radius: 11px; background: #fff; color: var(--ink-700); font-size: 13.5px; font-weight: 500; transition: border-color .16s, background .16s, box-shadow .16s; }
.payment-method:hover { border-color: #f1a887; }
.payment-method.active, .payment-method.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-600); font-weight: 600; box-shadow: 0 0 0 3px var(--accent-ring); }
.payment-method > span:nth-child(2) { min-width: 0; }
.payment-method small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-400); white-space: nowrap; }
.payment-method > i { flex: none; width: 14px; height: 14px; margin-left: auto; border: 1px solid var(--ink-300); border-radius: 50%; background: #fff; }
.payment-method.active > i, .payment-method.selected > i { border: 4px solid var(--accent); }
.wechat-pay { flex: none; display: grid; place-items: center; width: 31px; height: 31px; }
.wechat-pay .platform-symbol { width: 31px; height: 31px; border-radius: 8px; }
.alipay-mark { flex: none; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 19px; font-weight: 700; }
.checkout-notice { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; padding: 11px 14px; border-radius: 10px; background: #fffaf0; color: #7a5310; }
.checkout-notice > svg { margin-top: 3px; }
.checkout-notice p { font-size: 12.5px; line-height: 1.75; }
.checkout-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12px; line-height: 1.7; color: var(--ink-400); }
.checkout-bottom button { flex: none; color: var(--ink-500); font-size: 12.5px; line-height: 1.7; }
.checkout-bottom button:hover { color: var(--red); }
.official-payment { display: grid; justify-items: center; gap: 12px; }
.official-payment img { padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.official-payment > p { font-size: 13px; line-height: 1.7; color: var(--ink-500); }
.official-payment .btn { min-width: 220px; }

.payment-success-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 6px auto 18px; border-radius: 50%; background: linear-gradient(145deg, #34d399, #059669); color: #fff; box-shadow: 0 0 0 8px #e6f6ee, 0 12px 26px rgba(5, 150, 105, .28); }
.payment-success-title { margin-top: 22px; font-size: 21px; font-weight: 700; line-height: 1.6; text-align: center; }
.payment-success-description { margin: 4px 0 20px; font-size: 13.5px; line-height: 1.8; color: var(--ink-500); text-align: center; overflow-wrap: anywhere; }
.success-receipt { display: grid; gap: 0; margin-bottom: 16px; padding: 4px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.success-receipt > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 11px 0; font-size: 13px; line-height: 1.6; }
.success-receipt > div + div { border-top: 1px solid var(--line-soft); }
.success-receipt span { flex: none; color: var(--ink-500); }
.success-receipt strong { color: var(--ink-900); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.success-receipt .receipt-id { max-width: 70%; color: var(--ink-600); font-family: var(--mono); font-size: 11.5px; font-weight: 400; }
.success-orders { display: block; margin: 14px auto 0; color: var(--ink-500); font-size: 13px; line-height: 1.7; }
.success-orders:hover { color: var(--accent-600); }

/* ---------- Custom creator request ---------- */
.custom-form-intro { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--accent-line); border-radius: 12px; background: linear-gradient(100deg, var(--accent-soft), #fff); }
.custom-form-intro > svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }
.custom-form-intro h3 { font-size: 14.5px; font-weight: 650; line-height: 1.6; }
.custom-form-intro p { margin-top: 2px; font-size: 12.5px; line-height: 1.7; color: var(--ink-500); }
.custom-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.custom-price > span { font-size: 13px; color: var(--ink-500); }
.custom-price strong { color: var(--accent-600); font-size: 24px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.custom-price small { color: var(--ink-400); font-size: 12.5px; font-weight: 400; letter-spacing: 0; }

/* ---------- Orders ---------- */
.order-panel { margin-bottom: 20px; overflow: hidden; }
.order-filters { display: flex; align-items: center; gap: 22px; margin-top: 10px; padding: 0 20px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.order-filters button { position: relative; flex: none; padding: 10px 0 12px; color: var(--ink-500); font-size: 13.5px; line-height: 1.6; white-space: nowrap; }
.order-filters button:hover { color: var(--ink-900); }
.order-filters button.active { color: var(--accent-600); font-weight: 600; }
.order-filters button.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: var(--accent); }
.orders-table { min-width: 620px; }
.orders-table td:first-child { min-width: 210px; max-width: 350px; white-space: normal; }
.orders-table td:first-child strong { display: block; color: var(--ink-900); font-size: 13.5px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.orders-table td:first-child small { display: block; margin-top: 2px; color: var(--ink-400); font-family: var(--mono); font-size: 11.5px; overflow-wrap: anywhere; }
.orders-table td:last-child .text-link { margin-right: 10px; }
.order-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: #eef0f4; color: var(--ink-600); font-size: 11.5px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.order-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.order-status.pending { background: var(--amber-soft); color: var(--amber); }
.order-status.paid { background: var(--green-soft); color: var(--green); }
.order-status.cancelled { background: #eef0f4; color: var(--ink-500); }
.order-status.expired { background: var(--red-soft); color: var(--red); }
.custom-requests { margin-bottom: 24px; overflow: hidden; }
.custom-requests > .panel-head { margin-bottom: 14px; }
.custom-requests table { min-width: 560px; }
.custom-requests td strong { display: block; color: var(--ink-900); font-size: 13.5px; font-weight: 600; }
.request-handle { display: block; max-width: 290px; margin-top: 2px; overflow: hidden; color: var(--ink-400); font-size: 12px; text-overflow: ellipsis; }

/* Keep the expanded workspace navigation reachable on shorter screens. */
.sidebar:has(.member-sidebar-promo) { overflow-y: auto; scrollbar-width: thin; }
.sidebar:has(.member-sidebar-promo) nav, .sidebar:has(.member-sidebar-promo) .sidebar-bottom { flex-shrink: 0; }
.member-sidebar-promo { width: 100%; text-align: left; }
.member-sidebar-promo b svg { position: static; width: 14px; height: 14px; margin-right: 5px; opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 1600px) {
  .pricing-card { padding: 30px 30px 0; }
  .plan-current { margin-right: -30px; margin-left: -30px; }
  .pricing-grid { gap: 24px; }
  .member-summary { padding: 24px 30px; }
  .member-usage { gap: 42px; }
}
@media (max-width: 1250px) {
  .member-summary { gap: 20px; padding: 20px; }
  .member-identity { min-width: 215px; }
  .member-usage { gap: 18px; }
  .pricing-card { padding: 24px 20px 0; }
  .plan-current { margin-right: -20px; margin-left: -20px; }
  .plan-price strong { font-size: 34px; }
  .pricing-grid { gap: 14px; }
  .custom-promo { padding: 18px 20px; }
}
@media (max-width: 1050px) {
  .member-summary { flex-wrap: wrap; gap: 18px; }
  .member-identity { flex: 1; min-width: 220px; }
  .member-usage { order: 3; flex-basis: 100%; gap: 28px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
  .member-summary > .text-link, .member-summary > .btn { margin-left: auto; }
  .membership-hero h2 { font-size: 28px; }
  .pricing-card { padding: 24px 18px 0; }
  .plan-current { margin-right: -18px; margin-left: -18px; }
  .plan-price strong { font-size: 31px; }
  .popular-ribbon { padding: 4px 10px; font-size: 11.5px; }
  .custom-promo { flex-wrap: wrap; }
  .custom-promo > div:nth-child(2) { flex: 1; min-width: 180px; }
  .custom-promo > .btn { margin-left: 64px; }
}
@media (max-width: 760px) {
  .member-summary { gap: 14px; margin-bottom: 14px; padding: 16px; border-radius: 14px; }
  .member-identity { min-width: 0; gap: 11px; }
  .member-identity h3 { font-size: 15px; }
  .member-identity p > span:last-child { flex-basis: 100%; }
  .account-letter { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
  .member-usage { gap: 14px; padding-top: 14px; }
  .member-usage strong { font-size: 20px; }
  .membership-hero { padding: 32px 18px 34px; border-radius: 16px; }
  .membership-hero h2 { margin-top: 14px; font-size: 24px; line-height: 1.55; }
  .membership-hero h2 span { display: block; }
  .membership-hero > p { font-size: 13px; }
  .billing-switch { margin-top: 20px; }
  .billing-switch button { min-height: 36px; padding: 0 13px; font-size: 13px; }
  .hero-orbit.one { left: -250px; }
  .hero-orbit.two { right: -280px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 26px; }
  .pricing-card { padding: 24px 22px 0; }
  .plan-current { margin-right: -22px; margin-left: -22px; }
  .plan-description { min-height: 0; }
  .plan-price strong { font-size: 40px; }
  .plan-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .pricing-footnote { justify-content: flex-start; margin: 0 2px 20px; }
  .custom-promo { gap: 12px; margin-bottom: 24px; padding: 16px; }
  .custom-promo-icon { width: 42px; height: 42px; border-radius: 12px; }
  .custom-promo > div:nth-child(2) { min-width: 190px; }
  .custom-promo > .btn { margin-left: 54px; }
  .faq-grid { grid-template-columns: 1fr; gap: 10px; }
  .faq-grid details { padding: 0 16px; }
  .account-profile .account-letter { width: 54px; height: 54px; font-size: 22px; }
  .checkout-name { font-size: 18px; }
  .checkout-lines { margin: 18px 0; padding: 14px; }
  .checkout-total strong { font-size: 24px; }
  .wechat-pay, .wechat-pay .platform-symbol, .alipay-mark { width: 27px; height: 27px; }
  .order-filters { gap: 20px; padding: 0 16px; }
  .order-panel .panel-head { gap: 10px; }
  .membership-lockbar { flex-wrap: wrap; gap: 9px; margin: 0 14px 14px; padding: 10px 12px; }
  .membership-lockbar > span, .membership-lockbar > div { flex: 1; min-width: 180px; }
  .watchlist-upgrade { gap: 8px; margin-bottom: 14px; padding: 11px 14px; }
  .member-top-link { width: 32px; min-width: 32px; padding: 0; gap: 0; font-size: 0; }
  .member-top-link span { display: none; }
  .member-top-link svg { width: 15px; height: 15px; }
  .auth-top-button { max-width: 96px; padding: 0 10px; font-size: 12px; }
  .auth-top-button span { max-width: 54px; }
}
@media (max-width: 360px) {
  .member-summary { padding: 14px; }
  .member-usage { gap: 10px; }
  .member-usage strong { font-size: 18px; }
  .pricing-card { padding-right: 18px; padding-left: 18px; }
  .plan-current { margin-right: -18px; margin-left: -18px; }
  .plan-features { gap: 14px 10px; }
  .custom-promo > .btn { width: 100%; margin-left: 0; }
}
