#chatbot-container {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 9999;
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

    /* --- Glossy Toggle Button --- */
    .chatbot-toggler {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
        outline: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        backdrop-filter: blur(4px);
    }

    .chatbot-toggler:hover {
        transform: scale(1.1) translateY(-2px);
        box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
    }

    .chatbot-toggler .icon-close { display: none; }
    .show-chat .chatbot-toggler .icon-open { display: none; }
    .show-chat .chatbot-toggler .icon-close { display: block; }

    /* --- Glossy Chat Window --- */
    .chat-window {
        position: absolute;
        bottom: 80px;
        right: 0;
        width: 380px;
        /* Glassmorphism Background */
        background: rgba(255, 255, 255, 0.85); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        transform-origin: bottom right;
        transform: scale(0) translateY(20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .show-chat .chat-window {
        transform: scale(1) translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* --- Glossy Header --- */
    .chat-header {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.95));
        padding: 18px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    }

    /* --- Messages Area --- */
    .chat-messages {
        height: 380px;
        overflow-y: auto;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        scroll-behavior: smooth;
    }

    /* Custom Scrollbar */
    .chat-messages::-webkit-scrollbar { width: 6px; }
    .chat-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

    .message {
        display: flex;
        flex-direction: column;
        max-width: 85%;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .bot-message { align-self: flex-start; }
    .user-message { align-self: flex-end; align-items: flex-end; }

    .message .bubble {
        padding: 14px 18px;
        font-size: 14px;
        line-height: 1.6;
        position: relative;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    /* Bot Bubble - Glossy White */
    .bot-message .bubble {
        background: #ffffff;
        color: #334155;
        border-radius: 20px 20px 20px 4px;
        border: 1px solid #f1f5f9;
    }

    /* User Bubble - Glossy Blue */
    .user-message .bubble {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: white;
        border-radius: 20px 20px 4px 20px;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    .message .timestamp {
        font-size: 10px;
        color: #94a3b8;
        margin-top: 6px;
        margin-left: 6px;
        font-weight: 500;
    }

    /* --- Input Area --- */
    .chat-input-area {
        padding: 16px;
        background: rgba(255, 255, 255, 0.9);
        border-top: 1px solid rgba(0,0,0,0.05);
        backdrop-filter: blur(10px);
    }

    .chat-input-wrapper {
        display: flex;
        gap: 10px;
        background: #f8fafc;
        padding: 8px;
        border-radius: 50px;
        border: 1px solid #e2e8f0;
        transition: border 0.3s;
    }

    .chat-input-wrapper:focus-within {
        border-color: #2563eb;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

    .chat-input-area input {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        padding: 8px 12px;
        font-size: 14px;
        color: #334155;
    }

    .chat-input-area button {
        background: #2563eb;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .chat-input-area button:hover { 
        background: #1d4ed8; 
        transform: scale(1.05);
    }

    .chat-input-area button:disabled {
        background: #94a3b8;
        cursor: not-allowed;
        transform: none;
    }

    /* Typing Animation dots */
    .typing-dots {
        display: inline-block;
    }
    .typing-dots span {
        display: inline-block;
        width: 6px;
        height: 6px;
        background: #94a3b8;
        border-radius: 50%;
        margin: 0 2px;
        animation: typing 1.4s infinite ease-in-out;
    }
    .typing-dots span:nth-child(1) { animation-delay: 0s; }
    .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
    .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
    
    @keyframes typing {
        0%, 100% { transform: translateY(0); opacity: 0.6; }
        50% { transform: translateY(-4px); opacity: 1; }
    }

    /* Mobile */
    @media (max-width: 480px) {
        .chat-window { width: 300px; bottom: 85px; right: 10px; }
        #chatbot-container { bottom: 20px; right: 20px; }
    }