2000);
        } catch (err) {
          // Fallback for older browsers
          imgDataUri.select();
          document.execCommand('copy');
          copyBtn.textContent = '‚úì Copied!';
          copyBtn.classList.add('success');
          setTimeout(() => {
            copyBtn.textContent = 'Copy to Clipboard';
            copyBtn.classList.remove('success');
          }, 2000);
        }
      }
    });

    // Image press/hold handlers
    output.addEventListener('mousedown', (e) => {
      e.pre