/* Dedicated membership page (Views/Membership/Detail.cshtml): extras on top of membership-page.css (mpg-*) and membership-cards.css (pc-*) */
.mpd-plan .pc-list { max-width: 1180px; }
.mpd-plan .pc-name, .mpd-plan .pc-rich { overflow-wrap: anywhere; }
.mpd-plan .pc-rich img, .mpd-plan .pc-rich table { max-width: 100%; }

/* ---------- plan card: full colour by default (the shared card only has 10% tints on white, which read as faded) ---------- */
.mpd-plan .pc { opacity: 1; filter: none; --kt: color-mix(in srgb, var(--k1) 16%, transparent); border-color: color-mix(in srgb, var(--k1) 30%, var(--pc-line)); box-shadow: 0 1px 2px rgba(15, 60, 100, .08), 0 30px 54px -30px color-mix(in srgb, var(--k1) 70%, transparent); }
.mpd-plan .pc-main { background: linear-gradient(165deg, color-mix(in srgb, var(--k1) 20%, transparent), color-mix(in srgb, var(--k2) 6%, transparent) 70%); }
.mpd-plan .pc-main::before { opacity: 1; }
.mpd-plan .pc-kind { background: linear-gradient(135deg, var(--k1), var(--k2)); color: #fff; }
.mpd-plan .pc-sale { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; box-shadow: 0 8px 16px -10px #ef4444; }
.mpd-plan .pc-name { color: var(--pc-ink); }
.mpd-plan .pc-tag { color: var(--pc-body); }
.mpd-plan .pc-price b { color: var(--pc-ink); }
.mpd-plan .pc .membership-duration-pill { opacity: 1; color: var(--pc-ink); border-color: color-mix(in srgb, var(--k1) 40%, var(--pc-line)); }
.mpd-plan .pc .membership-duration-pill.active { background: linear-gradient(135deg, var(--k1), var(--k2)); border-color: transparent; color: #fff; }
.mpd-plan .pc .buy-now-btn { background: linear-gradient(135deg, var(--k1), var(--k2)); color: #fff; opacity: 1; }
.mpd-plan .pc .buy-now-btn:hover { background: linear-gradient(135deg, var(--k1), var(--k2)); color: #fff; }
.mpd-plan .pc-stats b { background: linear-gradient(100deg, var(--k1), var(--k2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mpd-plan .pc-stats li { background: color-mix(in srgb, var(--k1) 8%, var(--pc-card)); }
[data-bs-theme="dark"] .mpd-plan .pc { --kt: color-mix(in srgb, var(--k1) 26%, transparent); box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 30px 54px -30px color-mix(in srgb, var(--k1) 55%, #000); }
[data-bs-theme="dark"] .mpd-plan .pc-main { background: linear-gradient(165deg, color-mix(in srgb, var(--k1) 30%, transparent), color-mix(in srgb, var(--k2) 8%, transparent) 70%); }
[data-bs-theme="dark"] .mpd-plan .pc .membership-duration-pill { color: #eef7ff; background: rgba(255, 255, 255, .06); }
[data-bs-theme="dark"] .mpd-plan .pc .membership-duration-pill.active { background: linear-gradient(135deg, var(--k1), var(--k2)); color: #fff; }
[data-bs-theme="dark"] .mpd-plan .pc-stats li { background: color-mix(in srgb, var(--k1) 14%, transparent); }

/* ---------- hero (always dark, like the other mpg heroes) ---------- */
.mpd-hero { padding: clamp(28px, 4vw, 52px) 0 clamp(34px, 4.5vw, 56px); }
.mpd-hero .mpg-hero__bg::after { content: ""; position: absolute; inset: -20%; background: conic-gradient(from 0deg at 70% 40%, transparent, rgba(34, 211, 238, .10), transparent 30%, rgba(99, 102, 241, .12), transparent 60%); animation: mpd-spin 40s linear infinite; }
@keyframes mpd-spin { to { transform: rotate(360deg); } }
.mpd-h { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 992px) { .mpd-h { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 44px; } }
.mpd-h__main { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; }
.mpd-hero .mpd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 16px; font-size: .8125rem; font-weight: 600; color: #b9c8e6; }
.mpd-hero .mpd-crumb a { color: #e3ecff; text-decoration: none; }
.mpd-hero .mpd-crumb a:hover { color: #fff; text-decoration: underline; }
.mpd-hero .mpd-crumb span { color: #fff; overflow-wrap: anywhere; }
.mpd-hero .mpd-crumb i { font-size: .65rem; opacity: .7; }
.mpd-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; margin-bottom: 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .09); color: #e9f1ff; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mpd-chip i { color: #22d3ee; font-size: .95rem; }
.mpg--sp .mpd-chip i { color: #c4b5fd; }
.mpd-hero h1 { max-width: none; margin: 0 0 12px; font-size: clamp(2.1rem, 5vw, 3.6rem); overflow-wrap: anywhere; text-wrap: balance; }
.mpd-hero .mpg-lede { max-width: 60ch; margin: 0 0 22px; }
.mpd-tiles { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); max-width: 640px; }
.mpd-tiles li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .2s, border-color .2s; }
.mpd-tiles li:hover { transform: translateY(-2px); border-color: rgba(103, 232, 249, .55); }
.mpd-tiles b { font-size: 1.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.mpd-tiles span { font-size: .78rem; font-weight: 600; color: #b9c8e6; }
.mpd-out { width: 100%; max-width: 640px; margin: 0 0 24px; padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 14px; background: rgba(255, 255, 255, .04); }
.mpd-out__h { margin: 0 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8fd9ee; }
.mpd-out ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .mpd-out ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mpd-out li { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; line-height: 1.4; color: #e3ecff; }
.mpd-out li i { flex: none; margin-top: 1px; color: #22d3ee; }
.mpg--sp .mpd-out li i { color: #c4b5fd; }
.mpd-hero .mpg-cta { justify-content: flex-start; }
.mpd-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; font-size: .8125rem; font-weight: 600; color: #b9c8e6; }
.mpd-trust span { display: inline-flex; align-items: center; gap: 7px; }
.mpd-trust i { color: #4ade80; }

.mpd-h__side { display: grid; gap: 18px; min-width: 0; }
.mpd-glass { position: relative; padding: 22px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 30px 60px -30px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: mpd-float 6s ease-in-out infinite; }
@keyframes mpd-float { 50% { transform: translateY(-8px); } }
.mpd-glass__k { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8fd9ee; }
.mpd-glass__p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 6px 0 10px; color: #fff; }
.mpd-glass__p b { font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; font-weight: 800; font-variant-numeric: tabular-nums; }
.mpd-glass__p small { font-size: .9rem; color: #c9d7f2; }
.mpd-glass__s { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 12px; border-radius: 12px; background: rgba(74, 222, 128, .14); color: #86efac; font-size: .8125rem; font-weight: 700; }
.mpd-glass__a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: .875rem; font-weight: 700; text-decoration: none; }
.mpd-glass__a:hover { color: #67e8f9; }
.mpd-glass__a i { transition: transform .2s; }
.mpd-glass__a:hover i { transform: translateX(4px); }
.mpd-tech p { margin: 0 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8fd9ee; }
.mpd-tech ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mpd-tech li { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6); transition: transform .2s; }
.mpd-tech li:hover { transform: translateY(-3px) rotate(-3deg); }
.mpd-tech img { width: 32px; height: 32px; object-fit: contain; }

@media (max-width: 575.98px) {
    .mpd-h__main .mpg-cta .mpg-btn { flex: 1 1 100%; }
    .mpd-glass__p b { font-size: 2.2rem; }
    .mpd-tech li { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
    .mpd-hero .mpg-hero__bg::after, .mpd-glass { animation: none; }
    .mpd-tiles li, .mpd-tech li { transition: none; }
}
