<?php
/**
 * Page Not Found (404)
 * PHP User Registration - https://rskworld.in
 * Developer: Molla Samser | RSK World
 * Contact: help@rskworld.in | +91 93305 39277
 * Year: 2026
 */

require_once __DIR__ . '/includes/init.php';

http_response_code(404);
$pageTitle = 'Page Not Found';
require_once __DIR__ . '/includes/header.php';
?>

<div class="auth-card page-404">
    <h1><i class="fas fa-exclamation-triangle"></i> 404</h1>
    <p class="subtitle">Page not found — <a href="https://rskworld.in" target="_blank">rskworld.in</a></p>
    <p>The page you are looking for does not exist or has been moved.</p>
    <p>
        <a href="index.php" class="btn btn-primary">Go to Home</a>
        <?php if (function_exists('isLoggedIn') && isLoggedIn()): ?>
            <a href="dashboard.php" class="btn btn-secondary">Dashboard</a>
        <?php else: ?>
            <a href="login.php" class="btn btn-secondary">Log In</a>
        <?php endif; ?>
    </p>
</div>

<?php require_once __DIR__ . '/includes/footer.php'; ?>
