    /* Scoping all styles to the chatbot container */
    #chinaitech-chatbot {
        font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }

    #chinaitech-chatbot .chat-bubble {
        position: fixed;
        bottom: 90px;
        right: 17px;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #1814ad, #0026ff);
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        z-index: 9999;
    }

    #chinaitech-chatbot .chat-bubble:hover {
        transform: scale(1.1) rotate(10deg);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    }
    
    #chinaitech-chatbot .chat-window {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 420px;
        max-width: calc(100vw - 40px);
        height: 700px;
        max-height: calc(100vh - 60px);
        background-color: #ffffff;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        display: none;
        flex-direction: column;
        overflow: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform: translateY(20px);
        opacity: 0;
        z-index: 10000;
    }

    #chinaitech-chatbot .chat-window.open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    #chinaitech-chatbot .chat-header {
        background: linear-gradient(135deg, #1814ad, #0c02ff);
        color: white;
        padding: 15px 20px;
        font-weight: 600;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        position: relative;
    }

    #chinaitech-chatbot .chat-header-title {
        display: flex;
        align-items: center;
        font-size: 18px;
    }

    #chinaitech-chatbot .chat-title-container {
        display: flex;
        flex-direction: column;
    }

    #chinaitech-chatbot .chat-subtitle {
        font-size: 10px;
        opacity: 0.8;
        font-weight: 400;
        letter-spacing: 0.5px;
        margin-top: 2px;
    }

    #chinaitech-chatbot .chat-logo {
        width: 32px;
        height: 32px;
        margin-right: 12px;
        border-radius: 50%;
        border: 1.5px solid rgba(255, 255, 255, 0.5);
    }

    #chinaitech-chatbot .chat-header-controls {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    #chinaitech-chatbot .chat-menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        border-radius: 4px;
        transition: background-color 0.2s;
    }

    #chinaitech-chatbot .chat-menu:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    #chinaitech-chatbot .chat-menu-dot {
        width: 3px;
        height: 3px;
        background-color: white;
        border-radius: 50%;
        margin: 1px 0;
    }

    #chinaitech-chatbot .chat-menu-dropdown {
        position: absolute;
        top: 60px;
        right: 15px;
        width: 250px;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 10001;
        padding: 8px;
        border: 1px solid #f0f0f0;
    }

    #chinaitech-chatbot .chat-menu-dropdown.hidden {
        display: none;
    }

    #chinaitech-chatbot .menu-item {
        padding: 10px 12px;
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        border-radius: 6px;
        transition: background-color 0.2s;
    }
    
    #chinaitech-chatbot .menu-item:hover {
        background-color: #f4f7f9;
    }
    
    #chinaitech-chatbot .menu-item svg {
        margin-right: 12px;
    }

    #chinaitech-chatbot .chat-close {
        background: none; border: none; color: white;
        font-size: 30px; font-weight: 300; cursor: pointer;
        padding: 0; line-height: 1; opacity: 0.8;
        transition: opacity 0.2s;
    }

    #chinaitech-chatbot .chat-close:hover { opacity: 1; }

    #chinaitech-chatbot .chat-body {
        flex-grow: 1; padding: 20px;
        overflow-y: auto; background-color: #f4f7f9;
        scroll-behavior: smooth;
    }
    
    #chinaitech-chatbot .chat-footer {
        display: flex; flex-direction: column;
        flex-shrink: 0; max-height: 55%;
        border-top: 1px solid #e9eef2;
    }
    
    #chinaitech-chatbot .chat-search-container {
        padding: 10px 20px;
        background-color: #ffffff;
    }

    #chinaitech-chatbot .chat-search-container input {
        width: 100%; padding: 12px 15px;
        border: 1px solid #d1d9e0; border-radius: 25px;
        font-size: 14px; box-sizing: border-box;
    }
    #chinaitech-chatbot .chat-search-container input:focus {
        outline: none; border-color: #1814ad;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    }

    #chinaitech-chatbot .chat-toggle-container {
        text-align: center;
        padding: 8px 0;
        border-top: 1px solid #e9eef2;
        background-color: #fbfcfd;
        display: none;
    }

    #chinaitech-chatbot #chatToggleBtn {
        background: none; border: none;
        color: #1814ad; cursor: pointer;
        font-size: 13px; font-weight: 500;
    }

    #chinaitech-chatbot .chat-options {
        padding: 15px 20px;
        background-color: #ffffff;
        overflow-y: auto;
    }
    
    #chinaitech-chatbot .chat-options.hidden {
        display: none;
    }

    #chinaitech-chatbot .chat-support-prompt {
        padding: 20px;
        background-color: #ffffff;
        border-top: 1px solid #e9eef2;
        text-align: center;
    }

    #chinaitech-chatbot .chat-support-prompt.hidden {
        display: none;
    }

    #chinaitech-chatbot .chat-support-prompt p {
        margin: 0 0 15px 0;
        font-size: 13px;
        color: #666;
    }
    
    #chinaitech-chatbot .support-buttons-container {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    #chinaitech-chatbot .support-button {
        display: inline-block;
        padding: 10px 18px;
        border-radius: 20px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        border: 1px solid transparent;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    #chinaitech-chatbot .support-button.primary {
        background-color: #1814ad;
        color: white;
        border-color: #1814ad;
    }
    
    #chinaitech-chatbot .support-button.primary:hover {
        background-color: #1814ad;
        border-color: #1814ad;
    }
    
    #chinaitech-chatbot .support-button.secondary {
        background-color: #ffffff;
        color: #333;
        border-color: #d1d9e0;
    }
    
    #chinaitech-chatbot .support-button.secondary:hover {
        background-color: #f8f9fa;
    }


    #chinaitech-chatbot .chat-options button {
        display: block; width: 100%; padding: 14px 15px;
        margin-bottom: 10px; background-color: #ffffff;
        border: 1px solid #d1d9e0; color: #333;
        border-radius: 25px; cursor: pointer;
        text-align: left; font-size: 14px;
        font-weight: 500; transition: all 0.2s ease;
        -webkit-appearance: none;
    }
    
    #chinaitech-chatbot .chat-options button.back-button {
        background-color: #e9eef2; font-weight: 600;
    }
    
    #chinaitech-chatbot .chat-options button.contact-button {
        background-color: #e7f1ff; border-color: #1814ad;
        color: #1814ad; font-weight: 600;
    }
    
    #chinaitech-chatbot .chat-options button:last-child { margin-bottom: 0; }

    #chinaitech-chatbot .chat-options button:hover {
        background-color: #1814ad; color: white;
        border-color: #1814ad; transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
    }
    
    #chinaitech-chatbot .bot-message,
    #chinaitech-chatbot .user-message {
        padding: 12px 18px; border-radius: 18px;
        max-width: 85%; word-wrap: break-word;
        line-height: 1.6; animation: fadeIn 0.4s ease;
        margin-bottom: 15px;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    #chinaitech-chatbot .bot-message {
        background-color: #e9eef2; color: #333;
        border-bottom-left-radius: 4px; align-self: flex-start;
    }
    
    #chinaitech-chatbot .bot-message ul {
        padding-left: 20px; margin: 10px 0 0 0;
    }
    #chinaitech-chatbot .bot-message li {
        margin-bottom: 8px;
    }

    #chinaitech-chatbot .bot-message a {
        color: #1814ad; text-decoration: underline; font-weight: 600;
    }

    #chinaitech-chatbot .user-message {
        background-color: #1814ad; color: white;
        border-bottom-right-radius: 4px; align-self: flex-end;
        margin-left: auto;
    }
    
    @media (max-width: 480px) {
        #chinaitech-chatbot .chat-window {
            width: 100%; height: 100%; max-height: 100%;
            right: 0; bottom: 0; border-radius: 0;
        }

        #chinaitech-chatbot .chat-menu-dropdown {
            width: calc(100% - 40px);
            right: 10px;
        }

        #chinaitech-chatbot .chat-bubble {
            width: 55px; height: 55px;
        }

        #chinaitech-chatbot .chat-header { padding: 12px 15px; }
        #chinaitech-chatbot .chat-body { padding: 15px; }
        #chinaitech-chatbot .chat-search-container,
        #chinaitech-chatbot .chat-options { padding: 10px 15px; }
        
        #chinaitech-chatbot .chat-support-prompt {
            padding: 15px;
        }
    }