/* ... (Global Variables and other styles are the same) ... */
#aethion-trigger {
    position: fixed;
    bottom: 15px;
    left: -20px;
    z-index: 99998; /* INCREASED: Ensures the trigger is above other site elements */
    cursor: pointer;
    transform: translateX(-300px);
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#aethion-trigger img { width: 150px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }

#floating-text {
    position: absolute; top: 0px; left: 100px; color: white;
    font-size: 1.2em; font-weight: bold; font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    transition: opacity 0.5s ease 1s, transform 0.5s ease 1s;
    opacity: 0;
    visibility: hidden;
}

#chat-container {
    position: fixed; bottom: 25px; left: 25px; z-index: 99999; /* INCREASED: Ensures the chat window is on top of everything */
    width: 380px; height: 550px; background: rgba(28, 37, 65, 0.85);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); display: flex; flex-direction: column;
    transform-origin: bottom left; transition: transform 0.4s ease, opacity 0.4s ease;
}

#chat-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white; flex-shrink: 0;
}
#chat-header .header-content { display: flex; align-items: center; }
#aethion-avatar {
    width: 40px; height: 40px; margin-right: 15px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-radius: 50%;
    animation: avatarPulse 4s infinite ease-in-out;
}
@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
#chat-header h2 { margin: 0; font-size: 1.1em; }
#chat-header span { font-size: 0.8em; opacity: 0.7; }
#close-chat-btn { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; transition: color 0.2s; }
#close-chat-btn:hover { color: white; }
#message-list { flex-grow: 1; padding: 20px; overflow-y: auto; }
.message {
    margin-bottom: 15px;
    animation: messageFadeIn 0.5s ease-out forwards;
}
@keyframes messageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.message .bubble { padding: 12px 18px; border-radius: 18px; line-height: 1.5; max-width: 85%; }
.aethion-message { display: flex; justify-content: flex-start; }
.aethion-message .bubble { background: linear-gradient(135deg, #6a11cb, #2575fc); color: white; border-bottom-left-radius: 5px; }
.user-message { display: flex; justify-content: flex-end; }
.user-message .bubble { background: rgba(255, 255, 255, 0.15); color: #f0f0f0; border-bottom-right-radius: 5px; }
#chat-form { display: flex; padding: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
#message-input { flex-grow: 1; border: none; background: rgba(0,0,0,0.2); padding: 12px 18px; border-radius: 20px; color: white; outline: none; transition: box-shadow 0.2s; }
#message-input:focus { box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.5); }
#chat-form button { background: none; border: none; color: rgba(255,255,255,0.7); padding: 0 15px; cursor: pointer; transition: color 0.2s; }
#chat-form button:hover { color: white; }

@media (max-width: 768px) {
    #aethion-trigger {
        position: fixed !important;
        bottom: 15px !important;
        left: -20px !important;
    }
    #aethion-trigger img {
        width: 120px;
    }
    #floating-text {
        font-size: 1em;
        left: 75px;
        top: 0px;
    }
    #chat-container {
        position: fixed !important;
        width: 300px !important;
        height: 450px !important;
        top: auto !important;
        right: auto !important;
        bottom: 15px !important;
        left: 15px !important;
    }
}
