        /* Base Styles */
        :root {
            --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
            --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --accent-color: #00f2fe;
            --dark-bg: #0f172a;
            --darker-bg: #0b1120;
            --light-text: rgba(255, 255, 255, 0.9);
            --lighter-text: #ffffff;
            --border-color: rgba(255, 255, 255, 0.1);
            --user-bubble: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            --neon-glow: 0 0 10px rgba(0, 242, 254, 0.7);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        /* Chatbot Container */
        .chatbot-container {
            position: fixed;
            bottom: 10px;
            right: 10px;
            width: 320px;
            max-width: calc(100% - 20px);
            z-index: 100001;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: all 0.3s ease;
        }

        /* Chatbot Toggle Button - Futuristic Holographic Style */
        .chatbot-toggle {
            background: var(--primary-gradient);
            color: var(--lighter-text);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--shadow), var(--neon-glow);
            position: absolute;
            right: 0;
            bottom: 0;
            z-index: 2;
            transition: all 0.3s ease;
            animation: float 4s ease-in-out infinite, pulse 2s infinite alternate;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

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

        @keyframes pulse {
            0% { box-shadow: var(--shadow), 0 0 10px rgba(0, 242, 254, 0.7); }
            100% { box-shadow: var(--shadow), 0 0 20px rgba(0, 242, 254, 0.9); }
        }

        .chatbot-toggle:hover {
            transform: scale(1.1) rotate(10deg);
            animation: none;
        }

        .chatbot-toggle i {
            font-size: 24px;
        }

        /* Hide toggle when chatbot is active */
        .chatbot-toggle.hide {
            display: none;
        }

        /* Chatbot Window - Futuristic Glass Morphism */
        .chatbot-window {
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 16px;
            box-shadow: var(--shadow), var(--neon-glow);
            overflow: hidden;
            transform: scale(0);
            transform-origin: bottom right;
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                        opacity 0.3s ease, 
                        height 0.3s ease;
            height: 0;
            opacity: 0;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border-color);
            width: 100%;
        }

        .chatbot-window.active {
            transform: scale(1);
            height: min(500px, 80vh);
            opacity: 1;
        }

        /* Chatbot Header - Futuristic with glowing accent */
        .chatbot-header {
            background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
            color: var(--lighter-text);
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .chatbot-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-gradient);
            opacity: 0.15;
            z-index: -1;
        }

        .chatbot-header h3 {
            margin: 0;
            font-size: 16px;
            display: flex;
            align-items: center;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .chatbot-header h3 i {
            margin-right: 8px;
            color: var(--accent-color);
            text-shadow: 0 0 8px rgba(0, 242, 254, 0.7);
        }

        .chatbot-close {
            background: none;
            border: none;
            color: var(--light-text);
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .chatbot-close:hover {
            color: var(--accent-color);
            transform: rotate(90deg);
            background: rgba(255, 255, 255, 0.1);
        }

        /* Chatbot Messages - Futuristic with animated background */
        .chatbot-messages {
            flex: 1;
            padding: 12px;
            overflow-y: auto;
            background: 
                radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 20%),
                var(--darker-bg);
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* Animated grid pattern */
        .chatbot-messages::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 20px 20px;
            opacity: 0.5;
            pointer-events: none;
        }

        /* Custom scrollbar */
        .chatbot-messages::-webkit-scrollbar {
            width: 4px;
        }

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

        .chatbot-messages::-webkit-scrollbar-thumb {
            background: var(--accent-color);
            border-radius: 3px;
        }

        .message {
            max-width: 90%;
            margin-bottom: 10px;
            padding: 10px 14px;
            border-radius: 16px;
            line-height: 1.4;
            animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            font-size: 14px;
            word-wrap: break-word;
        }

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

        /* Bot message with futuristic tail */
        .bot-message {
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
            color: var(--light-text);
            border-top-left-radius: 4px;
            align-self: flex-start;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border-color);
            margin-left: 6px;
        }

        .bot-message::before {
            content: '';
            position: absolute;
            left: -8px;
            bottom: 0;
            width: 0;
            height: 0;
            border: 8px solid transparent;
            border-right-color: rgba(30, 41, 59, 0.9);
            border-left: 0;
            filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.1));
        }

        /* User message with glow effect */
        .user-message {
            background: var(--user-bubble);
            color: white;
            border-top-right-radius: 4px;
            align-self: flex-end;
            box-shadow: 0 4px 12px rgba(255, 117, 140, 0.3);
            margin-right: 6px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

        .user-message::after {
            content: '';
            position: absolute;
            right: -8px;
            bottom: 0;
            width: 0;
            height: 0;
            border: 8px solid transparent;
            border-left-color: #ff758c;
            border-right: 0;
            filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.1));
        }

        /* Typing Indicator - Futuristic animation */
        .typing-indicator {
            display: flex;
            align-self: flex-start;
            margin-bottom: 14px;
            padding: 10px 14px;
            background: rgba(30, 41, 59, 0.7);
            border-radius: 16px;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .typing-dot {
            width: 6px;
            height: 6px;
            background-color: var(--accent-color);
            border-radius: 50%;
            margin: 0 3px;
            animation: typingAnimation 1.6s infinite ease-in-out;
            box-shadow: 0 0 5px var(--accent-color);
        }

        .typing-dot:nth-child(1) { animation-delay: 0s; }
        .typing-dot:nth-child(2) { animation-delay: 0.3s; }
        .typing-dot:nth-child(3) { animation-delay: 0.6s; }

        @keyframes typingAnimation {
            0%, 60%, 100% { 
                transform: translateY(0);
                opacity: 0.6;
            }
            30% { 
                transform: translateY(-5px);
                opacity: 1;
            }
        }

        /* Chatbot Input - Futuristic glass input */
        .chatbot-input {
            display: flex;
            padding: 10px;
            background: rgba(15, 23, 42, 0.8);
            border-top: 1px solid var(--border-color);
            position: relative;
        }

        .chatbot-input::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--primary-gradient);
            opacity: 0.3;
        }

        .chatbot-input input {
            flex: 1;
            padding: 10px 14px;
            border: 1px solid var(--border-color);
            border-radius: 24px;
            outline: none;
            font-size: 14px;
            background: rgba(255, 255, 255, 0.05);
            color: var(--lighter-text);
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .chatbot-input input:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
            background: rgba(255, 255, 255, 0.08);
        }

        .chatbot-input input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        /* Send button with hover effect */
        .chatbot-send {
            background: var(--primary-gradient);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-left: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .chatbot-send::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                to bottom right,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.1) 50%,
                rgba(255, 255, 255, 0) 100%
            );
            transform: rotate(30deg);
            transition: all 0.5s ease;
        }

        .chatbot-send:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 242, 254, 0.4);
        }

        .chatbot-send:hover::after {
            left: 100%;
            top: 100%;
        }

        .chatbot-send i {
            font-size: 16px;
            position: relative;
            z-index: 1;
        }

        /* Quick Replies - Futuristic pill buttons */
        .quick-replies {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 10px;
            animation: fadeIn 0.4s ease;
        }

        .quick-reply {
            background: rgba(255, 255, 255, 0.1);
            color: var(--light-text);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 6px 12px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }

        .quick-reply:hover {
            background: rgba(0, 242, 254, 0.2);
            border-color: var(--accent-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 242, 254, 0.2);
        }

        /* Markdown-like formatting for bot messages */
        .bot-message strong {
            color: var(--accent-color);
            font-weight: 600;
        }

        .bot-message em {
            color: #a5b4fc;
            font-style: italic;
        }

        .bot-message code {
            background: rgba(0, 0, 0, 0.3);
            padding: 2px 4px;
            border-radius: 4px;
            font-family: monospace;
            font-size: 0.9em;
        }

        /* Connection status indicator */
        .connection-status {
            position: absolute;
            top: 12px;
            right: 50px;
            display: flex;
            align-items: center;
            font-size: 11px;
            color: var(--light-text);
            opacity: 0.7;
        }

        .status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            margin-right: 4px;
            background: #4ade80;
            box-shadow: 0 0 6px #4ade80;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Special effects for futuristic feel */
        @keyframes hologramFlicker {
            0%, 100% { opacity: 0.95; }
            25% { opacity: 0.9; }
            50% { opacity: 0.85; }
            75% { opacity: 0.92; }
        }

        .chatbot-window {
            animation: hologramFlicker 8s infinite;
        }

 /* Mobile-specific rules (320px and below) - MUST COME AFTER other media queries */
 @media only screen and (max-width: 320px) {
    .chatbot-container {
        bottom: 5px;
        right: 5px;
        width: calc(100% - 10px);
    }
    
    .chatbot-window.active {
        height: min(400px, 75vh);
        border-radius: 12px;
    }

    .chatbot-window.active {
        transform: scale(0.9);
   
    }
    
    .chatbot-header {
        padding: 8px 10px;
    }
    
    .chatbot-header h3 {
        font-size: 14px;
    }
    
    .chatbot-close {
        font-size: 18px;
        width: 24px;
        height: 24px;
    }
    
    .connection-status {
        font-size: 10px;
        right: 36px;
        top: 10px;
    }
    
    .message {
        font-size: 13px;
        padding: 8px 10px;
        max-width: 95%;
        margin-bottom: 8px;
    }
    
    .chatbot-input {
        padding: 8px;
    }
    
    .chatbot-input input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .chatbot-send {
        width: 34px;
        height: 34px;
    }
    
    .chatbot-send i {
        font-size: 14px;
    }
    
    .quick-reply {
        font-size: 11px;
        padding: 4px 8px;
    }
}