{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "register-form",
  "title": "Register Form",
  "author": "AlgorizeTech",
  "description": "Ask the user to pick one of 13 auth forms variants: https://avaraui.com/view/auth-forms. This item holds 7 of them as looks of one component (register-default, register-split, register-minimal, register-scenic, register-glass, register-liquid-glass, register-ribbon-drift). Skip the question if the user already named one. A sign-up form with paired name fields, password confirmation, a terms checkbox and multiple layout variants including ribbon-drift and liquid-glass. Use it wherever new accounts are created.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "https://avaraui.com/r/button.json",
    "https://avaraui.com/r/icons.json",
    "https://avaraui.com/r/input.json",
    "https://avaraui.com/r/ribbon-drift.json",
    "https://avaraui.com/r/ui-liquid-glass.json",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/custom/blocks/RegisterForm.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport { ArrowLeft, Calendar, Check, ChevronDown, ChevronLeft, ChevronRight, Clock, Mail, X } from \"lucide-react\";\nimport Button from \"./Button\";\nimport { GitHubIcon, GoogleIcon } from \"./Icons\";\nimport { InputBlock } from \"./InputBlock\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { getThemeStyles } from \"./register-form-theme\";\nimport { RibbonDriftBlock } from \"./RibbonDriftBlock\";\n\n// ==========================================\n// DYNAMIC THEME ENGINE\n// ==========================================\nexport type RegisterColor =\n  | \"primary\"\n  | \"lavender\"\n  | \"indigo\"\n  | \"rose\"\n  | \"emerald\"\n  | \"zinc\"\n  | (string & {});\nexport type RegisterVariant =\n  | \"scenic\"\n  | \"default\"\n  | \"split\"\n  | \"glass\"\n  | \"minimal\"\n  | \"nature\"\n  | \"landscape\"\n  | \"liquid-glass\"\n  | \"ribbon-drift\";\nexport type RegisterProvider = \"github\" | \"google\" | \"apple\";\n\nimport {\n  LiquidGlassBackground,\n  LiquidGlassSvgFilter,\n  formatRadius,\n} from \"@/components/custom/ui/liquid-glass\";\nexport { LiquidGlassSvgFilter };\n\nexport type ScenicStep =\n  | \"welcome\"\n  | \"options\"\n  | \"email\"\n  | \"form\"\n  | \"otp\"\n  | \"onboarding-intro\"\n  | \"goals\"\n  | \"finances\"\n  | \"confidence\"\n  | \"emergency-fund\"\n  | \"first-goal\"\n  | \"summary\"\n  | \"completed\";\n\nexport type RegisterFormValues = {\n  firstName: string;\n  lastName: string;\n  email: string;\n  password: string;\n  confirmPassword: string;\n  agreeToTerms: boolean;\n};\n\nexport interface RegisterFormProps {\n  variant?: RegisterVariant;\n  color?: RegisterColor;\n  /** Where \"Sign in\" sends someone who already has an account. */\n  loginHref?: string;\n  termsHref?: string;\n  privacyHref?: string;\n  /**\n   * Client-side minimum only — it stops an obviously-too-short password before\n   * a round trip. Your server still has to enforce the real policy.\n   */\n  minPasswordLength?: number;\n  onSubmit?: (values: RegisterFormValues) => void | Promise<void>;\n  onSocialSignUp?: (provider: RegisterProvider) => void;\n  /** Brand display name shown on scenic variant */\n  brandName?: string;\n  /** Custom logo icon */\n  brandIcon?: React.ReactNode;\n  /** Primary headline for the scenic card */\n  title?: string;\n  /** Subtitle / description for the scenic card */\n  subtitle?: string;\n  /** Label for primary get started action button */\n  getStartedLabel?: string;\n  /** Label for secondary existing account button */\n  alreadyAccountLabel?: string;\n  /** Scenic background image URL (e.g. Cloudinary) */\n  bgImage?: string;\n  /** Custom heading for ribbon-drift variant */\n  heading?: string;\n  /** Custom lead / subtitle for ribbon-drift variant */\n  lead?: string;\n  /** Custom image for ribbon-drift variant */\n  image?: string;\n  /** Custom promo card for ribbon-drift variant */\n  promo?: {\n    title?: string;\n    body?: string;\n    href?: string;\n    avatars?: (string | { src: string; alt?: string; name?: string; designation?: string })[];\n  };\n  /** Custom top ribbon items for ribbon-drift variant */\n  ribbonsTop?: string[];\n  /** Custom bottom ribbon items for ribbon-drift variant */\n  ribbonsBottom?: string[];\n  /** Google sign-up action handler */\n  onGoogle?: () => void;\n  /** Logo click link */\n  logoHref?: string;\n  /** Initial step for scenic mode */\n  initialStep?: ScenicStep;\n  /** Optional dynamic corner rounding radius value or Tailwind class */\n  rounded?: string | number;\n  className?: string;\n  style?: React.CSSProperties;\n}\n\n// --- INLINE UI COMPONENTS ---\n// Text fields and buttons come from the library (InputBlock, Button); the\n// checkbox is the one control it does not have yet, so it stays inline.\ninterface FieldCheckboxProps\n  extends Omit<React.InputHTMLAttributes<HTMLInputElement>, \"onChange\"> {\n  label?: React.ReactNode;\n  error?: string;\n  onCheckedChange: (checked: boolean) => void;\n  /** A row out of the block’s colour table. */\n  theme: Record<string, string>;\n  isLiquidGlass?: boolean;\n}\n\nconst Checkbox = ({\n  label,\n  id,\n  error,\n  checked,\n  onCheckedChange,\n  className,\n  theme,\n  isLiquidGlass,\n  ...props\n}: FieldCheckboxProps) => (\n  <div className=\"flex flex-col gap-1\">\n    <div className=\"flex items-start gap-2.5 pt-1\">\n      <div className=\"relative flex items-center\">\n        <input\n          type=\"checkbox\"\n          id={id}\n          checked={checked}\n          onChange={(e) => onCheckedChange(e.target.checked)}\n          className={cn(\n            \"peer h-4 w-4 shrink-0 rounded border-2 appearance-none cursor-pointer transition-colors outline-none\",\n            // --border is tuned for wide input outlines; on a 16px box it all but\n            // disappears, so the unchecked edge uses the stronger muted ink.\n            error\n              ? \"border-red-500\"\n              : !checked &&\n                  (isLiquidGlass\n                    ? \"border-white/50 hover:border-white/80 bg-white/10\"\n                    : \"border-muted-foreground/60 hover:border-muted-foreground\"),\n            checked && !error && (isLiquidGlass ? \"bg-white text-zinc-950 border-white\" : theme.bg),\n            checked && !error && (isLiquidGlass ? \"border-white\" : theme.border),\n            theme.ring,\n            className,\n          )}\n          {...props}\n        />\n        <Check\n          size={12}\n          strokeWidth={3}\n          className={cn(\n            \"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none opacity-0 peer-checked:opacity-100 transition-opacity\",\n            isLiquidGlass ? \"text-zinc-950\" : theme.panelFg,\n          )}\n        />\n      </div>\n      <label\n        htmlFor={id}\n        className={cn(\n          \"text-sm font-medium cursor-pointer leading-tight select-none\",\n          isLiquidGlass ? \"text-white/90\" : \"text-muted-foreground\"\n        )}\n      >\n        {label} {props.required && <span className=\"text-red-500\">*</span>}\n      </label>\n    </div>\n    {error && (\n      <p className=\"text-[11px] text-red-500 font-semibold ml-6\">{error}</p>\n    )}\n  </div>\n);\n\n// --- BRAND ICONS ---\nexport const DocsUiIcon = ({\n  className = \"w-5 h-5\",\n  size = 20,\n}: {\n  className?: string;\n  size?: number;\n}) => (\n  <svg\n    width={size}\n    height={size}\n    viewBox=\"0 0 24 24\"\n    fill=\"none\"\n    xmlns=\"http://www.w3.org/2000/svg\"\n    className={className}\n  >\n    <rect\n      x=\"3\"\n      y=\"3\"\n      width=\"7\"\n      height=\"7\"\n      rx=\"1.5\"\n      className=\"fill-foreground dark:fill-white\"\n    />\n    <rect\n      x=\"14\"\n      y=\"3\"\n      width=\"7\"\n      height=\"7\"\n      rx=\"1.5\"\n      className=\"fill-primary\"\n    />\n    <rect\n      x=\"14\"\n      y=\"14\"\n      width=\"7\"\n      height=\"7\"\n      rx=\"1.5\"\n      className=\"fill-foreground dark:fill-white\"\n    />\n    <rect\n      x=\"3\"\n      y=\"14\"\n      width=\"7\"\n      height=\"7\"\n      rx=\"1.5\"\n      className=\"fill-primary\"\n    />\n  </svg>\n);\n\nexport const AvyroIcon = DocsUiIcon;\n\nexport const AppleBrandIcon = ({\n  className = \"w-5 h-5\",\n  size = 19,\n}: {\n  className?: string;\n  size?: number;\n}) => (\n  <svg\n    width={size}\n    height={size}\n    viewBox=\"0 0 170 170\"\n    fill=\"currentColor\"\n    className={className}\n    xmlns=\"http://www.w3.org/2000/svg\"\n  >\n    <path d=\"M150.37 130.25c-2.45 5.66-5.35 10.87-8.71 15.66-4.58 6.53-8.33 11.05-11.22 13.56-4.48 4.12-9.28 6.23-14.42 6.35-3.69 0-8.14-1.05-13.32-3.18-5.19-2.12-9.97-3.17-14.34-3.17-4.58 0-9.49 1.05-14.75 3.17-5.26 2.13-9.5 3.24-12.74 3.35-4.35.13-9.16-1.9-14.42-6.08-3.7-3.04-7.6-7.85-11.7-14.43-6.09-9.78-10.74-20.93-13.97-33.45-3.23-12.52-4.85-24.16-4.85-34.92 0-14.94 3.73-27.17 11.19-36.68 7.46-9.52 17.06-14.38 28.8-14.59 4.9 0 10.42 1.25 16.56 3.76 6.13 2.5 9.94 3.8 11.43 3.89 1.15-.09 5.25-1.47 12.3-4.14 7.05-2.67 13.06-3.83 18.03-3.48 13.62 1.09 24.36 6.25 32.22 15.49-11.87 7.18-17.7 17.07-17.5 29.68.22 10.02 4.12 18.39 11.71 25.11 7.59 6.72 16.76 10.66 27.52 11.83-2.18 6.75-4.78 13.41-7.81 19.98zm-30.82-108.97c0 7.29-2.67 14.17-8.01 20.65-5.34 6.47-11.96 10.37-19.86 11.7-.33-1.09-.49-2.07-.49-2.94 0-7.07 2.83-13.88 8.49-20.44 5.66-6.56 12.43-10.46 20.3-11.7.11.98.17 1.89.17 2.73z\" />\n  </svg>\n);\n\n// --- MAIN COMPONENT ---\nexport default function RegisterForm({\n  variant = \"default\",\n  color = \"primary\",\n  loginHref = \"#\",\n  termsHref = \"#\",\n  privacyHref = \"#\",\n  minPasswordLength = 8,\n  onSubmit,\n  onSocialSignUp,\n  brandName = \"Docs UI\",\n  brandIcon,\n  title = \"Take control of your financial wellbeing\",\n  subtitle = \"Understand your money, build healthier habits, and make confident financial decisions\",\n  getStartedLabel = \"Get Started\",\n  alreadyAccountLabel = \"I already have an account\",\n  bgImage = \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_1600,c_limit/v1790145140/photo-1426604966848-d7adac402bff-1790145143490.jpg\",\n  initialStep = \"welcome\",\n  heading,\n  lead,\n  image,\n  promo,\n  ribbonsTop,\n  ribbonsBottom,\n  onGoogle,\n  logoHref = \"#\",\n  rounded,\n  className,\n  style: customStyle,\n}: RegisterFormProps) {\n  const { theme, style: themeStyle } = getThemeStyles(color);\n  const focusInputClasses = cn(\n    \"outline-none transition-all duration-200\",\n    \"focus:bg-white dark:focus:bg-[#18191b]\",\n    theme.focusBorder,\n    theme.focusRing\n  );\n  const focusButtonClasses = cn(\n    \"outline-none transition-all duration-200 focus-visible:outline-none\",\n    theme.focusBorder,\n    theme.focusRing\n  );\n  const scenicPrimaryButtonClasses = cn(\n    \"w-full\",\n    theme.bg,\n    theme.panelFg,\n    focusButtonClasses\n  );\n  const scenicDropdownButtonClasses = (isOpen: boolean) =>\n    cn(\n      \"w-full h-11 px-3.5 rounded-xl text-sm font-normal flex items-center justify-between transition-all duration-200 outline-none cursor-pointer\",\n      \"bg-zinc-100 text-zinc-900 border border-zinc-200/80 hover:border-zinc-300 hover:bg-zinc-200/50\",\n      \"dark:bg-[#1e1f21] dark:text-white dark:border-white/[0.08] dark:hover:border-white/20 dark:hover:bg-[#25272a]\",\n      focusButtonClasses,\n      isOpen && [\n        theme.border,\n        \"ring-2\",\n        theme.focusRing,\n        \"bg-white dark:bg-[#1e1f21]\",\n      ]\n    );\n  const [scenicStep, setScenicStep] = useState<ScenicStep>(\n    initialStep === \"form\" ? \"email\" : initialStep || \"welcome\",\n  );\n  const cardContentRef = useRef<HTMLDivElement>(null);\n  const [cardHeight, setCardHeight] = useState<number | undefined>(undefined);\n\n  // OTP state\n  const [otp, setOtp] = useState<string[]>([\"\", \"\", \"\", \"\", \"\", \"\"]);\n  const otpInputRefs = useRef<(HTMLInputElement | null)[]>([]);\n\n  // Focus areas state for \"What would you like to improve first?\"\n  const [selectedAreas, setSelectedAreas] = useState<string[]>([\n    \"Save more\",\n    \"Pay off\",\n  ]);\n\n  // Financial profile state (Image 1)\n  const [finances, setFinances] = useState({\n    monthlyIncome: \"$5,600\",\n    monthlyExpenses: \"$3,800\",\n    employmentStatus: \"Full-time\",\n    household: \"Single\",\n    dependents: \"0\",\n  });\n\n  // Confidence ratings state (Image 2)\n  const [confidenceRatings, setConfidenceRatings] = useState<{\n    expenseCover: number;\n    monthlyControl: number;\n    futurePlan: number;\n  }>({\n    expenseCover: 4,\n    monthlyControl: 3,\n    futurePlan: 3,\n  });\n\n  // Emergency fund state (Image 3)\n  const [emergencyFund, setEmergencyFund] = useState({\n    hasFund: true,\n    currentAmount: \"$5,000\",\n    targetAmount: \"$9,000\",\n  });\n\n  // First goal state (Image 4)\n  const [firstGoal, setFirstGoal] = useState({\n    goalType: \"Grow my net worth\",\n    currentNetWorth: \"$23,950\",\n    targetNetWorth: \"$30,000\",\n    targetDate: \"March 2027\",\n    monthlyContribution: \"$75\",\n  });\n\n  // Custom dropdown & date picker modal states\n  const [activeDropdown, setActiveDropdown] = useState<{\n    title: string;\n    field: \"employmentStatus\" | \"household\" | \"dependents\" | \"goalType\";\n    options: string[];\n  } | null>(null);\n\n  const [isDatePickerOpen, setIsDatePickerOpen] = useState(false);\n  const [datePickerYear, setDatePickerYear] = useState(2027);\n  const [datePickerMonth, setDatePickerMonth] = useState(\"March\");\n\n  const openDatePicker = () => {\n    const parts = firstGoal.targetDate.trim().split(/\\s+/);\n    if (parts.length >= 2) {\n      const mStr = parts[0];\n      const yNum = parseInt(parts[1], 10);\n      const monthNames = [\n        { short: \"Jan\", full: \"January\" },\n        { short: \"Feb\", full: \"February\" },\n        { short: \"Mar\", full: \"March\" },\n        { short: \"Apr\", full: \"April\" },\n        { short: \"May\", full: \"May\" },\n        { short: \"Jun\", full: \"June\" },\n        { short: \"Jul\", full: \"July\" },\n        { short: \"Aug\", full: \"August\" },\n        { short: \"Sep\", full: \"September\" },\n        { short: \"Oct\", full: \"October\" },\n        { short: \"Nov\", full: \"November\" },\n        { short: \"Dec\", full: \"December\" },\n      ];\n      const found = monthNames.find(\n        (m) =>\n          m.short.toLowerCase() === mStr.slice(0, 3).toLowerCase() ||\n          m.full.toLowerCase() === mStr.toLowerCase()\n      );\n      if (found) setDatePickerMonth(found.full);\n      if (!isNaN(yNum)) setDatePickerYear(yNum);\n    }\n    setIsDatePickerOpen(true);\n  };\n\n  const focusOptions = [\n    { id: \"save-more\", label: \"Save more\" },\n    { id: \"pay-off\", label: \"Pay off\" },\n    { id: \"spend-smarter\", label: \"Spend smarter\" },\n    { id: \"emergency-fund\", label: \"Emergency fund\" },\n    { id: \"stress-less\", label: \"Stress less\" },\n    { id: \"grow-wealth\", label: \"Grow wealth\" },\n  ];\n\n  const handleOtpChange = (index: number, value: string) => {\n    const clean = value.replace(/\\D/g, \"\");\n    if (!clean) {\n      const nextOtp = [...otp];\n      nextOtp[index] = \"\";\n      setOtp(nextOtp);\n      return;\n    }\n    const nextOtp = [...otp];\n    if (clean.length > 1) {\n      const digits = clean.slice(0, 6).split(\"\");\n      digits.forEach((d, i) => {\n        if (index + i < 6) nextOtp[index + i] = d;\n      });\n      setOtp(nextOtp);\n      const nextFocus = Math.min(index + digits.length, 5);\n      otpInputRefs.current[nextFocus]?.focus();\n      return;\n    }\n    nextOtp[index] = clean[0];\n    setOtp(nextOtp);\n    if (index < 5) {\n      otpInputRefs.current[index + 1]?.focus();\n    }\n  };\n\n  const handleOtpKeyDown = (\n    index: number,\n    e: React.KeyboardEvent<HTMLInputElement>,\n  ) => {\n    if (e.key === \"Backspace\" && !otp[index] && index > 0) {\n      otpInputRefs.current[index - 1]?.focus();\n    }\n  };\n\n  const handleOtpPaste = (e: React.ClipboardEvent<HTMLInputElement>) => {\n    e.preventDefault();\n    const pasted = e.clipboardData\n      .getData(\"text\")\n      .replace(/\\D/g, \"\")\n      .slice(0, 6);\n    if (!pasted) return;\n    const nextOtp = [...otp];\n    pasted.split(\"\").forEach((d, i) => {\n      if (i < 6) nextOtp[i] = d;\n    });\n    setOtp(nextOtp);\n    const focusIndex = Math.min(pasted.length, 5);\n    otpInputRefs.current[focusIndex]?.focus();\n  };\n\n  const toggleFocusArea = (label: string) => {\n    setSelectedAreas((prev) => {\n      if (prev.includes(label)) {\n        return prev.filter((item) => item !== label);\n      }\n      if (prev.length < 2) {\n        return [...prev, label];\n      }\n      return [prev[1], label];\n    });\n  };\n\n  useEffect(() => {\n    if (!cardContentRef.current) return;\n    const updateHeight = () => {\n      if (cardContentRef.current) {\n        setCardHeight(cardContentRef.current.offsetHeight);\n      }\n    };\n    updateHeight();\n\n    const observer = new ResizeObserver(updateHeight);\n    observer.observe(cardContentRef.current);\n    return () => observer.disconnect();\n  }, [scenicStep]);\n\n  const [formData, setFormData] = useState<RegisterFormValues>({\n    firstName: \"\",\n    lastName: \"\",\n    email: \"\",\n    password: \"\",\n    confirmPassword: \"\",\n    agreeToTerms: false,\n  });\n  const [errors, setErrors] = useState<Record<string, string>>({});\n  const [loading, setLoading] = useState(false);\n\n  const handleChange = (\n    name: keyof RegisterFormValues,\n    value: string | boolean,\n  ) => {\n    setFormData((prev) => ({ ...prev, [name]: value }));\n    if (errors[name]) setErrors((prev) => ({ ...prev, [name]: \"\" }));\n  };\n\n  const validateForm = () => {\n    const newErrors: Record<string, string> = {};\n    if (!formData.firstName) newErrors.firstName = \"Required\";\n    if (!formData.lastName) newErrors.lastName = \"Required\";\n\n    if (!formData.email) newErrors.email = \"Email is required\";\n    else if (!/^\\S+@\\S+\\.\\S+$/.test(formData.email))\n      newErrors.email = \"Invalid email format\";\n\n    if (!formData.password) newErrors.password = \"Password is required\";\n    else if (formData.password.length < minPasswordLength)\n      newErrors.password = `Must be at least ${minPasswordLength} characters`;\n\n    if (!formData.confirmPassword) newErrors.confirmPassword = \"Required\";\n    else if (formData.password !== formData.confirmPassword)\n      newErrors.confirmPassword = \"Passwords do not match\";\n\n    if (!formData.agreeToTerms)\n      newErrors.agreeToTerms = \"You must agree to the terms\";\n\n    setErrors(newErrors);\n    return Object.keys(newErrors).length === 0;\n  };\n\n  const handleSubmit = async (e: React.FormEvent) => {\n    e.preventDefault();\n    if (!validateForm()) return;\n    if (\n      variant === \"scenic\" ||\n      variant === \"nature\" ||\n      variant === \"landscape\"\n    ) {\n      setScenicStep(\"otp\");\n      return;\n    }\n    setLoading(true);\n    try {\n      if (onSubmit) await onSubmit(formData);\n      else {\n        await new Promise((resolve) => setTimeout(resolve, 1500));\n        alert(\"Account created successfully!\");\n      }\n    } finally {\n      setLoading(false);\n    }\n  };\n\n  const isLiquidGlass = variant === \"liquid-glass\";\n\n  const FormContent = (\n    <div className=\"w-full max-w-md mx-auto flex flex-col justify-center h-full\">\n      <div className=\"mb-8 text-center sm:text-left\">\n        <h2\n          className={cn(\n            \"text-3xl font-bold tracking-tight mb-2\",\n            isLiquidGlass ? \"text-white\" : \"text-foreground\",\n          )}\n        >\n          {variant === \"split\" ? \"Create an account\" : (title || \"Create an account\")}\n        </h2>\n        <p\n          className={cn(\n            \"text-sm font-medium\",\n            isLiquidGlass ? \"text-white/75\" : \"text-muted-foreground\",\n          )}\n        >\n          {variant === \"split\"\n            ? \"Start your 14-day free trial. No credit card required.\"\n            : (subtitle || \"Start your 14-day free trial. No credit card required.\")}\n        </p>\n      </div>\n\n      <div className=\"grid grid-cols-1 xs:grid-cols-2 gap-2.5 sm:gap-3 mb-5 sm:mb-6\">\n        <Button\n          variant={\n            isLiquidGlass\n              ? \"liquid-glass-social\"\n              : variant === \"glass\"\n                ? \"glass-social\"\n                : \"auth-social\"\n          }\n          type=\"button\"\n          color={color}\n          onClick={() => onSocialSignUp?.(\"github\")}\n          iconLeft={<GitHubIcon size={18} />}\n          className={cn(\"w-full\", isLiquidGlass && \"bg-white/15 hover:bg-white/25\")}\n        >\n          GitHub\n        </Button>\n        <Button\n          variant={\n            isLiquidGlass\n              ? \"liquid-glass-social\"\n              : variant === \"glass\"\n                ? \"glass-social\"\n                : \"auth-social\"\n          }\n          type=\"button\"\n          color={color}\n          onClick={() => onSocialSignUp?.(\"google\")}\n          iconLeft={<GoogleIcon size={18} />}\n          className={cn(\"w-full\", isLiquidGlass && \"bg-white/15 hover:bg-white/25\")}\n        >\n          Google\n        </Button>\n      </div>\n\n      <div className=\"relative flex items-center mb-5 sm:mb-6\">\n        <div\n          className={cn(\n            \"flex-grow border-t\",\n            isLiquidGlass ? \"border-white/20\" : \"border-border\",\n          )}\n        />\n        <span\n          className={cn(\n            \"flex-shrink-0 mx-3 sm:mx-4 text-[10px] sm:text-xs font-semibold uppercase tracking-widest\",\n            isLiquidGlass ? \"text-white/75\" : \"text-muted-foreground\",\n          )}\n        >\n          Or continue with\n        </span>\n        <div\n          className={cn(\n            \"flex-grow border-t\",\n            isLiquidGlass ? \"border-white/20\" : \"border-border\",\n          )}\n        />\n      </div>\n\n      <form onSubmit={handleSubmit} className=\"space-y-3.5 sm:space-y-4\">\n        <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-3.5 sm:gap-4\">\n          <InputBlock\n            label=\"First Name\"\n            id=\"register-first-name\"\n            name=\"firstName\"\n            autoComplete=\"given-name\"\n            placeholder=\"Jane\"\n            value={formData.firstName}\n            onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleChange(\"firstName\", e.target.value)}\n            error={errors.firstName}\n            color={color}\n          />\n          <InputBlock\n            label=\"Last Name\"\n            id=\"register-last-name\"\n            name=\"lastName\"\n            autoComplete=\"family-name\"\n            placeholder=\"Doe\"\n            value={formData.lastName}\n            onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleChange(\"lastName\", e.target.value)}\n            error={errors.lastName}\n            color={color}\n          />\n        </div>\n\n        <InputBlock\n          label=\"Email Address\"\n          id=\"register-email\"\n          name=\"email\"\n          type=\"email\"\n          autoComplete=\"email\"\n          placeholder=\"name@company.com\"\n          value={formData.email}\n          onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleChange(\"email\", e.target.value)}\n          error={errors.email}\n          color={color}\n        />\n        <InputBlock\n          label=\"Password\"\n          id=\"register-password\"\n          name=\"password\"\n          type=\"password\"\n          autoComplete=\"new-password\"\n          placeholder=\"Create a password\"\n          helperText={`At least ${minPasswordLength} characters.`}\n          value={formData.password}\n          onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleChange(\"password\", e.target.value)}\n          error={errors.password}\n          color={color}\n        />\n        <InputBlock\n          label=\"Confirm Password\"\n          id=\"register-confirm-password\"\n          name=\"confirmPassword\"\n          type=\"password\"\n          autoComplete=\"new-password\"\n          placeholder=\"Confirm your password\"\n          value={formData.confirmPassword}\n          onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleChange(\"confirmPassword\", e.target.value)}\n          error={errors.confirmPassword}\n          color={color}\n        />\n\n        <div className=\"pt-2 pb-2\">\n          <Checkbox\n            theme={theme}\n            isLiquidGlass={isLiquidGlass}\n            label={\n              <>\n                I agree to the{\" \"}\n                <a\n                  href={termsHref}\n                  onClick={(e) => {\n                    if (!termsHref || termsHref === \"#\") e.preventDefault();\n                  }}\n                  className={cn(\n                    \"font-semibold hover:underline\",\n                    isLiquidGlass ? \"text-white hover:text-white/90\" : theme.text,\n                  )}\n                >\n                  Terms of Service\n                </a>{\" \"}\n                and{\" \"}\n                <a\n                  href={privacyHref}\n                  onClick={(e) => {\n                    if (!privacyHref || privacyHref === \"#\") e.preventDefault();\n                  }}\n                  className={cn(\n                    \"font-semibold hover:underline\",\n                    isLiquidGlass ? \"text-white hover:text-white/90\" : theme.text,\n                  )}\n                >\n                  Privacy Policy\n                </a>\n              </>\n            }\n            id=\"register-agree-to-terms\"\n            checked={formData.agreeToTerms}\n            onCheckedChange={(c: boolean) => handleChange(\"agreeToTerms\", c)}\n            error={errors.agreeToTerms}\n          />\n        </div>\n\n        <Button\n          type=\"submit\"\n          variant={isLiquidGlass ? \"liquid-glass-primary\" : \"default\"}\n          color={color}\n          loading={loading}\n          className={cn(\n            \"w-full h-11 mt-4 shadow-lg\",\n            !isLiquidGlass && \"shadow-black/5\",\n          )}\n        >\n          {loading ? \"Please wait...\" : \"Create Account\"}\n        </Button>\n      </form>\n\n      <div className=\"mt-8 text-center\">\n        <p\n          className={cn(\n            \"text-sm font-medium\",\n            isLiquidGlass ? \"text-white/75\" : \"text-muted-foreground\",\n          )}\n        >\n          Already have an account?{\" \"}\n          <a\n            href={loginHref}\n            onClick={(e) => {\n              if (!loginHref || loginHref === \"#\") e.preventDefault();\n            }}\n            className={cn(\n              \"font-semibold hover:underline transition-all\",\n              isLiquidGlass ? \"text-white hover:text-white/90\" : theme.text,\n            )}\n          >\n            Sign in\n          </a>\n        </p>\n      </div>\n    </div>\n  );\n\n  if (variant === \"ribbon-drift\") {\n    return (\n      <RegisterBlock\n        rounded={rounded}\n        color={color}\n        className={className}\n        style={{ ...themeStyle, ...customStyle }}\n        heading={heading || title || \"Create your account\"}\n        lead={\n          lead ||\n          subtitle ||\n          \"Set up a role, add your screening questions, and let AI interview every qualified applicant.\"\n        }\n        image={image || defaultRegisterImage}\n        promo={promo}\n        ribbonsTop={ribbonsTop}\n        ribbonsBottom={ribbonsBottom}\n        loginHref={loginHref}\n        termsHref={termsHref}\n        privacyHref={privacyHref}\n        logoHref={logoHref}\n        onSubmit={onSubmit}\n        onGoogle={onGoogle || (() => onSocialSignUp?.(\"google\"))}\n      />\n    );\n  }\n\n  if (variant === \"split\") {\n    return (\n      <div\n        className=\"w-full h-full min-h-[600px] flex overflow-hidden rounded-2xl border border-border bg-background transition-colors duration-300\"\n        style={{ ...themeStyle, ...customStyle }}\n      >\n        <div\n          className={cn(\n            \"hidden lg:flex w-1/2 relative p-12 flex-col justify-between gap-10 overflow-hidden bg-gradient-to-br\",\n            theme.gradient,\n            // Everything inside inherits this, so the panel stays legible even\n            // on gradients that invert with the theme.\n            theme.panelFg,\n          )}\n        >\n          <div className=\"absolute inset-0 bg-black/10 mix-blend-overlay pointer-events-none\" />\n\n          {/* Decoration. All CSS — the block stays copy-paste portable with no\n              image assets to ship, and it recolours with the gradient. */}\n          <div\n            className=\"absolute inset-0 pointer-events-none opacity-[0.18] bg-[radial-gradient(circle,currentColor_1px,transparent_1px)] [background-size:22px_22px] [mask-image:radial-gradient(ellipse_at_top_right,black_10%,transparent_70%)]\"\n            aria-hidden=\"true\"\n          />\n          <div\n            className=\"absolute -top-24 -right-20 w-72 h-72 rounded-full bg-current/15 blur-3xl pointer-events-none\"\n            aria-hidden=\"true\"\n          />\n          <div\n            className=\"absolute -bottom-28 -left-16 w-80 h-80 rounded-full bg-black/20 blur-3xl pointer-events-none\"\n            aria-hidden=\"true\"\n          />\n\n          <div className=\"relative z-10\">\n            <div className=\"flex items-center gap-2 font-bold text-2xl tracking-tighter\">\n              {brandIcon || (\n                <div className=\"w-8 h-8 rounded-lg bg-current/20 flex items-center justify-center backdrop-blur-md\">\n                  ⚡\n                </div>\n              )}\n              {brandName || \"Acme Inc.\"}\n            </div>\n          </div>\n\n          {/* Sign-up illustration. Drawn inline rather than loaded as a file so\n              the block stays copy-paste portable with no assets to ship, and it\n              paints in currentColor so it inherits the panel's own foreground —\n              legible on both the light and dark gradients. It mirrors the form\n              beside it: a paired name row, then email, password and confirm. */}\n          <div className=\"relative z-10 flex-1 flex items-center justify-center py-4\">\n            <svg\n              viewBox=\"0 0 320 250\"\n              fill=\"none\"\n              className=\"w-full max-w-[320px]\"\n              aria-hidden=\"true\"\n            >\n              <ellipse\n                cx=\"150\"\n                cy=\"228\"\n                rx=\"116\"\n                ry=\"14\"\n                fill=\"currentColor\"\n                opacity=\"0.12\"\n              />\n\n              {/* Offset card behind, for depth */}\n              <rect\n                x=\"52\"\n                y=\"26\"\n                width=\"222\"\n                height=\"148\"\n                rx=\"16\"\n                fill=\"currentColor\"\n                opacity=\"0.1\"\n              />\n\n              {/* Sign-up card */}\n              <rect\n                x=\"30\"\n                y=\"44\"\n                width=\"222\"\n                height=\"162\"\n                rx=\"16\"\n                fill=\"currentColor\"\n                opacity=\"0.16\"\n              />\n              <rect\n                x=\"30.75\"\n                y=\"44.75\"\n                width=\"220.5\"\n                height=\"160.5\"\n                rx=\"15.25\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.35\"\n                strokeWidth=\"1.5\"\n              />\n              <circle cx=\"48\" cy=\"62\" r=\"3.5\" fill=\"currentColor\" opacity=\"0.5\" />\n              <circle cx=\"60\" cy=\"62\" r=\"3.5\" fill=\"currentColor\" opacity=\"0.3\" />\n              <circle cx=\"72\" cy=\"62\" r=\"3.5\" fill=\"currentColor\" opacity=\"0.3\" />\n              <line\n                x1=\"30\"\n                y1=\"78\"\n                x2=\"252\"\n                y2=\"78\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.25\"\n                strokeWidth=\"1.5\"\n              />\n\n              {/* Paired first / last name row */}\n              <rect\n                x=\"58\"\n                y=\"94\"\n                width=\"78\"\n                height=\"14\"\n                rx=\"7\"\n                fill=\"currentColor\"\n                opacity=\"0.22\"\n              />\n              <rect\n                x=\"146\"\n                y=\"94\"\n                width=\"78\"\n                height=\"14\"\n                rx=\"7\"\n                fill=\"currentColor\"\n                opacity=\"0.22\"\n              />\n\n              {/* Email */}\n              <rect\n                x=\"58\"\n                y=\"116\"\n                width=\"166\"\n                height=\"14\"\n                rx=\"7\"\n                fill=\"currentColor\"\n                opacity=\"0.22\"\n              />\n\n              {/* Password */}\n              <rect\n                x=\"58\"\n                y=\"138\"\n                width=\"166\"\n                height=\"14\"\n                rx=\"7\"\n                fill=\"currentColor\"\n                opacity=\"0.22\"\n              />\n              <circle cx=\"70\" cy=\"145\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n              <circle cx=\"78\" cy=\"145\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n              <circle cx=\"86\" cy=\"145\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n              <circle cx=\"94\" cy=\"145\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n\n              {/* Confirm password */}\n              <rect\n                x=\"58\"\n                y=\"160\"\n                width=\"166\"\n                height=\"14\"\n                rx=\"7\"\n                fill=\"currentColor\"\n                opacity=\"0.22\"\n              />\n              <circle cx=\"70\" cy=\"167\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n              <circle cx=\"78\" cy=\"167\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n              <circle cx=\"86\" cy=\"167\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n              <circle cx=\"94\" cy=\"167\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n\n              {/* Terms checkbox, ticked */}\n              <rect\n                x=\"58\"\n                y=\"182\"\n                width=\"11\"\n                height=\"11\"\n                rx=\"3\"\n                fill=\"currentColor\"\n                opacity=\"0.55\"\n              />\n              <path\n                d=\"M60.5 187.5l2.5 2.5 4-4.5\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.95\"\n                strokeWidth=\"1.8\"\n                strokeLinecap=\"round\"\n                strokeLinejoin=\"round\"\n              />\n              <rect\n                x=\"76\"\n                y=\"185\"\n                width=\"98\"\n                height=\"6\"\n                rx=\"3\"\n                fill=\"currentColor\"\n                opacity=\"0.22\"\n              />\n\n              {/* Add-a-member badge */}\n              <circle\n                cx=\"256\"\n                cy=\"166\"\n                r=\"36\"\n                fill=\"currentColor\"\n                opacity=\"0.18\"\n              />\n              <circle\n                cx=\"256\"\n                cy=\"166\"\n                r=\"36\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.4\"\n                strokeWidth=\"1.5\"\n              />\n              <circle\n                cx=\"250\"\n                cy=\"158\"\n                r=\"7.5\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.9\"\n                strokeWidth=\"2.5\"\n              />\n              <path\n                d=\"M238 180a12 12 0 0 1 24 0\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.9\"\n                strokeWidth=\"2.5\"\n                strokeLinecap=\"round\"\n              />\n              <path\n                d=\"M268 158v14M261 165h14\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.9\"\n                strokeWidth=\"2.5\"\n                strokeLinecap=\"round\"\n              />\n\n              {/* Sparkles */}\n              <circle cx=\"34\" cy=\"24\" r=\"3\" fill=\"currentColor\" opacity=\"0.5\" />\n              <circle cx=\"290\" cy=\"58\" r=\"4\" fill=\"currentColor\" opacity=\"0.32\" />\n              <circle cx=\"272\" cy=\"28\" r=\"2.5\" fill=\"currentColor\" opacity=\"0.5\" />\n            </svg>\n          </div>\n\n          <div className=\"relative z-10 max-w-sm\">\n            <h1 className=\"text-4xl font-semibold mb-4 leading-tight\">\n              {title || \"Start building your next big idea.\"}\n            </h1>\n            <p className=\"font-medium opacity-80\">\n              {subtitle ||\n                \"Join thousands of developers who are already using our platform to build the future of software.\"}\n            </p>\n          </div>\n        </div>\n        <div className=\"w-full lg:w-1/2 p-4 xs:p-6 sm:p-12 xl:p-16 flex items-center justify-center\">\n          {FormContent}\n        </div>\n      </div>\n    );\n  }\n\n  if (\n    variant === \"scenic\" ||\n    variant === \"nature\" ||\n    variant === \"landscape\"\n  ) {\n    return (\n      <div\n        className=\"relative w-full min-h-[580px] sm:min-h-[640px] flex items-center justify-center overflow-hidden rounded-3xl p-4 sm:p-6 md:p-8\"\n        style={{ ...themeStyle, ...customStyle }}\n      >\n        <style>{`\n          @keyframes scenic-slide-right {\n            0% {\n              opacity: 0;\n              transform: translateX(-24px);\n            }\n            100% {\n              opacity: 1;\n              transform: translateX(0);\n            }\n          }\n          @keyframes scenic-modal-in {\n            0% {\n              opacity: 0;\n              transform: scale(0.94) translateY(12px);\n            }\n            100% {\n              opacity: 1;\n              transform: scale(1) translateY(0);\n            }\n          }\n          @keyframes scenic-header-zoom {\n            0% {\n              opacity: 0;\n              transform: translateX(-32px) scale(1.12);\n            }\n            60% {\n              opacity: 1;\n              transform: translateX(4px) scale(0.98);\n            }\n            100% {\n              opacity: 1;\n              transform: translateX(0) scale(1);\n            }\n          }\n          @keyframes scenic-spring-bounce {\n            0% {\n              opacity: 0;\n              transform: translateY(26px) scale(0.92);\n            }\n            55% {\n              opacity: 0.95;\n              transform: translateY(-6px) scale(1.03);\n            }\n            80% {\n              transform: translateY(2px) scale(0.99);\n            }\n            100% {\n              opacity: 1;\n              transform: translateY(0) scale(1);\n            }\n          }\n          @keyframes scenic-footer-spring {\n            0% {\n              opacity: 0;\n              transform: translateY(26px) scale(0.94);\n            }\n            60% {\n              opacity: 1;\n              transform: translateY(-4px) scale(1.02);\n            }\n            85% {\n              transform: translateY(1.5px) scale(0.995);\n            }\n            100% {\n              opacity: 1;\n              transform: translateY(0) scale(1);\n            }\n          }\n          @keyframes scenic-stagger-rise {\n            0% {\n              opacity: 0;\n              transform: translateY(22px);\n            }\n            100% {\n              opacity: 1;\n              transform: translateY(0);\n            }\n          }\n          @keyframes scenic-fade-in {\n            0% {\n              opacity: 0;\n            }\n            100% {\n              opacity: 1;\n            }\n          }\n        `}</style>\n\n        {/* Full-bleed scenic nature background */}\n        <img\n          src={bgImage}\n          alt=\"Scenic nature landscape background\"\n          className=\"absolute inset-0 w-full h-full object-cover select-none pointer-events-none\"\n        />\n\n        {/* Soft atmospheric overlay */}\n        <div className=\"absolute inset-0 bg-gradient-to-b from-black/20 via-transparent to-black/35 pointer-events-none\" />\n\n        {/* Floating Card with smooth animated height */}\n        <div\n          className={cn(\n            \"relative z-10 w-full max-w-[440px] rounded-[28px] overflow-hidden transition-[height] duration-700 ease-[cubic-bezier(0.16,1,0.3,1)]\",\n            // Light mode: clean frosted white card, crisp dark text, delicate border, deep ambient shadow\n            \"bg-white/95 text-zinc-900 border border-zinc-200/80 shadow-[0_20px_50px_rgba(0,0,0,0.18)] backdrop-blur-xl\",\n            // Dark mode: deep charcoal card matching screenshot, crisp white text, subtle translucent border\n            \"dark:bg-[#131415]/95 dark:text-white dark:border-white/10 dark:shadow-[0_25px_60px_-15px_rgba(0,0,0,0.7)]\"\n          )}\n          style={{\n            height: cardHeight ? `${cardHeight}px` : \"auto\",\n          }}\n        >\n          <div ref={cardContentRef} className=\"p-6 sm:p-8 md:p-9\">\n            {scenicStep === \"welcome\" && (\n              <div\n                className=\"flex flex-col items-center text-center\"\n                style={{\n                  animation:\n                    \"scenic-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards\",\n                }}\n              >\n                {/* Brand Header */}\n                <div\n                  className=\"flex items-center gap-2 mb-6\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  {brandIcon || (\n                    <DocsUiIcon className=\"w-5 h-5 text-zinc-900 dark:text-white\" />\n                  )}\n                  <span className=\"font-semibold text-lg tracking-tight text-zinc-900 dark:text-white\">\n                    {brandName}\n                  </span>\n                </div>\n\n                {/* Title */}\n                <h2\n                  className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-3 leading-snug\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                  }}\n                >\n                  {title}\n                </h2>\n\n                {/* Subtitle */}\n                <p\n                  className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 max-w-[340px] mb-8 leading-relaxed\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                  }}\n                >\n                  {subtitle}\n                </p>\n\n                {/* Actions */}\n                <div\n                  className=\"w-full flex flex-col gap-3\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards\",\n                  }}\n                >\n                  {/* Primary Button */}\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-primary\"\n                    color={color}\n                    onClick={() => setScenicStep(\"options\")}\n                    className={scenicPrimaryButtonClasses}\n                  >\n                    {getStartedLabel}\n                  </Button>\n\n                  {/* Secondary Button */}\n                  <a\n                    href={loginHref}\n                    onClick={(e) => {\n                      if (!loginHref || loginHref === \"#\") e.preventDefault();\n                    }}\n                    className=\"w-full block\"\n                  >\n                    <Button\n                      type=\"button\"\n                      variant=\"scenic-secondary\"\n                      color={color}\n                      className={cn(\"w-full\", focusButtonClasses)}\n                    >\n                      {alreadyAccountLabel}\n                    </Button>\n                  </a>\n                </div>\n              </div>\n            )}\n\n            {scenicStep === \"options\" && (\n              <div className=\"flex flex-col items-center text-center\">\n                {/* Header with Back button and Brand */}\n                <div\n                  className=\"w-full flex items-center justify-between mb-4 pb-2 border-b border-zinc-200/60 dark:border-white/10\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => setScenicStep(\"welcome\")}\n                    iconLeft={<ArrowLeft size={14} />}\n                    className=\"h-auto px-1.5 py-1 text-xs font-medium text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                  >\n                    Back\n                  </Button>\n                  <div className=\"flex items-center gap-1.5\">\n                    {brandIcon || (\n                      <DocsUiIcon className=\"w-4 h-4 text-zinc-900 dark:text-white\" />\n                    )}\n                    <span className=\"font-semibold text-xs text-zinc-900 dark:text-white\">\n                      {brandName}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Title */}\n                <h2\n                  className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-2 leading-snug\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                  }}\n                >\n                  Create your account\n                </h2>\n\n                {/* Subtitle */}\n                <p\n                  className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 mb-7\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                  }}\n                >\n                  Choose how you'd like to get started\n                </p>\n\n                {/* Staggered action buttons */}\n                <div className=\"w-full flex flex-col gap-3\">\n                  {/* Google Button */}\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-option\"\n                    color={color}\n                    onClick={() => onSocialSignUp?.(\"google\")}\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards\",\n                    }}\n                    iconLeft={<GoogleIcon size={19} className=\"shrink-0\" />}\n                    className={cn(\"w-full\", focusButtonClasses)}\n                  >\n                    Continue with Google\n                  </Button>\n\n                  {/* Apple Button */}\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-option\"\n                    color={color}\n                    onClick={() => onSocialSignUp?.(\"apple\")}\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.30s backwards\",\n                    }}\n                    iconLeft={\n                      <AppleBrandIcon\n                        size={19}\n                        className=\"shrink-0 text-zinc-900 dark:text-white\"\n                      />\n                    }\n                    className={cn(\"w-full\", focusButtonClasses)}\n                  >\n                    Continue with Apple\n                  </Button>\n\n                  {/* Email Button */}\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-option\"\n                    color={color}\n                    onClick={() => setScenicStep(\"email\")}\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.38s backwards\",\n                    }}\n                    iconLeft={<Mail size={19} className=\"shrink-0 text-current\" />}\n                    className={cn(\"w-full\", focusButtonClasses)}\n                  >\n                    Continue with Email\n                  </Button>\n                </div>\n\n                {/* Footer link */}\n                <div\n                  className=\"mt-6 text-center\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.46s backwards\",\n                  }}\n                >\n                  <p className=\"text-xs sm:text-[13px] text-zinc-500 dark:text-zinc-400\">\n                    Already have an account?{\" \"}\n                    <a\n                      href={loginHref}\n                      onClick={(e) => {\n                        if (!loginHref || loginHref === \"#\") e.preventDefault();\n                      }}\n                      className=\"font-semibold text-zinc-900 dark:text-white hover:underline transition-colors ml-0.5\"\n                    >\n                      Log in\n                    </a>\n                  </p>\n                </div>\n              </div>\n            )}\n\n            {scenicStep === \"email\" && (\n              <div>\n                {/* Form Step Header with Back Button */}\n                <div\n                  className=\"flex items-center justify-between mb-4 pb-3 border-b border-zinc-200/60 dark:border-white/10\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => setScenicStep(\"options\")}\n                    iconLeft={<ArrowLeft size={14} />}\n                    className=\"h-auto px-1.5 py-1 text-xs font-medium text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                  >\n                    Back\n                  </Button>\n                  <div className=\"flex items-center gap-1.5\">\n                    {brandIcon || (\n                      <DocsUiIcon className=\"w-4 h-4 text-zinc-900 dark:text-white\" />\n                    )}\n                    <span className=\"font-semibold text-xs text-zinc-900 dark:text-white\">\n                      {brandName}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Form Heading */}\n                <div className=\"mb-4\">\n                  <h3\n                    className=\"text-xl font-bold tracking-tight text-zinc-900 dark:text-white mb-1\"\n                    style={{\n                      animation:\n                        \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                    }}\n                  >\n                    Create an account\n                  </h3>\n                  <p\n                    className=\"text-xs text-zinc-500 dark:text-zinc-400\"\n                    style={{\n                      animation:\n                        \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                    }}\n                  >\n                    Fill in your details below to get started.\n                  </p>\n                </div>\n\n                <form onSubmit={handleSubmit} className=\"space-y-3\">\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.20s backwards\",\n                    }}\n                  >\n                    <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-3\">\n                      <InputBlock\n                        label=\"First Name\"\n                        id=\"register-scenic-first-name\"\n                        name=\"firstName\"\n                        autoComplete=\"given-name\"\n                        placeholder=\"Jane\"\n                        value={formData.firstName}\n                        onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n                          handleChange(\"firstName\", e.target.value)\n                        }\n                        error={errors.firstName}\n                        color={color}\n                      />\n                      <InputBlock\n                        label=\"Last Name\"\n                        id=\"register-scenic-last-name\"\n                        name=\"lastName\"\n                        autoComplete=\"family-name\"\n                        placeholder=\"Doe\"\n                        value={formData.lastName}\n                        onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n                          handleChange(\"lastName\", e.target.value)\n                        }\n                        error={errors.lastName}\n                        color={color}\n                      />\n                    </div>\n                  </div>\n\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.26s backwards\",\n                    }}\n                  >\n                    <InputBlock\n                      label=\"Email Address\"\n                      id=\"register-scenic-email\"\n                      name=\"email\"\n                      type=\"email\"\n                      autoComplete=\"email\"\n                      placeholder=\"name@company.com\"\n                      value={formData.email}\n                      onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n                        handleChange(\"email\", e.target.value)\n                      }\n                      error={errors.email}\n                      color={color}\n                    />\n                  </div>\n\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.32s backwards\",\n                    }}\n                  >\n                    <InputBlock\n                      label=\"Password\"\n                      id=\"register-scenic-password\"\n                      name=\"password\"\n                      type=\"password\"\n                      autoComplete=\"new-password\"\n                      placeholder=\"••••••••\"\n                      value={formData.password}\n                      onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n                        handleChange(\"password\", e.target.value)\n                      }\n                      error={errors.password}\n                      color={color}\n                    />\n                  </div>\n\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.38s backwards\",\n                    }}\n                  >\n                    <InputBlock\n                      label=\"Confirm Password\"\n                      id=\"register-scenic-confirm-password\"\n                      name=\"confirmPassword\"\n                      type=\"password\"\n                      autoComplete=\"new-password\"\n                      placeholder=\"••••••••\"\n                      value={formData.confirmPassword}\n                      onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n                        handleChange(\"confirmPassword\", e.target.value)\n                      }\n                      error={errors.confirmPassword}\n                      color={color}\n                    />\n                  </div>\n\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.44s backwards\",\n                    }}\n                  >\n                    <Checkbox\n                      id=\"register-scenic-agree\"\n                      checked={formData.agreeToTerms}\n                      onCheckedChange={(checked) =>\n                        handleChange(\"agreeToTerms\", checked)\n                      }\n                      error={errors.agreeToTerms}\n                      theme={theme}\n                      label={\n                        <span>\n                          I agree to the{\" \"}\n                          <a\n                            href={termsHref}\n                            onClick={(e) => {\n                              if (!termsHref || termsHref === \"#\") e.preventDefault();\n                            }}\n                            className={cn(\n                              \"underline underline-offset-2\",\n                              theme.text\n                            )}\n                          >\n                            Terms\n                          </a>{\" \"}\n                          and{\" \"}\n                          <a\n                            href={privacyHref}\n                            onClick={(e) => {\n                              if (!privacyHref || privacyHref === \"#\") e.preventDefault();\n                            }}\n                            className={cn(\n                              \"underline underline-offset-2\",\n                              theme.text\n                            )}\n                          >\n                            Privacy Policy\n                          </a>\n                        </span>\n                      }\n                    />\n                  </div>\n\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.50s backwards\",\n                    }}\n                  >\n                    <Button\n                      type=\"submit\"\n                      variant=\"scenic-primary\"\n                      color={color}\n                      loading={loading}\n                      className={cn(\n                        \"h-11 rounded-xl text-sm mt-2\",\n                        scenicPrimaryButtonClasses\n                      )}\n                    >\n                      Create Account\n                    </Button>\n                  </div>\n                </form>\n\n                {/* Footer link */}\n                <div\n                  className=\"mt-4 text-center\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.58s backwards\",\n                  }}\n                >\n                  <p className=\"text-xs sm:text-[13px] text-zinc-500 dark:text-zinc-400\">\n                    Already have an account?{\" \"}\n                    <a\n                      href={loginHref}\n                      onClick={(e) => {\n                        if (!loginHref || loginHref === \"#\") e.preventDefault();\n                      }}\n                      className=\"font-semibold text-zinc-900 dark:text-white hover:underline transition-colors ml-0.5\"\n                    >\n                      Log in\n                    </a>\n                  </p>\n                </div>\n              </div>\n            )}\n\n            {/* STEP 4: OTP VERIFICATION */}\n            {scenicStep === \"otp\" && (\n              <div className=\"flex flex-col items-center text-center\">\n                {/* Header with Back button and Brand */}\n                <div\n                  className=\"relative w-full flex items-center justify-center mb-6\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => setScenicStep(\"email\")}\n                    className=\"absolute left-0 h-auto p-1 text-xs text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                    aria-label=\"Back to email form\"\n                  >\n                    <ArrowLeft size={16} />\n                  </Button>\n                  <div className=\"flex items-center gap-2\">\n                    {brandIcon || (\n                      <DocsUiIcon className=\"w-5 h-5 text-zinc-900 dark:text-white\" />\n                    )}\n                    <span className=\"font-semibold text-lg tracking-tight text-zinc-900 dark:text-white\">\n                      {brandName}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Title */}\n                <h2\n                  className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-2 leading-snug\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                  }}\n                >\n                  Verify your email\n                </h2>\n\n                {/* Subtitle */}\n                <p\n                  className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 mb-7 max-w-[340px] leading-relaxed\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                  }}\n                >\n                  We've sent a 6-digit code to{\" \"}\n                  <span className=\"font-medium text-zinc-900 dark:text-white\">\n                    {formData.email || \"artur@gmail.com\"}\n                  </span>\n                </p>\n\n                {/* 6 OTP Input Boxes */}\n                <div\n                  className=\"flex items-center justify-between gap-2 sm:gap-2.5 mb-7 w-full\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.24s backwards\",\n                  }}\n                >\n                  {otp.map((digit, index) => (\n                    <input\n                      key={index}\n                      ref={(el) => {\n                        otpInputRefs.current[index] = el;\n                      }}\n                      type=\"text\"\n                      inputMode=\"numeric\"\n                      pattern=\"[0-9]*\"\n                      maxLength={1}\n                      value={digit}\n                      onChange={(e) => handleOtpChange(index, e.target.value)}\n                      onKeyDown={(e) => handleOtpKeyDown(index, e)}\n                      onPaste={handleOtpPaste}\n                      className={cn(\n                        \"w-full h-12 sm:h-14 rounded-2xl text-center text-lg sm:text-xl font-semibold transition-all duration-200 outline-none\",\n                        \"bg-zinc-100/90 text-zinc-900 border border-zinc-200/80 focus:bg-white\",\n                        \"dark:bg-[#1e1f21] dark:text-white dark:border-white/[0.08] dark:focus:bg-[#25272a]\",\n                        focusInputClasses\n                      )}\n                    />\n                  ))}\n                </div>\n\n                {/* Submit Action */}\n                <div\n                  className=\"w-full\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.32s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-primary\"\n                    color={color}\n                    onClick={() => setScenicStep(\"onboarding-intro\")}\n                    className={scenicPrimaryButtonClasses}\n                  >\n                    Verify &amp; Continue\n                  </Button>\n                </div>\n\n                {/* Resend & Change email */}\n                <div\n                  className=\"mt-5 text-center flex items-center justify-center gap-3 text-xs text-zinc-500 dark:text-zinc-400\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.40s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => setScenicStep(\"email\")}\n                    className=\"h-auto p-0 hover:underline transition-colors text-xs font-normal text-zinc-600 dark:text-zinc-300 hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                  >\n                    Change email\n                  </Button>\n                  <span>•</span>\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => alert(\"A new 6-digit code has been sent!\")}\n                    className=\"h-auto p-0 font-medium text-xs text-zinc-900 dark:text-white hover:underline transition-colors hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                  >\n                    Resend code\n                  </Button>\n                </div>\n              </div>\n            )}\n\n            {/* STEP 5: ONBOARDING INTRO */}\n            {scenicStep === \"onboarding-intro\" && (\n              <div className=\"flex flex-col items-center text-center\">\n                {/* Header with Brand */}\n                <div\n                  className=\"relative w-full flex items-center justify-center mb-6\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => setScenicStep(\"otp\")}\n                    className=\"absolute left-0 h-auto p-1 text-xs text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                    aria-label=\"Back to OTP\"\n                  >\n                    <ArrowLeft size={16} />\n                  </Button>\n                  <div className=\"flex items-center gap-2\">\n                    {brandIcon || (\n                      <DocsUiIcon className=\"w-5 h-5 text-zinc-900 dark:text-white\" />\n                    )}\n                    <span className=\"font-semibold text-lg tracking-tight text-zinc-900 dark:text-white\">\n                      {brandName}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Title */}\n                <h2\n                  className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-3 leading-snug\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                  }}\n                >\n                  Let's build your financial picture\n                </h2>\n\n                {/* Subtitle */}\n                <p\n                  className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 mb-7 max-w-[340px] leading-relaxed\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                  }}\n                >\n                  Answer a few questions so we can personalize your dashboard, insights, and recommendations.\n                </p>\n\n                {/* Time estimate badge */}\n                <div\n                  className=\"flex justify-center mb-8\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.24s backwards\",\n                  }}\n                >\n                  <div\n                    className={cn(\n                      \"inline-flex items-center gap-2 px-4 py-2 rounded-2xl text-xs sm:text-[13px] font-medium transition-colors\",\n                      \"bg-zinc-100 text-zinc-700 border border-zinc-200/80 shadow-sm\",\n                      \"dark:bg-[#1e1f21] dark:text-zinc-300 dark:border-white/[0.08]\"\n                    )}\n                  >\n                    <Clock size={14} className=\"shrink-0 opacity-70\" />\n                    <span>Takes about 3 minutes</span>\n                  </div>\n                </div>\n\n                {/* Action button */}\n                <div\n                  className=\"w-full\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.32s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-primary\"\n                    color={color}\n                    onClick={() => setScenicStep(\"goals\")}\n                    className={scenicPrimaryButtonClasses}\n                  >\n                    Let's start\n                  </Button>\n                </div>\n              </div>\n            )}\n\n            {/* STEP 6: GOALS & FOCUS AREAS */}\n            {scenicStep === \"goals\" && (\n              <div className=\"flex flex-col items-center text-center\">\n                {/* Header with Brand */}\n                <div\n                  className=\"relative w-full flex items-center justify-center mb-5\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => setScenicStep(\"onboarding-intro\")}\n                    className=\"absolute left-0 h-auto p-1 text-xs text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                    aria-label=\"Back to intro\"\n                  >\n                    <ArrowLeft size={16} />\n                  </Button>\n                  <div className=\"flex items-center gap-2\">\n                    {brandIcon || (\n                      <DocsUiIcon className=\"w-5 h-5 text-zinc-900 dark:text-white\" />\n                    )}\n                    <span className=\"font-semibold text-lg tracking-tight text-zinc-900 dark:text-white\">\n                      {brandName}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Title */}\n                <h2\n                  className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-2 leading-snug\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                  }}\n                >\n                  What would you like to improve first?\n                </h2>\n\n                {/* Subtitle */}\n                <p\n                  className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 mb-6 leading-relaxed\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                  }}\n                >\n                  Choose up to 2 areas to focus on.\n                </p>\n\n                {/* 6 Selectable Options Grid (3 cols x 2 rows) */}\n                <div className=\"grid grid-cols-3 gap-2.5 sm:gap-3 mb-5 w-full\">\n                  {focusOptions.map((opt, idx) => {\n                    const isSelected = selectedAreas.includes(opt.label);\n                    return (\n                      <Button\n                        key={opt.id}\n                        type=\"button\"\n                        variant=\"ghost\"\n                        onClick={() => toggleFocusArea(opt.label)}\n                        style={{\n                          animation: `scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) ${0.20 + idx * 0.04}s backwards`,\n                        }}\n                        className={cn(\n                          \"relative flex flex-col items-stretch justify-between p-3 sm:p-3.5 rounded-2xl text-left h-auto min-h-[76px] sm:min-h-[88px] transition-all duration-200 active:scale-[0.97] shadow-none\",\n                          !isSelected && [\n                            \"bg-zinc-100/90 text-zinc-800 border border-zinc-200/80 hover:bg-zinc-200/70\",\n                            \"dark:bg-[#1e1f21] dark:text-white/90 dark:border-white/[0.08] dark:hover:bg-[#25272a] dark:hover:border-white/15\",\n                          ],\n                          isSelected && [\n                            theme.bg,\n                            theme.panelFg,\n                            \"border-transparent shadow-md ring-2 ring-black/10 dark:ring-white/20\",\n                          ]\n                        )}\n                      >\n                        <span className=\"text-xs sm:text-[13px] font-medium leading-tight select-none\">\n                          {opt.label}\n                        </span>\n                        <div className=\"self-end mt-2\">\n                          <div\n                            className={cn(\n                              \"w-4 h-4 rounded-md border transition-all flex items-center justify-center\",\n                              isSelected\n                                ? cn(\"bg-white\", theme.text, \"border-white shadow-sm\")\n                                : \"border-zinc-300 dark:border-white/20 bg-transparent\"\n                            )}\n                          >\n                            {isSelected && <Check size={10} strokeWidth={3} />}\n                          </div>\n                        </div>\n                      </Button>\n                    );\n                  })}\n                </div>\n\n                {/* Counter */}\n                <div\n                  className=\"mb-5 text-center\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.44s backwards\",\n                  }}\n                >\n                  <p className=\"text-xs text-zinc-500 dark:text-zinc-400 font-medium\">\n                    {selectedAreas.length} of 2 selected\n                  </p>\n                </div>\n\n                {/* Continue button */}\n                <div\n                  className=\"w-full\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.50s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-primary\"\n                    color={color}\n                    onClick={() => setScenicStep(\"finances\")}\n                    className={scenicPrimaryButtonClasses}\n                  >\n                    Continue\n                  </Button>\n                </div>\n              </div>\n            )}\n\n            {/* STEP 7: FINANCES (Tell us about your finances) */}\n            {scenicStep === \"finances\" && (\n              <div className=\"flex flex-col items-center text-center\">\n                {/* Header with Brand */}\n                <div\n                  className=\"relative w-full flex items-center justify-center mb-5\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => setScenicStep(\"goals\")}\n                    className=\"absolute left-0 h-auto p-1 text-xs text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                    aria-label=\"Back to goals\"\n                  >\n                    <ArrowLeft size={16} />\n                  </Button>\n                  <div className=\"flex items-center gap-2\">\n                    {brandIcon || (\n                      <DocsUiIcon className=\"w-5 h-5 text-zinc-900 dark:text-white\" />\n                    )}\n                    <span className=\"font-semibold text-lg tracking-tight text-zinc-900 dark:text-white\">\n                      {brandName}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Title */}\n                <h2\n                  className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-2 leading-snug\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                  }}\n                >\n                  Tell us about your finances\n                </h2>\n\n                {/* Subtitle */}\n                <p\n                  className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 mb-6 max-w-[340px] leading-relaxed\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                  }}\n                >\n                  This helps us understand your monthly financial picture and personalize your insights.\n                </p>\n\n                {/* Form fields */}\n                <div className=\"w-full flex flex-col gap-3.5 mb-6 text-left\">\n                  {/* Row 1: Income & Expenses */}\n                  <div\n                    className=\"grid grid-cols-2 gap-3\"\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards\",\n                    }}\n                  >\n                    <div>\n                      <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                        Monthly income\n                      </label>\n                      <input\n                        type=\"text\"\n                        value={finances.monthlyIncome}\n                        onChange={(e) =>\n                          setFinances((prev) => ({\n                            ...prev,\n                            monthlyIncome: e.target.value,\n                          }))\n                        }\n                        className={cn(\n                          \"w-full h-11 px-3.5 rounded-xl text-sm font-normal outline-none\",\n                          \"bg-zinc-100 text-zinc-900 border border-zinc-200/80\",\n                          \"dark:bg-[#1e1f21] dark:text-white dark:border-white/[0.08]\",\n                          focusInputClasses\n                        )}\n                      />\n                    </div>\n                    <div>\n                      <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                        Monthly expenses\n                      </label>\n                      <input\n                        type=\"text\"\n                        value={finances.monthlyExpenses}\n                        onChange={(e) =>\n                          setFinances((prev) => ({\n                            ...prev,\n                            monthlyExpenses: e.target.value,\n                          }))\n                        }\n                        className={cn(\n                          \"w-full h-11 px-3.5 rounded-xl text-sm font-normal outline-none\",\n                          \"bg-zinc-100 text-zinc-900 border border-zinc-200/80\",\n                          \"dark:bg-[#1e1f21] dark:text-white dark:border-white/[0.08]\",\n                          focusInputClasses\n                        )}\n                      />\n                    </div>\n                  </div>\n\n                  {/* Row 2: Employment status & Household - Custom Modals */}\n                  <div\n                    className=\"grid grid-cols-2 gap-3\"\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.30s backwards\",\n                    }}\n                  >\n                    <div>\n                      <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                        Employment status\n                      </label>\n                      <Button\n                        type=\"button\"\n                        variant=\"ghost\"\n                        onClick={() =>\n                          setActiveDropdown({\n                            title: \"Employment Status\",\n                            field: \"employmentStatus\",\n                            options: [\n                              \"Full-time\",\n                              \"Part-time\",\n                              \"Self-employed\",\n                              \"Freelance\",\n                              \"Student\",\n                              \"Retired\",\n                            ],\n                          })\n                        }\n                        className={scenicDropdownButtonClasses(\n                          activeDropdown?.field === \"employmentStatus\"\n                        )}\n                      >\n                        <span className=\"truncate\">{finances.employmentStatus}</span>\n                        <ChevronDown size={15} className={cn(\"opacity-70 shrink-0 transition-colors\", theme.text)} />\n                      </Button>\n                    </div>\n                    <div>\n                      <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                        Household\n                      </label>\n                      <Button\n                        type=\"button\"\n                        variant=\"ghost\"\n                        onClick={() =>\n                          setActiveDropdown({\n                            title: \"Household\",\n                            field: \"household\",\n                            options: [\"Single\", \"Married\", \"Partnered\", \"Family\"],\n                          })\n                        }\n                        className={scenicDropdownButtonClasses(\n                          activeDropdown?.field === \"household\"\n                        )}\n                      >\n                        <span className=\"truncate\">{finances.household}</span>\n                        <ChevronDown size={15} className={cn(\"opacity-70 shrink-0 transition-colors\", theme.text)} />\n                      </Button>\n                    </div>\n                  </div>\n\n                  {/* Row 3: Dependents - Custom Modal */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.38s backwards\",\n                    }}\n                  >\n                    <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                      Dependents\n                    </label>\n                    <Button\n                      type=\"button\"\n                      variant=\"ghost\"\n                      onClick={() =>\n                        setActiveDropdown({\n                          title: \"Dependents\",\n                          field: \"dependents\",\n                          options: [\"0\", \"1\", \"2\", \"3+\"],\n                        })\n                      }\n                      className={scenicDropdownButtonClasses(\n                        activeDropdown?.field === \"dependents\"\n                      )}\n                    >\n                      <span className=\"truncate\">{finances.dependents}</span>\n                      <ChevronDown size={15} className={cn(\"opacity-70 shrink-0 transition-colors\", theme.text)} />\n                    </Button>\n                  </div>\n                </div>\n\n                {/* Continue button */}\n                <div\n                  className=\"w-full\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.46s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-primary\"\n                    color={color}\n                    onClick={() => setScenicStep(\"confidence\")}\n                    className={scenicPrimaryButtonClasses}\n                  >\n                    Continue\n                  </Button>\n                </div>\n              </div>\n            )}\n\n            {/* STEP 8: CONFIDENCE (How financially confident do you feel right now?) */}\n            {scenicStep === \"confidence\" && (\n              <div className=\"flex flex-col items-center text-center\">\n                {/* Header with Brand */}\n                <div\n                  className=\"relative w-full flex items-center justify-center mb-5\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => setScenicStep(\"finances\")}\n                    className=\"absolute left-0 h-auto p-1 text-xs text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                    aria-label=\"Back to finances\"\n                  >\n                    <ArrowLeft size={16} />\n                  </Button>\n                  <div className=\"flex items-center gap-2\">\n                    {brandIcon || (\n                      <DocsUiIcon className=\"w-5 h-5 text-zinc-900 dark:text-white\" />\n                    )}\n                    <span className=\"font-semibold text-lg tracking-tight text-zinc-900 dark:text-white\">\n                      {brandName}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Title */}\n                <h2\n                  className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-2 leading-snug\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                  }}\n                >\n                  How financially confident do you feel right now?\n                </h2>\n\n                {/* Subtitle */}\n                <p\n                  className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 mb-6 max-w-[340px] leading-relaxed\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                  }}\n                >\n                  Your answers help us understand your financial habits and personalize your insights.\n                </p>\n\n                {/* 3 Rating Questions */}\n                <div className=\"w-full flex flex-col gap-4 mb-6 text-left\">\n                  {/* Question 1 */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards\",\n                    }}\n                  >\n                    <p className=\"text-xs sm:text-[13px] font-medium text-zinc-700 dark:text-zinc-300 mb-2\">\n                      I could cover an unexpected $1,000 expense.\n                    </p>\n                    <div className=\"grid grid-cols-5 gap-2\">\n                      {[1, 2, 3, 4, 5].map((val) => {\n                        const isSelected =\n                          confidenceRatings.expenseCover === val;\n                        return (\n                          <Button\n                            key={val}\n                            type=\"button\"\n                            variant=\"ghost\"\n                            onClick={() =>\n                              setConfidenceRatings((prev) => ({\n                                ...prev,\n                                expenseCover: val,\n                              }))\n                            }\n                            className={cn(\n                              \"h-11 px-0 rounded-xl text-xs sm:text-sm font-medium transition-all duration-150 active:scale-95 flex items-center justify-center shadow-none\",\n                              focusButtonClasses,\n                              !isSelected && [\n                                \"bg-zinc-100 text-zinc-700 hover:bg-zinc-200/80 border border-zinc-200/80\",\n                                \"dark:bg-[#1e1f21] dark:text-zinc-300 dark:border-white/[0.08] dark:hover:bg-[#282a2e]\",\n                              ],\n                              isSelected && [\n                                theme.bg,\n                                theme.panelFg,\n                                \"border-transparent shadow-sm ring-1 ring-black/10 dark:ring-white/20\",\n                              ]\n                            )}\n                          >\n                            {val}\n                          </Button>\n                        );\n                      })}\n                    </div>\n                  </div>\n\n                  {/* Question 2 */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.30s backwards\",\n                    }}\n                  >\n                    <p className=\"text-xs sm:text-[13px] font-medium text-zinc-700 dark:text-zinc-300 mb-2\">\n                      I feel in control of my monthly spending.\n                    </p>\n                    <div className=\"grid grid-cols-5 gap-2\">\n                      {[1, 2, 3, 4, 5].map((val) => {\n                        const isSelected =\n                          confidenceRatings.monthlyControl === val;\n                        return (\n                          <Button\n                            key={val}\n                            type=\"button\"\n                            variant=\"ghost\"\n                            onClick={() =>\n                              setConfidenceRatings((prev) => ({\n                                ...prev,\n                                monthlyControl: val,\n                              }))\n                            }\n                            className={cn(\n                              \"h-11 px-0 rounded-xl text-xs sm:text-sm font-medium transition-all duration-150 active:scale-95 flex items-center justify-center shadow-none\",\n                              focusButtonClasses,\n                              !isSelected && [\n                                \"bg-zinc-100 text-zinc-700 hover:bg-zinc-200/80 border border-zinc-200/80\",\n                                \"dark:bg-[#1e1f21] dark:text-zinc-300 dark:border-white/[0.08] dark:hover:bg-[#282a2e]\",\n                              ],\n                              isSelected && [\n                                theme.bg,\n                                theme.panelFg,\n                                \"border-transparent shadow-sm ring-1 ring-black/10 dark:ring-white/20\",\n                              ]\n                            )}\n                          >\n                            {val}\n                          </Button>\n                        );\n                      })}\n                    </div>\n                  </div>\n\n                  {/* Question 3 */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.38s backwards\",\n                    }}\n                  >\n                    <p className=\"text-xs sm:text-[13px] font-medium text-zinc-700 dark:text-zinc-300 mb-2\">\n                      I have a clear plan for my financial future.\n                    </p>\n                    <div className=\"grid grid-cols-5 gap-2\">\n                      {[1, 2, 3, 4, 5].map((val) => {\n                        const isSelected =\n                          confidenceRatings.futurePlan === val;\n                        return (\n                          <Button\n                            key={val}\n                            type=\"button\"\n                            variant=\"ghost\"\n                            onClick={() =>\n                              setConfidenceRatings((prev) => ({\n                                ...prev,\n                                futurePlan: val,\n                              }))\n                            }\n                            className={cn(\n                              \"h-11 px-0 rounded-xl text-xs sm:text-sm font-medium transition-all duration-150 active:scale-95 flex items-center justify-center shadow-none\",\n                              focusButtonClasses,\n                              !isSelected && [\n                                \"bg-zinc-100 text-zinc-700 hover:bg-zinc-200/80 border border-zinc-200/80\",\n                                \"dark:bg-[#1e1f21] dark:text-zinc-300 dark:border-white/[0.08] dark:hover:bg-[#282a2e]\",\n                              ],\n                              isSelected && [\n                                theme.bg,\n                                theme.panelFg,\n                                \"border-transparent shadow-sm ring-1 ring-black/10 dark:ring-white/20\",\n                              ]\n                            )}\n                          >\n                            {val}\n                          </Button>\n                        );\n                      })}\n                    </div>\n                  </div>\n                </div>\n\n                {/* Continue button */}\n                <div\n                  className=\"w-full\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.46s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-primary\"\n                    color={color}\n                    onClick={() => setScenicStep(\"emergency-fund\")}\n                    className={scenicPrimaryButtonClasses}\n                  >\n                    Continue\n                  </Button>\n                </div>\n              </div>\n            )}\n\n            {/* STEP 9: EMERGENCY FUND */}\n            {scenicStep === \"emergency-fund\" && (\n              <div className=\"flex flex-col items-center text-center\">\n                {/* Header with Brand */}\n                <div\n                  className=\"relative w-full flex items-center justify-center mb-5\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => setScenicStep(\"confidence\")}\n                    className=\"absolute left-0 h-auto p-1 text-xs text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                    aria-label=\"Back to confidence\"\n                  >\n                    <ArrowLeft size={16} />\n                  </Button>\n                  <div className=\"flex items-center gap-2\">\n                    {brandIcon || (\n                      <DocsUiIcon className=\"w-5 h-5 text-zinc-900 dark:text-white\" />\n                    )}\n                    <span className=\"font-semibold text-lg tracking-tight text-zinc-900 dark:text-white\">\n                      {brandName}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Title */}\n                <h2\n                  className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-2 leading-snug\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                  }}\n                >\n                  Do you have an emergency fund?\n                </h2>\n\n                {/* Subtitle */}\n                <p\n                  className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 mb-6 max-w-[340px] leading-relaxed\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                  }}\n                >\n                  This helps us understand how prepared you are for unexpected expenses.\n                </p>\n\n                {/* Toggle Pills: Yes I have one / Not Yet */}\n                <div\n                  className=\"grid grid-cols-2 gap-2.5 w-full mb-5\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    onClick={() =>\n                      setEmergencyFund((prev) => ({ ...prev, hasFund: true }))\n                    }\n                    className={cn(\n                      \"h-12 rounded-2xl px-4 flex items-center justify-between text-xs sm:text-sm font-medium transition-all duration-200 active:scale-[0.98] shadow-none\",\n                      focusButtonClasses,\n                      emergencyFund.hasFund\n                        ? [\n                            theme.bg,\n                            theme.panelFg,\n                            \"border-transparent shadow-sm ring-1 ring-black/10 dark:ring-white/20\",\n                          ]\n                        : [\n                            \"bg-zinc-100 text-zinc-700 border border-zinc-200/80 hover:bg-zinc-200/70\",\n                            \"dark:bg-[#1e1f21] dark:text-zinc-400 dark:border-white/[0.08] dark:hover:bg-[#25272a]\",\n                          ]\n                    )}\n                  >\n                    <span>Yes I have one</span>\n                    <div\n                      className={cn(\n                        \"w-4 h-4 rounded-md flex items-center justify-center transition-all\",\n                        emergencyFund.hasFund\n                          ? cn(\"bg-white\", theme.text, \"border border-white shadow-sm\")\n                          : \"border border-zinc-300 dark:border-white/20 bg-transparent\"\n                      )}\n                    >\n                      {emergencyFund.hasFund && (\n                        <Check size={10} strokeWidth={3} />\n                      )}\n                    </div>\n                  </Button>\n\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    onClick={() =>\n                      setEmergencyFund((prev) => ({ ...prev, hasFund: false }))\n                    }\n                    className={cn(\n                      \"h-12 rounded-2xl px-4 flex items-center justify-between text-xs sm:text-sm font-medium transition-all duration-200 active:scale-[0.98] shadow-none\",\n                      focusButtonClasses,\n                      !emergencyFund.hasFund\n                        ? [\n                            theme.bg,\n                            theme.panelFg,\n                            \"border-transparent shadow-sm ring-1 ring-black/10 dark:ring-white/20\",\n                          ]\n                        : [\n                            \"bg-zinc-100 text-zinc-700 border border-zinc-200/80 hover:bg-zinc-200/70\",\n                            \"dark:bg-[#1e1f21] dark:text-zinc-400 dark:border-white/[0.08] dark:hover:bg-[#25272a]\",\n                          ]\n                    )}\n                  >\n                    <span>Not Yet</span>\n                    <div\n                      className={cn(\n                        \"w-4 h-4 rounded-md flex items-center justify-center transition-all\",\n                        !emergencyFund.hasFund\n                          ? cn(\"bg-white\", theme.text, \"border border-white shadow-sm\")\n                          : \"border border-zinc-300 dark:border-white/20 bg-transparent\"\n                      )}\n                    >\n                      {!emergencyFund.hasFund && (\n                        <Check size={10} strokeWidth={3} />\n                      )}\n                    </div>\n                  </Button>\n                </div>\n\n                {/* Amount inputs */}\n                <div className=\"w-full flex flex-col gap-3.5 mb-6 text-left\">\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.30s backwards\",\n                    }}\n                  >\n                    <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                      Current amount\n                    </label>\n                    <input\n                      type=\"text\"\n                      value={emergencyFund.currentAmount}\n                      onChange={(e) =>\n                        setEmergencyFund((prev) => ({\n                          ...prev,\n                          currentAmount: e.target.value,\n                        }))\n                      }\n                      className={cn(\n                        \"w-full h-11 px-3.5 rounded-xl text-sm font-normal outline-none transition-all duration-200\",\n                        \"bg-zinc-100 text-zinc-900 border border-zinc-200/80 hover:border-zinc-300\",\n                        \"dark:bg-[#1e1f21] dark:text-white dark:border-white/[0.08] dark:hover:border-white/20\",\n                        focusInputClasses\n                      )}\n                    />\n                  </div>\n\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.38s backwards\",\n                    }}\n                  >\n                    <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                      Target amount\n                    </label>\n                    <input\n                      type=\"text\"\n                      value={emergencyFund.targetAmount}\n                      onChange={(e) =>\n                        setEmergencyFund((prev) => ({\n                          ...prev,\n                          targetAmount: e.target.value,\n                        }))\n                      }\n                      className={cn(\n                        \"w-full h-11 px-3.5 rounded-xl text-sm font-normal outline-none transition-all duration-200\",\n                        \"bg-zinc-100 text-zinc-900 border border-zinc-200/80 hover:border-zinc-300\",\n                        \"dark:bg-[#1e1f21] dark:text-white dark:border-white/[0.08] dark:hover:border-white/20\",\n                        focusInputClasses\n                      )}\n                    />\n                  </div>\n                </div>\n\n                {/* Continue button */}\n                <div\n                  className=\"w-full\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.46s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-primary\"\n                    color={color}\n                    onClick={() => setScenicStep(\"first-goal\")}\n                    className={scenicPrimaryButtonClasses}\n                  >\n                    Continue\n                  </Button>\n                </div>\n              </div>\n            )}\n\n            {/* STEP 10: FIRST GOAL */}\n            {scenicStep === \"first-goal\" && (\n              <div className=\"flex flex-col items-center text-center\">\n                {/* Header with Brand */}\n                <div\n                  className=\"relative w-full flex items-center justify-center mb-5\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => setScenicStep(\"emergency-fund\")}\n                    className=\"absolute left-0 h-auto p-1 text-xs text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                    aria-label=\"Back to emergency fund\"\n                  >\n                    <ArrowLeft size={16} />\n                  </Button>\n                  <div className=\"flex items-center gap-2\">\n                    {brandIcon || (\n                      <DocsUiIcon className=\"w-5 h-5 text-zinc-900 dark:text-white\" />\n                    )}\n                    <span className=\"font-semibold text-lg tracking-tight text-zinc-900 dark:text-white\">\n                      {brandName}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Title */}\n                <h2\n                  className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-2 leading-snug\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                  }}\n                >\n                  Let's set your first goal\n                </h2>\n\n                {/* Subtitle */}\n                <p\n                  className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 mb-6 max-w-[340px] leading-relaxed\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                  }}\n                >\n                  We'll turn one of your priorities into a simple, achievable plan.\n                </p>\n\n                {/* Goal Form Fields */}\n                <div className=\"w-full flex flex-col gap-3 mb-6 text-left\">\n                  {/* Goal Dropdown - Custom Modal */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards\",\n                    }}\n                  >\n                    <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                      Goal\n                    </label>\n                    <Button\n                      type=\"button\"\n                      variant=\"ghost\"\n                      onClick={() =>\n                        setActiveDropdown({\n                          title: \"Goal\",\n                          field: \"goalType\",\n                          options: [\n                            \"Grow my net worth\",\n                            \"Pay off credit card debt\",\n                            \"Save for emergency\",\n                            \"Save for down payment\",\n                          ],\n                        })\n                      }\n                      className={scenicDropdownButtonClasses(\n                        activeDropdown?.field === \"goalType\"\n                      )}\n                    >\n                      <span className=\"truncate\">{firstGoal.goalType}</span>\n                      <ChevronDown size={15} className={cn(\"opacity-70 shrink-0 transition-colors\", theme.text)} />\n                    </Button>\n                  </div>\n\n                  {/* Current net worth */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.28s backwards\",\n                    }}\n                  >\n                    <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                      Current net worth\n                    </label>\n                    <input\n                      type=\"text\"\n                      value={firstGoal.currentNetWorth}\n                      onChange={(e) =>\n                        setFirstGoal((prev) => ({\n                          ...prev,\n                          currentNetWorth: e.target.value,\n                        }))\n                      }\n                      className={cn(\n                        \"w-full h-11 px-3.5 rounded-xl text-sm font-normal outline-none transition-all duration-200\",\n                        \"bg-zinc-100 text-zinc-900 border border-zinc-200/80 hover:border-zinc-300\",\n                        \"dark:bg-[#1e1f21] dark:text-white dark:border-white/[0.08] dark:hover:border-white/20\",\n                        focusInputClasses\n                      )}\n                    />\n                  </div>\n\n                  {/* Target net worth */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.34s backwards\",\n                    }}\n                  >\n                    <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                      Target net worth\n                    </label>\n                    <input\n                      type=\"text\"\n                      value={firstGoal.targetNetWorth}\n                      onChange={(e) =>\n                        setFirstGoal((prev) => ({\n                          ...prev,\n                          targetNetWorth: e.target.value,\n                        }))\n                      }\n                      className={cn(\n                        \"w-full h-11 px-3.5 rounded-xl text-sm font-normal outline-none transition-all duration-200\",\n                        \"bg-zinc-100 text-zinc-900 border border-zinc-200/80 hover:border-zinc-300\",\n                        \"dark:bg-[#1e1f21] dark:text-white dark:border-white/[0.08] dark:hover:border-white/20\",\n                        focusInputClasses\n                      )}\n                    />\n                  </div>\n\n                  {/* Target date with custom Date Picker modal trigger */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.40s backwards\",\n                    }}\n                  >\n                    <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                      Target date\n                    </label>\n                    <Button\n                      type=\"button\"\n                      variant=\"ghost\"\n                      onClick={openDatePicker}\n                      className={scenicDropdownButtonClasses(isDatePickerOpen)}\n                    >\n                      <span className=\"flex items-center gap-2 truncate\">\n                        <span>{firstGoal.targetDate}</span>\n                        <Calendar size={14} className={cn(\"shrink-0 transition-colors\", theme.text)} />\n                      </span>\n                      <ChevronDown size={15} className={cn(\"opacity-70 shrink-0 transition-colors\", theme.text)} />\n                    </Button>\n                  </div>\n\n                  {/* Monthly contribution */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.46s backwards\",\n                    }}\n                  >\n                    <label className=\"block text-xs font-medium text-zinc-600 dark:text-zinc-400 mb-1.5\">\n                      Monthly contribution\n                    </label>\n                    <input\n                      type=\"text\"\n                      value={firstGoal.monthlyContribution}\n                      onChange={(e) =>\n                        setFirstGoal((prev) => ({\n                          ...prev,\n                          monthlyContribution: e.target.value,\n                        }))\n                      }\n                      className={cn(\n                        \"w-full h-11 px-3.5 rounded-xl text-sm font-normal outline-none transition-all duration-200\",\n                        \"bg-zinc-100 text-zinc-900 border border-zinc-200/80 hover:border-zinc-300\",\n                        \"dark:bg-[#1e1f21] dark:text-white dark:border-white/[0.08] dark:hover:border-white/20\",\n                        focusInputClasses\n                      )}\n                    />\n                  </div>\n                </div>\n\n                {/* Create Goal Button */}\n                <div\n                  className=\"w-full\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.52s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-primary\"\n                    color={color}\n                    onClick={() => setScenicStep(\"summary\")}\n                    className={scenicPrimaryButtonClasses}\n                  >\n                    Create Goal\n                  </Button>\n                </div>\n              </div>\n            )}\n\n            {/* STEP 11: SUMMARY (Your financial picture is ready) */}\n            {scenicStep === \"summary\" && (\n              <div className=\"flex flex-col items-center text-center\">\n                {/* Header with Brand */}\n                <div\n                  className=\"relative w-full flex items-center justify-center mb-5\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    onClick={() => setScenicStep(\"first-goal\")}\n                    className=\"absolute left-0 h-auto p-1 text-xs text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white hover:bg-transparent dark:hover:bg-transparent shadow-none\"\n                    aria-label=\"Back to first goal\"\n                  >\n                    <ArrowLeft size={16} />\n                  </Button>\n                  <div className=\"flex items-center gap-2\">\n                    {brandIcon || (\n                      <DocsUiIcon className=\"w-5 h-5 text-zinc-900 dark:text-white\" />\n                    )}\n                    <span className=\"font-semibold text-lg tracking-tight text-zinc-900 dark:text-white\">\n                      {brandName}\n                    </span>\n                  </div>\n                </div>\n\n                {/* Title */}\n                <h2\n                  className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-2 leading-snug\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                  }}\n                >\n                  Your financial picture is ready\n                </h2>\n\n                {/* Subtitle */}\n                <p\n                  className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 mb-6 max-w-[340px] leading-relaxed\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                  }}\n                >\n                  Here's your starting point and where you can make the biggest impact.\n                </p>\n\n                {/* 4 Metric Cards (2x2 grid) matching Image 5 */}\n                <div className=\"grid grid-cols-2 gap-3 mb-6 w-full text-left\">\n                  {/* Card 1: Top Strength */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards\",\n                    }}\n                    className={cn(\n                      \"p-4 rounded-2xl flex flex-col justify-between min-h-[96px] transition-all\",\n                      \"bg-zinc-100/90 text-zinc-900 border border-zinc-200/80 shadow-sm\",\n                      \"dark:bg-[#1a1b1e] dark:text-white dark:border-white/[0.08]\"\n                    )}\n                  >\n                    <span className=\"text-xs text-zinc-500 dark:text-zinc-400 font-medium\">\n                      Top Strength\n                    </span>\n                    <span className=\"text-2xl sm:text-3xl font-bold tracking-tight text-zinc-900 dark:text-white my-1\">\n                      72\n                    </span>\n                    <span className=\"text-[11px] text-zinc-600 dark:text-zinc-400 font-medium\">\n                      Income stability\n                    </span>\n                  </div>\n\n                  {/* Card 2: Priority Area */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.28s backwards\",\n                    }}\n                    className={cn(\n                      \"p-4 rounded-2xl flex flex-col justify-between min-h-[96px] transition-all\",\n                      \"bg-zinc-100/90 text-zinc-900 border border-zinc-200/80 shadow-sm\",\n                      \"dark:bg-[#1a1b1e] dark:text-white dark:border-white/[0.08]\"\n                    )}\n                  >\n                    <span className=\"text-xs text-zinc-500 dark:text-zinc-400 font-medium\">\n                      Priority Area\n                    </span>\n                    <span className=\"text-2xl sm:text-3xl font-bold tracking-tight text-zinc-900 dark:text-white my-1\">\n                      45\n                    </span>\n                    <span className=\"text-[11px] text-zinc-600 dark:text-zinc-400 font-medium\">\n                      Debt management\n                    </span>\n                  </div>\n\n                  {/* Card 3: Emergency Fund */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.34s backwards\",\n                    }}\n                    className={cn(\n                      \"p-4 rounded-2xl flex flex-col justify-between min-h-[96px] transition-all\",\n                      \"bg-zinc-100/90 text-zinc-900 border border-zinc-200/80 shadow-sm\",\n                      \"dark:bg-[#1a1b1e] dark:text-white dark:border-white/[0.08]\"\n                    )}\n                  >\n                    <span className=\"text-xs text-zinc-500 dark:text-zinc-400 font-medium\">\n                      Emergency Fund\n                    </span>\n                    <span className=\"text-xl sm:text-2xl font-bold tracking-tight text-zinc-900 dark:text-white my-1\">\n                      $5K of $9K\n                    </span>\n                    <span className=\"text-[11px] text-zinc-600 dark:text-zinc-400 font-medium\">\n                      56% of target reached\n                    </span>\n                  </div>\n\n                  {/* Card 4: Primary goal */}\n                  <div\n                    style={{\n                      animation:\n                        \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.40s backwards\",\n                    }}\n                    className={cn(\n                      \"p-4 rounded-2xl flex flex-col justify-between min-h-[96px] transition-all\",\n                      \"bg-zinc-100/90 text-zinc-900 border border-zinc-200/80 shadow-sm\",\n                      \"dark:bg-[#1a1b1e] dark:text-white dark:border-white/[0.08]\"\n                    )}\n                  >\n                    <span className=\"text-xs text-zinc-500 dark:text-zinc-400 font-medium\">\n                      Primary goal\n                    </span>\n                    <span className=\"text-xl sm:text-2xl font-bold tracking-tight text-zinc-900 dark:text-white my-1\">\n                      $30K\n                    </span>\n                    <span className=\"text-[11px] text-zinc-600 dark:text-zinc-400 font-medium\">\n                      Net worth\n                    </span>\n                  </div>\n                </div>\n\n                {/* Go to Dashboard button */}\n                <div\n                  className=\"w-full\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.48s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-primary\"\n                    color={color}\n                    onClick={() => {\n                      if (onSubmit) {\n                        onSubmit(formData);\n                      }\n                      setScenicStep(\"completed\");\n                    }}\n                    className={scenicPrimaryButtonClasses}\n                  >\n                    Go to Dashboard\n                  </Button>\n                </div>\n              </div>\n            )}\n\n            {/* STEP 12: COMPLETED STATE */}\n            {scenicStep === \"completed\" && (\n              <div className=\"flex flex-col items-center text-center py-4\">\n                {/* Brand */}\n                <div\n                  className=\"flex items-center gap-2 mb-6\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards\",\n                  }}\n                >\n                  {brandIcon || (\n                    <DocsUiIcon className=\"w-5 h-5 text-zinc-900 dark:text-white\" />\n                  )}\n                  <span className=\"font-semibold text-lg tracking-tight text-zinc-900 dark:text-white\">\n                    {brandName}\n                  </span>\n                </div>\n\n                {/* Success check badge */}\n                <div\n                  className=\"w-14 h-14 rounded-full bg-emerald-500/10 border border-emerald-500/20 text-emerald-600 dark:text-emerald-400 flex items-center justify-center mb-5\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards\",\n                  }}\n                >\n                  <Check size={26} strokeWidth={2.6} />\n                </div>\n\n                {/* Title */}\n                <h2\n                  className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-2 leading-snug\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards\",\n                  }}\n                >\n                  You're all set!\n                </h2>\n\n                {/* Subtitle */}\n                <p\n                  className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 mb-7 max-w-[320px] leading-relaxed\"\n                  style={{\n                    animation:\n                      \"scenic-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards\",\n                  }}\n                >\n                  Your profile and focus areas have been customized. Welcome aboard!\n                </p>\n\n                {/* Restart demo button */}\n                <div\n                  className=\"w-full flex flex-col gap-2.5\"\n                  style={{\n                    animation:\n                      \"scenic-stagger-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.30s backwards\",\n                  }}\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-primary\"\n                    color={color}\n                    onClick={() => {\n                      setScenicStep(\"welcome\");\n                      setOtp([\"\", \"\", \"\", \"\", \"\", \"\"]);\n                    }}\n                    className={scenicPrimaryButtonClasses}\n                  >\n                    Restart Demo Flow\n                  </Button>\n                </div>\n              </div>\n            )}\n          </div>\n        </div>\n\n        {/* CUSTOM DROPDOWN MODAL */}\n        {activeDropdown && (\n          <div\n            className=\"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm flex items-center justify-center p-4 animate-in fade-in duration-200\"\n            onClick={() => setActiveDropdown(null)}\n          >\n            <div\n              className=\"relative w-full max-w-[360px] bg-white dark:bg-[#18191b] border border-zinc-200/90 dark:border-white/10 rounded-[24px] p-5 shadow-2xl flex flex-col gap-3 text-left\"\n              style={{\n                animation:\n                  \"scenic-modal-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) backwards\",\n              }}\n              onClick={(e) => e.stopPropagation()}\n            >\n              <div className=\"flex items-center justify-between pb-3 border-b border-zinc-100 dark:border-white/[0.08]\">\n                <div>\n                  <h3 className=\"font-semibold text-[15px] text-zinc-900 dark:text-white\">\n                    {activeDropdown.title}\n                  </h3>\n                  <p className=\"text-xs text-zinc-500 dark:text-zinc-400 mt-0.5\">\n                    Select one option\n                  </p>\n                </div>\n                <Button\n                  type=\"button\"\n                  variant=\"ghost\"\n                  size=\"sm\"\n                  onClick={() => setActiveDropdown(null)}\n                  className=\"w-8 h-8 p-0 rounded-full flex items-center justify-center text-zinc-400 hover:text-zinc-900 dark:hover:text-white hover:bg-zinc-100 dark:hover:bg-white/10 transition-colors shadow-none\"\n                >\n                  <X size={16} />\n                </Button>\n              </div>\n\n              <div className=\"max-h-[280px] overflow-y-auto space-y-1.5 py-1 pr-1\">\n                {activeDropdown.options.map((opt) => {\n                  const isSelected =\n                    activeDropdown.field === \"goalType\"\n                      ? firstGoal.goalType === opt\n                      : finances[activeDropdown.field] === opt;\n                  return (\n                    <Button\n                      key={opt}\n                      type=\"button\"\n                      variant=\"ghost\"\n                      onClick={() => {\n                        if (activeDropdown.field === \"goalType\") {\n                          setFirstGoal((prev) => ({ ...prev, goalType: opt }));\n                        } else {\n                          setFinances((prev) => ({\n                            ...prev,\n                            [activeDropdown.field]: opt,\n                          }));\n                        }\n                        setActiveDropdown(null);\n                      }}\n                      className={cn(\n                        \"w-full h-auto px-4 py-3 rounded-2xl text-xs sm:text-sm font-medium flex items-center justify-between transition-all duration-150 text-left shadow-none\",\n                        focusButtonClasses,\n                        isSelected\n                          ? cn(theme.bg, theme.panelFg, \"shadow-sm\")\n                          : \"bg-zinc-100/80 text-zinc-700 hover:bg-zinc-200/90 dark:bg-white/[0.05] dark:text-zinc-300 dark:hover:bg-white/10\"\n                      )}\n                    >\n                      <span>{opt}</span>\n                      {isSelected && <Check size={16} strokeWidth={2.5} className={theme.panelFg} />}\n                    </Button>\n                  );\n                })}\n              </div>\n            </div>\n          </div>\n        )}\n\n        {/* CUSTOM DATE PICKER MODAL */}\n        {isDatePickerOpen && (\n          <div\n            className=\"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm flex items-center justify-center p-4 animate-in fade-in duration-200\"\n            onClick={() => setIsDatePickerOpen(false)}\n          >\n            <div\n              className=\"relative w-full max-w-[360px] bg-white dark:bg-[#18191b] border border-zinc-200/90 dark:border-white/10 rounded-[24px] p-5 shadow-2xl flex flex-col gap-4 text-left\"\n              style={{\n                animation:\n                  \"scenic-modal-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) backwards\",\n              }}\n              onClick={(e) => e.stopPropagation()}\n            >\n              {/* Header */}\n              <div className=\"flex items-center justify-between pb-3 border-b border-zinc-100 dark:border-white/[0.08]\">\n                <div>\n                  <h3 className=\"font-semibold text-[15px] text-zinc-900 dark:text-white\">\n                    Select Target Date\n                  </h3>\n                  <p className=\"text-xs text-zinc-500 dark:text-zinc-400 mt-0.5\">\n                    Month and year for your goal\n                  </p>\n                </div>\n                <Button\n                  type=\"button\"\n                  variant=\"ghost\"\n                  size=\"sm\"\n                  onClick={() => setIsDatePickerOpen(false)}\n                  className=\"w-8 h-8 p-0 rounded-full flex items-center justify-center text-zinc-400 hover:text-zinc-900 dark:hover:text-white hover:bg-zinc-100 dark:hover:bg-white/10 transition-colors shadow-none\"\n                >\n                  <X size={16} />\n                </Button>\n              </div>\n\n              {/* Year Navigation */}\n              <div className=\"flex items-center justify-between px-2 py-1 bg-zinc-100/80 dark:bg-white/[0.05] rounded-xl\">\n                <Button\n                  type=\"button\"\n                  variant=\"ghost\"\n                  size=\"sm\"\n                  onClick={() => setDatePickerYear((y) => y - 1)}\n                  className=\"w-8 h-8 p-0 rounded-lg flex items-center justify-center text-zinc-600 hover:text-zinc-900 dark:text-zinc-300 dark:hover:text-white hover:bg-zinc-200 dark:hover:bg-white/10 transition-colors shadow-none\"\n                  aria-label=\"Previous year\"\n                >\n                  <ChevronLeft size={16} />\n                </Button>\n                <span className=\"font-semibold text-sm text-zinc-900 dark:text-white\">\n                  {datePickerYear}\n                </span>\n                <Button\n                  type=\"button\"\n                  variant=\"ghost\"\n                  size=\"sm\"\n                  onClick={() => setDatePickerYear((y) => y + 1)}\n                  className=\"w-8 h-8 p-0 rounded-lg flex items-center justify-center text-zinc-600 hover:text-zinc-900 dark:text-zinc-300 dark:hover:text-white hover:bg-zinc-200 dark:hover:bg-white/10 transition-colors shadow-none\"\n                  aria-label=\"Next year\"\n                >\n                  <ChevronRight size={16} />\n                </Button>\n              </div>\n\n              {/* 12 Months Grid */}\n              <div className=\"grid grid-cols-3 gap-2\">\n                {[\n                  \"January\",\n                  \"February\",\n                  \"March\",\n                  \"April\",\n                  \"May\",\n                  \"June\",\n                  \"July\",\n                  \"August\",\n                  \"September\",\n                  \"October\",\n                  \"November\",\n                  \"December\",\n                ].map((m) => {\n                  const isSelected = datePickerMonth === m;\n                  return (\n                    <Button\n                      key={m}\n                      type=\"button\"\n                      variant=\"ghost\"\n                      size=\"sm\"\n                      onClick={() => setDatePickerMonth(m)}\n                      className={cn(\n                        \"h-10 px-0 rounded-xl text-xs font-medium transition-all duration-150 flex items-center justify-center shadow-none\",\n                        focusButtonClasses,\n                        isSelected\n                          ? cn(theme.bg, theme.panelFg, \"font-semibold shadow-sm\")\n                          : \"bg-zinc-100/80 text-zinc-700 hover:bg-zinc-200/90 dark:bg-white/[0.05] dark:text-zinc-300 dark:hover:bg-white/10\"\n                      )}\n                    >\n                      {m.slice(0, 3)}\n                    </Button>\n                  );\n                })}\n              </div>\n\n              {/* Actions Footer */}\n              <div className=\"flex items-center gap-2 pt-2 border-t border-zinc-100 dark:border-white/[0.08]\">\n                <Button\n                  type=\"button\"\n                  variant=\"scenic-secondary\"\n                  color={color}\n                  onClick={() => setIsDatePickerOpen(false)}\n                  className={cn(\n                    \"flex-1 h-10 rounded-xl text-xs sm:text-sm font-medium bg-zinc-100 text-zinc-700 hover:bg-zinc-200/80 dark:bg-white/[0.05] dark:text-zinc-300 dark:hover:bg-white/10 transition-colors\",\n                    focusButtonClasses\n                  )}\n                >\n                  Cancel\n                </Button>\n                <Button\n                  type=\"button\"\n                  variant=\"scenic-primary\"\n                  color={color}\n                  onClick={() => {\n                    setFirstGoal((prev) => ({\n                      ...prev,\n                      targetDate: `${datePickerMonth} ${datePickerYear}`,\n                    }));\n                    setIsDatePickerOpen(false);\n                  }}\n                  className={cn(\n                    \"flex-1 h-10 rounded-xl text-xs sm:text-sm font-semibold transition-colors shadow-sm\",\n                    scenicPrimaryButtonClasses\n                  )}\n                >\n                  Apply Date\n                </Button>\n              </div>\n            </div>\n          </div>\n        )}\n      </div>\n    );\n  }\n\n  if (variant === \"liquid-glass\") {\n    const liquidBg =\n      bgImage ||\n      \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_1600,c_limit/v1790146209/photo-1470071459604-3b5ec3a7fe05-1790146212205.jpg\";\n\n    const formattedRadius = formatRadius(rounded);\n    const dynamicRadiusStyle: React.CSSProperties =\n      formattedRadius !== undefined\n        ? { borderRadius: formattedRadius }\n        : typeof rounded === \"string\" && !formatRadius(rounded)\n          ? {}\n          : { borderRadius: \"var(--radius-3xl, 1.5rem)\" };\n\n    return (\n      <div\n        className={cn(\n          \"relative w-full min-h-[600px] sm:min-h-[720px] flex items-center justify-center overflow-hidden rounded-3xl p-4 sm:p-6 md:p-8 isolate [contain:paint] [transform:translateZ(0)]\",\n          className,\n        )}\n        style={{\n          ...themeStyle,\n          ...customStyle,\n        }}\n      >\n        <LiquidGlassSvgFilter id=\"glass-blur-register\" bgImage={liquidBg} />\n\n        {/* Full-bleed background image covering the entire container */}\n        <img\n          src={liquidBg}\n          alt=\"Liquid glass backdrop\"\n          className=\"absolute inset-0 w-full h-full object-cover select-none pointer-events-none\"\n        />\n\n        {/* Floating Liquid Glass Card */}\n        <div\n          className={cn(\n            \"relative z-10 w-full max-w-[460px] p-6 sm:p-8 md:p-10 isolate [contain:paint] [transform:translateZ(0)] text-white transition-all duration-300 overflow-hidden\",\n            typeof rounded === \"string\" && !formatRadius(rounded) ? rounded : \"\",\n            \"shadow-[0_25px_60px_rgba(0,0,0,0.5)] [--foreground:#ffffff] [--muted-foreground:rgba(255,255,255,0.75)] [--color-foreground:#ffffff] [--color-muted-foreground:rgba(255,255,255,0.75)] [--border:rgba(255,255,255,0.2)] [--background:rgba(255,255,255,0.12)] [--card:rgba(255,255,255,0.12)]\",\n          )}\n          style={dynamicRadiusStyle}\n        >\n          <LiquidGlassBackground\n            radius={formattedRadius ?? \"var(--radius-3xl, 1.5rem)\"}\n            bgImage={liquidBg}\n            filterId=\"glass-blur-register\"\n            contrastOverlayClassName=\"bg-black/30 dark:bg-black/45 backdrop-blur-[3px]\"\n          />\n\n          <div className=\"relative z-10 w-full\">{FormContent}</div>\n        </div>\n      </div>\n    );\n  }\n\n  if (variant === \"glass\") {\n    const glassBg =\n      bgImage ||\n      \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_1600,c_limit/v1790146210/photo-1506744038136-46273834b3fb-1790146212208.jpg\";\n\n    return (\n      <div\n        className=\"relative w-full min-h-[600px] sm:min-h-[700px] flex items-center justify-center overflow-hidden rounded-3xl p-4 sm:p-6 md:p-8\"\n        style={{ ...themeStyle, ...customStyle }}\n      >\n        {/* Full-bleed glass backdrop */}\n        <img\n          src={glassBg}\n          alt=\"Glass landscape backdrop\"\n          className=\"absolute inset-0 w-full h-full object-cover select-none pointer-events-none\"\n        />\n        <div className=\"absolute inset-0 bg-black/45 backdrop-blur-[1px] pointer-events-none\" />\n\n        {/* Floating Glass Card */}\n        <div className=\"relative z-10 w-full max-w-[460px] p-6 sm:p-8 md:p-10 bg-background/65 backdrop-blur-xl rounded-3xl shadow-2xl border border-border/60 transition-colors duration-300\">\n          {FormContent}\n        </div>\n      </div>\n    );\n  }\n\n  const baseWrapper =\n    \"w-full max-w-[480px] mx-auto p-4 xs:p-6 sm:p-8 md:p-10 transition-colors duration-300\";\n  const wrapperClass = cn(\n    baseWrapper,\n    variant === \"default\" &&\n      \"bg-background rounded-3xl shadow-xl border border-border\",\n    variant === \"minimal\" && \"bg-transparent\",\n  );\n\n  return (\n    <div className={wrapperClass} style={{ ...themeStyle, ...customStyle }}>\n      {FormContent}\n    </div>\n  );\n}\n\n// ==========================================\n// RIBBON DRIFT REGISTER BLOCK\n// ==========================================\n\nexport interface RegisterBlockProps {\n  logo?: string;\n  logoDark?: string;\n  logoHref?: string;\n  heading?: string;\n  lead?: string;\n  image?: string;\n  promo?: {\n    title?: string;\n    body?: string;\n    href?: string;\n    avatars?: (string | { src: string; alt?: string; name?: string; designation?: string })[];\n  };\n  ribbonsTop?: string[];\n  ribbonsBottom?: string[];\n  loginHref?: string;\n  termsHref?: string;\n  privacyHref?: string;\n  onSubmit?: (values: RegisterFormValues) => void | Promise<void>;\n  onGoogle?: () => void;\n  pending?: boolean;\n  error?: string;\n  fieldErrors?: Record<string, string>;\n  className?: string;\n  style?: React.CSSProperties;\n  color?: RegisterColor;\n  rounded?: string | number;\n  footerCopyright?: React.ReactNode;\n  footerBadge?: React.ReactNode;\n}\n\nconst defaultRegisterImage =\n  \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto/v1793701432/register-hero-1793701431524.png\";\n\nconst defaultRegisterRibbonsTop = [\n  \"Screening questions auto-graded\",\n  \"Zero scheduling back-and-forth\",\n  \"Compare applicants side by side\",\n];\n\nconst defaultRegisterRibbonsBottom = [\n  \"Every candidate hears from you\",\n  \"Interviews that fit their schedule\",\n  \"Structured hiring from day one\",\n];\n\nconst defaultRegisterPromo = {\n  title: \"Your first round, handled\",\n  body: \"Screening and AI interviews, 24/7\",\n  href: \"#\",\n  avatars: [\n    {\n      src: \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_120,h_120,c_fill/v1790145139/pexels-photo-1036623-1790145143487.jpg\",\n      alt: \"Ana Watson\",\n      name: \"Ana Watson\",\n      designation: \"Founder & CEO\",\n    },\n    {\n      src: \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_120,h_120,c_fill/v1790145142/pexels-photo-2043590-1790145143488.jpg\",\n      alt: \"Tom Hardy\",\n      name: \"Tom Hardy\",\n      designation: \"Co-Founder & CTO\",\n    },\n    {\n      src: \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_120,h_120,c_fill/v1790145139/pexels-photo-1587009-1790145143488.jpg\",\n      alt: \"Mara Jade\",\n      name: \"Mara Jade\",\n      designation: \"Managing Director\",\n    },\n  ],\n};\n\nexport function RegisterBlock({\n  logo,\n  logoDark,\n  logoHref = \"#\",\n  heading = \"Create your account\",\n  lead = \"Set up a role, add your screening questions, and let AI interview every qualified applicant.\",\n  image = defaultRegisterImage,\n  promo = defaultRegisterPromo,\n  ribbonsTop = defaultRegisterRibbonsTop,\n  ribbonsBottom = defaultRegisterRibbonsBottom,\n  loginHref = \"#\",\n  termsHref = \"#\",\n  privacyHref = \"#\",\n  onSubmit,\n  onGoogle,\n  pending = false,\n  error,\n  fieldErrors = {},\n  className = \"\",\n  style,\n  color = \"primary\",\n  rounded,\n  footerCopyright,\n  footerBadge,\n}: RegisterBlockProps) {\n  const [agreeToTerms, setAgreeToTerms] = useState(false);\n  const [localErrors, setLocalErrors] = useState<Record<string, string>>({});\n  const errors = { ...localErrors, ...fieldErrors };\n\n  const { style: themeStyle } = getThemeStyles(color);\n\n  const formattedRadius = formatRadius(rounded);\n  const dynamicRadiusStyle: React.CSSProperties = {\n    borderRadius:\n      formattedRadius !== undefined\n        ? formattedRadius\n        : \"calc(var(--radius, 0.625rem) * 2.8)\",\n    WebkitMaskImage: \"-webkit-radial-gradient(white, black)\",\n  };\n\n  const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {\n    event.preventDefault();\n    const form = new FormData(event.currentTarget);\n    const name = String(form.get(\"name\") || \"\").trim();\n    const email = String(form.get(\"email\") || \"\").trim();\n    const password = String(form.get(\"password\") || \"\");\n    const next: Record<string, string> = {};\n    if (!name) next.name = \"Full name is required\";\n    if (!email) next.email = \"Email is required\";\n    else if (!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$/i.test(email))\n      next.email = \"Invalid email address\";\n    if (!password) next.password = \"Password is required\";\n    else if (password.length < 6)\n      next.password = \"Password must be at least 6 characters\";\n    if (!agreeToTerms) next.terms = \"You must agree to the terms\";\n    setLocalErrors(next);\n    if (Object.keys(next).length) return;\n\n    const parts = name.split(\" \");\n    const firstName = parts[0] || \"\";\n    const lastName = parts.slice(1).join(\" \") || \"\";\n    onSubmit?.({\n      firstName,\n      lastName,\n      email,\n      password,\n      confirmPassword: password,\n      agreeToTerms,\n    });\n  };\n\n  return (\n    <div\n      className={cn(\n        \"flex flex-col justify-between bg-background p-2.5 sm:p-4 text-foreground w-full max-w-full min-w-0 overflow-hidden box-border transition-colors duration-300\",\n        className,\n      )}\n      style={{ ...themeStyle, ...style }}\n    >\n      <div\n        className={cn(\n          \"grid flex-1 gap-3 sm:gap-4 items-stretch w-full max-w-full min-w-0\",\n          image\n            ? \"grid-cols-1 lg:grid-cols-[0.9fr_1fr]\"\n            : \"grid-cols-1 max-w-[560px] mx-auto\",\n        )}\n      >\n        <div className=\"mx-auto flex w-full max-w-[560px] lg:max-w-none min-w-0 flex-col h-full justify-center\">\n          <section\n            className={cn(\n              \"relative flex flex-1 items-center justify-center overflow-hidden bg-[#efeff2] dark:bg-[#131313] p-4 sm:p-6 shadow-sm border border-black/5 dark:border-white/5 min-h-[460px] sm:min-h-[520px] lg:min-h-[540px] h-full w-full max-w-full min-w-0\",\n              typeof rounded === \"string\" && !formatRadius(rounded)\n                ? rounded\n                : \"\",\n            )}\n            style={dynamicRadiusStyle}\n          >\n            <div\n              aria-hidden=\"true\"\n              className=\"pointer-events-none absolute inset-0 bg-[radial-gradient(90%_55%_at_85%_112%,color-mix(in_oklab,var(--brand-secondary,var(--brand,#9B8AFB))_30%,transparent),transparent_62%),radial-gradient(80%_50%_at_8%_108%,color-mix(in_oklab,var(--primary)_26%,transparent),transparent_60%)]\"\n            />\n            {/* Form-card logo: shown where the image card is hidden */}\n            <div\n              className={cn(\n                \"absolute right-4 top-4 sm:right-5 sm:top-5 z-10\",\n                image && \"lg:hidden\",\n              )}\n            >\n              <BlockLogo\n                href={logoHref}\n                logo={logo}\n                logoDark={logoDark}\n                compact\n              />\n            </div>\n\n            <div\n              className={cn(\n                \"relative w-full max-w-[400px] px-2 sm:px-4 pb-6 pt-14 text-center sm:pb-8 sm:pt-16\",\n                image && \"lg:pt-8\",\n              )}\n            >\n              <h1 className=\"text-balance text-[clamp(26px,4vw,38px)] font-medium leading-[1.12] tracking-[-0.025em] text-foreground\">\n                {heading}\n              </h1>\n              {lead && (\n                <p className=\"mx-auto mt-2.5 max-w-[34ch] text-pretty text-[13px] sm:text-[14px] leading-relaxed text-muted-foreground\">\n                  {lead}\n                </p>\n              )}\n\n              <form\n                className=\"mt-6 sm:mt-8 flex flex-col gap-3 text-left\"\n                onSubmit={handleSubmit}\n                noValidate\n              >\n                {error && (\n                  <p\n                    role=\"alert\"\n                    className=\"rounded-2xl bg-destructive/10 px-4 py-2.5 text-[13px] text-destructive\"\n                  >\n                    {error}\n                  </p>\n                )}\n\n                <InputBlock\n                  variant=\"pill\"\n                  color={color}\n                  id=\"register-name\"\n                  name=\"name\"\n                  type=\"text\"\n                  autoComplete=\"name\"\n                  placeholder=\"Enter your full name\"\n                  leftIcon={<UserIcon />}\n                  error={errors.name}\n                />\n\n                <InputBlock\n                  variant=\"pill\"\n                  color={color}\n                  id=\"register-email-input\"\n                  name=\"email\"\n                  type=\"email\"\n                  autoComplete=\"email\"\n                  placeholder=\"Enter your email\"\n                  leftIcon={<MailIcon />}\n                  error={errors.email}\n                />\n\n                <InputBlock\n                  variant=\"pill\"\n                  color={color}\n                  id=\"register-password-input\"\n                  name=\"password\"\n                  type=\"password\"\n                  autoComplete=\"new-password\"\n                  placeholder=\"Enter Password\"\n                  leftIcon={<LockIcon />}\n                  error={errors.password}\n                />\n\n                <div className=\"flex flex-col gap-1 px-1\">\n                  <label\n                    htmlFor=\"register-terms\"\n                    className=\"inline-flex cursor-pointer items-start gap-2.5 text-xs sm:text-sm text-muted-foreground select-none\"\n                  >\n                    <div className=\"pt-0.5 shrink-0\">\n                      <BlockCheckbox\n                        id=\"register-terms\"\n                        checked={agreeToTerms}\n                        onCheckedChange={(v) => setAgreeToTerms(v)}\n                      />\n                    </div>\n                    <span className=\"leading-tight\">\n                      I agree to{\" \"}\n                      <a\n                        href={privacyHref}\n                        onClick={(e) => {\n                          if (!privacyHref || privacyHref === \"#\")\n                            e.preventDefault();\n                        }}\n                        className={blockLinkClass}\n                      >\n                        privacy policy\n                      </a>{\" \"}\n                      &amp;{\" \"}\n                      <a\n                        href={termsHref}\n                        onClick={(e) => {\n                          if (!termsHref || termsHref === \"#\")\n                            e.preventDefault();\n                        }}\n                        className={blockLinkClass}\n                      >\n                        terms\n                      </a>\n                    </span>\n                  </label>\n                  {errors.terms && (\n                    <p className=\"pl-6 text-[12px] sm:text-[13px] text-destructive\">\n                      {errors.terms}\n                    </p>\n                  )}\n                </div>\n\n                <Button\n                  type=\"submit\"\n                  variant=\"ribbon-primary\"\n                  color={color}\n                  loading={pending}\n                  className=\"w-full mt-1.5\"\n                >\n                  {pending ? \"Creating account...\" : \"Sign up\"}\n                </Button>\n              </form>\n\n              {onGoogle && (\n                <>\n                  <div className=\"my-4 sm:my-5 flex items-center gap-3.5 text-[13px] text-muted-foreground before:h-px before:flex-1 before:bg-border after:h-px after:flex-1 after:bg-border\">\n                    or\n                  </div>\n                  <Button\n                    type=\"button\"\n                    variant=\"ribbon-social\"\n                    color={color}\n                    onClick={onGoogle}\n                    iconLeft={<GoogleColoredIcon />}\n                    className=\"w-full\"\n                  >\n                    Continue with Google\n                  </Button>\n                </>\n              )}\n\n              <p className=\"mt-4 sm:mt-5 text-xs sm:text-sm text-muted-foreground\">\n                Already have an account?{\" \"}\n                <a\n                  href={loginHref}\n                  onClick={(e) => {\n                    if (!loginHref || loginHref === \"#\") e.preventDefault();\n                  }}\n                  className={cn(\n                    blockLinkClass,\n                    \"font-semibold decoration-transparent hover:decoration-current\",\n                  )}\n                >\n                  Sign in instead\n                </a>\n              </p>\n            </div>\n          </section>\n        </div>\n\n        {image && (\n          <div className=\"hidden lg:flex flex-col w-full h-full min-w-0 overflow-hidden\">\n            <RibbonDriftBlock\n              image={image}\n              logoConfig={{\n                logo,\n                logoDark,\n                href: logoHref,\n              }}\n              ribbonsTop={ribbonsTop}\n              ribbonsBottom={ribbonsBottom}\n              promo={promo}\n              color={color}\n              rounded={rounded}\n              className=\"h-full min-h-[440px] sm:min-h-[500px] lg:min-h-[540px]\"\n            />\n          </div>\n        )}\n      </div>\n\n      {/* Footer row */}\n      <footer className=\"mt-4 flex flex-col sm:flex-row items-center justify-between gap-2.5 px-3 py-1 text-xs text-muted-foreground text-center sm:text-left select-none\">\n        <p>\n          {footerCopyright || (\n            <>\n              COPYRIGHT © {new Date().getFullYear()}{\" \"}\n              <span className=\"font-medium text-foreground\">\n                Avara{\" \"}\n                <span\n                  className=\"font-normal\"\n                  style={{ color: \"var(--brand, #9B8AFB)\" }}\n                >\n                  UI\n                </span>\n              </span>{\" \"}\n              All rights reserved.\n            </>\n          )}\n        </p>\n        <p className=\"flex items-center gap-1.5 font-medium\">\n          {footerBadge || (\n            <>\n              Created by{\" \"}\n              <span className=\"font-semibold text-foreground\">\n                Avara{\" \"}\n                <span\n                  className=\"font-normal\"\n                  style={{ color: \"var(--brand, #9B8AFB)\" }}\n                >\n                  UI\n                </span>\n              </span>{\" \"}\n              with <span className=\"text-rose-500\">❤️</span>\n            </>\n          )}\n        </p>\n      </footer>\n    </div>\n  );\n}\n\nconst blockLinkClass =\n  \"font-medium text-foreground underline decoration-current/30 underline-offset-[3px] transition-colors hover:decoration-current\";\n\nfunction BlockLogo({\n  href = \"#\",\n  logo,\n  logoDark,\n  compact = false,\n}: {\n  href?: string;\n  logo?: string;\n  logoDark?: string;\n  compact?: boolean;\n}) {\n  return (\n    <a\n      href={href}\n      onClick={(e) => {\n        if (!href || href === \"#\") e.preventDefault();\n      }}\n      className=\"inline-flex items-center gap-2 rounded-lg transition-opacity hover:opacity-90 cursor-default select-none\"\n    >\n      {logo || logoDark ? (\n        <>\n          {logo && (\n            <img\n              src={logo}\n              alt=\"Logo\"\n              className={`${compact ? \"h-6\" : \"h-7\"} w-auto object-contain ${logoDark ? \"dark:hidden\" : \"\"}`}\n            />\n          )}\n          {logoDark && (\n            <img\n              src={logoDark}\n              alt=\"Logo\"\n              className={`${compact ? \"h-6\" : \"h-7\"} hidden w-auto object-contain dark:block`}\n            />\n          )}\n        </>\n      ) : (\n        <>\n          <img\n            src=\"/favicon/android-chrome-192x192.png\"\n            alt=\"Avara UI\"\n            className={`${compact ? \"size-5\" : \"size-6\"} rounded-md object-contain shrink-0`}\n          />\n          <span\n            className={`${compact ? \"text-[14px]\" : \"text-[15px]\"} font-semibold tracking-tight text-foreground`}\n          >\n            Avara{\" \"}\n            <span\n              className=\"font-normal\"\n              style={{ color: \"var(--brand, #9B8AFB)\" }}\n            >\n              UI\n            </span>\n          </span>\n        </>\n      )}\n    </a>\n  );\n}\n\nfunction BlockCheckbox({\n  id,\n  checked,\n  onCheckedChange,\n}: {\n  id?: string;\n  checked: boolean;\n  onCheckedChange: (checked: boolean) => void;\n}) {\n  return (\n    <button\n      type=\"button\"\n      role=\"checkbox\"\n      id={id}\n      aria-checked={checked}\n      onClick={() => onCheckedChange(!checked)}\n      className={cn(\n        \"size-4 rounded border transition-colors flex items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40\",\n        checked\n          ? \"bg-primary border-primary text-primary-foreground\"\n          : \"border-input bg-background/50 hover:bg-background hover:border-foreground/40\",\n      )}\n    >\n      {checked && (\n        <svg\n          className=\"size-3 stroke-current\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          strokeWidth=\"3.5\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n        >\n          <polyline points=\"20 6 9 17 4 12\" />\n        </svg>\n      )}\n    </button>\n  );\n}\n\nconst blockSvgProps = {\n  viewBox: \"0 0 24 24\",\n  fill: \"none\",\n  stroke: \"currentColor\",\n  strokeWidth: 2,\n  strokeLinecap: \"round\" as const,\n  strokeLinejoin: \"round\" as const,\n  className: \"size-4 sm:size-[18px]\",\n};\n\nconst UserIcon = () => (\n  <svg {...blockSvgProps}>\n    <path d=\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\" />\n    <circle cx=\"12\" cy=\"7\" r=\"4\" />\n  </svg>\n);\n\nconst MailIcon = () => (\n  <svg {...blockSvgProps}>\n    <rect width=\"20\" height=\"16\" x=\"2\" y=\"4\" rx=\"2\" />\n    <path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\" />\n  </svg>\n);\n\nconst LockIcon = () => (\n  <svg {...blockSvgProps}>\n    <rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" />\n    <path d=\"M7 11V7a5 5 0 0 1 10 0v4\" />\n  </svg>\n);\n\nconst GoogleColoredIcon = () => (\n  <svg viewBox=\"0 0 48 48\" className=\"size-[18px] shrink-0\" aria-hidden=\"true\">\n    <path\n      fill=\"#EA4335\"\n      d=\"M24 9.5c3.5 0 6.6 1.2 9.1 3.6l6.8-6.8C35.8 2.4 30.3 0 24 0 14.6 0 6.5 5.4 2.6 13.2l7.9 6.1C12.4 13.6 17.7 9.5 24 9.5z\"\n    />\n    <path\n      fill=\"#4285F4\"\n      d=\"M46.5 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.7c-.6 3-2.3 5.5-4.8 7.2l7.5 5.8c4.4-4.1 7.1-10.1 7.1-17.5z\"\n    />\n    <path\n      fill=\"#FBBC05\"\n      d=\"M10.5 28.7a14.5 14.5 0 0 1 0-9.4l-7.9-6.1a24 24 0 0 0 0 21.6l7.9-6.1z\"\n    />\n    <path\n      fill=\"#34A853\"\n      d=\"M24 48c6.5 0 11.9-2.1 15.9-5.8l-7.5-5.8c-2.1 1.4-4.8 2.3-8.4 2.3-6.3 0-11.6-4.1-13.5-9.8l-7.9 6.1C6.5 42.6 14.6 48 24 48z\"\n    />\n  </svg>\n);\n\n\n",
      "type": "registry:component",
      "target": "components/custom/blocks/RegisterForm.tsx"
    },
    {
      "path": "src/components/custom/blocks/register-form-theme.ts",
      "content": "\"use client\";\n\nconst colorThemes: Record<string, Record<string, string>> = {\n  lavender: {\n    bg: \"bg-[#9b8afb] hover:bg-[#8b75f8]\",\n    text: \"text-[#9b8afb]\",\n    border: \"border-[#9b8afb]\",\n    ring: \"focus:ring-[#9b8afb]\",\n    focusBorder: \"focus:border-[#9b8afb] focus-visible:border-[#9b8afb]\",\n    focusRing: \"focus:ring-2 focus:ring-[#9b8afb]/25 focus-visible:ring-2 focus-visible:ring-[#9b8afb]/25\",\n    hoverBorder: \"hover:border-[#9b8afb]/60\",\n    gradient: \"from-[#9b8afb] to-[#7c66f6]\",\n    panelFg: \"text-white\",\n  },\n  indigo: {\n    bg: \"bg-indigo-600 hover:bg-indigo-700\",\n    text: \"text-indigo-600 dark:text-indigo-400\",\n    border: \"border-indigo-600\",\n    ring: \"focus:ring-indigo-600\",\n    focusBorder: \"focus:border-indigo-600 focus-visible:border-indigo-600\",\n    focusRing: \"focus:ring-2 focus:ring-indigo-600/25 focus-visible:ring-2 focus-visible:ring-indigo-600/25\",\n    hoverBorder: \"hover:border-indigo-500/60\",\n    gradient: \"from-indigo-600 to-violet-600\",\n    panelFg: \"text-white\",\n  },\n  rose: {\n    bg: \"bg-rose-600 hover:bg-rose-700\",\n    text: \"text-rose-600 dark:text-rose-400\",\n    border: \"border-rose-600\",\n    ring: \"focus:ring-rose-600\",\n    focusBorder: \"focus:border-rose-600 focus-visible:border-rose-600\",\n    focusRing: \"focus:ring-2 focus:ring-rose-600/25 focus-visible:ring-2 focus-visible:ring-rose-600/25\",\n    hoverBorder: \"hover:border-rose-500/60\",\n    gradient: \"from-rose-600 to-orange-500\",\n    panelFg: \"text-white\",\n  },\n  emerald: {\n    bg: \"bg-emerald-600 hover:bg-emerald-700\",\n    text: \"text-emerald-600 dark:text-emerald-400\",\n    border: \"border-emerald-600\",\n    ring: \"focus:ring-emerald-600\",\n    focusBorder: \"focus:border-emerald-600 focus-visible:border-emerald-600\",\n    focusRing: \"focus:ring-2 focus:ring-emerald-600/25 focus-visible:ring-2 focus-visible:ring-emerald-600/25\",\n    hoverBorder: \"hover:border-emerald-500/60\",\n    gradient: \"from-emerald-600 to-teal-500\",\n    panelFg: \"text-white\",\n  },\n  zinc: {\n    bg: \"bg-zinc-900 hover:bg-zinc-800 dark:bg-zinc-100 dark:hover:bg-zinc-200 dark:text-zinc-900\",\n    text: \"text-zinc-900 dark:text-zinc-100\",\n    border: \"border-zinc-900 dark:border-zinc-100\",\n    ring: \"focus:ring-zinc-900 dark:focus:ring-zinc-100\",\n    focusBorder: \"focus:border-zinc-900 dark:focus:border-zinc-100 focus-visible:border-zinc-900 dark:focus-visible:border-zinc-100\",\n    focusRing: \"focus:ring-2 focus:ring-zinc-900/20 dark:focus:ring-zinc-100/20 focus-visible:ring-2 focus-visible:ring-zinc-900/20 dark:focus-visible:ring-zinc-100/20\",\n    hoverBorder: \"hover:border-zinc-900/50 dark:hover:border-zinc-400/50\",\n    gradient: \"from-zinc-800 to-zinc-600 dark:from-zinc-200 dark:to-zinc-400\",\n    panelFg: \"text-white dark:text-zinc-900\",\n  },\n};\n\nconst PRESET_HEX: Record<\n  string,\n  { hex: string; rgb: string; secondary: string; panelFg: string }\n> = {\n  lavender: {\n    hex: \"#9b8afb\",\n    rgb: \"155, 138, 251\",\n    secondary: \"#c4b5fd\",\n    panelFg: \"#ffffff\",\n  },\n  indigo: {\n    hex: \"#6366f1\",\n    rgb: \"99, 102, 241\",\n    secondary: \"#a855f7\",\n    panelFg: \"#ffffff\",\n  },\n  rose: {\n    hex: \"#f43f5e\",\n    rgb: \"244, 63, 94\",\n    secondary: \"#fb7185\",\n    panelFg: \"#ffffff\",\n  },\n  emerald: {\n    hex: \"#10b981\",\n    rgb: \"16, 185, 129\",\n    secondary: \"#34d399\",\n    panelFg: \"#ffffff\",\n  },\n  zinc: {\n    hex: \"#18181b\",\n    rgb: \"24, 24, 27\",\n    secondary: \"#71717a\",\n    panelFg: \"#fafafa\",\n  },\n};\n\nconst contrastingForeground = (rgb: string) => {\n  const [r, g, b] = rgb.split(\",\").map((v) => parseInt(v.trim(), 10));\n  const channel = (v: number) => {\n    const c = v / 255;\n    return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);\n  };\n  const luminance =\n    0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);\n  return luminance > 0.45 ? \"#09090b\" : \"#ffffff\";\n};\n\nconst hexToRgb = (hex: string) => {\n  let cleanHex = hex.replace(/^#/, \"\");\n  if (cleanHex.length === 3)\n    cleanHex = cleanHex\n      .split(\"\")\n      .map((x) => x + x)\n      .join(\"\");\n  const result = /^([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(cleanHex);\n  return result\n    ? `${parseInt(result[1], 16)}, ${parseInt(result[2], 16)}, ${parseInt(result[3], 16)}`\n    : \"99, 102, 241\";\n};\n\nexport const getThemeStyles = (color: string) => {\n  if (colorThemes[color]) {\n    const preset = PRESET_HEX[color];\n    const hex = preset?.hex;\n    const rgb = preset?.rgb;\n    const secondary = preset?.secondary || hex;\n    const style: React.CSSProperties = hex\n      ? ({\n          \"--primary\": hex,\n          \"--primary-foreground\": preset?.panelFg || \"#ffffff\",\n          \"--ring\": hex,\n          \"--theme-color\": hex,\n          \"--theme-color-rgb\": rgb,\n          \"--panel-fg\": preset?.panelFg || \"#ffffff\",\n          \"--brand\": hex,\n          \"--brand-secondary\": secondary,\n        } as React.CSSProperties)\n      : {};\n    return { theme: colorThemes[color], style };\n  }\n\n  if (color && color.startsWith(\"#\")) {\n    const rgb = hexToRgb(color);\n    const fg = contrastingForeground(rgb);\n    return {\n      theme: {\n        bg: \"bg-[var(--theme-color)] text-white hover:opacity-90\",\n        text: \"text-[var(--theme-color)]\",\n        border: \"border-[var(--theme-color)]\",\n        ring: \"focus:ring-[var(--theme-color)]\",\n        focusBorder: \"focus:border-[var(--theme-color)] focus-visible:border-[var(--theme-color)]\",\n        focusRing: \"focus:ring-2 focus:ring-[rgba(var(--theme-color-rgb),0.25)] focus-visible:ring-2 focus-visible:ring-[rgba(var(--theme-color-rgb),0.25)]\",\n        hoverBorder: \"hover:border-[var(--theme-color)]/60\",\n        gradient:\n          \"from-[var(--theme-color)] to-[rgba(var(--theme-color-rgb),0.6)]\",\n        panelFg: \"text-[var(--panel-fg)]\",\n      },\n      style: {\n        \"--primary\": color,\n        \"--primary-foreground\": fg,\n        \"--ring\": color,\n        \"--theme-color\": color,\n        \"--theme-color-rgb\": rgb,\n        \"--panel-fg\": fg,\n        \"--brand\": color,\n        \"--brand-secondary\": color,\n      } as React.CSSProperties,\n    };\n  }\n\n  return {\n    theme: {\n      bg: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n      text: \"text-primary\",\n      border: \"border-primary\",\n      ring: \"focus:ring-primary\",\n      focusBorder: \"focus:border-primary focus-visible:border-primary\",\n      focusRing: \"focus:ring-2 focus:ring-primary/25 focus-visible:ring-2 focus-visible:ring-primary/25\",\n      hoverBorder: \"hover:border-primary/60\",\n      gradient: \"from-primary to-primary/70\",\n      // The token designed to be legible on --primary, which inverts by theme.\n      panelFg: \"text-primary-foreground\",\n    },\n    style: {} as React.CSSProperties,\n  };\n};\n",
      "type": "registry:component",
      "target": "components/custom/blocks/register-form-theme.ts"
    }
  ],
  "docs": "Default export: RegisterForm. Also exports RegisterBlock, getThemeStyles (from register-form-theme.ts, which installs alongside) and the RegisterFormValues type. Fields and buttons are the library's input and button items, which install alongside it. `variant` is default | split | glass | minimal | scenic | liquid-glass | ribbon-drift. `onSubmit` receives the validated fields; without it the form simulates a round trip. `loginHref` points at the matching `login-form` page, and `minPasswordLength` sets the client-side minimum. Validation is client-side presentation only — enforce it again on your server.",
  "categories": [
    "authentication",
    "forms"
  ],
  "type": "registry:component"
}
