{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "download-app-badges",
  "type": "registry:component",
  "title": "Download: App Badges",
  "description": "A mobile app promo with a phone mockup, floating cards that drift, generic store badges, a scannable-looking QR pattern and a rating line.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "download",
    "download",
    "mobile app",
    "phone mockup",
    "qr code",
    "app badges",
    "promo"
  ],
  "docs": "https://hyperblur.dev/effects/download-app-badges",
  "files": [
    {
      "path": "registry/hyperblur/download-app-badges.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/download-app-badges.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface DownloadAppBadge {\n  platform: \"ios\" | \"android\";\n  caption: string;\n  label: string;\n  href: string;\n}\n\nexport interface DownloadAppBadgesProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  appName?: string;\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  badges?: DownloadAppBadge[];\n  rating?: number;\n  ratingCount?: string;\n  downloads?: string;\n  qrLabel?: string;\n  qrHint?: string;\n  qrValue?: string;\n  onBadgeClick?: (platform: \"ios\" | \"android\") => void;\n  accent?: string;\n}\n\nconst css = `\n@keyframes hb-kh6-bob {\n  0%, 100% { transform: translate3d(0, 0, 0); }\n  50% { transform: translate3d(0, -10px, 0); }\n}\n@keyframes hb-kh6-draw { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }\n@keyframes hb-kh6-ring {\n  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }\n  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; }\n}\n@keyframes hb-kh6-bar { from { transform: scaleX(0); } }\n.hb-kh6 {\n  --hb-kh6-accent: #f5a524;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kh6 *, .hb-kh6 *::before, .hb-kh6 *::after { box-sizing: border-box; }\n.hb-kh6::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  background:\n    radial-gradient(38% 50% at 72% 50%, color-mix(in srgb, var(--hb-kh6-accent) 16%, transparent), transparent 70%),\n    radial-gradient(30% 40% at 10% 10%, rgba(255, 255, 255, 0.03), transparent 70%);\n}\n.hb-kh6-in {\n  position: relative;\n  display: grid;\n  grid-template-columns: 1fr;\n  gap: 40px;\n  align-items: center;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 72px 20px 80px;\n}\n.hb-kh6-copy { min-width: 0; }\n.hb-kh6-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 30px;\n  padding: 0 12px 0 4px;\n  border: 1px solid rgba(255, 255, 255, 0.09);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, 0.03);\n  color: #c4c4c4;\n  font-size: 12.5px;\n}\n.hb-kh6-eyebrow b {\n  padding: 3px 8px;\n  border-radius: 999px;\n  background: var(--hb-kh6-accent);\n  color: #1a1203;\n  font-size: 11px;\n  font-weight: 700;\n}\n.hb-kh6-title {\n  margin: 18px 0 0;\n  font-size: clamp(34px, 4.8cqw, 54px);\n  font-weight: 600;\n  line-height: 1.02;\n  letter-spacing: -0.045em;\n  text-wrap: balance;\n}\n.hb-kh6-title span { color: var(--hb-kh6-accent); }\n.hb-kh6-sub {\n  max-width: 460px;\n  margin: 16px 0 0;\n  color: #8f8f8f;\n  font-size: 16px;\n  line-height: 1.6;\n  text-wrap: pretty;\n}\n.hb-kh6-get {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: stretch;\n  gap: 16px;\n  margin-top: 30px;\n}\n.hb-kh6-badges { display: flex; flex-direction: column; gap: 10px; }\n.hb-kh6-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 12px;\n  min-width: 172px;\n  height: 54px;\n  padding: 0 18px 0 14px;\n  border: 1px solid rgba(255, 255, 255, 0.14);\n  border-radius: 14px;\n  background: linear-gradient(180deg, #1a1a1a, #0f0f0f);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px -14px rgba(0, 0, 0, 0.9);\n  color: #ffffff;\n  text-decoration: none;\n  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;\n}\n.hb-kh6-badge:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }\n.hb-kh6-badge:focus-visible { outline: 2px solid var(--hb-kh6-accent); outline-offset: 3px; }\n.hb-kh6-badge svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }\n.hb-kh6-bt { display: flex; flex-direction: column; line-height: 1.1; }\n.hb-kh6-bt small { color: #a1a1a1; font-size: 11px; }\n.hb-kh6-bt strong { margin-top: 2px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }\n.hb-kh6-qr {\n  display: none;\n  align-items: center;\n  gap: 14px;\n  padding: 10px 16px 10px 10px;\n  border: 1px solid rgba(255, 255, 255, 0.08);\n  border-radius: 16px;\n  background: rgba(255, 255, 255, 0.02);\n}\n.hb-kh6-qrcode {\n  flex: none;\n  width: 98px;\n  height: 98px;\n  padding: 7px;\n  border-radius: 12px;\n  background: #ffffff;\n}\n.hb-kh6-qrcode svg { display: block; width: 100%; height: 100%; }\n.hb-kh6-qrcode path { fill: #0a0a0a; }\n.hb-kh6-qrt { max-width: 128px; }\n.hb-kh6-qrt strong { display: block; font-size: 14px; font-weight: 600; }\n.hb-kh6-qrt span { display: block; margin-top: 4px; color: #8f8f8f; font-size: 12.5px; line-height: 1.45; }\n.hb-kh6-rate {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  gap: 8px 14px;\n  margin-top: 26px;\n  color: #8f8f8f;\n  font-size: 13.5px;\n}\n.hb-kh6-stars { display: inline-flex; gap: 2px; color: var(--hb-kh6-accent); }\n.hb-kh6-stars svg { width: 16px; height: 16px; fill: currentColor; }\n.hb-kh6-rate b { color: #ededed; font-weight: 600; }\n.hb-kh6-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.14); }\n.hb-kh6-stage {\n  position: relative;\n  width: 100%;\n  max-width: 520px;\n  height: 520px;\n  margin: 0 auto;\n}\n.hb-kh6-ring {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  border: 1px solid color-mix(in srgb, var(--hb-kh6-accent) 30%, transparent);\n  border-radius: 50%;\n  pointer-events: none;\n  transform: translate(-50%, -50%);\n}\n.hb-kh6-ring-a { width: 360px; height: 360px; animation: hb-kh6-ring 4s ease-out infinite; }\n.hb-kh6-ring-b { width: 360px; height: 360px; animation: hb-kh6-ring 4s ease-out 2s infinite; }\n.hb-kh6-ring-c { width: 470px; height: 470px; border-color: rgba(255, 255, 255, 0.05); }\n.hb-kh6-phone {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  width: 236px;\n  height: 484px;\n  padding: 9px;\n  border-radius: 44px;\n  background: linear-gradient(145deg, #2a2a2a, #121212 40%, #1d1d1d);\n  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.8), 0 50px 90px -30px rgba(0, 0, 0, 0.95), 0 0 80px -20px color-mix(in srgb, var(--hb-kh6-accent) 35%, transparent);\n  transform: translate(-50%, -50%);\n}\n.hb-kh6-screen {\n  position: relative;\n  height: 100%;\n  overflow: hidden;\n  padding: 12px 14px 0;\n  border-radius: 36px;\n  background:\n    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--hb-kh6-accent) 22%, transparent), transparent 60%),\n    #0c0c0c;\n}\n.hb-kh6-island {\n  position: absolute;\n  top: 9px;\n  left: 50%;\n  width: 74px;\n  height: 22px;\n  margin-left: -37px;\n  border-radius: 999px;\n  background: #000000;\n}\n.hb-kh6-status {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  height: 22px;\n  padding: 0 8px;\n  font-size: 11px;\n  font-weight: 600;\n}\n.hb-kh6-status i { display: inline-block; width: 16px; height: 8px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 3px; }\n.hb-kh6-hi { margin-top: 16px; color: #a1a1a1; font-size: 11.5px; }\n.hb-kh6-bal { margin-top: 2px; font-size: 30px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }\n.hb-kh6-bal small { color: #8f8f8f; font-size: 16px; }\n.hb-kh6-delta { display: inline-flex; margin-top: 4px; padding: 2px 7px; border-radius: 999px; background: rgba(74, 222, 128, 0.12); color: #4ade80; font-size: 10.5px; font-weight: 600; }\n.hb-kh6-chart { display: block; width: 100%; height: 56px; margin-top: 10px; }\n.hb-kh6-line { fill: none; stroke: var(--hb-kh6-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; animation: hb-kh6-draw 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both; }\n.hb-kh6-area { fill: color-mix(in srgb, var(--hb-kh6-accent) 16%, transparent); }\n.hb-kh6-dotc { fill: #ffffff; stroke: var(--hb-kh6-accent); stroke-width: 2; }\n.hb-kh6-cats { display: grid; gap: 9px; margin-top: 12px; }\n.hb-kh6-cat { font-size: 11px; }\n.hb-kh6-cat > div:first-child { display: flex; justify-content: space-between; color: #bdbdbd; }\n.hb-kh6-cat > div:first-child span:last-child { color: #8f8f8f; font-variant-numeric: tabular-nums; }\n.hb-kh6-track { height: 5px; margin-top: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }\n.hb-kh6-fill { height: 100%; border-radius: 3px; transform-origin: left; animation: hb-kh6-bar 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 120ms + 400ms); }\n.hb-kh6-txs { display: grid; gap: 2px; margin-top: 14px; }\n.hb-kh6-tx { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 11.5px; }\n.hb-kh6-txi { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: #d4d4d4; font-size: 10px; font-weight: 700; }\n.hb-kh6-tx span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }\n.hb-kh6-tx b { font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-kh6-tabs {\n  position: absolute;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  display: flex;\n  justify-content: space-around;\n  height: 52px;\n  padding-top: 10px;\n  border-top: 1px solid rgba(255, 255, 255, 0.06);\n  background: rgba(12, 12, 12, 0.92);\n}\n.hb-kh6-tabs i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); }\n.hb-kh6-tabs i:first-child { background: var(--hb-kh6-accent); }\n.hb-kh6-float {\n  position: absolute;\n  z-index: 2;\n  padding: 12px 14px;\n  border: 1px solid rgba(255, 255, 255, 0.1);\n  border-radius: 16px;\n  background: rgba(22, 22, 22, 0.82);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 50px -20px rgba(0, 0, 0, 0.9);\n  -webkit-backdrop-filter: blur(14px);\n  backdrop-filter: blur(14px);\n  font-size: 12px;\n  animation: hb-kh6-bob 6s ease-in-out infinite;\n}\n.hb-kh6-fa { top: 64px; left: 0; animation-delay: -1s; }\n.hb-kh6-fb { top: 216px; right: 0; width: 214px; animation-delay: -3s; }\n.hb-kh6-fc { bottom: 54px; left: 8px; animation-delay: -4.5s; }\n.hb-kh6-flbl { color: #8f8f8f; font-size: 11px; }\n.hb-kh6-fval { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: #4ade80; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }\n.hb-kh6-fval svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }\n.hb-kh6-note { display: flex; align-items: flex-start; gap: 10px; }\n.hb-kh6-appico { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--hb-kh6-accent); color: #1a1203; font-size: 13px; font-weight: 800; }\n.hb-kh6-note strong { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; }\n.hb-kh6-note strong span { color: #6f6f6f; font-weight: 400; font-size: 11px; }\n.hb-kh6-note p { margin: 2px 0 0; color: #a1a1a1; font-size: 11.5px; line-height: 1.4; }\n.hb-kh6-goal { display: flex; align-items: center; gap: 12px; }\n.hb-kh6-goal svg { flex: none; width: 42px; height: 42px; transform: rotate(-90deg); }\n.hb-kh6-goal circle { fill: none; stroke-width: 5; }\n.hb-kh6-goal strong { display: block; font-size: 13px; font-weight: 600; }\n.hb-kh6-goal span { display: block; margin-top: 2px; color: #8f8f8f; font-size: 11.5px; font-variant-numeric: tabular-nums; }\n@container (min-width: 560px) {\n  .hb-kh6-qr { display: flex; }\n}\n@container (max-width: 459px) {\n  .hb-kh6-stage { height: 470px; }\n  .hb-kh6-phone { transform: translate(-50%, -50%) scale(0.88); }\n  .hb-kh6-ring-c { display: none; }\n  .hb-kh6-fb { width: 190px; }\n  .hb-kh6-float { padding: 10px 12px; }\n  .hb-kh6-fa { top: 40px; }\n  .hb-kh6-fc { bottom: 36px; }\n  .hb-kh6-badge { min-width: 0; width: 100%; }\n  .hb-kh6-badges { width: 100%; }\n}\n@container (min-width: 720px) {\n  .hb-kh6-in { padding: 88px 40px 96px; }\n}\n@container (min-width: 880px) {\n  .hb-kh6-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; padding: 72px 40px 80px; }\n  .hb-kh6-stage { height: 560px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kh6 *, .hb-kh6 *::before, .hb-kh6 *::after { animation: none !important; transition: none !important; }\n  .hb-kh6-ring-a, .hb-kh6-ring-b { opacity: 0.4; }\n}\n`;\n\nconst defaultBadges: DownloadAppBadge[] = [\n  { platform: \"ios\", caption: \"Download for\", label: \"iPhone\", href: \"#\" },\n  { platform: \"android\", caption: \"Get it for\", label: \"Android\", href: \"#\" },\n];\n\nfunction hash(n: number) {\n  let x = (n + 7) * 2654435761;\n  x = (x ^ (x >>> 15)) * 2246822519;\n  x = x ^ (x >>> 13);\n  return (x >>> 0) / 4294967295;\n}\n\nfunction seedOf(text: string) {\n  let h = 0;\n  for (let i = 0; i < text.length; i++) h = (h * 33 + text.charCodeAt(i)) | 0;\n  return Math.abs(h) % 9973;\n}\n\nfunction qrPath(seed: number) {\n  const size = 25;\n  const finder = (r: number, c: number) => {\n    const inBox = (r0: number, c0: number) => r >= r0 - 1 && r <= r0 + 7 && c >= c0 - 1 && c <= c0 + 7;\n    return inBox(0, 0) || inBox(0, size - 7) || inBox(size - 7, 0);\n  };\n  const ring = (r0: number, c0: number, r: number, c: number) => {\n    const dr = r - r0;\n    const dc = c - c0;\n    if (dr < 0 || dc < 0 || dr > 6 || dc > 6) return false;\n    if (dr === 0 || dr === 6 || dc === 0 || dc === 6) return true;\n    return dr >= 2 && dr <= 4 && dc >= 2 && dc <= 4;\n  };\n  let d = \"\";\n  for (let r = 0; r < size; r++) {\n    for (let c = 0; c < size; c++) {\n      let on = false;\n      if (finder(r, c)) {\n        on = ring(0, 0, r, c) || ring(0, size - 7, r, c) || ring(size - 7, 0, r, c);\n      } else if (r === 6 || c === 6) {\n        on = (r + c) % 2 === 0;\n      } else if (r >= 16 && r <= 20 && c >= 16 && c <= 20) {\n        on = r === 16 || r === 20 || c === 16 || c === 20 || (r === 18 && c === 18);\n      } else {\n        on = hash(r * 31 + c * 7 + seed) > 0.52;\n      }\n      if (on) d += `M${c} ${r}h1v1h-1z`;\n    }\n  }\n  return d;\n}\n\nfunction BadgeGlyph({ platform }: { platform: \"ios\" | \"android\" }) {\n  if (platform === \"android\") {\n    return (\n      <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n        <rect x=\"6\" y=\"2.5\" width=\"12\" height=\"19\" rx=\"2.5\" />\n        <circle cx=\"12\" cy=\"5.6\" r=\"0.6\" />\n        <path d=\"M10 18.5h4\" />\n      </svg>\n    );\n  }\n  return (\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n      <rect x=\"6\" y=\"2.5\" width=\"12\" height=\"19\" rx=\"3.2\" />\n      <path d=\"M10.2 4.8h3.6M10.5 19h3\" />\n    </svg>\n  );\n}\n\nfunction Star() {\n  return (\n    <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n      <path d=\"M10 1.8l2.5 5.2 5.7.8-4.1 4 1 5.6L10 14.7l-5.1 2.7 1-5.6-4.1-4 5.7-.8z\" />\n    </svg>\n  );\n}\n\nconst chart = [18, 22, 20, 28, 26, 34, 31, 40, 38, 46, 44, 52];\n\nfunction chartPaths() {\n  const w = 200;\n  const h = 70;\n  const pts = chart.map((v, i) => [(i / (chart.length - 1)) * w, h - 6 - (v / 56) * (h - 14)] as const);\n  const line = pts.map((p, i) => `${i ? \"L\" : \"M\"}${p[0].toFixed(1)} ${p[1].toFixed(1)}`).join(\" \");\n  const area = `${line} L${w} ${h} L0 ${h} Z`;\n  const last = pts[pts.length - 1];\n  return { line, area, cx: last[0].toFixed(1), cy: last[1].toFixed(1) };\n}\n\nconst paths = chartPaths();\n\nconst cats = [\n  { n: \"Groceries\", v: \"$412 / $560\", p: 0.74, c: \"#f5a524\" },\n  { n: \"Dining out\", v: \"$138 / $300\", p: 0.46, c: \"#f97362\" },\n  { n: \"Transport\", v: \"$64 / $200\", p: 0.32, c: \"#60a5fa\" },\n];\n\nconst txs = [\n  { i: \"WF\", n: \"Whole Foods Market\", v: \"-$48.20\" },\n  { i: \"MT\", n: \"Metro card top-up\", v: \"-$20.00\" },\n  { i: \"PY\", n: \"Payroll, Brightline\", v: \"+$2,640\" },\n];\n\nexport function DownloadAppBadges({\n  appName = \"Tally\",\n  eyebrow = \"Tally 3.0 is here for phones\",\n  title = \"Your budget, finally in your pocket\",\n  subtitle = \"See what is safe to spend before you tap your card. Tally sorts every purchase, warns you before a bill and keeps your goals on track.\",\n  badges = defaultBadges,\n  rating = 4.9,\n  ratingCount = \"38,200 ratings\",\n  downloads = \"1.2M downloads\",\n  qrLabel = \"Scan to install\",\n  qrHint = \"Point your phone camera here and we will open the right store.\",\n  qrValue = \"https://tally.example/get\",\n  onBadgeClick,\n  accent = \"#f5a524\",\n  className,\n  style,\n  ...rest\n}: DownloadAppBadgesProps) {\n  const qr = React.useMemo(() => qrPath(seedOf(qrValue)), [qrValue]);\n  const goal = 0.68;\n  const circ = 2 * Math.PI * 17;\n\n  return (\n    <section\n      className={[\"hb-kh6\", className].filter(Boolean).join(\" \")}\n      style={{ [\"--hb-kh6-accent\" as string]: accent, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-download-app-badges\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kh6-in\">\n        <div className=\"hb-kh6-copy\">\n          {eyebrow ? (\n            <span className=\"hb-kh6-eyebrow\">\n              <b>New</b>\n              {eyebrow}\n            </span>\n          ) : null}\n          <h2 className=\"hb-kh6-title\">{title}</h2>\n          {subtitle ? <p className=\"hb-kh6-sub\">{subtitle}</p> : null}\n          <div className=\"hb-kh6-get\">\n            <div className=\"hb-kh6-badges\">\n              {badges.map((b) => (\n                <a key={b.platform + b.label} className=\"hb-kh6-badge\" href={b.href} onClick={() => onBadgeClick?.(b.platform)}>\n                  <BadgeGlyph platform={b.platform} />\n                  <span className=\"hb-kh6-bt\">\n                    <small>{b.caption}</small>\n                    <strong>{b.label}</strong>\n                  </span>\n                </a>\n              ))}\n            </div>\n            <div className=\"hb-kh6-qr\">\n              <div className=\"hb-kh6-qrcode\" role=\"img\" aria-label={`QR code linking to ${qrValue}`}>\n                <svg viewBox=\"0 0 25 25\" shapeRendering=\"crispEdges\" aria-hidden=\"true\">\n                  <path d={qr} />\n                </svg>\n              </div>\n              <div className=\"hb-kh6-qrt\">\n                <strong>{qrLabel}</strong>\n                <span>{qrHint}</span>\n              </div>\n            </div>\n          </div>\n          <div className=\"hb-kh6-rate\">\n            <span className=\"hb-kh6-stars\" role=\"img\" aria-label={`Rated ${rating} out of 5`}>\n              {[0, 1, 2, 3, 4].map((i) => (\n                <Star key={i} />\n              ))}\n            </span>\n            <span>\n              <b>{rating.toFixed(1)}</b> from {ratingCount}\n            </span>\n            {downloads ? (\n              <>\n                <span className=\"hb-kh6-sep\" aria-hidden=\"true\" />\n                <span>{downloads}</span>\n              </>\n            ) : null}\n          </div>\n        </div>\n        <div className=\"hb-kh6-stage\" aria-hidden=\"true\">\n          <span className=\"hb-kh6-ring hb-kh6-ring-c\" />\n          <span className=\"hb-kh6-ring hb-kh6-ring-a\" />\n          <span className=\"hb-kh6-ring hb-kh6-ring-b\" />\n          <div className=\"hb-kh6-phone\">\n            <div className=\"hb-kh6-screen\">\n              <span className=\"hb-kh6-island\" />\n              <div className=\"hb-kh6-status\">\n                <span>9:41</span>\n                <i />\n              </div>\n              <div className=\"hb-kh6-hi\">Safe to spend until Friday</div>\n              <div className=\"hb-kh6-bal\">\n                $1,284<small>.50</small>\n              </div>\n              <span className=\"hb-kh6-delta\">+12% vs last month</span>\n              <svg className=\"hb-kh6-chart\" viewBox=\"0 0 200 70\" preserveAspectRatio=\"none\">\n                <path className=\"hb-kh6-area\" d={paths.area} />\n                <path className=\"hb-kh6-line\" d={paths.line} />\n                <circle className=\"hb-kh6-dotc\" cx={paths.cx} cy={paths.cy} r=\"3.5\" />\n              </svg>\n              <div className=\"hb-kh6-cats\">\n                {cats.map((c, i) => (\n                  <div key={c.n} className=\"hb-kh6-cat\">\n                    <div>\n                      <span>{c.n}</span>\n                      <span>{c.v}</span>\n                    </div>\n                    <div className=\"hb-kh6-track\">\n                      <div\n                        className=\"hb-kh6-fill\"\n                        style={{ width: `${(c.p * 100).toFixed(0)}%`, background: c.c, [\"--i\" as string]: i } as React.CSSProperties}\n                      />\n                    </div>\n                  </div>\n                ))}\n              </div>\n              <div className=\"hb-kh6-txs\">\n                {txs.map((t) => (\n                  <div key={t.n} className=\"hb-kh6-tx\">\n                    <span className=\"hb-kh6-txi\">{t.i}</span>\n                    <span>{t.n}</span>\n                    <b style={t.v.startsWith(\"+\") ? { color: \"#4ade80\" } : undefined}>{t.v}</b>\n                  </div>\n                ))}\n              </div>\n              <div className=\"hb-kh6-tabs\">\n                <i />\n                <i />\n                <i />\n                <i />\n              </div>\n            </div>\n          </div>\n          <div className=\"hb-kh6-float hb-kh6-fa\">\n            <div className=\"hb-kh6-flbl\">Saved this month</div>\n            <div className=\"hb-kh6-fval\">\n              <svg viewBox=\"0 0 16 16\">\n                <path d=\"M8 13V3M4 7l4-4 4 4\" />\n              </svg>\n              $320.00\n            </div>\n          </div>\n          <div className=\"hb-kh6-float hb-kh6-fb\">\n            <div className=\"hb-kh6-note\">\n              <span className=\"hb-kh6-appico\">{appName.charAt(0)}</span>\n              <div>\n                <strong>\n                  Rent paid <span>now</span>\n                </strong>\n                <p>$1,450 to Parkside Lofts. You are still $212 under budget.</p>\n              </div>\n            </div>\n          </div>\n          <div className=\"hb-kh6-float hb-kh6-fc\">\n            <div className=\"hb-kh6-goal\">\n              <svg viewBox=\"0 0 42 42\">\n                <circle cx=\"21\" cy=\"21\" r=\"17\" stroke=\"rgba(255,255,255,0.1)\" />\n                <circle\n                  cx=\"21\"\n                  cy=\"21\"\n                  r=\"17\"\n                  stroke={accent}\n                  strokeLinecap=\"round\"\n                  strokeDasharray={`${(circ * goal).toFixed(2)} ${circ.toFixed(2)}`}\n                />\n              </svg>\n              <div>\n                <strong>Japan trip</strong>\n                <span>$2,040 of $3,000</span>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}