<!DOCTYPE html>
<html lang="en" class="dark">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="Mystic Hub Signer">
  <meta name="keywords" content="Mystic Hub Signer">
  <meta property="og:locale" content="en_US">
  <meta property="og:title" content="Mystic Hub Signer">
  <meta property="og:site_name" content="Mystic Hub Signer">
  <title>Mystic Hub Signer 2.0</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
  <link rel="stylesheet" href="styles.css">
</head>
<body id="kt_body" class="dark-mode min-h-screen flex flex-col">
  <header class="bg-primary text-primary-foreground py-4 px-6 flex justify-between items-center">
    <div class="flex items-center gap-4">
      <svg class="w-8 h-8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
        <path d="M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973" />
        <path d="m13 12-3 5h4l-3 5" />
      </svg>
      <h1 class="text-2xl font-bold">Mystic Hub Signer</h1>
    </div>
    <div></div>
  </header>


  <main class="flex-1 py-16 px-6">
    <nav class="text-center mb-12">
      <button onclick="showSection('home')" class="text-lg font-medium p-4 hover:text-primary">Home</button>
      <button onclick="showSection('how-to-sign')" class="text-lg font-medium p-4 hover:text-primary">How to Sign</button>
      <button onclick="showSection('signer')" class="text-lg font-medium p-4 hover:text-primary">Signer</button>
    </nav>


    <section id="home" class="section-container active">
      <h2 class="text-4xl font-bold text-center mb-4">Welcome to Mystic Hub Signer</h2>
      <p class="text-xl text-center max-w-2xl mx-auto">
        Mystic Hub Signer is a powerful tool that allows you to sideload iOS apps by signing them with your P12 and mobile provision files. Simply upload your files, enter your password, and download the signed IPA.
      </p>
    </section>


    <section id="how-to-sign" class="section-container">
      <h2 class="text-4xl font-bold text-center mb-4">How to Sign Your IPA File</h2>
      <p class="text-lg max-w-2xl mx-auto">
        To sign your IPA file, follow these steps:
      </p>
      <ul class="list-decimal space-y-2 text-lg max-w-2xl mx-auto">
        <li>1. Select the IPA file you want to sign.</li>
        <li>2. Upload your provisioning profile and P12 certificate.</li>
        <li>3. Enter the password for your P12 certificate.</li>
        <li>4. Click the "Upload and Sign" button to start the signing process.</li>
      </ul>
    </section>


    <section id="signer" class="section-container">
      <h2 class="text-4xl font-bold text-center mb-4">Sign Your IPA File</h2>
      <form id="signForm" class="space-y-6">
        <div class="space-y-1">
          <label for="ipa" class="block text-sm font-medium">IPA File</label>
          <input type="file" id="ipa" accept=".ipa" class="block w-full border border-gray-300 dark:border-gray-600 rounded px-3 py-2">
        </div>
        <div class="space-y-1">
          <label for="prov" class="block text-sm font-medium">Provision File</label>
          <input type="file" id="prov" accept=".mobileprovision" class="block w-full border border-gray-300 dark:border-gray-600 rounded px-3 py-2">
        </div>
        <div class="space-y-1">
          <label for="p12" class="block text-sm font-medium">P12 File</label>
          <input type="file" id="p12" accept=".p12" class="block w-full border border-gray-300 dark:border-gray-600 rounded px-3 py-2">
        </div>
        <div class="col">
          <div class="fv-row mb-7">
            <label class="fs-6 fw-semibold form-label mt-3">
              <span>Password</span>
            </label>
            <div class="relative">
              <input type="password" id="password" class="block w-full border rounded px-3 py-2">
              <span id="togglePassword" class="eye-icon">👁️</span>
            </div>
          </div>
        </div>
        <button id="uploadipa" type="button" class="btn-primary w-full py-3 rounded-lg font-medium text-lg transition-colors" disabled>
          Upload and Sign
        </button>
      </form>


      <div class="dropzone-progress" id="nyaster" style="display: none;">
        <progress id="progress" class="w-full" value="0" max="100"></progress>
        <div class="progress-bar" id="progress-bar"></div>
      </div>
    </section>
  </main>

 <script src="script.js"></script>
</body>
</html>