/* PMN Creator Manager - Global Membership Storefront V6.3 / Vendor Profile V7 */
.cmv6-storefront {
    position: relative;
    z-index: 20;
    padding: 84px 22px;
    background: linear-gradient(145deg, #f5f8fc, #ffffff);
    color: #061226;
    font-family: Arial, Helvetica, sans-serif;
}

.cmv6-storefront *,
.cmv6-modal * {
    box-sizing: border-box;
}

.cmv6-storefront-inner {
    width: min(1380px, 100%);
    margin: 0 auto;
}

.cmv6-storefront-head {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.cmv6-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #174a7e;
    font-size: .78rem;
    font-weight: 1000;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.cmv6-storefront-head h2 {
    margin: 0;
    color: #061226;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.cmv6-storefront-head p {
    margin: 18px auto 0;
    color: #607188;
    font-size: 1.05rem;
    line-height: 1.65;
}

.cmv6-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.cmv6-package-card {
    overflow: hidden;
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid #d9e4ef;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 65px rgba(6, 18, 38, .12);
}

.cmv6-package-media {
    position: relative;
    display: grid;
    min-height: 230px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #071b33, #174a7e);
}

.cmv6-package-image-button {
    position: relative;
    display: block;
    width: 100%;
    height: 250px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: zoom-in;
    text-align: left;
}

.cmv6-package-image-button::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 55%, rgba(2, 10, 25, .72) 100%);
    pointer-events: none;
}

.cmv6-package-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.cmv6-package-image-button:hover img,
.cmv6-package-image-button:focus img {
    transform: scale(1.025);
}

.cmv6-package-image-button:focus-visible {
    outline: 4px solid #ffcc00;
    outline-offset: -4px;
}

.cmv6-image-expand {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: #ffcc00;
    color: #061226;
    font-size: 1.05rem;
    font-weight: 1000;
    line-height: 1;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .3);
}

.cmv6-package-avatar {
    display: grid;
    width: 128px;
    height: 128px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: #ffcc00;
    color: #061226;
    font-size: 2.3rem;
    font-weight: 1000;
}

.cmv6-package-avatar-large {
    width: 180px;
    height: 180px;
    font-size: 3.25rem;
}

