/* =====================================================================
   WHMCS AI Chatbot — Widget Styles
   =====================================================================
   A premium, modern floating chat widget for the WHMCS client area.
   Features glassmorphism, smooth animations, dark/light theme support.
   ===================================================================== */

/* ── CSS Custom Properties ─────────────────────────────────────────── */
:root {
    --aichat-primary: #4f46e5;
    --aichat-primary-hover: #4338ca;
    --aichat-primary-light: rgba(79, 70, 229, 0.1);
    --aichat-bg: #ffffff;
    --aichat-bg-secondary: #f8fafc;
    --aichat-bg-tertiary: #f1f5f9;
    --aichat-text: #0f172a;
    --aichat-text-secondary: #475569;
    --aichat-text-muted: #94a3b8;
    --aichat-border: #e2e8f0;
    --aichat-border-light: #f1f5f9;
    --aichat-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18);
    --aichat-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.04);
    --aichat-radius: 24px;
    --aichat-radius-sm: 16px;
    --aichat-radius-xs: 8px;
    --aichat-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --aichat-width: 380px;
    --aichat-height: 640px;
    --aichat-bubble-user: #4f46e5;
    --aichat-bubble-user-text: #ffffff;
    --aichat-bubble-bot: #f1f5f9;
    --aichat-bubble-bot-text: #0f172a;
    --aichat-success: #10b981;
    --aichat-warning: #f59e0b;
    --aichat-error: #ef4444;
    --aichat-info: #3b82f6;
    --aichat-transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── Container Reset ────────────────────────────────────────────────── */

#aichat-container {
    display: block !important;
}
#aichat-container * {
    box-sizing: border-box;
}

/* Dark theme */
.aichat-dark {
    --aichat-bg: #0f172a;
    --aichat-bg-secondary: #1e293b;
    --aichat-bg-tertiary: #334155;
    --aichat-text: #f1f5f9;
    --aichat-text-secondary: #94a3b8;
    --aichat-text-muted: #64748b;
    --aichat-border: #334155;
    --aichat-border-light: #1e293b;
    --aichat-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --aichat-bubble-bot: #1e293b;
    --aichat-bubble-bot-text: #e2e8f0;
}

/* ── FAB (Floating Action Button) ──────────────────────────────────── */
.aichat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aichat-primary), #8b5cf6);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
    transition: all var(--aichat-transition);
    outline: none;
}

.aichat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.45);
}

.aichat-fab:active {
    transform: scale(0.95);
}

.aichat-fab svg {
    width: 28px;
    height: 28px;
    transition: transform var(--aichat-transition);
}

.aichat-fab.aichat-open svg {
    transform: rotate(90deg);
}

.aichat-fab .aichat-fab-close {
    display: none;
}

.aichat-fab.aichat-open .aichat-fab-icon {
    display: none;
}

.aichat-fab.aichat-open .aichat-fab-close {
    display: block;
}

/* Unread badge */
.aichat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--aichat-error);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.aichat-fab-badge.aichat-visible {
    display: flex;
}

/* ── Chat Window ───────────────────────────────────────────────────── */
.aichat-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: var(--aichat-width);
    height: var(--aichat-height);
    max-height: calc(100vh - 140px);
    background: var(--aichat-bg);
    border-radius: var(--aichat-radius);
    box-shadow: var(--aichat-shadow);
    border: 1px solid var(--aichat-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
    font-family: var(--aichat-font);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--aichat-transition);
}

.aichat-window.aichat-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ── Header ────────────────────────────────────────────────────────── */
.aichat-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: var(--aichat-primary);
    color: #fff;
    flex-shrink: 0;
    border-top-left-radius: var(--aichat-radius);
    border-top-right-radius: var(--aichat-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}

.aichat-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.aichat-header-avatar svg {
    width: 20px;
    height: 20px;
}

.aichat-header-info {
    flex: 1;
    min-width: 0;
}

.aichat-header-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aichat-header-status {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
}

