/* ============================================================
   نقابة العلاج الروحاني — ورقة الأنماط المطورة (WOW Design)
   تصميم فاخر: هوية زيتي وذهبي، تأثيرات زجاجية، حركات دقيقة وتجاوب كامل.
   ============================================================ */

:root {
  /* الألوان — الوضع النهاري الفاخر */
  --bg: #f8f6f0;
  --bg-2: #f2ede0;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: rgba(251, 247, 236, 0.85);
  --surface-solid: #ffffff;
  --ink: #0c1a15;
  --muted: #526359;
  --green: #0a2e24;
  --green-2: #144d3e;
  --green-3: #1d6b57;
  --sage: #cbd7c2;
  --gold: #c5a043;
  --gold-2: #9e7d2e;
  --gold-3: rgba(197, 160, 67, 0.15);
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa841d 100%);
  --green-gradient: linear-gradient(145deg, #144d3e, #0a2e24);
  --line: rgba(10, 46, 36, 0.08);
  --line-glow: rgba(197, 160, 67, 0.22);
  --shadow-sm: 0 8px 32px rgba(10, 46, 36, 0.04);
  --shadow: 0 20px 60px rgba(10, 46, 36, 0.1);
  --hero-tint: rgba(197, 160, 67, 0.06);
  --header-bg: rgba(255, 255, 255, 0.75);

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Tajawal", "Segoe UI", "Tahoma", "Arial", sans-serif;

  color-scheme: light;
}

/* الوضع الليلي الفاخر */
[data-theme="dark"] {
  --bg: #050f0c;
  --bg-2: #081612;
  --surface: rgba(10, 26, 21, 0.7);
  --surface-2: rgba(14, 34, 28, 0.8);
  --surface-solid: #0d221c;
  --ink: #e8f3ee;
  --muted: #8ba396;
  --green: #e8f3ee;
  --green-2: #52a38a;
  --green-3: #6bbfa5;
  --gold: #e5c158;
  --gold-2: #f2d57e;
  --gold-3: rgba(229, 193, 88, 0.15);
  --gold-gradient: linear-gradient(135deg, #e5c158 0%, #c5a043 100%);
  --green-gradient: linear-gradient(145deg, #1d6b57, #081612);
  --line: rgba(232, 243, 238, 0.08);
  --line-glow: rgba(229, 193, 88, 0.3);
  --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  --hero-tint: rgba(229, 193, 88, 0.08);
  --header-bg: rgba(8, 22, 18, 0.75);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 90% 10%, var(--hero-tint) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(20, 77, 62, 0.04) 0%, transparent 50%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s var(--ease), color 0.3s var(--ease);
  position: relative;
}

/* نمط زخرفة إسلامية خفيفة في الخلفية لرفع الجمالية */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.018;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23d4af37' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='%23d4af37' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
[data-theme="dark"] body::before {
  opacity: 0.03;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--green-2);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: var(--gold);
  color: #0c1a15;
}

/* رابط تخطّي للوصول السريع للأجهزة المساعدة */
.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: -80px;
  transform: translateX(50%);
  z-index: 100;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--green-2);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: top 0.3s var(--ease);
}
.skip-link:focus {
  top: 0;
}

/* ===================== الرأس (Header) والزجاجية ===================== */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--maxw), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--header-bg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.5s var(--ease);
}
.site-header:hover {
  border-color: var(--line-glow);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow);
  border-color: rgba(197, 160, 67, 0.15);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--green);
  font-weight: 900;
  font-size: 1.15rem;
  transition: transform 0.2s var(--ease);
}
.brand:hover {
  transform: scale(1.02);
}
[data-theme="dark"] .brand {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--green-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 46, 36, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
/* تم إزالة قيود التنسيق الموحد لمسارات الشعار لتمكين مظهر الـ SVG المخصص الأصلي بحدوده وألوانه المحددة داخلياً */
.brand-mark svg {
  width: 31px;
  height: 31px;
}


.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  position: relative;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.main-nav a:hover {
  background: rgba(197, 160, 67, 0.08);
  color: var(--gold-2);
}
.main-nav a[aria-current="page"] {
  color: var(--green-2);
  background: rgba(10, 46, 36, 0.04);
}
[data-theme="dark"] .main-nav a[aria-current="page"] {
  color: var(--gold-2);
  background: rgba(229, 193, 88, 0.06);
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  bottom: 6px;
  height: 2.5px;
  border-radius: 4px;
  background: var(--gold);
}

/* أزرار الأيقونات (الوضع الليلي + القائمة) */
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--green);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s;
}
[data-theme="dark"] .icon-button {
  color: var(--ink);
}
.icon-button:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--gold);
  color: var(--gold);
}
.icon-button svg {
  width: 24px;
  height: 24px;
}
.icon-button path, .icon-button circle, .icon-button line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .moon {
  display: block;
}
.menu-button {
  display: none;
}

