/* ═══════════════════════════════════════════════════════════════
   سكين الواجهة الإسلامية — Burgundy & Beige
   هيدر · هيرو كامل العرض · أقسام مخطوطة · فوتر · مصادقة
   ═══════════════════════════════════════════════════════════════ */

/* ═══ أجواء ═══ */
.ar-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ar-ambient__glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .45; }
.ar-ambient__glow--1 { width: 50vw; height: 50vw; top: -16vw; inset-inline-start: -12vw; background: radial-gradient(circle, var(--page-glow-1), transparent 70%); }
.ar-ambient__glow--2 { width: 42vw; height: 42vw; bottom: -18vw; inset-inline-end: -10vw; background: radial-gradient(circle, var(--page-glow-2), transparent 70%); }
.ar-ambient__corner { position: absolute; width: 200px; height: 200px; opacity: .55;
  background-image: var(--ornament-star); background-size: 40px 40px; }
.ar-ambient__corner--tr { top: 70px; inset-inline-end: 0; -webkit-mask-image: radial-gradient(circle at top right, #000, transparent 72%); mask-image: radial-gradient(circle at top right, #000, transparent 72%); }
.ar-ambient__corner--bl { bottom: 0; inset-inline-start: 0; -webkit-mask-image: radial-gradient(circle at bottom left, #000, transparent 72%); mask-image: radial-gradient(circle at bottom left, #000, transparent 72%); }

/* ═══ رموز إسلامية (صور ملونة) ═══ */
.is-ico,
.is-ico-img {
  display: inline-block;
  vertical-align: middle;
  flex: none;
  object-fit: contain;
  color: currentColor;
}
img.is-ico-img {
  background: transparent;
}
.is-decor {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.is-decor--skyline {
  width: min(920px, 100%);
  margin-inline: auto;
  opacity: .92;
}
.is-decor--calli {
  width: min(420px, 88%);
  margin: 18px auto 0;
  opacity: .88;
}
.is-decor--hero {
  position: absolute;
  inset-inline-end: 2%;
  bottom: 8%;
  width: min(280px, 34vw);
  opacity: .18;
  z-index: 1;
}
.is-ico-wrap {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50% 50% 8px 8px / 28% 28% 8px 8px;
  background: var(--surface-highlight);
  border: 1px solid var(--gold-border);
}
.is-ico-wrap--solid {
  background: var(--grad-brand);
  border-color: var(--gold-border);
}
.is-ico-wrap--ghost {
  background: rgba(251,246,238,.1);
  border-color: var(--gold-border);
}
.is-ico-wrap--lg { width: 64px; height: 72px; }

.ar-brand__logoFallback .is-ico-img,
.ar-footer__logoFallback .is-ico-img,
.auth-head__logoFallback .is-ico-img,
.acc-brand__logoFallback .is-ico-img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.ar-stat__ico {
  width: 44px; height: 44px; margin: 0 auto 10px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-border);
  transform: none;
  border-radius: 50% 50% 8px 8px / 28% 28% 8px 8px;
  background: var(--surface-highlight);
}
.ar-stat__ico span { transform: none; display: grid; place-items: center; }
.ar-stat__ico .is-ico-img { width: 26px; height: 26px; }

.ar-feature__ico .is-ico-img {
  width: 34px; height: 34px;
  filter: none;
}
.ar-feature--dark .ar-feature__ico .is-ico-img {
  filter: none;
}

.ar-grade__mediaEmpty {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand-900), var(--brand-700));
}
.ar-grade__mediaEmpty .is-ico-img {
  width: 72px; height: 72px;
  filter: none;
}

.ar-hero__portraitEmpty .is-ico-img {
  width: 88px; height: 88px;
}
.ar-hero__brandMark .is-ico-img {
  width: 28px; height: 28px;
}
.ar-ornament-divider__star {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  transform: none;
  border: 0;
  background: transparent;
}
.ar-ornament-divider__star .is-ico-img {
  width: 22px; height: 22px;
  transform: none;
}
.ar-section__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-700);
}
.ar-section__badge .is-ico-img { width: 22px; height: 22px; }
.ar-cta__ico {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  width: 72px; height: 72px;
  border-radius: 50% 50% 10px 10px / 28% 28% 10px 10px;
  background: rgba(251,246,238,.1);
  border: 1.5px solid var(--gold-border);
}
.ar-cta__ico .is-ico-img { width: 42px; height: 42px; }
.ar-cta__skyline {
  position: absolute; inset-inline: 8%; bottom: 0; z-index: 0;
  opacity: .14; pointer-events: none;
}
.ar-cta__skyline img { width: 100%; height: auto; display: block; }
.ar-footer__linkDot .is-ico-img { width: 16px; height: 16px; }
.auth-imgPane__symbols .is-ico-img { width: 32px; height: 32px; }
.auth-imgFallback__hero .is-ico-img { width: 72px; height: 72px; }
.acc-nav__ico .is-ico-img { width: 22px; height: 22px; }
.acc-stat__ico .is-ico-img { width: 28px; height: 28px; }

