// Signup / sign-in modal — toggles to reseller-extra fields const SignupModal = ({open, mode, onClose, onComplete}) => { const [reseller, setReseller] = React.useState(false); const [tab, setTab] = React.useState(mode || "signup"); React.useEffect(()=>{ if (open) setTab(mode || "signup"); }, [open, mode]); if (!open) return null; const submit = (e) => { e.preventDefault(); onComplete && onComplete({reseller}); onClose(); }; return (
e.stopPropagation()} style={{ background:"#000", border:"2px solid var(--color-cyan)", boxShadow:"0 0 36px rgba(120,214,241,.45)", padding:"32px 36px", maxWidth:580, width:"100%", display:"flex", flexDirection:"column", gap:16, position:"relative" }}>
{["signup","signin"].map(t => ( ))}
{tab==="signup" ? "Create account · Free" : "Sign in to your account"} {tab==="signup" ? <>Sign up
to shop. : <>Welcome
back.}

{tab==="signup" ? "An account unlocks the storefront. Resellers see wholesale pricing after manual approval (1–3 business days)." : "Sign in to view your orders, lab COAs, and reseller pricing."}

{tab==="signup" && (
)} {tab==="signup" && ( <> {reseller && (
Reseller details
Approval in 1–3 business days. A rep may contact you for clarification.
)} )}
); }; window.SignupModal = SignupModal;