/* --- CSS: Dizayn va ko'rinish --- */
        /* body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f4f4f9;
        } */

         /* --- Animatsiyali Tooltip (Yordam zarurmi?) --- */
        .chat-help-bubble {
            position: fixed;
            bottom: 90px;
            right: 35px;
            background: #fff;
            padding: 10px 15px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            font-size: 14px;
            font-weight: 500;
            color: #6f42c1;
            z-index: 999;
            animation: pulse 2s infinite;
            display: block;
            border: 1px solid #6f42c1;
        }

        .chat-help-bubble::after {
            content: '';
            position: absolute;
            bottom: -8px;
            right: 15px;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 8px solid #fff;
        }

        @keyframes pulse {
            0% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
            100% { transform: translateY(0); }
        }

        /* Chat ochilganda yordam xabarini yashirish */
        body.show-chatbot .chat-help-bubble {
            display: none;
        }

        /* Chat tugmasi */
        .chatbot-toggler {
            position: fixed;
            bottom: 30px;
            right: 35px;
            height: 55px;
            width: 55px;
            border: none;
            cursor: pointer;
            border-radius: 50%;
            background: #6f42c1;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 1000;
        }

        .chatbot-toggler span {
            color: #fff;
            font-size: 1.6rem;
        }

        /* Chat oynasi */
        .chatbot {
            position: fixed;
            right: 35px;
            bottom: 100px;
            width: 380px;
            background: #fff;
            border-radius: 15px;
            opacity: 0;
            pointer-events: none;
            transform: scale(0.5);
            transform-origin: bottom right;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: all 0.2s cubic-bezier(0.5, 0, 0, 1);
            z-index: 1000;
            overflow: hidden;
        }
        .chatbot h2 {
            color: #fff;
        }

         /* Chat oynasi ko'rsatilganda */

        body.show-chatbot .chatbot {
            opacity: 1;
            pointer-events: auto;
            transform: scale(1);
        }

        .chatbot header {
            background: #6f42c1;
            padding: 15px;
            text-align: center;
            color: #fff;
        }

        .chatbox {
            overflow-y: auto;
            height: 350px;
            padding: 20px;
            list-style: none;
        }

        .chat { display: flex; margin-bottom: 15px; }
        .outgoing { justify-content: flex-end; }
        .incoming p { background: #f1f1f1; color: #333; border-radius: 10px 10px 10px 0; }
        .outgoing p { background: #6f42c1; color: #fff; border-radius: 10px 10px 0 10px; }
        
        .chat p {
            padding: 10px 14px;
            max-width: 80%;
            font-size: 0.95rem;
            line-height: 1.4;
        }

        /* Input qismi */
        .chat-input {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            border-top: 1px solid #eee;
            gap: 10px;
        }

        .chat-input textarea {
            flex: 1;
            height: 40px;
            border: none;
            outline: none;
            resize: none;
            font-size: 0.95rem;
            padding-top: 10px;
        }

        #send-btn {
            color: #6f42c1;
            font-size: 1.4rem;
            cursor: pointer;
            transition: transform 0.2s;
        }

        #send-btn:hover {
            transform: scale(1.1);
        }