.event-ai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.event-ai-chat-launcher {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f2743, #11f4ae);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.event-ai-chat-widget.open .event-ai-chat-launcher {
    opacity: 0;
    pointer-events: none;
}

.event-ai-chat-launcher:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}

.event-ai-chat-window {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 320px;
    max-height: 480px;
    background: #020202;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    overflow: hidden;
    display: none;
    flex-direction: column;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
}

.event-ai-chat-widget.open .event-ai-chat-window {
    display: flex;
    animation: event-ai-pop-in 0.22s ease-out;
}

@keyframes event-ai-pop-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.event-ai-chat-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(15,39,67,0.98), rgba(17,244,174,0.25));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.event-ai-chat-header span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-ai-chat-header span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #11f4ae;
    box-shadow: 0 0 8px rgba(17,244,174,0.8);
}

.event-ai-chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.event-ai-chat-messages {
    flex: 1;
    padding: 10px 10px 6px;
    overflow-y: auto;
    background: radial-gradient(circle at top, #020202 0, #000000 60%);
}

.event-ai-chat-input-area {
    border-top: 1px solid rgba(148,163,184,0.3);
    padding: 8px;
    display: flex;
    gap: 6px;
    background: rgba(15,23,42,0.9);
}

.event-ai-chat-input-area textarea {
    flex: 1;
    resize: none;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.4);
    padding: 6px 8px;
    font-size: 13px;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    min-height: 36px;
    max-height: 80px;
}

.event-ai-chat-input-area textarea:focus {
    outline: none;
    border-color: #11f4ae;
    box-shadow: 0 0 0 1px rgba(17,244,174,0.4);
}

.event-ai-chat-send {
    border-radius: 999px;
    border: none;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #11f4ae, #22c55e);
    color: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.event-ai-chat-send:disabled {
    opacity: 0.6;
    cursor: default;
}

.event-ai-msg {
    display: flex;
    margin-bottom: 6px;
}

.event-ai-msg-user {
    justify-content: flex-end;
}

.event-ai-msg-agent {
    justify-content: flex-start;
}

.event-ai-msg-bubble {
    max-width: 80%;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.35;
}

.event-ai-msg-user .event-ai-msg-bubble {
    background: linear-gradient(135deg, #11f4ae, #4ade80);
    color: #022c22;
    border-bottom-right-radius: 2px;
}

.event-ai-msg-agent .event-ai-msg-bubble {
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(148,163,184,0.25);
}
