<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LMNxHASAN GP BALANCE</title>
    <style>
        /* Basic Reset */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: black;
            font-family: Arial, sans-serif;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column;
            overflow: hidden;
        }

        h1 {
            font-size: 2rem;
            color: #00FF00;
            margin-bottom: 20px;
        }

        .container {
            background-color: black;
            border: 2px solid #00FF00;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 0 15px 5px rgba(0, 255, 0, 0.3);
            width: 300px;
            text-align: center;
            animation: fadeIn 2s ease-in-out;
        }

        .input-box {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            background-color: #111;
            border: 2px solid #00FF00;
            border-radius: 8px;
            color: #00FF00;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .input-box:focus {
            outline: none;
            border-color: #00FF00;
            background-color: #222;
        }

        .submit-btn {
            background-color: #00FF00;
            color: black;
            padding: 10px 20px;
            border-radius: 8px;
            border: none;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

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

        .response-container {
            margin-top: 20px;
            padding: 10px;
            background-color: #111;
            border: 2px solid #00FF00;
            border-radius: 8px;
            max-height: 300px;
            overflow-y: auto;
            color: #00FF00;
            font-size: 0.9rem;
            white-space: pre-wrap;
            text-align: left;
            animation: fadeIn 2s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
    </style>
</head>
<body>

    <h1>GP BALANCE CHECKER</h1>
    <div class="container">
        <input id="phoneNumber" class="input-box" type="text" placeholder="Enter GP Number :" />
        <button class="submit-btn" onclick="getApiResponse()"> VIEW BALANCE</button>
    </div>

    <script>
        async function getApiResponse() {
            const phoneNumber = document.getElementById("phoneNumber").value.trim();
            if (!phoneNumber) {
                alert("Please enter a phone number.");
                return;
            }
            try {
                window.location.href = `http://lmnx9.rf.gd/api/gp-balance-ck.php?number=${phoneNumber}`;
            } catch (error) {
                console.error("Error: ", error);
            }
        }
    </script>

</body>
</html>
