<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="x-apple-disable-message-reformatting">
    <title>%SUBJECT%</title>
    <!--[if mso]>
    <noscript>
        <xml>
            <o:OfficeDocumentSettings>
                <o:AllowPNG/>
                <o:PixelsPerInch>96</o:PixelsPerInch>
            </o:OfficeDocumentSettings>
        </xml>
    </noscript>
    <![endif]-->
</head>
<body style="margin: 0; padding: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #374151; background-color: #f3f4f6;">
    <!-- Email Wrapper -->
    <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="background-color: #f3f4f6;">
        <tr>
            <td style="padding: 40px 20px;">
                <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="max-width: 600px; margin: 0 auto;">
                    <!-- Main Container -->
                    <tr>
                        <td style="background-color: #ffffff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);">

                            <!-- Header -->
                            <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
                                <tr>
                                    <td style="background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%); padding: 40px 40px 32px; text-align: center;">
                                        <!-- Logo -->
                                        <img src="%LOGO_URL%" alt="%SITE_NAME%" style="max-height: 48px; max-width: 160px; height: auto; width: auto; margin-bottom: 16px;" onerror="this.style.display='none'">
                                        <!-- Site Name -->
                                        <h1 style="color: #ffffff; font-size: 28px; font-weight: 700; margin: 0 0 8px 0; letter-spacing: -0.02em;">%SITE_NAME%</h1>
                                        <!-- Subject Line -->
                                        <p style="color: rgba(255, 255, 255, 0.9); font-size: 16px; font-weight: 500; margin: 0; line-height: 1.5;">%HEADER%</p>
                                    </td>
                                </tr>
                            </table>

                            <!-- Content -->
                            <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
                                <tr>
                                    <td style="padding: 40px;">
                                        %MESSAGE%
                                    </td>
                                </tr>
                            </table>

                            <!-- Footer -->
                            <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
                                <tr>
                                    <td style="background-color: #f9fafb; padding: 32px 40px; text-align: center; border-top: 1px solid #e5e7eb;">
                                        <!-- Footer Links -->
                                        <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin-bottom: 24px;">
                                            <tr>
                                                <td align="center">
                                                    <a href="%SITE_URL%/support" style="display: inline-block; margin: 0 12px; color: #6366f1; text-decoration: none; font-size: 14px; font-weight: 500;">Help Center</a>
                                                    <a href="%SITE_URL%/contact" style="display: inline-block; margin: 0 12px; color: #6366f1; text-decoration: none; font-size: 14px; font-weight: 500;">Contact Us</a>
                                                    <a href="%SITE_URL%/privacy" style="display: inline-block; margin: 0 12px; color: #6366f1; text-decoration: none; font-size: 14px; font-weight: 500;">Privacy</a>
                                                    <a href="%SITE_URL%/terms" style="display: inline-block; margin: 0 12px; color: #6366f1; text-decoration: none; font-size: 14px; font-weight: 500;">Terms</a>
                                                </td>
                                            </tr>
                                        </table>

                                        <!-- Footer Text -->
                                        <p style="margin: 0 0 16px 0; color: #6b7280; font-size: 14px; line-height: 1.6;">
                                            This email was sent by <strong style="color: #374151;">%FOOTER%</strong><br>
                                            <span style="font-size: 13px;">Questions? Contact our 24/7 support team.</span>
                                        </p>

                                        <!-- Security Badge -->
                                        <table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" style="margin-bottom: 16px;">
                                            <tr>
                                                <td style="background-color: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 50px; padding: 8px 16px;">
                                                    <span style="color: #059669; font-size: 13px; font-weight: 500;">&#128274; Secured with 256-bit encryption</span>
                                                </td>
                                            </tr>
                                        </table>

                                        <!-- Copyright -->
                                        <p style="margin: 0; font-size: 12px; color: #9ca3af;">
                                            &copy; 2024 %FOOTER%. All rights reserved.<br>
                                            <a href="%SITE_URL%" style="color: #6366f1; text-decoration: none;">%SITE_URL%</a>
                                        </p>
                                    </td>
                                </tr>
                            </table>

                        </td>
                    </tr>

                    <!-- Unsubscribe -->
                    <tr>
                        <td style="padding: 24px 0 0 0; text-align: center;">
                            <p style="margin: 0; font-size: 12px; color: #9ca3af;">
                                You're receiving this email because you have an account with %SITE_NAME%.<br>
                                <a href="%SITE_URL%/unsubscribe" style="color: #6b7280; text-decoration: underline;">Unsubscribe</a> from marketing emails
                            </p>
                        </td>
                    </tr>

                </table>
            </td>
        </tr>
    </table>
</body>
</html>
