        
        const successful = document.execCommand('copy');
        if (callback) callback(successful);
        
        if (!successful) {
          console.warn('Fallback copy failed');
          // Last resort: show alert with text to copy manually
          alert('Please copy this link manually:\n\n' + text);
        }
      } catch (err) {
        console.error('All copy methods failed:', err);
        if (callback) callback(false);
        // Last resort: show alert with text to copy manually
  