
/* MAGIC 1XTRA SUBSCRIPTION DESIGN V3 */
/* Preserve all original package colours and functionality. */

#page:has(> .plan-grid) > .page-title,
#page .mx-commercial-v2 > .page-title {
    padding:24px 20px!important;
    margin:0 0 24px!important;
    border-radius:20px!important;
}

#page:has(> .plan-grid) > .page-title h1,
#page .mx-commercial-v2 > .page-title h1 {
    font-size:clamp(26px,3.5vw,40px)!important;
    font-weight:800!important;
    letter-spacing:-.8px;
    line-height:1.2;
}

#page > .plan-grid,
#page .mx-commercial-cards {
    display:grid!important;
    grid-template-columns:repeat(
        auto-fit,minmax(min(100%,240px),1fr)
    )!important;
    gap:18px!important;
    align-items:stretch;
    margin:20px 0 24px!important;
}

#page > .plan-grid > .plan-card,
#page .mx-commercial-card {
    box-sizing:border-box;
    display:flex!important;
    flex-direction:column;
    min-width:0!important;
    padding:24px!important;
    margin:0!important;
    border-radius:20px!important;
    box-shadow:0 10px 28px rgba(0,0,0,.12);
}

#page > .plan-grid > .plan-card h3,
#page .mx-commercial-card h2 {
    font-size:22px!important;
    font-weight:750!important;
    line-height:1.3;
    overflow-wrap:anywhere;
}

#page > .plan-grid > .plan-card h2,
#page .mx-commercial-price {
    font-size:30px!important;
    font-weight:800!important;
    letter-spacing:-.6px;
    overflow-wrap:anywhere;
}

#page > .plan-grid > .plan-card p,
#page .mx-commercial-card p {
    font-size:14px!important;
    line-height:1.65;
    overflow-wrap:anywhere;
}

#page > .plan-grid .plan-buy,
#page .mx-commercial-card .btn.primary {
    box-sizing:border-box;
    width:100%!important;
    min-height:48px;
    padding:12px 16px!important;
    border-radius:12px!important;
    font-size:14px;
    font-weight:750!important;
    line-height:1.4;
    white-space:normal;
}

#page > .subscription-active,
#page > .pesapal-note,
#page .mx-commercial-existing {
    box-sizing:border-box;
    padding:22px!important;
    margin:18px 0!important;
    border-radius:18px!important;
}

#page > .pesapal-note p {
    line-height:1.65;
}

#page .mx-commercial-links {
    flex-wrap:wrap;
    gap:10px;
}

@media(max-width:767px) {
    #page:has(> .plan-grid) > .page-title,
    #page .mx-commercial-v2 > .page-title {
        padding:20px 16px!important;
        margin-bottom:16px!important;
    }

    #page > .plan-grid,
    #page .mx-commercial-cards {
        grid-template-columns:minmax(0,1fr)!important;
        gap:14px!important;
    }

    #page > .plan-grid > .plan-card,
    #page .mx-commercial-card {
        padding:20px!important;
        border-radius:17px!important;
    }
}


/* MX COMMERCIAL PREMIUM DESIGN V4 */
/* Scoped to the existing commercial plans page. */

#page .mx-commercial-v2 {
    --mx-plan-gold:#ffdf00;
    --mx-plan-black:#0b0b0b;
    max-width:1240px;
    margin-inline:auto;
    min-width:0;
}

/* Cinematic membership header */

#page .mx-commercial-v2 > .page-title {
    position:relative;
    isolation:isolate;
    display:flex;
    align-items:center;
    min-height:235px!important;
    box-sizing:border-box;
    overflow:hidden;
    padding:40px!important;
    border:1px solid #3d3820!important;
    border-radius:26px!important;
    background:
        radial-gradient(ellipse at 90% 20%,
            #665700 0%, transparent 48%),
        linear-gradient(120deg,#090909 35%,#24200c)!important;
    color:white!important;
}

#page .mx-commercial-v2 > .page-title::after {
    content:"";
    position:absolute;
    z-index:-1;
    width:42%;
    height:100%;
    right:0;
    top:0;
    opacity:.85;
    pointer-events:none;
    background-position:center;
    background-size:contain;
    background-repeat:no-repeat;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260'%3E%3Cg fill='none' stroke='%23ffdf00'%3E%3Ccircle cx='240' cy='130' r='115' opacity='.12' stroke-width='20'/%3E%3Ccircle cx='240' cy='130' r='85' opacity='.18'/%3E%3Crect x='112' y='49' width='210' height='143' rx='12' transform='rotate(-8 217 120)' stroke-width='3'/%3E%3Cpath d='M178 213h80M218 191v22' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='219' cy='120' r='31' opacity='.8'/%3E%3C/g%3E%3Cpath d='M210 104v32l25-16z' fill='%23ffdf00'/%3E%3C/svg%3E");
}

