<?php
$name = isset($_GET['name']) ? htmlspecialchars($_GET['name']) : 'Dear User';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Thank You - Monosky</title>
    <style>
        body {
            font-family: "Poppins", sans-serif;
            background: #f8f9fa;
            color: #333;
            text-align: center;
            padding: 80px 20px;
        }
        .thankyou-box {
            background: #fff;
            max-width: 500px;
            margin: 0 auto;
            padding: 40px 30px;
            border-radius: 16px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        h1 {
            color: #007bff;
        }
        p {
            font-size: 16px;
            margin-top: 10px;
        }
        .checkmark {
            font-size: 60px;
            color: #28a745;
        }
        .btn {
            display: inline-block;
            margin-top: 25px;
            padding: 12px 25px;
            background: #007bff;
            color: white;
            border-radius: 6px;
            text-decoration: none;
        }
        .btn:hover {
            background: #0056b3;
        }
    </style>
</head>
<body>
    <div class="thankyou-box">
        <div class="checkmark">✅</div>
        <h1>Thank You, <?php echo $name; ?>!</h1>
        <p>Your registration was successful.</p>
        <p>Please check your Gmail inbox for your referral code.</p>
        <a href="/" class="btn">Back to Home</a>
    </div>
</body>
</html>