.aichat-header-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aichat-success);
    animation: aichat-pulse 2s infinite;
}

.aichat-header-actions {
    display: flex;
    gap: 4px;
}

.aichat-header-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--aichat-transition);
}

.aichat-header-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.aichat-header-btn svg {
    width: 16px;
    height: 16px;
}

/* Header Dropdown */
.aichat-dropdown-container {
    position: relative;
}

.aichat-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: max-content;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.aichat-dropdown-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.aichat-dropdown-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--aichat-text-light, #9ca3af);
    font-weight: 600;
    padding: 6px 12px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.aichat-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 250px;
}

.aichat-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--aichat-text);
    cursor: pointer;
    transition: background var(--aichat-transition);
}

.aichat-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.aichat-dropdown-item svg {
    width: 16px;
    height: 16px;
    color: #ef4444; /* red color for end conversation icon */
}

/* ── Messages Area ─────────────────────────────────────────────────── */
.aichat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
    background: var(--aichat-bg);
}

.aichat-messages::-webkit-scrollbar {
    width: 5px;
}

.aichat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.aichat-messages::-webkit-scrollbar-thumb {
    background: var(--aichat-border);
    border-radius: 4px;
}

/* ── Message Bubbles ───────────────────────────────────────────────── */
.aichat-msg {
    display: flex;
    gap: 10px;
    max-width: 88%;
    animation: aichat-fadeIn 0.3s ease-out;
}

.aichat-msg-user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.aichat-msg-bot {
    align-self: flex-start;
}

.aichat-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.aichat-msg-bot .aichat-msg-avatar {
    background: var(--aichat-primary-light);
    color: var(--aichat-primary);
}

.aichat-msg-user .aichat-msg-avatar {
    background: var(--aichat-bubble-user);
    color: var(--aichat-bubble-user-text);
}

.aichat-msg-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aichat-msg-bubble {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-shadow: var(--aichat-shadow-sm);
}

.aichat-msg-bot .aichat-msg-bubble {
    background: var(--aichat-bubble-bot);
    color: var(--aichat-bubble-bot-text);
    border-bottom-left-radius: 4px;
    border-top-left-radius: 20px;
}

.aichat-msg-user .aichat-msg-bubble {
    background: var(--aichat-bubble-user);
    color: var(--aichat-bubble-user-text);
    border-bottom-right-radius: 4px;
    border-top-right-radius: 20px;
}

/* Markdown in bot messages */
.aichat-msg-bot .aichat-msg-bubble p {
    margin: 0 0 8px 0;
}

.aichat-msg-bot .aichat-msg-bubble p:last-child {
    margin-bottom: 0;
}

.aichat-msg-bot .aichat-msg-bubble strong {
    font-weight: 600;
}

.aichat-msg-bot .aichat-msg-bubble a {
    color: var(--aichat-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aichat-msg-bot .aichat-msg-bubble ul,
.aichat-msg-bot .aichat-msg-bubble ol {
    margin: 6px 0;
    padding-left: 20px;
}

.aichat-msg-bot .aichat-msg-bubble li {
    margin-bottom: 3px;
}

.aichat-msg-bot .aichat-msg-bubble code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.aichat-msg-image {
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.aichat-msg-image img {
    max-width: 100%;
    border-radius: 6px;
    display: block;
}

/* Message actions (feedback) */
.aichat-msg-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--aichat-transition);
}

.aichat-msg:hover .aichat-msg-actions {
    opacity: 1;
}

.aichat-msg-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--aichat-border);
    background: var(--aichat-bg);
    color: var(--aichat-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--aichat-transition);
}

.aichat-msg-action-btn:hover {
    border-color: var(--aichat-primary);
    color: var(--aichat-primary);
    background: var(--aichat-primary-light);
}

.aichat-msg-action-btn.aichat-active {
    background: var(--aichat-primary);
    border-color: var(--aichat-primary);
    color: #fff;
}