#page .mx-commercial-v2 > .page-title h1 {
    color:white!important;
    font-size:clamp(30px,4.3vw,52px)!important;
    line-height:1.08;
    font-weight:850!important;
    max-width:620px;
    letter-spacing:-1.5px;
}

#page .mx-commercial-v2 > .page-title p {
    color:#e9e9e9!important;
    font-size:16px!important;
    line-height:1.6;
    max-width:380px;
}

/* Actual commercial package catalogue */

#page .mx-commercial-v2 .mx-commercial-cards {
    display:grid!important;
    grid-template-columns:repeat(
        auto-fit,minmax(min(100%,265px),1fr)
    )!important;
    gap:20px!important;
    align-items:stretch;
    margin:24px 0 32px!important;
}

#page .mx-commercial-v2 .mx-commercial-card {
    position:relative;
    isolation:isolate;
    box-sizing:border-box;
    display:flex!important;
    flex-direction:column;
    padding:0!important;
    gap:0!important;
    min-width:0;
    overflow:hidden;
    border-radius:22px!important;
    border:1px solid #383838!important;
    background:#151515!important;
    color:#fff!important;
    box-shadow:0 12px 28px rgba(0,0,0,.14);
}

#page .mx-commercial-v2 .mx-commercial-card::before {
    content:"";
    display:block;
    width:100%;
    height:132px;
    flex-shrink:0;
    background-color:#25220e;
    background-position:center;
    background-size:cover;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 140'%3E%3Crect width='360' height='140' fill='%23131313'/%3E%3Cg fill='none' stroke='%23ffdf00'%3E%3Ccircle cx='290' cy='20' r='110' opacity='.15' stroke-width='20'/%3E%3Ccircle cx='180' cy='70' r='44' opacity='.42'/%3E%3Crect x='135' y='34' width='90' height='65' rx='8' stroke-width='2'/%3E%3Cpath d='M159 112h42M180 99v13' stroke-width='3'/%3E%3C/g%3E%3Cpath d='M172 53v28l23-14z' fill='%23ffdf00'/%3E%3C/svg%3E");
}

/* Different decorative treatments without assigning
   invented package names, prices or benefits. */

#page .mx-commercial-v2 .mx-commercial-card:nth-child(3n+2)::before {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 140'%3E%3Crect width='360' height='140' fill='%23241e00'/%3E%3Cg fill='none' stroke='%23ffdf00'%3E%3Ccircle cx='180' cy='70' r='60' opacity='.2'/%3E%3Ccircle cx='180' cy='70' r='40' stroke-width='3'/%3E%3Ccircle cx='180' cy='70' r='20'/%3E%3Ccircle cx='180' cy='70' r='5' fill='%23ffdf00'/%3E%3Cpath d='M88 30v80M272 30v80M77 52v36M283 52v36' stroke-width='4' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}

#page .mx-commercial-v2 .mx-commercial-card:nth-child(3n)::before {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 140'%3E%3Crect width='360' height='140' fill='%23171717'/%3E%3Cg fill='none' stroke='%23ffdf00' stroke-width='3'%3E%3Cpath d='M120 55q0-38 60-38t60 38v32M120 55v32'/%3E%3Crect x='108' y='60' width='24' height='48' rx='8'/%3E%3Crect x='228' y='60' width='24' height='48' rx='8'/%3E%3Cpath d='M149 65v20m12-30v40m13-48v56m13-45v34m13-38v42m12-30v18' opacity='.75'/%3E%3C/g%3E%3C/svg%3E");
}

#page .mx-commercial-v2 .mx-commercial-caption {
    align-self:flex-start;
    margin:20px 22px 10px!important;
    padding:5px 10px;
    border-radius:6px;
    border:1px solid #5b5324;
    background:#26220e;
    color:#ffdf00!important;
    font-size:10px!important;
    font-weight:750;
    text-transform:uppercase;
    letter-spacing:.9px;
    opacity:1!important;
}

