/* Mereka v2 — mock data for prototype */

const EXPERIENCES = [
  { id: 'e1', slug: 'kuala-lumpur-batik-workshop', title: 'Traditional Batik Painting Workshop', host: 'Kraf KL Studio', hostInitial: 'KK', hubSlug: 'kraf-kl', rating: 4.9, reviews: 128, price: 'RM 180', priceVal: 180, priceUnit: '/ person', badge: 'In-person', category: 'Heritage Craft', hue: 25, location: 'Bangsar, KL', duration: '3 hours', groupSize: 'Max 8 guests',
    about: ["Spend an afternoon in a working batik studio in the heart of Bangsar. You'll learn the canting technique used to draw with hot wax, choose your colour palette, and take home your finished piece of fabric. Suitable for ages 12+, no prior experience needed.", 'All materials, refreshments, and a guided studio tour are included. Sessions are kept small so everyone gets one-on-one time with the master crafter.'],
    included: ['All materials & equipment', 'Take-home batik piece', 'Refreshments', 'Studio tour', 'Master crafter guidance', 'Photo of your work'] },
  { id: 'e2', slug: 'sustainable-cooking-masterclass', title: 'Sustainable Cooking Masterclass', host: 'Chef Aisyah Lim', hostInitial: 'AL', hubSlug: 'greenhaus', rating: 4.8, reviews: 86, price: 'RM 220', priceVal: 220, priceUnit: '/ person', badge: 'In-person', category: 'Food & Drink', hue: 140, location: 'Petaling Jaya', duration: '4 hours', groupSize: 'Max 10 guests',
    about: ['Cook a three-course, zero-waste menu alongside Chef Aisyah in her Petaling Jaya kitchen. Learn low-waste prep, seasonal substitutions and plating that makes simple ingredients shine.', 'You will sit down to eat everything you make, with recipes to take home so you can recreate the meal for friends and family.'],
    included: ['All ingredients', 'Three-course meal', 'Recipe cards', 'Apron to keep', 'Wine pairing', 'Leftovers to take home'] },
  { id: 'e3', slug: 'pottery-wheel-throwing', title: 'Pottery Wheel Throwing for Beginners', host: 'Tanah Liat Studio', hostInitial: 'TL', hubSlug: 'tanah-liat', rating: 5.0, reviews: 42, price: 'RM 150', priceVal: 150, priceUnit: '/ person', badge: 'In-person', category: 'Ceramics', hue: 30, location: 'Subang Jaya', duration: '2.5 hours', groupSize: 'Max 6 guests',
    about: ['Get your hands muddy at the wheel. This beginner session covers centring, pulling walls and shaping a bowl or cup — the fundamentals every potter starts with.', 'Your pieces are glazed and kiln-fired after class; collect them (or have them shipped) about two weeks later.'],
    included: ['Clay & tools', 'Wheel time', 'Glazing & firing', 'Two finished pieces', 'Apron provided', 'Studio guidance'] },
  { id: 'e4', slug: 'digital-illustration-bootcamp', title: 'Digital Illustration Bootcamp', host: 'Pixel House', hostInitial: 'PH', hubSlug: 'pixel-house', rating: 4.7, reviews: 219, price: 'RM 340', priceVal: 340, priceUnit: '/ person', badge: 'Online', category: 'Digital Art', hue: 275, location: 'Online', duration: '6 hours', groupSize: 'Max 20 seats',
    about: ['A full-day online bootcamp taking you from blank canvas to finished illustration. Learn layers, brushes, colour and composition using industry-standard tools, with live feedback throughout.', 'Recordings and brush packs are shared afterwards so you can keep practising at your own pace.'],
    included: ['Live online sessions', 'Brush & asset packs', 'Session recordings', 'Feedback on your work', 'Certificate of completion', 'Community access'] },
  { id: 'e5', slug: 'tropical-garden-tour', title: 'Tropical Garden Walking Tour', host: 'Greenhaus Hub', hostInitial: 'GH', hubSlug: 'greenhaus', rating: 4.9, reviews: 64, price: 'RM 95', priceVal: 95, priceUnit: '/ person', badge: 'In-person', category: 'Nature & Outdoors', hue: 170, location: 'Genting Highlands', duration: '2 hours', groupSize: 'Max 12 guests',
    about: ['A gentle guided walk through highland gardens, learning to identify native tropical plants, ferns and orchids with a resident botanist. Great for families and photographers.', 'Cool mountain air, easy trails and plenty of stops for photos and questions.'],
    included: ['Expert botanist guide', 'Garden entry', 'Plant field guide', 'Bottled water', 'Photo stops', 'Seed packet to take home'] },
  { id: 'e6', slug: 'songket-weaving-intro', title: 'Songket Weaving Introduction', host: 'Warisan Craft Co.', hostInitial: 'WC', hubSlug: 'warisan-craft', rating: 4.9, reviews: 51, price: 'RM 260', priceVal: 260, priceUnit: '/ person', badge: 'In-person', category: 'Heritage Craft', hue: 340, location: 'Terengganu', duration: '5 hours', groupSize: 'Max 6 guests',
    about: ['Learn the basics of songket, Malaysia’s gold-threaded heritage weave, on a traditional loom guided by master weavers in Terengganu. Understand the motifs and the patience the craft demands.', 'You will weave a small sampler to take home and gain a real appreciation for this endangered art form.'],
    included: ['Loom & thread', 'Master weaver guidance', 'Woven sampler to keep', 'Traditional lunch', 'Heritage talk', 'Certificate'] },
  { id: 'e7', slug: 'sourdough-bread-class', title: 'Sourdough Bread Baking Class', host: 'Mill & Crust', hostInitial: 'MC', hubSlug: 'mill-crust', rating: 4.8, reviews: 173, price: 'RM 210', priceVal: 210, priceUnit: '/ person', badge: 'In-person', category: 'Food & Drink', hue: 35, location: 'Damansara', duration: '4 hours', groupSize: 'Max 8 guests',
    about: ['Demystify sourdough from starter to bake. Learn to read your dough, master the stretch-and-fold, shape a boule and score it like a pro in this hands-on class.', 'Go home with your own baked loaf, a jar of active starter and a booklet so you can keep baking.'],
    included: ['All ingredients', 'Live starter to keep', 'Your baked loaf', 'Recipe booklet', 'Coffee & tastings', 'Baker guidance'] },
  { id: 'e8', slug: 'mindful-photography-walk', title: 'Mindful Photography Walk', host: 'Frame & Field', hostInitial: 'FF', hubSlug: 'frame-field', rating: 4.7, reviews: 28, price: 'RM 120', priceVal: 120, priceUnit: '/ person', badge: 'In-person', category: 'Photography', hue: 220, location: 'Bukit Bintang', duration: '3 hours', groupSize: 'Max 8 guests',
    about: ['Slow down and see the city differently. This walking session blends street photography fundamentals with mindfulness prompts, helping you compose with intention rather than rushing the shot.', 'Works on any camera or phone. Finish with a group review of everyone’s favourite frames.'],
    included: ['Guided photo walk', 'Composition coaching', 'Mindfulness prompts', 'Group photo review', 'Edit tips sheet', 'Works with any camera'] },
];