.aichat-msg-action-btn svg {
    width: 13px;
    height: 13px;
}

/* ── Typing Indicator ──────────────────────────────────────────────── */
.aichat-typing {
    display: none;
    align-self: flex-start;
    padding: 12px 18px;
    background: var(--aichat-bubble-bot);
    border-radius: var(--aichat-radius-sm);
    border-top-left-radius: 4px;
    gap: 5px;
    align-items: center;
}

.aichat-typing.aichat-visible {
    display: flex;
}

.aichat-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aichat-text-muted);
    animation: aichat-bounce 1.4s infinite ease-in-out both;
}

.aichat-typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.aichat-typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.aichat-typing-dot:nth-child(3) {
    animation-delay: 0s;
}

/* ── Confirmation Card ─────────────────────────────────────────────── */
.aichat-confirm-card {
    background: var(--aichat-bg);
    border: 1px solid var(--aichat-warning);
    border-radius: var(--aichat-radius-sm);
    padding: 16px;
    margin: 4px 0;
}

.aichat-confirm-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--aichat-warning);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aichat-confirm-card-desc {
    font-size: 13px;
    color: var(--aichat-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.aichat-confirm-card-actions {
    display: flex;
    gap: 8px;
}

.aichat-confirm-btn {
    padding: 8px 16px;
    border-radius: var(--aichat-radius-xs);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--aichat-transition);
}

.aichat-confirm-btn-yes {
    background: var(--aichat-primary);
    color: #fff;
}

.aichat-confirm-btn-yes:hover {
    background: var(--aichat-primary-hover);
}

.aichat-confirm-btn-no {
    background: var(--aichat-bg-tertiary);
    color: var(--aichat-text-secondary);
    border: 1px solid var(--aichat-border);
}

.aichat-confirm-btn-no:hover {
    background: var(--aichat-border);
}

/* ── Input Area ────────────────────────────────────────────────────── */
.aichat-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--aichat-border);
    background: var(--aichat-bg);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aichat-image-preview-container {
    position: relative;
    display: inline-block;
    align-self: flex-start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: var(--aichat-bg-tertiary);
    border: 1px solid var(--aichat-border);
}

.aichat-image-preview-container img {
    max-height: 80px;
    max-width: 150px;
    display: block;
    object-fit: cover;
}

.aichat-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s;
}

.aichat-image-remove:hover {
    background: rgba(239, 68, 68, 0.9);
}

.aichat-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aichat-text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.aichat-upload-btn:hover {
    color: var(--aichat-primary);
    background: var(--aichat-primary-light);
}

.aichat-upload-btn svg {
    width: 20px;
    height: 20px;
}

.aichat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--aichat-bg-secondary);
    border: 1px solid var(--aichat-border);
    border-radius: 26px;
    padding: 6px 6px 6px 18px;
    transition: border-color var(--aichat-transition), box-shadow var(--aichat-transition);
}

.aichat-input-wrapper:focus-within {
    border-color: var(--aichat-primary);
    box-shadow: 0 0 0 3px var(--aichat-primary-light);
}

.aichat-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--aichat-text);
    font-family: var(--aichat-font);
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    max-height: 120px;
    min-height: 24px;
    padding: 10px 0;
}

.aichat-input::placeholder {
    color: var(--aichat-text-muted);
}

.aichat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--aichat-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--aichat-transition);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.aichat-send-btn:hover {
    background: var(--aichat-primary-hover);
    transform: scale(1.05);
}

.aichat-send-btn:disabled {
    background: var(--aichat-border);
    cursor: not-allowed;
    transform: none;
}

.aichat-send-btn svg {
    width: 18px;
    height: 18px;
}

/* ── Powered By Footer ─────────────────────────────────────────────── */
.aichat-footer {
    padding: 8px 20px;
    text-align: center;
    font-size: 11px;
    color: var(--aichat-text-muted);
    border-top: 1px solid var(--aichat-border-light);
    background: var(--aichat-bg);
    flex-shrink: 0;
}

