<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Airtel Merchant MAPP Microservice</title>
    <style>
        * { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
        body { background: #0f172a; color: #f8fafc; padding: 40px 20px; line-height: 1.6; }
        .container { max-width: 750px; margin: 0 auto; background: #1e293b; border-radius: 16px; padding: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid #334155; }
        .badge { display: inline-block; background: #10b981; color: #022c22; font-weight: bold; font-size: 12px; padding: 4px 10px; border-radius: 9999px; text-transform: uppercase; margin-bottom: 12px; }
        h1 { font-size: 26px; margin-bottom: 8px; color: #fff; }
        p.sub { color: #94a3b8; font-size: 15px; margin-bottom: 24px; }
        .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
        .card { background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 16px; }
        .card h3 { font-size: 14px; color: #38bdf8; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
        .card p { font-size: 13px; color: #cbd5e1; word-break: break-all; }
        .endpoints { background: #0f172a; border-radius: 10px; padding: 16px; border: 1px solid #334155; }
        .endpoints h3 { font-size: 15px; color: #f1f5f9; margin-bottom: 12px; }
        .ep-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #1e293b; font-size: 13px; }
        .ep-item:last-child { border-bottom: none; }
        .method { background: #3b82f6; color: #fff; padding: 2px 8px; border-radius: 4px; font-weight: 600; font-size: 11px; margin-right: 8px; }
        .path { font-family: monospace; color: #a5f3fc; }
        .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; margin-right: 6px; }
        .footer { margin-top: 24px; text-align: center; font-size: 13px; color: #64748b; }
    </style>
</head>
<body>
    <div class="container">
        <span class="badge"><span class="status-dot"></span>Service Online</span>
        <h1>Airtel Merchant MAPP Microservice</h1>
        <p class="sub">100% Native Pure PHP Official Relay for Airtel Payments Bank Merchant API.</p>

        <div class="grid">
            <div class="card">
                <h3>PHP Environment</h3>
                <p>PHP 8.2.35 (OpenSSL Active)</p>
            </div>
            <div class="card">
                <h3>Server Time</h3>
                <p>10 Nov 2026, 09:37:29 AM IST</p>
            </div>
        </div>

        <div class="endpoints">
            <h3>Registered API Endpoints</h3>
            <div class="ep-item">
                <div><span class="method">POST</span><span class="path">/request-otp.php</span></div>
                <span style="color: #94a3b8;">Dispatch 6-Digit SMS OTP</span>
            </div>
            <div class="ep-item">
                <div><span class="method">POST</span><span class="path">/validate-otp.php</span></div>
                <span style="color: #94a3b8;">Validate OTP & Get 30-Day Token</span>
            </div>
            <div class="ep-item">
                <div><span class="method">POST</span><span class="path">/profile.php</span></div>
                <span style="color: #94a3b8;">Fetch Merchant Profile</span>
            </div>
            <div class="ep-item">
                <div><span class="method">POST</span><span class="path">/get-qr.php</span></div>
                <span style="color: #94a3b8;">Fetch UPI QR & VPA</span>
            </div>
            <div class="ep-item">
                <div><span class="method">POST</span><span class="path">/transactions.php</span></div>
                <span style="color: #94a3b8;">Live Passbook Auto-Reconciliation</span>
            </div>
        </div>

        <div class="footer">
            Self-Hosted Airtel Payments Bank Relay • Universal Subdomain Ready
        </div>
    </div>
</body>
</html>