.ar-hero__verse-wrap {
  margin-top: 22px;
}
.ar-hero__verse-wrap .is-decor--calli {
  margin-top: 10px;
  opacity: .55;
  max-width: 280px;
  margin-inline: 0;
}

/* ═══ أزرار (مستطيلات ناعمة — ليست حبوب) ═══ */
.ar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s, background .22s, border-color .22s, color .22s;
}
.ar-btn svg { flex: none; }
.ar-btn--lg { padding: 15px 32px; font-size: 16px; }
.ar-btn--block { width: 100%; }
.ar-btn--solid { background: var(--btn-solid-bg); color: var(--btn-solid-text); box-shadow: 0 10px 24px rgba(42, 13, 20, .32); }
.ar-btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(42, 13, 20, .42); }
.ar-btn--gold { background: var(--btn-gold-bg); color: var(--btn-gold-text); box-shadow: var(--shadow-gold); }
.ar-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(168, 139, 94, .42); }
.ar-btn--ghost { background: transparent; color: var(--hdr-text); border-color: var(--gold-border); }
.ar-btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--gold-400); transform: translateY(-1px); }
.ar-btn--beige { background: var(--beige-100); color: var(--brand-800); border-color: var(--beige-300); }
.ar-btn--beige:hover { background: var(--beige-200); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════
   الهيدر — شريط burgundy مع زخرفة سفلية
   ═══════════════════════════════════════════════════════════════ */
.ar-hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--hdr-bg);
  color: var(--hdr-text);
  box-shadow: 0 10px 32px rgba(42, 13, 20, .35);
}
.ar-hdr::after {
  content: "";
  display: block; height: 4px;
  background:
    repeating-linear-gradient(90deg,
      var(--gold-500) 0 12px,
      transparent 12px 18px,
      var(--beige-300) 18px 22px,
      transparent 22px 28px);
  opacity: .7;
}
.ar-hdr__bar { display: flex; align-items: center; gap: 16px; min-height: 76px; }

.ar-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; margin-inline-end: auto; }
.ar-brand__mark {
  width: 52px; height: 52px; display: grid; place-items: center; flex: none;
  border-radius: 50% 50% 10px 10px / 42% 42% 10px 10px;
  background: linear-gradient(160deg, rgba(251,246,238,.16), rgba(251,246,238,.04));
  border: 1.5px solid var(--gold-border);
  overflow: hidden;
}
.ar-brand__logo { width: 100%; height: 100%; object-fit: contain; }
.ar-brand__logoFallback {
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Amiri', serif;
  font-size: 26px; color: var(--gold-300); line-height: 1;
}
.ar-brand__text { display: flex; flex-direction: column; gap: 2px; }
.ar-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fbf6ee; line-height: 1.2; }
.ar-brand__sub { font-size: 12px; font-weight: 600; color: var(--beige-300); letter-spacing: .03em; }