const EXPERTS = [
  { id: 'x1', name: 'Dr. Hanna Yusof', role: 'Brand Strategist', rating: 4.9, reviews: 142, location: 'Kuala Lumpur', skills: ['Brand Strategy', 'Positioning', 'Workshops'], hue: 275, hourly: 'RM 480 / hr', category: 'Brand', desc: 'Brand strategist helping 100+ scale-ups clarify positioning and ship identities that convert, a decade at the industry edge.' },
  { id: 'x2', name: 'Rafael Tan', role: 'Senior UX Designer', rating: 4.8, reviews: 98, location: 'Singapore', skills: ['UX Audit', 'Design Systems', 'Mentoring'], hue: 220, hourly: 'RM 420 / hr', category: 'Design', desc: 'Award-winning UX strategist specializing in accessible, scalable design systems across platforms for over 12 years.' },
  { id: 'x3', name: 'Priya Naidu', role: 'Sustainability Consultant', rating: 5.0, reviews: 56, location: 'Penang', skills: ['ESG', 'Carbon Audits', 'Reports'], hue: 170, hourly: 'RM 560 / hr', category: 'Sustainability', desc: 'Driving soil health and ESG compliance in agricultural settings, turning sustainability targets into measurable outcomes.' },
  { id: 'x4', name: 'Aiman Zulkifli', role: 'Full-stack Developer', rating: 4.7, reviews: 211, location: 'Cyberjaya', skills: ['Angular', 'Node.js', 'GCP'], hue: 25, hourly: 'RM 380 / hr', category: 'Engineering', desc: 'Full-stack engineer shipping production web apps for fintech and edtech clients, from MVP to scale on GCP.' },
  { id: 'x5', name: 'Tasha Lim', role: 'Content Producer', rating: 4.9, reviews: 73, location: 'KL', skills: ['Video', 'Scripting', 'Editing'], hue: 340, hourly: 'RM 320 / hr', category: 'Content', desc: 'Managed social-first content campaigns for diverse clients, driving engagement and growth for over 7 years.' },
  { id: 'x6', name: 'Marcus Ooi', role: 'Growth Marketing Lead', rating: 4.8, reviews: 119, location: 'Petaling Jaya', skills: ['Performance', 'Funnels', 'SEO'], hue: 290, hourly: 'RM 440 / hr', category: 'Marketing', desc: 'Senior strategist steering e-commerce businesses to profitability and market expansion across APAC.' },
];

const EXPERTISE = [
  { id: 'p1', slug: 'brand-identity-sprint', title: 'Brand Identity Sprint — 2 weeks', host: 'Studio Kuala', rating: 4.9, reviews: 64, price: 'from RM 8,500', hue: 275, category: 'Branding', delivery: 'Online + 1 in-person', duration: '2 weeks', revisions: '2 rounds',
    desc: 'A focused two-week sprint to define your positioning, visual identity and tone of voice — delivered as a complete brand book.',
    deliverables: ['Discovery workshop', 'Positioning & audience canvas', 'Logo system + 2 revisions', 'Type & colour system', 'Brand book PDF', 'Handoff session'],
    timeline: [
      { w: 'Week 1', t: 'Discovery & strategy', d: 'Workshop, competitor scan, positioning canvas' },
      { w: 'Week 1', t: 'Concept exploration', d: '3 directions, narrowed to 1 with you' },
      { w: 'Week 2', t: 'Identity build', d: 'Logo system, type, colour, application' },
      { w: 'Week 2', t: 'Brand book & handoff', d: 'PDF + walkthrough call' },
    ] },
  { id: 'p2', slug: 'ux-audit-roadmap', title: 'UX Audit & Roadmap', host: 'Pixel House', rating: 4.8, reviews: 47, price: 'from RM 5,200', hue: 220, category: 'Design', delivery: 'Remote', duration: '1–2 weeks', revisions: '1 round',
    desc: 'Heuristic audit of your product with a prioritised, evidence-backed roadmap your team can ship against immediately.',
    deliverables: ['Heuristic audit report', 'Usability issue log (severity-ranked)', 'Annotated screen teardowns', 'Prioritised fix roadmap', 'Quick-win list', 'Findings walkthrough call'],
    timeline: [
      { w: 'Days 1–2', t: 'Product walkthrough', d: 'Access, goals, key user journeys' },
      { w: 'Days 3–5', t: 'Heuristic audit', d: 'Screen-by-screen evaluation against usability heuristics' },
      { w: 'Week 2', t: 'Roadmap build', d: 'Severity ranking + prioritised fixes' },
      { w: 'Week 2', t: 'Readout', d: 'Findings walkthrough and Q&A' },
    ] },
  { id: 'p3', slug: 'esg-reporting-setup', title: 'ESG Reporting Setup', host: 'Greenhaus Hub', rating: 5.0, reviews: 21, price: 'from RM 12,000', hue: 170, category: 'Strategy', delivery: 'Remote', duration: '4–6 weeks', revisions: '1 report cycle',
    desc: 'Stand up your ESG reporting from scratch — frameworks, data collection and a board-ready first report.',
    deliverables: ['Materiality assessment', 'Framework selection (GRI/ESRS)', 'Data collection templates', 'Metrics & KPI register', 'Board-ready first report', 'Team enablement session'],
    timeline: [
      { w: 'Week 1', t: 'Materiality & scope', d: 'Identify what matters to your stakeholders' },
      { w: 'Weeks 2–3', t: 'Framework & data', d: 'Select framework, build collection templates' },
      { w: 'Weeks 4–5', t: 'Draft report', d: 'Compile metrics into a board-ready narrative' },
      { w: 'Week 6', t: 'Review & handoff', d: 'Finalise report + enablement session' },
    ] },
  { id: 'p4', slug: 'web-app-mvp-build', title: 'Web App MVP Build (4 weeks)', host: 'Dev Collective', rating: 4.7, reviews: 88, price: 'from RM 22,000', hue: 25, category: 'Tech', delivery: 'Remote', duration: '4 weeks', revisions: 'Weekly iterations',
    desc: 'Go from spec to a working, deployed MVP in four weeks with a senior full-stack squad and weekly demos.',
    deliverables: ['Technical scoping doc', 'Clickable prototype', 'Deployed MVP (web)', 'Source code + repo handover', 'CI/CD pipeline', 'Weekly demo recordings'],
    timeline: [
      { w: 'Week 1', t: 'Scope & architecture', d: 'Spec, data model, tech choices, prototype' },
      { w: 'Week 2', t: 'Core build', d: 'Primary flows and data layer' },
      { w: 'Week 3', t: 'Feature build', d: 'Secondary flows, polish, integrations' },
      { w: 'Week 4', t: 'Ship & handover', d: 'Deploy, QA, repo + docs handover' },
    ] },
  { id: 'p5', slug: 'content-engine-playbook', title: 'Content Engine Playbook', host: 'Frame & Field', rating: 4.9, reviews: 33, price: 'from RM 6,400', hue: 340, category: 'Content', delivery: 'Online', duration: '3 weeks', revisions: '2 rounds',
    desc: 'A repeatable content system — pillars, calendar, templates and analytics — tuned to your audience and channels.',
    deliverables: ['Audience & channel map', 'Content pillars', '90-day content calendar', 'Post & script templates', 'Analytics dashboard', 'Team playbook doc'],
    timeline: [
      { w: 'Week 1', t: 'Audience & pillars', d: 'Map channels, define content pillars' },
      { w: 'Week 2', t: 'System & templates', d: 'Calendar, templates, workflow' },
      { w: 'Week 3', t: 'Analytics & handoff', d: 'Dashboard setup + playbook walkthrough' },
    ] },
  { id: 'p6', slug: 'growth-diagnostic-plan', title: 'Growth Diagnostic + Plan', host: 'Loop Growth', rating: 4.8, reviews: 52, price: 'from RM 4,800', hue: 290, category: 'Marketing', delivery: 'Remote', duration: '2 weeks', revisions: '1 round',
    desc: 'Full-funnel diagnostic across acquisition and retention with a 90-day experiment-led growth plan.',
    deliverables: ['Funnel diagnostic report', 'Acquisition & retention teardown', 'Metrics benchmark', 'Prioritised experiment backlog', '90-day growth plan', 'Kickoff strategy call'],
    timeline: [
      { w: 'Days 1–3', t: 'Data & funnel review', d: 'Analytics access, funnel mapping' },
      { w: 'Days 4–7', t: 'Diagnostic', d: 'Identify leaks across acquisition and retention' },
      { w: 'Week 2', t: 'Experiment plan', d: 'Prioritised 90-day experiment backlog' },
      { w: 'Week 2', t: 'Kickoff', d: 'Strategy call to align the team' },
    ] },
];