/* ===================== الأقسام والهياكل (Sections) ===================== */
.section-shell {
  width: min(var(--maxw), calc(100% - 32px));
  margin-inline: auto;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 800px;
}
.section-heading h2 {
  margin: 0;
  color: var(--green-2);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
}
[data-theme="dark"] .section-heading h2 {
  color: var(--ink);
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.9;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-3);
  color: var(--gold-2);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===================== البطل (Hero) ===================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 600px;
  padding: 64px 0 48px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  margin: 16px 0 0;
  color: var(--green-2);
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
[data-theme="dark"] .hero h1 {
  color: var(--ink);
}
.hero h1 .accent {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat strong {
  display: block;
  color: var(--green-2);
  font-size: 2rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .hero-stats .stat strong {
  color: var(--gold);
}
.hero-stats .stat span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  isolation: isolate;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 46, 36, 0.45) 0%, transparent 50%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero-media:hover img {
  transform: scale(1.05);
}
.hero-badge {
  position: absolute;
  inset-block-end: 24px;
  inset-inline-start: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--green-2);
  font-weight: 800;
  font-size: 0.94rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 160, 67, 0.3);
}
[data-theme="dark"] .hero-badge {
  background: rgba(10, 26, 21, 0.85);
  color: #fff;
  border-color: rgba(229, 193, 88, 0.25);
}
.hero-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
  display: inline-block;
}

/* ===================== الأزرار الفخمة (Buttons) ===================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.button:active {
  transform: translateY(-1px);
}
.button svg {
  width: 20px;
  height: 20px;
}
.button-primary {
  background: var(--gold-gradient);
  color: #0c1a15;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.button-primary:hover {
  background: linear-gradient(135deg, #e5c158 0%, #d4af37 100%);
  border-color: rgba(197, 160, 67, 0.4);
}
.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--green-2);
  backdrop-filter: blur(10px);
}
[data-theme="dark"] .button-secondary {
  color: var(--ink);
}
.button-secondary:hover {
  background: var(--surface-2);
  border-color: var(--gold);
}

/* ===================== شريط الثقة (Trust Strip) ===================== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}
.trust-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 80px;
  padding: 16px;
  background: var(--surface-solid);
  color: var(--green-2);
  font-weight: 800;
  text-align: center;
  transition: background-color 0.3s var(--ease);
}
[data-theme="dark"] .trust-strip span {
  color: var(--ink);
}
.trust-strip svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--gold);
}
.trust-strip path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===================== بطاقات المبادئ والميزات (Cards) ===================== */
.ethics {
  padding: 24px 0 64px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.principle-card, .healer-card, .step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.principle-card {
  padding: 32px;
}
.principle-card:hover, .healer-card:hover, .step-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.principle-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  background: var(--gold-3);
  color: var(--gold-2);
}
.principle-icon svg {
  width: 28px;
  height: 28px;
}
.principle-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.principle-card h3, .healer-card h3, .steps h3, .step-card h3 {
  margin: 0;
  color: var(--green-2);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}
[data-theme="dark"] .principle-card h3,
[data-theme="dark"] .healer-card h3,
[data-theme="dark"] .steps h3,
[data-theme="dark"] .step-card h3 {
  color: var(--ink);
}
.principle-card p, .healer-card p, .steps p, .step-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

