.chatbot-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    border: none;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.5);
    transition: all 0.3s ease;
    animation: chatbot-pulse 2s infinite;
}
.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 102, 255, 0.7);
}
.chatbot-toggle i {
    font-size: 1.6rem;
    color: #fff;
    transition: transform 0.3s ease;
}
.chatbot-toggle.active i {
    transform: rotate(90deg);
}
@keyframes chatbot-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 102, 255, 0.5); }
    50% { box-shadow: 0 4px 30px rgba(0, 212, 255, 0.8); }
}
.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    border-radius: 50%;
    font-size: 0.7rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: chatbot-badge-bounce 1s ease infinite;
}
@keyframes chatbot-badge-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 380px;
    max-height: 550px;
    background: #0a0e1a;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    z-index: 10001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 102, 255, 0.15);
    animation: chatbot-slide-up 0.3s ease;
}
.chatbot-window.open {
    display: flex;
}
@keyframes chatbot-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.chatbot-header {
    background: linear-gradient(135deg, #0a1628, #0d2040);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}
.chatbot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}
.chatbot-header-info {
    flex: 1;
}
.chatbot-header-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}
.chatbot-header-status {
    font-size: 0.75rem;
    color: #00ff64;
    display: flex;
    align-items: center;
    gap: 5px;
}
.chatbot-header-status::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #00ff64;
    border-radius: 50%;
    display: inline-block;
}
.chatbot-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}
.chatbot-close:hover {
    color: #fff;
}
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
}
.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}
.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: chatbot-msg-in 0.3s ease;
}
@keyframes chatbot-msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(0, 102, 255, 0.25);
    color: #e0e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-msg.user {
    background: linear-gradient(135deg, #0066ff, #0044cc);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-msg.bot a {
    color: #00d4ff;
    text-decoration: underline;
}
.chat-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.chat-cat-btn {
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    color: #00d4ff;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.chat-cat-btn:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: #00d4ff;
    transform: scale(1.03);
}
.chat-faq-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}
.chat-faq-btn {
    padding: 10px 14px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    color: #b0d4ff;
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    line-height: 1.4;
}
.chat-faq-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #fff;
}
.chatbot-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    align-self: flex-start;
}
.chatbot-typing span {
    width: 7px;
    height: 7px;
    background: rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    animation: chatbot-dot 1.4s infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatbot-dot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}
.chatbot-input-area {
    padding: 12px 15px;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    gap: 8px;
    background: rgba(5, 10, 25, 0.9);
}
.chatbot-input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}
.chatbot-input:focus {
    border-color: #00d4ff;
}
.chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}
.chatbot-send:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 12px rgba(0, 102, 255, 0.4);
}
.chatbot-back-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
    display: inline-block;
}
.chatbot-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 90px;
        max-height: 70vh;
        border-radius: 16px;
    }
    .chatbot-toggle {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    .chatbot-messages {
        max-height: calc(70vh - 160px);
    }
}
