#chatbot-widget {
    position: fixed;
    right: 30px;
    bottom: 112px;
    width: 340px;
    max-width: 95vw;
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid rgba(255, 0, 255, 0.26);
    border-radius: 16px 16px 8px 8px;
    box-shadow:
        0 0 24px rgba(255, 0, 255, 0.18),
        0 0 40px rgba(0, 255, 159, 0.12);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

@media (max-width: 480px) {
    #chatbot-widget {
        right: 8px !important;
        bottom: 80px !important;
        width: 98vw !important;
        max-width: 98vw !important;
        min-width: 0 !important;
        border-radius: 12px 12px 8px 8px !important;
    }
    .assistant-fab {
        right: 8px !important;
        bottom: 12px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 1.1em !important;
        z-index: 10000 !important;
        box-shadow: 0 0 12px var(--neon-pink, #ff00ff33), 0 0 12px var(--neon-green, #00ff9f33);
    }
}
@media (max-width: 412px) {
    #chatbot-widget {
        bottom: 70px !important;
    }
    .assistant-fab {
        bottom: 8px !important;
        width: 44px !important;
        height: 44px !important;
    }
}
@media (max-width: 390px) {
    #chatbot-widget {
        bottom: 60px !important;
    }
    .assistant-fab {
        width: 40px !important;
        height: 40px !important;
    }
}
@media (max-width: 360px) {
    #chatbot-widget {
        bottom: 48px !important;
    }
    .assistant-fab {
        width: 36px !important;
        height: 36px !important;
    }
}

#chatbot-widget[hidden] {
    display: none;
}

#chatbot-widget.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#chatbot-widget.minimized {
    opacity: 0.92;
}

#chatbot-widget.minimized .chatbot-messages,
#chatbot-widget.minimized #chatbot-form {
    display: none;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-radius: 16px 16px 0 0;
    font-weight: 700;
    color: #050505;
    background: linear-gradient(90deg, #ff00ff, #00ff9f);
}

.chatbot-controls {
    display: inline-flex;
    align-items: center;
}

.chatbot-header button {
    margin-left: 8px;
    border: none;
    background: transparent;
    color: #050505;
    font-size: 1.1rem;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    background: #050505;
}

.chatbot-msg {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 14px;
    line-height: 1.5;
    color: #f4f4f4;
    background: rgba(255, 255, 255, 0.04);
}

.chatbot-msg-user {
    align-self: flex-end;
    border: 1px solid rgba(255, 0, 255, 0.26);
    background: rgba(255, 0, 255, 0.1);
}

.chatbot-msg-bot {
    align-self: flex-start;
    border: 1px solid rgba(0, 255, 159, 0.2);
    background: rgba(0, 255, 159, 0.08);
}

#chatbot-form {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #080808;
    border-radius: 0 0 8px 8px;
}

#chatbot-input {
    flex: 1;
    padding: 12px;
    border: none;
    background: #050505;
    color: #f1f1f1;
    border-radius: 0 0 0 8px;
    font-size: 1rem;
}

#chatbot-form button {
    border: none;
    padding: 0 18px;
    border-radius: 0 0 8px 0;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    color: #050505;
    background: linear-gradient(135deg, #ff00ff, #00ff9f);
}

#chatbot-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}
