<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>503 — Service Unavailable | SwiftPOS</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <style>
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #0f3443, #34e89e, #0f3443);
      background-size: 400% 400%;
      animation: gradientShift 8s ease infinite;
      font-family: 'Segoe UI', sans-serif;
      color: #fff;
    }
    @keyframes gradientShift {
      0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%}
    }
    .error-number {
      font-size: clamp(90px, 18vw, 148px);
      font-weight: 900;
      line-height: 1;
      background: linear-gradient(135deg, #ffffff, #34e89e);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: -6px;
    }
    .wrench { font-size: 72px; animation: wrench 1.5s ease-in-out infinite alternate; display: block; margin: 8px 0; }
    @keyframes wrench { from{transform:rotate(-15deg)} to{transform:rotate(15deg)} }
    .error-card { text-align: center; max-width: 500px; padding: 60px 36px; }
    .error-title { font-size: 26px; font-weight: 700; margin: 16px 0 10px; }
    .error-desc { opacity: .8; line-height: 1.7; margin-bottom: 36px; }
    .countdown { font-size: 14px; opacity: .6; margin-top: 16px; }
    .btn-retry {
      background: rgba(255,255,255,0.9);
      color: #0f3443; border: none;
      padding: 14px 36px; border-radius: 50px;
      font-size: 16px; font-weight: 700;
      text-decoration: none;
      display: inline-flex; align-items: center; gap: 10px;
      transition: transform .2s, box-shadow .2s;
    }
    .btn-retry:hover { transform: translateY(-3px); color: #0f3443; background: white; }
    .brand { font-size: 13px; opacity: .35; margin-top: 40px; letter-spacing: 2px; text-transform: uppercase; }
  </style>
</head>
<body>
  <div class="error-card">
    <div class="error-number">503</div>
    <span class="wrench">🔧</span>
    <h1 class="error-title">Service Unavailable</h1>
    <p class="error-desc">
      The server is temporarily down for maintenance.<br>
      We'll be back online shortly. Thank you for your patience!
    </p>
    <a href="javascript:location.reload()" class="btn-retry">
      <i class="fas fa-sync-alt"></i> Retry Now
    </a>
    <p class="countdown" id="countdown"></p>
    <p class="brand">SwiftPOS Software</p>
  </div>

  <script>
    // Auto-retry countdown
    var remaining = 30;
    var el = document.getElementById('countdown');
    function tick() {
      el.textContent = 'Automatically retrying in ' + remaining + 's...';
      if (remaining <= 0) { location.reload(); return; }
      remaining--;
      setTimeout(tick, 1000);
    }
    tick();
  </script>
</body>
</html>
