<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Payment Successful – Collnetwork</title>
  <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap" rel="stylesheet">
  <style>
    :root {
      --purple-deep:#3b1f6e; --purple-mid:#6b3fa0;
      --green-vivid:#22c55e; --green-mid:#16a34a;
    }
    *{margin:0;padding:0;box-sizing:border-box;}
    body{font-family:'Nunito',sans-serif;min-height:100vh;
      background:linear-gradient(135deg,#0d0620 0%,#1a0a3c 50%,#0a1f0a 100%);
      display:flex;flex-direction:column;align-items:center;justify-content:center;
      padding:32px 16px;}
    .card{background:white;border-radius:24px;padding:40px 36px;max-width:480px;width:100%;
      text-align:center;box-shadow:0 30px 80px rgba(0,0,0,0.5);}
    .checkmark{width:80px;height:80px;background:linear-gradient(135deg,var(--green-mid),var(--green-vivid));
      border-radius:50%;display:flex;align-items:center;justify-content:center;
      margin:0 auto 20px;box-shadow:0 8px 24px rgba(34,197,94,0.4);
      animation:popIn 0.5s cubic-bezier(0.22,1,0.36,1);}
    @keyframes popIn{from{transform:scale(0)}to{transform:scale(1)}}
    .checkmark svg{width:40px;height:40px;fill:white;}
    h1{font-size:26px;font-weight:900;color:#1a0a3c;margin-bottom:8px;}
    p{color:#6b7280;font-size:14px;margin-bottom:24px;}
    .info-box{background:#f3eeff;border-radius:14px;padding:18px;text-align:left;margin-bottom:24px;}
    .info-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0;
      border-bottom:1px solid #e4d9f5;font-size:14px;}
    .info-row:last-child{border-bottom:none;}
    .info-row .label{color:#7c6fa0;font-weight:600;}
    .info-row .value{color:#1a0a3c;font-weight:700;}
    .value.active{color:var(--green-mid);}
    .btn{display:block;width:100%;padding:14px;border-radius:12px;border:none;
      font-family:'Nunito',sans-serif;font-size:15px;font-weight:800;cursor:pointer;
      text-decoration:none;text-align:center;margin-top:10px;}
    .btn-primary{background:linear-gradient(135deg,var(--purple-mid),var(--purple-deep));color:white;
      box-shadow:0 6px 20px rgba(107,63,160,0.4);}
    .btn-outline{background:transparent;border:2px solid #e4d9f5;color:var(--purple-mid);}
    footer{margin-top:24px;color:rgba(255,255,255,0.4);font-size:12px;}
  </style>
</head>
<body>
  <div class="card">
    <div class="checkmark">
      <svg viewBox="0 0 24 24"><path d="M9 12.4L5.6 9 4.2 10.4l4.8 4.8 10-10-1.4-1.4z"/></svg>
    </div>
    <h1>You're Connected! 🎉</h1>
    <p>Payment confirmed. Your internet subscription is now active.</p>

    <div class="info-box">
      <div class="info-row">
        <span class="label">Name</span>
        <span class="value">{{ subscriber.first_name }} {{ subscriber.surname }}</span>
      </div>
      <div class="info-row">
        <span class="label">Email / Username</span>
        <span class="value">{{ subscriber.email }}</span>
      </div>
      <div class="info-row">
        <span class="label">Status</span>
        <span class="value active">● Active</span>
      </div>
      <div class="info-row">
        <span class="label">Expires</span>
        <span class="value">
          {% if subscriber.expiry_date %}
            {{ subscriber.expiry_date.strftime('%d %B %Y') }}
          {% else %}
            –
          {% endif %}
        </span>
      </div>
      <div class="info-row">
        <span class="label">Amount Paid</span>
        <span class="value">₦3,147.21</span>
      </div>
    </div>

    <p style="font-size:13px;color:#6b46c1;background:#f3eeff;border-radius:10px;padding:12px;">
      🔑 Use your <strong>email</strong> as your username and the <strong>password you chose</strong> to connect on the WiFi login page.
    </p>

    <a href="http://hotspot.collnetwork.net/login" class="btn btn-primary" style="margin-top:16px;">
      🌐 Go to WiFi Login
    </a>
    <a href="/register" class="btn btn-outline">Register Another Account</a>
  </div>
  <footer>© 2025 Collnetwork Technology LTD</footer>
</body>
</html>
