/* ========================================
CHATBOT
======================================== */

.ai-chatbot{

    position:fixed;

    right:25px;

    bottom:70px;

    z-index:5000;

}

/* Toggle */

.chatbot-toggle{

    position:relative;

    width:45px;
    height:45px;

    border:none;

    border-radius:15px;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    background:
    linear-gradient(
        135deg,
        #2dd4bf,
        #3b82f6
    );

    color:#fff;

    font-size:30px;

    box-shadow:
    0 20px 40px rgba(45,212,191,0.25);

    transition:0.4s ease;
}

/* Hover */

.chatbot-toggle:hover{

    transform:
    translateY(-5px)
    scale(1.05);
}

/* Pulse */

.chatbot-pulse{

    position:absolute;

    inset:-8px;

    border-radius:30px;

    border:
    1px solid rgba(45,212,191,0.3);

    animation:
    chatbotPulse 2s infinite;
}

/* Animation */

@keyframes chatbotPulse{

    0%{

        transform:scale(1);

        opacity:1;
    }

    100%{

        transform:scale(1.3);

        opacity:0;
    }

}

/* Window */

.chatbot-window{

    position:fixed!important;

    right:25px;

    bottom:95px;

    width:390px;

    height:min(700px, calc(100vh - 180px));

    max-height:calc(100vh - 140px);

    display:flex;

    flex-direction:column;

    border-radius:34px;

    overflow:hidden;

    opacity:0;

    visibility:hidden;

    transform:
    translateY(20px)
    scale(0.96);

    transition:0.4s ease;

    background:
    rgba(8,15,35,0.88);

    backdrop-filter:blur(30px);

    border:
    1px solid rgba(255,255,255,0.08);

    box-shadow:
    0 40px 80px rgba(0,0,0,0.45);

    z-index:99999;
}

/* Active */

.chatbot-window.active{

    opacity:1;

    visibility:visible;

    transform:
    translateY(0)
    scale(1);
}

/* Header */

.chatbot-header{

    padding:24px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    border-bottom:
    1px solid rgba(255,255,255,0.06);
}

/* Header Info */

.chatbot-header-info{

    display:flex;

    align-items:center;

    gap:16px;
}

/* Avatar */

.chatbot-avatar{

    width:58px;
    height:58px;

    border-radius:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:
    linear-gradient(
        135deg,
        #2dd4bf,
        #3b82f6
    );

    font-size:24px;
}

/* Header Text */

.chatbot-header h4{

    margin:0;

    font-size:20px;
}

.chatbot-header span{

    color:#5eead4;

    font-size:14px;
}

/* Close */

.chatbot-close{

    width:42px;
    height:42px;

    border:none;

    border-radius:14px;

    background:
    rgba(255,255,255,0.06);

    color:#fff;
}

/* Body */

.chatbot-body{

    padding:24px;

    flex:1;

    overflow-y:auto;

    min-height:0;
}

/* Messages */

.bot-message,
.user-message{

    padding:16px 18px;

    border-radius:20px;

    margin-bottom:16px;

    line-height:1.7;

    max-width:85%;
}

/* Bot */

.bot-message{

    background:
    rgba(255,255,255,0.05);

    border:
    1px solid rgba(255,255,255,0.06);
}

/* User */

.user-message{

    margin-left:auto;

    background:
    linear-gradient(
        135deg,
        #2dd4bf,
        #3b82f6
    );
}

/* Suggestions */

.chat-suggestions{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    margin-top:20px;
}

/* Suggestion */

.suggestion-btn{

    border:none;

    padding:12px 18px;

    border-radius:18px;

    background:
    rgba(255,255,255,0.06);

    color:#fff;

    transition:0.3s ease;
}

.suggestion-btn:hover{

    background:
    linear-gradient(
        135deg,
        #2dd4bf,
        #3b82f6
    );
}

/* Footer */

.chatbot-footer{

    padding:22px;

    display:flex;

    align-items:center;

    gap:14px;

    border-top:
    1px solid rgba(255,255,255,0.06);
}

/* Input */

.chatbot-input{

    flex:1;

    height:60px;

    border:none;

    outline:none;

    padding:0 20px;

    border-radius:18px;

    background:
    rgba(255,255,255,0.06);

    color:#fff;
}

/* Send */

.chatbot-send{

    width:58px;
    height:58px;

    border:none;

    border-radius:18px;

    background:
    linear-gradient(
        135deg,
        #2dd4bf,
        #3b82f6
    );

    color:#fff;

    font-size:20px;
}

/* Mobile */

@media(max-width:767px){

    .ai-chatbot{

        right:20px;

        bottom:20px;

    }

    .chatbot-window{

        width:calc(100vw - 30px);

        height:75vh;

        right:15px;

        bottom:90px;

        max-height:none;

        border-radius:24px;

    }

}