1import{u as Me,b as Oe,c as _e,r as d,j as e,H as He,L as $}from"./edge-BOITG1XR.js";import{f as Ie,P as de,a as $e,B as ze,c as qe}from"./mod-CgD5DQ16.js";function A({kind:g,color:c="#0F1729"}){const u={width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:c,strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round"};switch(g){case"card":return e.jsxs("svg",{...u,children:[e.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2.5"}),e.jsx("line",{x1:"2",y1:"10",x2:"22",y2:"10"}),e.jsx("line",{x1:"6",y1:"15",x2:"10",y2:"15"})]});case"paypal":return e.jsxs("svg",{...u,children:[e.jsx("path",{d:"M7 4h6c2.5 0 4 1.5 4 4 0 2.5-2 4.5-4.5 4.5H10l-1 7H6L7 4z"}),e.jsx("path",{d:"M9 8.5h4c1.5 0 2.5 1 2.5 2.5"})]});case"bitcoin":return e.jsxs("svg",{...u,children:[e.jsx("circle",{cx:"12",cy:"12",r:"9"}),e.jsx("path",{d:"M9 8v8M9 8h4.5a2 2 0 0 1 0 4H9M9 12h5a2 2 0 0 1 0 4H9M11 6v2M11 16v2"})]});case"usdt":return e.jsxs("svg",{...u,children:[e.jsx("circle",{cx:"12",cy:"12",r:"9"}),e.jsx("path",{d:"M12 7v10M7 9.5h10"})]});case"pm":return e.jsxs("svg",{...u,children:[e.jsx("circle",{cx:"12",cy:"12",r:"9"}),e.jsx("path",{d:"M9 16V8h4a2.5 2.5 0 0 1 0 5H9"})]});case"amazon":return e.jsxs("svg",{...u,children:[e.jsx("path",{d:"M3 17c3 2 7 3 11 3s7-1 8-2"}),e.jsx("path",{d:"M5 12c1.5-1 3.5-2 7-2s5.5 1 7 2"}),e.jsx("circle",{cx:"9",cy:"8",r:"1.4",fill:c})]});case"bank":return e.jsxs("svg",{...u,children:[e.jsx("path",{d:"M3 9.5L12 4l9 5.5"}),e.jsx("path",{d:"M5 9.5v9M19 9.5v9M9 9.5v9M15 9.5v9M3 19.5h18"})]});case"message":return e.jsxs("svg",{...u,children:[e.jsx("path",{d:"M4 5.5h16a1 1 0 0 1 1 1V16a1 1 0 0 1-1 1H9l-4.5 4V17H4a1 1 0 0 1-1-1V6.5a1 1 0 0 1 1-1z"}),e.jsx("circle",{cx:"8.5",cy:"11",r:"0.9",fill:c}),e.jsx("circle",{cx:"12",cy:"11",r:"0.9",fill:c}),e.jsx("circle",{cx:"15.5",cy:"11",r:"0.9",fill:c})]});default:return null}}function Y({kind:g,color:c="#0066CC"}){const u={width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:c,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};switch(g){case"shield":return e.jsxs("svg",{...u,children:[e.jsx("path",{d:"M12 2L4 6v6c0 5 3.5 8.5 8 10 4.5-1.5 8-5 8-10V6l-8-4z"}),e.jsx("path",{d:"M9 12l2 2 4-4"})]});case"lock":return e.jsxs("svg",{...u,children:[e.jsx("rect",{x:"4",y:"11",width:"16",height:"11",rx:"2"}),e.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]});case"server":return e.jsxs("svg",{...u,children:[e.jsx("rect",{x:"3",y:"4",width:"18",height:"7",rx:"1.5"}),e.jsx("rect",{x:"3",y:"13",width:"18",height:"7",rx:"1.5"}),e.jsx("circle",{cx:"7",cy:"7.5",r:"0.8",fill:c}),e.jsx("circle",{cx:"7",cy:"16.5",r:"0.8",fill:c})]});case"support":return e.jsx("svg",{...u,children:e.jsx("path",{d:"M21 11.5a8.5 8.5 0 1 0-15.7 4.5L4 21l5-1.3a8.5 8.5 0 0 0 12-8.2z"})});default:return null}}const Ue=[{icon:"shield",label:"Cancel anytime â no contracts"},{icon:"lock",label:"TLS 1.3 encrypted checkout"},{icon:"server",label:"Server provisioned in 1â4 hours"},{icon:"support",label:"24/7 support included"}],B=[{slug:"pulsar-email-sender",icon:"â¡",name:"PULSAR Mail Sender",shortDesc:"Windows bulk sender · DKIM · AI personalization · VERP bounce",plans:{advanced:{price:0,label:"FREE",type:"free",period:"Lifetime licence · 1 PC"},professional:{price:39.99,label:"+$39.99",type:"paid",period:"Lifetime licence · 1 PC"},standard:{price:49.99,label:"+$49.99",type:"paid",period:"Lifetime licence · 1 PC"}}},{slug:"spidermail",icon:"ð·ï¸",name:"SpiderMail",shortDesc:"Email scraper & bulk mailer · 6 modules · web crawler · SMTP verifier",plans:{advanced:{price:9.99,label:"+$9.99",type:"paid",period:"Lifetime licence"},professional:{price:19.99,label:"+$19.99",type:"paid",period:"Lifetime licence"},standard:{price:29.99,label:"+$29.99",type:"paid",period:"Lifetime licence"}}},{slug:"topmail-suite",icon:"ð§",name:"TopMail Suite",shortDesc:"Campaign builder · list manager · drag-and-drop templates · multi-SMTP",plans:{advanced:{price:0,label:"FREE",type:"free",period:"1-year licence"}}}],ce=B.map(g=>g.slug);function ue(g){const c=(g||"").trim().split(/\s+/).filter(Boolean),u=c[0]||"",h=c.length>1?c.slice(1).join(" "):u;return{first:u,last:h}}function Je(){Me();const{notify:g}=Oe(),[c]=_e(),u=c.get("plan")||"professional",h=(()=>{try{return JSON.parse(sessionStorage.getItem("sue_checkout_draft")||"{}")}catch{return{}}})(),m=(()=>{try{return JSON.parse(localStorage.getItem("user")||"null")}catch{return null}})(),[x,pe]=d.useState(()=>Ie(h.planId||u).id),[E,Ne]=d.useState(h.cycle||c.get("cycle")||"monthly"),[f,We]=d.useState(()=>
1h.step===2?2:1),[F,Te]=d.useState([]),[P,L]=d.useState({}),[y,ee]=d.useState(h.paymentId||"btc"),[p,N]=d.useState(()=>m?"authed":h.authMode||"signup"),[o,C]=d.useState({email:m?.email||h.email||"",firstName:h.firstName||ue(m?.name).first,lastName:h.lastName||ue(m?.name).last,password:"",confirmPassword:""}),[D,Fe]=d.useState(!0),[J,W]=d.useState(!1),[K,he]=d.useState(null),[te,re]=d.useState(""),[v,se]=d.useState(null),[xe,M]=d.useState(""),[ge,me]=d.useState(!1),[Pe,ye]=d.useState(null),[G,fe]=d.useState(""),[be,Q]=d.useState(!1),[ve,O]=d.useState(""),[b,j]=d.useState({}),_=d.useRef(null),i=Ie(x),S=de.find(t=>t.id===y);d.useEffect(()=>{try{sessionStorage.setItem("sue_checkout_draft",JSON.stringify({planId:x,cycle:E,paymentId:y,authMode:p,step:f,email:o.email,firstName:o.firstName,lastName:o.lastName}))}catch{}},[x,E,y,p,o,f]);function ne(t){We(t),j({}),setTimeout(()=>window.scrollTo({top:0,behavior:"smooth"}),30)}d.useEffect(()=>{const t=c.get("plan");t&&$e.some(r=>r.id===t)&&pe(t)},[c]),d.useEffect(()=>{if(p!=="signup"||!o.email||!o.email.includes("@")){ye(null);return}const t=setTimeout(()=>{fetch("/api/checkout/check-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o.email})}).then(r=>r.json()).then(r=>{ye(r.exists?{name:r.name}:null)}).catch(()=>{})},500);return()=>clearTimeout(t)},[o.email,p]);async function Re(t){t.preventDefault(),Q(!0),O("");try{const r=await fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({email:o.email,password:G})}),s=await r.json();if(!r.ok){O(s.message||"Invalid email or password"),Q(!1);return}try{localStorage.setItem("token",s.token),localStorage.setItem("user",JSON.stringify({id:s._id||s.id,name:s.name,email:s.email,isAdmin:!!s.isAdmin}))}catch{}const{first:a,last:n}=ue(s.name);C(l=>({...l,email:s.email||l.email,firstName:l.firstName||a,lastName:l.lastName||n})),N("authed"),fe(""),Q(!1)}catch{O("Network error"),Q(!1)}}async function je(){const t=te.trim().toUpperCase();if(t){me(!0),M(""),se(null);try{const r=await fetch("/api/checkout/validate-coupon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:t,amount:ae})}),s=await r.json();!r.ok||s.error?M(s.error||s.message||"Invalid or expired coupon code."):(se({code:s.code,discount:s.discount,description:s.description,type:s.type,value:s.value}),re(s.code))}catch{M("Network error â could not validate coupon.")}me(!1)}}d.useEffect(()=>{fetch("/api/checkout/methods").then(t=>t.json()).then(t=>{const r=new Set((t.methods||[]).filter(s=>s.enabled).map(s=>s.id));if(he(r),!r.has(y==="moonpay"?"btc":y)){const s=(t.methods||[]).find(a=>a.enabled);s&&ee(s.id)}}).catch(()=>he(new Set(["btc","usdt","amazon","wire"]))),fetch("/api/checkout/addons").then(t=>t.json()).then(t=>Te(t.data||[])).catch(()=>{})},[]);const ie=ze[x]||ze.standard,R=ie[E]||ie.monthly,H=R.price,X=R.setup,Se=R.months,we=Object.entries(P).map(([t,r])=>{const s=F.find(n=>n.slug===t);if(!s)return null;const a=(s.options||[]).find(n=>String(n.value)===String(r));return a?{slug:t,value:r,label:a.label,monthly:a.monthly,setup:a.setup}:null}).filter(Boolean),q=we.filter(t=>!ce.includes(t.slug)),Ae=q.reduce((t,r)=>t+(r.monthly||0),0),Be=q.reduce((t,r)=>t+(r.setup||0),0),Ee=B.reduce((t,r)=>{const s=r.plans[x];return!s||s.type!=="paid"||String(P[r.slug])!==String(x)?t:t+s.price},0),ke=H+X+Ae+Be+Ee,oe=v?Math.min(v.discount,ke):0,ae=Math.max(0,ke-oe),Le=H/Se;async function De(t){if(t.preventDefault(),!D)return;const r={};if(p==="signup"?(o.firstName.trim()||(r.firstName="First name is required"),o.lastName.trim()||(r.lastName="Last name is required"),(!o.email.trim()||!/\S+@\S+\.\S+/.test(o.email))&&(r.email="Valid email address is required"),(!o.password||o.password.length<8)&&(r.password="Password must be at least 8 characters"),o.password!==o.confirmPassword&&(r.confirmPassword="Passwords do not match")):p==="signin"&&(o.email.trim()||(r.email="Email is required"),G||(r.signInPwd="Password is required")),Object.keys(r).length){j(r),setTimeout(()=>{_.current?.scrollIntoView({behavior:"smooth",block:"start"})},50);return}j({}),W(!0);try{const s=(()=>{try{return localStorage.getItem("token")}catch{return null}})(),a=y==="moonpay"?"btc":y,n=await fetch("/api/checkout",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...s?{Authorization:`Bearer ${s}`}:{}},body:JSON.stringify({product_id:i.db_id,email:o.email,first_name:o.firstName,last_name:o.lastName,...p==="signup"&&o.password?{password:o.password,password_confirmation:o.password}:{},payment_method:a,billing_cycle:E,currency:"usd",addons:we.map(k=>({slug:k.slug,value:String(k.value)})),agreed_terms:!0,...v?{coupon_code:v.code}:{}})});if(!n.ok){const k=await n.json().catch(()=>({}));if(n.status===409){if(p==="authed")try{localStorage.removeItem("token"),localStorage.removeItem("user")}catch{}N("signin"),O("An account with this email already exists. Please sign in to continue."),W(!1),setTimeout(()=>{_.current?.scrollIntoView({behavior:"smooth",block:"start"})},50);return}if(n.status===422&&k.errors){if(p==="authed"&&Object.keys(k.errors).some(Z=>["first_name","last_name","email","password"].includes(Z))){try{localStorage.removeItem("token"),localStorage.removeItem("user")}catch{}N("signin"),O("Your session has expired. Please sign in again to continue."),W(!1),setTimeout(()=>{_.current?.scrollIntoView({behavior:"smooth",block:"start"})},50);return}const U={first_name:"firstName",last_name:"lastName",email:"email",password:"password"},Ce={};for(const[Z,le]of Object.entries(k.errors))Ce[U[Z]||Z]=Array.isArray(le)?le[0]:le;j(Ce),W(!1),setTimeout(()=>{_.current?.scrollIntoView({behavior:"smooth",block:"start"})},50);return}g({title:"Could not start checkout",body:k.error||k.message||"Please try again.",tone:"error"}),W(!1);return}const l=await n.json(),I=l.order?.access_token,w=l.next;if(l.auth?.token)try{localStorage.setItem("token",l.auth.token),localStorage.setItem("user",JSON.stringify(l.auth.user))}catch{}try{sessionStorage.removeItem("sue_checkout_draft"),sessionStorage.setItem("sue_checkout_state",JSON.stringify({order:l.order,next:w}))}catch{}if(w?.type==="paypal"){const U=await(await fetch(`/api/checkout/paypal/create/${l.order.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_token:I})})).json();if(U.approve_url){window.location.href=U.approve_url;return}g({title:"PayPal init failed",body:U.error||"Try a different method.",tone:"error"}),W(!1);return}if(w?.type==="crypto"||w?.type==="multicrypto"){window.location.href=`/checkout/pay?order=${I}&method=${y}`;return}if(w?.type==="stripe"){window.location.href=`/checkout/pay?order=${I}&method=stripe`;return}if(w?.type==="manual"){window.location.href=`/checkout/pay?order=${I}&method=${y}`;return}window.location.href=`/checkout/success?order=${I}`}catch(s){console.error(s),g({title:"Network error",body:"Check your connection and try again.",tone:"error"}),W(!1)}}return e.jsxs(e.Fragment,{children:[e.jsxs(He,{children:[e.jsx("title",{children:"Checkout | SendUnlimitedEmail â Secure Order"}),e.jsx("meta",{name:"description",content:"Complete your SendUnlimitedEmail order. Dedicated SMTP servers from $39.99/month. Pay with Bitcoin, USDT, Amazon Gift Card, or bank wire. Cancel anytime â monthly billing."}),e.jsx("link",{rel:"canonical",href:"https://sendunlimitedemail.com/checkout"}),e.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),e.jsx("section",{className:"sue-hero",style:{paddingTop:60,paddingBottom:32},children:e.jsxs("div",{className:"sue-container",children:[e.jsxs("nav",{className:"sue-reveal",style:{display:"flex",gap:8,alignItems:"center",fontSize:13,color:"var(--sue-text-subtle)",marginBottom:18},children:[e.jsx($,{to:"/",style:{color:"var(--sue-text-muted)",textDecoration:"none"},children:"Home"}),e.jsx("span",{children:"âº"}),e.jsx($,{to:"/pricing",style:{color:"var(--sue-text-muted)",textDecoration:"none"},children:"Pricing"}),e.jsx("span",{children:"âº"}),e.jsx("span",{style:{color:"var(--sue-text)"},children:"Checkout"})]}),e.jsx("div",{className:"sue-reveal",children:e.jsxs("span",{className:"sue-eyebrow",children:[e.jsx("span",{className:"sue-eyebrow-dot"}),"Secure Checkout"]})}),e.jsx("h1",{className:"sue-h1 sue-reveal sue-delay-1",style:{marginTop:16,marginBottom:12,fontSize:"clamp(28px, 4vw, 44px)"},children:f===1?"Configure Your Server":"Account & Payment"}),e.jsx("p",{className:"sue-hero-lead sue-reveal sue-delay-2",style:{maxWidth:640,marginBottom:0},children:f===1?"Pick your plan, billing cycle, and any add-ons. Account and payment come on the next step.":"Almost done â sign in or create your account, pick how to pay, and place your order."}),e.jsx("div",{style:{display:"flex",alignItems:"center",gap:0,marginTop:26,maxWidth:560,flexWrap:"wrap"},children:[{n:1,label:"Configure server"},{n:2,label:"Account & payment"},{n:3,label:"Pay & provision"}].map((t,r)=>{const s=f>t.n,a=f===t.n,n=t.n<f;return e.jsxs("div",{style:{display:"flex",alignItems:"center",flex:r<2?1:"none"},children:[e.jsxs("button",{type:"button",onClick:()=>n&&ne(t.n),style:{display:"flex",alignItems:"center",gap:8,background:"none",border:"none",padding:0,cursor:n?"pointer":"default",fontFamily:"inherit"},children:[e.jsx("span",{style:{width:26,height:26,borderRadius:"50%",flexShrink:0,display:"grid",placeItems:"center",fontSize:12.5,fontWeight:700,background:s||a?"linear-gradient(135deg, var(--sue-blue-600), var(--sue-teal-600))":"var(--sue-bg-muted)",color:s||a?"white":"var(--sue-text-subtle)",border:s||a?"none":"1px solid var(--sue-border)",boxShadow:a?"0 4px 14px rgba(0,102,204,0.35)":"none"},children:s?e.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})}):t.n}),e.jsx("span",{style:{fontSize:12.5,fontWeight:a?700:500,color:a?"var(--sue-text)":"var(--sue-text-subtle)",whiteSpace:"nowrap"},children:t.label})]}),r<2&&e.jsx("span",{style:{flex:1,height:2,margin:"0 12px",borderRadius:2,background:f>t.n?"var(--sue-teal-600)":"var(--sue-border)",minWidth:24}})]},t.n)})})]})}),e.jsx("section",{style:{paddingBottom:64},children:e.jsx("div",{className:"sue-container",children:e.jsxs("div",{className:"sue-checkout-grid",children:[e.jsxs("div",{className:"sue-checkout-main",children:[f===1&&e.jsxs(e.Fragment,{children:[e.jsx(V,{number:"1",title:"Cho
1ose your plan",subtitle:"Pick the dedicated server tier that fits your sending volume.",children:e.jsx("div",{className:"sue-plan-picker",children:$e.map(t=>{const r=t.id===x;return e.jsxs("button",{type:"button",onClick:()=>pe(t.id),className:"sue-plan-pick",style:{border:r?`2px solid ${t.accent}`:"1px solid var(--sue-border)",background:r?`color-mix(in srgb, ${t.accent} 5%, white)`:"white",boxShadow:r?`0 6px 22px color-mix(in srgb, ${t.accent} 18%, transparent)`:"var(--sue-shadow-sm)",transform:r?"translateY(-2px)":"none"},children:[t.featured&&e.jsx("span",{className:"sue-plan-pick-badge",style:{background:t.accent},children:t.badge||"Popular"}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[e.jsx("span",{style:{fontSize:12,fontWeight:700,color:t.accent,letterSpacing:"0.05em",textTransform:"uppercase"},children:t.name}),e.jsx("span",{style:{width:18,height:18,borderRadius:"50%",border:`2px solid ${r?t.accent:"var(--sue-border)"}`,background:r?t.accent:"transparent",display:"grid",placeItems:"center",transition:"all 0.2s"},children:r&&e.jsx("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})})]}),e.jsxs("div",{style:{fontSize:22,fontWeight:800,color:"var(--sue-text)",letterSpacing:"-0.02em",marginBottom:4},children:["$",t.price.toFixed(2),e.jsx("span",{style:{fontSize:13,fontWeight:500,color:"var(--sue-text-muted)"},children:"/mo"})]}),e.jsx("p",{style:{fontSize:12.5,color:"var(--sue-text-muted)",lineHeight:1.5,margin:0},children:t.summary})]},t.id)})})}),e.jsx(V,{number:"2",title:"Choose your billing cycle",subtitle:"Longer cycles save real money. The setup fee is one-time regardless.",children:e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:10},children:Object.entries(ie).map(([t,r])=>{const s=t===E,a=qe(x,t),n=r.price/r.months;return e.jsxs("button",{type:"button",onClick:()=>Ne(t),className:"sue-plan-pick",style:{border:s?`2px solid ${i.accent}`:"1px solid var(--sue-border)",background:s?`color-mix(in srgb, ${i.accent} 6%, white)`:"white",padding:"14px 14px",borderRadius:"var(--sue-r-md)",textAlign:"left",fontFamily:"inherit",cursor:"pointer",position:"relative"},children:[a&&e.jsx("span",{style:{position:"absolute",top:-8,right:10,fontSize:9.5,fontWeight:700,padding:"3px 7px",borderRadius:999,background:"var(--sue-teal-600)",color:"white",letterSpacing:"0.04em"},children:a}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:4},children:[e.jsx("span",{style:{fontSize:12.5,fontWeight:700,color:s?i.accent:"var(--sue-text)",letterSpacing:"0.02em"},children:r.label}),e.jsx("span",{style:{width:16,height:16,borderRadius:"50%",border:`2px solid ${s?i.accent:"var(--sue-border)"}`,background:s?i.accent:"transparent",display:"grid",placeItems:"center",flexShrink:0},children:s&&e.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})})]}),e.jsxs("div",{style:{fontSize:16,fontWeight:800,color:"var(--sue-text)"},children:["$",r.price.toFixed(2),e.jsxs("span",{style:{fontSize:11,fontWeight:500,color:"var(--sue-text-muted)"},children:[" / ",r.months,r.months===1?"mo":"mo total"]})]}),r.months>1&&e.jsxs("div",{style:{fontSize:11,color:"var(--sue-text-subtle)",marginTop:2},children:["â $",n.toFixed(2),"/mo effective"]})]},t)})})}),e.jsxs("div",{style:{background:"var(--sue-bg-muted)",borderRadius:"var(--sue-r-lg)",border:"1px solid var(--sue-border)",padding:"14px 16px"},children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,color:"var(--sue-text-muted)",letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:10},children:"Desktop Software Tools"}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6},children:B.map(t=>{const r=t.plans[x],s=r?.type==="paid"&&String(P[t.slug])===String(x);return e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"10px 12px",borderRadius:8,background:"var(--sue-bg)",border:`1px solid ${r?.type==="free"?"#22C55E28":s?i.accent+"38":"var(--sue-border)"}`,opacity:r?1:.4},children:[e.jsx("span",{style:{fontSize:17,flexShrink:0,lineHeight:1},children:t.icon}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[e.jsx("span",{style:{fontSize:13,fontWeight:700,color:"var(--sue-text)"},children:t.name}),r?.type==="free"&&e.jsx("span",{style:{fontSize:10,fontWeight:800,color:"#22C55E",background:"#22C55E18",padding:"1px 6px",borderRadius:99},children:"FREE"}
1),!r&&e.jsx("span",{style:{fontSize:10,color:"var(--sue-text-subtle)"},children:"not included"})]}),e.jsx("div",{style:{fontSize:11,color:"var(--sue-text-subtle)",marginTop:2,lineHeight:1.35},children:r?`${t.shortDesc} · ${r.period}`:t.shortDesc})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexShrink:0},children:[e.jsx($,{to:`/software/${t.slug}`,target:"_blank",rel:"noopener",style:{fontSize:11,color:"var(--sue-text-muted)",textDecoration:"none",whiteSpace:"nowrap"},children:"Details â"}),r?.type==="free"&&e.jsx("span",{style:{fontSize:11,color:"#22C55E",fontWeight:600,whiteSpace:"nowrap"},children:"â Included"}),r?.type==="paid"&&(s?e.jsx("button",{type:"button",onClick:()=>L(a=>{const n={...a};return delete n[t.slug],n}),style:{fontSize:11,padding:"4px 10px",borderRadius:6,border:`1.5px solid ${i.accent}`,background:i.accent,color:"white",cursor:"pointer",fontWeight:700,whiteSpace:"nowrap",fontFamily:"inherit"},children:"Added â"}):e.jsxs("button",{type:"button",onClick:()=>L(a=>({...a,[t.slug]:x})),style:{fontSize:11,padding:"4px 10px",borderRadius:6,border:`1.5px solid ${i.accent}`,background:"transparent",color:i.accent,cursor:"pointer",fontWeight:700,whiteSpace:"nowrap",fontFamily:"inherit"},children:["Add ",r.label]}))]})]},t.slug)})})]}),F.filter(t=>!ce.includes(t.slug)).length>0&&e.jsx(V,{number:"2½",title:"Enhance your server (optional)",subtitle:"All add-ons are optional â leave any unselected to skip it. You can add them later from your dashboard.",children:e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:20},children:F.filter(t=>!ce.includes(t.slug)).map(t=>{const r=P[t.slug],s=r!==void 0,a=s?(t.options||[]).find(n=>String(n.value)===String(r)):null;return e.jsxs("div",{style:{border:`1px solid ${s?i.accent:"var(--sue-border)"}`,borderRadius:"var(--sue-r-lg)",overflow:"hidden",transition:"border-color .2s",boxShadow:s?`0 4px 16px color-mix(in srgb, ${i.accent} 10%, transparent)`:"none"},children:[e.jsxs("div",{style:{padding:"13px 16px",background:s?`color-mix(in srgb, ${i.accent} 5%, white)`:"var(--sue-bg-muted)",borderBottom:"1px solid var(--sue-border)",display:"flex",alignItems:"center",gap:12},children:[e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontSize:14,fontWeight:700,color:s?i.accent:"var(--sue-text)"},children:t.name}),t.description&&e.jsx("div",{style:{fontSize:12.5,color:"var(--sue-text-muted)",marginTop:2,lineHeight:1.4},children:t.description})]}),s&&a&&e.jsxs("div",{style:{textAlign:"right",flexShrink:0},children:[e.jsx("div",{style:{fontSize:13,fontWeight:800,color:i.accent},children:a.monthly>0?`+$${a.monthly}/mo`:`+$${a.setup} one-time`}),e.jsx("button",{type:"button",onClick:()=>L(n=>{const l={...n};return delete l[t.slug],l}),style:{fontSize:11,color:"#B91C1C",background:"none",border:"none",cursor:"pointer",padding:0,marginTop:2},children:"Remove"})]})]}),e.jsxs("div",{style:{background:"white",padding:"10px 12px",display:"flex",flexDirection:"column",gap:6},children:[e.jsxs("button",{type:"button",onClick:()=>L(n=>{const l={...n};return delete l[t.slug],l}),style:{display:"flex",alignItems:"center",gap:12,width:"100%",padding:"9px 12px",borderRadius:8,fontFamily:"inherit",border:`${s?"1px":"2px"} solid ${s?"var(--sue-border)":i.accent}`,background:s?"white":`color-mix(in srgb, ${i.accent} 5%, white)`,cursor:"pointer",textAlign:"left",transition:"all .15s"},children:[e.jsx("span",{style:{width:16,height:16,borderRadius:"50%",flexShrink:0,border:`2px solid ${s?"var(--sue-border)":i.accent}`,background:s?"transparent":i.accent,display:"grid",placeItems:"center",transition:"all .15s"},children:!s&&e.jsx("svg",{width:"7",height:"7",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"4",strokeLinecap:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}),e.jsx("span",{style:{flex:1,fontSize:13.5,fontWeight:600,color:s?"var(--sue-text-muted)":i.accent},children:"No thanks â not right now"}),e.jsx("span",{style:{fontSize:12.5,color:"var(--sue-text-subtle)",fontWeight:500,flexShrink:0},children:"$0.00/mo"})]}),(t.options||[]).map(n=>{const l=String(r)===String(n.value);return e.jsxs("button",{type:"button",onClick:()=>L(I=>l?(()=>{const w={...I};return delete w[t.slug],w})():{...I,[t.slug]:n.value}),style:{display:"flex",alignItems:"center",gap:12,width:"100%",padding:"9px 12px",borderRadius:8,fontFamily:"inherit",border:`${l?"2px":"1px"} solid ${l?i.accent:"var(--sue-border)"}`,background:l?`color-mix(in srgb, ${i.accent} 6%, white)`:"white",cursor:"pointer",textAlign:"left",transition:"all .15s"},children:[e.jsx("span",{style:{width:16,height:16,borderRadius:"50%",flexShrink:0,border:`2px solid ${l?i.accent:"var(--sue-border)"}`,background:l?i.accent:"transparent",display:"grid",placeItems:"center",transition:"all .15s"},children:l&&e.jsx("svg",{width:"7",height:"7",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"4",strokeLinecap:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}),e.jsxs("span",{style:{flex:1,minWidth:0},children:[e.jsx("span",{style:{fontSize:13.5,fontWeight:700,color:l?i.accent:"var(--sue-text)"},children:n.label}),n.monthly>0&&n.setup>0&&e.jsxs("span",{style:{fontSize:12,color:"var(--sue-text-subtle)",marginLeft:8},children:["· $",n.setup," one-time setup"]})]}),e.jsx("span",{style:{fontSize:14,fontWeight:800,color:l?i.accent:"var(--sue-text-muted)",flexShrink:0},children:n.monthly>0?e.jsxs(e.Fragment,{children:["+$",n.monthly,e.jsx("span",{style:{fontSize:11,fontWeight:500},children:"/mo"})]}):e.jsxs(e.Fragment,{children:["+$",n.setup,e.jsx("span",{style:{fontSize:11,fontWeight:500},children:" one-time"})]})})]},n.value)})]})]},t.slug)})})})]}),f===2&&e.jsxs(e.Fragment,{children:[e.jsxs(V,{ref:_,number:"3",title:"Your account",subtitle:p==="authed"?`Signed in as ${m?.name||m?.email}.`:p==="signin"?"Sign in to your existing SendUnlimitedEmail account.":"Create an account so you can manage your server, billing, and support tickets.",children:[p==="authed"?e.jsxs("div",{style:{padding:"16px 18px",background:"linear-gradient(135deg, color-mix(in srgb, var(--sue-teal-600) 10%, white), white)",border:"1px solid color-mix(in srgb, var(--sue-teal-600) 30%, transparent)",borderRadius:"var(--sue-r-md)",display:"flex",alignItems:"center",gap:14},children:[e.jsx("div",{style:{width:44,height:44,borderRadius:"50%",background:"linear-gradient(135deg, var(--sue-blue-600), var(--sue-teal-600))",color:"white",display:"grid",placeItems:"center",fontSize:18,fontWeight:700,flexShrink:0},children:(m?.name||m?.email||"?").charAt(0).toUpperCase()}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontSize:14,fontWeight:700,color:"var(--sue-text)"},children:m?.name||"Signed in"}),e.jsx("div",{style:{fontSize:12.5,color:"var(--sue-text-muted)",overflow:"hidden",textOverflow:"ellipsis"},children:m?.email})]}),e.jsx("button",{type:"button",onClick:()=>{try{localStorage.removeItem("token"),localStorage.removeItem("user")}catch{}N("signup"),C({email:"",firstName:"",lastName:""})},className:"sue-btn sue-btn-ghost sue-btn-sm",style:{flexShrink:0},children:"Sign out"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{display:"flex",gap:4,padding:4,background:"var(--sue-bg-muted)",borderRadius:999,marginBottom:16,maxWidth:320},children:[e.jsx("button",{type:"button",onClick:()=>N("signup"),style:{flex:1,padding:"8px 14px",borderRadius:999,border:"none",background:p==="signup"?"white":"transparent",color:p==="signup"?"var(--sue-blue-600)":"var(--sue-text-muted)",fontWeight:600,fontSize:13,cursor:"pointer",boxShadow:p==="signup"?"var(--sue-shadow-sm)":"none",transition:"all 0.2s",fontFamily:"inherit"},children:"New customer"}),e.jsx("button",{type:"button",onClick:()=>N("signin"),style:{flex:1,padding:"8px 14px",borderRadius:999,border:"none",background:p==="signin"?"white":"transparent",color:p==="signin"?"var(--sue-blue-600)":"var(--sue-text-muted)",fontWeight:600,fontSize:13,cursor:"pointer",boxShadow:p==="signin"?"var(--sue-shadow-sm)":"none",transition:"all 0.2s",fontFamily:"inherit"},children:"I have an account"})]}),p==="signup"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"sue-form-row-2",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:14},children:[e.jsx(T,{label:"First name",required:!0,error:b.firstName,children:e.jsx("input",{className:"sue-co-input",type:"text",required:!0,autoComplete:"given-name",placeholder:"Jane",value:o.firstName,style:b.firstName?{borderColor:"#DC2626",background:"rgba(220,38,38,0.04)"}:{},onChange:t=>{C(r=>({...r,firstName:t.target.value})),j(r=>({...r,firstName:void 0}))}})}),e.jsx(T,{label:"Last name",required:!0,error:b.lastName,children:e.jsx("input",{className:"sue-co-input",type:"text",required:!0,autoComplete:"family-name",placeholder:"Smith",value:o.lastName,style:b.lastName?{borderColor:"#DC2626",background:"rgba(220,38,38,0.04)"}:{},onChange:t=>{C(r=>({...r,lastName:t.target.value})),j(r=>({...r,lastName:void 0}))}})})]}),e.jsx(T,{label:"Email address",required:!0,style:{marginTop:14},error:b.email,children:e.jsx("input",{className:"sue-co-input",type:"email",required:!0,autoComplete:"email",placeholder:"[email protected]",value:o.email,style:b.email?{borderColor:"#DC2626",background:"rgba(220,38,38,0.04)"}:{},onChange:t=>{C(r=>({...r,email:t.target.value})),j(r=>({...r,email:void 0}))}})}),e.jsxs("div",{className:"sue-form-row-2",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:14,marginTop:14},children:[e.jsx(T,{label:"Password",required:!0,error:b.password,children:e.jsx("input",{className:"sue-co-input",type:"password",required:!0,minLength:8,autoComplete:"new-password",placeholder:"Min. 8 characters",value:o.password,style:b.password?{borderColor:"#DC2626",background:"rgba(220,38,38,0.04)"}:{},onChange:t=>{C(r=>({...r,password:t.target.value})),j(r=>({...r,password:void 0,confirmPassword:void 0}))}})}),e.jsx(T,{label:"Confirm password",required:!0,error:b.confirmPassword,children:e.jsx("input",{className:"sue-co-input",type:"password",required:!0,autoComplete:"new-password",placeholder:"Repeat password",value:o.confirmPassword,style:b.confirmPassword?{borderColor:"#DC2626",background:"rgba(220,38,38,0.04)"}:{},onChange:t=>{C(r=>({...r,confirmPassword:t.target.value})),j(r=>({...r,confirmPassword:void 0}))}})})]}),e.jsxs("div",{style:{marginTop:8,fontSize:12,color:"var(--sue-text-subtle)",display:"flex",alignItems:"center",gap:5},children:[e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),"Your account gives you access to server credentials, invoices, and support tickets."]}),Pe&&e.jsxs("div",{style:{marginTop:10,padding:"10px 14px",background:"#FFF8EE",border:"1px solid #FCD9A0",borderRadius:8,fontSize:13,color:"#7A4F00",display:"flex",alignItems:"center",justifyContent:"space-between",gap:10,flexWrap:"wrap"},children:[e.jsx("span",{children:"This email already has an account."}),e.jsx("button",{type:"button",onClick:()=>N("signin"),className:"sue-btn sue-btn-outline sue-btn-sm",children:"Sign in instead â"})]})]}):e.jsxs("form",{onSubmit:Re,children:[e.jsx(T,{label:"Email address",required:!0,error:b.email,children:e.jsx("input",{className:"sue-co-input",type:"email",required:!0,autoComplete:"email",placeholder:"[email protected]",value:o.email,style:b.email?{borderColor:"#DC2626",background:"rgba(220,38,38,0.04)"}:{},onChange:t=>{C(r=>({...r,email:t.target.value})),j(r=>({...r,email:void 0}))}})}),e.jsx(T,{label:"Password",required:!0,style:{marginTop:14},error:b.signInPwd,children:e.jsx("input",{className:"sue-co-input",type:"password",required:!0,minLength:6,autoComplete:"current-password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:G,style:b.signInPwd?{borderColor:"#DC2626",background:"rgba(220,38,38,0.04)"}:{},onChange:t=>{fe(t.target.value),j(r=>({...r,signInPwd:void 0}))}})}),ve&&e.jsx("div",{style:{marginTop:10,padding:"10px 14px",background:"rgba(220,38,38,0.06)",border:"1px solid rgba(220,38,38,0.2)",borderRadius:8,color:"#B91C1C",fontSize:13},children:ve}),e.jsxs("div",{style:{display:"flex",gap:10,marginTop:14,alignItems:"center",justifyContent:"space-between",flexWrap:"wrap"},children:[e.jsx($,{to:"/forgot-password",style:{fontSize:13,color:"var(--sue-blue-600)",textDecoration:"none",fontWeight:600},children:"Forgot password?"}),e.jsx("button",{type:"submit",disabled:be||!o.email||!G,className:"sue-btn sue-btn-primary",style:{minWidth:140,justifyContent:"center"},children:be?"Signing inâ¦":"Sign In â"})]})]})]}),e.jsxs("p",{style:{fontSize:12.5,color:"var(--sue-text-subtle)",marginTop:14,display:"flex",alignItems:"center",gap:6},children:[e.jsx(Y,{kind:"lock",color:"var(--sue-text-subtle)"}),"Your dashboard tracks provisioning, reveals SMTP credentials, and stores invoices."]})]}),e.jsxs(V,{number:"4",title:"How would you like to pay?",subtitle:"Pick a payment method. Crypto address is generated per order â no fixed wallet to memorise.",children:[e.jsx("div",{className:"sue-method-picker",children:de.map(t=>{const r=t.id===y,s=K===null?!0:K.has(t.id==="moonpay"?"btc":t.id);return e.jsxs("button",{type:"button",disabled:!s,onClick:()=>s&&ee(t.id),title:s?"":"This method is not available right now â please pick another",className:"sue-method",style:{border:r?`2px solid ${t.color}`:"1px solid var(--sue-border)",background:r?t.bg:"white",boxShadow:r?`0 4px 14px color-mix(in srgb, ${t.color} 20%, transparent)`:"none",transform:r?"translateY(-1px)":"none",opacity:s?1:.45,cursor:s?"pointer":"not-allowed",position:"relative"},children:[!s&&e.jsx("span",{style:{position:"absolute",top:8,right:12,fontSize:9.5,fontWeight:700,padding:"2px 6px",borderRadius:999,background:"var(--sue-text-subtle)",color:"white",letterSpacing:"0.04em"},children:"UNAVAILABLE"}),e.jsx("div",{style:{width:36,height:36,borderRadius:8,background:t.bg,display:"grid",placeItems:"center",flexShrink:0,border:`1px solid ${r?t.color:"var(--sue-border)"}`},children:e.jsx(A,{kind:t.icon,color:t.color})}),e.jsxs("div",{style:{flex:1,textAlign:"left"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:7,marginBottom:2,flexWrap:"wrap"},children:[e.jsx("span",{style:{fontSize:14,fontWeight:700,color:"var(--sue-text)"},children:t.name}),t.badge&&e.jsx("span",{style:{fontSize:10,fontWeight:700,padding:"2px 7px",borderRadius:999,background:t.color,color:"white",letterSpacing:"0.02em"},children:t.badge})]}),e.jsx("p",{style:{fontSize:12,color:"var(--sue-text-muted)",margin:0,lineHeight:1.4},children:t.description}),r&&t.notes&&e.jsxs("p",{style:{fontSize:11.5,color:t.color,fontWeight:600,margin:"6px 0 0",display:"flex",alignItems:"center",gap:5},children:[e.jsx("span",{style:{width:5,height:5,borderRadius:"50%",background:t.color,display:"inline-block"}}),t.notes]})]}),e.jsx("div",{style:{width:18,height:18,borderRadius:"50%",border:`2px solid ${r?t.color:"var(--sue-border)"}`,background:r?t.color:"transparent",display:"grid",placeItems:"center",flexShrink:0,transition:"all 0.2s"}
1,children:r&&e.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})})]},t.id)})}),(y==="btc"||y==="usdt")&&e.jsxs("div",{style:{marginTop:16,padding:"14px 16px",background:"linear-gradient(135deg, #FFF8EE 0%, #FFFCF5 100%)",border:"1px solid #FCD9A0",borderRadius:10,display:"flex",gap:12,alignItems:"flex-start"},children:[e.jsx("div",{style:{width:32,height:32,borderRadius:8,background:"#F7931A",color:"white",display:"grid",placeItems:"center",flexShrink:0},children:e.jsx(A,{kind:"bitcoin",color:"white"})}),e.jsxs("div",{style:{fontSize:12.5,color:"#7A4F00",lineHeight:1.55},children:[e.jsx("strong",{style:{color:"#542F00"},children:"How crypto checkout works:"})," on the next page you pick your coin â Bitcoin, Ethereum, USDT and 10+ others â then receive a freshly-generated wallet address with a QR code, the exact amount in your chosen coin, and a 60-minute payment window. Once one network confirmation arrives, your dedicated server is provisioned automatically. No KYC, no signup spam, no tracking pixels."]})]}),y==="moonpay"&&e.jsxs("div",{style:{marginTop:16,padding:"14px 16px",background:"linear-gradient(135deg, #F5F0FF 0%, #FBFAFF 100%)",border:"1px solid #DDD0FA",borderRadius:10,display:"flex",gap:12,alignItems:"flex-start"},children:[e.jsx("div",{style:{width:32,height:32,borderRadius:8,background:"#5B21B6",color:"white",display:"grid",placeItems:"center",flexShrink:0},children:e.jsx(A,{kind:"card",color:"white"})}),e.jsxs("div",{style:{fontSize:12.5,color:"#4C1D95",lineHeight:1.55},children:[e.jsx("strong",{style:{color:"#3B1470"},children:"How card payment works:"}),` on the next page you'll get a "Continue to MoonPay" button â it opens MoonPay's secure, licensed checkout in a new tab where you buy Bitcoin with your card. Come back and confirm, and once it's verified your dedicated server is provisioned automatically. Your card details are handled entirely by MoonPay â this site never sees or stores them.`]})]}),y==="wire"&&e.jsxs("div",{style:{marginTop:16,padding:"14px 16px",background:"linear-gradient(135deg, #ECFDF9 0%, #F7FFFE 100%)",border:"1px solid #99E6D9",borderRadius:10,display:"flex",gap:12,alignItems:"flex-start"},children:[e.jsx("div",{style:{width:32,height:32,borderRadius:8,background:"#0F766E",color:"white",display:"grid",placeItems:"center",flexShrink:0},children:e.jsx(A,{kind:"message",color:"white"})}),e.jsxs("div",{style:{fontSize:12.5,color:"#0B5952",lineHeight:1.55},children:[e.jsx("strong",{style:{color:"#053A35"},children:"How it works:"})," on the next page, tell us how you'd like to pay â bank wire, ACH, a check, a company PO, a coin we don't list, whatever works for you. Our billing team reviews every request personally and replies by email with the exact steps, usually within a few hours. No fixed instructions to guess at â just tell us your situation."]})]})]}),e.jsxs("div",{style:{marginTop:20,padding:"14px 16px",background:"var(--sue-bg-muted)",border:"1px solid var(--sue-border)",borderRadius:8},children:[e.jsx("div",{style:{fontSize:12.5,fontWeight:600,color:"var(--sue-text-muted)",marginBottom:8},children:"Have a coupon or promo code?"}),v?e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"10px 12px",background:"#DCFCE7",border:"1px solid #86EFAC",borderRadius:8},children:[e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#16A34A",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})}),e.jsxs("div",{style:{flex:1,fontSize:13},children:[e.jsx("span",{style:{fontWeight:700,color:"#166534"},children:v.code}),e.jsxs("span",{style:{color:"#15803D"},children:[" â ",v.description||`${v.type==="percent"?v.value+"%":"$"+v.value} off`]}),e.jsxs("span",{style:{color:"#16A34A",fontWeight:700,marginLeft:8},children:["â$",oe.toFixed(2)]})]}),e.jsx("button",{type:"button",onClick:()=>{se(null),re(""),M("")},style:{background:"none",border:"none",cursor:"pointer",color:"#B91C1C",fontSize:12.5,fontWeight:600,padding:0},children:"Remove"})]}):e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx("input",{className:"sue-co-input",type:"text",placeholder:"Enter coupon code",value:te,onChange:t=>{re(t.target.value.toUpperCase()),M("")},onKeyDown:t=>t.key==="Enter"&&je(),style:{flex:1,textTransform:"uppercase",letterSpacing:"0.05em"},"data-coupon":"true"}),e.jsx("button",{type:"button",onClick:je,disabled:ge||!te.trim(),className:"sue-btn sue-btn-outline",style:{flexShrink:0,fontWeight:700,minWidth:80},children:ge?"â¦":"Apply"})]}),xe&&e.jsxs("div",{style:{marginTop:8,fontSize:12.5,color:"#B91C1C",display:"flex",alignItems:"center",gap:5},children:[e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("circle",{cx:"12",cy:"16",r:"0.5",fill:"currentColor"})]}),xe]})]}),e.jsx("div",{style:{marginTop:20,padding:"14px 16px",background:"var(--sue-bg-muted)",border:"1px solid var(--sue-border)",borderRadius:8},children:e.jsxs("label",{style:{display:"flex",gap:10,alignItems:"flex-start",cursor:"pointer",fontSize:13.5,color:"var(--sue-text-muted)"},children:[e.jsx("input",{type:"checkbox",checked:D,onChange:t=>Fe(t.target.checked),style:{marginTop:3,width:16,height:16,accentColor:"var(--sue-blue-600)"}}),e.jsxs("span",{children:["I agree to the ",e.jsx($,{to:"/terms",target:"_blank",style:{color:"var(--sue-blue-600)",fontWeight:600},children:"Terms of Service"}),", ",e.jsx($,{to:"/privacy",target:"_blank",style:{color:"var(--sue-blue-600)",fontWeight:600},children:"Privacy Policy"}),", and ",e.jsx($,{to:"/refunds",target:"_blank",style:{color:"var(--sue-blue-600)",fontWeight:600},children:"Refund Policy"})," â including our cancellation and refund policy."]})]})}),e.jsx("button",{type:"button",onClick:()=>ne(1),style:{marginTop:16,background:"none",border:"none",cursor:"pointer",fontFamily:"inherit",fontSize:13.5,fontWeight:600,color:"var(--sue-text-muted)",display:"inline-flex",alignItems:"center",gap:6,padding:0},children:"â Back to server configuration"})]})]}),e.jsxs("aside",{className:`sue-checkout-summary${f===2?" sue-checkout-summary--after":""}`,children:[e.jsxs("div",{style:{background:"white",border:"1px solid var(--sue-border)",borderRadius:"var(--sue-r-xl)",padding:"24px 22px",boxShadow:"0 10px 30px rgba(0,30,60,0.06)",position:"sticky",top:90},children:[f===2&&e.jsxs("div",{style:{marginBottom:18},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:10},children:[e.jsx("div",{style:{fontSize:12,fontWeight:800,letterSpacing:"0.04em",color:"var(--sue-text)"},children:"How would you like to pay?"}),e.jsx("span",{style:{fontSize:9.5,fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase",color:"var(--sue-teal-600)",background:"color-mix(in srgb, var(--sue-teal-600) 10%, white)",border:"1px solid color-mix(in srgb, var(--sue-teal-600) 25%, transparent)",padding:"2px 7px",borderRadius:999},children:"Secure"})]}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:7},children:de.map(t=>{const r=t.id===y,s=!K||K.has(t.id==="moonpay"?"btc":t.id);return e.jsxs("button",{type:"button",onClick:()=>s&&ee(t.id),title:s?t.description:`${t.name} â unavailable`,"aria-label":t.name,"aria-pressed":r,disabled:!s,style:{position:"relative",display:"flex",alignItems:"center",gap:8,border:r?`2px solid ${t.color}`:"1px solid var(--sue-border)",background:r?`linear-gradient(135deg, ${t.bg}, color-mix(in srgb, ${t.bg} 60%, white))`:s?"white":"var(--sue-bg-muted)",borderRadius:9,padding:r?"8px 9px":"9px 10px",cursor:s?"pointer":"not-allowed",opacity:s?1:.5,transition:"all 0.15s",fontFamily:"inherit",textAlign:"left",boxShadow:r?`0 4px 12px color-mix(in srgb, ${t.color} 22%, transparent)`:"none"},children:[e.jsx("span",{style:{width:28,height:28,borderRadius:7,background:t.bg,display:"grid",placeItems:"center",flexShrink:0,border:r?`1px solid ${t.color}`:"1px solid transparent"},children:e.jsx(A,{kind:t.icon,color:t.color})}),e.jsxs("span",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:1},children:[e.jsx("span",{style:{fontSize:12,fontWeight:700,color:r?t.color:"var(--sue-text)",lineHeight:1.2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.short}),t.badge?e.jsx("span",{style:{fontSize:9,fontWeight:700,color:t.color,letterSpacing:"0.04em",textTransform:"uppercase",lineHeight:1.1},children:t.badge}):e.jsx("span",{style:{fontSize:9.5,color:"var(--sue-text-subtle)",letterSpacing:"0.02em",lineHeight:1.1},children:t.instant?"Instant":t.id==="wire"?"1â3 days":"Confirm"})]}),r&&e.jsx("span",{style:{position:"absolute",top:-5,right:-5,width:16,height:16,borderRadius:"50%",background:t.color,border:"2px s
1olid white",display:"grid",placeItems:"center",boxShadow:`0 2px 6px color-mix(in srgb, ${t.color} 40%, transparent)`},children:e.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})})]},t.id)})}),S&&e.jsxs("div",{style:{marginTop:10,padding:"9px 11px",background:`linear-gradient(135deg, ${S.bg}, color-mix(in srgb, ${S.bg} 50%, white))`,border:`1px solid color-mix(in srgb, ${S.color} 22%, var(--sue-border))`,borderRadius:8,display:"flex",alignItems:"center",gap:8},children:[e.jsx("span",{style:{width:22,height:22,borderRadius:5,background:"white",display:"grid",placeItems:"center",border:`1px solid color-mix(in srgb, ${S.color} 30%, transparent)`,flexShrink:0},children:e.jsx(A,{kind:S.icon,color:S.color})}),e.jsxs("span",{style:{flex:1,minWidth:0},children:[e.jsx("span",{style:{display:"block",fontSize:11.5,fontWeight:700,color:S.color,letterSpacing:"0.02em",lineHeight:1.2},children:S.name}),e.jsx("span",{style:{display:"block",fontSize:10.5,color:"var(--sue-text-muted)",marginTop:1,lineHeight:1.3},children:S.notes||(S.instant?"Instant settlement":"Confirmation required")})]})]}),e.jsxs("div",{style:{marginTop:10,display:"flex",alignItems:"center",justifyContent:"center",gap:5,fontSize:10.5,color:"var(--sue-text-subtle)"},children:[e.jsx(Y,{kind:"lock",color:"var(--sue-text-subtle)"}),e.jsx("span",{children:"256-bit TLS · PCI-DSS · No card data stored"})]})]}),f===2&&e.jsx("div",{style:{height:1,background:"var(--sue-border)",margin:"0 0 16px"}}),e.jsx("div",{style:{fontSize:11,fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",color:i.accent,marginBottom:14},children:"Order Summary"}),e.jsx("div",{style:{padding:"14px 14px",background:`linear-gradient(135deg, color-mix(in srgb, ${i.accent} 8%, white), color-mix(in srgb, ${i.accent} 3%, white))`,border:`1px solid color-mix(in srgb, ${i.accent} 25%, var(--sue-border))`,borderRadius:10,marginBottom:16},children:e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:12},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:13.5,fontWeight:700,color:"var(--sue-text)",marginBottom:2},children:i.fullName}),e.jsxs("div",{style:{fontSize:11.5,color:"var(--sue-text-muted)"},children:[R.label," billing · auto-renews"]})]}),e.jsxs("div",{style:{fontSize:18,fontWeight:800,color:i.accent,whiteSpace:"nowrap"},children:["$",H.toFixed(2)]})]})}),B.map(t=>{const r=t.plans[x],s=r?.type==="free",a=r?.type==="paid"&&String(P[t.slug])===String(x);return!s&&!a?null:e.jsx("div",{style:{marginBottom:8,padding:"9px 12px",background:s?"linear-gradient(135deg, #0F172A, #1E293B)":"var(--sue-bg-muted)",borderRadius:9,border:`1px solid ${s?"#334155":"var(--sue-border)"}`},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:9},children:[e.jsx("span",{style:{fontSize:14,flexShrink:0},children:t.icon}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontSize:12,fontWeight:700,color:s?"#CBD5E1":"var(--sue-text)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.name}),e.jsx("div",{style:{fontSize:10.5,color:"#64748B",marginTop:1},children:r.period})]}),e.jsx("span",{style:{fontSize:11.5,fontWeight:800,color:s?"#22C55E":"var(--sue-text)",flexShrink:0},children:s?"FREE":`+$${r.price.toFixed(2)}`})]})},t.slug)}),q.map(t=>{const r=F.find(s=>s.slug===t.slug);return e.jsx("div",{style:{marginBottom:8,padding:"9px 12px",background:"var(--sue-bg-muted)",borderRadius:9,border:"1px solid var(--sue-border)"},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:9},children:[e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontSize:12,fontWeight:700,color:"var(--sue-text)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:r?.name||t.slug}),e.jsx("div",{style:{fontSize:10.5,color:"#64748B",marginTop:1},children:t.label})]}),e.jsxs("span",{style:{fontSize:11.5,fontWeight:700,color:"var(--sue-text)",flexShrink:0},children:[t.monthly>0?`+$${t.monthly.toFixed(2)}/mo`:"",t.setup>0?`${t.monthly>0?" + ":"+"}$${t.setup.toFixed(2)} setup`:""]})]})},t.slug)}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:9,fontSize:13.5},children:[e.jsx(z,{label:`${R.label} subtotal`,value:`$${H.toFixed(2)}`}),e.jsx(z,{label:"One-time setup fee",value:X>0?`$${X.toFixed(2)}`:"Free",valueColor:X>0?"var(--sue-text)":"var(--sue-teal-600)"}),q.map(t=>t.monthly>0&&e.jsx(z,{label:`${F.find(r=>r.slug===t.slug)?.name||t.slug}`,value:`+$${t.monthly.toFixed(2)}/mo`},`${t.slug}-mo`)),q.map(t=>t.setup>0&&e.jsx(z,{label:`${F.find(r=>r.slug===t.slug)?.name||t.slug} (setup)`,value:`+$${t.setup.toFixed(2)}`},`${t.slug}-setup`)),B.map(t=>t.plans[x]?.type!=="free"?null:e.jsx(z,{label:t.name,value:"FREE",valueColor:"var(--sue-teal-600)"},t.slug)),B.map(t=>{const r=t.plans[x];return r?.type!=="paid"||String(P[t.slug])!==String(x)?null:e.jsx(z,{label:t.name,value:`+$${r.price.toFixed(2)}`},t.slug)}),v&&e.jsx(z,{label:`Coupon: ${v.code}`,value:`â$${oe.toFixed(2)}`,valueColor:"#16A34A"}),e.jsx(z,{label:"Tax",value:"Calculated at next step",valueColor:"var(--sue-text-subtle)",small:!0})]}),e.jsx("div",{style:{height:1,background:"var(--sue-border)",margin:"14px 0"}}),e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline"},children:[e.jsx("span",{style:{fontSize:14,fontWeight:700,color:"var(--sue-text)"},children:"Due today"}),e.jsxs("span",{style:{fontSize:24,fontWeight:800,color:"var(--sue-text)",letterSpacing:"-0.02em"},children:["$",ae.toFixed(2),e.jsx("span",{style:{fontSize:12,fontWeight:500,color:"var(--sue-text-muted)"},children:" USD"})]})]}),e.jsx("div",{style:{marginTop:6,fontSize:11.5,color:"var(--sue-text-subtle)",textAlign:"right"}
1,children:Se===1?`Then $${H.toFixed(2)} / month thereafter`:`Equivalent to $${Le.toFixed(2)}/mo · renews ${R.label.toLowerCase()}`}),f===1?e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>ne(2),type:"button",className:"sue-btn sue-btn-primary sue-btn-lg",style:{width:"100%",justifyContent:"center",marginTop:18,background:"linear-gradient(135deg, var(--sue-blue-600), var(--sue-teal-600))",border:"none",boxShadow:"0 10px 28px rgba(0,102,204,0.32)"},children:"Continue to account & payment â"}),e.jsx("p",{style:{fontSize:11.5,color:"var(--sue-text-subtle)",textAlign:"center",margin:"10px 0 0",lineHeight:1.5},children:"Nothing is charged yet â you review everything before paying."})]}):e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:De,disabled:!D||J,type:"button",className:"sue-btn sue-btn-primary sue-btn-lg",style:{width:"100%",justifyContent:"center",marginTop:18,opacity:!D||J?.55:1,cursor:!D||J?"not-allowed":"pointer",background:"linear-gradient(135deg, var(--sue-blue-600), var(--sue-teal-600))",border:"none",boxShadow:"0 10px 28px rgba(0,102,204,0.32)"},children:J?"Redirecting to secure portalâ¦":e.jsxs(e.Fragment,{children:[e.jsx(Y,{kind:"lock",color:"white"}),e.jsxs("span",{style:{marginLeft:6},children:["Place order · $",ae.toFixed(2)]})]})}),e.jsx("p",{style:{fontSize:11.5,color:"var(--sue-text-subtle)",textAlign:"center",margin:"10px 0 0",lineHeight:1.5},children:"Your payment is processed securely. You will not be charged until you confirm on the next step."})]}),e.jsx("div",{style:{marginTop:18,paddingTop:16,borderTop:"1px solid var(--sue-border)",display:"flex",flexDirection:"column",gap:9},children:Ue.map(t=>e.jsxs("div",{style:{display:"flex",gap:9,alignItems:"center",fontSize:12.5,color:"var(--sue-text-muted)"},children:[e.jsx(Y,{kind:t.icon,color:"var(--sue-blue-600)"}),e.jsx("span",{children:t.label})]},t.label))})]}),e.jsxs("div",{style:{marginTop:16,padding:"14px 18px",background:"var(--sue-bg-muted)",border:"1px solid var(--sue-border)",borderRadius:10,fontSize:13,color:"var(--sue-text-muted)",textAlign:"center"},children:["Questions? ",e.jsx($,{to:"/contact",style:{color:"var(--sue-blue-600)",fontWeight:600},children:"Talk to a specialist"}),e.jsx("br",{}),e.jsx("span",{style:{fontSize:11.5,color:"var(--sue-text-subtle)"},children:"Average response: under 6 hours · 24/7"})]})]})]})})}),e.jsx("section",{className:"sue-section sue-section-alt",style:{paddingTop:56,paddingBottom:56},children:e.jsxs("div",{className:"sue-container",children:[e.jsxs("div",{className:"sue-section-header sue-reveal",style:{maxWidth:720},children:[e.jsxs("span",{className:"sue-eyebrow",children:[e.jsx("span",{className:"sue-eyebrow-dot"}),"Why It is Safe"]}),e.jsx("h2",{className:"sue-h2",style:{marginTop:12,fontSize:30},children:"Pay with confidence"}),e.jsx("p",{className:"sue-section-lead",style:{fontSize:15.5},children:"Your card never touches our servers. The billing portal runs behind Cloudflare, payment is processed directly by the gateway, and crypto is settled on-chain â no intermediary holds your funds."})]}),e.jsx("div",{className:"sue-checkout-trust-grid",children:[{icon:"lock",title:"PCI-compliant gateway",body:"Card data flows directly from your browser to a PCI-DSS Level 1 certified processor. We never see, store, or transmit your card number."},{icon:"shield",title:"Cancel anytime",body:"Monthly billing with no long-term contract. Cancel any future cycle anytime from your dashboard. We absorb the IP-warm-up cost on our side."},{icon:"server",title:"Real dedicated server",body:"Each plan ships with its own server and dedicated IPs. Provisioning starts within minutes of payment confirmation, ready in 1â4 hours."},{icon:"support",title:"24/7 human support",body:"Real engineers, not bots. Average first-response under 6 hours, free IP-reputation monitoring on every plan."}].map((t,r)=>e.jsxs("div",{className:`sue-reveal sue-delay-${r+1}`,style:{background:"white",border:"1px solid var(--sue-border)",borderRadius:"var(--sue-r-lg)",padding:"22px 22px",boxShadow:"var(--sue-shadow-sm)"},children:[e.jsx("div",{style:{width:38,height:38,borderRadius:9,background:"linear-gradient(135deg, var(--sue-blue-600), var(--sue-teal-600))",display:"grid",placeItems:"center",marginBottom:14},children:e.jsx(Y,{kind:t.icon,color:"white"})}),e.jsx("h3",{style:{fontSize:15,fontWeight:700,color:"var(--sue-text)",marginBottom:8,letterSpacing:"-0.01em"},children:t.title}),e.jsx("p",{style:{fontSize:13.5,color:"var(--sue-text-muted)",lineHeight:1.6,margin:0},children:t.body})]},t.title))})]})})]})}const V=d.forwardRef(function({number:c,title:u,subtitle:h,children:m},x){return e.jsxs("div",{ref:x,className:"sue-co-step sue-reveal",style:{background:"white",border:"1px solid var(--sue-border)",borderRadius:"var(--sue-r-xl)",padding:"24px 24px",marginBottom:20,boxSh
1adow:"var(--sue-shadow-sm)",scrollMarginTop:80},children:[e.jsxs("div",{style:{display:"flex",gap:14,alignItems:"flex-start",marginBottom:18},children:[e.jsx("div",{style:{width:32,height:32,borderRadius:"50%",background:"linear-gradient(135deg, var(--sue-blue-600), var(--sue-teal-600))",color:"white",display:"grid",placeItems:"center",fontSize:14,fontWeight:700,flexShrink:0,boxShadow:"0 6px 18px rgba(0,102,204,0.32)"},children:c}),e.jsxs("div",{style:{flex:1},children:[e.jsx("div",{style:{fontSize:17,fontWeight:700,color:"var(--sue-text)",marginBottom:2,letterSpacing:"-0.01em"},children:u}),h&&e.jsx("div",{style:{fontSize:13,color:"var(--sue-text-muted)"},children:h})]})]}),m]})});function T({label:g,required:c,children:u,style:h,error:m}){return e.jsxs("div",{style:h,children:[e.jsxs("label",{style:{display:"block",fontSize:12.5,fontWeight:600,color:m?"#DC2626":"var(--sue-text-muted)",marginBottom:6},children:[g," ",c&&e.jsx("span",{style:{color:"#DC2626"},children:"*"})]}),u,m&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:5,marginTop:5,fontSize:12,color:"#DC2626",fontWeight:500},children:[e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("circle",{cx:"12",cy:"16",r:"0.5",fill:"currentColor"})]}),m]})]})}function z({label:g,value:c,valueColor:u,small:h}){return e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",fontSize:h?12:13.5},children:[e.jsx("span",{style:{color:"var(--sue-text-muted)"},children:g}),e.jsx("span",{style:{color:u||"var(--sue-text)",fontWeight:h?500:600,fontFamily:"monospace"},children:c})]})}export{Je as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.