html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #FAF6F0;
    font-family: -apple-system, "SF Arabic", "Cairo", "Tajawal", sans-serif;
}

body.theme-dark {
    background-color: #1A1410;
}

/* ---- Awny Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #FAF6F0;
  background-image:
    radial-gradient(at 15% 20%, rgba(233, 124, 46, 0.18) 0%, transparent 45%),
    radial-gradient(at 85% 80%, rgba(91, 189, 192, 0.18) 0%, transparent 45%),
    radial-gradient(at 80% 15%, rgba(245, 166, 35, 0.10) 0%, transparent 35%);
  display: grid;
  place-items: center;
}

.theme-dark .preloader {
  background: #1A1410;
  background-image:
    radial-gradient(at 15% 20%, rgba(233, 124, 46, 0.22) 0%, transparent 45%),
    radial-gradient(at 85% 80%, rgba(91, 189, 192, 0.18) 0%, transparent 45%);
}

.preloader-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.preloader-img {
  width: 140px !important;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.7),
    0 20px 50px -10px rgba(233, 124, 46, 0.35),
    0 0 80px 12px rgba(91, 189, 192, 0.15);
  animation: aw-pulse 2.4s ease-in-out infinite;
}

.preloader-brand {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #E97C2E 0%, #C8651A 60%, #5BBDC0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1;
}

.preloader-tagline {
  font-size: 14px;
  color: #6B5D52;
  margin: 0;
  font-weight: 500;
}

.theme-dark .preloader-tagline {
  color: #D4C7B8;
}

.preloader .loader {
  width: 180px;
  height: 4px;
  display: inline-block;
  position: relative;
  background: rgba(233, 124, 46, 0.15);
  overflow: hidden;
  border-radius: 999px;
  margin-top: 8px;
}

.preloader .loader::after {
  content: "";
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #E97C2E, #5BBDC0);
  position: absolute;
  top: 0;
  left: -50%;
  border-radius: 999px;
  animation: aw-loader 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes aw-loader {
  0%   { left: -50%; }
  100% { left: 100%; }
}

@keyframes aw-pulse {
  0%, 100% {
    transform: scale(1) translateY(0);
    box-shadow:
      0 0 0 8px rgba(255, 255, 255, 0.7),
      0 20px 50px -10px rgba(233, 124, 46, 0.35),
      0 0 80px 12px rgba(91, 189, 192, 0.15);
  }
  50% {
    transform: scale(1.05) translateY(-6px);
    box-shadow:
      0 0 0 10px rgba(255, 255, 255, 0.85),
      0 30px 60px -8px rgba(233, 124, 46, 0.45),
      0 0 100px 18px rgba(91, 189, 192, 0.22);
  }
}

/* ---- Header skeleton (rarely seen) ---- */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  display: none;
}

@media (max-width: 1199px) {
  .header { display: none; }
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.28rem 1.6rem;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px -8px rgba(233, 124, 46, 0.12);
  border-radius: 0 0 16px 16px;
}

.theme-dark .header-container {
  background-color: rgba(28, 24, 20, 0.85);
}

.header .logo {
  max-height: 36px;
  border-radius: 50%;
}

.placeholder {
  block-size: 0.825rem;
  inline-size: 3rem;
  background: linear-gradient(90deg, rgba(233, 124, 46, 0.08), rgba(91, 189, 192, 0.08));
  border-radius: 999px;
}

.theme-dark .placeholder {
  background: linear-gradient(90deg, rgba(233, 124, 46, 0.15), rgba(91, 189, 192, 0.15));
}

.placeholder-wide { inline-size: 12rem; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }
