/* Membership is a dedicated composition; it does not inherit legacy pricing
   card or comparison-table geometry from the workspace compatibility styles. */
html:root .page.membership-page {
  --vip-remote-wash: light-dark(#edf4fb, #223147);
  --vip-ai-wash: light-dark(#f2effa, #29283d);
  --vip-gold: light-dark(#8d6a35, #dbc08d);
  --vip-outline: color-mix(in srgb, var(--v3-line) 72%, var(--v3-surface));
  max-width: 1480px;
}
.vip-membership-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 28px; align-items: start; }
.vip-benefits { min-width: 0; }
.vip-benefits-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; min-height: 40px; }
.vip-benefits-heading h2 { margin: 0; color: var(--v3-text); font-size: 25px; font-weight: 650; letter-spacing: -.025em; }
.vip-wordmark { display: inline-flex; align-items: center; gap: 7px; color: var(--vip-gold); font-size: 15px; font-weight: 750; letter-spacing: .07em; }
.vip-wordmark svg { width: 25px; height: 25px; }
.vip-benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vip-feature { min-width: 0; padding: 24px; border: 1px solid var(--vip-outline); border-radius: 20px; box-shadow: var(--v3-card-shadow); color: var(--v3-text); }
.vip-feature > header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.vip-feature h3 { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 650; }
.vip-feature > header svg { width: 24px; height: 24px; flex: none; }
.vip-remote-feature { background: linear-gradient(135deg, var(--vip-remote-wash), var(--v3-surface) 92%); }
.vip-remote-feature > header svg, .vip-device-benefit > svg { color: var(--v3-blue); }
.vip-ai-feature { background: linear-gradient(135deg, var(--vip-ai-wash), var(--v3-surface) 92%); }
.vip-ai-feature > header svg { color: var(--v3-brand); }
.vip-main-metric { display: flex; align-items: center; gap: 18px; margin: 8px 0 24px; }
.vip-main-metric > strong { color: var(--v3-text); font-size: 58px; line-height: 1; font-weight: 700; letter-spacing: -.05em; }
.vip-main-metric > div { display: grid; gap: 5px; }
.vip-main-metric span { font-size: 16px; font-weight: 600; }
.vip-main-metric small, .vip-device-benefit small, .vip-feature-pair small { color: var(--v3-muted); font-size: 13px; line-height: 1.5; }
.vip-device-benefit { display: flex; align-items: center; gap: 11px; }
.vip-device-benefit > svg { width: 27px; height: 27px; flex: none; }
.vip-device-benefit > div { display: grid; gap: 4px; }
.vip-device-benefit strong { font-size: 15px; line-height: 1.5; font-weight: 650; }
.vip-feature-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--vip-outline); }
.vip-feature-pair > div { display: grid; align-content: start; gap: 4px; }
.vip-feature-pair strong { font-size: 15px; line-height: 1.45; }
.vip-feature-pair span { color: var(--v3-muted); font-size: 13px; line-height: 1.5; }
.vip-quota-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 8px 0 0; }
.vip-quota-metrics > div { display: grid; gap: 5px; }
.vip-quota-metrics strong { font-size: clamp(27px, 2.3vw, 38px); line-height: 1.15; letter-spacing: -.04em; font-weight: 700; }
.vip-quota-metrics span { color: var(--v3-muted); font-size: 14px; }
.vip-quota-cycle { margin: 12px 0 0; color: var(--v3-text); font-size: 13px; }
.vip-free-quota { margin: 4px 0 20px; color: var(--v3-muted); font-size: 13px; line-height: 1.55; }
.vip-capacity-list { display: grid; gap: 12px; margin: 0; padding-top: 18px; border-top: 1px solid var(--vip-outline); }
.vip-capacity-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vip-capacity-list dt { color: var(--v3-muted); font-size: 14px; }
.vip-capacity-list dd { display: flex; align-items: baseline; gap: 10px; margin: 0; white-space: nowrap; }
.vip-capacity-list strong { font-size: 15px; }
.vip-capacity-list small { color: var(--v3-muted); font-size: 12px; }
.vip-tools-feature { grid-column: 1 / -1; background: var(--v3-surface); }
.vip-tools-feature > header { margin-bottom: 22px; }
.vip-tools-feature > header svg { color: var(--vip-gold); }
.vip-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vip-tool-grid > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-content: start; align-items: center; gap: 3px 10px; }
.vip-tool-grid svg { grid-row: 1 / span 2; align-self: start; width: 27px; height: 27px; color: var(--v3-blue); }
.vip-tool-grid strong { font-size: 15px; line-height: 1.5; font-weight: 600; }
.vip-tool-grid small { grid-column: 2; color: var(--v3-muted); font-size: 13px; }
.vip-included { display: flex; align-items: flex-start; gap: 8px; margin: 18px 3px 0; color: var(--v3-muted); font-size: 14px; line-height: 1.65; }
.vip-included svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--v3-green); }
.vip-checkout { min-width: 0; padding: 26px; border: 1px solid var(--v3-line); border-radius: 22px; background: var(--v3-surface); box-shadow: var(--v3-card-shadow); }
.vip-checkout-heading { margin-bottom: 20px; }
.vip-checkout-heading h2 { margin: 0; color: var(--v3-text); font-size: 22px; font-weight: 650; }
.vip-plans { display: grid; gap: 12px; }
.vip-billing-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.vip-billing-modes[hidden], .vip-renewal-notice[hidden], .membership-subscriptions-panel[hidden] { display: none; }
.vip-billing-modes button { min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--v3-line); border-radius: 10px; background: var(--v3-surface); color: var(--v3-text); font: inherit; font-size: 14px; line-height: 1.5; white-space: normal; cursor: pointer; }
.vip-billing-modes button:hover:not(:disabled) { background: var(--v3-hover); border-color: color-mix(in srgb, var(--v3-brand) 28%, var(--v3-line)); }
.vip-billing-modes button[aria-pressed=true] { background: var(--v3-soft); border-color: var(--v3-brand); color: var(--v3-text); font-weight: 650; }
.vip-billing-modes button:active:not(:disabled) { background: color-mix(in srgb, var(--v3-soft) 75%, var(--v3-surface)); }
.vip-billing-modes button:disabled { opacity: .55; cursor: not-allowed; }
.vip-billing-modes button:focus-visible, .membership-subscriptions-panel button:focus-visible { outline: 2px solid var(--v3-brand); outline-offset: 3px; }
.vip-renewal-notice { margin: 0 0 14px; color: var(--v3-muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.membership-subscriptions-panel { margin-top: 28px; color: var(--v3-text); }
.membership-subscriptions-panel > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.membership-subscriptions-panel h2 { margin: 0; font-size: 21px; line-height: 1.5; }
.membership-subscriptions-panel button { min-height: 42px; max-width: 100%; padding: 9px 13px; border: 1px solid var(--v3-line); border-radius: 10px; background: var(--v3-surface); color: var(--v3-blue); font: inherit; font-size: 14px; line-height: 1.5; white-space: normal; cursor: pointer; }
.membership-subscriptions-panel button:hover:not(:disabled) { background: var(--v3-hover); border-color: color-mix(in srgb, var(--v3-blue) 30%, var(--v3-line)); }
.membership-subscriptions-panel button:active:not(:disabled) { background: color-mix(in srgb, var(--v3-hover) 65%, var(--v3-surface)); }
.membership-subscriptions-panel button:disabled { opacity: .55; cursor: not-allowed; }
.membership-subscription-list { display: grid; gap: 12px; max-height: 520px; overflow-y: auto; padding: 3px; }
.membership-subscription-list > p { margin: 0; color: var(--v3-muted); font-size: 14px; line-height: 1.65; }
.membership-subscription-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; min-width: 0; padding: 17px; border: 1px solid var(--v3-line); border-radius: 14px; background: var(--v3-surface); }
.membership-subscription-item > div { min-width: 0; flex: 1 1 230px; overflow-wrap: anywhere; }
.membership-subscription-item strong { margin-right: 12px; font-size: 16px; line-height: 1.6; }
.membership-subscription-item p { margin: 6px 0 0; color: var(--v3-muted); font-size: 14px; line-height: 1.6; }
.membership-subscription-error { margin: 0 0 14px; color: var(--v3-text); font-size: 14px; line-height: 1.65; }
.vip-plan { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; width: 100%; min-height: 112px; padding: 17px 15px; border: 1px solid var(--v3-line); border-radius: 15px; background: var(--v3-surface); color: var(--v3-text); text-align: left; font: inherit; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.vip-plan:hover:not(:disabled) { background: color-mix(in srgb, var(--v3-soft) 24%, var(--v3-surface)); border-color: color-mix(in srgb, var(--v3-brand) 25%, var(--v3-line)); }
.vip-plan[aria-pressed=true] { background: color-mix(in srgb, var(--v3-soft) 62%, var(--v3-surface)); border-color: color-mix(in srgb, var(--v3-brand) 38%, var(--v3-line)); }
.vip-plan:active:not(:disabled) { background: var(--v3-soft); }
.vip-plan:disabled { opacity: .5; cursor: not-allowed; }
.vip-plan-check { display: grid; place-items: center; width: 19px; height: 19px; border: 1.5px solid color-mix(in srgb, var(--v3-muted) 35%, var(--v3-line)); border-radius: 50%; }
.vip-plan-check svg { width: 12px; height: 12px; visibility: hidden; }
.vip-plan[aria-pressed=true] .vip-plan-check { border-color: var(--v3-brand); background: var(--v3-brand); color: var(--v3-on-brand); }
.vip-plan[aria-pressed=true] .vip-plan-check svg { visibility: visible; }
.vip-plan-copy { display: grid; gap: 5px; min-width: 0; }
.vip-plan-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; font-weight: 650; }
.vip-plan-name em { padding: 2px 6px; border-radius: 5px; background: var(--v3-vip-surface); color: var(--vip-gold); font-size: 11px; font-weight: 650; font-style: normal; }
.vip-plan-copy small { color: var(--v3-muted); font-size: 12px; line-height: 1.5; }
.vip-plan-price { display: grid; justify-items: end; gap: 4px; min-width: 0; }
.vip-plan-price strong { font-size: 29px; line-height: 1.2; letter-spacing: -.045em; font-weight: 700; white-space: nowrap; }
.vip-plan-price i { margin-right: 2px; font-size: 16px; font-weight: 500; font-style: normal; }
.vip-plan-price small { color: var(--v3-muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.vip-plan-price del { color: var(--v3-muted); font-size: 12px; }
.vip-plan-price .vip-launch-price-label { color: var(--v3-brand); font-size: 14px; font-weight: 600; line-height: 1.45; }
.vip-plan-price .vip-standard-price { max-width: 100%; color: var(--v3-muted); font-size: 14px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.vip-plan-price .vip-standard-price del { font: inherit; }
.vip-payment-heading { margin: 24px 0 12px; color: var(--v3-text); font-size: 14px; font-weight: 650; }
.vip-checkout .payment-methods { grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr)); gap: 10px; margin: 0; }
.vip-checkout .payment-methods .payment-method { min-height: 80px; padding: 12px 10px; gap: 8px; border-radius: 12px; }
.vip-checkout .payment-method.selected { border-color: color-mix(in srgb, var(--v3-brand) 38%, var(--v3-line)); background: color-mix(in srgb, var(--v3-soft) 50%, var(--v3-surface)); box-shadow: none; }
.vip-checkout .payment-method-check { flex-basis: 14px; width: 14px; height: 14px; }
.vip-checkout .payment-method.selected .payment-method-check { border: 4px solid var(--v3-brand); }
.vip-checkout .payment-method-brand { height: 26px; }
.vip-checkout .payment-method-brand.wechat { width: 130px; }
.vip-checkout .payment-method-brand.wechat img { width: 202px; height: 26px; }
.vip-checkout .alipay-brand-mark { flex-basis: 31px; width: 31px; height: 26px; }
.vip-checkout .alipay-brand-mark img { width: 115.5px; height: 26px; }
.vip-checkout .payment-method-brand.alipay strong { font-size: 15px; }
.vip-checkout .payment-method-copy { gap: 9px; }
.vip-checkout-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 22px 0 14px; padding-top: 20px; border-top: 1px solid var(--v3-line); }
.vip-checkout-total > span { color: var(--v3-muted); font-size: 14px; }
.vip-checkout-total > strong { color: var(--v3-text); font-size: 20px; font-weight: 700; }
html:root .vip-checkout #checkoutButton { display: flex; width: 100%; min-height: 48px; padding: 11px 18px; border: 0; border-radius: 12px; background: var(--v3-brand); color: var(--v3-on-brand); font-size: 16px; font-weight: 650; line-height: 1.5; }
html:root .vip-checkout #checkoutButton:hover:not([disabled]) { background: var(--v3-brand-hover); }
html:root .vip-checkout #checkoutButton:active:not([disabled]) { background: color-mix(in srgb, var(--v3-brand) 88%, var(--v3-text)); }
html:root .vip-checkout #checkoutButton[disabled] { opacity: .55; cursor: not-allowed; }
.vip-checkout-help { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; margin-top: 18px; }
.vip-purchase-note summary { display: flex; align-items: center; gap: 7px; min-height: 42px; border-radius: 9px; color: var(--v3-muted); font-size: 14px; cursor: pointer; list-style: none; }
.vip-purchase-note summary::-webkit-details-marker { display: none; }
.vip-purchase-note summary > svg { width: 19px; height: 19px; flex: none; }
.vip-purchase-note .vip-disclosure-chevron { width: 13px; height: 13px; transition: transform .16s ease; }
.vip-purchase-note[open] .vip-disclosure-chevron { transform: rotate(90deg); }
.vip-purchase-note p { margin: 6px 0 0; color: var(--v3-muted); font-size: 13px; line-height: 1.7; }
.vip-support-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--v3-blue) 15%, var(--v3-line)); border-radius: 10px; background: var(--v3-hover); color: var(--v3-blue); font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.vip-support-link svg { width: 19px; height: 19px; flex: none; }
.vip-support-link:hover { border-color: color-mix(in srgb, var(--v3-blue) 38%, var(--v3-line)); background: color-mix(in srgb, var(--v3-hover) 85%, var(--v3-surface)); }
.vip-support-link:active { background: var(--v3-surface); }
.membership-page :is(.vip-plan, .vip-support-link, .vip-purchase-note summary, #checkoutButton):focus-visible { outline: 2px solid var(--v3-brand); outline-offset: 3px; }
.membership-page :is(.vip-benefits, .vip-checkout-help, .vip-plan-check, .membership-orders-panel > header) svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.membership-page .membership-orders-panel { margin-top: 32px; }
.membership-page .membership-orders-panel > header { margin-bottom: 14px; }
.membership-page .membership-orders-panel h2 { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; line-height: 1.5; }
.membership-page .membership-orders-panel h2 svg { width: 23px; height: 23px; color: var(--v3-muted); }
.membership-page .membership-orders-tools svg { width: 18px; height: 18px; flex: none; }
.membership-page .membership-orders-tools #toggleCommerceOrders { background: var(--v3-hover); color: var(--v3-blue); }
.membership-page .membership-orders-tools #toggleCommerceOrders:hover { background: color-mix(in srgb, var(--v3-hover) 80%, var(--v3-surface)); }
.vip-plans > .empty-state { max-width: none; min-height: 190px; align-content: center; padding: 24px 16px; }
@media (max-width: 1279px) {
  .vip-membership-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vip-checkout { order: -1; width: min(620px, 100%); justify-self: center; }
}
@media (max-width: 719px), (orientation: portrait) {
  .vip-membership-layout { grid-template-columns: minmax(0, 1fr); }
  .vip-checkout { order: -1; padding: 22px 18px; border-radius: 18px; width: min(620px, 100%); justify-self: center; }
  .vip-feature { padding: 22px 20px; border-radius: 18px; }
  .vip-benefits-heading { margin-bottom: 16px; }
  .vip-benefits-heading h2 { font-size: 23px; }
  .membership-page .membership-orders-panel > header { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 599px) {
  .vip-benefit-grid { grid-template-columns: minmax(0, 1fr); }
  .vip-tools-feature { grid-column: auto; }
  .vip-tool-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .vip-main-metric > strong { font-size: 52px; }
  .vip-quota-metrics strong { font-size: 36px; }
  .vip-plan { gap: 10px; padding: 16px 12px; grid-template-columns: 19px minmax(0, 1fr) auto; }
  .vip-plan-price strong { font-size: 27px; }
  .vip-plan-name em { display: none; }
  .vip-plan-international { grid-template-columns: 19px minmax(0, 1fr); }
  .vip-plan-international .vip-plan-price { grid-column: 2; justify-items: start; }
  .vip-plan-international .vip-plan-price strong { white-space: normal; overflow-wrap: anywhere; }
  .membership-subscription-item { padding: 15px; }
  .membership-page .membership-orders-tools { width: 100%; }
  .membership-page .membership-orders-tools button { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .vip-plan, .vip-purchase-note .vip-disclosure-chevron { transition: none; }
}
