<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>¡Registro Completado! | Wincar</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
    <style>
        :root {
            --bg-color: #080705;
            --surface-color: #17150F;
            --surface-light: #262218;
            --primary-gold: #F5C542;
            --gold-light: #FFE885;
            --burgundy: #6B0E23;
            --burgundy-bright: #C72548;
            --text-primary: #FFFFFF;
            --text-secondary: #B8B09D;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px 16px;
            text-align: center;
        }

        .container {
            width: 100%;
            max-width: 440px;
        }

        .success-card {
            background: var(--surface-color);
            border: 1px solid rgba(245, 197, 66, 0.4);
            border-radius: 24px;
            padding: 36px 24px;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
        }

        .icon-check {
            width: 72px;
            height: 72px;
            background: linear-gradient(135deg, #4E9F3D, #1E5128);
            border: 3px solid var(--primary-gold);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px auto;
            font-size: 32px;
            box-shadow: 0 8px 24px rgba(78, 159, 61, 0.4);
        }

        .title {
            font-size: 24px;
            font-weight: 800;
            color: var(--primary-gold);
            margin-bottom: 8px;
        }

        .subtitle {
            font-size: 15px;
            color: var(--text-secondary);
            margin-bottom: 24px;
            line-height: 1.5;
        }

        .badge-info {
            background: rgba(107, 14, 35, 0.4);
            border: 1px solid var(--burgundy-bright);
            border-radius: 12px;
            padding: 12px;
            font-size: 13px;
            color: #FFB3C1;
            margin-bottom: 24px;
        }

        .btn-app {
            display: block;
            width: 100%;
            background: linear-gradient(135deg, #FFE885 0%, #F5C542 50%, #C9961A 100%);
            border-radius: 14px;
            padding: 16px;
            color: #17150F;
            font-size: 15px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-decoration: none;
            box-shadow: 0 6px 20px rgba(245, 197, 66, 0.35);
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="success-card">
            <div class="icon-check">✓</div>
            <h1 class="title">¡Registro Completado!</h1>
            <p class="subtitle">¡Hola <strong>{{ $user->name }}</strong>! Tu cuenta ha sido creada exitosamente.</p>

            @if(!empty($resellerCode))
            <div class="badge-info">
                🏎️ Vinculado al revendedor: <strong>{{ $resellerCode }}</strong>
            </div>
            @endif

            <p style="font-size: 13px; color: var(--text-secondary); margin-bottom: 24px;">
                Ya puedes iniciar sesión en la App Oficial de Wincar para participar en los sorteos y coleccionar tus tarjetas.
            </p>

            <a href="/" class="btn-app">INGRESAR A WINCAR</a>
        </div>
    </div>
</body>
</html>
