// QRUZH icons (lightweight stroke icons, original)
const Icon = ({ name, size = 16, ...props }) => {
  const s = { width: size, height: size, fill: "none", stroke: "currentColor", strokeWidth: 1.6, strokeLinecap: "round", strokeLinejoin: "round" };
  const map = {
    dashboard: <svg viewBox="0 0 24 24" {...s} {...props}><rect x="3" y="3" width="7" height="9" rx="1.5"/><rect x="14" y="3" width="7" height="5" rx="1.5"/><rect x="14" y="12" width="7" height="9" rx="1.5"/><rect x="3" y="16" width="7" height="5" rx="1.5"/></svg>,
    inbox: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M3 12l3-7h12l3 7"/><path d="M3 12v6a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-6"/><path d="M3 12h5l1 2h6l1-2h5"/></svg>,
    raw: <svg viewBox="0 0 24 24" {...s} {...props}><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M3 15h18M9 3v18M15 3v18"/></svg>,
    transfer: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M4 8h13l-3-3M20 16H7l3 3"/></svg>,
    barcode: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M4 5v14M7 5v14M10 5v14M13 5v14M16 5v14M19 5v14"/></svg>,
    export: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M12 3v12M7 8l5-5 5 5"/><path d="M5 17v2a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-2"/></svg>,
    media: <svg viewBox="0 0 24 24" {...s} {...props}><rect x="3" y="5" width="18" height="14" rx="2"/><circle cx="9" cy="11" r="2"/><path d="M3 17l5-4 4 3 3-2 6 5"/></svg>,
    users: <svg viewBox="0 0 24 24" {...s} {...props}><circle cx="9" cy="8" r="3.5"/><path d="M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6"/><circle cx="17" cy="9" r="2.5"/><path d="M15 20c0-2.5 2-4.5 4.5-4.5"/></svg>,
    search: <svg viewBox="0 0 24 24" {...s} {...props}><circle cx="11" cy="11" r="7"/><path d="M16 16l5 5"/></svg>,
    plus: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M12 5v14M5 12h14"/></svg>,
    check: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M5 12l5 5L20 7"/></svg>,
    arrow_right: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M5 12h14M13 6l6 6-6 6"/></svg>,
    bell: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M6 16V11a6 6 0 1 1 12 0v5l1.5 2H4.5L6 16z"/><path d="M10 21h4"/></svg>,
    spark: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M12 3l1.8 5.4L19 10l-5.2 1.6L12 17l-1.8-5.4L5 10l5.2-1.6L12 3z"/></svg>,
    cube: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M12 3l8 4.5v9L12 21l-8-4.5v-9L12 3z"/><path d="M12 12l8-4.5M12 12l-8-4.5M12 12v9"/></svg>,
    warn: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M12 4l9 16H3L12 4z"/><path d="M12 10v5M12 18v.01"/></svg>,
    bolt: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M13 3L4 14h7l-1 7 9-11h-7l1-7z"/></svg>,
    download: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M12 4v12M7 11l5 5 5-5"/><path d="M5 20h14"/></svg>,
    link: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 1 0-5.7-5.7L11 7"/><path d="M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 1 0 5.7 5.7L13 17"/></svg>,
    shield: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M12 3l8 3v6c0 4.5-3.4 8.5-8 9-4.6-.5-8-4.5-8-9V6l8-3z"/></svg>,
    user: <svg viewBox="0 0 24 24" {...s} {...props}><circle cx="12" cy="8" r="4"/><path d="M4 21c0-4 3.5-7 8-7s8 3 8 7"/></svg>,
    box: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M3 7l9-4 9 4-9 4-9-4z"/><path d="M3 7v10l9 4 9-4V7"/><path d="M12 11v10"/></svg>,
    sell: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M3 7h12l4 5-7 9-9-7V7z"/><circle cx="8" cy="11" r="1.5"/></svg>,
    filter: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M3 5h18l-7 9v6l-4-2v-4L3 5z"/></svg>,
    more: <svg viewBox="0 0 24 24" {...s} {...props}><circle cx="5" cy="12" r="1.2"/><circle cx="12" cy="12" r="1.2"/><circle cx="19" cy="12" r="1.2"/></svg>,
    close: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M6 6l12 12M18 6L6 18"/></svg>,
    eye: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7-10-7-10-7z"/><circle cx="12" cy="12" r="3"/></svg>,
    eyeoff: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M17.9 17.9A10 10 0 0 1 12 19c-6 0-10-7-10-7a17.8 17.8 0 0 1 4.1-5.1M9.9 4.2A10 10 0 0 1 12 4c6 0 10 7 10 7a17.8 17.8 0 0 1-2.4 3.5M14.1 14.1A3 3 0 0 1 9.9 9.9"/><path d="M3 3l18 18"/></svg>,
    sync: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M21 12a9 9 0 0 0-15-6.7L3 8"/><path d="M3 4v4h4M3 12a9 9 0 0 0 15 6.7L21 16"/><path d="M21 20v-4h-4"/></svg>,
    history: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M3 12a9 9 0 1 0 3-6.7L3 8"/><path d="M3 4v4h4M12 7v5l3 2"/></svg>,
    tag: <svg viewBox="0 0 24 24" {...s} {...props}><path d="M3 12V3h9l9 9-9 9-9-9z"/><circle cx="8" cy="8" r="1.5"/></svg>,
  };
  return map[name] || null;
};

window.Icon = Icon;
