<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Subscription - Flex Market</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-4">
    <h3>Subscription Plans</h3>
    
    <div class="alert alert-info">
        <strong>Current Plan:</strong> <?= ucfirst($user['subscription_tier'] ?? 'free') ?>
    </div>

    <div class="row">
        <div class="col-md-4">
            <div class="card">
                <div class="card-header bg-secondary text-white">Free</div>
                <div class="card-body">
                    <h4>₹0/month</h4>
                    <ul>
                        <li>Upload up to 5 products</li>
                        <li>Basic support</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card">
                <div class="card-header bg-primary text-white">Premium</div>
                <div class="card-body">
                    <h4>₹299/month</h4>
                    <ul>
                        <li>Upload up to 50 products</li>
                        <li>Priority support</li>
                        <li>Analytics dashboard</li>
                    </ul>
                    <button class="btn btn-primary">Upgrade</button>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card">
                <div class="card-header bg-warning text-dark">Pro</div>
                <div class="card-body">
                    <h4>₹999/month</h4>
                    <ul>
                        <li>Unlimited products</li>
                        <li>24/7 support</li>
                        <li>Advanced analytics</li>
                        <li>Featured listings</li>
                    </ul>
                    <button class="btn btn-warning">Upgrade</button>
                </div>
            </div>
        </div>
    </div>
    
    <a href="<?= base_url('seller/dashboard') ?>" class="btn btn-secondary mt-3">Back</a>
</div>
</body>
</html>
