/**
 * uSpark Leads & AI Chatbot - Premium Frontend Stylesheet
 * Brand Palette:
 * Primary Blue: #0b6bff
 * Accent Gold: #f7b500
 * Dark Navy: #0b1a2e
 * Grey: #687280
 * Light: #f4f6fa
 * Black: #04080e
 */

:root {
    --uspark-blue: #0b6bff;
    --uspark-blue-hover: #2b7fff;
    --uspark-blue-glow: rgba(11, 107, 255, 0.45);
    --uspark-gold: #f7b500;
    --uspark-gold-hover: #ffc107;
    --uspark-gold-glow: rgba(247, 181, 0, 0.45);
    --uspark-navy: #0b1a2e;
    --uspark-dark: #04080e;
    --uspark-grey: #687280;
    --uspark-light: #f4f6fa;
    --uspark-radius: 20px;
    --uspark-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --uspark-bottom-offset: 95px; /* Lifted up to never obstruct jump-to-top button */

    /* Default Theme Variables (Dark Mode by default) */
    --us-bg-window: linear-gradient(180deg, #0b1a2e 0%, #04080e 100%);
    --us-bg-card: rgba(11, 26, 46, 0.94);
    --us-bg-header: linear-gradient(135deg, #0b1a2e 0%, #081423 100%);
    --us-bg-footer: rgba(4, 8, 14, 0.95);
    --us-bg-input: rgba(255, 255, 255, 0.06);
    --us-border: rgba(11, 107, 255, 0.28);
    --us-border-gold: rgba(247, 181, 0, 0.4);
    --us-text-main: #f4f6fa;
    --us-text-heading: #ffffff;
    --us-text-muted: #94a3b8;
    --us-bot-bubble-bg: rgba(11, 107, 255, 0.12);
    --us-bot-bubble-border: rgba(11, 107, 255, 0.25);
    --us-bot-bubble-text: #f4f6fa;
    --us-avatar-bg: #ffffff;           /* ← WHITE in dark mode so logo pops */
    --us-avatar-border: var(--uspark-blue, #0b6bff);
    --us-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(11, 107, 255, 0.25);
}

/* ==========================================================================
   Light Mode Theme Overrides (Auto-adapts to website light mode)
   ========================================================================== */
.uspark-bot-wrapper.uspark-theme-light,
[data-theme="light"] .uspark-bot-wrapper,
body.light .uspark-bot-wrapper,
body.light-mode .uspark-bot-wrapper,
html.light .uspark-bot-wrapper,
html.light-mode .uspark-bot-wrapper,
body.elementor-light .uspark-bot-wrapper {
    --us-bg-window: linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
    --us-bg-card: rgba(255, 255, 255, 0.96);
    --us-bg-header: linear-gradient(135deg, #ffffff 0%, #eef3ff 100%);
    --us-bg-footer: #ffffff;
    --us-bg-input: #eef2fa;
    --us-border: rgba(11, 107, 255, 0.22);
    --us-border-gold: rgba(247, 181, 0, 0.6);
    --us-text-main: #0b1a2e;
    --us-text-heading: #04080e;
    --us-text-muted: #64748b;
    --us-bot-bubble-bg: #eef4ff;
    --us-bot-bubble-border: rgba(11, 107, 255, 0.2);
    --us-bot-bubble-text: #0b1a2e;
    --us-avatar-bg: #0b1a2e;           /* ← DARK NAVY in light mode so logo pops */
    --us-avatar-border: #0b1a2e;
    --us-shadow: 0 20px 50px rgba(11, 107, 255, 0.18), 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Base Root Container */
.uspark-bot-wrapper {
    position: fixed;
    bottom: var(--uspark-bottom-offset);
    right: 25px;
    z-index: 999999;
    font-family: var(--uspark-font);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.uspark-bot-wrapper *,
.uspark-bot-wrapper *::before,
.uspark-bot-wrapper *::after {
    box-sizing: border-box;
    font-family: inherit;
}

/* ==========================================================================
   Floating Launcher Button & Glowing Aura
   ========================================================================== */
.uspark-bot-launcher {
    width: var(--uspark-launcher-btn-size, 74px);
    height: var(--uspark-launcher-btn-size, 74px);
    border-radius: 50%;
    background: var(--uspark-launcher-bg-dark, #0b1a2e);
    border: 2.5px solid var(--uspark-launcher-border, var(--uspark-blue));
    cursor: pointer;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 32px rgba(11, 107, 255, 0.45), 0 0 25px rgba(247, 181, 0, 0.35);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.uspark-bot-launcher:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 16px 42px rgba(11, 107, 255, 0.6), 0 0 35px var(--uspark-gold-glow);
    border-color: var(--uspark-gold);
}

/* Light Theme Mode Launcher (Deep Navy on White Website) */
.uspark-theme-light .uspark-bot-launcher,
[data-theme="light"] .uspark-bot-launcher,
body.light .uspark-bot-launcher,
body.light-mode .uspark-bot-launcher,
html.light .uspark-bot-launcher,
html.light-mode .uspark-bot-launcher {
    background: var(--uspark-launcher-bg-light, linear-gradient(135deg, #0b1a2e 0%, #04080e 100%));
    border: 2.5px solid var(--uspark-gold);
    box-shadow: 0 10px 30px rgba(11, 107, 255, 0.35), 0 0 20px rgba(247, 181, 0, 0.3);
}

.uspark-launcher-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.uspark-glow-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 107, 255, 0.45) 0%, transparent 70%);
    animation: usparkPulse 3s infinite;
    pointer-events: none;
}

.uspark-glow-ring-gold {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 181, 0, 0.35) 0%, transparent 65%);
    animation: usparkPulse 3s infinite 1.5s;
    pointer-events: none;
}

.uspark-launcher-icon {
    width: var(--uspark-launcher-icon-size, 54px);
    height: var(--uspark-launcher-icon-size, 54px);
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

.uspark-close-icon {
    width: 28px;
    height: 28px;
    color: #374151;
    display: none;
    transition: transform 0.3s ease;
}

.uspark-bot-wrapper.uspark-active .uspark-launcher-icon {
    display: none;
}

.uspark-bot-wrapper.uspark-active .uspark-close-icon {
    display: block;
    transform: rotate(90deg);
}

/* ── DARK mode: OPEN launcher → white circle, dark X ── */
.uspark-bot-wrapper.uspark-active .uspark-bot-launcher {
    background: #ffffff !important;
    border: 2.5px solid var(--uspark-gold, #f7b500) !important;
    box-shadow: 0 10px 32px rgba(11, 107, 255, 0.4), 0 0 22px rgba(247, 181, 0, 0.3) !important;
}
.uspark-bot-wrapper.uspark-active .uspark-close-icon {
    color: #1e293b; /* dark navy X on white circle */
}

/* ── LIGHT mode: OPEN launcher → dark navy circle, white X ── */
.uspark-theme-light.uspark-active .uspark-bot-launcher,
.uspark-bot-wrapper.uspark-theme-light.uspark-active .uspark-bot-launcher {
    background: #0b1a2e !important;
    border: 2.5px solid var(--uspark-gold, #f7b500) !important;
    box-shadow: 0 10px 30px rgba(11, 107, 255, 0.35), 0 0 20px rgba(247, 181, 0, 0.25) !important;
}
.uspark-bot-wrapper.uspark-theme-light.uspark-active .uspark-close-icon {
    color: #ffffff; /* white X on dark navy circle */
}

.uspark-unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--uspark-gold), #e09b00);
    color: #04080e;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #04080e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: usparkBounce 2s infinite;
}

/* ==========================================================================
   Proactive Greeting Bubble (On landing)
   ========================================================================== */
.uspark-greeting-bubble {
    position: absolute;
    bottom: calc(var(--uspark-launcher-btn-size, 74px) + 12px);
    right: 0;
    width: 320px;
    background: var(--us-bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid var(--us-border);
    box-shadow: var(--us-shadow);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.uspark-greeting-bubble.uspark-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.uspark-greeting-avatar {
    width: calc(var(--uspark-chat-avatar-size, 38px) + 10px);
    height: calc(var(--uspark-chat-avatar-size, 38px) + 10px);
    min-width: calc(var(--uspark-chat-avatar-size, 38px) + 10px);
    border-radius: 50%;
    background: var(--us-avatar-bg);
    border: 2px solid var(--uspark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 12px var(--uspark-blue-glow);
}

.uspark-mono-img {
    width: var(--uspark-chat-avatar-size, 38px);
    height: var(--uspark-chat-avatar-size, 38px);
    object-fit: contain;
}

.uspark-online-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid #04080e;
    box-shadow: 0 0 6px #10b981;
}

.uspark-greeting-content {
    flex: 1;
}

.uspark-greeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.uspark-greeting-header strong {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--uspark-gold);
}

.uspark-bubble-close {
    background: transparent;
    border: none;
    color: var(--us-text-muted);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.uspark-bubble-close:hover {
    color: var(--us-text-heading);
}

.uspark-greeting-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--us-text-main);
}

/* ==========================================================================
   Main Chat Window
   ========================================================================== */
.uspark-chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 400px;
    height: 610px;
    max-height: calc(100vh - 120px);
    background: var(--us-bg-window);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid var(--us-border);
    border-radius: var(--uspark-radius);
    box-shadow: var(--us-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.92);
    transform-origin: bottom right;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.uspark-bot-wrapper.uspark-active .uspark-chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Ambient Glowing Background Orbs */
.uspark-ambient-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.uspark-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.22;
}

.uspark-orb-blue {
    width: 220px;
    height: 220px;
    background: var(--uspark-blue);
    top: -40px;
    left: -40px;
    animation: usparkOrbFloat 12s infinite alternate ease-in-out;
}

.uspark-orb-gold {
    width: 180px;
    height: 180px;
    background: var(--uspark-gold);
    bottom: 60px;
    right: -30px;
    animation: usparkOrbFloat 10s infinite alternate-reverse ease-in-out;
}

.uspark-mesh-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(11, 107, 255, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

/* Chat Header */
.uspark-chat-header {
    background: var(--us-bg-header);
    padding: 16px 20px;
    border-bottom: 1.5px solid var(--us-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.uspark-chat-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--uspark-blue), var(--uspark-gold), transparent);
}

.uspark-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uspark-avatar-box {
    width: calc(var(--uspark-chat-avatar-size, 38px) + 10px);
    height: calc(var(--uspark-chat-avatar-size, 38px) + 10px);
    border-radius: 50%;
    background: var(--us-avatar-bg);
    border: 2px solid var(--uspark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 14px var(--uspark-blue-glow);
}

.uspark-avatar-box .uspark-mono-img {
    width: var(--uspark-chat-avatar-size, 38px);
    height: var(--uspark-chat-avatar-size, 38px);
}

.uspark-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #04080e;
    box-shadow: 0 0 6px #10b981;
}

.uspark-header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--us-text-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}

.uspark-ai-chip {
    font-size: 10px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--uspark-blue), var(--uspark-gold));
    color: #04080e;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.uspark-header-info p {
    margin: 3px 0 0;
    font-size: 11.5px;
    color: var(--us-text-muted);
}

.uspark-header-controls button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--us-border);
    color: var(--us-text-muted);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.uspark-header-controls button:hover {
    background: rgba(11, 107, 255, 0.25);
    color: var(--us-text-heading);
    border-color: var(--uspark-blue);
}

/* ==========================================================================
   Messages Stream
   ========================================================================== */
.uspark-chat-messages {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
}

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

.uspark-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(11, 107, 255, 0.3);
    border-radius: 10px;
}

/* Message Bubbles */
.uspark-msg {
    display: flex;
    gap: 10px;
    max-width: 86%;
    animation: usparkMsgIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.uspark-msg-bot .uspark-msg-avatar {
    width: calc(var(--uspark-chat-avatar-size, 38px) - 2px);
    height: calc(var(--uspark-chat-avatar-size, 38px) - 2px);
    min-width: calc(var(--uspark-chat-avatar-size, 38px) - 2px);
    border-radius: 50%;
    background: var(--us-avatar-bg);
    border: 1.5px solid var(--uspark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--uspark-blue-glow);
}

.uspark-msg-bot .uspark-msg-avatar img {
    width: calc(var(--uspark-chat-avatar-size, 38px) - 10px);
    height: calc(var(--uspark-chat-avatar-size, 38px) - 10px);
    object-fit: contain;
}

.uspark-msg-bot .uspark-msg-body {
    background: var(--us-bot-bubble-bg);
    border: 1px solid var(--us-bot-bubble-border);
    color: var(--us-bot-bubble-text);
    padding: 12px 16px;
    border-radius: 16px 16px 16px 4px;
    font-size: 13.5px;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.uspark-msg-bot .uspark-msg-body strong {
    color: var(--uspark-gold);
}

.uspark-theme-light .uspark-msg-bot .uspark-msg-body strong {
    color: #d97706; /* Darker gold for light mode legibility */
}

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

.uspark-msg-user .uspark-msg-body {
    background: var(--uspark-user-bubble-bg, linear-gradient(135deg, #0b6bff 0%, #0056cc 100%));
    color: var(--uspark-user-bubble-text, #ffffff);
    padding: 12px 16px;
    border-radius: 16px 16px 4px 16px;
    font-size: 13.5px;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(11,107,255,0.45);
    font-weight: 500;
}

/* Light mode: user bubble — keep strong blue so it's clearly visible on white */
.uspark-theme-light .uspark-msg-user .uspark-msg-body {
    background: linear-gradient(135deg, #0b6bff 0%, #004fc4 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(11,107,255,0.35);
}

/* Typing Indicator Animation */
.uspark-typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: var(--us-bot-bubble-bg);
    border-radius: 16px;
    border: 1px solid var(--us-bot-bubble-border);
    width: fit-content;
}

.uspark-typing-indicator span {
    width: 7px;
    height: 7px;
    background: var(--uspark-gold);
    border-radius: 50%;
    animation: usparkDot 1.4s infinite ease-in-out both;
}

.uspark-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.uspark-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

/* Quick Option Chips (Sleek Tech Buttons with Smooth Hover) */
.uspark-quick-chips {
    padding: 8px 16px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 2;
    animation: usparkFadeIn 0.3s ease;
}

/* ── DARK mode chips: navy bg + gold text ── */
.uspark-chip-btn {
    background: var(--uspark-chip-bg, #0b1a2e);
    border: 1.5px solid var(--uspark-chip-border, rgba(247, 181, 0, 0.55));
    color: var(--uspark-chip-text, #f7b500);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(247,181,0,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.uspark-chip-btn:hover {
    background: linear-gradient(135deg, var(--uspark-blue, #0b6bff) 0%, #0056cc 100%);
    border-color: var(--uspark-blue, #0b6bff);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(11,107,255,0.45), 0 0 15px rgba(11,107,255,0.3);
    transform: translateY(-2px);
}

/* ── LIGHT mode chips: dark navy bg + gold text (pops on white window) ── */
.uspark-theme-light .uspark-chip-btn {
    background: #0b1a2e;
    border: 1.5px solid rgba(247, 181, 0, 0.6);
    color: #f7b500;
    box-shadow: 0 4px 14px rgba(11, 26, 46, 0.25);
}

.uspark-theme-light .uspark-chip-btn:hover {
    background: linear-gradient(135deg, var(--uspark-blue, #0b6bff) 0%, #0056cc 100%);
    border-color: var(--uspark-blue, #0b6bff);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(11,107,255,0.4);
}

/* ==========================================================================
   Chat Input Footer
   ========================================================================== */
.uspark-chat-footer {
    padding: 12px 16px 14px;
    background: var(--us-bg-footer);
    border-top: 1.5px solid var(--us-border);
    position: relative;
    z-index: 2;
}

.uspark-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--us-bg-input);
    border: 1.5px solid var(--us-border);
    border-radius: 12px;
    padding: 4px 6px 4px 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.uspark-chat-form:focus-within {
    border-color: var(--uspark-blue);
    box-shadow: 0 0 16px var(--uspark-blue-glow);
}

.uspark-user-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--uspark-input-text, var(--us-text-heading)) !important;
    caret-color: var(--uspark-blue) !important;
    font-size: 13.5px;
    font-weight: 500;
    outline: none;
    padding: 8px 0;
}

.uspark-user-input::placeholder {
    color: var(--us-text-muted);
}

.uspark-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--uspark-send-btn-bg, linear-gradient(135deg, var(--uspark-blue), #0056cc));
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px var(--uspark-blue-glow);
}

.uspark-send-btn:hover {
    filter: brightness(1.15);
    transform: scale(1.06);
}

.uspark-powered-by {
    font-size: 10.5px;
    color: var(--us-text-muted);
    text-align: center;
    margin-top: 8px;
}

.uspark-powered-by strong {
    color: var(--uspark-gold);
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes usparkPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes usparkBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes usparkOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.15); }
}

@keyframes usparkMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes usparkDot {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

@keyframes usparkFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .uspark-bot-wrapper {
        bottom: 80px;
        right: 15px;
    }
    .uspark-chat-window {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        bottom: 0;
        right: 0;
    }
    .uspark-greeting-bubble {
        width: calc(100vw - 30px);
        right: 0;
    }
}
