/* ===== Global Loader ===== */



#global-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
}

/* وقتی لودینگ فعاله */
#global-loader.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* خود گوزن */
.loader__deer {
  width: 300px;
  height: 300px;
  image-rendering: crisp-edges;
  /* برای تندتر شدن حس حرکت، یه چرخش اضافه می‌دیم */
  animation: deer-spin 0.6s linear infinite;
}

/* ===== Error pages – base style ===== */

.error-page {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
  font-family: "Unixel", system-ui, sans-serif;
}

/* دکمه گوزن بالا-چپ */
.error-back {
  position: absolute;
  left: 0px;
  top: 0px;
  display: inline-block;
}

.error-back img {
  display: block;
  width: 120px;
  height: 120px;
}

/* متن‌ها */
.error-content {
  max-width: 900px;
  margin: 0 auto;
}

.error-title {
  font-size: clamp(40px, 5vw, 96px);
  margin: 0 0 24px;
}

.error-sub {
  font-size: clamp(20px, 3vw, 40px);
  margin: 0;
}

/* تم رنگی 404 (مشکی + سبز) */
.error-404 {
  background: #000;
  color: #fff;
}

.error-404 .error-title {
  color: #41b647;
}

/* 410 - Gone – مشکی + سبز مثل 404 */
.error-410 {
  background: #000;
  color: #fff;
}

.error-410 .error-title {
  color: #41b647;
}

.error-401,
.error-403 {
  background: #000;
  color: #fff;
}

.error-401 .error-title,
.error-403 .error-title {
  color: #ff4f8b;
}

.error-400,
.error-422 {
  background: #fff;
  color: #000;
}

.error-400 .error-title,
.error-422 .error-title {
  color: #235bff;
}

.error-500,
.error-502,
.error-504 {
  background: #000;
  color: #fff;
}

.error-500 .error-title,
.error-502 .error-title,
.error-504 .error-title {
  color: #ffb83b;
}

.error-503,
.error-429 {
  background: #fff;
  color: #000;
}

.error-503 .error-title,
.error-429 .error-title {
  color: #9b7171;
}