1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[379],{3641:(e,s,t)=>{Promise.resolve().then(t.bind(t,3691)),Promise.resolve().then(t.bind(t,8558)),Promise.resolve().then(t.bind(t,4437)),Promise.resolve().then(t.bind(t,6552)),Promise.resolve().then(t.bind(t,8843))},8843:(e,s,t)=>{"use strict";t.r(s),t.d(s,{PremiumPage:()=>y,default:()=>j});var a=t(5155),r=t(2115),l=t(63),i=t(5604),n=t(8854),m=t(9347),d=t(5740),o=t(5322),c=t(8055),p=t(709),x=t(5917),u=t(6154),h=t(4369),b=t(960),g=t(8720);function f(e){return"flex flex-wrap justify-center items-start"}function y(){let e=(0,i.useTranslations)(),s=(0,i.useLocale)(),t=(0,l.useRouter)(),{isAuthenticated:y,user:j}=(0,h.n)(),[v,N]=(0,r.useState)("subscription"),[w,k]=(0,r.useState)("monthly"),[T,P]=(0,r.useState)([]),[A,C]=(0,r.useState)([]),[S,q]=(0,r.useState)([]),[F,_]=(0,r.useState)(!0),[L,M]=(0,r.useState)(null);(0,r.useEffect)(()=>{(async()=>{try{_(!0);let e=await fetch("".concat("https://api.aistory.world","/api/v1/public/pricing-config")),{subscriptionPlans:t,newUserReward:a}=(await e.json()).data,r=[{id:"free",planType:"free",price:0,credits:a.credits,points:a.points,popular:!1},...t.map(e=>({...e,popular:"monthly"===e.planType}))];P(r);try{let e=await (0,b.W5)(s);C(e)}catch(e){console.error("Failed to load point packages:",e)}try{let e=await (0,b._t)(s);q(e)}catch(e){console.error("Failed to load credits packages:",e)}_(!1)}catch(e){console.error("Failed to load pricing:",e),_(!1)}})()},[y,s]),n.A,e("premium.premiumContent"),e("premium.premiumContentDesc"),m.A,e("premium.earlyAccess"),e("premium.earlyAccessDesc"),d.A,e("premium.exclusivePrivileges"),e("premium.exclusivePrivilegesDesc");let z=[{name:e("premium.testimonials.0.name"),avatar:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=80&h=80&fit=crop",role:e("premium.testimonials.0.role"),content:e("premium.testimonials.0.content"),rating:5},{name:e("premium.testimonials.1.name"),avatar:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=80&h=80&fit=crop",role:e("premium.testimonials.1.role"),content:e("premium.testimonials.1.content"),rating:5},{name:e("premium.testimonials.2.name"),avatar:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=80&h=80&fit=crop",role:e("premium.testimonials.2.role"),content:e("premium.testimonials.2.content"),rating:5}],D=[{question:e("premium.faqs.0.question"),answer:e("premium.faqs.0.answer")},{question:e("premium.faqs.1.question"),answer:e("premium.faqs.1.answer")},{question:e("premium.faqs.2.question"),answer:e("premium.faqs.2.answer")},{question:e("premium.faqs.3.question"),answer:e("premium.faqs.3.answer")}],E=async a=>{if(!y){sessionStorage.setItem("redirectAfterLogin",window.location.pathname),t.push("/login");return}M(a);try{let t;if("monthly"===a||"yearly"===a)t={type:"subscription",planType:a};else if(a.startsWith("package-")){let e=a.replace("package-","");t={type:"points",packageId:e}}else if(a.startsWith("credits-package-")){let e=a.replace("credits-package-","");t={type:"credits",packageId:e}}else{g.oR.error(e("common.error")),M(null);return}let{url:r}=await (0,b.fw)({...t,locale:s,successUrl:"".concat(window.location.origin,"/payment/success?session_id={CHECKOUT_SESSION_ID}"),cancelUrl:window.location.href});window.location.href=r}catch(s){var r,l;console.error("Failed to create checkout session:",s),g.oR.error((null==(l=s.response)||null==(r=l.data)?void 0:r.error)||e("common.error")),M(null)}};return(0,a.jsx)("div",{className:"min-h-screen bg-gradient-to-b from-gray-900 via-gray-900 to-black text-white pt-20 pb-16",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 md:px-6",children:[(0,a.jsx)("div",{className:"max-w-4xl mx-auto mt-8 md:mt-16 mb-12 md:mb-16",children:(0,a.jsxs)("div",{className:"relative bg-gray-800/40 backdrop-blur-sm border border-gray-700/50 rounded-2xl p-2",children:[(0,a.jsx)("div",{className:"absolute top-2 bottom-2 bg-gradient-to-r from-brand-primary to-orange-600 rounded-xl transition-all duration-300 ease-out shadow-lg shadow-brand-accent/30",style:{left:"subscription"===v?"0.5rem":"packages"===v?"calc(33.333% + 0.167rem)":"calc(66.666% - 0.167rem)",width:"calc(33.333% - 0.333rem)"}}),(0,a.jsxs)("div",{className:"relative grid grid-cols-3 gap-2",children:[(0,a.jsx)("button",{onClick:()=>N("subscription"),className:"relative px-4 md:px-6 py-3 md:py-4 rounded-xl font-medium transition-all duration-300 text-sm md:text-base ".concat("subscription"===v?"text-white":"text-gray-400 hover:text-gray-200"),children:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)(n.A,{className:"w-4 h-4 md:w-5 md:h-5 transition-all duration-300 ".concat("subscription"===v?"scale-110":"scale-100")}),(0,a.jsx)("span",{className:"hidden sm:inline",children:e("premium.tabs.subscription")}),(0,a.jsx)("span",{className:"sm:hidden",children:e("premium.subscriptionShort")})]})}),(0,a.jsx)("button",{onClick:()=>N("packages"),className:"relative px-4 md:px-6 py-3 md:py-4 rounded-xl font-medium transition-all duration-300 text-sm md:text-base ".concat("packages"===v?"text-white":"text-gray-400 hover:text-gray-200"),children:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)(o.A,{className:"w-4 h-4 md:w-5 md:h-5 transition-all duration-300 ".concat("packages"===v?"scale-110":"scale-100")}),(0,a.jsx)("span",{className:"hidden sm:inline",children:e("premium.tabs.packages")}),(0,a.jsx)("span",{className:"sm:hidden",children:e("premium.packagesShort")})]})}),(0,a.jsx)("button",{onClick:()=>N("credits"),className:"relative px-4 md:px-6 py-3 md:py-4 rounded-xl font-medium transition-all duration-300 text-sm md:text-base ".concat("credits"===v?"text-white":"text-gray-400 hover:text-gray-200"),children:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)(c.A,{className:"w-4 h-4 md:w-5 md:h-5 transition-all duration-300 ".concat("credits"===v?"scale-110":"scale-100")}),(0,a.jsx)("span",{className:"hidden sm:inline",children:e("premium.tabs.credits")}),(0,a.jsx)("span",{className:"sm:hidden",children:e("common.credits")})]})})]})]})}),"subscription"===v&&(0,a.jsxs)("div",{className:"max-w-6xl mx-auto mb-12 md:mb-16 animate-in fade-in slide-in-from-bottom-4 duration-500",children:[(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-center mb-8 md:mb-12",children:e("premium.plansTitle")}),F?(0,a.jsx)("div",{className:"text-center text-gray-400 py-12",children:e("common.loading")}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6",children:T.map(s=>{let t=(()=>{let t=(null==j?void 0:j.subscription_type)||"free",a=s.planType===t,r=!1;"monthly"===t&&"free"===s.planType?r=!0:"yearly"===t&&(r="free"===s.planType||"monthly"===s.planType);let l="";return l=a?e("premium.currentPlan"):"free"===s.planType?y?e("premium.plans.free.button"):e("premium.plans.free.tryNow"):"yearly"===s.planType&&"monthly"===t?e("premium.upgradeNow"):e("premium.purchaseNow"),{isCurrentPlan:a,shouldHideButton:r,buttonText:l,disabled:a||r}})();return(0,a.jsxs)("div",{className:"relative flex flex-col bg-gray-800/40 backdrop-blur-sm border rounded-xl md:rounded-2xl p-5 md:p-8 hover:scale-105 transition-all duration-300 ".concat(s.popular?"border-brand-accent shadow-2xl shadow-brand-accent/20":"border-gray-700/50"," ").concat(w===s.id?"ring-2 ring-brand-accent":""),onClick:()=>k(s.id),children:[s.popular&&(0,a.jsx)("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2 px-4 py-1 bg-gradient-to-r from-brand-primary to-orange-600 rounded-full text-xs font-bold",children:e("premium.mostPopular")}),"free"===s.planType&&(0,a.jsxs)("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2 px-4 py-1 bg-gradient-to-r from-green-500 to-emerald-600 rounded-full text-xs font-bold flex items-center gap-1",children:[(0,a.jsx)(p.A,{className:"w-3 h-3"}),e("premium.plans.free.badge")]}),(0,a.jsxs)("div",{className:"text-center mb-5 md:mb-6",children:[(0,a.jsx)("h3",{className:"text-xl md:text-2xl font-bold mb-1.5 md:mb-2",children:"free"===s.planType?e("premium.plans.free.name"):"monthly"===s.planType?e("premium.plans.monthly.name"):"yearly"===s.planType?e("premium.plans.yearly.name"):s.planType}),(0,a.jsx)("p",{className:"text-xs md:text-sm text-gray-400 mb-3 md:mb-4",children:"free"===s.planType?e("premium.plans.free.description"):"monthly"===s.planType?e("premium.plans.monthly.description"):"yearly"===s.planType?e("premium.plans.yearly.description"):""}),(0,a.jsx)("div",{className:"flex items-end justify-center gap-1",children:"free"===s.planType?(0,a.jsx)("span",{className:"text-4xl md:text-5xl font-bold text-green-400",children:e("common.free")}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"text-xs md:text-sm text-gray-400",children:"$"}),(0,a.jsx)("span",{className:"text-4xl md:text-5xl font-bold",children:(s.price/100).toFixed(2)}),(0,a.jsxs)("span",{className:"text-gray-400 mb-1.5 md:mb-2 text-sm md:text-base",children:["/","monthly"===s.planType?e("premium.period.month"):e("premium.period.year")]})]})}),"yearly"===s.planType&&(0,a.jsx)("div",{className:"text-xs text-green-400 mt-2",children:e("premium.plans.yearly.perMonth",{amount:Math.round(s.price/100/12*10)/10})})]}),(0,a.jsx)("div",{className:"space-y-2 md:space-y-3 mb-5 md:mb-6 flex-grow",children:(()=>
1{if("free"===s.planType)return[e("premium.plans.free.features.credits",{credits:s.credits}),e("premium.plans.free.features.points",{points:s.points}),e("premium.plans.free.features.freeGames"),e("premium.plans.free.features.community")];if("monthly"===s.planType)return[e("premium.plans.monthly.features.allFree"),e("premium.plans.monthly.features.credits",{credits:s.credits}),e("premium.plans.monthly.features.points",{points:s.points}),e("premium.plans.monthly.features.unlimitedGames"),e("premium.plans.monthly.features.adFree"),e("premium.plans.monthly.features.badge"),e("premium.plans.monthly.features.cloudSave")];if("yearly"===s.planType){let t=Math.round(s.price/100/12*10)/10;return[e("premium.plans.yearly.features.allMonthly"),e("premium.plans.yearly.features.credits",{credits:s.credits}),e("premium.plans.yearly.features.points",{points:s.points}),e("premium.plans.yearly.features.saveAmount",{amount:t}),e("premium.plans.yearly.features.earlyAccess"),e("premium.plans.yearly.features.tools")]}return[]})().map((e,s)=>(0,a.jsxs)("div",{className:"flex items-start gap-2 md:gap-3",children:[(0,a.jsx)("div",{className:"w-4 h-4 md:w-5 md:h-5 bg-brand-primary/20 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,a.jsx)(x.A,{className:"w-2.5 h-2.5 md:w-3 md:h-3 text-brand-accent"})}),(0,a.jsx)("span",{className:"text-xs md:text-sm text-gray-300",children:e})]},s))}),!t.shouldHideButton&&(0,a.jsx)("button",{className:"w-full py-2.5 md:py-3 rounded-lg font-medium transition-all text-sm md:text-base ".concat(t.isCurrentPlan?"bg-green-600 hover:bg-green-600 cursor-default":"free"===s.planType?"bg-gradient-to-r from-green-500 to-emerald-600 hover:shadow-lg hover:shadow-green-500/50":s.popular?"bg-gradient-to-r from-brand-primary to-orange-600 hover:shadow-lg hover:shadow-brand-accent/50":"bg-gray-700 hover:bg-gray-600"),disabled:t.disabled||L===s.planType,onClick:()=>E(s.planType),children:L===s.planType?e("common.processing"):t.buttonText})]},s.id)})}),(0,a.jsx)("div",{className:"text-center mt-6 md:mt-8 text-xs md:text-sm text-gray-400 px-4",children:e("premium.paymentMethods")})]})]}),"packages"===v&&(0,a.jsxs)("div",{className:"max-w-7xl mx-auto mb-12 md:mb-16 animate-in fade-in slide-in-from-bottom-4 duration-500",children:[(0,a.jsxs)("div",{className:"text-center mb-8 md:mb-12",children:[(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-3 md:mb-4",children:e("premium.packagesTitle")}),(0,a.jsx)("p",{className:"text-gray-400 text-sm md:text-base max-w-2xl mx-auto",children:e("premium.packagesDescription")})]}),F?(0,a.jsx)("div",{className:"text-center text-gray-400 py-12",children:e("common.loading")}):(0,a.jsx)("div",{className:"".concat(f(A.length)," gap-4 md:gap-6"),children:A.map(s=>{let t=s.points+s.bonusPoints,r=s.bonusPoints>0?Math.round(s.bonusPoints/s.points*100):0,l=(s.price/100/t).toFixed(3);return(0,a.jsxs)("div",{className:"group relative flex flex-col bg-gradient-to-b from-gray-800/40 to-gray-900/40 backdrop-blur-sm border rounded-xl md:rounded-2xl p-6 md:p-8 transition-all duration-300 hover:scale-105 w-full sm:w-[calc(50%-0.75rem)] lg:w-80 ".concat(s.isPopular?"border-purple-500/50 shadow-2xl shadow-purple-500/20":"border-gray-700/50 hover:border-gray-600/50"),children:[!!s.isPopular&&(0,a.jsx)("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 z-10",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-purple-500 to-pink-500 rounded-full blur-sm"}),(0,a.jsxs)("div",{className:"relative px-3 py-1 bg-gradient-to-r from-purple-500 to-pink-500 rounded-full text-xs font-bold flex items-center gap-1",children:[(0,a.jsx)(d.A,{className:"w-3 h-3"}),(0,a.jsx)("span",{children:e("premium.bestValue")})]})]})}),r>0&&(0,a.jsx)("div",{className:"absolute -top-2 -right-2 z-10",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-green-500 to-emerald-600 rounded-full blur-sm"}),(0,a.jsxs)("div",{className:"relative w-12 h-12 bg-gradient-to-br from-green-500 to-emerald-600 rounded-full flex flex-col items-center justify-center text-white shadow-lg",children:[(0,a.jsxs)("div",{className:"text-xs font-bold leading-none",children:["+",r,"%"]}),(0,a.jsx)("div",{className:"text-[10px] leading-none",children:e("premium.bonus")})]})]})}),(0,a.jsxs)("div",{className:"text-center mb-5 md:mb-6",children:[(0,a.jsx)("h3",{className:"text-xl md:text-2xl font-bold mb-2",children:s.name}),(0,a.jsx)("div",{className:"h-0.5 w-16 bg-gradient-to-r from-transparent via-purple-500 to-transparent mx-auto"})]}),(0,a.jsxs)("div",{className:"text-center mb-5 md:mb-6",children:[(0,a.jsxs)("div",{className:"flex items-end justify-center gap-1 mb-2",children:[(0,a.jsx)("span",{className:"text-sm text-gray-400 mb-1",children:"$"}),(0,a.jsx)("span",{className:"text-4xl md:text-5xl font-bold bg-gradient-to-br from-white to-gray-300 bg-clip-text text-transparent",children:(s.price/100).toFixed(2)})]}),(0,a.jsxs)("div",{className:"text-xs md:text-sm text-gray-500",children:["~$",l,e("premium.perPoint")]})]}),(0,a.jsxs)("div",{className:"bg-gradient-to-br from-purple-900/40 to-pink-900/40 border border-purple-500/20 rounded-xl p-4 md:p-5 mb-5 md:mb-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-2",children:[(0,a.jsx)(o.A,{className:"w-5 h-5 md:w-6 md:h-6 text-purple-400"}),(0,a.jsx)("span",{className:"text-2xl md:text-3xl font-bold text-purple-300",children:s.points.toLocaleStr
1ing()})]}),s.bonusPoints>0&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-1.5 text-sm md:text-base mb-2",children:[(0,a.jsx)(p.A,{className:"w-4 h-4 text-green-400"}),(0,a.jsxs)("span",{className:"text-green-400 font-medium",children:["+",s.bonusPoints.toLocaleString()]}),(0,a.jsx)("span",{className:"text-gray-400",children:e("premium.bonus")})]}),(0,a.jsxs)("div",{className:"text-center mt-3 pt-3 border-t border-purple-500/20",children:[(0,a.jsx)("div",{className:"text-xs md:text-sm text-gray-400",children:e("premium.total")}),(0,a.jsx)("div",{className:"text-xl md:text-2xl font-bold text-white mt-1",children:t.toLocaleString()})]})]}),(0,a.jsxs)("div",{className:"space-y-2 md:space-y-3 mb-5 md:mb-6 flex-grow text-xs md:text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-gray-300",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-purple-400"}),(0,a.jsx)("span",{children:e("premium.permanent")})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-gray-300",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-purple-400"}),(0,a.jsx)("span",{children:e("premium.instantUse")})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-gray-300",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-purple-400"}),(0,a.jsx)("span",{children:e("premium.siteWide")})]})]}),(0,a.jsxs)("button",{className:"w-full py-2.5 md:py-3 rounded-lg font-medium transition-all text-sm md:text-base relative overflow-hidden group ".concat(s.isPopular?"bg-gradient-to-r from-purple-500 to-pink-600 hover:from-purple-600 hover:to-pink-700 shadow-lg shadow-purple-500/30 hover:shadow-purple-500/50":"bg-gray-700/80 hover:bg-gray-600/80 border border-gray-600/50"),disabled:L==="package-"+s.id,onClick:()=>E("package-"+s.id),children:[(0,a.jsxs)("span",{className:"relative z-10 flex items-center justify-center gap-1.5",children:[(0,a.jsx)(u.A,{className:"w-4 h-4"}),(0,a.jsx)("span",{children:L==="package-"+s.id?e("common.processing"):e("premium.buyNow")})]}),!!s.isPopular&&L!=="package-"+s.id&&(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-white/0 via-white/20 to-white/0 translate-x-[-100%] group-hover:translate-x-[100%] transition-transform duration-700"})]})]},s.id)})})]}),"credits"===v&&(0,a.jsxs)("div",{className:"max-w-7xl mx-auto mb-12 md:mb-16 animate-in fade-in slide-in-from-bottom-4 duration-500",children:[(0,a.jsxs)("div",{className:"text-center mb-8 md:mb-12",children:[(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-3 md:mb-4",children:e("premium.creditsPackagesTitle")}),(0,a.jsx)("p",{className:"text-gray-400 text-sm md:text-base max-w-2xl mx-auto",children:e("premium.packagesDescription")})]}),F?(0,a.jsx)("div",{className:"text-center text-gray-400 py-12",children:e("common.loading")}):(0,a.jsx)("div",{className:"".concat(f(S.length)," gap-4 md:gap-6"),children:S.map(s=>{let t=s.credits+s.bonusCredits,r=s.bonusCredits>0?Math.round(s.bonusCredits/s.credits*100):0,l=(s.price/100/t).toFixed(3);return(0,a.jsxs)("div",{className:"group relative flex flex-col bg-gradient-to-b from-gray-800/60 to-gray-900/60 backdrop-blur-sm border rounded-xl md:rounded-2xl p-6 md:p-8 transition-all duration-300 hover:scale-105 w-full sm:w-[calc(50%-0.75rem)] lg:w-80 ".concat(s.isPopular?"border-blue-500/50 shadow-2xl shadow-blue-500/20":"border-gray-700/50 hover:border-gray-600/50"),children:[!!s.isPopular&&(0,a.jsx)("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 z-10",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-blue-500 to-cyan-500 rounded-full blur-sm"}),(0,a.jsxs)("div",{className:"relative px-3 py-1 bg-gradient-to-r from-blue-500 to-cyan-500 rounded-full text-xs font-bold flex items-center gap-1",children:[(0,a.jsx)(d.A,{className:"w-3 h-3"}),(0,a.jsx)("span",{children:e("premium.bestValue")})]})]})}),r>0&&(0,a.jsx)("div",{className:"absolute -top-2 -right-2 z-10",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-green-500 to-emerald-600 rounded-full blur-sm"}),(0,a.jsxs)("div",{className:"relative w-12 h-12 bg-gradient-to-br from-green-500 to-emerald-600 rounded-full flex flex-col items-center justify-center text-white shadow-lg",children:[(0,a.jsxs)("div",{className:"text-xs font-bold leading-none",children:["+",r,"%"]}),(0,a.jsx)("div",{className:"text-[10px] leading-none",children:e("premium.bonus")})]})]})}),(0,a.jsxs)("div",{className:"text-center mb-5 md:mb-6",children:[(0,a.jsx)("h3",{className:"text-xl md:text-2xl font-bold mb-2",children:s.name}),(0,a.jsx)("div",{className:"h-0.5 w-16 bg-gradient-to-r from-transparent via-blue-500 to-transparent mx-auto"})]}),(0,a.jsxs)("div",{className:"text-center mb-5 md:mb-6",children:[(0,a.jsxs)("div",{className:"flex items-end justify-center gap-1 mb-2",children:[(0,a.jsx)("span",{className:"text-sm text-gray-400 mb-1",children:"$"}),(0,a.jsx)("span",{className:"text-4xl md:text-5xl font-bold bg-gradient-to-br from-white to-gray-300 bg-clip-text text-transparent",children:(s.price/100).toFixed(2)})]}),(0,a.jsxs)("div",{className:"text-xs md:text-sm text-gray-500",children:["~$",l,e("premium.perCredit")]})]}),(0,a.jsxs)("div",{className:"bg-gradient-to-br from-blue-900/40 to-cyan-900/40 border border-blue-500/20 rounded-xl p-4 md:p-5 mb-5 md:mb-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-2",children:[(0,a.jsx)(c.A,{className:"w-5 h-5 md:w-6 md:h-6 text-blue-400"}),(0,a.jsx)("span",{className:"text-2xl md:text-3xl font-bold text-blue-300",children:s.credits.toLocaleStr
1ing()})]}),s.bonusCredits>0&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-1.5 text-sm md:text-base mb-2",children:[(0,a.jsx)(p.A,{className:"w-4 h-4 text-green-400"}),(0,a.jsxs)("span",{className:"text-green-400 font-medium",children:["+",s.bonusCredits.toLocaleString()]}),(0,a.jsx)("span",{className:"text-gray-400",children:e("premium.bonus")})]}),(0,a.jsxs)("div",{className:"text-center mt-3 pt-3 border-t border-blue-500/20",children:[(0,a.jsx)("div",{className:"text-xs md:text-sm text-gray-400",children:e("premium.total")}),(0,a.jsx)("div",{className:"text-xl md:text-2xl font-bold text-white mt-1",children:t.toLocaleString()})]})]}),(0,a.jsxs)("div",{className:"space-y-2 md:space-y-3 mb-5 md:mb-6 flex-grow text-xs md:text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-gray-300",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),(0,a.jsx)("span",{children:e("premium.permanent")})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-gray-300",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),(0,a.jsx)("span",{children:e("premium.instantUse")})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-gray-300",children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),(0,a.jsx)("span",{children:e("premium.siteWide")})]})]}),(0,a.jsxs)("button",{className:"w-full py-2.5 md:py-3 rounded-lg font-medium transition-all text-sm md:text-base relative overflow-hidden group ".concat(s.isPopular?"bg-gradient-to-r from-blue-500 to-cyan-600 hover:from-blue-600 hover:to-cyan-700 shadow-lg shadow-blue-500/30 hover:shadow-blue-500/50":"bg-gray-700/80 hover:bg-gray-600/80 border border-gray-600/50"),disabled:L==="credits-package-"+s.id,onClick:()=>E("credits-package-"+s.id),children:[(0,a.jsxs)("span",{className:"relative z-10 flex items-center justify-center gap-1.5",children:[(0,a.jsx)(u.A,{className:"w-4 h-4"}),(0,a.jsx)("span",{children:L==="credits-package-"+s.id?e("common.processing"):e("premium.buyNow")})]}),!!s.isPopular&&L!=="credits-package-"+s.id&&(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-white/0 via-white/20 to-white/0 translate-x-[-100%] group-hover:translate-x-[100%] transition-transform duration-700"})]})]},s.id)})})]}),(0,a.jsxs)("div",{className:"max-w-6xl mx-auto mb-12 md:mb-16",children:[(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-center mb-8 md:mb-12",children:e("premium.testimonialsTitle")}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6",children:z.map((e,s)=>(0,a.jsxs)("div",{className:"bg-gray-800/40 backdrop-blur-sm border border-gray-700/50 rounded-lg md:rounded-xl p-4 md:p-6",children:[(0,a.jsx)("div",{className:"flex gap-1 mb-3 md:mb-4",children:[...Array(e.rating)].map((e,s)=>(0,a.jsx)(m.A,{className:"w-3.5 h-3.5 md:w-4 md:h-4 fill-yellow-400 text-yellow-400"},s))}),(0,a.jsx)("p",{className:"text-gray-300 mb-4 md:mb-6 leading-relaxed text-sm md:text-base",children:e.content}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("img",{src:e.avatar,alt:e.name,className:"w-9 h-9 md:w-10 md:h-10 rounded-full object-cover"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"font-medium text-sm md:text-base",children:e.name}),(0,a.jsx)("div",{className:"text-xs text-gray-400",children:e.role})]})]})]},s))})]}),(0,a.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-center mb-8 md:mb-12",children:e("premium.faqTitle")}),(0,a.jsx)("div",{className:"space-y-3 md:space-y-4",children:D.map((e,s)=>(0,a.jsxs)("details",{className:"bg-gray-800/40 backdrop-blur-sm border border-gray-700/50 rounded-lg md:rounded-xl p-4 md:p-6 group",children:[(0,a.jsxs)("summary",{className:"font-medium md:font-semibold cursor-pointer flex items-center justify-between text-sm md:text-base py-1 md:py-0",children:[(0,a.jsx)("span",{children:e.question}),(0,a.jsx)("svg",{className:"w-5 h-5 flex-shrink-0 text-gray-400 group-open:rotate-180 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),(0,a.jsx)("p",{className:"mt-3 md:mt-4 text-gray-400 leading-relaxed text-sm md:text-base",children:e.answer})]},s))})]})]})})}let j=y}},e=>{e.O(0,[5604,2619,9573,5124,960,8441,1255,7358],()=>e(e.s=3641)),_N_E=e.O()}]);
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.