/* Convite global do Instagram — carregado somente nas páginas públicas. */
.instagram-mascot-cta {
    --instagram-scroll-y: 0px;
    --instagram-scroll-x: 0px;
    --instagram-scroll-tilt: 0deg;
    --instagram-scroll-scale: 1;
    --instagram-bubble-y: 0px;
    --instagram-bubble-tilt: 0deg;
    --instagram-scroll-energy: 0;
    position: fixed;
    z-index: 1080;
    right: 0;
    bottom: max(0px, env(safe-area-inset-bottom));
    width: min(360px, calc(100vw - 10px));
    height: 250px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(115%, 10px, 0);
    transition: opacity .2s ease, visibility .2s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
    filter: drop-shadow(0 16px 27px rgba(2, 7, 18, .27));
}

.instagram-mascot-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.instagram-mascot-cta.is-leaving {
    opacity: 0;
    transform: translate3d(115%, 0, 0);
    transition-duration: .32s;
}

.instagram-mascot-cta.is-suppressed {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.instagram-mascot-cta__video {
    display: none;
    position: absolute;
    z-index: 2;
    right: -4px;
    bottom: -3px;
    width: 360px;
    height: 319px;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    transform: translate3d(var(--instagram-scroll-x), var(--instagram-scroll-y), 0)
               rotate(var(--instagram-scroll-tilt)) scale(var(--instagram-scroll-scale));
    transform-origin: 78% 92%;
    transition: transform .2s cubic-bezier(.2, .85, .3, 1), opacity .12s ease;
}

.instagram-mascot-cta__final-pose {
    position: absolute;
    z-index: 3;
    right: -31px;
    bottom: -8px;
    width: 240px;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 13px 12px rgba(2, 7, 18, .24));
    transform: translate3d(var(--instagram-scroll-x), var(--instagram-scroll-y), 0)
               rotate(var(--instagram-scroll-tilt)) scale(var(--instagram-scroll-scale));
    transform-origin: 53% 91%;
    transition: transform .2s cubic-bezier(.2, .85, .3, 1), opacity .12s ease;
    -webkit-mask-image: linear-gradient(to bottom, #000 0 92%, transparent 99%);
    mask-image: linear-gradient(to bottom, #000 0 92%, transparent 99%);
}

.instagram-mascot-cta.video-finished .instagram-mascot-cta__video { opacity: 0; }
.instagram-mascot-cta.video-finished .instagram-mascot-cta__final-pose { opacity: 1; }

.instagram-mascot-cta__scroll-energy {
    display: none;
    position: absolute;
    z-index: 1;
    right: 152px;
    bottom: 104px;
    width: 88px;
    height: 92px;
    opacity: var(--instagram-scroll-energy);
    pointer-events: none;
    transition: opacity .16s ease;
}

.instagram-mascot-cta__scroll-energy i {
    position: absolute;
    right: 0;
    width: 82px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(20, 218, 255, .88) 52%, rgba(255, 121, 0, .95));
    box-shadow: 0 0 12px rgba(20, 218, 255, .48);
    transform: translateX(calc(var(--instagram-scroll-x) * -3)) scaleX(var(--instagram-scroll-scale));
    transform-origin: right center;
    transition: transform .18s cubic-bezier(.2, .85, .3, 1);
}

.instagram-mascot-cta__scroll-energy i:nth-child(1) { top: 10px; width: 62px; }
.instagram-mascot-cta__scroll-energy i:nth-child(2) { top: 42px; }
.instagram-mascot-cta__scroll-energy i:nth-child(3) { top: 73px; width: 50px; }

.instagram-mascot-cta__bubble {
    position: absolute;
    z-index: 4;
    left: 5px;
    right: auto;
    top: 78px;
    width: 175px;
    padding: 13px 14px 12px;
    color: #121a2a;
    background: linear-gradient(180deg, #ff7900 0 5px, rgba(255, 250, 244, .98) 5px 100%);
    border: 1px solid rgba(255, 121, 0, .42);
    border-radius: 18px 18px 6px 18px;
    box-shadow: 0 13px 30px rgba(3, 8, 20, .21);
    opacity: 0;
    transform: translate3d(0, var(--instagram-bubble-y), 0) rotate(var(--instagram-bubble-tilt));
    transform-origin: 72% 100%;
}

.instagram-mascot-cta.is-visible .instagram-mascot-cta__bubble {
    animation: instagram-global-bubble-in .42s 1.16s cubic-bezier(.16, 1, .3, 1) both;
}

.instagram-mascot-cta__bubble::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 52%;
    bottom: auto;
    border-width: 9px 0 9px 11px;
    border-style: solid;
    border-color: transparent transparent transparent #fffaf4;
    transform: translateY(-50%);
}

.instagram-mascot-cta__bubble span {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: #d62976;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.instagram-mascot-cta__bubble span i { font-size: .82rem; }

.instagram-mascot-cta__bubble strong {
    display: block;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.instagram-mascot-cta__bubble a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 14px;
    color: #fff;
    background: linear-gradient(115deg, #d62976, #ff7900);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(214, 41, 118, .22);
}

.instagram-mascot-cta__bubble a:hover,
.instagram-mascot-cta__bubble a:focus-visible { color: #fff; transform: translateY(-1px); }

.instagram-mascot-cta__bubble a:focus-visible,
.instagram-mascot-cta__close:focus-visible {
    outline: 3px solid #55c8ff;
    outline-offset: 3px;
}

.instagram-mascot-cta__close {
    position: absolute;
    z-index: 6;
    top: 3px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: rgba(10, 17, 31, .76);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0;
}

.instagram-mascot-cta.is-visible .instagram-mascot-cta__close {
    animation: instagram-global-close-in .28s 1.45s ease-out both;
}

@keyframes instagram-global-bubble-in {
    from { opacity: 0; transform: translate3d(0, calc(12px + var(--instagram-bubble-y)), 0) rotate(var(--instagram-bubble-tilt)) scale(.94); }
    to { opacity: 1; transform: translate3d(0, var(--instagram-bubble-y), 0) rotate(var(--instagram-bubble-tilt)) scale(1); }
}

@keyframes instagram-global-close-in { from { opacity: 0; } to { opacity: .9; } }

@media (max-width: 1100px) {
    .instagram-mascot-cta {
        right: 0;
        bottom: max(0px, env(safe-area-inset-bottom));
        width: min(310px, calc(100vw - 4px));
        height: 190px;
        overflow: visible;
        filter: drop-shadow(0 10px 18px rgba(2, 7, 18, .24));
    }

    .instagram-mascot-cta__video {
        display: none;
    }

    .instagram-mascot-cta__final-pose {
        right: -23px;
        bottom: -7px;
        width: 180px;
        height: auto;
        transform: none;
        filter: drop-shadow(0 8px 9px rgba(2, 7, 18, .22));
        -webkit-mask-image: linear-gradient(to bottom, #000 0 91%, transparent 99%);
        mask-image: linear-gradient(to bottom, #000 0 91%, transparent 99%);
    }

    .instagram-mascot-cta__scroll-energy { display: none; }

    .instagram-mascot-cta__bubble {
        left: 3px;
        right: auto;
        top: 58px;
        width: 170px;
        padding: 10px 11px 9px;
        border-radius: 15px 15px 5px 15px;
        transform: none;
    }

    .instagram-mascot-cta__bubble::after {
        right: -9px;
        top: 52%;
        bottom: auto;
        border-width: 8px 0 8px 10px;
        border-color: transparent transparent transparent #fffaf4;
        transform: translateY(-50%);
    }

    .instagram-mascot-cta__bubble span {
        gap: 4px;
        margin-bottom: 3px;
        font-size: .5rem;
        letter-spacing: .04em;
        white-space: nowrap;
    }

    .instagram-mascot-cta__bubble span i { font-size: .68rem; }

    .instagram-mascot-cta__bubble strong {
        font-size: .78rem;
        line-height: 1.08;
    }

    .instagram-mascot-cta__bubble a {
        min-height: 36px;
        margin-top: 6px;
        padding: 8px 11px;
        font-size: .65rem;
    }

    .instagram-mascot-cta__close {
        top: 3px;
        right: 4px;
        width: 40px;
        height: 40px;
        background: rgba(10, 17, 31, .72);
        font-size: 1.1rem;
    }

    .instagram-mascot-cta.is-visible .instagram-mascot-cta__bubble {
        animation: instagram-mobile-bubble-in .36s .5s cubic-bezier(.16, 1, .3, 1) both;
    }

    .instagram-mascot-cta.is-visible .instagram-mascot-cta__close {
        animation: instagram-global-close-in .2s .68s ease-out both;
    }

    .instagram-mascot-cta.is-visible .instagram-mascot-cta__final-pose {
        animation: instagram-mobile-peek-in .62s cubic-bezier(.16, 1, .3, 1) both;
    }
}

@media (max-width: 420px) {
    .instagram-mascot-cta {
        right: 0;
        width: min(270px, calc(100vw - 2px));
        height: 180px;
    }

    .instagram-mascot-cta__final-pose {
        right: -21px;
        bottom: -7px;
        width: 165px;
    }

    .instagram-mascot-cta__bubble {
        left: 2px;
        right: auto;
        top: 54px;
        width: 155px;
        padding: 9px 10px 8px;
    }

    .instagram-mascot-cta__bubble strong { font-size: .75rem; }
    .instagram-mascot-cta__close { top: 2px; right: 2px; }
}

@keyframes instagram-mobile-peek-in {
    from { opacity: 0; transform: translate3d(110px, 0, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes instagram-mobile-bubble-in {
    from { opacity: 0; transform: translate3d(8px, 5px, 0) scale(.94); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .instagram-mascot-cta { transition: opacity .15s ease; transform: none; }
    .instagram-mascot-cta__video,
    .instagram-mascot-cta__scroll-energy { display: none; }
    .instagram-mascot-cta__final-pose { opacity: 1; transform: none; animation: none !important; }
    .instagram-mascot-cta__bubble { top: 4px; opacity: 1; transform: none; animation: none !important; }
    .instagram-mascot-cta__close { opacity: .9; animation: none !important; }
}