.cmv6-package-body {
    display: flex;
    min-height: 475px;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.cmv6-package-badge {
    align-self: flex-start;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf2fb;
    color: #174a7e;
    font-size: .75rem;
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cmv6-package-body h3,
.cmv6-details-content h3 {
    margin: 16px 0 8px;
    color: #061226;
    line-height: 1.12;
}

.cmv6-package-body h3 {
    font-size: 1.55rem;
}

.cmv6-package-price,
.cmv6-details-price {
    color: #061226;
    font-weight: 1000;
    letter-spacing: -.04em;
}

.cmv6-package-price {
    font-size: 2.8rem;
}

.cmv6-details-price {
    margin-top: 4px;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.cmv6-package-price small,
.cmv6-details-price small {
    font-size: 1.25rem;
    vertical-align: top;
}

.cmv6-package-billing {
    margin-top: 5px;
    color: #64748b;
    font-weight: 800;
}

.cmv6-package-summary {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 18px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #46596f;
    font-size: .98rem;
    line-height: 1.6;
}

.cmv6-package-actions {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
}

.cmv6-package-details,
.cmv6-package-vendor,
.cmv6-package-cta {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border: 0;
    border-radius: 999px;
    background: #ffcc00;
    color: #061226;
    font: 1000 1rem/1 Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 11px 24px rgba(255, 204, 0, .18);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.cmv6-package-details,
.cmv6-package-vendor,
.cmv6-package-cta-card {
    width: 100%;
}

.cmv6-package-cta-card {
    background: #061226;
    color: #ffffff;
    box-shadow: 0 11px 24px rgba(6, 18, 38, .18);
}

.cmv6-package-vendor {
    border: 2px solid #174a7e;
    background: #ffffff;
    color: #174a7e;
    box-shadow: none;
}

.cmv6-package-details:hover,
.cmv6-package-details:focus,
.cmv6-package-vendor:hover,
.cmv6-package-vendor:focus,
.cmv6-package-cta:hover,
.cmv6-package-cta:focus {
    transform: translateY(-1px);
    background: #ffda45;
    color: #061226;
    text-decoration: none;
    box-shadow: 0 13px 28px rgba(6, 18, 38, .18);
    outline: none;
}

.cmv6-package-cta-card:hover,
.cmv6-package-cta-card:focus {
    background: #174a7e;
    color: #ffffff;
}

.cmv6-package-vendor:hover,
.cmv6-package-vendor:focus {
    border-color: #061226;
    background: #eaf2fb;
    color: #061226;
}

.cmv6-package-details:focus-visible,
.cmv6-package-vendor:focus-visible,
.cmv6-package-cta:focus-visible,
.cmv6-modal-close:focus-visible {
    outline: 3px solid #174a7e;
    outline-offset: 3px;
}

.cmv6-secure-note {
    display: block;
    margin-top: 12px;
    color: #718096;
    text-align: center;
}

/* Membership details and full-image dialogs. */
.cmv6-modal {
    position: fixed;
    z-index: 2147483550;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 8, 20, .86);
    font-family: Arial, Helvetica, sans-serif;
    backdrop-filter: blur(7px);
}

.cmv6-modal.is-open {
    display: flex;
}

.cmv6-modal-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 30px;
    background: #ffffff;
    color: #061226;
    box-shadow: 0 42px 120px rgba(0, 0, 0, .52);
}

.cmv6-details-panel {
    display: grid;
    width: min(1180px, 96vw);
    height: min(88vh, 780px);
    max-height: min(88vh, 780px);
    grid-template-columns: minmax(320px, .95fr) minmax(430px, 1.15fr);
}

.cmv6-details-media {
    display: grid;
    min-height: 520px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #061226, #174a7e);
}

.cmv6-details-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: min(88vh, 780px);
    object-fit: contain;
}

.cmv6-vendor-media {
    padding: clamp(34px, 5vw, 72px);
    background: linear-gradient(145deg, #edf3f9, #ffffff);
}

.cmv6-vendor-media .cmv6-vendor-logo {
    width: 100%;
    height: 100%;
    max-width: 520px;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 18px 36px rgba(6, 18, 38, .12));
}

.cmv6-vendor-content {
    justify-content: flex-start;
}

.cmv6-vendor-description {
    margin-top: 18px;
    font-size: 1.05rem;
}

.cmv6-details-content {
    display: flex;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(34px, 5vw, 62px);
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.cmv6-details-content h3 {
    padding-right: 38px;
    font-size: clamp(2rem, 3.3vw, 3.7rem);
    letter-spacing: -.035em;
}

.cmv6-details-description {
    margin-top: 26px;
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.72;
}

.cmv6-details-actions {
    margin-top: 30px;
    padding-bottom: 2px;
}

.cmv6-details-actions .cmv6-package-cta {
    width: 100%;
}

.cmv6-modal-close {
    position: absolute;
    z-index: 4;
    top: 16px;
    right: 16px;
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #ffcc00;
    color: #061226;
    font: 1000 1.8rem/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

.cmv6-modal-close:hover {
    background: #ffda45;
}

.cmv6-modal-close-light {
    background: rgba(255, 255, 255, .92);
}

.cmv6-image-panel {
    display: flex;
    width: min(1380px, 96vw);
    height: min(90vh, 920px);
    align-items: center;
    justify-content: center;
    background: #061226;
}

.cmv6-image-panel > img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 24px;
    object-fit: contain;
}

.cmv6-image-caption {
    position: absolute;
    right: 24px;
    bottom: 22px;
    left: 24px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(6, 18, 38, .78);
    color: #ffffff;
    font-size: .92rem;
    font-weight: 800;
    text-align: center;
    backdrop-filter: blur(6px);
}

.cmv6-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.cmv6-modal-open {
    overflow: hidden !important;
}

.cmv6-debug {
    position: fixed;
    z-index: 2147483600;
    left: 16px;
    bottom: 16px;
    display: grid;
    max-width: 330px;
    gap: 4px;
    padding: 14px 16px;
    border: 2px solid #ffcc00;
    border-radius: 16px;
    background: #071226;
    color: #ffffff;
    font: 700 12px/1.35 Arial, Helvetica, sans-serif;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

.cmv6-debug strong {
    color: #ffcc00;
}

.cmv6-debug span {
    display: block;
}

/* Runtime Integrity V7: reliable menu-anchor positioning. */
#memberships {
    scroll-margin-top: 28px;
}

@media (max-width: 1050px) {
    .cmv6-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cmv6-details-panel {
        width: min(940px, 96vw);
        grid-template-columns: minmax(300px, .9fr) minmax(380px, 1.1fr);
    }
}

@media (max-width: 760px) {
    .cmv6-storefront {
        padding: 64px 16px;
    }

    .cmv6-package-grid {
        grid-template-columns: 1fr;
    }

    .cmv6-package-media {
        min-height: 190px;
    }

    .cmv6-package-image-button {
        height: 220px;
    }

    .cmv6-package-body {
        min-height: 455px;
    }

    .cmv6-modal {
        padding: 8px;
    }

    .cmv6-details-panel {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        max-height: none;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(220px, 38vh) minmax(0, 1fr);
        border-radius: 20px;
    }

    .cmv6-details-media {
        min-height: 0;
    }

    .cmv6-details-media img {
        max-height: none;
    }

    .cmv6-vendor-media {
        padding: 26px;
    }

    .cmv6-vendor-media .cmv6-vendor-logo {
        max-height: 30vh;
    }

    .cmv6-details-content {
        padding: 28px 22px 24px;
    }

    .cmv6-details-content h3 {
        padding-right: 36px;
        font-size: clamp(1.8rem, 9vw, 2.7rem);
    }

    .cmv6-image-panel {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        border-radius: 20px;
    }

    .cmv6-image-panel > img {
        padding: 14px;
    }

    .cmv6-image-caption {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .cmv6-debug {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cmv6-package-image-button img,
    .cmv6-package-details,
    .cmv6-package-vendor,
    .cmv6-package-cta {
        transition: none;
    }
}
