:root {
    --campaign-purple-950: #16002f;
    --campaign-purple-900: #220447;
    --campaign-purple-800: #35106f;
    --campaign-purple-700: #4d1595;
    --campaign-yellow: #ffc51b;
    --campaign-yellow-soft: #ffe681;
    --campaign-white: #ffffff;
}

body.campaign-gateway-open {
    overflow: hidden;
}

.campaign-gateway[hidden] {
    display: none;
}

.campaign-gateway {
    position: fixed;
    z-index: 999999;
    inset: 0;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--campaign-white);
    background: var(--campaign-purple-950);
    overscroll-behavior: contain;
}

.campaign-gateway__media,
.campaign-gateway__media::after,
.campaign-gateway__media picture,
.campaign-gateway__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.campaign-gateway__media picture,
.campaign-gateway__media img {
    display: block;
}

.campaign-gateway__media img {
    object-fit: cover;
    object-position: center center;
}

.campaign-gateway__media::after {
    content: "";
    background:
        linear-gradient(90deg, rgba(22, 0, 47, .99) 0%, rgba(22, 0, 47, .94) 29%, rgba(34, 4, 71, .72) 48%, rgba(34, 4, 71, .16) 72%, rgba(22, 0, 47, .08) 100%),
        linear-gradient(0deg, rgba(22, 0, 47, .72), transparent 42%);
}

.campaign-gateway__shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(100% - 64px, 1440px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(24px, env(safe-area-inset-top)) 0 max(22px, env(safe-area-inset-bottom));
}

.campaign-gateway__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.campaign-gateway__logo {
    display: block;
    width: clamp(156px, 18vw, 235px);
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .24));
}

.campaign-gateway__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, .44);
    border-radius: 999px;
    color: #fff;
    background: rgba(22, 0, 47, .44);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.campaign-gateway__close:hover,
.campaign-gateway__close:focus-visible {
    border-color: var(--campaign-yellow);
    outline: 3px solid rgba(255, 197, 27, .28);
    outline-offset: 3px;
}

.campaign-gateway__content {
    align-self: center;
    width: min(650px, 51vw);
    padding: clamp(30px, 6vh, 72px) 0 24px;
}

.campaign-gateway__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--campaign-yellow-soft);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.campaign-gateway__eyebrow::before {
    width: 34px;
    height: 4px;
    border-radius: 99px;
    background: var(--campaign-yellow);
    content: "";
}

.campaign-gateway h1 {
    max-width: 620px;
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 6.5vw, 92px);
    line-height: .91;
    letter-spacing: -.065em;
    text-wrap: balance;
    text-shadow: 0 13px 38px rgba(0, 0, 0, .28);
}

.campaign-gateway h1 span {
    display: block;
    color: var(--campaign-yellow);
}

.campaign-gateway__lead {
    max-width: 590px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16px, 1.45vw, 21px);
    line-height: 1.55;
}

.campaign-gateway__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 22px 0 0;
    color: #fff;
    font-weight: 800;
}

.campaign-gateway__price strong {
    color: var(--campaign-yellow);
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: 1;
}

.campaign-gateway__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    max-width: 620px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.campaign-gateway__benefits li {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    color: rgba(255, 255, 255, .94);
    background: rgba(28, 5, 59, .54);
    font-size: 12px;
    font-weight: 780;
    line-height: 1.25;
    backdrop-filter: blur(10px);
}

.campaign-gateway__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
}

.campaign-gateway__jackpot {
    position: fixed;
    z-index: 3;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    width: min(310px, calc(100vw - 44px));
    min-height: 72px;
    padding: 9px 18px 9px 10px;
    overflow: hidden;
    border: 2px solid var(--campaign-yellow);
    border-radius: 22px;
    color: #fff;
    background: radial-gradient(circle at 12% 25%, #7e2cc0, transparent 34%), linear-gradient(135deg, #260447, #4d0c7d 58%, #6f1dab);
    box-shadow: 0 0 0 4px rgba(255, 209, 42, .14), 0 16px 42px rgba(14, 0, 30, .5);
    font: inherit;
    text-align: left;
    cursor: pointer;
    isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease;
}

.campaign-gateway__jackpot::before {
    position: absolute;
    z-index: -1;
    inset: -100% -45%;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.75) 49%, transparent 60%);
    transform: translateX(-55%);
    animation: campaign-jackpot-shine 4s ease-in-out infinite;
    content: "";
}

.campaign-gateway__jackpot:hover,
.campaign-gateway__jackpot:focus-visible {
    outline: none;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 0 5px rgba(255, 209, 42, .2), 0 22px 50px rgba(14, 0, 30, .58);
}