const EXPERT_CATEGORIES = ['All', 'Brand', 'Design', 'Engineering', 'Marketing', 'Sustainability', 'Content'];
const EXPERTISE_CATEGORIES = ['All', 'Branding', 'Design', 'Marketing', 'Tech', 'Strategy', 'Content'];

const HUBS = [
  { id: 'h1', name: 'Kraf KL Studio', city: 'Kuala Lumpur', focus: 'Heritage Crafts', rating: 4.9, members: 18, hue: 25 },
  { id: 'h2', name: 'Greenhaus Hub', city: 'Genting', focus: 'Sustainability', rating: 4.9, members: 12, hue: 170 },
  { id: 'h3', name: 'Pixel House', city: 'Petaling Jaya', focus: 'Design & Tech', rating: 4.8, members: 24, hue: 220 },
  { id: 'h4', name: 'Warisan Craft Co.', city: 'Terengganu', focus: 'Textiles', rating: 4.9, members: 9, hue: 340 },
  { id: 'h5', name: 'Mill & Crust', city: 'Damansara', focus: 'Culinary', rating: 4.8, members: 14, hue: 35 },
  { id: 'h6', name: 'Frame & Field', city: 'KL', focus: 'Storytelling', rating: 4.7, members: 11, hue: 290 },
];

