<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>500 — Server Error | 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, #0a0a0a, #1a1a2e, #16213e);
      font-family: 'Segoe UI', sans-serif;
      color: #fff;
    }
    .error-number {
      font-size: clamp(90px, 18vw, 148px);
      font-weight: 900;
      line-height: 1;
      background: linear-gradient(135deg, #f093fb, #f5576c);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: -6px;
    }
    .boom { font-size: 72px; animation: boom 1s ease-in-out infinite alternate; display: block; margin: 8px 0; }
    @keyframes boom { from{transform:scale(1)} to{transform:scale(1.15)} }
    .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: .7; line-height: 1.7; margin-bottom: 36px; }
    .btn-home {
      background: linear-gradient(135deg, #f093fb, #f5576c);
      color: white; 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-home:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(240,147,251,.4); color: white; }
    .btn-back {
      background: rgba(255,255,255,.1); color: white;
      border: 1px solid rgba(255,255,255,.2);
      padding: 14px 28px; border-radius: 50px;
      font-size: 16px; font-weight: 500;
      text-decoration: none; margin-left: 12px;
      display: inline-flex; align-items: center; gap: 8px;
    }
    .btn-back:hover { background: rgba(255,255,255,.2); color: 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">500</div>
    <span class="boom">💥</span>
    <h1 class="error-title">Internal Server Error</h1>
    <p class="error-desc">
      Something exploded on our end — it's not you, it's us!<br>
      Our team has been notified. Please try again in a moment.
    </p>
    <div>
      <a href="/" class="btn-home"><i class="fas fa-home"></i> Go Home</a>
      <a href="javascript:location.reload()" class="btn-back"><i class="fas fa-redo"></i> Retry</a>
    </div>
    <p class="brand">SwiftPOS Software</p>
  </div>
</body>
</html>
