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

.neo-ai-chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.neo-ai-chat-toggle:hover {
    transform: scale(1.05);
    background: #1d4ed8;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

.neo-ai-chat-window {
    width: 320px;
    max-width: 90vw;
    height: 460px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    border: 1px solid #e5e7eb;
    display: none;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 10px;
}

.neo-ai-chat-widget.open .neo-ai-chat-window {
    display: flex;
}

.neo-ai-chat-widget.open .neo-ai-chat-toggle {
    background: #111827;
}

.neo-ai-chat-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.neo-ai-chat-title {
    font-weight: 700;
    font-size: 16px;
}

.neo-ai-chat-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    opacity: 0.9;
}

.neo-ai-chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

.neo-ai-chat-close {
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.neo-ai-chat-body {
    flex: 1;
    padding: 12px;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.neo-ai-chat-intro {
    text-align: center;
    margin-top: 20px;
}

.neo-ai-chat-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    margin: 0 auto 10px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.neo-ai-chat-intro h4 {
    margin: 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.neo-ai-chat-intro p {
    margin: 0 12px 10px;
    font-size: 12px;
    color: #6b7280;
}

.neo-ai-chat-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 18px 12px;
}

.neo-ai-chat-form input {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 7px 12px;
    font-size: 13px;
    outline: none;
}

.neo-ai-chat-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.neo-ai-chat-form button {
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

.neo-ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.neo-ai-chat-message-row {
    display: flex;
}

.neo-ai-chat-message-row.user {
    justify-content: flex-end;
}

.neo-ai-chat-message-row.bot {
    justify-content: flex-start;
}

.neo-ai-chat-bubble {
    max-width: 80%;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.neo-ai-chat-bubble.user {
    background: #2563eb;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.neo-ai-chat-bubble.bot {
    background: #ffffff;
    color: #111827;
    border-bottom-left-radius: 2px;
    border: 1px solid #e5e7eb;
}

.neo-ai-chat-input {
    padding: 8px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    gap: 6px;
    align-items: center;
}

.neo-ai-chat-input input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 7px 12px;
    font-size: 13px;
    outline: none;
}

.neo-ai-chat-input input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.neo-ai-chat-input button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neo-ai-chat-typing {
    margin-top: 4px;
    display: flex;
    gap: 3px;
    padding-left: 2px;
}

.neo-ai-chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #9ca3af;
    animation: neo-ai-chat-bounce 1s infinite ease-in-out;
}

.neo-ai-chat-typing span:nth-child(2) {
    animation-delay: 0.12s;
}

.neo-ai-chat-typing span:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes neo-ai-chat-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
    40% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 640px) {
    .neo-ai-chat-window {
        width: 95vw;
        right: 0;
    }
}
