.chatbot-toggle{
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg,#0d6efd,#0dcaf0);
    color: #fff;
    font-size: 23px;
    box-shadow: 0 10px 25px rgba(0,0,0,.20);
    z-index: 9999;
    transition: transform .2s ease, box-shadow .2s ease;
}

.chatbot-toggle:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.24);
}

.chatbot-box{
    position: fixed;
    right: 24px;
    bottom: 94px;
    width: min(380px, calc(100vw - 32px));
    height: min(640px, calc(100vh - 130px));
    max-height: calc(100vh - 130px);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    overflow: hidden;
    display: none;
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.chatbot-box.active{
    display: flex;
}

.chatbot-header{
    background: linear-gradient(135deg,#0d6efd,#0dcaf0);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    flex-shrink: 0;
}

.chatbot-header-actions{
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-close,
.chatbot-clear{
    background: rgba(255,255,255,.16);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.chatbot-close{
    font-size: 22px;
    line-height: 1;
}

.chatbot-clear{
    font-size: 15px;
}

.chatbot-close:hover,
.chatbot-clear:hover{
    background: rgba(255,255,255,.25);
    transform: translateY(-1px);
}

.chatbot-messages{
    flex: 1;
    min-height: 180px;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
}

.chatbot-msg{
    max-width: 85%;
    padding: 11px 14px;
    border-radius: 16px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.55;
    word-wrap: break-word;
}

.chatbot-msg.bot{
    background: #e9f2ff;
    color: #1f2937;
    border-top-left-radius: 5px;
}

.chatbot-msg.user{
    background: #0d6efd;
    color: #fff;
    margin-left: auto;
    border-top-right-radius: 5px;
}

.chatbot-quick-replies{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #eef2f7;
    background: #fff;
    flex-shrink: 0;
}

.chatbot-quick-btn{
    border: none;
    background: #e9f2ff;
    color: #0d6efd;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.chatbot-quick-btn:hover{
    background: #d7e8ff;
}

.chatbot-input-area{
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}

.chatbot-input-area input{
    font-size: 14px;
    border-radius: 12px;
    min-width: 0;
}

.chatbot-input-area .btn{
    border-radius: 12px;
    padding-left: 18px;
    padding-right: 18px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 576px){
    .chatbot-toggle{
        right: 14px;
        bottom: 14px;
        width: 56px;
        height: 56px;
    }

    .chatbot-box{
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 80px;
        height: min(560px, calc(100vh - 96px));
        max-height: calc(100vh - 96px);
        border-radius: 20px;
    }

    .chatbot-input-area{
        padding: 10px;
    }

    .chatbot-input-area .btn{
        padding-left: 14px;
        padding-right: 14px;
    }
}