<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Payment Failed</title>
  <?= $this->include("admin/layout/partials/styles") ?>
  <style>
    .wrap { max-width: 720px; margin: 0 auto; }
    .card {
      background: #fff;
      border: 1px solid #e9ecef;
      border-radius: 12px;
      box-shadow: 0 8px 22px rgba(0,0,0,.08);
      overflow: hidden;
    }
    .head {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      color: #fff;
      padding: 18px 20px;
    }
    .title { font-weight: 700; margin: 0; font-size: 18px; }
    .body { padding: 20px; }
    .info { font-size: 15px; }
    .btn {
      display: inline-block;
      padding: 10px 16px;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 700;
    }
    .btn-primary { background: #0b74ff; color: #fff; }
  </style>
</head>
<body class="hold-transition layout-top-nav">
<div class="wrapper">
  <?= $this->include('frontend/partials/top_navbar') ?>
  <div class="content-wrapper">
    <section class="content">
      <div class="container py-4">
        <div class="wrap">
          <div class="card">
            <div class="head">
              <h1 class="title">Payment Failed</h1>
            </div>
            <div class="body">
              <p class="info"><?php echo esc($message ?? 'Payment could not be completed.') ?></p>
              <div class="mt-3">
                <a class="btn btn-primary" href="<?php echo url('/') ?>">Back to Home</a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
</div>
<?= $this->include("admin/layout/partials/scripts") ?>
</body>
</html>
