/* icons.jsx — lucide-style inline SVG icons (MIT path data), as small React components. */
(function () {
  const S = ({ size = 24, stroke = 2, children, ...p }) =>
    React.createElement(
      "svg",
      {
        width: size,
        height: size,
        viewBox: "0 0 24 24",
        fill: "none",
        stroke: "currentColor",
        strokeWidth: stroke,
        strokeLinecap: "round",
        strokeLinejoin: "round",
        "aria-hidden": "true",
        ...p,
      },
      React.Children.toArray(children)
    );
  const P = (d) => React.createElement("path", { d });
  const L = (x1, y1, x2, y2) => React.createElement("line", { x1, y1, x2, y2 });
  const C = (cx, cy, r) => React.createElement("circle", { cx, cy, r });
  const R = (x, y, w, h, rx) =>
    React.createElement("rect", { x, y, width: w, height: h, rx });

  const Icons = {
    ArrowRight: (p) => S({ ...p, children: [P("M5 12h14"), P("m12 5 7 7-7 7")] }),
    ArrowUpRight: (p) => S({ ...p, children: [P("M7 7h10v10"), P("M7 17 17 7")] }),
    Check: (p) => S({ ...p, children: [P("M20 6 9 17l-5-5")] }),
    ChevronDown: (p) => S({ ...p, children: [P("m6 9 6 6 6-6")] }),
    X: (p) => S({ ...p, children: [P("M18 6 6 18"), P("m6 6 12 12")] }),
    Menu: (p) => S({ ...p, children: [P("M4 6h16"), P("M4 12h16"), P("M4 18h16")] }),
    Sun: (p) =>
      S({
        ...p,
        children: [
          C(12, 12, 4),
          P("M12 2v2"), P("M12 20v2"), P("m4.93 4.93 1.41 1.41"),
          P("m17.66 17.66 1.41 1.41"), P("M2 12h2"), P("M20 12h2"),
          P("m6.34 17.66-1.41 1.41"), P("m19.07 4.93-1.41 1.41"),
        ],
      }),
    Moon: (p) => S({ ...p, children: [P("M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z")] }),
    MessageCircle: (p) => S({ ...p, children: [P("M7.9 20A9 9 0 1 0 4 16.1L2 22Z")] }),
    Receipt: (p) =>
      S({
        ...p,
        children: [
          P("M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"),
          P("M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8"),
          P("M12 17.5v-11"),
        ],
      }),
    Users: (p) =>
      S({
        ...p,
        children: [
          P("M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"),
          C(9, 7, 4),
          P("M22 21v-2a4 4 0 0 0-3-3.87"),
          P("M16 3.13a4 4 0 0 1 0 7.75"),
        ],
      }),
    BookOpen: (p) =>
      S({
        ...p,
        children: [
          P("M12 7v14"),
          P("M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"),
        ],
      }),
    BarChart: (p) =>
      S({
        ...p,
        children: [P("M3 3v16a2 2 0 0 0 2 2h16"), P("M18 17V9"), P("M13 17V5"), P("M8 17v-3")],
      }),
    CreditCard: (p) => S({ ...p, children: [R(2, 5, 20, 14, 2), P("M2 10h20")] }),
    Upload: (p) =>
      S({
        ...p,
        children: [
          P("M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),
          P("m17 8-5-5-5 5"),
          P("M12 3v12"),
        ],
      }),
    Link: (p) =>
      S({
        ...p,
        children: [P("M9 17H7A5 5 0 0 1 7 7h2"), P("M15 7h2a5 5 0 1 1 0 10h-2"), P("M8 12h8")],
      }),
    Sparkles: (p) =>
      S({
        ...p,
        children: [
          P("M9.94 14.66A2 2 0 0 0 8.5 13.2l-5.13-1.32a.5.5 0 0 1 0-.96L8.5 9.6a2 2 0 0 0 1.44-1.46l1.32-5.13a.5.5 0 0 1 .96 0l1.32 5.13A2 2 0 0 0 15 9.6l5.13 1.32a.5.5 0 0 1 0 .96L15 13.2a2 2 0 0 0-1.46 1.46l-1.32 5.13a.5.5 0 0 1-.96 0z"),
          P("M20 3v4"), P("M22 5h-4"),
        ],
      }),
    Star: (p) =>
      S({
        ...p,
        fill: "currentColor",
        stroke: "none",
        children: [P("M12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26z")],
      }),
    Shield: (p) =>
      S({
        ...p,
        children: [
          P("M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"),
          P("m9 12 2 2 4-4"),
        ],
      }),
    Smartphone: (p) => S({ ...p, children: [R(5, 2, 14, 20, 2), P("M12 18h.01")] }),
    Zap: (p) =>
      S({
        ...p,
        children: [P("M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z")],
      }),
    Clock: (p) => S({ ...p, children: [C(12, 12, 10), P("M12 6v6l4 2")] }),
    Send: (p) =>
      S({
        ...p,
        children: [
          P("M14.54 13.46 9 19l-3.5-1.5L21 3 3 10.5 9 13z"),
        ],
      }),
    Pencil: (p) =>
      S({
        ...p,
        children: [
          P("M21.17 6.83a2.83 2.83 0 0 0-4-4L4 16v4h4z"),
          P("m15 5 4 4"),
        ],
      }),
    Globe: (p) =>
      S({ ...p, children: [C(12, 12, 10), P("M2 12h20"), P("M12 2a15.3 15.3 0 0 1 0 20 15.3 15.3 0 0 1 0-20z")] }),
    Lock: (p) => S({ ...p, children: [R(3, 11, 18, 11, 2), P("M7 11V7a5 5 0 0 1 10 0v4")] }),
    Instagram: (p) =>
      S({
        ...p,
        children: [R(2, 2, 20, 20, 5), C(12, 12, 4), P("M17.5 6.5h.01")],
      }),
    Linkedin: (p) =>
      S({
        ...p,
        children: [
          P("M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6z"),
          R(2, 9, 4, 12, 0),
          C(4, 4, 2),
        ],
      }),
    XSocial: (p) =>
      S({
        ...p,
        fill: "currentColor",
        stroke: "none",
        children: [
          P("M18.244 2.25h3.308l-7.227 8.26 8.502 11.24h-6.66l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"),
        ],
      }),
    Tiktok: (p) =>
      S({
        ...p,
        children: [
          P("M9 12a4 4 0 1 0 4 4V4c.5 2.5 2.2 4.3 5 4.5"),
        ],
      }),
    PlayCircle: (p) => S({ ...p, children: [C(12, 12, 10), P("m10 8 6 4-6 4z")] }),
    PlayTriangle: (p) =>
      S({
        ...p,
        fill: "currentColor",
        stroke: "none",
        children: [P("M5 3.5c0-.8.85-1.3 1.54-.9l13 8.5c.65.42.65 1.38 0 1.8l-13 8.5c-.7.42-1.54-.1-1.54-.9z")],
      }),
    /* Official-style four-colour Google Play mark (trademark of Google LLC). */
    GooglePlayColor: ({ size = 20, ...p } = {}) =>
      React.createElement(
        "svg",
        { width: size, height: size, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", ...p },
        React.createElement("path", { d: "M4 2.6 L13 12 L4 12 Z", fill: "#00A0FF" }),
        React.createElement("path", { d: "M4 2.6 L21 12 L13 12 Z", fill: "#FF3B44" }),
        React.createElement("path", { d: "M4 21.4 L13 12 L4 12 Z", fill: "#00D267" }),
        React.createElement("path", { d: "M4 21.4 L21 12 L13 12 Z", fill: "#FFCE00" })
      ),
    BadgeCheck: (p) =>
      S({
        ...p,
        children: [
          P("M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"),
          P("m9 12 2 2 4-4"),
        ],
      }),
  };

  // Brand logo mark — aperture: green dashed ring + amber core (official brand asset).
  function LogoMark({ size = 40, onDark }) {
    return React.createElement(
      "svg",
      {
        xmlns: "http://www.w3.org/2000/svg",
        width: size, height: size,
        viewBox: "0 0 120 120",
        "aria-hidden": "true",
        style: { flex: "none", display: "inline-block" },
      },
      React.createElement("circle", {
        cx: "60", cy: "60", r: "34",
        fill: "none",
        stroke: onDark ? "#eef2ee" : "#0f5132",
        strokeWidth: "15",
        strokeLinecap: "round",
        strokeDasharray: "168 46",
        transform: "rotate(-58 60 60)",
      }),
      React.createElement("circle", { cx: "60", cy: "60", r: "12", fill: "#f59e0b" })
    );
  }

  window.Icons = Icons;
  window.LogoMark = LogoMark;
})();
