<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;700;900&display=swap');
        
        body {
            margin: 0 !important;
            padding: 0 !important;
            width: 100% !important;
            background-color: #f8fafc;
        }
        
        .main-table {
            border-collapse: collapse;
            background-color: #f8fafc;
        }

        .btn-primary {
            background-color: #2563eb;
            color: #ffffff !important;
            padding: 16px 32px;
            border-radius: 16px;
            text-decoration: none;
            font-weight: 900;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            display: inline-block;
        }

        .transaction-box {
            background-color: #f1f5f9;
            border-radius: 24px;
            padding: 30px;
            margin: 30px 0;
            border: 1px solid #e2e8f0;
        }
    </style>
</head>
<body style="font-family: 'Red Hat Display', Helvetica, Arial, sans-serif;">
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="main-table">
        <tr>
            <td align="center" style="padding: 40px 20px;">
                <table width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width: 600px;">
                    
                    <tr>
                        <td bgcolor="#0f172a" style="padding: 40px; border-radius: 40px 40px 0 0; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);">
                            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td>
                                        <img src="{{ asset('asset/img/logo.png') }}" alt="Logo" width="140" style="display: block; border: 0;">
                                    </td>
                                    <td align="right">
                                        <a href="{{ config('app.dashboard_url') }}" style="color: #ffffff; text-decoration: none; font-size: 10px; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.2); padding: 10px 20px; border-radius: 12px;">{{ __('Client Login') }}</a>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

                    <tr>
                        <td bgcolor="#ffffff" style="padding: 0;">
                            <img src="{{ asset('asset/img/0b075e77-2bf6-5a14-2821-e9d1c2b661d7.png') }}" width="600" style="width: 100%; height: auto; display: block;" alt="Account Update">
                        </td>
                    </tr>

                    <tr>
                        <td bgcolor="#ffffff" style="padding: 50px 40px; border-radius: 0 0 40px 40px;">
                            <h1 style="margin: 0 0 10px; color: #0f172a; font-size: 28px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.02em;">
                                Account Credited
                            </h1>
                            <p style="color: #64748b; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 30px;">
                                Hello, {{$username}}
                            </p>
                            
                            <p style="color: #475569; font-size: 16px; line-height: 1.6; margin-bottom: 0;">
                                We are pleased to notify you that a successful credit transaction has been processed for your trading account.
                            </p>

                            <div class="transaction-box">
                                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                    <tr>
                                        <td style="padding-bottom: 15px;">
                                            <span style="color: #94a3b8; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em;">Amount Credited</span><br>
                                            <span style="color: #10b981; font-size: 24px; font-weight: 900;">+ {{$currency}} {{$input_balance}}</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding-top: 15px; border-top: 1px solid #e2e8f0;">
                                            <table width="100%">
                                                <tr>
                                                    <td>
                                                        <span style="color: #94a3b8; font-size: 10px; font-weight: 900; text-transform: uppercase;">Current Balance</span><br>
                                                        <span style="color: #0f172a; font-size: 16px; font-weight: 700;">{{$currency}} {{number_format($balance, 2)}}</span>
                                                    </td>
                                                    <td align="right">
                                                        <span style="color: #94a3b8; font-size: 10px; font-weight: 900; text-transform: uppercase;">Total Profit</span><br>
                                                        <span style="color: #2563eb; font-size: 16px; font-weight: 700;">{{$currency}} {{number_format($userInterest, 2)}}</span>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </div>

                            <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-bottom: 50px;">
                                <tr>
                                    <td align="center">
                                        <a href="{{ config('app.dashboard_url') }}" class="btn-primary">
                                            Start Trading Now &rarr;
                                        </a>
                                    </td>
                                </tr>
                            </table>

                            <div style="border-top: 1px solid #f1f5f9; padding-top: 40px;">
                                <h4 style="color: #0f172a; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 25px;">Operational Guide</h4>
                                
                                <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-bottom: 20px;">
                                    <tr>
                                        <td width="32" valign="top" style="color: #2563eb; font-weight: 900; font-size: 14px;">01.</td>
                                        <td style="color: #475569; font-size: 14px; line-height: 1.5;">
                                            <strong style="color: #0f172a;">Verify Funds:</strong> Login to your dashboard to confirm the entry reflects in your wallet.
                                        </td>
                                    </tr>
                                </table>

                                <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-bottom: 20px;">
                                    <tr>
                                        <td width="32" valign="top" style="color: #2563eb; font-weight: 900; font-size: 14px;">02.</td>
                                        <td style="color: #475569; font-size: 14px; line-height: 1.5;">
                                            <strong style="color: #0f172a;">Deploy Capital:</strong> Select a high-yield investment plan to begin your next cycle.
                                        </td>
                                    </tr>
                                </table>

                                <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-bottom: 40px;">
                                    <tr>
                                        <td width="32" valign="top" style="color: #2563eb; font-weight: 900; font-size: 14px;">03.</td>
                                        <td style="color: #475569; font-size: 14px; line-height: 1.5;">
                                            <strong style="color: #0f172a;">Withdrawal:</strong> Remember that each plan has a fixed duration before profit can be moved to your bank.
                                        </td>
                                    </tr>
                                </table>
                            </div>

                            <p style="color: #94a3b8; font-size: 13px; line-height: 1.6;">
                                <strong>24/7 Support Desk:</strong> <a href="mailto:{{ config('app.support_email') }}" style="color: #2563eb; text-decoration: none;">{{ config('app.support_email') }}</a>
                            </p>

                            <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-top: 40px;">
                                <tr>
                                    <td>
                                        <p style="margin: 0; color: #0f172a; font-weight: 700; font-size: 14px;">Warm Regards,</p>
                                        <p style="margin: 0 0 20px; color: #64748b; font-size: 14px;">The {{ config('app.site_name') }} Team</p>
                                        <img src="{{ asset('asset/img/logo2.png') }}" alt="Signature Logo" width="110" style="display: block; border: 0;">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

                    <tr>
                        <td align="center" style="padding: 40px 20px;">
                            <p style="color: #94a3b8; font-size: 11px; line-height: 1.6; text-transform: uppercase; letter-spacing: 0.1em;">
                                &copy; {{ date('Y') }} {{ config('app.site_name') }}. Digital Asset Management.<br>
                                Strictly for authorized account holders only.
                            </p>
                        </td>
                    </tr>

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