.ar-hdr__nav { display: flex; align-items: center; gap: 12px; }
.ar-hdr__theme { display: inline-flex; }
.ar-hdr__mobileTheme { display: none; }

.ar-burger {
  display: none; width: 46px; height: 44px; border-radius: var(--radius);
  background: rgba(255,255,255,.08); border: 1.5px solid var(--gold-border);
  cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.ar-burger span { width: 22px; height: 2.4px; border-radius: 2px; background: var(--beige-200); transition: .25s var(--ease); }

.ar-drawer { display: none; overflow: hidden; max-height: 0; transition: max-height .3s var(--ease); background: var(--hdr-bg); border-top: 1px solid var(--hdr-border); }
.ar-drawer.is-open { max-height: 320px; }
.ar-drawer__box { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 10px; }

.ar-hdr .theme-switch { background: rgba(255,255,255,.12); border-color: var(--gold-border); }
.ar-hdr .ar-btn--ghost { color: var(--hdr-text); }

/* ═══════════════════════════════════════════════════════════════
   الهيرو — نص + صورة مدرس واضحة داخل محراب
   ═══════════════════════════════════════════════════════════════ */
.ar-hero {
  position: relative;
  min-height: auto;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--grad-hero);
  color: var(--beige-100);
}
.ar-hero__pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--ornament-tile);
  background-size: 56px 56px;
  opacity: .14;
}
.ar-hero__pattern::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 15% 80%, rgba(184,146,74,.16), transparent 60%),
    radial-gradient(ellipse 45% 40% at 90% 20%, rgba(251,246,238,.06), transparent 55%);
}

.ar-hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: 56px 0 64px;
}
.ar-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.ar-hero__copy { max-width: none; text-align: start; }

.ar-hero__brandMark {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-300);
  line-height: 1;
}
.ar-hero__brandMark::before,
.ar-hero__brandMark::after {
  content: "";
  width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}
.ar-hero__brandMark::after { background: linear-gradient(90deg, var(--gold-400), transparent); }
.ar-hero__brandGem {
  width: 14px; height: 14px;
  border: 1.5px solid var(--gold-300);
  transform: rotate(45deg);
  background: rgba(184, 146, 74, .25);
  display: block;
}

.ar-hero__kicker {
  margin: 0 0 14px;
  font-weight: 700; font-size: 14px;
  color: var(--beige-300);
  letter-spacing: .06em;
}
.ar-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 1.28;
  color: #fbf6ee;
  margin: 0 0 16px;
}
.ar-hero__desc {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.95;
  color: rgba(243, 232, 216, .88);
  max-width: 520px;
  margin: 0 0 28px;
}
.ar-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ar-hero .ar-btn--ghost {
  border-color: rgba(223,196,142,.55);
  color: #fbf6ee;
}
.ar-hero .ar-btn--ghost:hover {
  background: rgba(251,246,238,.1);
  border-color: var(--gold-300);
}

.ar-hero__verse {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--gold-300);
  line-height: 1.9;
  opacity: .95;
}
.ar-hero__verse cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--beige-400);
}

/* صورة المدرس — محراب واضح بدون تعتيم */
.ar-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
}
.ar-hero__ring {
  position: absolute;
  inset: -14px;
  border-radius: 50% 50% 18px 18px / 22% 22% 18px 18px;
  border: 1.5px solid rgba(184, 146, 74, .35);
  pointer-events: none;
  z-index: 0;
}
.ar-hero__portrait {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 50% 50% 16px 16px / 18% 18% 16px 16px;
  border: 3px solid var(--gold-400);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, .35),
    0 0 0 8px rgba(251, 246, 238, .08);
  background: linear-gradient(160deg, var(--brand-800), var(--brand-600));
}
.ar-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: none;
  opacity: 1;
}
.ar-hero__portraitEmpty {
  width: 100%; height: 100%;
  display: grid; place-items: center; gap: 10px;
  text-align: center; padding: 20px;
  color: rgba(251,246,238,.85);
}
.ar-hero__portraitCalli {
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', serif;
  font-size: 72px;
  color: var(--gold-300);
  line-height: 1;
}
.ar-hero__portraitEmpty p { font-size: 13px; max-width: 180px; margin: 0; }

