<style>
        /* AI Assistant Styles */
        .ai-assistant-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 9999;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .ai-chat-widget {
            width: 380px;
            height: 600px;
            background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 255, 136, 0.2);
            display: none;
            flex-direction: column;
            overflow: hidden;
            margin-bottom: 20px;
            backdrop-filter: blur(10px);
        }

        .ai-chat-widget.active {
            display: flex;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .ai-chat-header {
            background: linear-gradient(135deg, #00ff88, #00d9ff);
            padding: 20px;
            color: #0a0a0a;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .ai-chat-header-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ai-avatar {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }

        .ai-chat-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 700;
        }

        .ai-chat-header p {
            margin: 0;
            font-size: 12px;
            opacity: 0.8;
        }

        .ai-close-btn {
            background: none;
            border: none;
            color: #0a0a0a;
            font-size: 20px;
            cursor: pointer;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .ai-close-btn:hover {
            opacity: 1;
        }

        .ai-messages-container {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .ai-message {
            display: flex;
            gap: 12px;
            max-width: 85%;
        }

        .ai-message.user {
            align-self: flex-end;
            flex-direction: row-reverse;
        }

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

        .ai-message.user .ai-message-avatar {
            background: linear-gradient(135deg, #00ff88, #00d9ff);
            color: #0a0a0a;
        }

        .ai-message.assistant .ai-message-avatar {
            background: #2a2a3e;
            color: #00ff88;
        }

        .ai-message-content {
            background: #2a2a3e;
            padding: 12px 16px;
            border-radius: 16px;
            color: #ffffff;
            font-size: 14px;
            line-height: 1.5;
        }

        .ai-message.user .ai-message-content {
            background: linear-gradient(135deg, #00ff88, #00d9ff);
            color: #0a0a0a;
        }

        .ai-message-time {
            font-size: 11px;
            opacity: 0.6;
            margin-top: 4px;
        }

        .ai-typing-indicator {
            display: flex;
            gap: 12px;
            max-width: 85%;
        }

        .ai-typing-content {
            background: #2a2a3e;
            padding: 16px;
            border-radius: 16px;
            display: flex;
            gap: 4px;
        }

        .ai-typing-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #00ff88;
            animation: typingPulse 1.4s infinite ease-in-out;
        }

        .ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
        .ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

        @keyframes typingPulse {
            0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
            30% { opacity: 1; transform: scale(1); }
        }

        .ai-quick-actions {
            padding: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .ai-quick-actions-label {
            font-size: 12px;
            color: #888;
            margin-bottom: 12px;
        }

        .ai-quick-actions-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .ai-quick-action-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(0, 255, 136, 0.2);
            border-radius: 12px;
            padding: 12px;
            color: #ffffff;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .ai-quick-action-btn:hover {
            background: rgba(0, 255, 136, 0.1);
            border-color: #00ff88;
        }

        .ai-quick-action-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .ai-input-container {
            padding: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            gap: 12px;
            align-items: flex-end;
        }

        .ai-input {
            flex: 1;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(0, 255, 136, 0.2);
            border-radius: 12px;
            padding: 12px 16px;
            color: #ffffff;
            font-size: 14px;
            resize: none;
            max-height: 100px;
            min-height: 44px;
        }

        .ai-input:focus {
            outline: none;
            border-color: #00ff88;
            box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
        }

        .ai-input::placeholder {
            color: #888;
        }

        .ai-send-btn {
            background: linear-gradient(135deg, #00ff88, #00d9ff);
            border: none;
            border-radius: 12px;
            width: 44px;
            height: 44px;
            color: #0a0a0a;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ai-send-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
        }

        .ai-send-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .ai-float-btn {
            width: 64px;
            height: 64px;
            background: linear-gradient(135deg, #00ff88, #00d9ff);
            border: none;
            border-radius: 50%;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #0a0a0a;
            transition: all 0.3s;
            position: relative;
        }

        .ai-float-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 40px rgba(0, 255, 136, 0.4);
        }

        .ai-notification-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            width: 20px;
            height: 20px;
            background: #ff4757;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

        .ai-pulse {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: #00ff88;
            opacity: 0.2;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); opacity: 0.2; }
            50% { transform: scale(1.2); opacity: 0.1; }
            100% { transform: scale(1.4); opacity: 0; }
        }

        .ai-tooltip {
            position: absolute;
            bottom: 80px;
            right: 0;
            background: #1a1a2e;
            color: white;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 14px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
            border: 1px solid rgba(0, 255, 136, 0.2);
        }

        .ai-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            right: 20px;
            border: 8px solid transparent;
            border-top-color: #1a1a2e;
        }

        .ai-float-btn:hover + .ai-tooltip {
            opacity: 1;
        }

        /* Mobile responsive */
        @media (max-width: 480px) {
            .ai-chat-widget {
                width: 95vw;
                height: 80vh;
                right: 2.5vw;
                bottom: 100px;
            }
        }

        /* Scrollbar styling */
        .ai-messages-container::-webkit-scrollbar {
            width: 6px;
        }

        .ai-messages-container::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 3px;
        }

        .ai-messages-container::-webkit-scrollbar-thumb {
            background: rgba(0, 255, 136, 0.3);
            border-radius: 3px;
        }

        .ai-messages-container::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 255, 136, 0.5);
        }
    </style>