1import{j as e,r as m,b as Ee,L as Ie}from"./react-vendor-QDf--E66.js";import{g as fe,e as ze,f as Oe,R as Ue,o as Be,i as pe,j as Fe,l as Ke}from"./auth-Dv5aAREk.js";import{f as z,a as Ve,g as Q}from"./timeSync-aVv4ANPJ.js";import{i as Ge}from"./razorpay-tuGaIV3V.js";import{g as he,d as We,a as M,b as Ye,c as k,f as S,e as E,s as He}from"./pricing-BNIcWxC0.js";import{X as qe,G,Z as X,w as Qe,x as be,M as Je,g as V,y as Ze,c as ge,D as Xe,z as et,R as tt,B as J,P as Z,a as K,J as ue,E as st}from"./icons--aatHFmC.js";import{C as at}from"./CurrencyToggle-COuWgzgR.js";import{a as rt,H as lt,b as nt}from"./index-CLMypnZ3.js";import{B as it}from"./BrandLogo-DzlJWrum.js";import{t as ot,F as ct}from"./funnelAnalytics-CILwnMOG.js";import{u as dt}from"./useSaleConfig-ClqxtUsc.js";import"./firebase-CsTBSPy5.js";import"./config-BsBLrHUs.js";function mt({open:l,onClose:f,referralCode:r,referralLink:b,userData:P,onCopy:C}){if(!l)return null;const c=fe(P),i=ze(b,r),p=Math.round(c.milestoneProgress*100),A=async()=>{if(typeof navigator<"u"&&navigator.share)try{await navigator.share({title:"CrackInterviewAI invite",text:i,url:b});return}catch{}C?.()};return e.jsx("div",{className:"fixed inset-0 z-[99999] flex items-end justify-center bg-black/80 p-0 backdrop-blur-sm sm:items-center sm:p-4",onClick:f,children:e.jsxs("div",{className:"relative max-h-[calc(100dvh-12px)] w-full max-w-lg overflow-y-auto rounded-t-[28px] border border-white/[0.08] bg-[#0d0d14] p-5 shadow-2xl sm:max-h-[calc(100dvh-48px)] sm:rounded-[28px] sm:p-7",onClick:g=>g.stopPropagation(),children:[e.jsx("button",{type:"button",onClick:f,className:"absolute right-4 top-4 roun
1ded-full border border-white/[0.08] bg-white/[0.03] p-2 text-slate-400 transition-colors hover:bg-white/[0.08] hover:text-white","aria-label":"Close referral modal",children:e.jsx(qe,{size:16})}),e.jsxs("div",{className:"mb-5 flex items-start gap-3 pr-10",children:[e.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl bg-emerald-400 text-[#03130a] shadow-lg shadow-emerald-500/20",children:e.jsx(G,{size:22})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.18em] text-emerald-300",children:"Gift interview time"}),e.jsxs("h3",{className:"mt-1 text-2xl font-black tracking-tight text-white",children:["They get ",c.friendBonusText,". You earn ",c.referrerRewardText,"."]}),e.jsx("p",{className:"mt-2 text-sm leading-6 text-slate-400",children:"Both rewards unlock on your friend's first purchase â their extra practice time and your reward time."})]})]}),e.jsxs("div",{className:"rounded-2xl border border-emerald-400/20 bg-emerald-400/[0.08] p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-emerald-300/80",children:"Referral Wallet"}),e.jsxs("p",{className:"mt-1 text-xl font-black text-white",children:[Oe(c.rewardSeconds)," earned"]})]}),e.jsxs("div",{className:"rounded-full border border-emerald-300/20 bg-emerald-300/[0.10] px-3 py-1 text-[10px] font-black uppercase tracking-wider text-emerald-100",children:[c.totalReferrals," success"]})]}),e.jsxs("div",{className:"mt-4",children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between gap-3 text-[11px] font-bold text-slate-300",children:[e.jsxs("span",{children:[c.progressCount,"/",Ue," toward milestone bonus"]}),e.jsxs("span",{children:[p,"%"]})]}),e.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-white/[0.08]",children:e.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-emerald-400 to-lime-300 transition-[width] duration-500",style:{width:`${p}%`}})}),e.jsxs("p",{className:"mt-2 text-xs leading-5 text-slate-400",children:["Every ",c.milestoneTarget," successful referrals adds an extra ",c.milestoneBonusText," bonus."]})]})]}),e.jsx("div",{className:"mt-4 grid gap-3 sm:grid-cols-3",children:[["Friend gets on 1st buy",c.friendBonusText,G],["You earn",c.referrerRewardText,X],["Milestone",`+${c.milestoneBonusText}`,Qe]].map(([g,R,ee])=>e.jsxs("div",{className:"rounded-2xl border border-white/[0.06] bg-white/[0.025] p-3",children:[e.jsx(ee,{className:"mb-2 h-4 w-4 text-emerald-300"}),e.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-500",children:g}),e.jsx("p",{className:"mt-1 text-sm font-black text-white",children:R})]},g))}),e.jsxs("div",{className:"mt-4 rounded-2xl border border-dashed border-white/[0.11] bg-slate-950/45 p-4",children:[e.jsx("p",{className:"mb-2 text-[10px] font-bold uppercase tracking-wider text-slate-500",children:"Your invite link"}),e.jsx("p",{className:"break-all font-mono text-xs font-semibold leading-5 text-emerald-200",children:b||"Loading..."})]}),e.jsxs("div",{className:"mt-4 grid gap-2.5",children:[e.jsxs("button",{type:"button",onClick:C,className:"flex w-full items-center justify-center gap-2 rounded-xl bg-green-500 py-3 text-sm font-black text-black transition-all hover:bg-green-400",children:[e.jsx(be,{className:"h-4 w-4"})," Copy gift link"]}),e.jsxs("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-3",children:[e.jsxs("button",{type:"button",onClick:()=>window.open(`https://wa.me/?text=${encodeURIComponent(i)}`,"_blank","noopener,noreferrer"),className:"flex items-center justify-center gap-2 rounded-xl bg-emerald-600 py-3 text-sm font-bold text-white transition-colors hover:bg-emerald-500",children:[e.jsx(Je,{className:"h-4 w-4"})," WhatsApp"]}),e.jsxs("button",{type:"button",onClick:()=>window.open(`mailto:?subject=${encodeURIComponent("Extra 30 min free on your first CrackInterviewAI purchase")}&body=${encodeURIComponent(i)}`,"_blank"),className:"flex items-center justify-center gap-2 rounded-xl border border-white/[0.08] bg-white/[0.04] py-3 text-sm font-bold text-white transition-colors hover:bg-white/[0.08]",children:[e.jsx(V,{className:"h-4 w-4"})," Email"]}),e.jsxs("button",{type:"button",onClick:A,className:"flex items-center justify-center gap-2 rounded-xl border border-white/[0.08] bg-white/[0.04] py-3 text-sm font-bold text-white transition-colors hover:bg-white/[0.08]",children:[e.jsx(Ze,{className:"h-4 w-4"})," Share"]})]})]}),e.jsxs("div",{className:"mt-4 flex items-start gap-2 rounded-xl bg-white/[0.025] px-3 py-3 text-xs leading-5 text-slate-500",children:[e.jsx(ge,{className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-300"}),e.jsx("span",{children:"We store only the required referral counters and latest referral records to keep Firebase usage light."})]})]})})}const xt=1440*60*1e3,pt=l=>{const f=new Date(l);return f.setHours(0,0,0,0),f},ht=new Intl.DateTimeFormat("en-CA",{timeZone:"Asia/Kolkata",year:"numeric",month:"2-digit",day:"2-digit"}),ut=(l={})=>{const f=pt(new Date),r=Array.from({length:7},(i,p)=>{const A=new Date(f.getTime()-(6-p)*xt),g=ht.format(A),R=l?.[g]||{};return{key:g,label:A.toLocaleDateString(void 0,{weekday:"short"}),dateLabel:A.toLocaleDateString(void 0,{day:"numeric",month:"short"}),sessions:Math.max(0,Number(R.sessions||0)),seconds:Math.max(0,Number(R.duration_seconds||0)),questions:Math.max(0,Number(R.questions_count||0))}}),b=Math.max(...r.map(i=>i.seconds),0),P=r.reduce((i,p)=>i+p.sessions,0),C=r.reduce((i,p)=>i+p.seconds,0),c=r.reduce((i,p)=>i+p.questions,0);return{days:r.map(i=>({...i,height:b>0?Math.max(14,Math.round(i.seconds/b*100)):0})),hasActivity:P>0||C>0||c>0,totalSessions:P,totalSeconds:C,totalQuestions:c}};function Mt(){const[l,f]=m.useState(null),[r,b]=m.useState(null),[P,C]=m.useState(!0),[c,i]=m.useState(!1),[p,A]=m.useState(""),[g,R]=m.useState(""),[ee,ft]=m.useState(!1),[bt,gt]=m.useState(!1),[wt,jt]=m.useState(!1),[w,te]=m.useState(he()||"IN"),[we,se]=m.useState(!0),[W,O]=m.useState(!1),[ae,D]=m.useState(""),[re,le]=m.useState(!1),[je,U]=m.useState(!1),B=Ee(),{showDialog:L,confirmDialog:Y}=rt(),{saleConfig:T}=dt(),ne=(t=0,s="INR")=>E(t,s);m.useEffect(()=>{const t=Be(async s=>
1{if(s){if(new URLSearchParams(window.location.search).get("emailVerified")==="1"){try{await s.reload()}catch(a){console.error("Failed to refresh verified email state:",a)}window.history.replaceState({},"",window.location.pathname)}f(s),se(s.emailVerified);let n=await Q(s.email);(!n||!n.referral_code)&&(console.log("[DASHBOARD] User data not found, retrying..."),await new Promise(a=>setTimeout(a,1e3)),n=await Q(s.email)),b(n),n?.service_settings&&(A(n.service_settings.Primary||""),R(n.service_settings.Backup||""))}else B("/login");C(!1)});return()=>t()},[B]);const ye=async()=>{O(!0),D("");const t=await Fe();O(!1),t.success?D("Verification email sent. Please check your inbox and spam folder."):D(t.error)},Ne=async()=>{if(l){O(!0),D("");try{await l.reload(),l.emailVerified?se(!0):D("Not verified yet. Click the verification link from your inbox or spam folder, then try again.")}catch(t){D(t.message)}O(!1)}};m.useEffect(()=>{he()||We().then(t=>{te(t)})},[]);const ve=t=>{te(t),He(t)},ke=async()=>{await Ke(),B("/login")},Se=()=>{B("/download")},Ce=t=>{if(t.skippedDisabled)return"Daily emails are OFF in Admin. No lifecycle emails were sent.";const s=Object.entries(t.stats||{}).filter(([,a])=>a).map(([a,u])=>`${a}: ${u}`).join(", "),o=Object.entries(t.failureReasons||{}).filter(([,a])=>a).map(([a,u])=>`${a}${u>1?` (${u})`:""}`).join("; "),n=t.emailProvider?` via ${t.emailProvider}`:"";return`${t.sent||0} email${t.sent===1?"":"s"} sent${n}${s?` (${s})`:""}${o?`. Reason: ${o}`:""}.`},Ae=async()=>{if(!(!l||!await Y({type:"warning",title:"Run Daily Emails Now?",message:"This will send eligible 9 AM lifecycle marketing emails immediately.",confirmLabel:"Run Emails",cancelLabel:"Cancel"}))){le(!0);try{const s=await l.getIdToken(),o=await fetch("/api/email-cron",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s}`},body:JSON.stringify({force:!0})}),n=await o.text();let a;try{a=JSON.parse(n)}catch{a={error:n||`Server error (HTTP ${o.status})`}}if(!o.ok)throw new Error(a.message||a.error||"Daily email run failed.");await L({type:a.stats?.failed?"error":"success",title:a.stats?.failed?"Emails Failed":"Daily Emails Complete",message:Ce(a),confirmLabel:"Done"})}catch(s){await L({type:"error",title:"Email Run Failed",message:s.message,confirmLabel:"OK"})}le(!1)}},Re=()=>{r?.referral_code&&(navigator.clipboard.writeText(r.referral_code),i(!0),setTimeout(()=>i(!1),2e3))},ie=()=>{const t=pe(r?.referral_code);t&&(navigator.clipboard.writeText(t),i(!0),setTimeout(()=>i(!1),2e3),L({type:"success",title:"Gift Link Copied",message:"Your friend gets extra 30 min free from this link.",confirmLabel:"Done"}))},Te=async(t,s)=>{const o=M(t,w,T);if(!String(s||"").toLowerCase().includes("cancel")){await L({type:"error",title:"Payment Failed",message:s||"Payment could not be completed.",confirmLabel:"OK"});return}const a=await Y({type:"warning",variant:"paymentRecovery",returnAction:!0,title:"Complete your plan",message:"Your selected plan is ready. Continue from where you left offâno need to choose it again.",planName:o.packageName,planPrice:S(o),planMeta:"Interview time added immediately",features:["Secure checkout","No auto-renewal","Instant access"],confirmLabel:"Continue to Razorpay",secondaryLabel:lt?"Need help on WhatsApp?":"",cancelLabel:"Not now"});if(a==="secondary"){const u=`Hi, I need help completing payment for ${o.packageName} (${S(o)}).`,d=nt(u);return d&&window.open(d,"_blank","noopener,noreferrer"),"help"}return a==="confirm"?"retry":"closed"},j=async(t,s="")=>{if(!l)return;ot(ct.PRICING_CLICK,{plan:t,placement:"dashboard_topup",authState:"logged_in"});const o=M(t,w,T,s);await Ge(o,o.packageName,l.email,l.displayName||"User",async(n,a)=>{const u=n.razorpay_payment_id||n.razorpay_signature||`payment_${Date.now()}`,d=a?.fulfillment||o;if(await Ve(l.email,d.seconds,d.amount,d.packageName,u,d.plan||o.plan,d.currency||o.currency,d)){const Me=await Q(l.email);b(Me),await Y({type:"success",title:"Payment Successful",returnAction:!0,message:`${k(d)} added to your account. 2 3Gift extra 30 min free to a friend. You earn 1 hour when they make their first purchase.`,highlight:"Share now while the plan is active.",features:["Friend gets extra 30 min free","You earn 1 hour","3 successful referrals add extra 1 hour"],confirmLabel:"Share Gift Link",cancelLabel:"Done"})==="confirm"&&U(!0)}else await L({type:"warning",title:"Payment Received",message:"Payment was received, but your account time could not be updated. Please contact support.",confirmLabel:"OK"})},async n=>{console.error("Payment error:",n),await Te(t,n)==="retry"&&window.setTimeout(()=>j(t),250)})},_e=()=>{if(!r?.payment_history||r.payment_history.length===0){L({type:"info",title:"No Payment History",message:"There is no payment history to export yet.",confirmLabel:"OK"});return}const t=["Date","Plan/Package","Amount","Currency","Status","Payment ID"],s=r.payment_history.map(d=>[new Date(d.date).toLocaleDateString(),d.package,d.amount,d.currency||"INR","Success",d.payment_id||"N/A"]),o=[t.join(","),...s.map(d=>d.map(xe=>`"${xe}"`).join(","))].join(` 4`),n=new Blob([o],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a"),u=URL.createObjectURL(n);a.setAttribute("href",u),a.setAttribute("download",`payment_history_${new Date().toISOString().split("T")[0]}.csv`),a.style.visibility="hidden",document.body.appendChild(a),a.click(),document.body.removeChild(a)};if(P)return e.jsx("div",{className:"min-h-screen bg-[#05080f] flex items-center justify-center",children:e.jsx("div",{className:"w-12 h-12 border-4 border-green-500/30 border-t-green-500 rounded-full animate-spin"})});
4const F=r?.payment_history||[],x=ut(r?.usage_by_day||{}),H=r?.referrals||[],oe=r?.referral_code||"",Pe=pe(oe),h=fe(r||{}),$=M("basic",w,T),y=M("standard",w,T),N=M("weekly",w,T),_=M("unlimited",w,T),De=Ye(w,T),I=r?.remaining_seconds||0,v=I<=0,ce=(r?.total_purchased||0)+1800,q=Math.max(ce,I),de=q>0?Math.min(1,Math.max(0,I/q)):0,me=Math.round(de*100),Le=v?"Time over. Add time to continue.":I>ce?"Available interview time":`${me}% of ${z(q)} remaining`,$e=r?.is_admin===!0||["[email protected]"].includes((l?.email||"").trim().toLowerCase());return e.jsxs("div",{className:"min-h-screen bg-[#05080f] text-white font-sans selection:bg-green-500/30",children:[e.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"blob bg-green-600/10 w-[800px] h-[800px] rounded-full -top-[400px] -left-[200px] mix-blend-screen filter blur-[120px]"}),e.jsx("div",{className:"blob bg-emerald-500/5 w-[600px] h-[600px] rounded-full top-[20%] -right-[100px] mix-blend-screen filter blur-[100px]"})]}),e.jsx("nav",{className:"relative z-20 border-b border-white/5 bg-[#05080f]/80 backdrop-blur-md",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 h-20 flex items-center justify-between gap-3",children:[e.jsx(it,{markClassName:"h-12 w-12",markTextClassName:"text-xs",wordmarkClassName:"hidden text-xl sm:block"}),e.jsxs("div",{className:"flex items-center gap-2 sm:gap-4 min-w-0",children:[e.jsxs("button",{onClick:Se,className:"flex shrink-0 items-center gap-2 px-3 sm:px-4 py-2 bg-green-600 hover:bg-green-500 text-white text-xs font-bold rounded-xl transition-all shadow-lg shadow-green-500/20",children:[e.jsx(Xe,{size:14}),e.jsx("span",{className:"hidden md:inline",children:"Download App"})]}),e.jsx("div",{className:"hidden sm:block h-8 w-px bg-white/10 mx-2"}),e.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 bg-white/[0.03] border border-white/5 px-2 sm:px-3 py-1.5 rounded-2xl min-w-0",children:[l?.photoURL?e.jsx("img",{src:l.photoURL,alt:"Profile",className:"w-8 h-8 rounded-full",loading:"lazy",decoding:"async",referrerPolicy:"no-referrer"}):e.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-green-400 to-green-600 flex items-center justify-center text-xs font-bold shadow-inner",children:l?.displayName?.charAt(0)||"U"}),e.jsxs("div",{className:"hidden lg:block",children:[e.jsx("h4",{className:"text-[11px] font-bold text-slate-300 truncate max-w-[100px]",children:l?.displayName||"User"}),e.jsx("p",{className:"text-[9px] text-emerald-400 font-bold uppercase tracking-wider",children:"Active"})]}),e.jsx("button",{onClick:ke,className:"p-1.5 hover:bg-white/10 rounded-lg text-slate-400 hover:text-white transition-colors",children:e.jsx(et,{size:16})})]})]})]})}),e.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-4 pt-6 pb-24 sm:px-6 sm:py-10",children:[e.jsxs("header",{className:"mb-6 sm:mb-10 flex flex-col md:flex-row md:items-end justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl sm:text-4xl font-bold tracking-tight bg-gradient-to-b from-white to-white/70 bg-clip-text text-transparent",children:"User Dashboard"}),e.jsxs("p",{className:"text-slate-500 text-sm mt-1 uppercase tracking-tight font-bold",children:["Welcome back, ",l?.displayName?.split(" ")[0]||"User","!"]})]}),$e&&e.jsxs("button",{onClick:Ae,disabled:re,className:"w-full md:w-auto flex items-center justify-center gap-2 px-4 py-3 rounded-2xl border border-emerald-500/30 bg-emerald-500/10 text-emerald-200 text-xs font-bold uppercase tracking-wider hover:bg-emerald-500/15 transition-colors disabled:opacity-50",title:"Run daily lifecycle marketing emails now",children:[e.jsx(V,{className:"w-4 h-4"}),re?"Running Emails...":"Run Daily Emails"]})]}),!we&&e.jsxs("div",{className:"mb-6 sm:mb-8 rounded-2xl border border-amber-500/30 bg-gradient-to-r from-amber-500/10 to-orange-500/5 p-4 sm:p-5",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4",children:[e.jsxs("div",{className:"flex items-start gap-3 flex-1",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-amber-500/20 flex items-center justify-center flex-shrink-0",children:e.jsx(V,{className:"w-5 h-5 text-amber-400"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-amber-300 mb-0.5",children:"Verify your email address"}),e.jsxs("p",{className:"text-xs text-amber-200/70 leading-relaxed",children:["Send a verification link to ",e.jsx("span",{className:"font-semibold text-amber-200",children:l?.email})," from here. Please check your inbox and spam folder after sending it."]})]})]}),e.jsxs("div",{className:"flex w-full flex-col gap-2 flex-shrink-0 sm:w-auto
4sm:flex-row",children:[e.jsxs("button",{onClick:ye,disabled:W,className:"px-4 py-2 rounded-xl bg-amber-500 text-black text-xs font-bold hover:bg-amber-400 transition-colors disabled:opacity-50 flex items-center justify-center gap-1.5",children:[e.jsx(V,{className:"w-3.5 h-3.5"})," Send Verification Email"]}),e.jsxs("button",{onClick:Ne,disabled:W,className:"px-4 py-2 rounded-xl border border-amber-500/30 text-amber-300 text-xs font-bold hover:bg-amber-500/10 transition-colors disabled:opacity-50 flex items-center justify-center gap-1.5",children:[e.jsx(tt,{className:`w-3.5 h-3.5 ${W?"animate-spin":""}`})," I've Verified"]})]})]}),ae&&e.jsx("p",{className:"mt-3 text-xs text-amber-200 bg-amber-500/10 rounded-lg px-3 py-2",children:ae})]}),v&&e.jsx("div",{className:"mb-6 overflow-hidden rounded-2xl border border-red-400/25 bg-gradient-to-r from-red-500/[0.14] via-red-500/[0.07] to-emerald-400/[0.06] p-4 shadow-[0_24px_70px_rgba(239,68,68,0.12)] sm:mb-8 sm:p-5",children:e.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[e.jsxs("div",{className:"flex gap-3",children:[e.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl border border-red-300/20 bg-red-400/[0.12]",children:e.jsx(J,{className:"h-5 w-5 text-red-200"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.22em] text-red-200/80",children:"Emergency Interview Top-Up"}),e.jsx("h2",{className:"mt-1 text-lg font-black tracking-tight text-white",children:"Time over. Add time to continue."}),e.jsx("p",{className:"mt-1 max-w-2xl text-xs leading-5 text-red-100/70",children:"Your interview wallet is empty. Add time now to use the desktop app again."})]})]}),e.jsxs("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row",children:[e.jsxs("button",{onClick:()=>j("standard"),className:"inline-flex items-center justify-center gap-2 rounded-xl bg-red-400 px-4 py-2.5 text-xs font-black uppercase tracking-wider text-[#170405] transition-colors hover:bg-red-300",children:[e.jsx(Z,{className:"h-3.5 w-3.5"}),"Add ",k(y)," - ",S(y)]}),e.jsx("button",{onClick:()=>j("unlimited"),className:"inline-flex items-center justify-center gap-2 rounded-xl border border-white/10 bg-white/[0.06] px-4 py-2.5 text-xs font-bold text-white transition-colors hover:bg-white/[0.10]",children:"Monthly Unlimited"})]})]})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6",children:[!1,r?.subscription_plan==="premium"&&e.jsx("div",{className:"md:col-span-2 lg:col-span-3 bg-gradient-to-br from-emerald-500/5 to-green-500/5 border border-emerald-500/20 rounded-[32px] p-6 glass",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/20 flex items-center justify-center",children:e.jsx(K,{className:"w-5 h-5 text-emerald-400"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base sm:text-lg font-bold text-white",children:"Premium Plan Active"}),e.jsx("p",{className:"text-xs text-emerald-400 font-semibold",children:"Pre-configured service settings - No setup needed!"})]})]}),e.jsx("div",{className:"px-4 py-2 bg-emerald-500/10 border border-emerald-500/20 rounded-xl",children:e.jsx("span",{className:"text-xs font-bold text-emerald-400 uppercase tracking-wider",children:"All Set â"})})]})}),e.jsxs("div",{className:"relative overflow-hidden rounded-[24px] border border-white/[0.07] bg-gradient-to-b from-[#101820] to-[#09110f] p-5 shadow-[0_24px_80px_rgba(0,0,0,0.28)] sm:rounded-[30px] sm:p-7",children:[e.jsx("div",{className:"pointer-events-none absolute -right-20 -top-20 h-56 w-56 rounded-full bg-emerald-400/[0.10] blur-[80px]"}),e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-bold uppercase tracking-[0.2em] text-slate-500",children:"Interview wallet"}),e.jsx("p",{className:"mt-1 text-xs text-slate-500",children:"Available time across desktop sessions"})]}),e.jsxs("div",{className:"relative flex h-12 w-12 shrink-0 items-center justify-center",children:[(()=>{const t=2*Math.PI*20,s=t-t*de;return e.jsxs("svg",{className:"h-full w-full -rotate-90",children:[e.jsx("circle",{cx:"24",cy:"24",r:"20",className:"fill-none stroke-white/[0.06]",strokeWidth:"3"}),e.jsx("circle",{cx:"24",cy:"24",r:"20",className:`fill-none transition-all duration-500 ${v?"stroke-red-400":"stroke-emerald-400"}`,strokeWidth:"3",strokeDasharray:t,strokeDashoffset:s,strokeLinecap:"round"})]})})(),e.jsx(J,{size:14,className:`absolute ${v?"text-red-300":"text-emerald-300"}`})]})]}),e.jsxs("div",{className:"mt-6",children:[e.jsxs("div",{className:"flex items-end justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-4xl font-black tracking-[-0.04em] text-white",children:z(I)}),e.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:Le})]}),e.jsx("span",{className:`rounded-full border px-2.5 py-1 text-[9px] font-bold uppercase tracking-wider ${v?"border-red-400/25 bg-red-400/[0.10] text-red-300":"border-emerald-400/20 bg-emerald-400/[0.08] text-emerald-300"}`,children:v?"Time over":"Ready to use"})]}),e.jsx("div",{className:"mt-4 h-1.5 overflow-hidden rounded-full bg-white/[0.06]",children:e.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${v?"bg-red-400":"bg-gradient-to-r from-emerald-500 to-green-300"}`,style:{width:v?"0%":`${Math.max(3,me)}%`}})})]}),(r?.trial_mode||r?.referred_by&&r?.total_purchased===0)&&e.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[r?.trial_mode&&e.jsxs("div",{className:"flex items-center gap-2.5 rounded-xl border border-emerald-400/15 bg-emerald-400/[0.06] px-3 py-2.5",children:[e.jsx(K,{size:15,className:"shrink-0 text-emerald-400"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs font-bold text-emerald-200",children:"Free trial active"}),e.jsx("p",{className:"mt-0.5 text-[10px] text-emerald-300/65",children:"Test the app first. Buy only when you need more time."})]})]}),r?.referred_by&&r?.total_purchased===0&&e.jsxs("div",{className:"flex items-center gap-2.5 rounded-xl border border-green-400/15 bg-green-400/[0.05] px-3 py-2.5",children:[e.jsx(G,{size:15,className:"shrink-0 text-green-400"}),e.jsx("p",{className:"text-[10px] leading-4 text-green-200/75",children:"Your first purchase will unlock a 30-minute reward for your referrer."})]})]}),e.jsx("div",{className:"my-5 h-px bg-white/[0.06]"}),e.jsxs("div",{className:"mb-3 flex flex-col gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-white",children:"Add interview time"}),e.jsx("p",{className:"mt-1 text-[11px] text-slate-500",children:"One-time secure payment. No automatic renew
4al."})]}),e.jsx(at,{value:w,onChange:ve,className:"w-full"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2.5",children:[e.jsxs("button",{onClick:()=>j("basic"),className:"group rounded-2xl border border-white/[0.08] bg-white/[0.025] p-3.5 text-left transition-all hover:-translate-y-0.5 hover:border-white/[0.16] hover:bg-white/[0.045] active:translate-y-0",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-500",children:"Basic"}),e.jsx(Z,{size:14,className:"text-slate-500 transition-colors group-hover:text-white"})]}),e.jsx("p",{className:"mt-3 whitespace-nowrap text-sm font-bold text-white",children:k($)}),e.jsxs("p",{className:"mt-1.5 flex flex-wrap items-baseline gap-1.5 text-lg font-black leading-none text-white",children:[S($),$.compareAtAmount>0&&e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 line-through",children:E($.compareAtAmount,$.currency)})]}),e.jsx("p",{className:"mt-1.5 text-[9px] text-slate-600",children:$.unitText}),e.jsx("p",{className:"mt-1 text-[9px] font-semibold text-slate-500",children:"All features included"})]}),e.jsxs("button",{onClick:()=>j("standard"),className:"group relative overflow-hidden rounded-2xl border border-emerald-400/30 bg-emerald-400/[0.08] p-3.5 text-left shadow-[0_16px_40px_rgba(16,185,129,0.08)] transition-all hover:-translate-y-0.5 hover:border-emerald-300/50 hover:bg-emerald-400/[0.12] active:translate-y-0",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-emerald-300",children:"Most bought"}),e.jsx(Z,{size:14,className:"text-emerald-400"})]}),e.jsx("p",{className:"mt-3 whitespace-nowrap text-sm font-bold text-white",children:k(y)}),e.jsxs("p",{className:"mt-1.5 flex flex-wrap items-baseline gap-1.5 text-lg font-black leading-none text-emerald-100",children:[S(y),y.compareAtAmount>0&&e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 line-through",children:E(y.compareAtAmount,y.currency)})]}),e.jsx("p",{className:"mt-1.5 text-[9px] text-emerald-300/60",children:y.unitText}),e.jsx("p",{className:"mt-1 text-[9px] font-semibold text-emerald-300/80",children:"All features + lower hourly rate"})]})]}),De.map(t=>e.jsxs("button",{onClick:()=>j(t.planKey,t.offerId),className:"group mt-2.5 flex min-h-[72px] w-full items-center gap-3 rounded-2xl border border-amber-300/25 bg-gradient-to-r from-amber-300/[0.09] to-amber-200/[0.05] px-4 py-3 text-left transition-all hover:-translate-y-0.5 hover:border-amber-300/45 hover:from-amber-300/[0.14] active:translate-y-0",children:[e.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-amber-300/20 bg-amber-300/[0.12]",children:e.jsx(X,{size:17,className:"text-amber-200"})}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsxs("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[e.jsx("span",{className:"whitespace-nowrap text-sm font-bold text-white",children:t.title}),e.jsx("span",{className:"whitespace-nowrap rounded-full bg-amber-300/[0.14] px-2 py-0.5 text-[8px] font-bold uppercase tracking-wider text-amber-200",children:t.badgeText||"Limited offer"})]}),e.jsxs("span",{className:"mt-1 block text-[11px] leading-4 text-slate-500",children:[k(t)," with every advanced feature enabled."]})]}),e.jsxs("span",{className:"shrink-0 text-right",children:[e.jsx("span",{className:"block text-base font-black text-white",children:S(t)}),t.compareAtAmount>0&&e.jsx("span",{className:"block text-[10px] font-semibold text-slate-500 line-through",children:E(t.compareAtAmount,t.currency)})]})]},t.offerId)),e.jsxs("button",{onClick:()=>j("weekly"),className:"group mt-2.5 flex min-h-[72px] w-full items-center gap-3 rounded-2xl border border-cyan-300/20 bg-gradient-to-r from-cyan-300/[0.07] to-emerald-400/[0.06] px-4 py-3 text-left transition-all hover:-translate-y-0.5 hover:border-cyan-300/35 hover:from-cyan-300/[0.10] hover:to-emerald-400/[0.10] active:translate-y-0",children:[e.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-cyan-300/20 bg-cyan-300/[0.10]",children:e.jsx(X,{size:17,className:"text-cyan-200"})}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsxs("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[e.jsx("span",{className:"whitespace-nowrap text-sm font-bold text-white",children:N.title||"Interview Pack"}),e.jsx("span",{className:"whitespace-nowrap rounded-full bg-cyan-300/[0.10] px-2 py-0.5 text-[8px] font-bold uppercase tracking-wider text-cyan-200",children:N.badgeText||k(N)})]}),e.jsxs("span",{className:"mt-1 block text-[11px] leading-4 text-slate-500",children:[k(N)," with every advanced feature enabled."]})]}),e.jsxs("span",{className:"shrink-0 text-right",children:[e.jsx("span",{className:"block text-base font-black text-white",children:S(N)}),N.compareAtAmount>0&&e.jsx("span",{className:"block text-[10px] font-semibold text-slate-500 line-through",children:E(N.compareAtAmount,N.currency)})]})]}),e.jsxs("button",{onClick:()=>j("unlimited"),className:"group mt-2.5 flex min-h-[72px] w-full items-center gap-3 rounded-2xl border border-emerald-400/25 bg-gradient-to-r from-white/[0.055] to-emerald-400/[0.07] px-4 py-3 text-left transition-all hover:-translate-y-0.5 hover:border-emerald-400/45 hover:from-white/[0.08] hover:to-emerald-400/[0.11] active:translate-y-0",children:[e.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-emerald-400/20 bg-emerald-400/[0.10]",children:e.jsx(ue,{size:17,className:"text-emerald-300"})}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsxs("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[e.jsx("span",{className:"whitespace-nowrap text-sm font-bold text-white",children:_.title||"Monthly Unlimited"}),e.jsx("span",{className:"whitespace-nowrap rounded-full bg-emerald-400/[0.10] px-2 py-0.5 text-[8px] font-bold uppercase tracking-wider text-emerald-300",children:_.badgeText||"30-day unlimited"})]}),e.jsxs("span",{className:"mt-1 block text-[11px] leading-4 text-slate-500",children:[k(_)," with every advanced feature enabled."]})]}),e.jsxs("span",{className:"shrink-0 text-right",children:[e.jsx("span",{className:"block text-base font-black text-white",children:S(_)}),_.compareAtAmount>0&&e.jsx("span",{className:"block text-[10px] font-semibold text-slate-500 line-through",children:E(_.compareAtAmount,_.currency)})]})]}),e.jsx("p",{className:"mt-3 text-[11px] leading-4 text-slate-500",children:"Buy as many times as you want â every purchase adds to the time you already have. Nothing you have paid for is replaced."}),e.jsxs("div",{className:"mt-4 flex flex-wrap items-center justify-between gap-2 text-[10px] text-slate-600",children:[e.jsx("span",{children:"Secure checkout powered by Razorpay"}),e.jsx(Ie,{to:"/refund-policy",className:"font-semibold text-slate-400 transition-colors hover:text-emerald-300",children:"Refund policy"})]})]})]}),e.jsxs("div",{className:"bg-white/[0.02] border border-white/5 rounded-[24px] sm:rou
4nded-[32px] p-5 sm:p-8 glass hover:border-white/10 transition-colors flex flex-col relative overflow-hidden group",children:[e.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-emerald-500/10 blur-[60px] -mr-16 -mt-16"}),e.jsx("p",{className:"text-[10px] uppercase tracking-widest text-slate-500 font-bold mb-6",children:"Referrals & Rewards"}),e.jsxs("div",{className:"mb-5 rounded-2xl border border-emerald-400/20 bg-emerald-400/[0.07] p-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-emerald-300/80",children:"Referral Wallet"}),e.jsx("p",{className:"mt-1 text-2xl font-black text-white",children:h.rewardText}),e.jsx("p",{className:"mt-1 text-[11px] leading-4 text-slate-400",children:"earned from successful referrals"})]}),e.jsx("button",{type:"button",onClick:()=>U(!0),className:"shrink-0 rounded-xl bg-emerald-400 px-3 py-2 text-[10px] font-black uppercase tracking-wider text-[#03130a] transition-colors hover:bg-emerald-300",children:"Gift extra 30 min"})]}),e.jsxs("div",{className:"mt-4",children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between gap-3 text-[10px] font-bold text-slate-300",children:[e.jsxs("span",{children:[h.progressCount,"/",h.milestoneTarget," toward extra ",h.milestoneBonusText]}),e.jsxs("span",{children:[Math.round(h.milestoneProgress*100),"%"]})]}),e.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-white/[0.08]",children:e.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-emerald-400 to-lime-300 transition-[width] duration-500",style:{width:`${Math.round(h.milestoneProgress*100)}%`}})})]})]}),h.totalReferrals>0?e.jsxs("div",{className:"flex-1 flex flex-col",children:[e.jsxs("div",{className:"bg-emerald-500/5 p-5 rounded-2xl mb-6 border border-emerald-500/10",children:[e.jsx("h3",{className:"text-3xl font-bold text-emerald-400",children:h.totalReferrals}),e.jsx("p",{className:"text-[10px] text-slate-400 font-bold uppercase tracking-widest mt-1",children:"Successful referrals"})]}),e.jsxs("div",{className:"flex justify-between items-center mb-6",children:[e.jsx("span",{className:"text-xs text-slate-400 font-bold",children:"Recent Signups"}),e.jsxs("div",{className:"flex -space-x-2",children:[H.slice(0,3).map((t,s)=>e.jsx("div",{title:t.email,className:"w-8 h-8 rounded-full bg-slate-800 border-2 border-[#05080f] flex items-center justify-center text-[10px] font-bold ring-2 ring-white/5",children:t.name?.charAt(0)||t.email?.charAt(0).toUpperCase()},s)),h.totalReferrals>H.slice(0,3).length&&e.jsxs("div",{className:"w-8 h-8 rounded-full bg-emerald-500/20 text-emerald-400 border-2 border-[#05080f] flex items-center justify-center text-[10px] font-bold ring-2 ring-white/5",children:["+",Math.max(0,h.totalReferrals-H.slice(0,3).length)]})]})]})]}):e.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center py-6 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-white/5 rounded-full flex items-center justify-center mb-4",children:e.jsx(G,{className:"text-slate-500",size:24})}),e.jsx("h4",{className:"text-sm font-bold text-slate-300",children:"No referrals yet"}),e.jsx("p",{className:"text-xs text-slate-500 mt-2 max-w-[220px]",children:"Gift extra 30 min to a friend. Earn 1 hour after their first purchase."})]}),e.jsxs("div",{className:"mt-auto pt-6 border-t border-white/5",children:[e.jsxs("div",{className:"mb-3 flex items-center justify-between gap-3",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-widest text-slate-500 font-bold",children:"Copy Your Code"}),e.jsx("button",{type:"button",onClick:ie,className:"text-[10px] font-bold uppercase tracking-wider text-emerald-300 transition-colors hover:text-emerald-200",children:"Copy gift link"})]}),e.jsxs("div",{onClick:Re,className:`flex items-center justify-between gap-3 p-3.5 bg-slate-950/50 rounded-2xl border border-dashed group cursor-pointer transition-all ${c?"border-emerald-500/50 bg-emerald-500/5":"border-white/10 hover:border-green-500/50"}`,children:[e.jsx("code",{className:`font-mono font-bold tracking-[0.12em] sm:tracking-[0.2em] truncate min-w-0 ${c?"text-emerald-400":"text-green-400"}`,children:r?.referral_code||"LOADING..."}),c?e.jsx(ge,{size:14,className:"text-emerald-400"}):e.jsx(be,{size:14,className:"text-slate-500 group-hover:text-green-400 transition-colors"})]}),e.jsx("button",{type:"button",onClick:()=>U(!0),className:"mt-3 w-full rounded-2xl border border-emerald-400/20 bg-emerald-400/[0.08] px-4 py-3 text-sm font-black text-emerald-200 transition-colors hover:bg-emerald-400/[0.14]",children:"Open WhatsApp Share Card"})]})]}),e.jsxs("div",{className:"bg-white/[0.02] border border-white/5 rounded-[24px] sm:rou
4nded-[32px] p-5 sm:p-8 glass hover:border-white/10 transition-colors flex flex-col min-h-[260px]",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 mb-5 sm:mb-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] uppercase tracking-widest text-slate-500 font-bold",children:"Usage Stats"}),e.jsx("p",{className:"mt-1 text-[11px] text-slate-500",children:"Last 7 days from completed desktop sessions"})]}),e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-green-500/10 text-green-400",children:e.jsx(ue,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"mb-4 grid grid-cols-3 gap-2",children:[e.jsxs("div",{className:"rounded-2xl border border-white/5 bg-slate-950/30 p-3",children:[e.jsx("p",{className:"text-[9px] font-bold uppercase tracking-wider text-slate-500",children:"Sessions"}),e.jsx("p",{className:"mt-1 text-lg font-black text-white",children:x.totalSessions})]}),e.jsxs("div",{className:"rounded-2xl border border-white/5 bg-slate-950/30 p-3",children:[e.jsx("p",{className:"text-[9px] font-bold uppercase tracking-wider text-slate-500",children:"Time used"}),e.jsx("p",{className:"mt-1 text-lg font-black text-white",children:z(x.totalSeconds)})]}),e.jsxs("div",{className:"rounded-2xl border border-white/5 bg-slate-950/30 p-3",children:[e.jsx("p",{className:"text-[9px] font-bold uppercase tracking-wider text-slate-500",children:"Questions"}),e.jsx("p",{className:"mt-1 text-lg font-black text-white",children:x.totalQuestions})]})]}),e.jsx("div",{className:"flex-1 rounded-2xl bg-slate-950/30 border border-white/5 px-3 sm:px-4 pt-5 pb-3",children:x.hasActivity?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex h-28 items-end justify-between gap-1.5 sm:gap-2",children:x.days.map(t=>e.jsx("div",{className:"group relative flex h-full flex-1 items-end",children:e.jsx("div",{title:`${t.dateLabel}: ${t.sessions} session${t.sessions===1?"":"s"}, ${z(t.seconds)} used, ${t.questions} questions`,className:`w-full min-w-[12px] rounded-t-lg transition-all duration-500 ${t.sessions>0||t.seconds>0?"bg-gradient-to-t from-green-600/55 to-green-300 shadow-[0_0_18px_rgba(34,197,94,0.18)]":"bg-white/[0.04]"}`,style:{height:`${Math.max(t.height,t.sessions>0||t.seconds>0?14:6)}%`}})},t.key))}),e.jsx("div",{className:"mt-3 grid grid-cols-7 text-center text-[9px] sm:text-[10px] text-slate-500 font-bold uppercase",children:x.days.map(t=>e.jsx("span",{children:t.label},t.key))})]}):e.jsxs("div",{className:"flex min-h-28 flex-col items-center justify-center text-center",children:[e.jsx("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-full bg-white/[0.04]",children:e.jsx(J,{className:"h-4 w-4 text-slate-500"})}),e.jsx("p",{className:"text-sm font-bold text-slate-300",children:"No desktop usage logged yet"}),e.jsx("p",{className:"mt-1 max-w-[240px] text-xs leading-5 text-slate-500",children:"Complete a session in the Windows app and your real usage will appear here."})]})}),x.hasActivity&&x.totalSessions>0&&e.jsxs("div",{className:"mt-4 rounded-2xl border border-white/5 bg-slate-950/30 p-4",children:[e.jsx("p",{className:"mb-3 text-[9px] font-bold uppercase tracking-wider text-slate-500",children:"This week"}),e.jsxs("div",{className:"space-y-2.5 text-xs",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{className:"text-slate-500",children:"Avg session length"}),e.jsx("span",{className:"font-bold text-slate-200",children:z(Math.round(x.totalSeconds/x.totalSessions))})]}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{className:"text-slate-500",children:"Questions per session"}),e.jsx("span",{className:"font-bold text-slate-200",children:(x.totalQuestions/x.totalSessions).toFixed(1)})]}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{className:"text-slate-500",children:"Most active day"}),e.jsx("span",{className:"font-bold text-emerald-300",children:x.days.reduce((t,s)=>s.seconds>t.seconds?s:t,x.days[0]).dateLabel})]})]})]}),e.jsxs("div",{className:"mt-4 flex-1 rounded-2xl border border-emerald-400/10 bg-emerald-400/[0.04] p-4",children:[e.jsx("p",{className:"mb-3 text-[9px] font-bold uppercase tracking-wider text-emerald-300/80",children:"Get more from the app"}),e.jsxs("ul",{className:"space-y-2.5 text-xs leading-5 text-slate-400",children:[e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{className:"text-emerald-400",children:"â¢"}),"Upload your resume in app Settings â answers use your real projects and experience."]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{className:"text-emerald-400",children:"â¢"}),"Add target company + job description for answers tailored to that exact role."]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{className:"text-emerald-400",children:"â¢"}),"Try Caps Lock input mode to type or paste a question silently mid-interview."]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx("span",{className:"text-emerald-400",children:"â¢"}),"Do one full practice session before the real call â the flow becomes automatic."]})]})]})]}),e.jsxs("div",{className:"md:col-span-2 lg:col-span-3 bg-white/[0.02] border border-white/5 rounded-[24px] sm:rou
4nded-[32px] p-5 sm:p-8 glass hover:border-white/10 transition-colors",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 mb-6 sm:mb-8",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-widest text-slate-500 font-bold",children:"Recent Billing"}),e.jsxs("button",{onClick:_e,className:"text-[10px] uppercase tracking-widest text-white/50 hover:text-white font-bold px-3 py-1.5 rounded-lg border border-white/5 hover:bg-white/5 flex items-center gap-1.5 transition-all",children:[e.jsx(st,{size:12}),"Export"]})]}),e.jsx("div",{className:"md:hidden space-y-3",children:F.length>0?F.slice().reverse().map((t,s)=>e.jsxs("div",{className:"rounded-2xl border border-white/5 bg-slate-950/35 p-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3 mb-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-bold text-slate-100 truncate",children:t.package}),e.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:new Date(t.date).toLocaleDateString()})]}),e.jsx("span",{className:"shrink-0 text-sm font-bold text-white",children:ne(t.amount,t.currency)})]}),e.jsxs("div",{className:"flex items-center justify-between gap-3 border-t border-white/5 pt-3",children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] text-emerald-400 font-bold uppercase tracking-wider",children:[e.jsx(K,{size:13}),"Success"]}),e.jsx("span",{className:"max-w-[160px] truncate text-[10px] text-slate-600 font-mono",children:t.payment_id||"N/A"})]})]},s)):e.jsx("div",{className:"rounded-2xl border border-white/5 bg-slate-950/35 py-10 px-4 text-center text-slate-500 italic text-sm",children:"No transaction history found."})}),e.jsx("div",{className:"hidden md:block overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-white/5",children:[e.jsx("th",{className:"pb-4 text-[10px] uppercase tracking-widest text-slate-500 font-bold",children:"Date"}),e.jsx("th",{className:"pb-4 text-[10px] uppercase tracking-widest text-slate-500 font-bold",children:"Plan / Package"}),e.jsx("th",{className:"pb-4 text-[10px] uppercase tracking-widest text-slate-500 font-bold",children:"Amount"}),e.jsx("th",{className:"pb-4 text-[10px] uppercase tracking-widest text-slate-500 font-bold",children:"Status"})]})}),e.jsx("tbody",{className:"divide-y divide-white/5",children:F.length>0?F.slice().reverse().map((t,s)=>e.jsxs("tr",{className:"group transition-colors hover:bg-white/[0.01]",children:[e.jsx("td",{className:"py-5 text-sm text-slate-400 font-medium",children:new Date(t.date).toLocaleDateString()}),e.jsx("td",{className:"py-5 text-sm font-bold text-slate-200",children:t.package}),e.jsx("td",{className:"py-5 text-sm font-bold text-white",children:ne(t.amount,t.currency)}),e.jsx("td",{className:"py-5",children:e.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-white/70 font-bold uppercase tracking-wider",children:[e.jsx(K,{size:14,className:"text-emerald-400"}),"Success"]})})]},s)):e.jsx("tr",{children:e.jsx("td",{colSpan:"4",className:"py-12 text-center text-slate-500 italic text-sm",children:"No transaction history found."})})})]})})]})]})]}),e.jsx(mt,{open:je,onClose:()=>U(!1),referralCode:oe,referralLink:Pe,userData:r,onCopy:ie})]})}export{Mt 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.