    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background: #0e0e0e;
      color: #fff;
      overflow-x: hidden;
    }

    #particles-js {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: -1;
    }

    .container {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      padding: 20px;
      animation: fadeIn 1.2s ease;
    }

    h1 {
      color: #ff0000;
      margin-bottom: 10px;
      font-size: 36px;
      animation: slideDown 1s ease;
    }

    p {
      color: #ccc;
      margin-bottom: 30px;
      text-align: center;
      max-width: 600px;
      animation: fadeIn 1.5s ease;
    }

    .input-group {
      position: relative;
      width: 100%;
      max-width: 500px;
      animation: fadeIn 2s ease;
    }

    input[type="text"] {
      width: 100%;
      padding: 14px 50px 14px 16px;
      font-size: 16px;
      border: none;
      border-radius: 8px;
      background-color: #292929;
      color: #fff;
      outline: none;
    }

    .input-group button {
      position: absolute;
      right: 5px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      padding: 6px;
      cursor: pointer;
      border-radius: 6px;
      transition: background 0.3s;
    }

    .input-group button:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }

    .input-group img {
      width: 22px;
      height: 22px;
    }

    #downloadBtn {
      margin-top: 20px;
      padding: 14px 32px;
      font-weight: bold;
      font-size: 16px;
      border: none;
      border-radius: 8px;
      background: #ff0000;
      color: white;
      cursor: pointer;
      transition: background 0.3s;
      animation: fadeIn 2.5s ease;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    #downloadBtn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    #downloadBtn:hover {
      background: #cc0000;
    }

    #downloadBtn img {
      width: 20px;
      height: 20px;
    }

    #result {
      display: none;
      flex-direction: column;
      gap: 15px;
      background: #292929;
      padding: 20px;
      border-radius: 10px;
      margin-top: 30px;
      max-width: 500px;
      animation: fadeIn 2s ease;
    }

    #title {
      font-weight: bold;
      font-size: 18px;
      color: #ff5555;
      text-align: center;
    }

    .download-links {
      display: flex;
      gap: 15px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-download {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: #ff0000;
      color: white;
      padding: 12px 20px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      font-size: 15px;
      transition: background 0.3s;
    }

    .btn-download:hover {
      background: #cc0000;
    }

    .btn-download img {
      width: 20px;
      height: 20px;
    }

    .spinner {
      border: 3px solid #fff;
      border-top: 3px solid transparent;
      border-radius: 50%;
      width: 16px;
      height: 16px;
      animation: spin 1s linear infinite;
      display: inline-block;
    }

    /* Toast Container & Toasts */
    #toast-container {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-width: 90%;
    }

    .toast {
      display: flex;
      align-items: center;
      background: #fff;
      border-radius: 10px;
      padding: 14px 18px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
      min-width: 320px;
      max-width: 480px;
      position: relative;
      animation: slideIn 0.4s ease;
      border-left: 5px solid;
      color: #222;
      font-family: 'Segoe UI', sans-serif;
      cursor: default;
    }

    .toast .icon {
      width: 30px;
      height: 30px;
      margin-right: 12px;
      flex-shrink: 0;
    }

    .toast .content {
      flex-grow: 1;
    }

    .toast .title {
      font-weight: 600;
      margin-bottom: 4px;
    }

    .toast .message {
      font-size: 14px;
      color: #555;
    }

    .toast .close-btn {
      background: none;
      border: none;
      font-size: 18px;
      color: #aaa;
      cursor: pointer;
      position: absolute;
      top: 10px;
      right: 14px;
    }

    .toast.success { border-color: #22c55e; }
    .toast.info { border-color: #3b82f6; }
    .toast.warning { border-color: #facc15; }
    .toast.error { border-color: #ef4444; }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    @keyframes fadeIn {
      from {opacity: 0; transform: translateY(20px);}
      to {opacity: 1; transform: translateY(0);}
    }

    @keyframes slideDown {
      from {opacity: 0; transform: translateY(-30px);}
      to {opacity: 1; transform: translateY(0);}
    }

    @keyframes slideIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 600px) {
      h1 { font-size: 28px; }
      p { font-size: 14px; }
    }
    
    @keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}