/* قوس زخرفي سفلي للهيرو */
.ar-hero__arch {
  position: absolute; bottom: -1px; inset-inline: 0; z-index: 3;
  height: 48px;
  background: var(--page-bg);
  clip-path: ellipse(58% 100% at 50% 100%);
}

/* ═══════════════════════════════════════════════════════════════
   شريط الإحصائيات — رقّ أفقي بدون بطاقات منفصلة
   ═══════════════════════════════════════════════════════════════ */
.ar-stats {
  position: relative; z-index: 2;
  margin-top: -8px;
  padding: 8px 0 28px;
}
.ar-stats__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.ar-stat {
  position: relative;
  text-align: center;
  padding: 28px 18px;
}
.ar-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%; bottom: 18%;
  inset-inline-end: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-border), transparent);
}
.ar-stat__ico {
  width: 40px; height: 40px; margin: 0 auto 10px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-border);
  transform: rotate(45deg);
  background: var(--surface-highlight);
  color: var(--brand-700);
  font-size: 16px;
}
.ar-stat__ico span { display: block; transform: rotate(-45deg); line-height: 1; }
.ar-stat__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--brand-700);
  line-height: 1.1;
}
.ar-stat__lbl { font-weight: 700; color: var(--muted-strong); margin-top: 6px; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════
   عناوين الأقسام
   ═══════════════════════════════════════════════════════════════ */
.ar-section { padding: 52px 0; }
.ar-section__head { text-align: center; margin-bottom: 40px; }
.ar-section__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-700);
}
.ar-section__badge .is-ico {
  color: var(--brand-700);
  flex: none;
}
.ar-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--text-strong);
}
.ar-section__sub { color: var(--muted-strong); font-size: 16px; margin-top: 8px; line-height: 1.8; max-width: 520px; margin-inline: auto; }

/* ═══ المميزات — صفوف أفقية مخطوطة (ليست شبكة بطاقات) ═══ */
.ar-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}
.ar-feature {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px 28px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background .25s var(--ease);
}
.ar-feature:last-child { border-bottom: 0; }
.ar-feature:hover { background: var(--surface-soft); }
.ar-feature::after { content: none; }
.ar-feature__ico {
  width: 72px; height: 88px;
  border-radius: 50% 50% 8px 8px / 28% 28% 8px 8px;
  display: grid; place-items: center;
  font-size: 28px;
  background: var(--grad-brand);
  color: var(--beige-100);
  border: 1.5px solid var(--gold-border);
  margin: 0;
  box-shadow: var(--shadow-soft);
}
.ar-feature__ico img { width: 36px; height: 36px; object-fit: contain; filter: brightness(0) invert(1); }
.ar-feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.ar-feature__text { color: var(--muted-strong); line-height: 1.9; font-size: 15px; margin: 0; }
.ar-feature--dark {
  background: linear-gradient(100deg, var(--brand-900), var(--brand-800));
  border-color: transparent;
  color: var(--beige-100);
}
.ar-feature--dark .ar-feature__title { color: #fbf6ee; }
.ar-feature--dark .ar-feature__text { color: rgba(243,232,216,.88); }
.ar-feature--dark .ar-feature__ico {
  background: rgba(251,246,238,.08);
  border-color: var(--gold-border);
}

/* ═══ الصفوف — ألواح مقوّسة ═══ */
.ar-grades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ar-grade {
  display: flex; flex-direction: column;
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform .28s var(--ease);
}
.ar-grade:hover { transform: translateY(-6px); }
.ar-grade__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--grad-brand);
  border-radius: 50% 50% 10px 10px / 18% 18% 10px 10px;
  border: 2px solid var(--gold-border);
  box-shadow: var(--shadow);
}
.ar-grade__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s var(--ease);
}
.ar-grade:hover .ar-grade__media img { transform: scale(1.05); }
.ar-grade__mediaEmpty {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', serif; font-size: 64px; color: var(--gold-300);
}
.ar-grade__ribbon {
  position: absolute; bottom: 12px; inset-inline: 12px;
  text-align: center;
  padding: 8px 10px;
  background: rgba(42, 13, 20, .78);
  color: var(--beige-100);
  font-weight: 700; font-size: 12px;
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(6px);
}
.ar-grade__body {
  padding: 16px 4px 4px;
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;
}
.ar-grade__name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  color: var(--text-strong);
}
.ar-grade__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; color: var(--brand-700); font-size: 14px;
}

