<?php
$trxId = $_GET['trx'] ?? '';
$amount = $_GET['amount'] ?? '0';
?>
<!DOCTYPE html>
<html lang="bn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Payment Successful</title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-slate-900 text-white min-h-screen flex items-center justify-center p-4">
    <div class="max-w-md w-full bg-slate-800 rounded-2xl shadow-xl p-6 text-center border border-slate-700">
        <div class="w-16 h-16 bg-green-500/20 text-green-400 rounded-full flex items-center justify-center mx-auto mb-4 border border-green-500/30">
            <svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
        </div>
        <h2 class="text-2xl font-bold text-white mb-2">ডিপোজিট সফল হয়েছে!</h2>
        <p class="text-slate-400 text-sm mb-6">আপনার অ্যাকাউন্টে টাকা যোগ করা হয়েছে।</p>
        
        <div class="bg-slate-700/50 p-4 rounded-lg mb-6 text-left text-sm space-y-2 border border-slate-600">
            <div class="flex justify-between"><span class="text-slate-400">অ্যামাউন্ট:</span> <span class="font-bold text-green-400">৳<?php echo htmlspecialchars($amount); ?></span></div>
            <div class="flex justify-between"><span class="text-slate-400">TrxID:</span> <span class="font-mono"><?php echo htmlspecialchars($trxId); ?></span></div>
        </div>

        <a href="/" class="block w-full bg-slate-700 hover:bg-slate-600 py-3 rounded-lg text-sm font-bold transition">মূল পেজে ফিরে যান</a>
    </div>
</body>
</html>