{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "link-in-bio-card",
  "type": "registry:component",
  "title": "Link in Bio Card",
  "description": "A phone-sized link page for a local business: cover, avatar, verified name, open status, bio, an Order now button, a list of icon links, native share with a copy fallback, a QR toggle and a Save contact button that downloads a vCard.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "ordering",
    "link in bio",
    "profile",
    "links",
    "vcard",
    "share",
    "mobile"
  ],
  "docs": "https://hyperblur.dev/effects/link-in-bio-card",
  "files": [
    {
      "path": "registry/hyperblur/link-in-bio-card.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/link-in-bio-card.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport type LinkInBioIcon = \"menu\" | \"delivery\" | \"location\" | \"chat\" | \"camera\" | \"reviews\" | \"link\";\n\nexport interface LinkInBioLink {\n  id: string;\n  label: string;\n  href: string;\n  icon?: LinkInBioIcon;\n  hint?: string;\n}\n\nexport interface LinkInBioContact {\n  name: string;\n  phone?: string;\n  email?: string;\n  url?: string;\n  street?: string;\n  city?: string;\n  region?: string;\n  postalCode?: string;\n  country?: string;\n}\n\nexport interface LinkInBioStatus {\n  tone: \"open\" | \"closing\" | \"closed\";\n  label: string;\n}\n\nexport interface LinkInBioLabels {\n  share: string;\n  copied: string;\n  showQr: string;\n  hideQr: string;\n  qrCaption: string;\n  saveContact: string;\n  verified: string;\n  footer: string;\n}\n\nexport interface LinkInBioCardProps extends React.HTMLAttributes<HTMLElement> {\n  name?: string;\n  handle?: string;\n  initials?: string;\n  verified?: boolean;\n  status?: LinkInBioStatus | null;\n  bio?: string;\n  primary?: { label: string; href: string } | null;\n  links?: LinkInBioLink[];\n  contact?: LinkInBioContact | null;\n  shareUrl?: string;\n  shareTitle?: string;\n  appearance?: \"light\" | \"dark\";\n  accent?: string;\n  labels?: Partial<LinkInBioLabels>;\n  onShare?: (method: \"native\" | \"copy\") => void;\n  onLinkClick?: (link: LinkInBioLink) => void;\n}\n\nconst defaultLabels: LinkInBioLabels = {\n  share: \"Share\",\n  copied: \"Link copied\",\n  showQr: \"Show QR code\",\n  hideQr: \"Hide QR code\",\n  qrCaption: \"Scan to open this page on another phone\",\n  saveContact: \"Save contact\",\n  verified: \"Verified business\",\n  footer: \"Made with care in Brooklyn\",\n};\n\nconst defaultLinks: LinkInBioLink[] = [\n  { id: \"menu\", label: \"See the full menu\", href: \"https://cornerkitchen.example/menu\", icon: \"menu\", hint: \"Burgers, bowls, shakes\" },\n  { id: \"delivery\", label: \"Delivery in 25 min\", href: \"https://cornerkitchen.example/order?mode=delivery\", icon: \"delivery\", hint: \"Free over $30\" },\n  { id: \"location\", label: \"418 Maple Avenue\", href: \"https://www.google.com/maps/search/?api=1&query=418%20Maple%20Avenue%20Brooklyn\", icon: \"location\", hint: \"Park Slope, Brooklyn\" },\n  { id: \"chat\", label: \"Order on chat\", href: \"https://wa.me/17185550142?text=Hi%2C%20I%27d%20like%20to%20order\", icon: \"chat\", hint: \"Replies in minutes\" },\n  { id: \"photos\", label: \"Follow our kitchen\", href: \"https://cornerkitchen.example/photos\", icon: \"camera\", hint: \"@cornerkitchen\" },\n  { id: \"reviews\", label: \"Read 1,284 reviews\", href: \"https://cornerkitchen.example/reviews\", icon: \"reviews\", hint: \"4.6 average\" },\n];\n\nconst defaultContact: LinkInBioContact = {\n  name: \"Corner Kitchen\",\n  phone: \"+1 718 555 0142\",\n  email: \"hello@cornerkitchen.example\",\n  url: \"https://cornerkitchen.example\",\n  street: \"418 Maple Avenue\",\n  city: \"Brooklyn\",\n  region: \"NY\",\n  postalCode: \"11215\",\n  country: \"USA\",\n};\n\nfunction vEscape(value: string): string {\n  return value.replace(/\\\\/g, \"\\\\\\\\\").replace(/\\n/g, \"\\\\n\").replace(/,/g, \"\\\\,\").replace(/;/g, \"\\\\;\");\n}\n\nexport function buildVCard(contact: LinkInBioContact): string {\n  const lines = [\"BEGIN:VCARD\", \"VERSION:3.0\", `FN:${vEscape(contact.name)}`, `ORG:${vEscape(contact.name)}`];\n  if (contact.phone) lines.push(`TEL;TYPE=WORK,VOICE:${vEscape(contact.phone)}`);\n  if (contact.email) lines.push(`EMAIL;TYPE=INTERNET:${vEscape(contact.email)}`);\n  if (contact.url) lines.push(`URL:${vEscape(contact.url)}`);\n  if (contact.street || contact.city) {\n    const parts = [\"\", \"\", contact.street, contact.city, contact.region, contact.postalCode, contact.country].map((p) => vEscape(p ?? \"\"));\n    lines.push(`ADR;TYPE=WORK:${parts.join(\";\")}`);\n  }\n  lines.push(\"END:VCARD\");\n  return lines.join(\"\\r\\n\");\n}\n\nfunction hash(n: number): number {\n  let x = (n * 374761393 + 668265263) | 0;\n  x = Math.imul(x ^ (x >>> 13), 1274126177);\n  return ((x ^ (x >>> 16)) >>> 0) / 4294967296;\n}\n\nfunction seedOf(text: string): number {\n  let h = 2166136261;\n  for (let i = 0; i < text.length; i++) h = Math.imul(h ^ text.charCodeAt(i), 16777619);\n  return h >>> 0;\n}\n\nfunction PatternQr({ value }: { value: string }) {\n  const n = 25;\n  const seed = seedOf(value);\n  const eye = (x: number, y: number) => (x < 8 && y < 8) || (x >= n - 8 && y < 8) || (x < 8 && y >= n - 8);\n  let d = \"\";\n  for (let y = 0; y < n; y++) {\n    for (let x = 0; x < n; x++) {\n      if (eye(x, y)) continue;\n      if (hash(seed % 100000 + y * n + x) > 0.52) d += `M${x + 2} ${y + 2}h1v1h-1z`;\n    }\n  }\n  const eyes = [\n    [2, 2],\n    [n - 5, 2],\n    [2, n - 5],\n  ];\n  return (\n    <svg viewBox={`0 0 ${n + 4} ${n + 4}`} shapeRendering=\"crispEdges\" aria-hidden=\"true\">\n      <rect width={n + 4} height={n + 4} fill=\"#ffffff\" />\n      <path d={d} fill=\"#111111\" />\n      {eyes.map(([x, y]) => (\n        <g key={`${x}-${y}`} fill=\"#111111\">\n          <path fillRule=\"evenodd\" d={`M${x} ${y}h7v7h-7z M${x + 1} ${y + 1}v5h5v-5z`} />\n          <rect x={x + 2} y={y + 2} width=\"3\" height=\"3\" />\n        </g>\n      ))}\n    </svg>\n  );\n}\n\nfunction LinkIcon({ icon }: { icon: LinkInBioIcon }) {\n  const p = { width: 18, height: 18, viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: 1.8, strokeLinecap: \"round\" as const, strokeLinejoin: \"round\" as const, \"aria-hidden\": true };\n  switch (icon) {\n    case \"menu\":\n      return (\n        <svg {...p}>\n          <path d=\"M6 3h12v18H6z\" />\n          <path d=\"M9 8h6M9 12h6M9 16h4\" />\n        </svg>\n      );\n    case \"delivery\":\n      return (\n        <svg {...p}>\n          <circle cx=\"6.5\" cy=\"17\" r=\"2.5\" />\n          <circle cx=\"17.5\" cy=\"17\" r=\"2.5\" />\n          <path d=\"M9 17h6l-2-7H9M15 6h3l2 6M4 13h6\" />\n        </svg>\n      );\n    case \"location\":\n      return (\n        <svg {...p}>\n          <path d=\"M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z\" />\n          <circle cx=\"12\" cy=\"9.5\" r=\"2.5\" />\n        </svg>\n      );\n    case \"chat\":\n      return (\n        <svg {...p}>\n          <path d=\"M4 20l1.4-4A8 8 0 1 1 8.5 19z\" />\n          <path d=\"M9.5 9.5c.3 2 2 4 4.5 4.6l1-1.1 1.8.8\" />\n        </svg>\n      );\n    case \"camera\":\n      return (\n        <svg {...p}>\n          <rect x=\"3.5\" y=\"3.5\" width=\"17\" height=\"17\" rx=\"5\" />\n          <circle cx=\"12\" cy=\"12\" r=\"4\" />\n          <circle cx=\"17\" cy=\"7\" r=\"0.6\" fill=\"currentColor\" />\n        </svg>\n      );\n    case \"reviews\":\n      return (\n        <svg {...p}>\n          <path d=\"M12 3.5l2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.8l-5.2 2.7 1-5.8L3.6 9.6l5.8-.8z\" />\n        </svg>\n      );\n    default:\n      return (\n        <svg {...p}>\n          <path d=\"M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1\" />\n          <path d=\"M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1\" />\n        </svg>\n      );\n  }\n}\n\nconst css = `\n.hb-od4 {\n  --hb-od4-accent: #ff5a36;\n  --hb-od4-page: #efebe3;\n  --hb-od4-card: #ffffff;\n  --hb-od4-line: rgba(20, 20, 20, 0.09);\n  --hb-od4-row: #f7f5f0;\n  --hb-od4-rowhover: #f0ede6;\n  --hb-od4-text: #151515;\n  --hb-od4-muted: #6f6b64;\n  box-sizing: border-box;\n  container-type: inline-size;\n  position: relative;\n  width: 100%;\n  overflow: hidden;\n  padding: 56px 16px 64px;\n  background:\n    radial-gradient(40% 50% at 18% 12%, color-mix(in srgb, var(--hb-od4-accent) 22%, transparent), transparent 70%),\n    radial-gradient(36% 40% at 84% 78%, color-mix(in srgb, #ffb341 26%, transparent), transparent 70%),\n    var(--hb-od4-page);\n  color: var(--hb-od4-text);\n  font-family: inherit;\n  font-size: 14px;\n  line-height: 1.45;\n}\n.hb-od4[data-appearance=\"dark\"] {\n  --hb-od4-page: #0a0a0a;\n  --hb-od4-card: #121212;\n  --hb-od4-line: rgba(255, 255, 255, 0.08);\n  --hb-od4-row: #181818;\n  --hb-od4-rowhover: #1f1f1f;\n  --hb-od4-text: #ededed;\n  --hb-od4-muted: #9a9a9a;\n}\n.hb-od4 *, .hb-od4 *::before, .hb-od4 *::after { box-sizing: border-box; }\n.hb-od4::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background-image: radial-gradient(color-mix(in srgb, var(--hb-od4-text) 10%, transparent) 1px, transparent 1.2px);\n  background-size: 18px 18px;\n  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);\n  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);\n  pointer-events: none;\n}\n.hb-od4-phone {\n  position: relative;\n  width: 100%;\n  max-width: 420px;\n  margin: 0 auto;\n  overflow: hidden;\n  border: 1px solid var(--hb-od4-line);\n  border-radius: 30px;\n  background: var(--hb-od4-card);\n  box-shadow: 0 40px 80px -40px rgba(30, 20, 10, 0.45), 0 1px 0 rgba(255, 255, 255, 0.5) inset;\n  animation: hb-od4-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n}\n.hb-od4-cover { position: relative; height: 132px; overflow: hidden; }\n.hb-od4-cover > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }\n.hb-od4-steam { animation: hb-od4-steam 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }\n.hb-od4-steam:nth-of-type(2) { animation-delay: 0.9s; }\n.hb-od4-steam:nth-of-type(3) { animation-delay: 1.8s; }\n.hb-od4-tools {\n  position: absolute;\n  inset: 12px 12px auto 12px;\n  display: flex;\n  justify-content: space-between;\n}\n.hb-od4-tool {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  height: 34px;\n  min-width: 34px;\n  justify-content: center;\n  padding: 0 10px;\n  border: 1px solid rgba(255, 255, 255, 0.28);\n  border-radius: 999px;\n  background: rgba(20, 12, 8, 0.32);\n  backdrop-filter: blur(10px);\n  -webkit-backdrop-filter: blur(10px);\n  color: #ffffff;\n  font: inherit;\n  font-size: 12px;\n  font-weight: 600;\n  cursor: pointer;\n  transition: background 0.18s ease, transform 0.12s ease;\n}\n.hb-od4-tool:hover { background: rgba(20, 12, 8, 0.5); }\n.hb-od4-tool:active { transform: scale(0.95); }\n.hb-od4-tool[aria-pressed=\"true\"] { background: #ffffff; color: #151515; }\n.hb-od4-head { position: relative; padding: 0 22px; text-align: center; }\n.hb-od4-avatar {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 84px;\n  height: 84px;\n  margin: -44px auto 0;\n  border: 4px solid var(--hb-od4-card);\n  border-radius: 50%;\n  background: radial-gradient(circle at 30% 25%, #ffd27a, #ff8a3d 55%, #d9381e);\n  color: #ffffff;\n  font-family: var(--font-grotesk, inherit);\n  font-size: 26px;\n  font-weight: 700;\n  letter-spacing: -0.02em;\n  box-shadow: 0 10px 24px -10px rgba(217, 56, 30, 0.6);\n}\n.hb-od4-name {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 6px;\n  margin: 12px 0 0;\n  font-family: var(--font-grotesk, inherit);\n  font-size: 22px;\n  font-weight: 700;\n  letter-spacing: -0.02em;\n  line-height: 1.15;\n}\n.hb-od4-tick { flex: none; color: var(--hb-od4-accent); }\n.hb-od4-handle { margin: 2px 0 0; color: var(--hb-od4-muted); font-size: 13px; }\n.hb-od4-status {\n  display: inline-flex;\n  align-items: center;\n  gap: 7px;\n  margin-top: 10px;\n  padding: 4px 10px 4px 8px;\n  border: 1px solid var(--hb-od4-line);\n  border-radius: 999px;\n  font-size: 12px;\n  font-weight: 500;\n}\n.hb-od4-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }\n.hb-od4-dot::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: 50%;\n  background: inherit;\n  animation: hb-od4-pulse 2s ease-out infinite;\n}\n.hb-od4-status[data-tone=\"closing\"] .hb-od4-dot { background: #f59e0b; }\n.hb-od4-status[data-tone=\"closed\"] .hb-od4-dot { background: #dc2626; }\n.hb-od4-status[data-tone=\"closed\"] .hb-od4-dot::after { animation: none; }\n.hb-od4-bio { margin: 12px auto 0; max-width: 32ch; color: var(--hb-od4-muted); font-size: 13.5px; }\n.hb-od4-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; }\n.hb-od4-primary {\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  height: 50px;\n  overflow: hidden;\n  border-radius: 16px;\n  background: var(--hb-od4-accent);\n  color: #ffffff;\n  font-size: 15px;\n  font-weight: 700;\n  text-decoration: none;\n  box-shadow: 0 12px 24px -12px var(--hb-od4-accent);\n  transition: transform 0.15s ease, filter 0.2s ease;\n}\n.hb-od4-primary::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);\n  transform: translateX(-100%);\n  animation: hb-od4-shine 3.6s 1s ease-in-out infinite;\n}\n.hb-od4-primary:hover { filter: brightness(1.06); }\n.hb-od4-primary:active { transform: scale(0.98); }\n.hb-od4-qrwrap {\n  display: grid;\n  grid-template-rows: 0fr;\n  transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);\n}\n.hb-od4-qrwrap[data-open=\"true\"] { grid-template-rows: 1fr; }\n.hb-od4-qrin { min-height: 0; overflow: hidden; }\n.hb-od4-qr {\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  padding: 12px;\n  border: 1px dashed var(--hb-od4-line);\n  border-radius: 16px;\n}\n.hb-od4-qr svg { flex: none; width: 92px; height: 92px; border-radius: 8px; box-shadow: 0 0 0 1px var(--hb-od4-line); }\n.hb-od4-qr p { margin: 0; color: var(--hb-od4-muted); font-size: 12.5px; }\n.hb-od4-qr b { display: block; margin-bottom: 4px; color: var(--hb-od4-text); font-size: 13px; word-break: break-all; }\n.hb-od4-links { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }\n.hb-od4-link {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n  min-height: 54px;\n  padding: 8px 12px 8px 8px;\n  border: 1px solid var(--hb-od4-line);\n  border-radius: 16px;\n  background: var(--hb-od4-row);\n  color: inherit;\n  text-decoration: none;\n  animation: hb-od4-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n  animation-delay: calc(var(--hb-od4-i) * 60ms + 250ms);\n  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;\n}\n.hb-od4-link:hover { background: var(--hb-od4-rowhover); transform: translateY(-1px); border-color: color-mix(in srgb, var(--hb-od4-accent) 30%, transparent); }\n.hb-od4-ic {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 38px;\n  height: 38px;\n  border-radius: 12px;\n  background: color-mix(in srgb, var(--hb-od4-accent) 12%, var(--hb-od4-card));\n  color: var(--hb-od4-accent);\n}\n.hb-od4-lt { display: flex; min-width: 0; flex: 1; flex-direction: column; }\n.hb-od4-lt b { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }\n.hb-od4-lt span { overflow: hidden; color: var(--hb-od4-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }\n.hb-od4-chev { flex: none; color: var(--hb-od4-muted); transition: transform 0.18s ease; }\n.hb-od4-link:hover .hb-od4-chev { transform: translateX(3px); color: var(--hb-od4-accent); }\n.hb-od4-save {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  height: 44px;\n  margin-top: 4px;\n  border: 1px solid var(--hb-od4-line);\n  border-radius: 14px;\n  background: transparent;\n  color: var(--hb-od4-text);\n  font: inherit;\n  font-size: 13.5px;\n  font-weight: 600;\n  cursor: pointer;\n  transition: background 0.18s ease;\n}\n.hb-od4-save:hover { background: var(--hb-od4-row); }\n.hb-od4-foot { margin: 4px 0 0; color: var(--hb-od4-muted); font-size: 11.5px; text-align: center; }\n.hb-od4-tool:focus-visible, .hb-od4-primary:focus-visible, .hb-od4-link:focus-visible, .hb-od4-save:focus-visible {\n  outline: 2px solid var(--hb-od4-accent);\n  outline-offset: 2px;\n}\n.hb-od4-toast {\n  position: absolute;\n  left: 50%;\n  top: 56px;\n  padding: 6px 12px;\n  border-radius: 999px;\n  background: #151515;\n  color: #ffffff;\n  font-size: 12px;\n  font-weight: 600;\n  white-space: nowrap;\n  transform: translate(-50%, -6px);\n  opacity: 0;\n  pointer-events: none;\n  transition: opacity 0.2s ease, transform 0.2s ease;\n}\n.hb-od4-toast[data-show=\"true\"] { opacity: 1; transform: translate(-50%, 0); }\n@container (min-width: 700px) {\n  .hb-od4 { padding: 80px 24px 96px; }\n}\n@keyframes hb-od4-rise {\n  from { opacity: 0; transform: translateY(16px); }\n  to { opacity: 1; transform: translateY(0); }\n}\n@keyframes hb-od4-in {\n  from { opacity: 0; transform: translateY(8px); }\n  to { opacity: 1; transform: translateY(0); }\n}\n@keyframes hb-od4-pulse {\n  0% { opacity: 0.6; transform: scale(1); }\n  100% { opacity: 0; transform: scale(2.6); }\n}\n@keyframes hb-od4-shine {\n  0%, 60% { transform: translateX(-100%); }\n  100% { transform: translateX(100%); }\n}\n@keyframes hb-od4-steam {\n  0%, 100% { opacity: 0; transform: translateY(4px) scaleY(0.8); }\n  40% { opacity: 0.8; }\n  70% { opacity: 0.2; transform: translateY(-8px) scaleY(1.1); }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-od4-phone, .hb-od4-link, .hb-od4-primary::after, .hb-od4-dot::after, .hb-od4-steam { animation: none; }\n  .hb-od4-qrwrap, .hb-od4-link, .hb-od4-chev, .hb-od4-tool, .hb-od4-toast, .hb-od4-primary { transition: none; }\n}\n`;\n\nfunction CoverArt() {\n  return (\n    <svg viewBox=\"0 0 420 132\" preserveAspectRatio=\"xMidYMid slice\" aria-hidden=\"true\">\n      <defs>\n        <linearGradient id=\"hb-od4-sky\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\n          <stop offset=\"0\" stopColor=\"#ff7a3d\" />\n          <stop offset=\"0.55\" stopColor=\"#e8452a\" />\n          <stop offset=\"1\" stopColor=\"#8f1f1a\" />\n        </linearGradient>\n        <linearGradient id=\"hb-od4-bun\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n          <stop offset=\"0\" stopColor=\"#ffc46b\" />\n          <stop offset=\"1\" stopColor=\"#e08a2c\" />\n        </linearGradient>\n        <radialGradient id=\"hb-od4-sun\" cx=\"0.5\" cy=\"0.5\" r=\"0.5\">\n          <stop offset=\"0\" stopColor=\"#ffd98a\" stopOpacity=\"0.65\" />\n          <stop offset=\"1\" stopColor=\"#ffd98a\" stopOpacity=\"0\" />\n        </radialGradient>\n      </defs>\n      <rect width=\"420\" height=\"132\" fill=\"url(#hb-od4-sky)\" />\n      <circle cx=\"300\" cy=\"70\" r=\"110\" fill=\"url(#hb-od4-sun)\" />\n      <g fill=\"none\" stroke=\"rgba(255,255,255,0.12)\" strokeWidth=\"1.2\">\n        <circle cx=\"300\" cy=\"78\" r=\"64\" />\n        <circle cx=\"300\" cy=\"78\" r=\"88\" />\n        <circle cx=\"300\" cy=\"78\" r=\"112\" />\n      </g>\n      <g opacity=\"0.22\" fill=\"#ffffff\">\n        {Array.from({ length: 18 }, (_, i) => (\n          <rect key={i} x={(20 + ((i * 53) % 220)).toFixed(0)} y={(16 + ((i * 37) % 100)).toFixed(0)} width=\"7\" height=\"2.4\" rx=\"1.2\" transform={`rotate(${(i * 47) % 180} ${(23 + ((i * 53) % 220)).toFixed(0)} ${(17 + ((i * 37) % 100)).toFixed(0)})`} />\n        ))}\n      </g>\n      <g stroke=\"rgba(255,255,255,0.7)\" strokeWidth=\"2.4\" strokeLinecap=\"round\" fill=\"none\">\n        <path className=\"hb-od4-steam\" d=\"M282 30c-5-6 5-10 0-17\" />\n        <path className=\"hb-od4-steam\" d=\"M300 26c-5-6 5-10 0-17\" />\n        <path className=\"hb-od4-steam\" d=\"M318 30c-5-6 5-10 0-17\" />\n      </g>\n      <g transform=\"translate(246 40)\">\n        <ellipse cx=\"54\" cy=\"84\" rx=\"62\" ry=\"8\" fill=\"rgba(60,10,5,0.35)\" />\n        <path d=\"M6 42c0-24 22-40 48-40s48 16 48 40z\" fill=\"url(#hb-od4-bun)\" />\n        <g fill=\"#fff3d6\">\n          <ellipse cx=\"34\" cy=\"20\" rx=\"3\" ry=\"1.6\" transform=\"rotate(-20 34 20)\" />\n          <ellipse cx=\"54\" cy=\"13\" rx=\"3\" ry=\"1.6\" />\n          <ellipse cx=\"74\" cy=\"20\" rx=\"3\" ry=\"1.6\" transform=\"rotate(20 74 20)\" />\n          <ellipse cx=\"44\" cy=\"30\" rx=\"3\" ry=\"1.6\" transform=\"rotate(-10 44 30)\" />\n          <ellipse cx=\"66\" cy=\"31\" rx=\"3\" ry=\"1.6\" transform=\"rotate(12 66 31)\" />\n        </g>\n        <path d=\"M2 46c8-6 14 4 22-2s14 4 22-2 14 4 22-2 14 4 22-2 10 2 18-2v6H2z\" fill=\"#5fbf4a\" />\n        <path d=\"M6 52h96l-14 12-6-6-8 9-8-9z\" fill=\"#ffcc33\" />\n        <rect x=\"4\" y=\"54\" width=\"100\" height=\"14\" rx=\"7\" fill=\"#5a2a16\" />\n        <path d=\"M6 72h96c0 8-8 12-16 12H22c-8 0-16-4-16-12z\" fill=\"url(#hb-od4-bun)\" />\n      </g>\n    </svg>\n  );\n}\n\nexport function LinkInBioCard({\n  name = \"Corner Kitchen\",\n  handle = \"@cornerkitchen\",\n  initials,\n  verified = true,\n  status = { tone: \"open\", label: \"Open now · until 10 pm\" },\n  bio = \"Smash burgers, crispy fries and thick shakes on Maple Avenue since 2016. Pickup, delivery and late-night bites.\",\n  primary = { label: \"Order now\", href: \"https://cornerkitchen.example/order\" },\n  links = defaultLinks,\n  contact = defaultContact,\n  shareUrl = \"https://cornerkitchen.example/links\",\n  shareTitle,\n  appearance = \"light\",\n  accent = \"#ff5a36\",\n  labels,\n  onShare,\n  onLinkClick,\n  className = \"\",\n  style,\n  ...rest\n}: LinkInBioCardProps) {\n  const l = { ...defaultLabels, ...labels };\n  const [qr, setQr] = React.useState(false);\n  const [toast, setToast] = React.useState(false);\n  const timer = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n  const qrId = React.useId();\n  const mono = initials ?? name.split(/\\s+/).filter(Boolean).slice(0, 2).map((w) => w.charAt(0).toUpperCase()).join(\"\");\n\n  React.useEffect(() => () => {\n    if (timer.current) clearTimeout(timer.current);\n  }, []);\n\n  const flash = () => {\n    setToast(true);\n    if (timer.current) clearTimeout(timer.current);\n    timer.current = setTimeout(() => setToast(false), 1800);\n  };\n\n  const share = async () => {\n    const data = { title: shareTitle ?? name, url: shareUrl };\n    if (typeof navigator !== \"undefined\" && typeof navigator.share === \"function\") {\n      try {\n        await navigator.share(data);\n        onShare?.(\"native\");\n        return;\n      } catch (error) {\n        if (error instanceof DOMException && error.name === \"AbortError\") return;\n      }\n    }\n    try {\n      await navigator.clipboard.writeText(shareUrl);\n      onShare?.(\"copy\");\n      flash();\n    } catch {\n      setToast(false);\n    }\n  };\n\n  const saveContact = () => {\n    if (!contact) return;\n    const href = `data:text/vcard;charset=utf-8,${encodeURIComponent(buildVCard(contact))}`;\n    const a = document.createElement(\"a\");\n    a.href = href;\n    a.download = `${contact.name.toLowerCase().replace(/[^a-z0-9]+/g, \"-\").replace(/^-|-$/g, \"\") || \"contact\"}.vcf`;\n    document.body.appendChild(a);\n    a.click();\n    a.remove();\n  };\n\n  return (\n    <section\n      className={`hb-od4 ${className}`}\n      data-appearance={appearance}\n      style={{ \"--hb-od4-accent\": accent, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-link-in-bio-card\" precedence=\"default\">{css}</style>\n      <div className=\"hb-od4-phone\">\n        <div className=\"hb-od4-cover\">\n          <CoverArt />\n          <div className=\"hb-od4-tools\">\n            <button\n              type=\"button\"\n              className=\"hb-od4-tool\"\n              aria-pressed={qr}\n              aria-controls={qrId}\n              aria-label={qr ? l.hideQr : l.showQr}\n              onClick={() => setQr((v) => !v)}\n            >\n              <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.9\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                <path d=\"M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h2v2h-2zM18 18h2v2h-2zM14 18h2M18 14h2\" />\n              </svg>\n            </button>\n            <button type=\"button\" className=\"hb-od4-tool\" onClick={share}>\n              <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.9\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                <path d=\"M12 3v12M7 8l5-5 5 5M5 13v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6\" />\n              </svg>\n              {l.share}\n            </button>\n          </div>\n          <span className=\"hb-od4-toast\" data-show={toast} role=\"status\" aria-live=\"polite\">\n            {toast ? l.copied : \"\"}\n          </span>\n        </div>\n        <div className=\"hb-od4-head\">\n          <div className=\"hb-od4-avatar\" aria-hidden=\"true\">{mono}</div>\n          <h2 className=\"hb-od4-name\">\n            {name}\n            {verified ? (\n              <svg className=\"hb-od4-tick\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" role=\"img\" aria-label={l.verified}>\n                <path\n                  fill=\"currentColor\"\n                  d=\"M12 1.8l2.5 1.9 3.1-.2.9 3 2.6 1.8-1 3 1 3-2.6 1.8-.9 3-3.1-.2L12 22.2l-2.5-1.9-3.1.2-.9-3-2.6-1.8 1-3-1-3 2.6-1.8.9-3 3.1.2z\"\n                />\n                <path d=\"M8 12.2l2.7 2.6L16.2 9.4\" fill=\"none\" stroke=\"#ffffff\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n              </svg>\n            ) : null}\n          </h2>\n          {handle ? <p className=\"hb-od4-handle\">{handle}</p> : null}\n          {status ? (\n            <span className=\"hb-od4-status\" data-tone={status.tone}>\n              <span className=\"hb-od4-dot\" aria-hidden=\"true\" />\n              {status.label}\n            </span>\n          ) : null}\n          {bio ? <p className=\"hb-od4-bio\">{bio}</p> : null}\n        </div>\n        <div className=\"hb-od4-body\">\n          {primary ? (\n            <a className=\"hb-od4-primary\" href={primary.href}>\n              <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                <path d=\"M5 8h14l-1 12H6L5 8z\" />\n                <path d=\"M9 8V6a3 3 0 0 1 6 0v2\" />\n              </svg>\n              {primary.label}\n            </a>\n          ) : null}\n          <div className=\"hb-od4-qrwrap\" data-open={qr} id={qrId} aria-hidden={!qr}>\n            <div className=\"hb-od4-qrin\">\n              <div className=\"hb-od4-qr\">\n                <PatternQr value={shareUrl} />\n                <p>\n                  <b>{shareUrl.replace(/^https?:[/][/]/, \"\")}</b>\n                  {l.qrCaption}\n                </p>\n              </div>\n            </div>\n          </div>\n          <ul className=\"hb-od4-links\">\n            {links.map((link, i) => (\n              <li key={link.id}>\n                <a\n                  className=\"hb-od4-link\"\n                  href={link.href}\n                  target=\"_blank\"\n                  rel=\"noopener noreferrer\"\n                  style={{ \"--hb-od4-i\": i } as React.CSSProperties}\n                  onClick={() => onLinkClick?.(link)}\n                >\n                  <span className=\"hb-od4-ic\">\n                    <LinkIcon icon={link.icon ?? \"link\"} />\n                  </span>\n                  <span className=\"hb-od4-lt\">\n                    <b>{link.label}</b>\n                    {link.hint ? <span>{link.hint}</span> : null}\n                  </span>\n                  <svg className=\"hb-od4-chev\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                    <path d=\"M9 6l6 6-6 6\" />\n                  </svg>\n                </a>\n              </li>\n            ))}\n          </ul>\n          {contact ? (\n            <button type=\"button\" className=\"hb-od4-save\" onClick={saveContact}>\n              <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.9\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                <circle cx=\"10\" cy=\"8\" r=\"4\" />\n                <path d=\"M3 20c0-3.5 3-6 7-6 1.4 0 2.6.3 3.6.8M18 14v6M15 17h6\" />\n              </svg>\n              {l.saveContact}\n            </button>\n          ) : null}\n          {l.footer ? <p className=\"hb-od4-foot\">{l.footer}</p> : null}\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}