        .chat-widget {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            font-family: 'Rajdhani', sans-serif;
        }

        .chat-toggle {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0, 255, 255, 0.4);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .chat-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 30px rgba(0, 255, 255, 0.6);
        }

        .chat-toggle svg {
            width: 28px;
            height: 28px;
            fill: var(--bg-dark);
        }

        .chat-panel {
            display: none;
            position: absolute;
            padding: 0;
            bottom: 70px;
            right: 0;
            width: 380px;
            height: 500px;
            background: var(--bg-card);
            border: 2px solid var(--accent-cyan);
            border-radius: 12px;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.2);
        }

        .chat-panel.open {
            display: block;
        }

        .chat-wrapper {
            position: relative;
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
        }

        .chat-header {
            padding: 10px;
            background: rgba(0, 255, 255, 0.1);
            border-bottom: 1px solid rgba(0, 255, 255, 0.3);
            margin-bottom: 0;
        }

        .chat-title {
            margin-bottom: 0;
        }

        .chat-close {
            background: none;
            border: none;
            color: var(--text-dim);
            cursor: pointer;
            font-size: 1.5rem;
            line-height: 1;
            padding: 0;
        }

        .chat-close:hover {
            color: var(--accent-red);
        }

        .chat-body {
            display: flex;
            flex-direction: column;
            flex: 1;
            height: 100%;
            overflow: hidden;
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-scroll-btn {
            position: absolute;
            bottom: 80px;
            right: 20px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--accent-cyan);
            border: none;
            color: var(--bg-dark);
            font-size: 1rem;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
            z-index: 10;
        }

        .chat-scroll-btn.visible {
            opacity: 1;
            visibility: visible;
        }

        .chat-scroll-btn.fullscreen {
            bottom: 115px;
            right: 50px;
        }

        .chat-scroll-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
        }

        .chat-message {
            max-width: 85%;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .chat-message .avatar {
            width: 20px;
            height: 20px;
        }

        .chat-message .bubble {
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .chat-message .bubble p { margin: 0 0 8px 0; }
        .chat-message .bubble p:last-child { margin-bottom: 0; }
        .chat-message .bubble code { background: rgba(0,0,0,0.3); padding: 2px 5px; border-radius: 3px; font-family: 'Share Tech Mono', monospace; }
        .chat-message .bubble pre { background: rgba(0,0,0,0.4); padding: 10px; border-radius: 6px; overflow-x: auto; margin: 8px 0; }
        .chat-message .bubble pre code { background: none; padding: 0; }
        .chat-message .bubble ul, .chat-message .bubble ol { margin: 8px 0; padding-left: 20px; }
        .chat-message .bubble strong { color: var(--accent-cyan); }

        .chat-message.user {
            align-self: flex-end;
            align-items: flex-end;
        }

        .chat-message.user .avatar { fill: var(--text-dim); }
        .chat-message.user .bubble {
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
            color: var(--bg-dark);
            border-bottom-right-radius: 4px;
        }

        .chat-message.assistant {
            align-self: flex-start;
            align-items: flex-start;
        }

        .chat-message.assistant .avatar { fill: var(--accent-cyan); }
        .chat-message.assistant .bubble {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
            border-bottom-left-radius: 4px;
            border: 1px solid rgba(0, 255, 255, 0.2);
        }

        .chat-welcome {
            text-align: center;
            padding: 0 20px;
            color: var(--text-dim);
        }

        .chat-welcome-icon {
            width: 48px;
            height: 48px;
            fill: var(--accent-cyan);
            margin-bottom: 15px;
            opacity: 0.7;
        }

        .chat-welcome h3 {
            font-family: 'Orbitron', sans-serif;
            font-size: 1rem;
            color: var(--accent-cyan);
            margin: 0 0 10px 0;
        }

        .chat-welcome p {
            font-size: 0.85rem;
            line-height: 1.5;
            margin: 0;
        }

        .chat-welcome .suggested-questions {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 15px;
        }

        .chat-welcome .suggested-question {
            padding: 10px 15px;
            background: rgba(0, 255, 255, 0.1);
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 6px;
            color: var(--text-primary);
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.85rem;
            text-align: left;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .chat-welcome .suggested-question:hover {
            background: rgba(0, 255, 255, 0.2);
            border-color: var(--accent-cyan);
            box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
        }

        .chat-message.assistant.streaming::after {
            content: '▋';
            animation: blink 1s infinite;
        }

        @keyframes blink {
            50% { opacity: 0; }
        }

        .chat-input-area {
            position: relative;
            padding: 15px;
            border-top: 1px solid rgba(0, 255, 255, 0.3);
            display: flex;
            gap: 10px;
        }

        .chat-input {
            flex: 1;
            padding: 10px 14px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 8px;
            color: var(--text-primary);
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.95rem;
            outline: none;
        }

        .chat-input:focus {
            border-color: var(--accent-cyan);
            box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
        }

        .chat-send {
            padding: 10px 16px;
            background: var(--accent-cyan);
            border: none;
            border-radius: 8px;
            color: var(--bg-dark);
            font-family: 'Rajdhani', sans-serif;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .chat-send:hover {
            background: var(--accent-magenta);
            box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
        }

        .chat-send:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }