.ai-fkkss-button{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:5000;
    background:#073763;
    color:#fff;
    border:0;
    border-radius:18px;
    padding:16px 20px;
    box-shadow:0 12px 35px rgba(0,0,0,.25);
    cursor:pointer;
    font-family:Montserrat,Arial,sans-serif;
    display:flex;
    align-items:center;
    gap:12px;
}

.ai-fkkss-button i{
    font-size:24px;
}

.ai-fkkss-button strong{
    display:block;
    font-size:16px;
}

.ai-fkkss-button span{
    display:block;
    font-size:12px;
    opacity:.85;
}

.ai-fkkss-chat{
    position:fixed;
    right:24px;
    bottom:100px;
    width:390px;
    max-width:calc(100% - 40px);
    height:560px;
    background:#fff;
    border-radius:22px;
    box-shadow:0 18px 60px rgba(0,0,0,.28);
    z-index:5001;
    display:none;
    overflow:hidden;
    font-family:Montserrat,Arial,sans-serif;
}

.ai-fkkss-chat.open{
    display:flex;
    flex-direction:column;
}

.ai-chat-header{
    background:#073763;
    color:#fff;
    padding:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.ai-chat-header h3{
    font-size:20px;
    margin:0;
}

.ai-chat-header p{
    font-size:12px;
    margin:4px 0 0;
    opacity:.85;
}

.ai-chat-close{
    background:rgba(255,255,255,.15);
    color:#fff;
    border:0;
    width:36px;
    height:36px;
    border-radius:50%;
    cursor:pointer;
}

.ai-chat-messages{
    flex:1;
    padding:18px;
    overflow-y:auto;
    background:#f5f7fb;
}

.ai-msg{
    margin-bottom:14px;
    padding:13px 15px;
    border-radius:14px;
    font-size:14px;
    line-height:1.6;
}

.ai-msg.bot{
    background:#fff;
    color:#111;
    border-left:4px solid #073763;
}

.ai-msg.user{
    background:#073763;
    color:#fff;
    margin-left:45px;
}

.ai-links{
    margin-top:10px;
}

.ai-links a{
    display:block;
    color:#073763;
    font-weight:800;
    margin-top:6px;
    text-decoration:none;
}

.ai-suggestions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:12px 16px;
    background:#fff;
    border-top:1px solid #e5e7eb;
}

.ai-suggestions button{
    border:1px solid #073763;
    background:#fff;
    color:#073763;
    border-radius:20px;
    padding:8px 12px;
    cursor:pointer;
    font-size:12px;
    font-weight:700;
}

.ai-chat-form{
    display:flex;
    gap:8px;
    padding:14px;
    border-top:1px solid #e5e7eb;
    background:#fff;
}

.ai-chat-form input{
    flex:1;
    border:1px solid #d1d5db;
    border-radius:12px;
    padding:13px;
    outline:none;
}

.ai-chat-form button{
    background:#073763;
    color:#fff;
    border:0;
    border-radius:12px;
    padding:0 16px;
    cursor:pointer;
}

.ai-typing{
    font-style:italic;
    color:#666;
}

@media(max-width:600px){
    .ai-fkkss-chat{
        right:10px;
        left:10px;
        bottom:85px;
        width:auto;
        height:72vh;
    }

    .ai-fkkss-button{
        right:14px;
        bottom:14px;
    }
}

.ai-header-actions{
    display:flex;
    gap:8px;
}

.ai-chat-clear,
.ai-chat-close{
    background:rgba(255,255,255,.15);
    color:#fff;
    border:0;
    width:36px;
    height:36px;
    border-radius:50%;
    cursor:pointer;
}

.ai-chat-clear:hover,
.ai-chat-close:hover{
    background:rgba(255,255,255,.28);
}

.ai-source{
    display:block;
    margin-top:8px;
    color:#777;
    font-size:12px;
}

.ai-typing{
    display:flex;
    align-items:center;
    gap:6px;
}

.ai-typing::after{
    content:"";
    width:6px;
    height:6px;
    border-radius:50%;
    background:#073763;
    animation:aiTyping 1s infinite ease-in-out;
    box-shadow:12px 0 #073763, 24px 0 #073763;
}

@keyframes aiTyping{
    0%, 80%, 100%{
        opacity:.35;
    }
    40%{
        opacity:1;
    }
}

@media(max-width:600px){

    .ai-fkkss-chat{
        right:0;
        left:0;
        bottom:0;
        width:100%;
        max-width:100%;
        height:82vh;
        border-radius:22px 22px 0 0;
    }

    .ai-fkkss-button{
        right:14px;
        bottom:14px;
        padding:13px 16px;
    }

    .ai-chat-header{
        padding:18px;
    }

    .ai-chat-messages{
        padding:14px;
    }

    .ai-msg{
        font-size:13px;
    }

    .ai-msg.user{
        margin-left:25px;
    }

    .ai-suggestions{
        max-height:92px;
        overflow-y:auto;
    }

    .ai-chat-form input{
        font-size:14px;
    }
}