#page .mx-commercial-v2 .mx-commercial-card h2 {
    color:#fff!important;
    margin:0 22px 10px!important;
    font-size:25px!important;
    line-height:1.2;
    font-weight:800!important;
    letter-spacing:-.5px;
}

#page .mx-commercial-v2 .mx-commercial-card p {
    flex:1;
    color:#c4c4c4!important;
    opacity:1!important;
    font-size:14px!important;
    line-height:1.7;
    margin:0 22px 24px!important;
    overflow-wrap:anywhere;
}

#page .mx-commercial-v2 .mx-commercial-price {
    border-top:1px solid #383838;
    padding-top:18px;
    margin:0 22px 8px!important;
    color:#fff!important;
    font-size:30px!important;
    font-weight:850!important;
    letter-spacing:-1px;
}

#page .mx-commercial-v2 .mx-commercial-price small {
    color:#bcbcbc!important;
    font-size:12px!important;
    font-weight:500!important;
    letter-spacing:0;
}

#page .mx-commercial-v2 .mx-commercial-year {
    color:#d3d3d3!important;
    margin:0 22px 12px!important;
    font-size:13px!important;
}

/* Existing actions: no checkout changes */

#page .mx-commercial-v2 .mx-commercial-card > .btn,
#page .mx-commercial-v2 .mx-commercial-disabled {
    box-sizing:border-box;
    display:flex!important;
    align-items:center;
    justify-content:center;
    width:calc(100% - 44px)!important;
    min-height:49px!important;
    margin:14px 22px 22px!important;
    padding:12px!important;
    border-radius:11px!important;
    font-size:13px!important;
    font-weight:750!important;
    line-height:1.4;
    text-align:center;
    white-space:normal;
}

#page .mx-commercial-v2 .mx-commercial-card > .btn.primary {
    background:#ffdf00!important;
    color:#090909!important;
    border:1px solid #ffdf00!important;
}

#page .mx-commercial-v2 .mx-commercial-card > .btn:not(.primary) {
    background:transparent!important;
    border:1px solid #ffdf00!important;
    color:#ffdf00!important;
}

#page .mx-commercial-v2 .mx-commercial-disabled {
    opacity:1!important;
    cursor:not-allowed;
    background:#292929!important;
    border:1px solid #414141!important;
    color:#a5a5a5!important;
}

/* Existing status and account management */

#page .mx-commercial-v2 .mx-commercial-existing,
#page .mx-commercial-v2 .mx-commercial-warning {
    box-sizing:border-box;
    padding:26px!important;
    border:1px solid #3c3c3c!important;
    border-radius:20px!important;
    background:#151515!important;
    color:#fff!important;
}

#page .mx-commercial-v2 .mx-commercial-warning {
    border-left:4px solid #ffdf00!important;
}

#page .mx-commercial-v2 .mx-commercial-existing h2 {
    margin-top:0;
    font-size:25px!important;
    font-weight:800;
}

#page .mx-commercial-v2 .mx-commercial-existing p,
#page .mx-commercial-v2 .mx-commercial-warning p {
    color:#c3c3c3!important;
    opacity:1;
}

#page .mx-commercial-v2 .mx-commercial-links {
    gap:10px;
}

#page .mx-commercial-v2 .mx-commercial-links .btn {
    border-radius:10px;
    padding:12px 15px;
    min-height:44px;
}

#mxCommercialAccountStatus {
    padding:14px 0 0;
    border-top:1px solid #444;
    line-height:1.6;
}

/* Mobile presentation */

@media(max-width:767px) {
    #page .mx-commercial-v2 {
        padding-inline:0;
    }

    #page .mx-commercial-v2 > .page-title {
        min-height:180px!important;
        padding:23px 18px!important;
        border-radius:18px!important;
    }

    #page .mx-commercial-v2 > .page-title::after {
        opacity:.23;
        width:55%;
    }

    #page .mx-commercial-v2 > .page-title h1 {
        font-size:31px!important;
    }

    #page .mx-commercial-v2 > .page-title p {
        font-size:13px!important;
    }

    #page .mx-commercial-v2 .mx-commercial-cards {
        grid-template-columns:minmax(0,1fr)!important;
        gap:18px!important;
    }

    #page .mx-commercial-v2 .mx-commercial-card::before {
        height:116px;
    }

    #page .mx-commercial-v2 .mx-commercial-existing,
    #page .mx-commercial-v2 .mx-commercial-warning {
        padding:20px!important;
    }
}


