<?php
require_once __DIR__.'/../lib/bootstrap.php';
$pageTitle=isset($pageTitle)?$pageTitle:'FUNDZ'; $bodyClass=isset($bodyClass)?$bodyClass:''; $u=user(); $flash=pull_flash();
?><!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title><?=e($pageTitle)?> | FUNDZ</title><meta name="description" content="Compare international money transfer options and verified liquidity providers across Africa-focused corridors."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rubik:wght@600;700;800&display=swap" rel="stylesheet"><link rel="stylesheet" href="<?=url('assets/css/app.css')?>"></head><body class="<?=e($bodyClass)?>"><header class="topbar"><a class="brand" href="<?=url('')?>"><img src="<?=url('assets/img/mainlogo.svg')?>" alt="FUNDZ"></a><nav class="desktop-nav"><a href="<?=url('compare/')?>">Compare</a><a href="<?=url('markets/')?>">Markets</a><a href="<?=url('providers/')?>">Verified providers</a><a href="<?=url('alerts/')?>">Alerts</a><a href="<?=url('about/')?>">About</a></nav><div class="top-actions"><?php if($u): ?><a class="link-btn" href="<?=url(role_home($u['role']))?>">Dashboard</a><a class="dark-btn" href="<?=url('auth/logout.php')?>">Sign out</a><?php else: ?><a class="link-btn" href="<?=url('auth/login.php')?>">Log in</a><a class="orange-btn" href="<?=url('auth/register.php')?>">Create account</a><?php endif; ?></div></header><?php if($flash): ?><div class="flash <?=e($flash['type'])?>"><?=e($flash['message'])?></div><?php endif; ?><main>
