﻿/* =====================================
   FREE SESSION POPUP - NEW DESIGN
===================================== */
/* =====================================
   USE WEBSITE DEFAULT FONT
===================================== */

.free-session-overlay,
.free-session-popup,
.free-session-popup *,
.free-session-popup button {
    font-family: inherit !important;
}

/* ==========================
   OVERLAY
========================== */

.free-session-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: grid !important;
    place-items: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    background: rgba(4, 9, 27, 0.86);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}


    .free-session-overlay.show {
        opacity: 1 !important;
        visibility: visible !important;
    }


/* ==========================
   CONFETTI
========================== */

.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 10000000;
}


.confetti {
    position: absolute;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}


@keyframes confettiFall {

    0% {
        transform: translateY(-30px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}


/* ==========================
   POPUP
========================== */

.free-session-popup {
    position: relative !important;
    width: min(445px, calc(100vw - 30px)) !important;
    max-height: calc(100vh - 30px);
    margin: 0 !important;
    padding: 32px 28px 34px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 28px !important;
    background: radial-gradient( circle at 50% 0%, rgba(107, 70, 183, 0.20), transparent 38% ), linear-gradient( 180deg, #151a34 0%, #0b1125 100% ) !important;
    border: 1px solid rgba(112, 93, 220, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(80, 70, 180, 0.05), 0 0 35px rgba(111, 67, 255, 0.12), 0 25px 70px rgba(0, 0, 0, 0.65) !important;
    direction: rtl;
    opacity: 0;
    transform: scale(.85) translateY(25px);
    transition: transform .55s cubic-bezier(.18,.89,.32,1.28), opacity .35s ease;
}


.free-session-overlay.show .free-session-popup {
    opacity: 1 !important;
    transform: scale(1) translateY(0);
}


/* ==========================
   BACKGROUND GLOWS
========================== */

.popup-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(45px);
    opacity: .35;
}


.popup-glow-top {
    width: 260px;
    height: 160px;
    top: -110px;
    left: 50%;
    transform: translateX(-50%);
    background: #6b3ee7;
}


.popup-glow-bottom {
    width: 230px;
    height: 100px;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    background: #6a38e8;
}


/* ==========================
   PARTICLES
========================== */

.popup-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(139, 224, 255, .85);
    box-shadow: 0 0 10px rgba(91, 218, 255, .75);
    animation: particleFloat 4s ease-in-out infinite;
}


    .popup-particles span:nth-child(1) {
        top: 8%;
        left: 10%;
    }


    .popup-particles span:nth-child(2) {
        top: 14%;
        right: 15%;
        animation-delay: 1s;
    }


    .popup-particles span:nth-child(3) {
        top: 32%;
        left: 6%;
        animation-delay: 2s;
    }


    .popup-particles span:nth-child(4) {
        top: 48%;
        right: 8%;
        animation-delay: .5s;
    }


    .popup-particles span:nth-child(5) {
        bottom: 22%;
        left: 12%;
        animation-delay: 1.5s;
    }


    .popup-particles span:nth-child(6) {
        bottom: 12%;
        right: 15%;
        animation-delay: 2.5s;
    }


@keyframes particleFloat {

    0%, 100% {
        transform: translateY(0);
        opacity: .35;
    }


    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}


/* ==========================
   CLOSE BUTTON
========================== */

.popup-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(89, 100, 130, 0.45) !important;
    color: rgba(255,255,255,.75) !important;
    font-size: 28px !important;
    font-weight: 300;
    cursor: pointer;
    z-index: 50;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: transform .25s ease, background .25s ease;
}


    .popup-close:hover {
        transform: rotate(90deg);
        background: rgba(135, 85, 255, .85);
    }


/* ==========================
   CONTENT
========================== */

.popup-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
}


/* ==========================
   GIFT
========================== */

.gift-icon {
    position: relative;
    width: 66px;
    height: 68px;
    margin: 0 auto 10px;
    animation: giftFloat 2.8s ease-in-out infinite;
}


@keyframes giftFloat {

    0%, 100% {
        transform: translateY(0);
    }


    50% {
        transform: translateY(-6px);
    }
}


.gift-box {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 45px;
    border-radius: 16px;
    background: linear-gradient( 135deg, #a46bff, #5b2ed4 );
    box-shadow: 0 10px 25px rgba(116, 61, 255, .45);
}


.gift-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    background: rgba(255,255,255,.65);
}


.gift-bow {
    position: absolute;
    top: -6px;
    width: 30px;
    height: 23px;
    border: 4px solid #bd9aff;
    border-radius: 20px 20px 5px 20px;
    z-index: 2;
}


.bow-left {
    left: 4px;
    transform: rotate(-22deg);
}


.bow-right {
    right: 4px;
    transform: scaleX(-1) rotate(-22deg);
}


/* ==========================
   TITLES
========================== */

.welcome-title {
    margin: 0 0 4px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
}


.association-text {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.60);
}


/* ==========================
   FREE SESSION BOX
========================== */

.free-session-box {
    margin: 0 auto 22px;
    padding: 17px 20px;
    border-radius: 17px;
    background: linear-gradient( 135deg, rgba(255,255,255,.96), rgba(242,242,245,.96) );
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    color: #252b45;
}


    .free-session-box h3 {
        margin: 0 0 6px;
        font-size: 23px;
        font-weight: 800;
        color: #252b45;
    }


    .free-session-box p {
        margin: 0;
        font-size: 13px;
        line-height: 1.8;
        color: #62697c;
    }



/* ==========================
   BUTTON
========================== */

.free-session-button {
    width: 100%;
    min-height: 58px;
    padding: 14px 25px;
    border: none;
    border-radius: 50px;
    background: linear-gradient( 90deg, #8d3eff, #6937df );
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(102, 54, 232, .45);
    transition: transform .25s ease, box-shadow .25s ease;
}


    .free-session-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 35px rgba(113, 62, 255, .65);
    }


.button-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    transition: transform .25s ease;
}


.free-session-button:hover .button-arrow {
    transform: translateX(-5px);
}


/* ==========================
   MOBILE
========================== */

@media (max-width: 600px) {

    .free-session-overlay {
        padding: 12px !important;
    }


    .free-session-popup {
        width: min(100%, 420px) !important;
        padding: 28px 18px 24px !important;
        border-radius: 24px !important;
    }


    .popup-close {
        top: 12px !important;
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 25px !important;
    }


    .gift-icon {
        transform: scale(.85);
        margin-bottom: 3px;
    }


    .welcome-title {
        font-size: 28px;
    }


    .association-text {
        margin-bottom: 14px;
        font-size: 13px;
    }


    .free-session-box {
        margin-bottom: 18px;
        padding: 14px 13px;
    }


        .free-session-box h3 {
            font-size: 20px;
        }


        .free-session-box p {
            font-size: 11px;
        }


    .popup-benefits {
        gap: 5px;
        margin-bottom: 20px;
    }


    .benefit-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
        border-radius: 10px;
    }


    .benefit strong {
        font-size: 10px;
    }


    .benefit span {
        font-size: 8px;
    }


    .benefit-divider {
        height: 45px;
    }


    .free-session-button {
        min-height: 52px;
        font-size: 15px;
    }
}