/* ═══ CTA — محراب ═══ */
.ar-cta { padding: 20px 0 64px; }
.ar-cta__box {
  position: relative; overflow: hidden; text-align: center;
  padding: 56px 28px 48px;
  border-radius: 50% 50% 16px 16px / 12% 12% 16px 16px;
  background: var(--grad-brand);
  border: 2px solid var(--gold-border);
  box-shadow: var(--shadow-strong);
  color: #fbf6ee;
}
.ar-cta__pattern {
  position: absolute; inset: 0;
  background-image: var(--ornament-star);
  background-size: 52px 52px;
  opacity: .14;
}
.ar-cta__title {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 36px);
  color: #fbf6ee;
  margin-bottom: 12px;
}
.ar-cta__sub {
  position: relative; z-index: 1;
  color: rgba(243,232,216,.88);
  font-size: 17px;
  margin-bottom: 26px;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.85;
}
.ar-cta__box .ar-btn { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════
   الفوتر — مضغوط ومنظّم
   ═══════════════════════════════════════════════════════════════ */
.ar-footer {
  position: relative;
  margin-top: 28px;
  background: var(--hdr-bg);
  color: var(--hdr-text);
}
.ar-footer__frieze {
  height: 4px;
  background:
    repeating-linear-gradient(90deg,
      var(--gold-500) 0 10px,
      var(--brand-800) 10px 16px,
      var(--beige-400) 16px 20px,
      var(--brand-800) 20px 26px);
  opacity: .8;
}
.ar-footer__inner {
  padding: 22px 20px 16px;
}
.ar-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 28px;
}
.ar-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(280px, 100%);
  flex: 1 1 240px;
}
.ar-footer__logoLink {
  display: inline-grid;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 8px 8px / 42% 42% 8px 8px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--gold-border);
  place-items: center;
  flex: none;
  margin: 0;
}
.ar-footer__logoImg { width: 100%; height: 100%; object-fit: contain; }
.ar-footer__logoFallback {
  display: grid; place-items: center; width: 100%; height: 100%;
}
.ar-footer__brandText { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ar-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fbf6ee;
  margin: 0;
  line-height: 1.2;
}
.ar-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ar-footer__nav a {
  color: var(--beige-300);
  font-weight: 700;
  font-size: 13px;
}
.ar-footer__nav a:hover { color: #fff; }

.ar-footer__col {
  flex: 0 1 auto;
  min-width: 140px;
}
.ar-footer__heading {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-300);
  margin: 0 0 8px;
  padding: 0;
}
.ar-footer__heading::after { display: none; }
.ar-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ar-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(251,246,238,.88);
  font-weight: 600;
  font-size: 13px;
}
.ar-footer__link:hover { color: #fff; }
.ar-footer__linkIco {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
  flex: none;
  /* عرض الأيقونات المرفوعة بألوانها الأصلية */
  filter: none;
  opacity: 1;
}
.ar-footer__phones { display: flex; flex-direction: column; gap: 6px; }
.ar-footer__phone {
  display: inline-flex;
  align-items: center;
  color: rgba(251,246,238,.9);
  font-weight: 700;
  font-size: 13px;
  direction: ltr;
}
.ar-footer__phone:hover { color: var(--gold-300); }

.ar-footer__bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hdr-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  align-items: center;
}
.ar-footer__copy,
.ar-footer__dev {
  color: rgba(243,232,216,.7);
  font-size: 12px;
  margin: 0;
}