/* ── Welcome Screen ────────────────────────────────────────────────── */
.aichat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
}

.aichat-welcome-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--aichat-primary-light);
    color: var(--aichat-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.aichat-welcome-icon svg {
    width: 32px;
    height: 32px;
}

.aichat-welcome-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--aichat-text);
    margin-bottom: 8px;
}

.aichat-welcome-subtitle {
    font-size: 14px;
    color: var(--aichat-text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.aichat-welcome-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.aichat-suggestion-btn {
    padding: 10px 16px;
    border-radius: var(--aichat-radius-xs);
    border: 1px solid var(--aichat-border);
    background: var(--aichat-bg);
    color: var(--aichat-text);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all var(--aichat-transition);
    font-family: var(--aichat-font);
}

.aichat-suggestion-btn:hover {
    border-color: var(--aichat-primary);
    background: var(--aichat-primary-light);
    color: var(--aichat-primary);
}

/* ── Error Banner ──────────────────────────────────────────────────── */
.aichat-error {
    display: none;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--aichat-error);
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.aichat-error.aichat-visible {
    display: block;
}

/* ── Animations ────────────────────────────────────────────────────── */
@keyframes aichat-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aichat-bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@keyframes aichat-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ── Positions ─────────────────────────────────────────────────────── */
.aichat-fab.aichat-pos-left {
    right: auto;
    left: 24px;
}

.aichat-window.aichat-pos-left {
    right: auto;
    left: 24px;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 480px) {

    .aichat-window,
    .aichat-window.aichat-pos-left {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        border: none;
    }

    /* Hide FAB on mobile when window is open */
    .aichat-window.aichat-visible~.aichat-fab,
    .aichat-fab.aichat-open {
        display: none !important;
    }

    .aichat-fab {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }

    .aichat-fab.aichat-pos-left {
        right: auto;
        left: 16px;
    }
}
/* ── Pre-Chat Form ──────────────────────────────────────────────────── */
.aichat-prechat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    height: 100%;
    background: var(--aichat-bg);
}

.aichat-prechat-form {
    width: 100%;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aichat-input-group {
    width: 100%;
}

#aichat-container input.aichat-prechat-input,
#aichat-container input.aichat-prechat-input[type="text"],
#aichat-container input.aichat-prechat-input[type="email"] {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: normal !important;
    padding: 0 16px !important;
    border: 1px solid var(--aichat-border) !important;
    border-radius: var(--aichat-radius-sm) !important;
    background: var(--aichat-bg-secondary) !important;
    color: var(--aichat-text) !important;
    font-family: var(--aichat-font) !important;
    font-size: 14px !important;
    transition: all var(--aichat-transition) !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

#aichat-container input.aichat-prechat-input:focus,
#aichat-container input.aichat-prechat-input[type="text"]:focus,
#aichat-container input.aichat-prechat-input[type="email"]:focus {
    border-color: var(--aichat-primary) !important;
    background: var(--aichat-bg) !important;
    box-shadow: 0 0 0 3px var(--aichat-primary-light) !important;
}

.aichat-prechat-submit {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: var(--aichat-radius-sm);
    background: var(--aichat-primary);
    color: #fff;
    font-family: var(--aichat-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--aichat-transition);
}

.aichat-prechat-submit:hover {
    background: var(--aichat-primary-hover);
    transform: translateY(-1px);
}

.aichat-prechat-submit svg {
    width: 18px;
    height: 18px;
}

/* ===== Live Chat Agent Styles ===== */

.aichat-msg-agent .aichat-msg-avatar {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.aichat-msg-agent .aichat-msg-bubble {
    border-left: 3px solid #10b981;
}

/* Live chat banner */
#aichat-live-banner {
    animation: aichat-slideDown 0.3s ease-out;
}

@keyframes aichat-slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.aichat-live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: aichat-pulse 1.5s ease-in-out infinite;
}

@keyframes aichat-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