/* ===================== دليل المعالجين والزخارف ===================== */
.directory-band {
  padding: 64px 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(197, 160, 67, 0.15) 0%, transparent 40%),
    linear-gradient(165deg, var(--green-2) 0%, #061e17 100%);
  color: #f8f6f0;
  position: relative;
  overflow: hidden;
}
.directory-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
}
[data-theme="dark"] .directory-band {
  background: 
    radial-gradient(circle at 10% 20%, rgba(229, 193, 88, 0.08) 0%, transparent 40%),
    linear-gradient(165deg, #071914 0%, #030a08 100%);
}

.directory {
  position: relative;
  z-index: 1;
}
.directory .section-heading h2,
.directory .section-heading p {
  color: #f8f6f0;
}
.directory .section-heading p {
  opacity: 0.85;
}
.directory .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #f3e2bb;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* أدوات البحث والتصفية */
.directory-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.search-box {
  position: relative;
  flex: 1 1 300px;
  max-width: 460px;
}
.search-box svg {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 16px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(248, 246, 240, 0.6);
  pointer-events: none;
}
.search-box svg path, .search-box svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.search-box input {
  width: 100%;
  min-height: 50px;
  padding-inline: 48px 20px;
  border: 1px solid rgba(248, 246, 240, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(248, 246, 240, 0.08);
  color: #f8f6f0;
  font: inherit;
  font-size: 0.98rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s;
}
.search-box input::placeholder {
  color: rgba(248, 246, 240, 0.55);
}
.search-box input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(248, 246, 240, 0.14);
  box-shadow: 0 0 0 3px rgba(197, 160, 67, 0.25);
}
.faith-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(248, 246, 240, 0.22);
  border-radius: 999px;
  background: rgba(248, 246, 240, 0.08);
  color: #f8f6f0;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}
.filter-button:hover {
  transform: translateY(-2px);
  background: rgba(248, 246, 240, 0.15);
}
.filter-button.is-active,
.filter-button:focus-visible {
  background: #f8f6f0;
  color: #0c1a15;
  border-color: transparent;
  outline: none;
}

.healers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  justify-content: center;
}
.healer-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(248, 246, 240, 0.14);
  color: #f8f6f0;
}
[data-theme="dark"] .healer-card {
  background: rgba(10, 26, 21, 0.65);
  border-color: var(--line);
}
.healer-card.is-hidden {
  display: none;
}
.healer-card p {
  flex: 0 0 auto;
  color: rgba(248, 246, 240, 0.82);
  font-size: 0.96rem;
}
.healer-card ul {
  flex: 1 1 auto;
}

.no-results {
  margin-top: 24px;
  padding: 36px;
  border: 2px dashed rgba(248, 246, 240, 0.25);
  border-radius: var(--radius);
  color: #f8f6f0;
  text-align: center;
  font-weight: 800;
}
.no-results[hidden] {
  display: none;
}

.healers-loading,
.healers-empty,
.healers-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 3rem 1.5rem;
  text-align: center;
  color: rgba(248, 246, 240, 0.7);
  font-weight: 700;
}

.avatar {
  display: grid;
  place-items: center;
  width: calc(100% + 64px);
  height: 260px;
  margin: -32px -32px 24px -32px;
  border-radius: 0;
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
  background: var(--gold-gradient);
  color: #0c1a15;
  font-size: 3.2rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  border: none;
  border-bottom: 2px solid rgba(197, 160, 67, 0.2);
  overflow: hidden;
}
.avatar-image {
  border-bottom: 3px solid var(--gold);
  background: #061a15;
  border-radius: 0;
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
  overflow: hidden;
}
.avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s var(--ease);
}
.avatar-pending {
  gap: 12px;
  background:
    radial-gradient(circle at 50% 26%, rgba(197, 160, 67, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(10, 46, 36, 0.96), rgba(20, 77, 62, 0.9));
  color: #f8f6f0;
  font-size: 0.98rem;
  text-align: center;
}
.avatar-pending svg {
  width: 92px;
  height: 92px;
  color: var(--gold);
}
.avatar-pending path,
.avatar-pending circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.avatar-pending span {
  display: block;
  color: rgba(248, 246, 240, 0.82);
  font-size: 0.95rem;
  font-weight: 800;
}
.healer-card:hover .avatar-image img {
  transform: scale(1.05);
}

.healer-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.healer-topline h3 {
  color: #ffffff !important;
}
.healer-topline span {
  min-width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(248, 246, 240, 0.12);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.faith-label {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(197, 160, 67, 0.2);
  color: #f3e2bb;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(197, 160, 67, 0.15);
}
.healer-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.healer-card li {
  position: relative;
  padding-inline-start: 24px;
  color: rgba(248, 246, 240, 0.9);
  font-weight: 600;
  font-size: 0.92rem;
}
.healer-card li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.6em;
  inset-inline-start: 0;
  width: 10px;
  height: 6px;
  border-inline-start: 2px solid var(--gold);
  border-block-end: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #10b981;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
  transition: background-color 0.3s var(--ease), transform 0.2s var(--ease), box-shadow 0.3s;
}
.whatsapp-button:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}
.whatsapp-button svg {
  width: 20px;
  height: 20px;
}
.whatsapp-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.whatsapp-button-muted {
  border-color: rgba(248, 246, 240, 0.22);
  background: rgba(248, 246, 240, 0.08);
  color: #f8f6f0;
  box-shadow: none;
}
.whatsapp-button-muted:hover {
  background: rgba(248, 246, 240, 0.14);
  box-shadow: var(--shadow-sm);
}