/* مخفي: زخارف كانت تغطي صورة المدرس فقط */
.is-decor--hero { display: none !important; }
.ar-cta__skyline { display: none !important; }
.ar-footer__skyline { display: none !important; }

.ar-hero__verse-wrap {
  margin-top: 18px;
}
.ar-hero__verse-wrap .is-decor--calli {
  display: block;
  margin: 10px 0 0;
  max-width: 260px;
  opacity: .5;
}

/* ═══════════════════════════════════════════════════════════════
   صفحات الدخول / الاشتراك — لوحة مخطوطة
   ═══════════════════════════════════════════════════════════════ */
.auth-page { padding: 48px 0 68px; position: relative; z-index: 1; }
.auth-card {
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
}
.auth-grid { display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-formPane { padding: 42px 40px; position: relative; }
.auth-formPane::before {
  content: "";
  position: absolute; top: 0; inset-inline: 24px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.auth-step { display: none; }

.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head__logo {
  width: 72px; height: 88px; margin: 0 auto 14px;
  border-radius: 50% 50% 8px 8px / 28% 28% 8px 8px;
  display: grid; place-items: center;
  background: var(--grad-brand);
  border: 1.5px solid var(--gold-border);
  overflow: hidden;
  color: var(--beige-100);
}
.auth-head__logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-head__logoFallback {
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', serif;
  font-size: 32px; color: var(--gold-300);
}
.auth-head__title { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--text-strong); }
.auth-head__sub { color: var(--muted-strong); margin-top: 8px; font-size: 15px; line-height: 1.85; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-weight: 700; font-size: 14px; color: var(--text-strong); }
.input {
  width: 100%; padding: 13px 15px; border-radius: var(--radius);
  border: 1.5px solid var(--field-border); background: var(--field-bg); color: var(--field-text);
  font-family: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
select.input { cursor: pointer; }
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--primary-weak); }
.center-area { display: flex; flex-direction: column; gap: 16px; }

.btn-submit {
  margin-top: 6px; width: 100%; padding: 15px 20px; border: none; border-radius: var(--radius);
  background: var(--btn-solid-bg); color: var(--btn-solid-text); font-family: var(--font-body);
  font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 10px 26px rgba(42, 13, 20, .32);
  transition: transform .2s, box-shadow .2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(42, 13, 20, .42); }

.auth-foot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; color: var(--muted-strong); font-size: 14px; }
.auth-link { color: var(--primary); font-weight: 800; cursor: pointer; }
.auth-link:hover { color: var(--primary-strong); text-decoration: underline; }

.auth-imgPane {
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 28px;
  background: var(--grad-brand);
}
.auth-imgPane__symbols { position: absolute; inset: 0; opacity: .16; pointer-events: none; }
.auth-imgPane__symbols span {
  position: absolute; display: grid; place-items: center;
  width: 56px; height: 56px; color: var(--gold-300);
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', serif;
  font-size: 28px; font-weight: 400; line-height: 1;
  border: 1px solid currentColor;
  border-radius: 50% 50% 8px 8px / 28% 28% 8px 8px;
}
.auth-imgPane__symbols span:nth-child(1){ top: 8%; inset-inline-start: 10%; }
.auth-imgPane__symbols span:nth-child(2){ top: 22%; inset-inline-end: 14%; width: 68px; height: 80px; font-size: 52px; }
.auth-imgPane__symbols span:nth-child(3){ bottom: 26%; inset-inline-start: 18%; }
.auth-imgPane__symbols span:nth-child(4){ bottom: 12%; inset-inline-end: 20%; width: 72px; height: 86px; font-size: 56px; }
.auth-img {
  position: relative; z-index: 1; max-width: 100%; max-height: 460px;
  border-radius: 50% 50% 12px 12px / 14% 14% 12px 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  border: 2px solid var(--gold-border);
}
.auth-imgFallback { position: relative; z-index: 1; text-align: center; color: rgba(251,246,238,.9); display: grid; place-items: center; gap: 14px; padding: 24px; }
.auth-imgFallback__hero {
  width: 120px; height: 140px; display: grid; place-items: center;
  border: 2px solid var(--gold-border);
  border-radius: 50% 50% 12px 12px / 28% 28% 12px 12px;
  color: var(--gold-300);
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', serif;
  font-size: 64px; font-weight: 400; line-height: 1;
  background: rgba(255,255,255,.06);
}
.auth-imgFallback p { max-width: 260px; font-size: 14px; }

