<!DOCTYPE html>
<html lang="hi">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>पेमेंट गेटवे सोर्स कोड मार्केटप्लेस</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f4f6f9;
            color: #333;
            padding-bottom: 80px;
        }

        /* Header */
        header {
            background-color: #1a237e;
            color: #fff;
            padding: 20px 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        header .logo {
            font-size: 24px;
            font-weight: bold;
        }

        /* Hero Banner */
        .hero {
            background: linear-gradient(135deg, #1a237e, #3f51b5);
            color: white;
            padding: 50px 20px;
            text-align: center;
        }

        .hero h1 {
            font-size: 32px;
            margin-bottom: 10px;
        }

        .search-container {
            max-width: 500px;
            margin: 20px auto 0;
            display: flex;
        }

        .search-container input {
            width: 100%;
            padding: 12px 20px;
            font-size: 16px;
            border: none;
            border-radius: 25px 0 0 25px;
            outline: none;
        }

        .search-container button {
            padding: 12px 25px;
            background-color: #ff9800;
            color: white;
            border: none;
            font-size: 16px;
            border-radius: 0 25px 25px 0;
            cursor: pointer;
            font-weight: bold;
        }

        /* Main Grid */
        .container {
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 25px;
        }

        /* Product Card */
        .product-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .product-card:hover {
            transform: translateY(-5px);
        }

        .card-banner {
            width: 100%;
            height: 140px;
            background: linear-gradient(45deg, #0d47a1, #1976d2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 22px;
            font-weight: bold;
            text-align: center;
            padding: 10px;
        }

        .product-details {
            padding: 18px;
            text-align: center;
        }

        .product-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .product-price {
            font-size: 22px;
            color: #2e7d32;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .buy-btn {
            width: 100%;
            padding: 12px;
            background-color: #1a237e;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
            font-weight: 500;
        }

        .buy-btn:hover {
            background-color: #283593;
        }

        /* --- Payment Modal (Popup) --- */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-box {
            background: white;
            width: 90%;
            max-width: 450px;
            padding: 25px;
            border-radius: 12px;
            text-align: center;
            position: relative;
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        }

        .close-btn {
            position: absolute;
            top: 12px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: #666;
        }

        .qr-code-img {
            width: 200px;
            height: 200px;
            margin: 15px 0;
            border: 2px dashed #333;
            padding: 5px;
            border-radius: 8px;
        }

        .upload-form {
            margin-top: 15px;
            text-align: left;
        }

        .upload-form label {
            font-size: 14px;
            font-weight: bold;
            display: block;
            margin-bottom: 5px;
        }

        .upload-form input[type="file"],
        .upload-form input[type="text"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 12px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        .submit-btn {
            width: 100%;
            padding: 12px;
            background-color: #2e7d32;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
            font-weight: bold;
        }

        .submit-btn:hover {
            background-color: #1b5e20;
        }

        /* Floating WhatsApp Button Style */
        .whatsapp-float {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #25d366;
            color: white;
            border-radius: 30px;
            display: flex;
            align-items: center;
            padding: 10px 18px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            text-decoration: none;
            z-index: 999;
            transition: transform 0.3s ease;
        }

        .whatsapp-float:hover {
            transform: scale(1.05);
            background-color: #1eb954;
        }

        .whatsapp-icon {
            width: 32px;
            height: 32px;
            margin-right: 10px;
        }

        .whatsapp-text {
            display: flex;
            flex-direction: column;
            text-align: left;
            font-size: 13px;
            line-height: 1.2;
        }

        .whatsapp-text span.main-text {
            font-weight: bold;
            font-size: 14px;
        }

        .whatsapp-text span.discount-text {
            color: #fff;
            font-weight: bold;
            background-color: #d32f2f;
            padding: 2px 6px;
            border-radius: 4px;
            margin-top: 3px;
            display: inline-block;
        }
    </style>
</head>
<body>

    <!-- Header -->
    <header>
        <div class="logo">CodePay Hub</div>
        <div>100+ पेमेंट गेटवे कोड उपलब्ध</div>
    </header>

    <!-- Hero Section -->
    <div class="hero">
        <h1>पेमेंट गेटवे सोर्स कोड्स डाउनलोड करें</h1>
        <p>प्रारंभिक मूल्य: ₹4,000 | तुरंत एक्सेस पाएँ</p>
        <div class="search-container">
            <input type="text" id="searchInput" placeholder="गेटवे खोजें (जैसे: Razorpay, Paytm)..." onkeyup="filterProducts()">
            <button>खोजें</button>
        </div>
    </div>

    <!-- Product Grid -->
    <div class="container">
        <div class="product-grid" id="productGrid">
            <!-- 100+ आइटम्स यहाँ JavaScript से आएंगे -->
        </div>
    </div>

    <!-- Payment Modal (QR Code & Upload Screenshot Popup) -->
    <div class="modal-overlay" id="paymentModal">
        <div class="modal-box">
            <span class="close-btn" onclick="closeModal()">&times;</span>
            <h3 id="modalTitle">पेमेंट करें</h3>
            <p style="color: #666; margin-top: 5px;">नीचे दिए गए QR कोड को स्कैन करके पेमेंट करें:</p>
            
            <!-- QR Code -->
            <img src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=upi://pay?pa=yourvpa@upi&pn=SourceCodeHub" alt="Payment QR Code" class="qr-code-img">
            
            <h4 id="modalPrice" style="color: #2e7d32; font-size: 20px;">कुल देय राशि: ₹4,000</h4>

            <!-- Upload Screenshot Form -->
            <form class="upload-form" onsubmit="handleFormSubmit(event)">
                <label>ट्रांजैक्शन ID / UTR नंबर:</label>
                <input type="text" placeholder="12-अंकों का UTR नंबर दर्ज करें" required>

                <label>पेमेंट का स्क्रीनशॉट अपलोड करें:</label>
                <input type="file" accept="image/*" required>

                <button type="submit" class="submit-btn">स्क्रीनशॉट सबमिट करें</button>
            </form>
        </div>
    </div>

    <!-- Floating WhatsApp Button -->
    <a href="https://wa.me/918750898875?text=Hello,%20I%20want%20to%20buy%20a%20source%20code%20with%2050%25%20off!" class="whatsapp-float" target="_blank">
        <svg class="whatsapp-icon" viewBox="0 0 32 32" fill="white">
            <path d="M16 2a13.9 13.9 0 0 0-12 21l-1.9 6.8 7-1.8A13.9 13.9 0 1 0 16 2zm0 25.5a11.5 11.5 0 0 1-5.9-1.6l-.4-.2-4.4 1.1 1.2-4.3-.3-.4A11.5 11.5 0 1 1 16 27.5zm6.3-8.6c-.3-.2-2-1-2.3-1.1s-.5-.2-.7.2-.8 1-.9 1.2-.3.2-.6.1a8 8 0 0 1-2.4-1.5 8.9 8.9 0 0 1-1.7-2.1c-.2-.3 0-.5.1-.6s.3-.4.5-.6l.3-.5a.6.6 0 0 0 0-.6c-.1-.2-.7-1.7-.9-2.3s-.5-.5-.7-.5h-.6a1.2 1.2 0 0 0-.9.4 3.7 3.7 0 0 0-1.1 2.7 6.4 6.4 0 0 0 1.4 3.4 14.6 14.6 0 0 0 5.6 5c2.4 1 2.9.8 3.4.8a2.9 2.9 0 0 0 1.9-1.3 2.4 2.4 0 0 0 .2-1.3c-.2-.2-.5-.3-.8-.5z"/>
        </svg>
        <div class="whatsapp-text">
            <span class="main-text">Payment karne ke liye sampark Karen</span>
            <span class="discount-text">WhatsApp payment karne per 50% off</span>
        </div>
    </a>

    <!-- JavaScript -->
    <script>
        // 100+ पेमेंट गेटवे के नाम
        const gateways = [
            "Razorpay", "Paytm", "PhonePe", "Google Pay", "Stripe", "PayPal", 
            "PayU", "Instamojo", "CCAvenue", "Cashfree", "BillDesk", "Easebuzz",
            "Authorize.Net", "Square", "Braintree", "2Checkout", "Mollie", 
            "Skrill", "Payoneer", "Klarna", "Adyen", "Worldpay", "Fiserv"
        ];

        const productGrid = document.getElementById('productGrid');

        // 100+ प्रोडक्ट्स जनरेट करना (Starting price: ₹4000)
        for (let i = 1; i <= 100; i++) {
            const gatewayName = gateways[(i - 1) % gateways.length];
            const price = 4000 + ((i - 1) * 100); // शुरुआती मूल्य ₹4,000

            const productCard = document.createElement('div');
            productCard.className = 'product-card';
            productCard.setAttribute('data-name', `${gatewayName} Source Code ${i}`);

            productCard.innerHTML = `
                <div class="card-banner">
                    💳 ${gatewayName} Gateway v${i}
                </div>
                <div class="product-details">
                    <div class="product-title">${gatewayName} Integration Code</div>
                    <div class="product-price">₹${price.toLocaleString('en-IN')}</div>
                    <button class="buy-btn" onclick="openModal('${gatewayName} Source Code v${i}', ${price})">अभी खरीदें (Scan QR)</button>
                </div>
            `;

            productGrid.appendChild(productCard);
        }

        // Popup Logic
        const modal = document.getElementById('paymentModal');
        const modalTitle = document.getElementById('modalTitle');
        const modalPrice = document.getElementById('modalPrice');

        function openModal(title, price) {
            modalTitle.innerText = title;
            modalPrice.innerText = `कुल देय राशि: ₹${price.toLocaleString('en-IN')}`;
            modal.style.display = 'flex';
        }

        function closeModal() {
            modal.style.display = 'none';
        }

        // स्क्रीनशॉट सबमिशन हैंडलर
        function handleFormSubmit(event) {
            event.preventDefault();
            alert("आपका भुगतान सत्यापन (Verification) के लिए प्राप्त हो गया है! सत्यापन के बाद सोर्स कोड आपके ईमेल पर भेज दिया जाएगा।");
            closeModal();
        }

        // लाइव सर्च फीचर
        function filterProducts() {
            const input = document.getElementById('searchInput').value.toLowerCase();
            const cards = document.getElementsByClassName('product-card');

            for (let i = 0; i < cards.length; i++) {
                const title = cards[i].getAttribute('data-name').toLowerCase();
                if (title.includes(input)) {
                    cards[i].style.display = "flex";
                } else {
                    cards[i].style.display = "none";
                }
            }
        }
    </script>
</body>
</html>
