<div style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; max-width: 600px; margin: 0 auto; background-color: #f8fafc;">
    <!-- Header Banner -->
    <div style="background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); padding: 40px 20px; text-align: center; border-radius: 8px 8px 0 0;">
        <h1 style="color: #ffffff; margin: 0; font-size: 28px; font-weight: 700;">🚀 Welcome to Your Reseller Account!</h1>
        <p style="color: #f3e8ff; margin: 10px 0 0 0; font-size: 16px;">Start creating and managing client accounts today</p>
    </div>

    <!-- Main Content -->
    <div style="background-color: #ffffff; padding: 30px; border-radius: 0 0 8px 8px;">
        
        <!-- Quick Start Guide -->
        <div style="background-color: #fef3c7; border-left: 4px solid #f59e0b; padding: 20px; margin-bottom: 30px; border-radius: 4px;">
            <h2 style="color: #78350f; margin: 0 0 15px 0; font-size: 18px;">⚡ Reseller Quick Start</h2>
            <ol style="color: #0f172a; margin: 0; padding-left: 20px; line-height: 1.8;">
                <li><strong>Access WHM</strong> to manage your reseller account</li>
                <li><strong>Create hosting packages</strong> for your clients</li>
                <li><strong>Add client accounts</strong> and start billing</li>
                <li><strong>Brand your services</strong> with custom nameservers</li>
            </ol>
        </div>

        <!-- Account Information -->
        <h3 style="color: #1e293b; margin: 0 0 15px 0; font-size: 20px; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px;">📋 Account Information</h3>
        <table style="width: 100%; border-collapse: collapse; margin-bottom: 25px;">
            <tr>
                <td style="padding: 12px 0; color: #64748b; font-weight: 600; width: 40%;">Reseller Package:</td>
                <td style="padding: 12px 0; color: #0f172a; font-weight: 500;">{{service_product_name}}</td>
            </tr>
            <tr style="background-color: #f8fafc;">
                <td style="padding: 12px 0; color: #64748b; font-weight: 600;">Primary Domain:</td>
                <td style="padding: 12px 0; color: #0f172a; font-weight: 500;">{{service_domain}}</td>
            </tr>
        </table>

        <!-- WHM Access (Primary) -->
        <div style="background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); padding: 25px; border-radius: 8px; margin-bottom: 20px;">
            <h3 style="color: #ffffff; margin: 0 0 20px 0; font-size: 18px;">👑 WHM Access (Reseller Control)</h3>
            <div style="background-color: rgba(255, 255, 255, 0.95); padding: 20px; border-radius: 6px;">
                <table style="width: 100%;">
                    <tr>
                        <td style="padding: 8px 0; color: #581c87; font-weight: 600;">WHM URL:</td>
                        <td style="padding: 8px 0;"><a href="http://{{service_server_ip}}:2086/" style="color: #7c3aed; text-decoration: none; font-weight: 500;">http://{{service_server_ip}}:2086/</a></td>
                    </tr>
                    <tr>
                        <td style="padding: 8px 0; color: #581c87; font-weight: 600;">Username:</td>
                        <td style="padding: 8px 0; color: #0f172a; font-family: monospace; font-size: 14px; background-color: #f1f5f9; padding: 4px 8px; border-radius: 4px;">{{service_username}}</td>
                    </tr>
                    <tr>
                        <td style="padding: 8px 0; color: #581c87; font-weight: 600;">Password:</td>
                        <td style="padding: 8px 0; color: #0f172a; font-family: monospace; font-size: 14px; background-color: #f1f5f9; padding: 4px 8px; border-radius: 4px;">{{service_password}}</td>
                    </tr>
                </table>
                <p style="margin: 15px 0 0 0; color: #dc2626; font-size: 13px; font-weight: 500;">⚠️ WHM gives you full reseller control. Keep these credentials secure!</p>
            </div>
        </div>

        <!-- cPanel Access (Secondary) -->
        <div style="background-color: #eff6ff; border: 2px solid #3b82f6; padding: 20px; border-radius: 8px; margin-bottom: 25px;">
            <h3 style="color: #1e40af; margin: 0 0 15px 0; font-size: 16px;">🔧 cPanel Access (Your Hosting)</h3>
            <p style="color: #1e293b; margin: 0 0 10px 0; font-size: 14px;">Use cPanel to manage your own website and emails:</p>
            <p style="margin: 0;"><a href="http://{{service_server_ip}}:2082/" style="color: #3b82f6; text-decoration: none; font-weight: 500;">http://{{service_server_ip}}:2082/</a></p>
            <p style="margin: 10px 0 0 0; color: #64748b; font-size: 13px;">Login with the same username and password above</p>
        </div>

        <!-- Reseller Features -->
        <div style="background-color: #f0fdf4; border-left: 4px solid #10b981; padding: 20px; margin-bottom: 25px; border-radius: 4px;">
            <h3 style="color: #065f46; margin: 0 0 15px 0; font-size: 16px;">✨ What You Can Do</h3>
            <ul style="color: #0f172a; margin: 0; padding-left: 20px; line-height: 1.8; font-size: 14px;">
                <li><strong>Create Packages:</strong> Define hosting plans with custom resources</li>
                <li><strong>Manage Clients:</strong> Add, suspend, or terminate client accounts</li>
                <li><strong>White Label:</strong> Brand services with your company name</li>
                <li><strong>Monitor Resources:</strong> Track bandwidth and disk usage</li>
                <li><strong>Billing Integration:</strong> Set your own pricing and payment terms</li>
            </ul>
        </div>

        <!-- Email Settings -->
        <h3 style="color: #1e293b; margin: 0 0 15px 0; font-size: 18px; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px;">📧 Email Configuration</h3>
        <table style="width: 100%; border-collapse: collapse; margin-bottom: 25px; font-size: 14px;">
            <tr>
                <td style="padding: 10px 0; color: #64748b; font-weight: 600; width: 40%;">Incoming (POP3/IMAP):</td>
                <td style="padding: 10px 0; color: #0f172a; font-family: monospace;">mail.{{service_domain}}</td>
            </tr>
            <tr style="background-color: #f8fafc;">
                <td style="padding: 10px 0; color: #64748b; font-weight: 600;">Outgoing (SMTP):</td>
                <td style="padding: 10px 0; color: #0f172a; font-family: monospace;">mail.{{service_domain}}</td>
            </tr>
        </table>

        <!-- CTA Buttons -->
        <div style="text-align: center; margin: 30px 0;">
            <a href="http://{{service_server_ip}}:2086/" style="display: inline-block; background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); color: #ffffff; padding: 14px 32px; text-decoration: none; border-radius: 6px; font-weight: 600; font-size: 16px; margin: 0 5px;">Access WHM →</a>
            <a href="http://{{service_server_ip}}:2082/" style="display: inline-block; background-color: #3b82f6; color: #ffffff; padding: 14px 32px; text-decoration: none; border-radius: 6px; font-weight: 600; font-size: 16px; margin: 0 5px;">Access cPanel →</a>
        </div>

        <!-- Support Section -->
        <div style="background-color: #f8fafc; padding: 20px; border-radius: 6px; text-align: center; margin-top: 30px;">
            <p style="color: #64748b; margin: 0 0 10px 0; font-size: 14px;">Questions about reseller features?</p>
            <p style="color: #0f172a; margin: 0; font-weight: 600;">Our reseller support team is ready to help 24/7!</p>
        </div>
    </div>
</div>