export function getQueryParam(param: string): string | null { const search = window.location.search || window.location.hash.split('?')[1] || ''; const params = new URLSearchParams(search); return params.get(param); }