<?php
// Maintenance Mode
$maintenance = true;

if (!$maintenance) {
    header("Location: index.php");
    exit;
}
?>

<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<title>KOIWIN — Maintenance</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<style>
/* =========================
   BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
  height: 100vh;
  background: linear-gradient(180deg, #050505, #0b0b0b);
  color: #eaeaea;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   CARD
========================= */
.maintenance-box {
  width: 92%;
  max-width: 420px;
  padding: 48px 36px;
  background: linear-gradient(160deg, #0d0d0d, #151515);
  border-radius: 18px;
  border: 1px solid rgba(212,175,55,.25);
  box-shadow:
    0 0 0 1px rgba(212,175,55,.05),
    0 20px 60px rgba(0,0,0,.8);
  text-align: center;
}

/* =========================
   LOGO
========================= */
.logo {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 6px;
  color: #d4af37;
}

.logo span {
  color: #fff;
  font-weight: 300;
}

/* =========================
   TEXT
========================= */
.subtitle {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 4px;
  color: #888;
}

.divider {
  width: 48px;
  height: 2px;
  background: #d4af37;
  margin: 28px auto;
  opacity: .6;
}

.desc {
  font-size: 14px;
  line-height: 1.7;
  color: #bdbdbd;
}

.desc strong {
  color: #d4af37;
  font-weight: 500;
}

/* =========================
   LOADING BAR
========================= */
.progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.08);
  margin: 36px 0 26px;
  overflow: hidden;
  border-radius: 10px;
}

.progress::before {
  content: '';
  display: block;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  animation: loading 1.6s infinite ease-in-out;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* =========================
   FOOTER
========================= */
.footer {
  font-size: 11px;
  letter-spacing: 1px;
  color: #666;
}
</style>
</head>

<body>

<div class="maintenance-box">
  <div class="logo">KOI<span>WIN</span></div>
  <div class="subtitle">WEBSITE MAINTENANCE</div>

  <div class="divider"></div>

  <p class="desc">
    Sistem sedang dalam tahap peningkatan untuk<br>
    memberikan <strong>pengalaman bermain yang lebih stabil dan aman</strong>.
  </p>

  <div class="progress"></div>

  <p class="footer">
    © <?= date('Y'); ?> KOIWIN — Premium Gaming Platform
  </p>
</div>

</body>
</html>