@php $brand = app(\App\Domain\Shared\Services\BrandingService::class)->forCurrentAcademy(); @endphp
<!DOCTYPE html>
<html dir="rtl" lang="{{ app()->getLocale() }}" class="h-full">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
    <title>{{ __('رابط غير صالح') }} — {{ $brand->academyName }}</title>
    <link href="https://fonts.googleapis.com/css2?family={{ urlencode($brand->fontAr) }}:wght@400;600;700&display=swap" rel="stylesheet">
    @vite(['resources/css/portal.css'])
    <style>:root { {!! $brand->cssVariableBlock() !!} --portal-surface:#fff; --portal-border:#e5e7eb; --portal-ink:#111827; --portal-muted:#6b7280; }
           body { background:#f8fafc; color: var(--portal-ink); font-family: var(--brand-font-ar), sans-serif; }</style>
</head>
<body class="grid min-h-dvh place-items-center px-6">
    <main class="portal-card w-full max-w-sm px-6 py-8 text-center" style="background:#fff;">
        <h1 class="text-lg font-extrabold">{{ __('رابط غير صالح') }}</h1>
        {{-- Missing, expired, revoked and already-used all say the same thing.
             Telling them apart would tell whoever is guessing which tokens exist. --}}
        <p class="mt-2 text-sm leading-relaxed" style="color: var(--portal-muted);">
            {{ $message ?? __('هذا الرابط غير صالح أو انتهت صلاحيته أو تم استخدامه بالفعل. تواصل مع الأكاديمية للحصول على رابط جديد.') }}
        </p>
    </main>
</body>
</html>
