<?php
$name  = $_GET['name'] ?? '';
$class = $_GET['class'] ?? '';
$lang  = $_GET['lang'] ?? '';
$topic_id = $_GET['topic_id'] ?? 1;
?>

<!DOCTYPE html>
<html>
<head>
<title>Practice Completed | RS Learning Lab</title>

<style>
body{
    background:radial-gradient(circle at top,#020617,#0f172a);
    color:#22c55e;
    font-family:Arial;
    text-align:center;
    padding-top:120px;
}

.card{
    background:#020617;
    display:inline-block;
    padding:40px;
    border-radius:20px;
    box-shadow:0 0 30px rgba(0,0,0,.7);
}

.btn{
    display:inline-block;
    margin-top:25px;
    padding:14px 28px;
    background:#38bdf8;
    color:#020617;
    border-radius:999px;
    text-decoration:none;
    font-weight:bold;
}

.btn:hover{
    opacity:0.9;
}
</style>

</head>

<body>

<div class="card">

<h2>🎉 Practice Completed</h2>

<p>
Good work, <b><?= htmlspecialchars($name) ?></b>!  
You have successfully completed the Practice Track.
</p>

<a href="/rs_lab/reinforcement_track.php?topic_id=<?= $topic_id ?>&name=<?= urlencode($name) ?>&class=<?= urlencode($class) ?>&lang=<?= urlencode($lang) ?>" 
class="btn">
🚀 Proceed to Reinforcement
</a>

</div>

</body>
</html>