%PDF- %PDF-
| Direktori : /home2/rezakur1/muakita.rezakurnia.com/Mua-Kita-Web/src/components/pages/ |
| Current File : /home2/rezakur1/muakita.rezakurnia.com/Mua-Kita-Web/src/components/pages/PaketPage.tsx |
import React, { useState } from 'react';
import { Check, Sparkles, HelpCircle, ArrowRight, ShieldCheck, Zap, Users, Building, ChevronRight, Calculator, CheckCircle2 } from 'lucide-react';
import { Role } from '../../types';
interface PaketPageProps {
onSelectPlan: (planName: string, role?: Role) => void;
onNavigate: (page: string) => void;
onOpenLogin: () => void;
}
export const PaketPage: React.FC<PaketPageProps> = ({ onSelectPlan, onNavigate, onOpenLogin }) => {
const [billingCycle, setBillingCycle] = useState<'monthly' | 'yearly'>('yearly');
const [activeTab, setActiveTab] = useState<'matrix' | 'calculator'>('matrix');
const [teamSize, setTeamSize] = useState<number>(3);
const [includeWhatsapp, setIncludeWhatsapp] = useState<boolean>(true);
const [includeCustomDomain, setIncludeCustomDomain] = useState<boolean>(true);
const [includeMultiBranch, setIncludeMultiBranch] = useState<boolean>(false);
// Pricing calculation
const basePricePerUser = billingCycle === 'monthly' ? 99000 : 79000;
const whatsappAddon = includeWhatsapp ? (billingCycle === 'monthly' ? 50000 : 40000) : 0;
const domainAddon = includeCustomDomain ? (billingCycle === 'monthly' ? 75000 : 60000) : 0;
const branchAddon = includeMultiBranch ? (billingCycle === 'monthly' ? 150000 : 120000) : 0;
const estimatedTotal = (teamSize * basePricePerUser) + whatsappAddon + domainAddon + branchAddon;
const featureCategories = [
{
category: 'Reservasi & Kalender Digital',
items: [
{ name: 'Kalender Booking Interaktif & Jadwal Real-time', starter: true, pro: true, biz: true, ent: true },
{ name: 'Form Booking Publik Online (Link Bio IG)', starter: true, pro: true, biz: true, ent: true },
{ name: 'Sistem Manajemen DP (Down Payment) & Pelunasan', starter: true, pro: true, biz: true, ent: true },
{ name: 'Katalog Layanan & Pricelist Paket Custom', starter: true, pro: true, biz: true, ent: true },
{ name: 'Sistem Anti Bentrok Jam & Kuota Slot', starter: true, pro: true, biz: true, ent: true },
]
},
{
category: 'Otomatisasi & Lokasi (Maps API)',
items: [
{ name: 'Hitung Ongkos Transport Maps API Otomatis', starter: false, pro: true, biz: true, ent: true },
{ name: 'Deteksi Jarak (KM) & Estimasi Waktu Tempuh', starter: false, pro: true, biz: true, ent: true },
{ name: 'Notifikasi Otomatis WhatsApp Reminder Gateway', starter: false, pro: 'Optional', biz: true, ent: true },
{ name: 'Kirim Invoice & Kwitansi Otomatis ke WA Klien', starter: false, pro: true, biz: true, ent: true },
]
},
{
category: 'Tim & Keuangan Bisnis',
items: [
{ name: 'Laporan Keuangan, Arus Kas & Laba Rugi', starter: 'Dasar', pro: 'Lengkap', biz: 'Advanced', ent: 'Custom API' },
{ name: 'Manajemen Tim & Pembagian Komisi Staff MUA', starter: false, pro: true, biz: true, ent: true },
{ name: 'Rundown Acara Wedding & Event Checklist', starter: false, pro: true, biz: true, ent: true },
{ name: 'Database Pelanggan & Catatan Preferences Klien', starter: true, pro: true, biz: true, ent: true },
{ name: 'Manajemen Inventaris Kosmetik & Alert Stok', starter: false, pro: true, biz: true, ent: true },
{ name: 'Multi-Cabang / Multi-Outlet Studio', starter: false, pro: false, biz: true, ent: true },
{ name: 'Dedicated Account Manager & SLA 99.9%', starter: false, pro: false, biz: false, ent: true },
]
}
];
return (
<div className="min-h-screen bg-slate-50 text-slate-900 font-sans pb-20">
{/* Top Page Header Banner */}
<div className="bg-gradient-to-b from-slate-900 via-slate-800 to-slate-900 text-white pt-12 pb-20 px-4 sm:px-6 lg:px-8 border-b border-slate-800">
<div className="max-w-7xl mx-auto text-center space-y-4">
<div className="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-pink-500/20 text-pink-300 border border-pink-500/30 text-xs font-bold">
<Sparkles className="w-3.5 h-3.5 text-[#EC167F]" />
<span>Garansi Uang Kembali 30 Hari • Uji Coba Gratis 14 Hari</span>
</div>
<h1 className="text-3xl sm:text-5xl font-black tracking-tight max-w-3xl mx-auto leading-tight">
Pilih Paket Langganan <span className="text-[#EC167F]">MuaKita</span>
</h1>
<p className="text-sm sm:text-base text-slate-300 max-w-2xl mx-auto font-medium">
Satu-satunya sistem manajemen operasional MUA terpadu di Indonesia. Otomatiskan jadwal, faktur, hingga perhitungan ongkos transport.
</p>
{/* Billing Switcher */}
<div className="pt-6 flex items-center justify-center gap-4">
<div className="bg-slate-800/80 p-1.5 rounded-2xl border border-slate-700/80 inline-flex items-center gap-2 text-xs font-extrabold">
<button
onClick={() => setBillingCycle('monthly')}
className={`px-5 py-2 rounded-xl transition-all cursor-pointer ${
billingCycle === 'monthly' ? 'bg-[#EC167F] text-white shadow-md' : 'text-slate-400 hover:text-white'
}`}
>
Tagihan Bulanan
</button>
<button
onClick={() => setBillingCycle('yearly')}
className={`px-5 py-2 rounded-xl transition-all cursor-pointer flex items-center gap-2 ${
billingCycle === 'yearly' ? 'bg-[#EC167F] text-white shadow-md' : 'text-slate-400 hover:text-white'
}`}
>
<span>Tagihan Tahunan</span>
<span className="px-2 py-0.5 rounded-md bg-emerald-500 text-slate-950 text-[10px] font-black">
Hemat 20%
</span>
</button>
</div>
</div>
</div>
</div>
{/* Main Container */}
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 -mt-10">
{/* Navigation Mode Switcher */}
<div className="bg-white rounded-2xl p-2 border border-slate-200 shadow-lg mb-8 max-w-xl mx-auto flex items-center gap-2 text-xs font-extrabold">
<button
onClick={() => setActiveTab('matrix')}
className={`flex-1 py-3 px-4 rounded-xl transition-all cursor-pointer text-center flex items-center justify-center gap-2 ${
activeTab === 'matrix' ? 'bg-slate-900 text-white shadow-md' : 'text-slate-600 hover:text-slate-900'
}`}
>
<Building className="w-4 h-4" />
<span>Matriks Perbandingan Fitur</span>
</button>
<button
onClick={() => setActiveTab('calculator')}
className={`flex-1 py-3 px-4 rounded-xl transition-all cursor-pointer text-center flex items-center justify-center gap-2 ${
activeTab === 'calculator' ? 'bg-[#EC167F] text-white shadow-md' : 'text-slate-600 hover:text-slate-900'
}`}
>
<Calculator className="w-4 h-4" />
<span>Kalkulator Estimasi Kebutuhan</span>
</button>
</div>
{activeTab === 'matrix' ? (
<div className="space-y-12">
{/* 4 Pricing Cards Grid */}
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
{/* Starter */}
<div className="bg-white rounded-3xl p-6 border border-slate-200 shadow-sm flex flex-col justify-between space-y-6 hover:shadow-xl transition-all">
<div className="space-y-4">
<div>
<span className="px-3 py-1 rounded-full bg-slate-100 text-slate-700 text-xs font-black uppercase tracking-wider">
Starter
</span>
<h3 className="text-xl font-extrabold text-slate-900 mt-2">Solo MUA</h3>
<p className="text-xs text-slate-500 mt-1 font-medium">
Ideal untuk MUA freelancer / pemula yang ingin mengelola jadwal tanpa bentrok.
</p>
</div>
<div className="py-2 border-y border-slate-100">
<div className="flex items-baseline gap-1">
<span className="text-xs text-slate-400 font-bold">Rp</span>
<span className="text-3xl font-black text-slate-900">
{billingCycle === 'yearly' ? '119.000' : '149.000'}
</span>
<span className="text-xs text-slate-500 font-medium">/bulan</span>
</div>
<span className="text-[10px] text-slate-400 block mt-0.5">Ditagihkan {billingCycle === 'yearly' ? 'tahunan' : 'bulanan'}</span>
</div>
<ul className="space-y-2.5 text-xs text-slate-700 font-medium">
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-emerald-600 shrink-0" />
<span>1 Studio & 1 Account Admin</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-emerald-600 shrink-0" />
<span>Kalender Reservasi Unlimited</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-emerald-600 shrink-0" />
<span>Form Booking Publik Klien</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-emerald-600 shrink-0" />
<span>Database Pelanggan & Catatan</span>
</li>
</ul>
</div>
<button
onClick={() => onSelectPlan('Starter', 'owner')}
className="w-full py-3 bg-slate-100 hover:bg-slate-200 text-slate-900 font-extrabold rounded-2xl text-xs transition-all cursor-pointer"
>
Pilih Paket Starter
</button>
</div>
{/* Professional (Highlighted) */}
<div className="bg-pink-50/40 rounded-3xl p-6 border-2 border-[#EC167F] shadow-xl flex flex-col justify-between space-y-6 relative hover:scale-[1.02] transition-all">
<span className="absolute -top-3.5 left-1/2 -translate-x-1/2 px-4 py-1 bg-[#EC167F] text-white text-[10px] font-black rounded-full uppercase tracking-wider shadow-md">
Paling Populer & Direkomendasikan
</span>
<div className="space-y-4 pt-2">
<div>
<span className="px-3 py-1 rounded-full bg-pink-100 text-[#EC167F] text-xs font-black uppercase tracking-wider">
Professional
</span>
<h3 className="text-xl font-extrabold text-slate-900 mt-2">Studio & Tim MUA</h3>
<p className="text-xs text-slate-600 mt-1 font-medium">
Untuk MUA profesional dengan tim/asisten yang butuh otomatisasi lokasi Google Maps.
</p>
</div>
<div className="py-2 border-y border-pink-200/60">
<div className="flex items-baseline gap-1">
<span className="text-xs text-[#EC167F] font-bold">Rp</span>
<span className="text-3xl font-black text-slate-900">
{billingCycle === 'yearly' ? '239.000' : '299.000'}
</span>
<span className="text-xs text-slate-500 font-medium">/bulan</span>
</div>
<span className="text-[10px] text-slate-500 block mt-0.5">Ditagihkan {billingCycle === 'yearly' ? 'tahunan (Hemat 20%)' : 'bulanan'}</span>
</div>
<ul className="space-y-2.5 text-xs text-slate-800 font-semibold">
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-[#EC167F] shrink-0" />
<span>Hitung Transport Maps API Otomatis</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-[#EC167F] shrink-0" />
<span>Manajemen Tim & Komisi Staff</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-[#EC167F] shrink-0" />
<span>Rundown Wedding & Event</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-[#EC167F] shrink-0" />
<span>Laporan Keuangan & Cashflow</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-[#EC167F] shrink-0" />
<span>WhatsApp Auto Reminder Gateway</span>
</li>
</ul>
</div>
<button
onClick={() => onSelectPlan('Professional', 'owner')}
className="w-full py-3 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold rounded-2xl text-xs shadow-lg shadow-pink-500/30 transition-all cursor-pointer"
>
Coba Professional Gratis
</button>
</div>
{/* Business */}
<div className="bg-white rounded-3xl p-6 border border-slate-200 shadow-sm flex flex-col justify-between space-y-6 hover:shadow-xl transition-all">
<div className="space-y-4">
<div>
<span className="px-3 py-1 rounded-full bg-slate-100 text-slate-700 text-xs font-black uppercase tracking-wider">
Business
</span>
<h3 className="text-xl font-extrabold text-slate-900 mt-2">Beauty Salon & Multi-Branch</h3>
<p className="text-xs text-slate-500 mt-1 font-medium">
Untuk salon kecantikan & studio MUA cabang banyak dengan analisis performa lengkap.
</p>
</div>
<div className="py-2 border-y border-slate-100">
<div className="flex items-baseline gap-1">
<span className="text-xs text-slate-400 font-bold">Rp</span>
<span className="text-3xl font-black text-slate-900">
{billingCycle === 'yearly' ? '399.000' : '499.000'}
</span>
<span className="text-xs text-slate-500 font-medium">/bulan</span>
</div>
<span className="text-[10px] text-slate-400 block mt-0.5">Ditagihkan {billingCycle === 'yearly' ? 'tahunan' : 'bulanan'}</span>
</div>
<ul className="space-y-2.5 text-xs text-slate-700 font-medium">
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-emerald-600 shrink-0" />
<span>Hingga 5 Cabang Studio</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-emerald-600 shrink-0" />
<span>Semua Fitur Professional</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-emerald-600 shrink-0" />
<span>Laporan Keuangan Advanced</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-emerald-600 shrink-0" />
<span>Manajemen Stok Kosmetik</span>
</li>
</ul>
</div>
<button
onClick={() => onSelectPlan('Business', 'owner')}
className="w-full py-3 bg-slate-100 hover:bg-slate-200 text-slate-900 font-extrabold rounded-2xl text-xs transition-all cursor-pointer"
>
Pilih Paket Business
</button>
</div>
{/* Enterprise */}
<div className="bg-slate-900 rounded-3xl p-6 text-white shadow-xl flex flex-col justify-between space-y-6 hover:shadow-2xl transition-all">
<div className="space-y-4">
<div>
<span className="px-3 py-1 rounded-full bg-slate-800 text-pink-300 border border-slate-700 text-xs font-black uppercase tracking-wider">
Enterprise
</span>
<h3 className="text-xl font-extrabold text-white mt-2">Franchise & Network</h3>
<p className="text-xs text-slate-300 mt-1 font-medium">
Solusi kustom untuk jaringan franchise klinik kecantikan dengan integrasi API khusus.
</p>
</div>
<div className="py-2 border-y border-slate-800">
<span className="text-3xl font-black text-white">Custom</span>
<span className="text-xs text-slate-400 block mt-0.5">Sesuai kebutuhan cabang & API</span>
</div>
<ul className="space-y-2.5 text-xs text-slate-300 font-medium">
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-pink-400 shrink-0" />
<span>Unlimited Cabang & Staff</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-pink-400 shrink-0" />
<span>Custom Integrasi API & ERP</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-pink-400 shrink-0" />
<span>Dedicated Account Manager</span>
</li>
<li className="flex items-center gap-2">
<CheckCircle2 className="w-4 h-4 text-pink-400 shrink-0" />
<span>SLA Uptime 99.9% + Support VIP</span>
</li>
</ul>
</div>
<button
onClick={() => onSelectPlan('Enterprise', 'super_admin')}
className="w-full py-3 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold rounded-2xl text-xs transition-all cursor-pointer"
>
Hubungi Tim Enterprise
</button>
</div>
</div>
{/* Detailed Categorized Feature Matrix Table */}
<div className="bg-white rounded-3xl border border-slate-200 overflow-hidden shadow-sm space-y-0">
<div className="p-6 bg-slate-900 text-white flex items-center justify-between">
<div>
<h3 className="text-lg font-extrabold">Matriks Perbandingan Fitur Lengkap</h3>
<p className="text-xs text-slate-300 mt-0.5">Detail setiap kemampuan sistem berdasarkan tipe paket</p>
</div>
<span className="px-3 py-1 rounded-full bg-pink-500/20 text-pink-300 border border-pink-500/30 text-xs font-bold">
Update Terbaru 2025
</span>
</div>
{featureCategories.map((cat, catIdx) => (
<div key={catIdx} className="border-t border-slate-200">
<div className="bg-slate-100/80 px-6 py-3 font-black text-xs text-slate-800 uppercase tracking-wider">
{cat.category}
</div>
<div className="divide-y divide-slate-100 text-xs">
{cat.items.map((item, itemIdx) => (
<div key={itemIdx} className="grid grid-cols-12 p-4 items-center hover:bg-slate-50 transition-colors">
<div className="col-span-5 sm:col-span-4 font-bold text-slate-900">
{item.name}
</div>
<div className="col-span-2 text-center">
{typeof item.starter === 'boolean' ? (
item.starter ? <Check className="w-4 h-4 text-emerald-600 mx-auto stroke-[3]" /> : <span className="text-slate-300">—</span>
) : (
<span className="font-bold text-slate-700">{item.starter}</span>
)}
</div>
<div className="col-span-2 text-center bg-pink-50/50 py-1 rounded-lg">
{typeof item.pro === 'boolean' ? (
item.pro ? <Check className="w-4 h-4 text-[#EC167F] mx-auto stroke-[3]" /> : <span className="text-slate-300">—</span>
) : (
<span className="font-extrabold text-[#EC167F]">{item.pro}</span>
)}
</div>
<div className="col-span-1 sm:col-span-2 text-center">
{typeof item.biz === 'boolean' ? (
item.biz ? <Check className="w-4 h-4 text-emerald-600 mx-auto stroke-[3]" /> : <span className="text-slate-300">—</span>
) : (
<span className="font-bold text-slate-700">{item.biz}</span>
)}
</div>
<div className="col-span-2 sm:col-span-2 text-center">
{typeof item.ent === 'boolean' ? (
item.ent ? <Check className="w-4 h-4 text-emerald-600 mx-auto stroke-[3]" /> : <span className="text-slate-300">—</span>
) : (
<span className="font-bold text-slate-700">{item.ent}</span>
)}
</div>
</div>
))}
</div>
</div>
))}
</div>
</div>
) : (
/* Calculator View */
<div className="bg-white rounded-3xl p-8 border border-slate-200 shadow-xl max-w-4xl mx-auto space-y-8">
<div>
<span className="text-xs font-black uppercase tracking-widest text-[#EC167F] block">KALKULATOR BIAYA</span>
<h2 className="text-2xl font-black text-slate-900 mt-1">Hitung Estimasi Investasi MuaKita</h2>
<p className="text-xs text-slate-500 mt-1">
Atur jumlah tim MUA dan pilih add-on sesuai dengan kebutuhan operasional studio Anda.
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-12 gap-8 items-start">
{/* Controls */}
<div className="md:col-span-7 space-y-6">
{/* Team Slider */}
<div className="bg-slate-50 p-5 rounded-2xl border border-slate-200 space-y-4">
<div className="flex justify-between items-center text-xs">
<label className="font-black text-slate-800 flex items-center gap-2">
<Users className="w-4 h-4 text-[#EC167F]" />
<span>Jumlah Anggota Tim / Asisten MUA</span>
</label>
<span className="px-3 py-1 bg-[#EC167F] text-white rounded-xl font-black text-xs shadow-2xs">
{teamSize} Pengguna
</span>
</div>
<input
type="range"
min={1}
max={20}
value={teamSize}
onChange={(e) => setTeamSize(parseInt(e.target.value))}
className="w-full accent-[#EC167F] cursor-pointer"
/>
<div className="flex justify-between text-[10px] text-slate-400 font-bold">
<span>1 Solo MUA</span>
<span>10 Staff Studio</span>
<span>20+ Team Multi-Cabang</span>
</div>
</div>
{/* Add-ons List */}
<div className="space-y-3">
<h4 className="text-xs font-black text-slate-900 uppercase tracking-wider">Modul & Add-On Tambahan</h4>
<label className="flex items-center justify-between p-4 bg-white border border-slate-200 rounded-2xl cursor-pointer hover:border-pink-300 transition-colors">
<div className="flex items-center gap-3">
<input
type="checkbox"
checked={includeWhatsapp}
onChange={(e) => setIncludeWhatsapp(e.target.checked)}
className="w-4 h-4 accent-[#EC167F] rounded cursor-pointer"
/>
<div>
<span className="text-xs font-bold text-slate-900 block">WhatsApp Auto Gateway</span>
<span className="text-[10px] text-slate-500">Notifikasi pengingat H-1 & invoice otomatis</span>
</div>
</div>
<span className="text-xs font-black text-[#EC167F]">
+Rp {billingCycle === 'yearly' ? '40.000' : '50.000'} <span className="text-[9px] text-slate-400 font-normal">/bln</span>
</span>
</label>
<label className="flex items-center justify-between p-4 bg-white border border-slate-200 rounded-2xl cursor-pointer hover:border-pink-300 transition-colors">
<div className="flex items-center gap-3">
<input
type="checkbox"
checked={includeCustomDomain}
onChange={(e) => setIncludeCustomDomain(e.target.checked)}
className="w-4 h-4 accent-[#EC167F] rounded cursor-pointer"
/>
<div>
<span className="text-xs font-bold text-slate-900 block">Custom Domain Website (.com/.id)</span>
<span className="text-[10px] text-slate-500">Form booking dengan alamat website milik studio Anda</span>
</div>
</div>
<span className="text-xs font-black text-[#EC167F]">
+Rp {billingCycle === 'yearly' ? '60.000' : '75.000'} <span className="text-[9px] text-slate-400 font-normal">/bln</span>
</span>
</label>
<label className="flex items-center justify-between p-4 bg-white border border-slate-200 rounded-2xl cursor-pointer hover:border-pink-300 transition-colors">
<div className="flex items-center gap-3">
<input
type="checkbox"
checked={includeMultiBranch}
onChange={(e) => setIncludeMultiBranch(e.target.checked)}
className="w-4 h-4 accent-[#EC167F] rounded cursor-pointer"
/>
<div>
<span className="text-xs font-bold text-slate-900 block">Modul Multi-Cabang Outlet</span>
<span className="text-[10px] text-slate-500">Kelola inventaris & keuangan beberapa lokasi</span>
</div>
</div>
<span className="text-xs font-black text-[#EC167F]">
+Rp {billingCycle === 'yearly' ? '120.000' : '150.000'} <span className="text-[9px] text-slate-400 font-normal">/bln</span>
</span>
</label>
</div>
</div>
{/* Total Summary Box */}
<div className="md:col-span-5 bg-gradient-to-br from-slate-900 to-slate-800 p-6 rounded-3xl text-white space-y-6 shadow-xl">
<div>
<span className="text-[10px] font-black uppercase tracking-widest text-pink-400 block">Rincian Estimasi Biaya</span>
<div className="mt-2 flex items-baseline gap-1">
<span className="text-xs text-slate-400 font-bold">Rp</span>
<span className="text-4xl font-black text-white">{estimatedTotal.toLocaleString('id-ID')}</span>
<span className="text-xs text-slate-400">/ bulan</span>
</div>
<span className="text-[11px] text-slate-300 block mt-1">
{billingCycle === 'yearly' ? 'Ditagihkan tahunan (Hemat 20%)' : 'Ditagihkan bulanan'}
</span>
</div>
<div className="space-y-2.5 border-t border-slate-700/80 pt-4 text-xs">
<div className="flex justify-between text-slate-300">
<span>{teamSize} Lisensi Staff Studio</span>
<span>Rp {(teamSize * basePricePerUser).toLocaleString('id-ID')}</span>
</div>
{includeWhatsapp && (
<div className="flex justify-between text-slate-300">
<span>WhatsApp Auto Gateway</span>
<span>Rp {whatsappAddon.toLocaleString('id-ID')}</span>
</div>
)}
{includeCustomDomain && (
<div className="flex justify-between text-slate-300">
<span>Custom Domain Studio</span>
<span>Rp {domainAddon.toLocaleString('id-ID')}</span>
</div>
)}
{includeMultiBranch && (
<div className="flex justify-between text-slate-300">
<span>Modul Multi-Cabang</span>
<span>Rp {branchAddon.toLocaleString('id-ID')}</span>
</div>
)}
</div>
<div className="pt-2">
<button
onClick={() => onSelectPlan('Custom Estimate', 'owner')}
className="w-full py-3.5 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-lg shadow-pink-500/30 transition-all flex items-center justify-center gap-2 cursor-pointer"
>
<span>Mulai Trial Gratis 14 Hari</span>
<ArrowRight className="w-4 h-4" />
</button>
<span className="text-[10px] text-slate-400 text-center block mt-3 font-medium">
Tanpa kartu kredit • Langsung aktif dalam 2 menit
</span>
</div>
</div>
</div>
</div>
)}
</div>
</div>
);
};