<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>July 2025 Service Renewal - Action Required</title>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px;">
    
    <div style="background: #f8f9fa; padding: 20px; border-radius: 8px; border-left: 4px solid #007bff;">
        <h2 style="color: #007bff; margin: 0 0 10px 0;">🔔 July 2025 Service Renewal Notice</h2>
        <p style="margin: 0; font-size: 16px;">Hi {reseller_name},</p>
    </div>
    
    <div style="margin: 20px 0;">
        <h3 style="color: #495057; margin: 0 0 15px 0;">📊 Monthly Renewal Summary:</h3>
        <table style="width: 100%; border-collapse: collapse; background: #f8f9fa; border-radius: 5px;">
            <tr>
                <td style="padding: 12px; border-bottom: 1px solid #dee2e6;"><strong>Current Credit Balance:</strong></td>
                <td style="padding: 12px; border-bottom: 1px solid #dee2e6; text-align: right;"><strong>R{credit_balance}</strong></td>
            </tr>
            <tr>
                <td style="padding: 12px; border-bottom: 1px solid #dee2e6;"><strong>Monthly Renewal Amount:</strong></td>
                <td style="padding: 12px; border-bottom: 1px solid #dee2e6; text-align: right;"><strong>R{renewal_amount}</strong></td>
            </tr>
            <tr>
                <td style="padding: 12px;"><strong>Payment Required:</strong></td>
                <td style="padding: 12px; text-align: right;"><strong>R{amount_needed}</strong></td>
            </tr>
        </table>
    </div>
    
    <div style="{payment_status_class} padding: 15px; border-radius: 5px; margin: 20px 0;">
        {payment_status}
    </div>
    
    <div style="background: #dc3545; color: white; padding: 15px; border-radius: 5px; margin: 20px 0;">
        <h4 style="color: white; margin: 0 0 10px 0;">🚨 Action Required:</h4>
        <p style="margin: 0; color: white;">Please top up your credit wallet <strong>BEFORE 16:00 today</strong> to ensure uninterrupted service for July 2025.</p>
    </div>
    
    <h4 style="color: #28a745; margin: 20px 0 10px 0;">💳 Quick Payment Options:</h4>
    <ul style="margin: 0 0 20px 0; padding-left: 20px;">
        <li>Online Banking Transfer</li>
        <li>EFT Payment</li>
        <li>Contact billing support</li>
    </ul>
    
    <div style="text-align: center; margin: 30px 0;">
        <a href="{login_url}" style="background: #28a745; color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; display: inline-block;">💳 Top Up Credit Wallet Now</a>
    </div>
    
    <div style="background: #f8d7da; color: #721c24; padding: 15px; border-radius: 5px; margin: 20px 0; border-left: 4px solid #dc3545;">
        <p style="margin: 0; font-weight: bold;">⚠️ Services may be suspended if payment is not received by 16:00 today.</p>
    </div>
    
    <p>Need assistance? Reply to this message immediately or contact <a href="mailto:{support_email}">{support_email}</a>.</p>
    
    <p><strong>OpenWeb Billing Team</strong></p>
    
    <div style="text-align: center; margin-top: 20px; font-size: 12px; color: #6c757d;">
        <p>This is an urgent payment notification to ensure service continuity.

        Please act immediately to avoid service interruption.</p>
    </div>
</body>
</html>