const JOBS = [
  { id: 'j1', title: 'Brand Identity for D2C Skincare Launch', client: 'Lumi Botanicals', budget: 'RM 8k–12k', budgetVal: 10000, type: 'Fixed', duration: '4–6 weeks', durMonths: 1.5, skills: ['Brand', 'Packaging'], proposals: 23, posted: '2 days ago' },
  { id: 'j2', title: 'Frontend Developer (Angular) — 3 month contract', client: 'Hauz Capital', budget: 'RM 60–80/hr', budgetVal: 36000, type: 'Hourly', duration: '3 months', durMonths: 3, skills: ['Angular', 'TypeScript', 'Tailwind'], proposals: 41, posted: '1 day ago' },
  { id: 'j3', title: 'Investor Deck — Series A', client: 'Stealth (FoodTech)', budget: 'RM 4k–6k', budgetVal: 5000, type: 'Fixed', duration: '2 weeks', durMonths: 0.5, skills: ['Pitch Decks', 'Figma'], proposals: 12, posted: '5 hours ago' },
  { id: 'j4', title: 'Video Producer for 6-episode Docu-Series', client: 'Yayasan Hijau', budget: 'RM 28k', budgetVal: 28000, type: 'Fixed', duration: '8 weeks', durMonths: 2, skills: ['Direction', 'Editing'], proposals: 9, posted: '3 days ago' },
  { id: 'j5', title: 'Growth Marketing Consultant — Weekly Retainer', client: 'Tumbuh App', budget: 'RM 6k/mo', budgetVal: 6000, type: 'Retainer', duration: 'Ongoing', durMonths: 6, skills: ['Paid Ads', 'CRM'], proposals: 17, posted: '6 hours ago' },
  { id: 'j6', title: 'UX Audit & Redesign for Fintech App', client: 'Pago', budget: 'RM 9k', budgetVal: 9000, type: 'Fixed', duration: '3 weeks', durMonths: 0.75, skills: ['UX', 'Figma', 'Research'], proposals: 14, posted: '1 day ago' },
  { id: 'j7', title: 'SEO Content Lead — Monthly Retainer', client: 'Klinik Care', budget: 'RM 4k/mo', budgetVal: 4000, type: 'Retainer', duration: 'Ongoing', durMonths: 6, skills: ['SEO', 'Content'], proposals: 8, posted: '4 days ago' },
  { id: 'j8', title: 'Mobile App Build (Flutter) — MVP', client: 'Lapak', budget: 'RM 35k', budgetVal: 35000, type: 'Fixed', duration: '10 weeks', durMonths: 2.5, skills: ['Flutter', 'Firebase'], proposals: 26, posted: '2 days ago' },
  { id: 'j9', title: 'Brand Photographer for Product Range', client: 'Hela Spice', budget: 'RM 70–90/hr', budgetVal: 12000, type: 'Hourly', duration: '1 month', durMonths: 1, skills: ['Photography', 'Editing'], proposals: 11, posted: '7 hours ago' },
  { id: 'j10', title: 'Data Dashboard Build (Looker)', client: 'Tabung Co-op', budget: 'RM 18k', budgetVal: 18000, type: 'Fixed', duration: '6 weeks', durMonths: 1.5, skills: ['Data', 'SQL', 'Looker'], proposals: 19, posted: '5 days ago' },
];

