<?php
if (!defined('ABSPATH')) {
    exit;
}
$name = '';
if (isset($user) && $user instanceof WP_User) {
    $name = (string) ($user->display_name ?: $user->user_login);
}
$verify_url = isset($verify_url) ? esc_url((string) $verify_url) : '';
$expires_label = isset($expires_label) ? sanitize_text_field((string) $expires_label) : __('48 hours', 'nexdirectory');
?>
<div style="font-family:Inter,Arial,sans-serif;color:#0f172a;line-height:1.55;">
    <h2 style="font-size:24px;margin:0 0 14px;color:#0b1221;"><?php esc_html_e('Verify Your Email', 'nexdirectory'); ?></h2>
    <p style="margin:0 0 12px;"><?php echo esc_html(sprintf(__('Hi %s,', 'nexdirectory'), $name)); ?></p>
    <p style="margin:0 0 16px;"><?php esc_html_e('Please verify your email before submitting your first event.', 'nexdirectory'); ?></p>
    <p style="margin:0 0 18px;">
        <a href="<?php echo $verify_url; ?>" style="display:inline-block;background:#FF5E14;color:#fff;text-decoration:none;padding:12px 20px;border-radius:999px;font-weight:700;"><?php esc_html_e('Verify Email', 'nexdirectory'); ?></a>
    </p>
    <p style="margin:0;color:#475569;"><?php echo esc_html(sprintf(__('This link expires in %s.', 'nexdirectory'), $expires_label)); ?></p>
</div>
