<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Payment Failed</title>
<style>
  body{margin:0;font-family:'Segoe UI',system-ui,sans-serif;background:#f4f6fb;display:flex;
       align-items:center;justify-content:center;min-height:100vh}
  .card{background:#fff;border-radius:18px;padding:36px 28px;max-width:380px;width:90%;
        text-align:center;box-shadow:0 8px 32px rgba(0,0,0,.09)}
  .dot{width:64px;height:64px;border-radius:50%;margin:0 auto 18px;display:flex;
       align-items:center;justify-content:center;font-size:30px;color:#fff;background:#d93025}
  h1{font-size:1.2rem;margin:0 0 8px;color:#1a1c1e}
  p{color:#5f6368;font-size:.9rem;margin:0 0 22px;line-height:1.5}
  a.btn{display:inline-block;background:#1A73E8;color:#fff;text-decoration:none;
        padding:12px 26px;border-radius:12px;font-weight:600}
</style>
</head>
<body>
  <div class="card">
    <div class="dot">!</div>
    <h1>Payment Failed</h1>
    <p>Missing transaction reference.</p>
    <a class="btn" href="notesharebd://payment?status=failed&amp;paymentId=&amp;purpose=&amp;referenceId=&amp;message=Missing+transaction+reference.">Open NoteShare Bd</a>
  </div>
  <script>
    // Hand control back to the Android app immediately; the button is a fallback
    setTimeout(function () { window.location.href = "notesharebd:\/\/payment?status=failed&paymentId=&purpose=&referenceId=&message=Missing+transaction+reference."; }, 600);
  </script>
</body>
</html>