/* ===================== الصفحات الداخلية ===================== */
.page-main {
  padding: 40px 0 0;
}
.page-hero {
  display: grid;
  gap: 20px;
  padding: 72px 0 56px;
}
.page-hero h1 {
  max-width: 800px;
  margin: 0;
  color: var(--green-2);
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  font-weight: 900;
  line-height: 1.1;
}
[data-theme="dark"] .page-hero h1 {
  color: var(--ink);
}
.page-hero p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.95;
}
.page-section {
  padding: 72px 0;
}

/* ===================== خطوات الاستشارة ===================== */
.process {
  padding: 64px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  min-height: 240px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.steps span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--green-gradient);
  color: #f8f6f0;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===================== الشهادات والآراء ===================== */
.testimonials {
  padding: 24px 0 64px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.testimonial::before {
  content: "”";
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 24px;
  color: var(--gold);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.6;
}
.testimonial p {
  margin: 20px 0 0;
  color: var(--ink);
  line-height: 1.9;
  font-size: 1.05rem;
}
.testimonial .who {
  margin-top: 20px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.94rem;
}

/* ===================== الأسئلة الشائعة ===================== */
.faq {
  padding: 24px 0 64px;
}
.faq-list {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin-inline: auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq-item.is-open {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 28px;
  border: 0;
  background: transparent;
  color: var(--green-2);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
  transition: color 0.3s;
}
[data-theme="dark"] .faq-question {
  color: var(--ink);
}
.faq-question:hover {
  color: var(--gold-2);
}
.faq-question .chev {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}
.faq-question .chev path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.faq-item.is-open .chev {
  transform: rotate(180deg);
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer > div {
  overflow: hidden;
}
.faq-answer p {
  margin: 0;
  padding: 0 28px 28px;
  color: var(--muted);
  line-height: 1.9;
}

/* ===================== نطاق التواصل والنموذج ===================== */
.contact-band {
  padding: 64px 0;
  background: var(--bg-2);
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.contact-layout h1, .contact-layout h2 {
  margin: 0;
  color: var(--green-2);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
}
[data-theme="dark"] .contact-layout h1, [data-theme="dark"] .contact-layout h2 {
  color: var(--ink);
}
.contact-layout p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.95;
}
.contact-note {
  margin-top: 32px;
  padding: 20px 24px;
  border-inline-start: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-solid);
  color: var(--ink);
  line-height: 1.85;
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.request-form {
  display: grid;
  gap: 20px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.request-form label {
  display: grid;
  gap: 10px;
  color: var(--green-2);
  font-weight: 800;
  font-size: 0.98rem;
}
[data-theme="dark"] .request-form label {
  color: var(--ink);
}
.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.request-form input, .request-form select {
  min-height: 52px;
  padding: 0 16px;
}
.request-form textarea {
  resize: vertical;
  min-height: 130px;
  padding: 16px;
}
.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 160, 67, 0.2);
}
.request-form input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}
.form-hint {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}
.form-status {
  min-height: 1.5em;
  margin: 0;
  padding: 0;
  color: var(--green-2);
  font-weight: 800;
}
.form-status.is-error {
  color: #ef4444;
}

/* ===================== نطاق الدعوة (CTA) ===================== */
.cta-band {
  padding: 32px 0 96px;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px;
  border-radius: var(--radius);
  background: 
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    linear-gradient(150deg, var(--green-2) 0%, #061e17 100%);
  color: #f8f6f0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.cta-inner h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 900;
  z-index: 1;
}
.cta-inner p {
  margin: 14px 0 0;
  max-width: 560px;
  opacity: 0.88;
  line-height: 1.85;
  font-size: 1.05rem;
  z-index: 1;
}
.cta-inner .button-secondary {
  background: #f8f6f0;
  border-color: transparent;
  color: #0a2e24;
  z-index: 1;
}
.cta-inner .button-secondary:hover {
  background: #fdfcf9;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* ===================== التذييل (Footer) ===================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-solid);
  transition: background-color 0.5s var(--ease);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  width: min(var(--maxw), calc(100% - 32px));
  margin-inline: auto;
  padding: 64px 0 32px;
}
.footer-inner h4 {
  margin: 0 0 16px;
  color: var(--green-2);
  font-size: 1.05rem;
  font-weight: 800;
}
[data-theme="dark"] .footer-inner h4 {
  color: var(--ink);
}
.footer-brand .brand {
  margin-bottom: 16px;
}
.footer-brand p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  max-width: 340px;
  font-size: 0.96rem;
}
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  transition: color 0.3s var(--ease);
  font-size: 0.96rem;
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-bottom {
  width: min(var(--maxw), calc(100% - 32px));
  margin-inline: auto;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* زر العودة للأعلى */
.to-top {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-start: 24px;
  z-index: 99;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--green-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s, border-color 0.2s;
}
[data-theme="dark"] .to-top {
  color: var(--ink);
}
.to-top:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top svg {
  width: 24px;
  height: 24px;
}
.to-top path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===================== حركات التمرير ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   الأنماط الخاصة بصفحة الرقية الشرعية الجديدة
   ============================================================ */
.quick-links-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.quick-link-btn {
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-2);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s;
}
[data-theme="dark"] .quick-link-btn {
  color: var(--ink);
}
.quick-link-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold);
  background: var(--surface-2);
}