.phy-alert { border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 20px; background: var(--danger-soft-bg); border: 1px solid var(--danger-soft-border); color: var(--danger); }
.phy-alert__title { font-weight: 800; margin-bottom: 8px; }
.phy-alert__list { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; }

.phy-toast {
  --toast-accent: var(--success);
  --toast-duration: 6000ms;
  position: fixed; left: 50%; right: auto; bottom: 24px; z-index: 10000;
  width: min(440px, calc(100vw - 28px)); max-width: 440px;
  display: flex; gap: 13px; align-items: flex-start;
  padding: 17px 18px 19px; border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card-bg-strong) 94%, transparent);
  border: 1px solid var(--border);
  border-color: color-mix(in srgb, var(--toast-accent) 38%, var(--border));
  border-inline-start: 4px solid var(--toast-accent);
  box-shadow: 0 22px 54px rgba(42, 13, 20, .24);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
  animation: authToastIn .38s var(--ease-bounce) both;
  overflow: hidden;
}
.phy-toast--top { bottom: auto; top: max(88px, calc(env(safe-area-inset-top, 0px) + 74px)); }
.phy-toast--success { --toast-accent: var(--success); }
.phy-toast--error { --toast-accent: var(--danger); }
.phy-toast__icon {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: var(--radius); background: var(--toast-accent); color: #fff;
  font-weight: 900; font-size: 18px;
}
.phy-toast__body { min-width: 0; flex: 1; }
.phy-toast__title { display: block; font-weight: 800; color: var(--text-strong); }
.phy-toast__msg { margin: 4px 0 0; color: var(--muted-strong); font-size: 14px; line-height: 1.7; }
.phy-toast__list { margin: 7px 0 0; padding-inline-start: 19px; color: var(--muted-strong); font-size: 14px; line-height: 1.75; }
.phy-toast__close {
  width: 30px; height: 30px; margin-inline-start: auto; flex: none;
  display: grid; place-items: center; padding: 0; border-radius: var(--radius);
  background: var(--surface-soft); border: 1px solid var(--border);
  font-size: 19px; line-height: 1; color: var(--muted); cursor: pointer;
}
.phy-toast__close:hover { color: var(--text-strong); border-color: var(--border-strong); }
.phy-toast__progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: transparent; overflow: hidden; }
.phy-toast__progress span { display: block; height: 100%; width: 100%; background: var(--toast-accent); transform-origin: right; animation: phyToastBar var(--toast-duration) linear forwards; }
.phy-toast.is-paused .phy-toast__progress span { animation-play-state: paused; }
.phy-toast.is-leaving { animation: authToastOut .32s var(--ease) both; pointer-events: none; }
@keyframes phyToastBar { to { transform: scaleX(0); } }
@keyframes authToastIn {
  from { opacity: 0; transform: translate(-50%, -16px) scale(.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes authToastOut {
  to { opacity: 0; transform: translate(-50%, -12px) scale(.97); }
}
@keyframes authToastMobileIn {
  from { opacity: 0; transform: translate(-50%, 24px) scale(.97); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes authToastMobileOut {
  to { opacity: 0; transform: translate(-50%, 20px) scale(.98); }
}

/* ═══ حركة خفيفة ═══ */
@keyframes arFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.ar-hero__copy { animation: arFadeUp .7s var(--ease) both; }
.ar-hero__visual { animation: arFadeUp .75s .08s var(--ease) both; }
.ar-hero__verse { animation: arFadeUp .85s .15s var(--ease) both; }
.ar-stats__row { animation: arFadeUp .6s .2s var(--ease) both; }

/* ═══════════════════════════════════════════════════════════════
   التجاوب
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ar-grades { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .ar-hdr__nav { display: none; }
  .ar-hdr__mobileTheme { display: inline-flex; margin-inline-start: auto; }
  .ar-burger { display: flex; }
  .ar-drawer { display: block; }
  .ar-brand { margin-inline-end: 0; }

  .ar-hero { min-height: auto; }
  .ar-hero__inner { padding: 40px 0 52px; }
  .ar-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .ar-hero__visual { order: -1; }
  .ar-hero__portrait { width: min(280px, 72%); }
  .ar-hero__copy { text-align: center; max-width: none; }
  .ar-hero__desc { margin-inline: auto; }
  .ar-hero__actions { justify-content: center; }
  .ar-hero__verse { text-align: center; }
  .ar-hero__brandMark { justify-content: center; width: 100%; }
  .ar-hero__verse-wrap .is-decor--calli { margin-inline: auto; }

  .ar-features .ar-feature { grid-template-columns: 64px 1fr; gap: 14px; padding: 22px 18px; }
  .ar-feature__ico { width: 56px; height: 68px; font-size: 22px; }
  .ar-grades { grid-template-columns: 1fr 1fr; }

  .auth-grid { grid-template-columns: 1fr; }
  .auth-imgPane {
    display: grid; order: -1;
    min-height: 220px; max-height: 300px; padding: 16px;
    border-bottom: 2px solid var(--gold-border);
  }
  .auth-imgPane .auth-img {
    width: auto; max-width: 100%; height: auto; max-height: 265px;
    object-fit: contain; object-position: center;
  }
  .auth-imgPane .auth-imgFallback { min-height: 190px; padding: 16px; }
  .auth-imgPane .auth-imgFallback__hero { width: 88px; height: 104px; font-size: 56px; }
  .auth-formPane { padding: 32px 22px; }

  .ar-footer__row { flex-direction: column; gap: 16px; }
  .ar-footer__brand { width: 100%; }
  .ar-footer__col { width: 100%; }
  .ar-footer__phone { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .ar-stats__row { grid-template-columns: 1fr; }
  .ar-stat:not(:last-child)::after {
    top: auto; bottom: 0; inset-inline: 18%; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
  }
  .ar-grades { grid-template-columns: 1fr 1fr; gap: 14px; }
  .fgrid { grid-template-columns: 1fr; }
  .ar-brand__sub { display: none; }
  .ar-brand__name { font-size: 17px; }
  .ar-brand__mark { width: 44px; height: 44px; }
  .ar-footer__inner { padding: 18px 16px 14px; }
  .ar-cta__box { border-radius: 40% 40% 12px 12px / 8% 8% 12px 12px; padding: 44px 18px 36px; }
  .phy-toast,
  .phy-toast--top {
    top: auto;
    bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    width: calc(100vw - 20px);
    max-width: none;
    max-height: min(46vh, 330px);
    padding: 15px 14px 18px;
    gap: 11px;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 44px rgba(42, 13, 20, .32);
    animation: authToastMobileIn .36s var(--ease-bounce) both;
  }
  .phy-toast.is-leaving { animation: authToastMobileOut .3s var(--ease) both; }
  .phy-toast__body { max-height: min(38vh, 260px); overflow-y: auto; overscroll-behavior: contain; }
  .auth-imgPane { min-height: 190px; max-height: 250px; padding: 12px; }
  .auth-imgPane .auth-img { max-height: 225px; }
}
