<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Whitelist Confirmation</title>
  <style>
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background-color: #0d0d0d;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      text-align: center;
    }
    .container {
      max-width: 400px;
      background: #1b1b1b;
      border-radius: 8px;
      padding: 20px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }
    .success-icon {
      width: 50px;
      height: 50px;
      margin: 10px auto 20px;
      display: flex;
      justify-content: center;
      align-items: center;
      border: 2px solid #00b62e;
      border-radius: 50%;
    }
    .success-icon::after {
      content: '✔';
      color: #00b62e;
      font-size: 24px;
    }
    .message {
      font-size: 18px;
      margin-bottom: 20px;
    }
    .key-box {
      background: #000;
      border: 1px solid #666;
      padding: 10px;
      border-radius: 4px;
      font-family: monospace;
      margin: 10px 0;
      word-break: break-all;
    }
    button {
      background: #444;
      color: #fff;
      border: none;
      padding: 10px 20px;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.3s ease;
    }
    button:hover {
      background: #555;
    }
    footer {
      margin-top: 20px;
      font-size: 12px;
      color: #777;
    }
    footer a {
      color: #777;
      text-decoration: none;
    }
    footer a:hover {
      text-decoration: underline;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="success-icon"></div>
    <h1>Aeroware 0.2</h1>
    <p class="message">Please return to the service for access when the script ask an key.</p>
    <div id="keyBox" class="key-box"></div>
    <button onclick="copyKey()">Copy</button>
    <footer>
     </footer>
  </div>
  <script>
    function generateHWID() {
      const randomString = Math.random().toString(36).substring(2, 18);
      return `key_${randomString}`;
    }

    function copyKey() {
      const key = document.getElementById("keyBox").textContent;
      navigator.clipboard.writeText(key).then(() => {
        alert("Key copied to clipboard!");
      });
    }

    window.onload = () => {
      const hwid = generateHWID();
      document.getElementById("keyBox").textContent = hwid;
    };
  </script>
</body>
</html>