.steps-interactive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  padding: 32px;
  position: relative;
}
.step-num {
  position: absolute;
  top: -16px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--gold-gradient);
  color: #0c1a15;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--bg);
}

.verses-container {
  display: grid;
  gap: 20px;
  max-width: 880px;
  margin-inline: auto;
}
.verse-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.verse-box:hover {
  border-color: rgba(197, 160, 67, 0.35);
  box-shadow: var(--shadow);
}
.verse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}
.verse-header span {
  font-weight: 800;
  color: var(--gold-2);
  font-size: 1.05rem;
}
.copy-verse-btn {
  padding: 6px 12px;
  background: rgba(197, 160, 67, 0.12);
  border: 1px solid rgba(197, 160, 67, 0.2);
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.copy-verse-btn:hover {
  background: var(--gold);
  color: #0c1a15;
  border-color: transparent;
}
.verse-text {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 2.1;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  margin: 0;
  font-family: inherit;
}

/* أعراض الإصابة الروحية */
.symptoms-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.symptoms-checklist-wrapper {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.symptoms-checklist-wrapper h3 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-2);
}
[data-theme="dark"] .symptoms-checklist-wrapper h3 {
  color: var(--ink);
}
.symptoms-grid-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.symptom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  transition: background-color 0.2s, border-color 0.2s;
}
.symptom-checkbox:hover {
  border-color: var(--gold-2);
  background: var(--bg-2);
}
.symptom-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  margin-top: 3px;
  cursor: pointer;
}
.symptom-checkbox span {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.symptoms-result-card {
  padding: 36px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  animation: resultFadeIn 0.4s var(--ease);
}
.symptoms-result-card h3 {
  margin-top: 0;
  color: var(--gold-2);
  font-size: 1.3rem;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.symptoms-result-card p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.advice-action {
  display: flex;
}
.advice-action .button {
  width: 100%;
}

@keyframes resultFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* أدعية السنة النبوية */
.prayers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prayer-card {
  padding: 32px;
  text-align: center;
}
.prayer-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 18px;
}
.prayer-card h3 {
  margin-bottom: 16px;
  color: var(--gold-2);
}
.prayer-card p {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.9;
  color: var(--ink);
  font-weight: 700;
  margin: 0;
}

/* ===================== الاستجابة والتكيف (Responsive) ===================== */
@media (max-width: 1024px) {
  .principles-grid, .healers-grid, .steps, .steps-interactive-grid, .prayers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .symptoms-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .site-header {
    width: min(100% - 24px, 760px);
    flex-wrap: wrap;
    padding: 10px 18px;
  }
  .menu-button {
    display: grid;
  }
  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
  .main-nav.is-open {
    display: flex;
    animation: navIn 0.3s var(--ease);
  }
  .main-nav a {
    text-align: center;
    padding: 12px;
  }
  .main-nav a[aria-current="page"]::after {
    display: none;
  }

  .section-shell, .trust-strip, .footer-inner, .footer-bottom {
    width: min(100% - 24px, 760px);
  }
  .hero, .contact-layout, .section-heading {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: 36px;
    gap: 40px;
  }
  .hero-media, .hero-media img {
    min-height: 380px;
  }
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 64px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .directory-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    flex: 0 1 auto;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    margin-top: 10px;
  }
  .brand {
    font-size: 1rem;
  }
  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }
  .hero-actions, .button {
    width: 100%;
  }
  .hero-stats {
    gap: 20px;
  }
  .hero-media, .hero-media img {
    min-height: 280px;
  }
  .trust-strip, .principles-grid, .healers-grid, .steps, .steps-interactive-grid, .prayers-grid, .testimonials-grid, .footer-inner {
    grid-template-columns: 1fr;
  }
  .section-heading {
    gap: 16px;
  }
  .ethics, .process, .directory-band, .contact-band, .testimonials, .faq, .page-section {
    padding-block: 60px;
  }
  .cta-inner {
    padding: 36px 24px;
  }
  .request-form {
    padding: 24px;
  }
  .step-card {
    padding: 28px 24px;
  }
  .verse-box {
    padding: 20px;
  }
  .symptoms-checklist-wrapper {
    padding: 24px;
  }
  .symptom-checkbox span {
    font-size: 0.9rem;
  }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===================== Loading Skeletons (Shimmer) ===================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--surface-solid) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.healer-card.skeleton-card {
  min-height: 420px;
  pointer-events: none;
}
.skeleton-card .skeleton-avatar {
  width: 100%;
  height: 260px;
  margin: -32px -32px 24px -32px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.skeleton-card .skeleton-title {
  width: 60%;
  height: 24px;
  margin-bottom: 12px;
}
.skeleton-card .skeleton-text {
  width: 100%;
  height: 14px;
  margin-bottom: 8px;
}
.skeleton-card .skeleton-text.short { width: 75%; }
.skeleton-card .skeleton-btn {
  width: 100%;
  height: 48px;
  margin-top: 24px;
  border-radius: var(--radius-sm);
}

/* ===================== Toast Notifications ===================== */
.toast-container {
  position: fixed;
  inset-block-start: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  max-width: min(90vw, 420px);
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast.toast-success {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}
.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}
.toast.toast-info {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
}
.toast-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
}
.toast-success .toast-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.toast-error .toast-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.toast-info .toast-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

