@font-face {
  font-family: "IRANSansXFaNum";
  src: url("https://gsp-monitoring-production.s3.ir-central1.arvanstorage.ir/waiting-room/1e750320-413d-48b4-82df-3ba76f616f8a/assets/f3dee657-23d9-4905-8007-4a052307aa31/v1/assets/IRANSansXFaNum-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansXFaNum";
  src: url("https://gsp-monitoring-production.s3.ir-central1.arvanstorage.ir/waiting-room/1e750320-413d-48b4-82df-3ba76f616f8a/assets/fa3cb68b-76e1-45bb-b934-3d7d6adbbbf6/v1/assets/IRANSansXFaNum-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #1467c9;
  --blue-dark: #0b4f9c;
  --ink: #172033;
  --muted: #68758a;
  --surface: rgba(255, 255, 255, .9);
  --line: rgba(31, 105, 190, .12);
  --warning: #c78300;
  --error: #c9362b;
}

* { box-sizing: border-box; }

html, body { min-width: 280px; min-height: 100%; }

body {
  margin: 0;
  background: #f4f8fd;
  color: var(--ink);
  font-family: "IRANSansXFaNum", Tahoma, Arial, system-ui, sans-serif;
}

[hidden] { display: none !important; }

.entry-screen {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(85, 160, 242, .18), transparent 31%),
    radial-gradient(circle at 88% 86%, rgba(247, 201, 72, .18), transparent 27%),
    linear-gradient(145deg, #fbfdff 0%, #eef5fd 100%);
}

.ambient { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(rgba(20, 103, 201, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 103, 201, .07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.ambient i { position: absolute; border-radius: 50%; filter: blur(1px); }
.ambient i:nth-child(1) { width: 340px; height: 340px; top: -190px; right: -130px; border: 1px solid rgba(20, 103, 201, .15); box-shadow: 0 0 0 62px rgba(20, 103, 201, .035), 0 0 0 124px rgba(20, 103, 201, .025); }
.ambient i:nth-child(2) { width: 220px; height: 220px; bottom: -130px; left: -70px; border: 1px solid rgba(247, 201, 72, .24); box-shadow: 0 0 0 48px rgba(247, 201, 72, .045); }
.ambient i:nth-child(3) { width: 8px; height: 8px; top: 22%; left: 18%; background: #f7c948; box-shadow: 0 0 0 7px rgba(247, 201, 72, .13); }

.entry-card {
  width: min(100%, 480px);
  padding: 46px 48px 40px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(25, 79, 140, .14), 0 4px 16px rgba(25, 79, 140, .06);
  text-align: center;
  backdrop-filter: blur(18px);
}

.brand-logo { display: block; width: 174px; max-width: 58vw; height: auto; margin: 0 auto 38px; }

.status-visual { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 22px; }
.loader { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; border-radius: 18px; background: #edf6ff; }
.loader i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 1.15s ease-in-out infinite; }
.loader i:nth-child(2) { animation-delay: .14s; }
.loader i:nth-child(3) { animation-delay: .28s; }
.status-mark { display: none; place-items: center; width: 54px; height: 54px; border-radius: 17px; font-size: 25px; font-weight: 700; }

h1 { margin: 0; font-size: clamp(21px, 4vw, 25px); line-height: 1.7; letter-spacing: -.35px; }
.status-copy > p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.status-copy .detail { margin-top: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(244, 249, 255, .78); font-size: 12px; }

button {
  width: 100%;
  margin-top: 20px;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font: 700 13px/1.5 inherit;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
button:hover { background: var(--blue-dark); transform: translateY(-1px); }
button:focus-visible { outline: 3px solid rgba(20, 103, 201, .24); outline-offset: 3px; }

.entry-screen[data-tone="warning"] .loader { background: #fff8e7; }
.entry-screen[data-tone="warning"] .loader i { background: var(--warning); }
.entry-screen[data-tone="warning"] .status-copy .detail { border-color: rgba(199, 131, 0, .18); background: #fffbf0; color: #8a5a00; }
.entry-screen[data-tone="error"] .loader { display: none; }
.entry-screen[data-tone="error"] .status-mark { display: grid; }
.entry-screen[data-tone="error"] .status-mark { background: #fff0ef; color: var(--error); }
.entry-screen[data-tone="error"] .status-copy .detail { border-color: rgba(201, 54, 43, .15); background: #fff6f5; color: #8f2820; }

noscript { position: fixed; right: 16px; bottom: 16px; left: 16px; padding: 12px; border-radius: 12px; background: #fff0ef; color: #8f2820; text-align: center; font: 13px/1.8 "IRANSansXFaNum", Tahoma, Arial, sans-serif; }

@keyframes pulse {
  0%, 70%, 100% { opacity: .3; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 560px) {
  .entry-screen { padding: 16px; }
  .entry-card { padding: 38px 22px 32px; border-radius: 24px; }
  .brand-logo { width: 154px; margin-bottom: 32px; }
  .status-visual { margin-bottom: 18px; }
  .status-copy > p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader i { animation: none; opacity: .7; }
  button { transition: none; }
}
