  <!DOCTYPE html>
  <html lang="en">
  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Redirecting to Telegram...</title>
      <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
      <style>
          :root {
              --primary-color: #4a00e0;
              --secondary-color: #8e2de2;
          }
          body {
              font-family: 'Poppins', sans-serif;
              background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
              margin: 0;
              padding: 0;
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: center;
              min-height: 100vh;
              color: #ffffff;
              overflow: hidden;
          }
          .container {
              text-align: center;
              background: rgba(255, 255, 255, 0.1);
              backdrop-filter: blur(10px);
              border-radius: 20px;
              padding: 2rem;
              box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
              border: 1px solid rgba(255, 255, 255, 0.18);
              animation: fadeIn 0.5s ease-out, float 6s ease-in-out infinite;
              max-width: 90%;
              width: 400px;
          }
          @keyframes fadeIn {
              from { opacity: 0; transform: translateY(-20px); }
              to { opacity: 1; transform: translateY(0); }
          }
          @keyframes float {
              0%, 100% { transform: translateY(0); }
              50% { transform: translateY(-10px); }
          }
          .countdown {
              font-size: 4rem;
              font-weight: 600;
              color: #ffffff;
              text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
              animation: pulse 1s infinite alternate;
              margin: 1rem 0;
          }
          @keyframes pulse {
              from { transform: scale(1); }
              to { transform: scale(1.05); }
          }
          .message {
              font-size: 1.2rem;
              margin-top: 1rem;
              font-weight: 300;
          }
          .loader {
              margin: 1rem auto;
              position: relative;
              width: 100px;
              height: 100px;
              display: flex;
              justify-content: center;
              align-items: center;
          }
          .loader::before,
          .loader::after {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              border-radius: 50%;
              border: 5px solid transparent;
              border-top-color: #ffffff;
          }
          .loader::before {
              z-index: 100;
              animation: spin 1s infinite;
          }
          .loader::after {
              border: 5px solid rgba(255, 255, 255, 0.3);
          }
          @keyframes spin {
              0% { transform: rotate(0deg); }
              100% { transform: rotate(360deg); }
          }
          .redirect-link {
              color: #ffffff;
              text-decoration: none;
              font-weight: 600;
              transition: all 0.3s ease;
              border-bottom: 2px solid transparent;
              padding-bottom: 2px;
          }
          .redirect-link:hover {
              border-bottom: 2px solid #ffffff;
          }
          .particles {
              position: fixed;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              z-index: -1;
          }
          @media (max-width: 480px) {
              .container {
                  padding: 1.5rem;
                  width: 85%;
              }
              .countdown {
                  font-size: 3rem;
              }
              .message {
                  font-size: 1rem;
              }
              .loader {
                  margin: 1rem auto;
                  width: 70px;
                  height: 70px;
              }
          }
      </style>
      <script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
  </head>
  <body>
      <div id="particles" class="particles"></div>
      <div class="container">
          <div class="loader"></div>
          <div class="message">Redirecting you to Telegram bot in</div>
          <div class="countdown" id="countdown">3</div>
          <div class="message">If not redirected, <a href="${redirectURL}" id="redirect-link" class="redirect-link">click here</a>.</div>
      </div>
  
      <script>
          function startCountdown(seconds, redirectURL) {
              const countdownElement = document.getElementById('countdown');
              const redirectLink = document.getElementById('redirect-link');
              
              redirectLink.href = redirectURL;
  
              function updateCountdown() {
                  countdownElement.textContent = seconds;
                  seconds--;
  
                  if (seconds < 0) {
                      window.location.replace(redirectURL);
                  } else {
                      setTimeout(updateCountdown, 1000);
                  }
              }
  
              updateCountdown();
          }
  
          document.addEventListener('DOMContentLoaded', function() {
              const redirectURL = "${redirectURL}";
              startCountdown(3, redirectURL);
  
              particlesJS('particles', {
                  particles: {
                      number: { value: 80, density: { enable: true, value_area: 800 } },
                      color: { value: "#ffffff" },
                      shape: { type: "circle" },
                      opacity: { value: 0.5, random: true },
                      size: { value: 3, random: true },
                      move: { enable: true, speed: 2, direction: "none", random: true, out_mode: "out" }
                  },
                  interactivity: {
                      detect_on: "canvas",
                      events: {
                          onhover: { enable: true, mode: "repulse" },
                          onclick: { enable: true, mode: "push" }
                      },
                      modes: {
                          repulse: { distance: 100, duration: 0.4 },
                          push: { particles_nb: 4 }
                      }
                  }
              });
          });
      </script>
  </body>
  </html>