/* ===================== نسخ رقم الواتساب ===================== */
.copy-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(248, 246, 240, 0.08);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(197, 160, 67, 0.2);
  transition: all 0.2s var(--ease);
  margin-top: 12px;
}
.copy-action:hover {
  background: var(--gold);
  color: #0c1a15;
  border-color: transparent;
}
.copy-action.is-copied {
  background: #10b981;
  color: #fff;
  border-color: transparent;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #061a15;
  border-bottom: 2px solid rgba(197, 160, 67, 0.2);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.blog-card-symbol {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(229, 193, 88, 0.22), transparent 38%),
    linear-gradient(145deg, #0a2e24, #144d3e);
  color: var(--gold);
}
.blog-card-symbol svg {
  width: 112px;
  height: 112px;
}
.blog-card-symbol path,
.blog-card-symbol circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blog-card-symbol circle {
  fill: currentColor;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.blog-card .meta {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.blog-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--green-2) !important;
}
[data-theme="dark"] .blog-card h3 {
  color: var(--ink) !important;
}
.blog-card p {
  margin: 0 0 20px;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1 1 auto;
}
.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-2);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.blog-card:hover .read-more {
  color: var(--gold);
}

/* تفاصيل المقال */
.article-band {
  padding: 64px 0;
}
.article-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}
.article-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 12px 0;
  color: var(--green-2);
}
[data-theme="dark"] .article-header h1 {
  color: var(--ink);
}
.article-header .meta {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 800;
}
.article-hero {
  max-width: 900px;
  margin: 0 auto 48px;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--line-glow);
  box-shadow: var(--shadow);
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero-symbol {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(229, 193, 88, 0.24), transparent 36%),
    linear-gradient(145deg, #0a2e24, #144d3e);
  color: var(--gold);
}
.article-hero-symbol svg {
  width: min(260px, 58vw);
  height: min(260px, 58vw);
}
.article-hero-symbol path,
.article-hero-symbol circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.article-hero-symbol circle {
  fill: currentColor;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}
