<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Email Verified - Match Metrix</title>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@700;900&display=swap" rel="stylesheet">
    <style>
        body {
            margin: 0;
            padding: 0;
            background: linear-gradient(180deg, #0B0E14 0%, #05070A 100%);
            color: #FFFFFF;
            font-family: 'Inter', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            overflow: hidden;
            position: relative;
        }

        /* Glowing Blobs */
        .glow-blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.15;
            z-index: 1;
        }
        .blob-cyan {
            width: 300px;
            height: 300px;
            background: #06B6D4;
            top: -50px;
            right: -50px;
        }
        .blob-blue {
            width: 300px;
            height: 300px;
            background: #3B82F6;
            bottom: -50px;
            left: -50px;
        }

        .container {
            z-index: 2;
            width: 90%;
            max-width: 420px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px rgba(255, 255, 255, 0.08) solid;
            border-radius: 24px;
            padding: 40px 24px;
            text-align: center;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .logo-badge {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: #131722;
            border: 1.5px solid rgba(74, 222, 128, 0.4);
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto 24px auto;
            box-shadow: 0 0 20px rgba(74, 222, 128, 0.15);
        }

        .logo-icon {
            font-size: 32px;
            color: #4ADE80;
        }

        h1 {
            font-family: 'Outfit', sans-serif;
            font-size: 24px;
            font-weight: 900;
            margin: 0 0 10px 0;
            letter-spacing: 0.5px;
        }

        p {
            font-size: 14px;
            color: #9CA3AF;
            margin: 0 0 30px 0;
            line-height: 1.5;
        }

        .success-text {
            color: #4ADE80;
            font-weight: 600;
        }

        .btn {
            display: inline-block;
            width: 100%;
            box-sizing: border-box;
            background: linear-gradient(90deg, #2563EB 0%, #4ADE80 100%);
            border: none;
            border-radius: 12px;
            color: #FFFFFF;
            padding: 14px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            box-shadow: 0 4px 14px rgba(74, 222, 128, 0.2);
            transition: all 0.3s ease;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(74, 222, 128, 0.3);
        }
    </style>
</head>
<body>
    <div class="glow-blob blob-cyan"></div>
    <div class="glow-blob blob-blue"></div>

    <div class="container">
        <div class="logo-badge">
            <span class="logo-icon">⚽</span>
        </div>

        @if($already_verified)
            <h1>Already Verified</h1>
            <p>Your email address is already verified. You are good to go!</p>
        @else
            <h1>Email Verified!</h1>
            <p>Thank you <span class="success-text">{{ $user->name }}</span>, your email address has been successfully verified.</p>
        @endif

        <p style="margin-bottom: 20px; font-size: 13px;">You can now safely return to the <strong>Match Metrix</strong> application.</p>

        <!-- Provide a button to trigger deep link or close page -->
        <a href="matchmetrix://verified" class="btn">Open Match Metrix</a>
    </div>
</body>
</html>