const REVIEWS = [
  { id: 'r1', name: 'Sara Daud', role: 'Founder, Lumi Botanicals', quote: "Mereka helped us source the right Brand strategist within 48 hours. The whole experience felt curated, not transactional.", rating: 5 },
  { id: 'r2', name: 'Jeff Cheong', role: 'Director, Hauz Capital', quote: "Bookings, contracts, milestone payouts — all handled in one place. The hub experience is genuinely thoughtful.", rating: 5 },
  { id: 'r3', name: 'Priya Naidu', role: 'Sustainability Consultant', quote: "As an expert on the platform, I love how clean the dashboard is. Proposals, contracts, and reviews stay tidy.", rating: 5 },
  { id: 'r4', name: 'Tasha Lim', role: 'Content Producer', quote: "I've booked three different hubs for shoots through Mereka. Discovery and onboarding are smooth.", rating: 5 },
];

const NAV_PUBLIC = [
  { label: 'Experiences', to: '/web/experiences' },
  { label: 'Experts', to: '/web/experts' },
  { label: 'Expertise', to: '/web/expertise' },
  { label: 'Jobs', to: '/web/jobs' },
  { label: 'Hubs', to: '/web/hubs' },
  { label: 'Programs', to: '/web/programs' },
];

const USER_NAV = [
  { label: 'Overview', to: '/app/dashboard/overview', icon: 'compass' },
  { label: 'Bookings', to: '/app/dashboard/bookings', icon: 'calendar' },
  { label: 'Favorites', to: '/app/dashboard/favorites', icon: 'heart' },
  { label: 'Courses', to: '/app/dashboard/courses', icon: 'graduation' },
  { label: 'Chats', to: '/app/dashboard/chats', icon: 'chat' },
  { label: 'Reviews', to: '/app/dashboard/reviews', icon: 'star' },
  { label: 'Transactions', to: '/app/dashboard/transactions', icon: 'receipt' },
  { label: 'Billing', to: '/app/dashboard/billing', icon: 'card' },
  { label: 'Notifications', to: '/app/dashboard/notifications', icon: 'bell' },
  { label: 'Interests', to: '/app/dashboard/interests', icon: 'spark' },
  { label: 'Security', to: '/app/dashboard/security', icon: 'shield' },
  { label: 'Settings', to: '/app/dashboard/settings', icon: 'settings' },
  { label: 'Communication logs', to: '/app/dashboard/communication-logs', icon: 'message' },
];

const HUB_NAV = [
  { label: 'Calendar', to: '/app/hub/calendar', icon: 'calendar' },
  { label: 'Bookings', to: '/app/hub/bookings', icon: 'briefcase' },
  { label: 'Chats', to: '/app/hub/chats', icon: 'chat' },
  { label: 'Analytics', to: '/app/hub/analytics', icon: 'trending' },
  { label: 'Notifications', to: '/app/hub/notifications', icon: 'bell' },
];

const HUB_NAV_SERVICES = [
  { label: 'Experiences', to: '/app/hub/services/experiences', icon: 'compass' },
  { label: 'Expertise', to: '/app/hub/services/expertise', icon: 'award' },
];

const HUB_NAV_JOBS = [
  { label: 'Posts', to: '/app/hub/jobs/posts', icon: 'briefcase' },
  { label: 'Applications', to: '/app/hub/jobs/applications', icon: 'send' },
];

const HUB_NAV_SETTINGS = [
  { label: 'Account', to: '/app/hub/settings/account', icon: 'user' },
  { label: 'Team', to: '/app/hub/settings/members', icon: 'building' },
  { label: 'Transactions', to: '/app/hub/settings/transactions', icon: 'receipt' },
  { label: 'Subscription', to: '/app/hub/settings/subscription', icon: 'spark' },
  { label: 'Notifications', to: '/app/hub/settings/notifications', icon: 'bell' },
  { label: 'Reviews', to: '/app/hub/settings/reviews', icon: 'star' },
  { label: 'Engagement', to: '/app/hub/settings/engagement', icon: 'trending' },
];

Object.assign(window, {
  EXPERIENCES, EXPERTS, EXPERTISE, HUBS, JOBS, REVIEWS,
  NAV_PUBLIC, USER_NAV, HUB_NAV, HUB_NAV_SERVICES, HUB_NAV_JOBS, HUB_NAV_SETTINGS,
});
