@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/tajawal-400-arabic.woff2") format("woff2");
}

@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/tajawal-700-arabic.woff2") format("woff2");
}

@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/tajawal-800-arabic.woff2") format("woff2");
}

:root {
  --bg-top: #08173a;
  --bg-bottom: #0f2963;
  --card-bg: rgba(255, 255, 255, 0.97);
  --ink: #0b1f4d;
  --ink-muted: #4b5a78;
  --gold: #c9962e;
  --gold-soft: #f5d27a;
  --pill-bg: #fef7e6;
  --pill-border: #f0d79a;
  --pill-ink: #8a6112;
  --track-bg: #e7ecf5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #193b82 0%, transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(201, 150, 46, 0.22) 0%, transparent 45%),
              linear-gradient(155deg, var(--bg-top), var(--bg-bottom));
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(3, 10, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0b1f4d, #19397c);
  color: var(--gold-soft);
  box-shadow: 0 10px 24px rgba(11, 31, 77, 0.22);
}

.icon {
  width: 36px;
  height: 36px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pill-ink);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.new-site-box {
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 16px;
  background: #f5f8ff;
  border: 1px solid #dbe4f5;
}

.new-site-label {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.new-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  color: #0b1f4d;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 6px 16px rgba(201, 150, 46, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.new-site-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(201, 150, 46, 0.36);
}

.new-site-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.link-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lead {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.sub {
  margin: 0 0 28px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--track-bg);
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  inset-block: 0;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
  animation: slide 2.2s ease-in-out infinite;
}

.site-footer {
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  margin: 0;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

@keyframes slide {
  0% {
    inset-inline-start: -45%;
  }
  100% {
    inset-inline-start: 105%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot,
  .progress-bar {
    animation: none;
  }

  .new-site-link {
    transition: none;
  }

  .progress-bar {
    inset-inline-start: 29%;
  }
}

@media (min-width: 640px) {
  .card {
    padding: 48px 40px;
  }
}