.article-content {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 2;
}
.article-content p {
  margin-bottom: 24px;
}
.article-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--green-2);
  margin: 40px 0 20px;
  border-right: 4px solid var(--gold);
  padding-right: 12px;
}
[data-theme="dark"] .article-content h2 {
  color: var(--gold-2);
}
.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 16px;
}
.article-content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: var(--surface-2);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.article-content ul, .article-content ol {
  margin: 0 0 24px;
  padding-right: 24px;
}
.article-content li {
  margin-bottom: 12px;
}
.article-content strong {
  color: var(--gold-2);
}
[data-theme="dark"] .article-content strong {
  color: var(--gold);
}
.article-cta {
  margin-top: 48px;
  padding: 36px;
  background: var(--green-gradient);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.article-cta h3 {
  color: #fff !important;
  font-size: 1.5rem;
  margin: 0 0 12px;
  font-weight: 800;
}
.article-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-nav a {
  color: var(--gold-2);
  font-weight: 800;
}
.article-nav a:hover {
  color: var(--gold);
}
.admin-subtle-link {
  text-align: center;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-subtle-link a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s var(--ease);
}
.admin-subtle-link a:hover {
  opacity: 1;
}

/* ===================== تحسينات UX إضافية ===================== */
/* Touch-friendly buttons on mobile */
@media (max-width: 600px) {
  .button,
  .whatsapp-button,
  .filter-button,
  .icon-button,
  .faq-question,
  .copy-action {
    min-height: 48px;
  }
  .menu-button {
    min-height: 44px;
    min-width: 44px;
  }
  .theme-toggle {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Enhanced focus rings for keyboard navigation */
.healer-card:focus-within,
.blog-card:focus-within,
.principle-card:focus-within,
.step-card:focus-within,
.testimonial:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius);
}

/* Smooth scroll padding for anchor links */
html {
  scroll-padding-top: 100px;
}

/* Reduced motion preference for skeletons */
@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
    background: var(--bg-2);
  }
}

/* Print styles for articles */
@media print {
  .site-header,
  .to-top,
  .toast-container,
  .menu-button,
  .theme-toggle,
  .whatsapp-button,
  .copy-action {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .article-content {
    font-size: 12pt;
    line-height: 1.6;
  }
}

/* ============================================================
   عناصر المدونة الديناميكية (بحث/لغات/تصنيفات) وصفحة المقال
   ============================================================ */
.blog-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.blog-search {
  flex: 1 1 240px; min-height: 46px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}
.blog-search:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(31,93,77,.16); }
.blog-langs, .article-langs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--line); }
.blog-lang {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: none; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer;
}
.blog-lang.is-active { background: linear-gradient(145deg,var(--green-2),var(--green)); color: #fff9ed; }
.article-langs { margin-bottom: 18px; }

.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.blog-cat {
  min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: all .2s var(--ease);
}
.blog-cat:hover { border-color: var(--green-2); }
.blog-cat.is-active { background: rgba(196,154,69,.18); color: var(--gold-2); border-color: var(--gold); }

.blog-empty { padding: 50px 20px; text-align: center; color: var(--muted); font-weight: 700; }
.blog-more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.blog-more-wrap button[hidden] { display: none; }

.article-loading { padding: 50px 20px; text-align: center; color: var(--muted); font-weight: 700; }

/* ===================== أدوات التحكم في أعلى المقال ===================== */
.article-top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.article-back-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}
[data-theme="dark"] .article-back-btn {
  color: var(--ink);
}
.article-back-btn:hover {
  background: var(--green-2);
  color: #fff9ed !important;
  border-color: var(--green-2);
}
/* عكس اتجاه السهم في صفحات الـ RTL */
[dir="rtl"] .article-back-btn .back-icon,
[dir="rtl"] .back-icon {
  transform: scaleX(-1);
}
.article-top-controls .article-langs {
  margin-bottom: 0;
}
