<div style="background:#121212; min-height:100vh; padding:40px; color:#fff;">

    <h2 style="color:#ff2d2d; text-align:center; margin-bottom:30px;">Order History</h2>

    <table style="width:100%; background:#1a1a1a; border-collapse:collapse; border-radius:6px; overflow:hidden;">

        <thead>

            <tr style="background:#2a2a2a;">

                <th style="padding:12px; text-align:left; color:#ff2d2d;">ID</th>

                <th style="padding:12px; text-align:left; color:#ff2d2d;">Service</th>

                <th style="padding:12px; text-align:left; color:#ff2d2d;">Link</th>

                <th style="padding:12px; text-align:left; color:#ff2d2d;">Quantity</th>

                <th style="padding:12px; text-align:left; color:#ff2d2d;">Status</th>

                <th style="padding:12px; text-align:left; color:#ff2d2d;">Date</th>

            </tr>

        </thead>

        <tbody>

            {% for order in orders %}

                <tr style="border-bottom:1px solid #333;">

                    <td style="padding:10px;">{{ order.id }}</td>

                    <td style="padding:10px;">{{ order.service }}</td>

                    <td style="padding:10px;">{{ order.link }}</td>

                    <td style="padding:10px;">{{ order.quantity }}</td>

                    <td style="padding:10px; color:#ff2d2d;">{{ order.status }}</td>

                    <td style="padding:10px;">{{ order.date }}</td>

                </tr>

            {% else %}

                <tr>

                    <td colspan="6" style="padding:15px; text-align:center; color:#b3b3b3;">

                        No orders found.

                    </td>

                </tr>

            {% endfor %}

        </tbody>

    </table>

</div>