export const APP_NAME = process.env.NEXT_PUBLIC_APP_NAME || 'Activate Abundanate';

export const ROUTES = {
  HOME: '/',
  PRICING: '/pricing',
  LOGIN: '/login',
  REGISTER: '/register',
  DASHBOARD: '/dashboard',
  ACCOUNT: '/account',
  TRANSACTIONS: '/transactions',
  PLANS: '/plans',
  SUCCESS: '/success',
  CANCEL: '/cancel',
  ACTIVATE: '/activate',
  SESSION_PAGE: '/session-page',
  MOBILE_ACCOUNT: '/mobile/account',
  MOBILE_ACCOUNT_PLANS: '/mobile/account/plans',
} as const;

export const SESSION_FLOW_STORAGE_KEY = 'bh_session_flow';
export const MOBILE_CHECKOUT_RETURN_KEY = 'bh_mobile_checkout_return';

export const API_ENDPOINTS = {
  // Auth
  LOGIN: '/auth/login',
  REGISTER: '/auth/register',
  ACTIVATE: '/auth/activate',
  REFRESH_TOKEN: '/auth/refresh-token',
  LOGOUT: '/auth/logout',
  ME: '/auth/me',
  PROFILE: '/auth/get-profile',

  // Subscription Plans (public active plans for pricing page)
  PLANS: '/subscription-plans/active',

  // Stripe
  CHECKOUT_SESSION: '/stripe/checkout-session',
  STRIPE_WEBHOOK: '/stripe/webhook',

  // Subscription
  SUBSCRIPTION: '/subscription',
  START_TRIAL: '/subscription/trial',
  CANCEL_SUBSCRIPTION: '/subscription/cancel',

  // Transactions
  TRANSACTIONS: '/transactions',
} as const;

export const SUBSCRIPTION_STATUS = {
  ACTIVE: 'active',
  TRIALING: 'trialing',
  TRIAL_EXPIRED: 'trial_expired',
  CANCELLED: 'cancelled',
  EXPIRED: 'expired',
  NONE: 'none',
} as const;

export const COOKIE_KEYS = {
  ACCESS_TOKEN: 'bh_access_token',
  REFRESH_TOKEN: 'bh_refresh_token',
} as const;

export const STORAGE_KEYS = {
  REDUX_PERSIST: 'bighappy_persist_root',
} as const;

export const TRIAL_DAYS = 3;

export const FEATURES = [
  {
    icon: '✦',
    title: 'Unlimited Records',
    description: 'Create and manage unlimited entries with full data access.',
  },
  {
    icon: '◈',
    title: 'Smart Organization',
    description: 'Organize your data intelligently with powerful filtering.',
  },
  {
    icon: '⬡',
    title: 'Real-time Sync',
    description: 'Your data syncs instantly across all your devices.',
  },
  {
    icon: '◎',
    title: 'Advanced Analytics',
    description: 'Deep insights into your habits and progress over time.',
  },
  {
    icon: '⟁',
    title: 'Priority Support',
    description: 'Get help when you need it with priority customer support.',
  },
  {
    icon: '⬦',
    title: 'Secure & Private',
    description: 'End-to-end encryption keeps your data safe and private.',
  },
];
