  .chat-widget {
            position: fixed;
            bottom: 90px;
            right: 20px;
            z-index: 1000;
        }

        .chat-toggle {
            width: 70px;
            height: 70px;
                  background: linear-gradient(135deg, #66afea26, #4facfe26);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(102, 164, 234, 0.4);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 28px;
            position: relative;
            overflow: hidden;
        }

        .chat-toggle::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: translateX(-100%);
            animation: shine 2s infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .chat-toggle:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 15px 40px rgba(102, 159, 234, 0.6);
        }

        .chat-window {
            position: absolute;
            bottom: 90px;
            right: 0;
            width: 550px;
            height: 700px;
            background: linear-gradient(135deg, #172c3d, #142736);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            display: none;
            z-index: 99999;
            flex-direction: column;
            overflow: hidden;
            animation: slideUp 0.4s ease;
            border: 1px solid rgba(255,255,255,0.1);
        }

        @keyframes slideUp {
            from { transform: translateY(30px) scale(0.9); opacity: 0; }
            to { transform: translateY(0) scale(1); opacity: 1; }
        }

        .chat-header {
            background: linear-gradient(135deg, #66afea26, #4facfe26);
            color: white;
            padding: 25px 20px;
            text-align: center;
            position: relative;
        }

        .chat-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
        }

        .chat-header h3 {
            margin-bottom: 8px;
            font-size: 18px;
            font-weight: 600;
        }

        .chat-header p {
            font-size: 13px;
            opacity: 0.9;
        }

        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
          background: linear-gradient(135deg, #172c3d, #142736);
        }



.chat-messages::-webkit-scrollbar {
    width: 20px; 
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #223d55, #182631); 
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,0.2); 
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #223d55, #182631); 
}


.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #335977 rgba(255, 255, 255, 0.05);
}

        .message {
            margin-bottom: 30px;
            display: flex;
            align-items: flex-start;
            animation: messageAppear 0.3s ease;
        }

        @keyframes messageAppear {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .message.bot {
            flex-direction: row;
        }

        .message.user {
            flex-direction: row-reverse;
        }

        .message-content {
            background: rgba(255,255,255,0.05);
            padding: 15px 18px;
            border-radius: 20px;
            max-width: 85%;
            font-size: 14px;
            line-height: 1.5;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1);
            color: white;
        }

        .message.user .message-content {
      background: linear-gradient(135deg, #172c3d, #142736);
        }

        .message-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: white;
            margin: 0 12px;
            flex-shrink: 0;
            border: 2px solid rgba(255,255,255,0.2);
        }

        .message.bot .message-avatar {
            background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
        }

        .message.user .message-avatar {
            background: linear-gradient(135deg, #667eea, #764ba2);
        }

        .game-selector {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            margin: 15px 0;
        }

        .game-btn {
            background: linear-gradient(135deg, #2d2d42, #1e1e2e);
            border: 1px solid rgba(255,255,255,0.1);
            color: white;
            padding: 10px 6px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.3s ease;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .game-btn:hover {
            background: linear-gradient(135deg, #335b8a, #1c5e85);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
        }

        .question-btn {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.2);
            color: white;
            padding: 12px 15px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 13px;
            margin: 8px 0;
            transition: all 0.3s ease;
            text-align: left;
            width: 100%;
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .question-btn:hover {
            background: linear-gradient(135deg, #335b8a, #1c5e85);
            transform: translateX(5px);
            border-color: rgba(255,255,255,0.4);
        }

        .back-btn {
            background: linear-gradient(135deg, #a51616, #d61e15);
            border: none;
            color: white;
            padding: 10px 15px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 12px;
            margin: 5px 5px 15px 0;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .back-btn:hover {
            background: linear-gradient(135deg, #9c2121, #c71212);
            transform: translateY(-2px);
        }

        .discord-link {
            color: #5865F2;
            text-decoration: none;
            font-weight: bold;
            background: rgba(88, 101, 242, 0.1);
            padding: 8px 12px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
            border: 1px solid rgba(88, 101, 242, 0.3);
            transition: all 0.3s ease;
        }

        .discord-link:hover {
            background: rgba(88, 101, 242, 0.2);
            transform: translateY(-2px);
        }

        .typing-indicator {
            display: none;
            align-items: center;
            padding: 15px 20px;
            font-size: 13px;
            color: rgba(255,255,255,0.7);
            font-style: italic;
        }

        .typing-dots {
            display: flex;
            margin-left: 8px;
        }

        .typing-dots span {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #669bea;
            margin: 0 2px;
            animation: typing 1.4s infinite;
        }

        .typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typing {
            0%, 60%, 100% { 
                opacity: 0.3; 
                transform: translateY(0);
            }
            30% { 
                opacity: 1; 
                transform: translateY(-5px);
            }
        }

        .chat-input {
            padding: 20px;
            background: rgba(0,0,0,0.2);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255,255,255,0.1);
            display: flex;
            gap: 10px;
        }

        .chat-input input {
            flex: 1;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 25px;
            padding: 12px 20px;
            color: white;
            font-size: 14px;
            outline: none;
            backdrop-filter: blur(5px);
        }

        .chat-input input::placeholder {
            color: rgba(255,255,255,0.5);
        }

        .chat-input input:focus {
            border-color: #66aaea;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
        }

        .send-btn {
      background: linear-gradient(135deg, #172c3d, #142736);
            border: none;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .send-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 5px 15px rgba(102, 159, 234, 0.4);
        }

        .send-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .quick-actions {
            padding: 10px 20px;
            background: rgba(0,0,0,0.1);
            border-top: 1px solid rgba(255,255,255,0.05);
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .quick-action {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .quick-action:hover {
            background: linear-gradient(135deg, #335b8a, #1c5e85);
            transform: translateY(-1px);
        }

        .suggestion-chip {
            background: rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.3);
            color: #66aaea;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 11px;
            margin: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .suggestion-chip:hover {
            background: rgba(102, 126, 234, 0.2);
            transform: translateY(-1px);
        }

        .confidence-indicator {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 11px;
            color: rgba(255,255,255,0.6);
            margin-top: 8px;
        }

        .confidence-bar {
            width: 60px;
            height: 3px;
            background: rgba(255,255,255,0.1);
            border-radius: 3px;
            overflow: hidden;
        }

        .confidence-fill {
            height: 100%;
            background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
            transition: width 0.3s ease;
        }

        @media (max-width: 480px) {
            .chat-window {
                width: calc(100vw - 40px);
                right: 20px;
                left: 20px;
                height: 80vh;
            }
            
            .chat-toggle {
                width: 60px;
                height: 60px;
                font-size: 24px;
            }

            .game-selector {
                grid-template-columns: 1fr;
            }
        }