
        /* ============================================================
           CHATBOT AI PRO v4.0 — ESTILOS ESPECTACULARES UNIVERSALES
           ============================================================ */

        :root {
            --neon-cyan: #00acc1;
            --neon-cyan-dim: rgba(0, 172, 193, 0.15);
            --neon-purple: #7c4dff;
            --neon-purple-dim: rgba(124, 77, 255, 0.15);
            --neon-pink: #e91e63;
            --neon-green: #00c853;
            --neon-orange: #ff6d00;
            --neon-yellow: #ffd600;

            --bg-primary: #ffffff;
            --bg-secondary: #f5f5f7;
            --bg-tertiary: #ffffff;
            --bg-elevated: #fafafa;
            --bg-input: #f0f0f5;

            --text-primary: #1a1a2e;
            --text-secondary: #4a4a6a;
            --text-muted: #8888a0;
            --text-inverse: #ffffff;

            --success: #00c853;
            --warning: #ffd600;
            --danger: #ff1744;
            --info: #00acc1;

            --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
            --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
            --shadow-glow-cyan: 0 0 20px rgba(0, 172, 193, 0.3), 0 0 40px rgba(0, 172, 193, 0.1);
            --shadow-glow-purple: 0 0 20px rgba(124, 77, 255, 0.3), 0 0 40px rgba(124, 77, 255, 0.1);

            --radius-sm: 8px;
            --radius-md: 14px;
            --radius-lg: 20px;
            --radius-xl: 28px;
            --radius-full: 9999px;

            --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

            --z-fab: 1000;
            --z-chat: 1001;
            --z-tooltip: 1002;
            --z-overlay: 2000;
            --z-modal: 2001;
            --z-toast: 3000;
        }

        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: var(--bg-primary); /* #ffffff */
            color: var(--text-primary); /* #1a1a2e */
            min-height: 100vh;
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* ========== ANIMATED BACKGROUND PARTICLES ========== */
        .particles-bg {
            position: fixed;
            inset: 0;
            z-index: 0;
            overflow: hidden;
            pointer-events: none;
        }
        .particle {
            position: absolute;
            border-radius: 50%;
            opacity: 0.3;
            animation: floatParticle linear infinite;
        }
        @keyframes floatParticle {
            0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
            10% { opacity: 0.3; }
            90% { opacity: 0.3; }
            100% { transform: translateY(-20vh) rotate(720deg); opacity: 0; }
        }

        /* ========== LOADING SCREEN ========== */
        .loading-screen {
            position: fixed;
            inset: 0;
            background: var(--bg-primary); /* #ffffff */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 99999;
            transition: opacity 0.6s ease, visibility 0.6s ease;
        }
        .loading-screen.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .loading-ring {
            width: 64px;
            height: 64px;
            border: 3px solid rgba(0, 242, 254, 0.1);
            border-top-color: var(--neon-cyan);
            border-right-color: var(--neon-purple);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .loading-text {
            margin-top: 24px;
            color: var(--text-secondary); /* #4a4a6a */
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 1px;
        }
        .loading-brand {
            margin-top: 8px;
            font-size: 12px;
            color: var(--neon-cyan);
            font-weight: 700;
            letter-spacing: 3px;
            animation: glowText 2s ease-in-out infinite alternate;
        }
        @keyframes glowText {
            from { text-shadow: 0 0 5px rgba(0,242,254,0.3); }
            to { text-shadow: 0 0 20px rgba(0,242,254,0.6), 0 0 40px rgba(168,85,247,0.3); }
        }

        /* ========== TOAST NOTIFICATIONS ========== */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: var(--z-toast);
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }
        .toast {
            background: var(--bg-elevated); /* #fafafa */
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: var(--radius-md);
            padding: 14px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: var(--shadow-lg);
            animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: all;
            max-width: 360px;
            backdrop-filter: blur(10px);
        }
        .toast.removing { animation: toastOut 0.3s ease forwards; }
        @keyframes toastIn {
            from { opacity: 0; transform: translateX(40px) scale(0.95); }
            to { opacity: 1; transform: translateX(0) scale(1); }
        }
        @keyframes toastOut {
            from { opacity: 1; transform: translateX(0) scale(1); }
            to { opacity: 0; transform: translateX(40px) scale(0.95); }
        }
        .toast-icon { font-size: 20px; flex-shrink: 0; }
        .toast-content { flex: 1; }
        .toast-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
        .toast-message { font-size: 12px; color: var(--text-secondary); /* #4a4a6a */ }
        .toast-close {
            background: none; border: none; color: var(--text-muted); /* #8888a0 */
            cursor: pointer; font-size: 16px; padding: 2px;
            transition: color var(--transition-fast);
        }
        .toast-close:hover { color: var(--text-primary); /* #1a1a2e */ }
        .toast.success { border-left: 3px solid var(--success); }
        .toast.error { border-left: 3px solid var(--danger); }
        .toast.warning { border-left: 3px solid var(--warning); }
        .toast.info { border-left: 3px solid var(--info); }

        /* ========== CONTEXT MENU ========== */
        .context-menu {
            position: fixed;
            background: var(--bg-elevated); /* #fafafa */
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: var(--radius-md);
            padding: 6px;
            z-index: 5000;
            box-shadow: var(--shadow-lg);
            display: none;
            min-width: 160px;
            animation: menuIn 0.15s ease;
        }
        .context-menu.show { display: block; }
        @keyframes menuIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }
        .context-menu-item {
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            color: var(--text-secondary); /* #4a4a6a */
            cursor: pointer;
            transition: all var(--transition-fast);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .context-menu-item:hover {
            background: rgba(0, 242, 254, 0.08);
            color: var(--text-primary); /* #1a1a2e */
        }
        .context-menu-divider {
            height: 1px;
            background: rgba(255,255,255,0.06);
            margin: 4px 0;
        }

        /* ========== DEMO CONTENT ========== */
        .demo-page {
            max-width: 1200px;
            margin: 0 auto;
            padding: 60px 24px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 32px;
            position: relative;
            z-index: 1;
        }
        .hero-card {
            background: linear-gradient(145deg, var(--bg-secondary), var(--bg-elevated));
            border: 1px solid rgba(0, 242, 254, 0.15);
            border-radius: var(--radius-xl);
            padding: 48px;
            text-align: center;
            max-width: 700px;
            width: 100%;
            position: relative;
            overflow: hidden;
            animation: cardFloat 6s ease-in-out infinite;
        }
        @keyframes cardFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }
        .hero-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 30% 30%, rgba(0, 242, 254, 0.08), transparent 50%),
                        radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.06), transparent 50%);
            animation: rotateGlow 20s linear infinite;
            pointer-events: none;
        }
        @keyframes rotateGlow {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--neon-cyan-dim);
            border: 1px solid rgba(0, 242, 254, 0.3);
            color: var(--neon-cyan);
            padding: 8px 20px;
            border-radius: var(--radius-full);
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            margin-bottom: 24px;
            position: relative;
            z-index: 1;
        }
        .hero-badge .pulse-dot {
            width: 8px;
            height: 8px;
            background: var(--neon-cyan);
            border-radius: 50%;
            animation: pulseDot 2s ease-in-out infinite;
        }
        @keyframes pulseDot {
            0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--neon-cyan); }
            50% { opacity: 0.5; transform: scale(0.8); box-shadow: 0 0 4px var(--neon-cyan); }
        }
        .hero-card h1 {
            font-size: 2.8rem;
            font-weight: 800;
            color: var(--text-primary); /* #1a1a2e */
            margin-bottom: 16px;
            line-height: 1.2;
            position: relative;
            z-index: 1;
        }
        .hero-card h1 span {
            background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .hero-card p {
            color: var(--text-secondary); /* #4a4a6a */
            font-size: 1.15rem;
            line-height: 1.7;
            margin-bottom: 8px;
            position: relative;
            z-index: 1;
        }
        .hero-card .hint {
            color: var(--text-muted); /* #8888a0 */
            font-size: 0.95rem;
            margin-top: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            position: relative;
            z-index: 1;
        }
        .hero-card .hint .arrow { animation: bounceDown 1.5s ease-in-out infinite; }
        @keyframes bounceDown {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(6px); }
        }
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
            width: 100%;
            max-width: 700px;
        }
        .feature-item {
            background: var(--bg-secondary); /* #f5f5f7 */
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: var(--radius-lg);
            padding: 20px;
            text-align: center;
            transition: var(--transition-base);
        }
        .feature-item:hover {
            border-color: rgba(0, 242, 254, 0.2);
            transform: translateY(-2px);
        }
        .feature-item .icon { font-size: 1.8rem; margin-bottom: 8px; }
        .feature-item h4 { font-size: 0.9rem; color: var(--text-primary); /* #1a1a2e */ margin-bottom: 4px; }
        .feature-item p { font-size: 0.8rem; color: var(--text-muted); /* #8888a0 */ }

        /* ========== FAB BUTTON ========== */
        .chat-fab {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 64px;
            height: 64px;
            border-radius: 50%;
            cursor: pointer;
            z-index: var(--z-fab);
            background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-bounce);
            box-shadow: var(--shadow-glow-cyan), var(--shadow-lg);
            overflow: hidden;
            background-size: cover;
            background-position: center;
        }
        .chat-fab::before {
            content: '';
            position: absolute;
            inset: 0;
            /*background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));*/
            opacity: 0;
            transition: opacity var(--transition-base);
        }
        .chat-fab:hover {
            transform: scale(1.12) rotate(8deg);
            box-shadow: 0 0 30px rgba(0, 242, 254, 0.5), 0 0 60px rgba(168, 85, 247, 0.3), var(--shadow-lg);
        }
        .chat-fab:hover::before { opacity: 1; }
        .chat-fab:active { transform: scale(0.92); }
        .chat-fab .fab-icon {
            font-size: 28px;
            position: relative;
            z-index: 1;
            transition: transform var(--transition-base);
        }
        .chat-fab.open .fab-icon { transform: rotate(90deg); }
        .chat-fab .fab-status {
            position: absolute;
            bottom: 3px;
            right: 3px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 3px solid var(--bg-primary);
            z-index: 2;
            transition: all var(--transition-base);
        }
        .chat-fab .fab-status.online {
            background: var(--success);
            box-shadow: 0 0 8px var(--success);
        }
        .chat-fab .fab-status.offline {
            background: var(--danger);
            box-shadow: 0 0 8px var(--danger);
        }
        .chat-fab .fab-status.away {
            background: var(--warning);
            box-shadow: 0 0 8px var(--warning);
        }
        .chat-fab .unread-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            min-width: 22px;
            height: 22px;
            padding: 0 6px;
            background: var(--danger);
            color: white;
            font-size: 11px;
            font-weight: 800;
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--bg-primary);
            z-index: 3;
            animation: badgePop 0.4s var(--transition-bounce);
            display: none;
        }
        .chat-fab .unread-badge.show { display: flex; }
        @keyframes badgePop {
            0% { transform: scale(0); }
            70% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        /* FAB Tooltip */
        .fab-tooltip {
            position: fixed;
            bottom: 96px;
            right: 24px;
            background: var(--bg-elevated); /* #fafafa */
            border: 1px solid rgba(0, 242, 254, 0.25);
            border-radius: var(--radius-md);
            padding: 10px 16px;
            color: var(--neon-cyan);
            font-size: 13px;
            font-weight: 600;
            z-index: var(--z-tooltip);
            opacity: 0;
            transform: translateY(8px) scale(0.95);
            transition: all var(--transition-base);
            pointer-events: none;
            white-space: nowrap;
            box-shadow: var(--shadow-md);
            backdrop-filter: blur(10px);
        }
        .fab-tooltip.show {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        .fab-tooltip::after {
            content: '';
            position: absolute;
            bottom: -6px;
            right: 20px;
            width: 12px;
            height: 12px;
            background: var(--bg-elevated); /* #fafafa */
            border-right: 1px solid rgba(0, 242, 254, 0.25);
            border-bottom: 1px solid rgba(0, 242, 254, 0.25);
            transform: rotate(45deg);
        }

        /* ========== CHAT WINDOW ========== */
        .chat-window {
            position: fixed;
            bottom: 10px;
            right: 24px;
            width: 420px;
            max-width: calc(100vw - 32px);
            height: 95vh;
            max-height: calc(100vh - 40px);
            background: var(--bg-primary); /* #ffffff */
            border-radius: var(--radius-xl);
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 242, 254, 0.15);
            display: none;
            flex-direction: column;
            z-index: 9999;
            overflow: hidden;
            opacity: 0;
            transform: translateY(20px) scale(0.96);
            transition: opacity var(--transition-base), transform var(--transition-base);
        }

        .chat-window.open {
            display: flex;
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        /* Header */
        .chat-header {
            background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(0, 242, 254, 0.15);
            position: relative;
            flex-shrink: 0;
        }
        .chat-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
            opacity: 0.5;
        }
        .chat-title {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .chat-title .avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            position: relative;
            flex-shrink: 0;
            background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
            overflow: hidden;
        }
        .chat-title .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .chat-title .avatar .status-ring {
            position: absolute;
            inset: -3px;
            border-radius: 50%;
            border: 2px solid transparent;
            border-top-color: var(--neon-cyan);
            animation: spinRing 2s linear infinite;
            pointer-events: none;
        }
        @keyframes spinRing { to { transform: rotate(360deg); } }
        .chat-title .title-info h3 {
            color: #e8e8ff;
            font-size: 0.95rem;
            font-weight: 700;
            margin: 0;
            letter-spacing: 0.3px;
        }
        .chat-title .title-info .status-line {
            font-size: 0.78rem;
            color: var(--text-muted); /* #8888a0 */
            margin: 2px 0 0;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .chat-title .title-info .status-line .dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .chat-title .title-info .status-line .dot.online {
            background: var(--success);
            box-shadow: 0 0 6px var(--success);
            animation: statusPulse 2s ease-in-out infinite;
        }
        .chat-title .title-info .status-line .dot.offline {
            background: var(--danger);
            box-shadow: 0 0 6px var(--danger);
        }
        .chat-title .title-info .status-line .dot.away {
            background: var(--warning);
            box-shadow: 0 0 6px var(--warning);
        }
        @keyframes statusPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(0.85); }
        }
        .chat-header-actions {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .header-btn {
            background: none;
            border: none;
            color: var(--text-secondary); /* #4a4a6a */
            font-size: 18px;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
            position: relative;
        }
        .header-btn:hover {
            background: rgba(255,255,255,0.08);
            color: var(--text-primary); /* #1a1a2e */
        }
        .header-btn.close:hover {
            background: rgba(239, 68, 68, 0.15);
            color: var(--danger);
            transform: rotate(90deg);
        }
        .header-btn .btn-tooltip {
            position: absolute;
            top: -36px;
            left: 50%;
            transform: translateX(-50%) scale(0.9);
            background: var(--bg-elevated); /* #fafafa */
            border: 1px solid rgba(255,255,255,0.1);
            padding: 4px 10px;
            border-radius: var(--radius-sm);
            font-size: 11px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: all var(--transition-fast);
        }
        .header-btn:hover .btn-tooltip {
            opacity: 1;
            transform: translateX(-50%) scale(1);
        }

        /* ========== OFFLINE BANNER ========== */
        .offline-banner {
            background: linear-gradient(90deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.08));
            border-left: 3px solid var(--danger);
            padding: 12px 16px;
            display: none;
            align-items: center;
            gap: 12px;
            font-size: 13px;
            color: var(--text-secondary); /* #4a4a6a */
            flex-shrink: 0;
            animation: slideDown 0.3s ease;
        }
        .offline-banner.show { display: flex; }
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .offline-banner .banner-icon { font-size: 20px; flex-shrink: 0; }
        .offline-banner strong { color: var(--danger); font-weight: 600; }
        .offline-banner .banner-sub {
            font-size: 12px;
            color: var(--text-muted); /* #8888a0 */
            margin-top: 2px;
        }

        /* ========== MESSAGES AREA ========== */
        .chat-messages {
            flex: 1;
            padding: 16px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
            background: rgba(5, 5, 15, 0.6);
            scroll-behavior: smooth;
            position: relative;
        }
        .chat-messages::-webkit-scrollbar { width: 5px; }
        .chat-messages::-webkit-scrollbar-track { background: transparent; }
        .chat-messages::-webkit-scrollbar-thumb {
            background: rgba(0, 242, 254, 0.2);
            border-radius: var(--radius-full);
        }
        .chat-messages::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 242, 254, 0.4);
        }

        /* Messages */
        .message {
            max-width: 88%;
            padding: 12px 16px;
            border-radius: var(--radius-lg);
            font-size: 13.5px;
            line-height: 1.6;
            word-wrap: break-word;
            animation: messageIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
        }
        @keyframes messageIn {
            from { opacity: 0; transform: translateY(12px) scale(0.96); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        .message.user {
            background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
            color: var(--text-inverse); /* #ffffff */
            align-self: flex-end;
            border-bottom-right-radius: 6px;
            font-weight: 500;
            box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
        }
        .message.bot {
            background: var(--bg-tertiary); /* #ffffff */
            color: #e8e8ff;
            align-self: flex-start;
            border-bottom-left-radius: 6px;
            border-left: 3px solid var(--neon-cyan);
            box-shadow: var(--shadow-sm);
        }
        .message.bot strong { color: var(--neon-cyan); font-weight: 600; }
        .message.bot em { color: var(--neon-purple); font-style: normal; font-weight: 500; }

        /* Enlaces dentro de mensajes */
        .message a {
            color: var(--neon-cyan);
            text-decoration: none;
            border-bottom: 1px solid rgba(0, 242, 254, 0.4);
            transition: all var(--transition-fast);
        }
        .message a:hover {
            color: var(--neon-purple);
            border-bottom-color: var(--neon-purple);
        }

        /* Botones de acción dentro de mensajes */
        .message .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 12px;
        }
        .message .action-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 18px;
            border-radius: var(--radius-full);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-base);
            text-decoration: none;
            border: none;
        }
        .message .action-btn.web {
            background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
            color: var(--text-inverse); /* #ffffff */
        }
        .message .action-btn.instagram {
            background: linear-gradient(135deg, #833AB4, #E4405F);
            color: white;
        }
        .message .action-btn.whatsapp {
            background: linear-gradient(135deg, #25D366, #128C7E);
            color: white;
        }
        .message .action-btn:hover {
            transform: translateY(-2px);
            filter: brightness(1.05);
        }
        .message .action-btn:active { transform: scale(0.97); }

        .message-time {
            font-size: 10px;
            margin-top: 6px;
            opacity: 0.6;
            font-weight: 400;
        }
        .message.user .message-time { color: rgba(0,0,0,0.5); }
        .message.bot .message-time { color: var(--text-muted); /* #8888a0 */ }

        /* WhatsApp button inside message */
        .whatsapp-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
            padding: 10px 18px;
            background: linear-gradient(135deg, #25D366, #128C7E);
            color: white;
            border: none;
            border-radius: var(--radius-full);
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            transition: all var(--transition-base);
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
        }
        .whatsapp-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
        }
        .whatsapp-cta:active { transform: scale(0.97); }

        /* Quick reply chips in message */
        .quick-replies {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }
        .quick-reply-chip {
            background: rgba(0, 242, 254, 0.1);
            border: 1px solid rgba(0, 242, 254, 0.25);
            color: var(--neon-cyan);
            padding: 6px 14px;
            border-radius: var(--radius-full);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-fast);
            white-space: nowrap;
        }
        .quick-reply-chip:hover {
            background: var(--neon-cyan);
            color: var(--text-inverse); /* #ffffff */
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
        }

        /* Typing indicator */
        .typing-indicator {
            display: flex;
            gap: 5px;
            padding: 16px 20px;
            background: var(--bg-tertiary); /* #ffffff */
            border-radius: var(--radius-lg);
            border-bottom-left-radius: 6px;
            width: fit-content;
            align-self: flex-start;
            border-left: 3px solid var(--neon-cyan);
            animation: messageIn 0.3s ease;
        }
        .typing-indicator span {
            width: 8px;
            height: 8px;
            background: var(--neon-cyan);
            border-radius: 50%;
            animation: typingBlink 1.4s infinite ease-in-out;
        }
        .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
        .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes typingBlink {
            0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
            30% { opacity: 1; transform: scale(1.1); }
        }

        /* ========== QUICK ACTIONS BAR ========== */
        .quick-actions-bar {
            display: flex;
            gap: 8px;
            padding: 10px 16px;
            background: var(--bg-secondary); /* #f5f5f7 */
            border-top: 1px solid rgba(255,255,255,0.04);
            overflow-x: auto;
            scrollbar-width: none;
            flex-shrink: 0;
            transition: max-height var(--transition-base), padding var(--transition-base), opacity var(--transition-base);
        }
        .quick-actions-bar::-webkit-scrollbar { display: none; }
        .quick-actions-bar.hidden {
            max-height: 0;
            padding: 0 16px;
            opacity: 0;
            overflow: hidden;
        }
        .quick-action-btn {
            background: rgba(0, 242, 254, 0.08);
            border: 1px solid rgba(0, 242, 254, 0.2);
            color: var(--neon-cyan);
            padding: 7px 14px;
            border-radius: var(--radius-full);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-fast);
            white-space: nowrap;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .quick-action-btn:hover {
            background: var(--neon-cyan);
            color: var(--text-inverse); /* #ffffff */
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
        }
        .quick-action-btn:active { transform: scale(0.95); }

        /* ========== FAQ PANEL ========== */
        .faq-panel {
            background: var(--bg-secondary); /* #f5f5f7 */
            border-top: 1px solid rgba(255,255,255,0.04);
            max-height: 0;
            overflow: hidden;
            transition: max-height var(--transition-slow);
            flex-shrink: 0;
        }
        .faq-panel.open {
            max-height: 280px;
            overflow-y: auto;
        }
        .faq-panel::-webkit-scrollbar { width: 4px; }
        .faq-panel::-webkit-scrollbar-thumb {
            background: rgba(0, 242, 254, 0.2);
            border-radius: var(--radius-full);
        }
        .faq-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            cursor: pointer;
            color: var(--neon-cyan);
            font-size: 13px;
            font-weight: 600;
            transition: background var(--transition-fast);
            user-select: none;
        }
        .faq-header:hover { background: rgba(0, 242, 254, 0.04); }
        .faq-header .faq-chevron {
            transition: transform var(--transition-base);
            font-size: 12px;
        }
        .faq-panel.open .faq-header .faq-chevron { transform: rotate(180deg); }
        .faq-list {
            padding: 0 16px 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .faq-item {
            padding: 12px 14px;
            background: var(--bg-tertiary); /* #ffffff */
            border-radius: var(--radius-md);
            border-left: 2px solid var(--neon-purple);
            cursor: pointer;
            transition: all var(--transition-fast);
            font-size: 13px;
        }
        .faq-item:hover {
            background: rgba(0, 242, 254, 0.06);
            border-left-color: var(--neon-cyan);
            transform: translateX(3px);
        }
        .faq-item .faq-q {
            font-weight: 600;
            color: var(--neon-cyan);
            margin-bottom: 3px;
            font-size: 12.5px;
        }
        .faq-item .faq-a {
            font-size: 12px;
            color: var(--text-secondary); /* #4a4a6a */
            line-height: 1.5;
        }

        /* ========== INPUT AREA ========== */
        .chat-toolbar {
            display: flex;
            gap: 6px;
            padding: 6px 16px 0;
            background: var(--bg-secondary); /* #f5f5f7 */
            flex-shrink: 0;
        }
        .toolbar-btn {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.08);
            color: var(--text-muted); /* #8888a0 */
            padding: 5px 10px;
            border-radius: var(--radius-sm);
            font-size: 11px;
            cursor: pointer;
            transition: all var(--transition-fast);
            display: flex;
            align-items: center;
            gap: 4px;
            font-family: 'Inter', sans-serif;
        }
        .toolbar-btn:hover {
            border-color: rgba(0, 242, 254, 0.3);
            color: var(--neon-cyan);
            background: rgba(0, 242, 254, 0.05);
        }
        .toolbar-btn.active {
            background: rgba(0, 242, 254, 0.1);
            color: var(--neon-cyan);
            border-color: rgba(0, 242, 254, 0.3);
        }
        .chat-input-area {
            display: flex;
            padding: 10px 14px 14px;
            background: var(--bg-secondary); /* #f5f5f7 */
            gap: 10px;
            align-items: flex-end;
            flex-shrink: 0;
            border-top: 1px solid rgba(255,255,255,0.04);
        }
        .chat-input-wrapper {
            flex: 1;
            position: relative;
        }
        .chat-input-wrapper input {
            width: 100%;
            padding: 12px 18px;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: var(--radius-full);
            background: var(--bg-input); /* #f0f0f5 */
            color: var(--text-primary); /* #1a1a2e */
            outline: none;
            font-size: 14px;
            font-family: 'Inter', sans-serif;
            transition: all var(--transition-fast);
        }
        .chat-input-wrapper input:focus {
            border-color: rgba(0, 242, 254, 0.4);
            box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.08), 0 0 15px rgba(0, 242, 254, 0.1);
        }
        .chat-input-wrapper input::placeholder { color: var(--text-muted); /* #8888a0 */ }
        .send-btn {
            background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            margin-right: 50px;
            color: var(--text-inverse); /* #ffffff */
            transition: all var(--transition-base);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
            box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
        }
        .send-btn:hover {
            transform: scale(1.08);
            box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
        }
        .send-btn:active { transform: scale(0.93); }
        .send-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* ========== SCROLL TO BOTTOM BUTTON ========== */
        .scroll-bottom-btn {
            position: absolute;
            bottom: 80px;
            right: 20px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--bg-elevated); /* #fafafa */
            border: 1px solid rgba(0, 242, 254, 0.3);
            color: var(--neon-cyan);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            box-shadow: var(--shadow-md);
            transition: all var(--transition-base);
            opacity: 0;
            transform: translateY(10px);
            pointer-events: none;
            z-index: 10;
        }
        .scroll-bottom-btn.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }
        .scroll-bottom-btn:hover {
            background: var(--neon-cyan);
            color: var(--text-inverse); /* #ffffff */
        }

        /* ========== ADMIN PANEL ========== */
        .admin-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            z-index: var(--z-overlay);
            display: none;
            backdrop-filter: blur(6px);
            opacity: 0;
            transition: opacity var(--transition-base);
        }
        .admin-overlay.show { display: block; opacity: 1; }
        .admin-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.92);
            width: 92%;
            max-width: 700px;
            max-height: 88vh;
            background: var(--bg-secondary); /* #f5f5f7 */
            border-radius: var(--radius-xl);
            z-index: var(--z-modal);
            display: none;
            flex-direction: column;
            border: 1px solid rgba(0, 242, 254, 0.2);
            box-shadow: 0 30px 80px rgba(0,0,0,0.8), var(--shadow-glow-cyan);
            overflow: hidden;
            opacity: 0;
            transition: all var(--transition-slow);
        }
        .admin-panel.open {
            display: flex;
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        .admin-header {
            padding: 20px 24px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }
        .admin-header h3 {
            color: var(--neon-cyan);
            font-size: 1.1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .admin-header .admin-subtitle {
            color: var(--text-muted); /* #8888a0 */
            font-size: 12px;
            margin-top: 4px;
            font-weight: 400;
        }
        .admin-body {
            flex: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            padding: 0;
        }
        .json-editor-wrapper {
            flex: 1;
            position: relative;
            overflow: hidden;
        }
        .json-editor-wrapper textarea {
            width: 100%;
            height: 100%;
            min-height: 300px;
            padding: 16px 20px;
            background: var(--bg-primary); /* #ffffff */
            color: var(--text-primary); /* #1a1a2e */
            border: none;
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
            font-size: 12.5px;
            line-height: 1.7;
            resize: none;
            outline: none;
            tab-size: 2;
        }
        .json-editor-wrapper .editor-status {
            position: absolute;
            bottom: 12px;
            right: 16px;
            font-size: 11px;
            padding: 4px 10px;
            border-radius: var(--radius-sm);
            font-family: 'JetBrains Mono', monospace;
            transition: all var(--transition-fast);
        }
        .json-editor-wrapper .editor-status.valid {
            background: rgba(34, 197, 94, 0.15);
            color: var(--success);
            border: 1px solid rgba(34, 197, 94, 0.3);
        }
        .json-editor-wrapper .editor-status.invalid {
            background: rgba(239, 68, 68, 0.15);
            color: var(--danger);
            border: 1px solid rgba(239, 68, 68, 0.3);
        }
        .admin-footer {
            padding: 16px 24px;
            border-top: 1px solid rgba(255,255,255,0.06);
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
            flex-shrink: 0;
        }
        .admin-btn {
            padding: 10px 20px;
            border: none;
            border-radius: var(--radius-full);
            cursor: pointer;
            font-weight: 600;
            font-size: 13px;
            font-family: 'Inter', sans-serif;
            transition: all var(--transition-base);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .admin-btn:hover { transform: translateY(-2px); }
        .admin-btn:active { transform: scale(0.97); }
        .admin-btn.primary {
            background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
            color: var(--text-inverse); /* #ffffff */
        }
        .admin-btn.primary:hover { box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4); }
        .admin-btn.secondary {
            background: var(--bg-tertiary); /* #ffffff */
            color: var(--text-primary); /* #1a1a2e */
            border: 1px solid rgba(255,255,255,0.1);
        }
        .admin-btn.secondary:hover {
            border-color: rgba(0, 242, 254, 0.3);
            background: var(--bg-input); /* #f0f0f5 */
        }
        .admin-btn.danger {
            background: rgba(239, 68, 68, 0.15);
            color: var(--danger);
            border: 1px solid rgba(239, 68, 68, 0.3);
        }
        .admin-btn.danger:hover { background: rgba(239, 68, 68, 0.25); }
        .admin-note {
            width: 100%;
            font-size: 11px;
            color: var(--text-muted); /* #8888a0 */
            margin-top: 8px;
            padding-top: 12px;
            border-top: 1px solid rgba(255,255,255,0.04);
            line-height: 1.6;
        }
        .admin-note code {
            background: rgba(255,255,255,0.06);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            color: var(--neon-cyan);
        }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 480px) {
            .chat-window {
                width: 100%;
                max-width: 100%;
                right: 0;
                bottom: 0;
                height: 100dvh;
                max-height: 100dvh;
                border-radius: 0;
                transform: translateY(100%);
            }
            .chat-window.open { transform: translateY(0); }
            .chat-fab {
                bottom: 6px;
                right: 6px;
                width: 56px;
                height: 56px;
            }
            .fab-tooltip {
                bottom: 84px;
                right: 16px;
            }
            .hero-card { padding: 28px 20px; }
            .hero-card h1 { font-size: 1.9rem; }
            .admin-panel {
                width: 100%;
                max-width: 100%;
                max-height: 100vh;
                border-radius: 0;
                top: 0;
                left: 0;
                transform: translate(0, 100%);
            }
            .admin-panel.open { transform: translate(0, 0); }
        }
    