export function isValidURL(url: string): boolean { try { new URL(url); return true; } catch { return false; } }