.campaign-gateway__jackpot-coin {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 3px solid #fff2a4;
    border-radius: 50%;
    color: #3b075f;
    background: radial-gradient(circle at 32% 25%, #fff5a3, #ffd12a 44%, #e8a000 72%);
    box-shadow: 0 0 18px rgba(255, 209, 42, .75);
    font-size: 17px;
    font-weight: 950;
    animation: campaign-jackpot-coin 2.2s ease-in-out infinite;
}

.campaign-gateway__jackpot small,
.campaign-gateway__jackpot strong { display: block; }
.campaign-gateway__jackpot small { color: #ffe26b; font-size: 10px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.campaign-gateway__jackpot strong { margin-top: 2px; font-size: 16px; line-height: 1.15; }

@keyframes campaign-jackpot-shine { 0%,58% { transform: translateX(-58%); } 82%,100% { transform: translateX(58%); } }
@keyframes campaign-jackpot-coin { 0%,100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.06); } }

.campaign-gateway__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.campaign-gateway__button:hover,
.campaign-gateway__button:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.campaign-gateway__button--primary {
    color: #24103d;
    background: linear-gradient(135deg, var(--campaign-yellow), #ffe371);
    box-shadow: 0 15px 34px rgba(255, 197, 27, .28);
}

.campaign-gateway__button--secondary {
    border-color: rgba(255, 255, 255, .42);
    color: #fff;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
}

.campaign-gateway__button--affiliate {
    position: relative;
    overflow: hidden;
    border-color: rgba(225, 196, 255, .7);
    color: #fff;
    background: linear-gradient(135deg, #9253d2, #6e2dab 58%, #a86be5);
    box-shadow: 0 14px 32px rgba(111, 42, 169, .34);
}

.campaign-gateway__button--affiliate::after {
    position: absolute;
    inset: -90% -40%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.62) 50%, transparent 60%);
    transform: translateX(-58%);
    animation: campaign-jackpot-shine 4.4s ease-in-out infinite;
    content: "";
    pointer-events: none;
}

.campaign-gateway__button--affiliate:hover,
.campaign-gateway__button--affiliate:focus-visible { box-shadow: 0 18px 40px rgba(136, 73, 198, .5); }

.campaign-gateway__jackpot strong.is-changing { opacity: 0; transform: translateY(4px); }
.campaign-gateway__jackpot strong { transition: opacity .16s ease, transform .16s ease; }

