<!DOCTYPE html>
<html>
<head>
    <title>SxDev</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6/dist/vue.min.js"></script>
    <style>
        /* Custom Checkbox Styles */
        .custom-checkbox {
            position: relative;
            display: flex;
            align-items: center;
            cursor: pointer;
            user-select: none;
        }

        .custom-checkbox input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }

        .checkmark {
            position: relative;
            height: 22px;
            width: 22px;
            background-color: #000000;
            border-radius: 6px;
            margin-right: 10px;
            transition: all 0.3s ease;
        }

        .custom-checkbox:hover .checkmark {
            background-color: #1e293b;
        }

        .custom-checkbox input:checked ~ .checkmark {
            background-color: #2563eb;
        }

        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
        }

        .custom-checkbox input:checked ~ .checkmark:after {
            display: block;
        }

        .custom-checkbox .checkmark:after {
            left: 8px;
            top: 4px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }
    </style>
</head>
<body class="bg-transparent">
    <div id="app" class="fixed inset-0 flex items-center justify-center z-50">
        <div class="w-96 bg-gradient-to-b from-blue-900/90 to-blue-800/90 rounded-2xl shadow-2xl overflow-hidden transform transition-all duration-300">
            <div class="bg-blue-950/90 px-4 py-3 flex items-center justify-between text-white">
                <div class="flex items-center space-x-2">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-blue-300" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
                    </svg>
                    <span class="font-semibold">MenuAimawm</span>
                </div>
                <button @click="toggleMenu" class="focus:outline-none hover:bg-blue-800/50 rounded-full p-1 transition-colors">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" :d="menuIcon" />
                    </svg>
                </button>
            </div>

            <transition name="slide">
                <div v-if="isMenuOpen" class="p-4 space-y-4">
                    <div class="flex space-x-2 mb-4">
                        <button 
                            @click="activeTab = 'home'" 
                            :class="['flex-1 py-2 rounded-lg transition-colors', 
                                    activeTab === 'home' 
                                    ? 'bg-blue-700 text-white' 
                                    : 'bg-blue-800/50 text-blue-200 hover:bg-blue-700/50']"
                        >
                            HOME
                        </button>
                    </div>

                    <div v-if="activeTab === 'home'" class="space-y-4">
                        <div class="bg-blue-800/70 rounded-lg p-3 space-y-3">
                            <label class="custom-checkbox flex items-center">
                                <input type="checkbox" id="aim180" @change="toggleFeature('aim180', $event)">
                                <span class="checkmark"></span>
                                AIM 180
                            </label>

                            <div class="flex space-x-4">
                                <label class="custom-checkbox flex-1 flex items-center">
                                    <input type="checkbox" id="aimAwm" @change="toggleFeature('aimAwm', $event)">
                                    <span class="checkmark"></span>
                                    AIM AWM
                                </label>

                                <label class="custom-checkbox flex-1 flex items-center">
                                    <input type="checkbox" id="speedX2" @change="toggleFeature('speedX2', $event)">
                                    <span class="checkmark"></span>
                                    SPEED X2
                                </label>
                            </div>
                        </div>

                        <div class="text-sm text-blue-200 text-center">
                            Contact: Telegram @Sx_Dev
                        </div>
                    </div>
                </div>
            </transition>
        </div>
    </div>

    <script>
        // Preload audio files for reduced delay
        const audioFiles = {
            aim180: new Audio('https://files.catbox.moe/9pi594.mp3'),
            aimAwm: new Audio('https://files.catbox.moe/9pi594.mp3'),
            speedX2: new Audio('https://files.catbox.moe/9pi594.mp3')
        };

        for (const key in audioFiles) {
            audioFiles[key].preload = 'auto';
            audioFiles[key].load();
        }

        new Vue({
            el: "#app",
            data: {
                isMenuOpen: true,
                activeTab: 'home'
            },
            computed: {
                menuIcon() {
                    return this.isMenuOpen 
                        ? 'M5 11l7-7 7 7M5 19l7-7 7 7' 
                        : 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z';
                }
            },
            methods: {
                toggleMenu() {
                    this.isMenuOpen = !this.isMenuOpen;
                },
                toggleFeature(feature, event) {
                    const isChecked = event.target.checked;

                    if (isChecked) {
                        const audio = audioFiles[feature];
                        audio.currentTime = 0;
                        audio.play().catch(err => console.error('Audio playback failed:', err));
                    }

                    switch (feature) {
                        case 'aim180':
                            this.aim180();
                            break;
                        case 'aimAwm':
                            this.aimawm();
                            break;
                        case 'speedX2':
                            this.speedx2(event.target);
                            break;
                    }
                },
                aim180() {
                    h5gg.clearResults();
                    h5gg.searchNumber('1053273620', 'I32', '0x100000000', '0x160000000');
                    h5gg.editAll('-2000', 'I32');
                },
                aimawm() {
                    h5gg.clearResults();
                    h5gg.searchNumber('31101603021', 'I64', '0x100000000', '0x160000000');
                    h5gg.editAll('2139095040', 'I32');
                },
                speedx2(input) {
                    if (input.checked) {
                        h5gg.clearResults();
                        h5gg.searchNumber('4397530849764387586', 'I64', '0x100000000', '0x200000000');
                        h5gg.editAll('4397530849758414897', 'I64');
                    } else {
                        h5gg.editAll('4397530849764387586', 'I64');
                    }
                }
            }
        });
    </script>
</body>
</html>