<?php
/**
 * License suspended fallback page
 * This file is accessible even when install/.htaccess blocks index.php
 */
if (!defined('ROOT_PATH')) {
    define('ROOT_PATH', dirname(__DIR__));
}

$reason = htmlspecialchars(trim((string)($_GET['reason'] ?? '')), ENT_QUOTES, 'UTF-8');
http_response_code(402);
?>
<!doctype html>
<html lang="ar" dir="rtl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>تم تعليق الترخيص</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<style>body{background:#f4f6fb;display:flex;align-items:center;min-height:100vh;}</style>
</head>
<body>
<div class="container">
  <div class="row justify-content-center">
    <div class="col-md-6">
      <div class="card shadow border-0 rounded-4 p-4 text-center">
        <div style="font-size:3rem">⚠️</div>
        <h2 class="mt-3">تم تعليق الترخيص</h2>
        <p class="text-muted">الرجاء التواصل مع الدعم الفني لتفعيل ترخيصك.</p>
        <?php if ($reason): ?>
        <p class="small text-danger">السبب: <?= $reason ?></p>
        <?php endif; ?>
        <a href="mailto:support@ar-script.com" class="btn btn-primary mt-3">تواصل مع الدعم</a>
        <a href="/" class="btn btn-outline-secondary mt-2">الرئيسية</a>
      </div>
    </div>
  </div>
</div>
</body>
</html>