.campaign-gateway__affiliate[hidden] { display: none; }
.campaign-gateway__affiliate { position: fixed; z-index: 12; inset: 0; display: grid; place-items: center; padding: 22px; }
.campaign-gateway__affiliate-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15,0,34,.82); backdrop-filter: blur(12px); cursor: pointer; }
.campaign-gateway__affiliate-card { position: relative; z-index: 1; width: min(760px,100%); max-height: min(92dvh,760px); overflow: auto; padding: clamp(27px,5vw,48px); border: 1px solid rgba(255,255,255,.55); border-radius: 30px; color: #29103f; background: linear-gradient(145deg,#fff,#f8f0ff); box-shadow: 0 34px 110px rgba(10,0,28,.65); }
.campaign-gateway__affiliate-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d8c2e9; border-radius: 50%; color: #4a166f; background: #f5ebfc; font: 800 25px/1 inherit; cursor: pointer; }
.campaign-gateway__affiliate-eyebrow { margin: 0 52px 7px 0; color: #7d2db8; font-size: 11px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.campaign-gateway__affiliate h2 { margin: 0 52px 10px 0; color: #25063f; font-size: clamp(30px,5vw,48px); line-height: 1.02; }
.campaign-gateway__affiliate-lead { margin: 0; color: #6a5978; font-size: 16px; }
.campaign-gateway__affiliate-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 25px; }
.campaign-gateway__affiliate-benefits article { padding: 19px; border: 1px solid #e3d3ef; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(65,24,98,.08); }
.campaign-gateway__affiliate-benefits span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 11px; color: #4c116f; background: #ead9f7; font-size: 11px; font-weight: 950; }
.campaign-gateway__affiliate-benefits strong { display: block; color: #2b0848; font-size: 15px; line-height: 1.25; }
.campaign-gateway__affiliate-benefits p { margin: 7px 0 0; color: #71627d; font-size: 12px; line-height: 1.5; }
.campaign-gateway__affiliate-note { margin: 20px 0 0; padding: 12px 14px; border-left: 4px solid #8c45c6; border-radius: 10px; color: #503d5e; background: #f2e7fa; font-size: 12px; line-height: 1.5; }
.campaign-gateway__affiliate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.campaign-gateway__affiliate-actions .campaign-gateway__button--quiet { border-color: #cdb3df; color: #4b166e; background: #fff; }

.campaign-gateway__button--quiet {
    border-color: rgba(255, 255, 255, .32);
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.campaign-gateway__status {
    min-height: 1.5em;
    margin: 13px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
}

.campaign-gateway__terms-note {
    max-width: 610px;
    margin: 11px 0 0;
    color: rgba(255,255,255,.7);
    font-size: 10px;
    line-height: 1.45;
}

.campaign-gateway__access {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 18px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

.campaign-gateway__access a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    text-underline-offset: 4px;
}

.campaign-gateway__access a:focus-visible {
    outline: 2px solid var(--campaign-yellow);
    outline-offset: 4px;
}

.campaign-gateway__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: rgba(255, 255, 255, .65);
    font-size: 10px;
    line-height: 1.45;
}

.campaign-gateway__footer strong {
    color: rgba(255, 255, 255, .88);
}

.campaign-gateway__share {
    position: fixed;
    z-index: 3;
    top: 50%;
    right: max(18px, env(safe-area-inset-right));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 108px;
    min-height: 50px;
    padding: 10px 17px;
    border: 2px solid rgba(255, 255, 255, .76);
    border-radius: 999px;
    color: var(--campaign-purple-950);
    background: linear-gradient(135deg, var(--campaign-yellow), #ffe681);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .34);
    font: inherit;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
}

.campaign-gateway__share svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.campaign-gateway__share:hover,
.campaign-gateway__share:focus-visible {
    box-shadow: 0 19px 48px rgba(0, 0, 0, .44);
    outline: 3px solid rgba(255, 255, 255, .52);
    outline-offset: 3px;
    transform: translateY(-50%) scale(1.04);
}

.campaign-gateway__share-status {
    position: fixed;
    z-index: 3;
    top: calc(50% + 34px);
    right: max(18px, env(safe-area-inset-right));
    width: min(230px, calc(100vw - 36px));
    margin: 0;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

@media (max-width: 900px) {
    .campaign-gateway__shell {
        width: min(100% - 40px, 760px);
    }

    .campaign-gateway__content {
        width: min(620px, 72vw);
    }

    .campaign-gateway__media::after {
        background:
            linear-gradient(90deg, rgba(22, 0, 47, .98), rgba(22, 0, 47, .75) 60%, rgba(22, 0, 47, .2)),
            linear-gradient(0deg, rgba(22, 0, 47, .78), transparent 48%);
    }
}

@media (max-width: 680px) {
    .campaign-gateway__media img {
        object-position: center top;
    }

    .campaign-gateway__media::after {
        background:
            linear-gradient(0deg, rgba(22, 0, 47, 1) 0%, rgba(22, 0, 47, .97) 39%, rgba(22, 0, 47, .55) 64%, rgba(22, 0, 47, .05) 84%),
            linear-gradient(90deg, rgba(22, 0, 47, .24), transparent 60%);
    }

    .campaign-gateway__shell {
        grid-template-rows: auto minmax(0, 1fr) auto;
        width: min(100% - 28px, 500px);
        padding-top: max(14px, env(safe-area-inset-top));
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }

    .campaign-gateway__logo {
        width: 142px;
    }

    .campaign-gateway__close {
        position: fixed;
        z-index: 4;
        top: max(18px, env(safe-area-inset-top));
        right: max(14px, env(safe-area-inset-right));
        width: 44px;
        min-height: 44px;
        padding: 0;
        font-size: 0;
    }

    .campaign-gateway__close::after {
        content: "\00d7";
        font-size: 24px;
        line-height: 1;
    }

    .campaign-gateway__content {
        align-self: end;
        width: 100%;
        padding: min(24vh, 205px) 0 14px;
    }

    .campaign-gateway__eyebrow {
        margin-bottom: 11px;
        font-size: 10px;
    }

    .campaign-gateway h1 {
        max-width: 430px;
        font-size: clamp(38px, 11vw, 54px);
        line-height: .94;
    }

    .campaign-gateway__lead {
        margin-top: 13px;
        font-size: 14px;
        line-height: 1.45;
    }

    .campaign-gateway__price {
        margin-top: 12px;
        font-size: 12px;
    }

    .campaign-gateway__price strong {
        font-size: 38px;
    }

    .campaign-gateway__benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 14px;
    }

    .campaign-gateway__benefits li {
        min-height: 39px;
        padding: 7px 9px;
        border-radius: 11px;
        font-size: 10px;
    }

    .campaign-gateway__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 16px;
    }

    .campaign-gateway__jackpot {
        position: relative;
        right: auto;
        bottom: auto;
        grid-template-columns: 44px minmax(0, 1fr);
        width: 100%;
        min-height: 58px;
        margin-top: 14px;
        padding: 7px 14px 7px 8px;
        border-radius: 18px;
    }

    .campaign-gateway__jackpot-coin {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .campaign-gateway__jackpot small { font-size: 8px; }
    .campaign-gateway__jackpot strong { font-size: 14px; }

    .campaign-gateway__button {
        min-height: 46px;
        padding: 8px 8px;
        font-size: 12px;
    }

    .campaign-gateway__button--quiet {
        grid-column: 1 / -1;
        min-height: 44px;
    }

    .campaign-gateway__affiliate { padding: 0; align-items: end; }
    .campaign-gateway__affiliate-card { width: 100%; max-height: 100dvh; padding: 30px 18px max(22px,env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 26px 26px 0 0; }
    .campaign-gateway__affiliate-benefits { grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
    .campaign-gateway__affiliate-benefits article { padding: 14px 15px; }
    .campaign-gateway__affiliate-benefits span { float: left; margin: 0 12px 0 0; }
    .campaign-gateway__affiliate-actions { display: grid; grid-template-columns: 1fr; }
    .campaign-gateway__affiliate-actions .campaign-gateway__button { width: 100%; }

    .campaign-gateway__status {
        margin-top: 8px;
        font-size: 10px;
    }

    .campaign-gateway__access {
        gap: 4px 16px;
        margin-top: 10px;
        font-size: 12px;
    }

    .campaign-gateway__access span {
        flex-basis: 100%;
    }

    .campaign-gateway__footer {
        display: grid;
        gap: 6px;
        padding-bottom: 4px;
        color: rgba(255, 255, 255, .8);
    }

    .campaign-gateway__share {
        top: max(18px, env(safe-area-inset-top));
        right: max(66px, env(safe-area-inset-right));
        min-width: 44px;
        width: 44px;
        min-height: 44px;
        padding: 0;
        transform: none;
    }

    .campaign-gateway__share:hover,
    .campaign-gateway__share:focus-visible {
        transform: scale(1.04);
    }

    .campaign-gateway__share span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .campaign-gateway__share-status {
        top: 70px;
        right: max(14px, env(safe-area-inset-right));
        width: min(190px, calc(100vw - 20px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .campaign-gateway__jackpot::before,
    .campaign-gateway__jackpot-coin,
    .campaign-gateway__button--affiliate::after { animation: none; }
}

@media (max-width: 380px), (max-height: 720px) and (max-width: 680px) {
    .campaign-gateway__content {
        padding-top: min(20vh, 150px);
    }

    .campaign-gateway h1 {
        font-size: 36px;
    }

    .campaign-gateway__benefits {
        margin-top: 10px;
    }
}

@media (max-height: 600px) {
    .campaign-gateway__close {
        position: fixed;
        z-index: 4;
        top: max(18px, env(safe-area-inset-top));
        right: max(20px, env(safe-area-inset-right));
    }
}

@media (prefers-reduced-motion: reduce) {
    .campaign-gateway__button,
    .campaign-gateway__share {
        transition: none;
    }
}

.campaign-gateway__reseller-note{font-size:13px;line-height:1.5;color:#e4d8f0;max-width:620px;margin:18px 0 0}
.campaign-gateway__reseller-note a{display:inline-flex;align-items:center;min-height:44px;color:#fff;text-underline-offset:3px;font-weight:750}

.hero-reseller .reseller-info-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 12px;margin:4px 0;border:1px solid currentColor;border-radius:12px;white-space:nowrap}

.benefit-coupon-action{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:16px;padding:10px 22px;border-radius:999px;background:#ffc51b;color:#220447!important;text-decoration:none;font-weight:800}.benefit-coupon-action:focus-visible{outline:3px solid #35106f;outline-offset:4px}

.campaign-gateway__button--reseller{animation:gc-reseller-invite 2.8s ease-out infinite}
@keyframes gc-reseller-invite{0%,100%{box-shadow:0 0 0 0 rgba(255,197,27,0)}35%{box-shadow:0 0 0 5px rgba(255,197,27,.22)}75%{box-shadow:0 0 0 13px rgba(255,197,27,0)}}
.campaign-gateway__button--reseller:hover,.campaign-gateway__button--reseller:focus-visible{animation:none}
@media(prefers-reduced-motion:reduce){.campaign-gateway__button--reseller{animation:none}}
