
    .chat-widget {
        position: fixed;
        top: 80px;
        right: 50px;
        z-index: 9998;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
    }

    .chat-toggle {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #00ffc8, #00b894);
        border: none;
        cursor: pointer;
        box-shadow: 0 8px 32px rgba(0, 255, 200, 0.3);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        color: #0a0a12;
        font-size: 24px;
    }

    .chat-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 40px rgba(0, 255, 200, 0.4);
    }

    .chat-toggle .rocket-icon {
        width: 28px;
        height: 28px;
    }

    .chat-toggle .badge-online {
        position: absolute;
        top: -4px;
        right: -4px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #22c55e;
        border: 2px solid #0a0a12;
        animation: pulse-dot 2s infinite;
    }

    @keyframes pulse-dot {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.6; transform: scale(0.85); }
    }

    .chat-window {
        width: 360px;
        max-height: 480px;
        background: #12121e;
        border: 1px solid #2a2a3e;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
        display: none;
        flex-direction: column;
        overflow: hidden;
        animation: slideDown 0.3s ease;
    }

    .chat-window.open {
        display: flex;
    }

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

    .chat-header {
        padding: 16px 20px;
        background: linear-gradient(135deg, #0a0a12, #1a1a2e);
        border-bottom: 1px solid #2a2a3e;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
    }

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

    .chat-header-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #00ffc8, #00b894);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #0a0a12;
        font-size: 18px;
        font-weight: 700;
    }

    .chat-header-info h4 {
        font-size: 14px;
        font-weight: 600;
        color: #e0e0f0;
        margin: 0;
        font-family: 'Ubuntu', sans-serif;
    }

    .chat-header-info span {
        font-size: 11px;
        color: #22c55e;
        font-weight: 400;
    }

    .chat-header-close {
        background: none;
        border: none;
        color: #4a4a7a;
        font-size: 20px;
        cursor: pointer;
        transition: color 0.2s;
        padding: 4px;
    }

    .chat-header-close:hover {
        color: #e0e0f0;
    }

    .chat-messages {
        flex: 1;
        padding: 16px 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: 320px;
        min-height: 200px;
    }

    .chat-messages::-webkit-scrollbar {
        width: 4px;
    }

    .chat-messages::-webkit-scrollbar-track {
        background: transparent;
    }

    .chat-messages::-webkit-scrollbar-thumb {
        background: #2a2a4e;
        border-radius: 4px;
    }

    .message {
        max-width: 85%;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 13px;
        line-height: 1.5;
        font-family: 'Ubuntu', sans-serif;
        animation: messageIn 0.3s ease;
    }

    @keyframes messageIn {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .message.bot {
        background: #1a1a2e;
        color: #c0c0d0;
        align-self: flex-start;
        border-bottom-left-radius: 4px;
        border: 1px solid #2a2a3e;
    }

    .message.bot .msg-name {
        font-size: 10px;
        color: #00ffc8;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 4px;
        display: block;
    }

    .message.user {
        background: rgba(0, 255, 200, 0.1);
        color: #e0e0f0;
        align-self: flex-end;
        border-bottom-right-radius: 4px;
        border: 1px solid rgba(0, 255, 200, 0.15);
    }

    .chat-quick-buttons {
        padding: 8px 16px 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        border-top: 1px solid #1a1a2e;
    }

    .chat-quick-buttons button {
        padding: 4px 12px;
        border-radius: 20px;
        border: 1px solid #2a2a3e;
        background: transparent;
        color: #7a7a9a;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.2s;
        font-family: 'Ubuntu', sans-serif;
        white-space: nowrap;
    }

    .chat-quick-buttons button:hover {
        border-color: #00ffc8;
        color: #00ffc8;
        background: rgba(0, 255, 200, 0.05);
    }

    .chat-input {
        padding: 12px 16px 16px;
        display: flex;
        gap: 10px;
        border-top: 1px solid #1a1a2e;
        flex-shrink: 0;
    }

    .chat-input input {
        flex: 1;
        padding: 10px 14px;
        border-radius: 24px;
        border: 1px solid #2a2a3e;
        background: #0a0a12;
        color: #e0e0f0;
        font-size: 13px;
        font-family: 'Ubuntu', sans-serif;
        outline: none;
        transition: border-color 0.2s;
    }

    .chat-input input::placeholder {
        color: #4a4a6a;
    }

    .chat-input input:focus {
        border-color: #00ffc8;
    }

    .chat-input button {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, #00ffc8, #00b894);
        color: #0a0a12;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.2s;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chat-input button:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(0, 255, 200, 0.3);
    }

    .chat-input button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

    /* ============================================================
       КНОПКА НАВЕРХ - ПРАВЫЙ НИЖНИЙ УГОЛ
       ============================================================ */
    .back-to-top {
        position: fixed;
        bottom: 24px;
        right: 50px;
        z-index: 9999;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid var(--border, #2a2a3e);
        background: var(--bg-secondary, #12121e);
        color: var(--text-secondary, #c0c0d0);
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        border-color: #00ffc8;
        color: #00ffc8;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 255, 200, 0.15);
    }

    /* ============================================================
       АДАПТИВ
       ============================================================ */
    @media (max-width: 768px) {
        .chat-widget {
            top: 72px;
            right: 16px;
        }
        .chat-window {
            width: 320px;
            max-height: 420px;
            position: fixed;
            top: 72px;
            right: 16px;
        }
        .back-to-top {
            bottom: 16px;
            right: 16px;
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
    }

    @media (max-width: 480px) {
        .chat-widget {
            top: 68px;
            right: 12px;
        }
        .chat-window {
            width: calc(100% - 24px);
            max-height: 400px;
            right: 12px;
            top: 68px;
        }
        .chat-toggle {
            width: 52px;
            height: 52px;
            font-size: 20px;
        }
        .chat-toggle .rocket-icon {
            width: 24px;
            height: 24px;
        }
        .back-to-top {
            bottom: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            font-size: 14px;
        }
    }
