@page "/checkout"
@model Nalu.Web.Pages.CheckoutModel
@{
    Layout = null;
    var plan = Request.Query["plan"].ToString();
}
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" /><title>Redirecionando para pagamento…</title></head>
<body style="font-family:sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;background:#f8fafc">
    <div style="text-align:center">
        <div style="font-size:2rem;margin-bottom:1rem">⏳</div>
        <p style="color:#374151;font-size:1.1rem">Redirecionando para o pagamento…</p>
        <form id="f" method="post" action="/checkout?plan=@plan">
            @Html.AntiForgeryToken()
            <input type="hidden" name="plan" value="@plan" />
        </form>
        <script>document.getElementById('f').submit();</script>
        <noscript><button type="submit" form="f">Continuar para pagamento</button></noscript>
    </div>
</body>
</html>
