/* Local additions to the existing COMU design system. No global theme override. */
.membership-page { --membership-premium: #fae7cf; --membership-elite: #b8731e; }
.membership-page button { font-family: inherit; }
.membership-page .nav-cta { background: #54f2f2 !important; color: var(--color-text-main) !important; }
.membership-page .membership-overview { padding-top: 64px; padding-bottom: 0; }
.membership-overview .section-heading { margin-bottom: 24px; }
.membership-overview h1 { margin-bottom: 11px; }
.membership-page :where(#membership, #plans, #faq) { scroll-margin-top: 88px; }
.membership-period { display: flex; justify-content: center; margin-bottom: 32px; }
.membership-period-option { min-width: 104px; justify-content: center; }
.membership-period-option.effects-tab.active { box-shadow: none; }
.membership-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.membership-card { position: relative; display: flex; flex-direction: column; padding: 32px 24px 24px; background: var(--color-bg-alt); border-radius: var(--rounded-block); min-width: 0; }
.membership-card--premium { background: #fcf6ee; }
.membership-card--elite { background: #fef1de; }
.membership-badge { position: absolute; top: 0; right: 20px; display: flex; flex-direction: column; align-items: center; width: 68px; height: 70px; padding-top: 10px; background: #b8731e; color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 12px), 0 100%); border-radius: 0; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.membership-plan-heading { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.membership-plan-heading h2 { font-size: 24px; line-height: 32px; }
.membership-plan-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; }
.membership-plan-icon svg { width: 25px; height: 25px; }
.membership-plan-icon--starter { background: var(--color-primary); color: white; }
.membership-plan-icon--premium { background: var(--membership-premium); color: var(--color-text-main); }
.membership-plan-icon--elite { background: #161b28; color: #fcc97c; }
.membership-audience { color: var(--color-text-muted); font-size: 12px; line-height: 18px; }
.membership-price { display: flex; align-items: baseline; gap: 4px; margin-top: 30px; }
.membership-price strong { font-size: 32px; font-weight: 600; line-height: 40px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.membership-price > span { font-size: 16px; }
.membership-billing { margin-top: 4px; color: var(--color-text-muted); font-size: 12px; line-height: 18px; }
.membership-benefits { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 28px 0 32px; }
.membership-benefits li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 22px; }
.membership-benefits li > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.membership-benefits strong { font-weight: 600; }
.membership-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.membership-actions .btn { min-height: 44px; box-shadow: none; }
.membership-actions .btn-outline { background: white; border-color: var(--color-border); }
.membership-actions .btn-secondary { background: var(--color-text-main); }
.membership-included { display: flex; align-items: center; justify-content: center; min-height: 98px; margin-top: auto; color: var(--color-text-muted); font-size: 14px; }
.membership-compare-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 26px auto 0; color: var(--color-text-main); font-size: 14px; font-weight: 500; text-underline-offset: 4px; }
.membership-compare-link svg { width: 16px; height: 16px; }
.membership-all-plans { padding: 56px 0 48px; margin-top: 32px; }
.membership-all-plans h2 { text-align: center; margin-bottom: 32px; }
.membership-all-plans ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.membership-all-plans li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 22px; }
.membership-all-plans li svg { width: 22px; height: 22px; stroke-width: 1.5; flex-shrink: 0; }
.membership-feature-note { color: var(--color-text-muted); font-size: 12px; line-height: 18px; margin-top: 28px; text-align: center; }
.membership-page #faq { padding-top: 56px; padding-bottom: 64px; }
.membership-page .faq-item button { gap: 20px; line-height: 24px; }
.membership-page .faq-item button svg { flex-shrink: 0; }
.membership-page .faq-answer p { font-size: 14px; line-height: 22px; margin-bottom: 8px; }
.membership-page .faq-answer[hidden] { display: none; }
.membership-page .faq-answer a, .membership-support a { color: inherit; text-underline-offset: 3px; }
.membership-support { margin-top: 32px; color: var(--color-text-muted); text-align: center; font-size: 14px; line-height: 22px; }
.membership-sr-only, .membership-skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.membership-skip:focus { display: block; position: fixed; left: 16px; top: 8px; z-index: 2000; padding: 12px 20px; background: white; color: var(--color-text-main); }
.membership-page :is(button, a, [tabindex]):focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.membership-cart { position: fixed; inset: 0 0 0 auto; width: min(100%, 460px); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 28px; border: 0; background: white; color: var(--color-text-main); }
.membership-cart::backdrop { background: rgb(0 0 0 / .38); }
.membership-cart-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.membership-cart-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--color-bg-alt); cursor: pointer; }
.membership-cart-close svg { width: 20px; height: 20px; }
.membership-cart-item { display: flex; align-items: flex-start; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--color-border); }
.membership-cart-item > div { flex: 1; }
.membership-cart-item p { font-size: 14px; color: var(--color-text-muted); margin-top: 5px; }
.membership-cart-item .membership-cart-item-price { color: var(--color-text-main); font-weight: 600; }
.membership-cart-remove { margin-top: 14px; font-size: 12px; color: var(--color-text-muted); text-decoration: underline; border: 0; background: transparent; cursor: pointer; }
.membership-cart-total { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; font-size: 16px; }
.membership-cart-total strong { font-size: 24px; font-weight: 600; }
.membership-cart-note, .membership-cart-status { color: var(--color-text-muted); font-size: 12px; line-height: 18px; margin-top: 16px; }
.membership-cart-content > .btn { width: 100%; margin-top: 24px; box-shadow: none; }
.membership-cart-empty { padding: 36px 0; color: var(--color-text-muted); }
.membership-page:has(.membership-cart[open]) { overflow: hidden; }
@media (max-width: 1000px) and (min-width: 701px) {
  .membership-grid { gap: 16px; }
  .membership-card { padding: 28px 18px 20px; }
  .membership-plan-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .membership-all-plans ul { column-gap: 24px; }
}
@media (max-width: 700px) {
  .membership-page .container { width: calc(100% - 32px); }
  .membership-page .membership-overview { padding-top: 40px; }
  .membership-overview h1 { font-size: 28px; line-height: 36px; }
  .membership-period { margin-bottom: 28px; }
  .membership-grid { grid-template-columns: 1fr; gap: 24px; }
  .membership-card { padding: 28px 24px 24px; border-radius: 16px; }
  .membership-badge { right: 16px; width: 58px; height: 62px; padding-top: 7px; font-size: 11px; line-height: 17px; }
  .membership-plan-heading { min-height: 48px; }
  .membership-price { margin-top: 24px; }
  .membership-benefits { margin: 24px 0; gap: 12px; }
  .membership-included { min-height: 24px; margin-top: 0; justify-content: flex-start; }
  .membership-all-plans { padding: 40px 0; margin-top: 0; }
  .membership-all-plans ul { grid-template-columns: 1fr; gap: 24px; }
  .membership-all-plans h2 { margin-bottom: 28px; }
  .membership-feature-note { text-align: left; }
  .membership-page #faq { padding: 40px 0; }
  .membership-support { text-align: left; overflow-wrap: anywhere; }
  .membership-cart { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .membership-page { scroll-behavior: auto; }
  .membership-page *, .membership-page *::before, .membership-page *::after { transition: none !important; }
}
@media (max-width: 360px) {
  .membership-badge { right: 12px; width: 48px; height: 58px; font-size: 10px; line-height: 16px; }
}