/* MX BILLING DESIGN V5 START */

#page .mx5-billing-card {
    box-sizing:border-box;
    position:relative;
    padding:28px!important;
    margin:20px 0!important;
    border:1px solid #383838!important;
    border-radius:22px!important;
    background:linear-gradient(
        135deg,#1b1b1b,#101010
    )!important;
    color:#fff!important;
    box-shadow:none!important;
}

#page .mx5-billing-heading {
    display:flex;
    align-items:center;
    gap:16px;
    color:#fff!important;
    font-size:23px!important;
    font-weight:800!important;
    line-height:1.3;
    margin:0 0 20px!important;
}

#page .mx5-billing-heading::before {
    content:"";
    display:block;
    flex:0 0 52px;
    width:52px;
    height:52px;
    border-radius:14px;
    background-color:#302b07;
    background-position:center;
    background-repeat:no-repeat;
    background-size:27px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffe000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 13a4 4 0 0 0 6 .5l4-4a4 4 0 0 0-6-6l-2 2M14 11a4 4 0 0 0-6-.5l-4 4a4 4 0 0 0 6 6l2-2'/%3E%3C/svg%3E");
}

#page .mx5-billing-card p {
    color:#c8c8c8!important;
    font-size:14px!important;
    line-height:1.7!important;
    max-width:900px;
}

#page .mx5-billing-steps {
    display:grid;
    gap:13px;
    padding:20px 0;
    margin:16px 0;
    border-top:1px solid #333;
    border-bottom:1px solid #333;
}

#page .mx5-billing-steps > div {
    display:flex;
    align-items:center;
    gap:12px;
    font-size:14px;
    color:#eee;
}

#page .mx5-step-number {
    width:30px;
    height:30px;
    flex:0 0 30px;
    display:grid;
    place-items:center;
    background:#302b07;
    color:#ffe000;
    border-radius:50%;
    font-weight:800;
}

#page .mx5-link-code {
    box-sizing:border-box;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:50px!important;
    padding:14px 26px!important;
    border:1px solid #ffe000!important;
    border-radius:11px!important;
    background:#ffe000!important;
    color:#080808!important;
    font-size:14px!important;
    font-weight:800!important;
    box-shadow:none!important;
    white-space:normal;
}

#page .mx5-link-code:disabled {
    opacity:.55;
    cursor:not-allowed;
}

#page .mx5-expiry {
    font-size:12px;
    color:#aaa;
    line-height:1.5;
    margin-top:12px;
}

#page .mx5-download-manager {
    box-sizing:border-box;
    position:relative;
    display:flex!important;
    align-items:center;
    gap:16px;
    width:100%!important;
    min-height:90px;
    padding:18px 22px!important;
    margin:16px 0!important;
    background:#171717!important;
    color:#fff!important;
    border:1px solid #383838!important;
    border-radius:18px!important;
    font-size:17px!important;
    line-height:1.4;
    font-weight:750!important;
    text-align:left!important;
    white-space:normal;
    box-shadow:none!important;
}

#page .mx5-download-manager::before {
    content:"";
    display:block;
    width:48px;
    height:48px;
    flex:0 0 48px;
    border-radius:12px;
    background-color:#302b07;
    background-repeat:no-repeat;
    background-position:center;
    background-size:26px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffe000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5h6l2 2h10v13H3zM12 10v6m-3-3 3 3 3-3'/%3E%3C/svg%3E");
}

#page .mx5-download-manager::after {
    content:"";
    display:block;
    width:10px;
    height:10px;
    flex:0 0 10px;
    margin-left:auto;
    border-top:2px solid #ffe000;
    border-right:2px solid #ffe000;
    transform:rotate(45deg);
}

#page .mx5-download-manager:hover {
    border-color:#ffe000!important;
}

@media(max-width:767px){
    #page .mx5-billing-card {
        padding:20px!important;
        border-radius:18px!important;
    }

    #page .mx5-billing-heading {
        font-size:19px!important;
        gap:12px;
    }

    #page .mx5-link-code {
        width:100%!important;
    }

    #page .mx5-expiry {
        text-align:center;
    }

    #page .mx5-download-manager {
        padding:15px!important;
        font-size:15px!important;
        min-height:80px;
    }
}

/* MX BILLING DESIGN V5 END */
