const finalJSON = JSON.stringify(allInbounds, null, 2);

        if (navigator.clipboard && window.isSecureContext) {
          navigator.clipboard
            .writeText(finalJSON)
            .then(() => alert(`Copied JSON for selected tags:\n${selectedTags.join(", ")}`))
            .catch(err => alert("Failed to copy: " + err));
        } else {
          let tempTextarea = document.createElement("textarea");
          tempTextarea.value = finalJSON;
          document.body.appendChild(tempTex