<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ '[TEST] ' . $campaign->email_subject }}</title>
</head>
<body style="margin:0;padding:0;background:#f3f4f6;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;">

{{-- Test badge banner --}}
<div style="background:#f59e0b;color:#fff;text-align:center;padding:8px 16px;font-size:12px;font-weight:600;letter-spacing:0.05em;">
    ⚠ TEST EMAIL - This is a preview of campaign "{{ $campaign->title }}"
</div>

{{-- Email body --}}
{!! $renderedHtml !!}

</body>
</html>
