<!DOCTYPE html>
<html lang="en">
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <?php
    $defaultTitle = 'CryptoExchange Pro - Professional Cryptocurrency Trading Platform';
    $defaultDescription = 'Professional cryptocurrency exchange platform with advanced P2P trading, secure escrow system, and comprehensive KYC verification. Trade Bitcoin, Ethereum, and other digital assets safely.';
    ?>

    <title><?php echo isset($pageTitle) ? $pageTitle : $defaultTitle; ?></title>
    
    <!-- SEO Meta Tags -->
    <meta name="description" content="<?php echo isset($pageDescription) ? $pageDescription : $defaultDescription; ?>">
    <meta name="keywords" content="cryptocurrency exchange, bitcoin trading, ethereum, P2P trading, crypto exchange, blockchain, digital currency, secure trading, escrow, KYC verification, professional trading">
    <meta name="author" content="CryptoExchange Pro">
    <meta name="robots" content="index, follow">
    <link rel="canonical" href="<?php echo SITE_URL . $_SERVER['REQUEST_URI']; ?>">
    
    <!-- Open Graph Meta Tags -->
    <meta property="og:title" content="<?php echo isset($pageTitle) ? $pageTitle : 'CryptoExchange Pro - Professional Cryptocurrency Trading'; ?>">
    <meta property="og:description" content="<?php echo isset($pageDescription) ? $pageDescription : 'Professional cryptocurrency exchange with secure P2P trading and escrow protection.'; ?>">
    <meta property="og:type" content="website">
    <meta property="og:url" content="<?php echo SITE_URL . $_SERVER['REQUEST_URI']; ?>">
    <meta property="og:image" content="<?php echo SITE_URL; ?>/assets/images/og-image.jpg">
    <meta property="og:site_name" content="CryptoExchange Pro">
    
    <!-- Twitter Card Meta Tags -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="<?php echo isset($pageTitle) ? $pageTitle : 'CryptoExchange Pro'; ?>">
    <meta name="twitter:description" content="<?php echo isset($pageDescription) ? $pageDescription : 'Professional cryptocurrency exchange with secure P2P trading.'; ?>">
    <meta name="twitter:image" content="<?php echo SITE_URL; ?>/assets/images/twitter-card.jpg">
    
    <!-- Favicon -->
    <link rel="icon" type="image/x-icon" href="/assets/images/favicon.ico">
    <link rel="apple-touch-icon" sizes="180x180" href="/assets/images/apple-touch-icon.png">
    
    <!-- Security Headers -->
    <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://cdnjs.cloudflare.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdnjs.cloudflare.com; img-src 'self' data: https:; font-src 'self' https://fonts.gstatic.com https://cdnjs.cloudflare.com; connect-src 'self';">
    <meta name="csrf-token" content="<?php echo Security::generateCSRFToken(); ?>">
    
    <!-- CSS -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    
    <!-- Structured Data -->
    <?php
$schemaData = [
    "@context" => "https://schema.org",
    "@type" => "FinancialService",
    "name" => "CryptoExchange Pro",
    "description" => "Professional cryptocurrency exchange platform with P2P trading and escrow protection",
    "url" => SITE_URL,
    "logo" => SITE_URL . "/assets/images/logo.png",
    "sameAs" => [
        "https://twitter.com/cryptoexchangepro",
        "https://facebook.com/cryptoexchangepro"
    ],
    "contactPoint" => [
        "@type" => "ContactPoint",
        "telephone" => "+1-555-CRYPTO",
        "contactType" => "customer service",
        "availableLanguage" => "English"
    ],
    "address" => [
        "@type" => "PostalAddress",
        "addressCountry" => "US"
    ]
];
?>

<script type="application/ld+json">
<?= json_encode($schemaData, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT); ?>
</script>
</head>
<body class="bg-light text-dark">
  <?php include_once('navbar.php'); ?> 
