<!DOCTYPE html>
<html>
<head><meta charset="utf-8"><title>Loyalty Reward</title></head>
<body>
<div style="max-width:600px;margin:0 auto;font-family:Arial,sans-serif;">
  <h1 style="color:#1a1a2e;">{{subject_line}}</h1>
  <p>Dear {{first_name}} {{last_name}},</p>
  <p>Thank you for being an amazing customer! With <strong>{{purchase_count}} purchases</strong>,
  you have earned a special reward.</p>
  <div style="background:#d4edda;padding:20px;border-radius:8px;text-align:center;">
    <p style="font-size:20px;color:#155724;">You have earned <strong>{{reward_points}} bonus points</strong>!</p>
    <p style="font-size:24px;color:#e94560;">Plus {{discount_percent}}% off your next order</p>
    <p>Use code: <strong>{{offer_code}}</strong></p>
    <p>Valid until: {{offer_expiry}}</p>
  </div>
  <p>Check out what is new in <strong>{{preferred_category}}</strong>!</p>
  <p>With gratitude,<br>The {{from_name}} Team</p>
  <hr>
  <p style="font-size:11px;color:#888;">Sent to {{email}} | <a href="#">Unsubscribe</a></p>
</div>
</body>
</html>
