:root {
  --color-primary: #B22521;
  --color-primary-dark: #700505;
  --color-dark: #5F6763;
  --color-light-bg: #f4f2f1;
  --color-white: #ffffff;
  --color-mist: #B5BEBA;
  --color-stone: #8A9590;
  --font-main: 'Cairo', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  color: var(--color-dark);
  background: var(--color-white);
}

/* الهيدر الرئيسي */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
}
.header nav { display: flex; gap: 24px; align-items: center; }
.header nav a {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 600;
}
.header nav a.btn-primary,
.header nav a.btn-dark {
  color: var(--color-white);
}
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-dark { background: var(--color-dark); color: var(--color-white); }

/* Hero */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 0 40px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-content h1 { font-size: 42px; line-height: 1.4; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; }

/* Footer — بألوان Preview 4 الغامقة */
.footer { background: #241717; padding: 44px 24px 18px; }
.footer-columns {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px;
  max-width: 1100px; margin: 0 auto 26px;
}
.footer-columns > div { flex: 1; min-width: 180px; text-align: center; }
.footer-columns h3 { color: #ffffff; margin-bottom: 16px; font-size: 15px; }
.footer-columns ul { list-style: none; }
.footer-columns li { margin-bottom: 10px; }
.footer-columns ul { padding: 0; margin: 0; }
.footer-columns li { overflow-wrap: anywhere; line-height: 1.6; }
.footer-columns a { color: #b8a8a8; text-decoration: none; }
.footer-columns a:hover, .footer-columns a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-columns p { color: #b8a8a8; font-size: 13px; line-height: 1.9; margin-bottom: 4px; }
.footer-logo img { height: 55px; width: auto; margin-bottom: 14px; }
.footer-bottom {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid #3d2c2c; font-size: 13px; color: #a89696;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a89696;
}
.footer-credit img { height: 30px; width: auto; border-radius: 0; object-fit: contain; vertical-align: middle; }
.footer-credit:hover { color: #fff; }
/* «إدارة ملفات الارتباط»: رابط صغير هادي جنب الحقوق (موجود في كل صفحة، زي ما CNIL بتطلب) */
.footer-rights { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.footer-manage { color: #a89696; font-size: 12px; text-decoration: none; }
.footer-manage:hover, .footer-manage:focus-visible { color: #fff; text-decoration: underline; }
@media (max-width: 600px) {
  .footer { padding: 32px 16px 16px; }
  .footer-columns { gap: 22px; margin-bottom: 20px; }
  .footer-columns > div { min-width: 0; flex-basis: 100%; }
  .footer-columns h3 { margin-bottom: 10px; }
  .footer-columns li { margin-bottom: 6px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-rights { justify-content: center; }
}

/* اتجاه اللغة */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="ltr"] body { direction: ltr; text-align: left; }

/* قسم من نحن */
.about-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px;
  text-align: center;
}
.about-section h2 { color: var(--color-primary); font-size: 32px; margin-bottom: 16px; }
.about-section p { font-size: 17px; line-height: 1.8; color: #444; margin-bottom: 20px; }
.about-section a { color: var(--color-primary); font-weight: 700; text-decoration: none; }

/* قسم الحملات */
.campaigns-section {
  background: var(--color-light-bg);
  padding: 60px 24px;
}
.campaigns-header { text-align: center; margin-bottom: 40px; }
.campaigns-header h2 { color: var(--color-primary); font-size: 32px; margin-bottom: 8px; }
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.campaign-card {
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.campaign-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.campaign-card img.thumb-contain { object-fit: contain; background: var(--color-light-bg); padding: 10px; }
.campaign-card-body { padding: 20px; }
.campaign-card-body h3 { margin-bottom: 10px; font-size: 19px; }
.campaign-card-body p { color: #666; font-size: 15px; margin-bottom: 16px; line-height: 1.6; }

/* بانر التبرع (CTA) */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 60px 24px;
}
.cta-banner h2 { font-size: 30px; margin-bottom: 12px; }
.cta-banner p { font-size: 17px; margin-bottom: 24px; opacity: 0.95; }

/* صفحات المحتوى العامة (من نحن، عضوية، إستغاثة، اتصل بنا) */
.page-header {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 50px 24px;
  text-align: center;
}
.page-header h1 { font-size: 32px; }
.page-content {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 24px;
}
.page-content p { font-size: 17px; line-height: 1.9; color: #333; margin-bottom: 20px; }
.benefit-list { list-style: none; margin-bottom: 20px; }
.benefit-list li {
  background: var(--color-light-bg);
  padding: 16px 20px;
  border-inline-start: 4px solid var(--color-primary);
  margin-bottom: 12px;
  border-radius: 6px;
  font-size: 16px;
}

/* فورم التواصل / الإستغاثة */
.form-card {
  max-width: 600px;
  margin: 0 auto 60px;
  padding: 30px;
  background: var(--color-light-bg);
  border-radius: 10px;
}
.form-card h3 { color: var(--color-primary); margin-bottom: 8px; }
.form-card .form-subtitle { color: #666; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 15px;
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* صفحة قائمة الحملات */
.campaigns-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px;
}
.progress-bar {
  background: #e0e0e0;
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.progress-bar-fill {
  background: var(--color-primary);
  height: 100%;
  border-radius: 20px;
}
.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}
.progress-stats strong { color: var(--color-primary); }

/* صفحة تفاصيل الحملة */
.campaign-detail-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.campaign-detail-hero img.thumb-contain {
  object-fit: contain;
  background: var(--color-light-bg);
  padding: 16px;
}
.campaign-detail-body {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}
.campaign-detail-body h1 { color: var(--color-primary); font-size: 30px; margin-bottom: 16px; }
.campaign-detail-body p { font-size: 17px; line-height: 1.9; color: #333; margin-bottom: 24px; }
.campaign-progress-card {
  background: var(--color-light-bg);
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 24px;
}

/* صفحة التبرع */
.donate-card {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background: var(--color-light-bg);
  border-radius: 10px;
}
.donate-card h1 { color: var(--color-primary); margin-bottom: 24px; text-align: center; }
.frequency-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.frequency-toggle label {
  flex: 1;
  text-align: center;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  background: var(--color-white);
}
.frequency-toggle input { display: none; }
.frequency-toggle input:checked + span {
  color: var(--color-primary);
}
.frequency-toggle label:has(input:checked) {
  border-color: var(--color-primary);
  background: #fdeceb;
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.amount-grid label {
  text-align: center;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  background: var(--color-white);
}
.amount-grid input { display: none; }
.amount-grid label:has(input:checked) {
  border-color: var(--color-primary);
  background: #fdeceb;
  color: var(--color-primary);
}
.donate-section-title {
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--color-dark);
}
.thank-you-box {
  max-width: 500px;
  margin: 80px auto;
  text-align: center;
  padding: 40px 24px;
}
.thank-you-box h1 { color: var(--color-primary); margin-bottom: 16px; }
.thank-you-box p { font-size: 17px; margin-bottom: 24px; color: #444; }

/* بانر علوي بصورة خلفية (لصفحات مثل اتصل بنا) */
.page-hero-banner {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}
.page-hero-banner h1 {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font-size: 34px;
}

/* قسم نص + صورة جنب بعض */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
  align-items: center;
}
.intro-grid h2 { color: var(--color-primary); font-size: 26px; margin-bottom: 16px; }
.intro-grid p { font-size: 16px; line-height: 1.9; color: #333; }
.intro-grid img { width: 100%; border-radius: 10px; object-fit: cover; max-height: 320px; }
@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* قسم فيديو/صورة جنب نص بزرار */
.about-video-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
  align-items: start;
}
.about-video-section video, .about-video-section img {
  width: 100%; border-radius: 10px; max-height: 350px; object-fit: cover;
}
.about-video-section h2 { color: var(--color-primary); margin-bottom: 16px; }
.about-video-section p { line-height: 1.9; color: #333; margin-bottom: 20px; }

/* شبكة النقاط (4 نقاط + صورة) */
.impact-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
}
.impact-section > h2 { text-align: center; color: var(--color-primary); font-size: 28px; margin-bottom: 16px; }
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}
.impact-grid > p { grid-column: 1 / -1; line-height: 1.9; color: #333; margin-bottom: 10px; }
.impact-points { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.impact-point h3 { color: var(--color-primary); font-size: 17px; margin-bottom: 6px; }
.impact-point p { font-size: 14px; color: #555; line-height: 1.7; }
.impact-grid img { width: 100%; border-radius: 10px; max-height: 300px; object-fit: cover; }

/* كروت الشفافية */
.transparency-section { background: var(--color-light-bg); padding: 60px 24px; text-align: center; }
.transparency-section h2 { color: var(--color-primary); font-size: 28px; margin-bottom: 12px; }
.transparency-section > p { max-width: 700px; margin: 0 auto 30px; color: #444; line-height: 1.8; }
.transparency-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.transparency-card {
  background: var(--color-white);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  padding: 20px;
}
.transparency-card h3 { color: var(--color-primary); font-size: 16px; margin-bottom: 10px; }
.transparency-card p { font-size: 14px; color: #555; line-height: 1.7; }

/* قسم تبرع ختامي بصورة */
.about-donate-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
  align-items: center;
}
.about-donate-cta h2 { color: var(--color-primary); margin-bottom: 16px; }
.about-donate-cta p { line-height: 1.9; color: #333; margin-bottom: 20px; }
.about-donate-cta img { width: 100%; border-radius: 10px; max-height: 300px; object-fit: cover; }
.about-donate-cta .hero-actions { display: flex; gap: 12px; }

@media (max-width: 768px) {
  .about-video-section, .impact-grid, .impact-points, .about-donate-cta {
    grid-template-columns: 1fr;
  }
}

/* القائمة على الموبايل والتابلت */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--color-dark);
}

@media (max-width: 900px) {
  .header {
    flex-wrap: wrap;
    position: relative;
  }
  .menu-toggle { display: block; }
  .header nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
    margin-top: 16px;
  }
  .header nav.open { display: flex; }
  .header nav a {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
  }
  .header nav a.btn {
    text-align: center;
    margin-top: 8px;
  }
}

/* منع أي عنصر من عمل Scroll جانبي على الموبايل عمومًا */
body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* الهوية الجديدة: لوجو الهيدر والفوتر */
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }

/* شريط الثقة */
.trust-bar {
  background: var(--color-primary-dark);
  color: var(--color-white);
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
}
.footer .trust-bar {
  margin: 20px -24px -18px;
}
@media (max-width: 600px) { .footer .trust-bar { margin: 20px -16px -16px; } } /* نفس حشوة الفوتر على الموبايل، عشان مايطلعش برّه الشاشة */

/* هيرو مبسط بزرار واحد (الهوية الجديدة) */
.hero-single-cta .hero-content { text-align: center; max-width: 640px; margin: 0 auto; }
.hero-single-cta .hero-content p { font-size: 16px; line-height: 1.8; margin-bottom: 0; opacity: .95; }

/* ودجت التبرع العائم */
.donate-widget {
  background: var(--color-white);
  max-width: 420px;
  margin: -50px auto 0;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  padding: 26px 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.donate-widget p { font-size: 13px; color: var(--color-stone); margin-bottom: 14px; }
.donate-widget .btn { width: 100%; padding: 14px 0; font-size: 15px; }

/* قسم كيف يساعد تبرعك */
.impact-row {
  background: var(--color-light-bg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 60px auto;
  border-radius: 16px;
  padding: 34px;
}
.impact-row .impact-item { text-align: center; }
.impact-row .impact-item h4 { font-size: 16px; color: var(--color-primary-dark); margin-bottom: 8px; }
.impact-row .impact-item p { font-size: 13px; color: var(--color-dark); line-height: 1.7; }

@media (max-width: 800px) {
  .donate-widget { margin: -40px 16px 0; padding: 20px; }
}

/* نقاط الثقة (3 أعمدة) */
.trust-points {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 24px;
  text-align: center;
}
.trust-points > div { max-width: 220px; }
.trust-points h4 { font-size: 16px; color: var(--color-primary-dark); margin-bottom: 8px; }
.trust-points p { font-size: 13px; color: var(--color-stone); line-height: 1.7; }

/* شركاؤنا */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 46px;
  max-width: 1000px;
  margin: 0 auto;
}
.partner-logo-box {
  height: 48px;
  display: flex;
  align-items: center;
}
.partner-logo-box img {
  height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .6;
  transition: filter .25s ease, opacity .25s ease;
}
.partner-logo-box img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* بطاقات إدارة بسيطة (شركاء/تدوينات) */
.mini-list-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--color-white); padding: 12px 16px;
  border: 1px solid #eee; border-radius: 8px; margin-bottom: 10px;
}
.mini-list-item img { height: 36px; width: auto; }

/* حالة عدم وجود شركاء بعد */
.partner-logo-box.empty { width: 100px; background: var(--color-light-bg); border-radius: 8px; }

/* روابط نصية "عرض الكل" تحت الأقسام */
.view-all-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
}
.view-all-link:hover { text-decoration: underline; }

/* صفحة الحملة — عمودين: محتوى + فورم تبرع */
.campaign-page-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  max-width: 1150px;
  margin: 40px auto;
  padding: 0 24px;
  align-items: start;
}
.campaign-content h1 { color: var(--color-primary-dark); font-size: 26px; margin-bottom: 16px; }
.campaign-content .main-image { width: 100%; border-radius: 10px; margin-bottom: 20px; max-height: 360px; object-fit: cover; }
.campaign-content .body-text { font-size: 16px; line-height: 1.9; color: #333; white-space: pre-line; margin-bottom: 24px; }
.campaign-media-section { margin-bottom: 30px; }
.campaign-media-section h3 { color: var(--color-primary); font-size: 18px; margin-bottom: 14px; }
.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.media-gallery-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
.media-gallery-grid video { width: 100%; border-radius: 8px; background: #000; }

/* فورم التبرع الجانبي اللاصق */
.donate-sidebar { position: sticky; top: 110px; }
.donate-sidebar-card {
  background: var(--color-light-bg);
  border-radius: 12px;
  padding: 24px;
}
.donate-sidebar-card h2 { font-size: 18px; color: var(--color-primary-dark); margin-bottom: 16px; }
.donate-summary {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid #ddd;
  font-size: 14px; margin-top: 10px;
}
.donate-summary strong { color: var(--color-primary); }

@media (max-width: 900px) {
  .campaign-page-grid { grid-template-columns: 1fr; }
  .donate-sidebar { position: static; order: -1; }  /* الموبايل: فورمة التبرع أول قسم في الصفحة */
}

/* القائمة المنسدلة للحملات: "حملات طارئة" و"حملات مستمرة"، وكل واحدة بتفتح قايمتها على الجنب */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-menu, .nav-sub-menu {
  display: none;
  position: absolute;
  background: var(--color-white);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-radius: 8px;
  padding: 6px 0;
  z-index: 50;
}
.nav-dropdown-menu { top: 100%; inset-inline-start: 0; min-width: 210px; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-weight: 400;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { background: var(--color-light-bg); }
.nav-sub { position: relative; }
.nav-sub-head { display: flex; align-items: stretch; }
.nav-dropdown-menu .nav-sub-link { flex: 1; display: flex; align-items: center; justify-content: flex-start; gap: 10px; font-weight: 600; }
/* السهم على الطرف اللي القايمة الجانبية بتفتح منه (العربي يمين، الإنجليزي شمال)، ولو اتقلبت بيروح للطرف التاني */
.nav-sub-caret { order: -1; color: var(--color-stone); font-size: 18px; line-height: 1; }
.nav-sub.flip .nav-dropdown-menu .nav-sub-link, .nav-sub.flip > .nav-sub-head .nav-sub-link { justify-content: space-between; }
.nav-sub.flip .nav-sub-caret { order: 1; }
.nav-sub-urgent .nav-sub-link { color: var(--color-primary); }
.nav-sub-urgent .nav-sub-link > span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); margin-inline-end: 8px; vertical-align: middle; }
.nav-sub-toggle { display: none; }
.nav-sub-menu {
  top: 0;
  padding-top: 0;
  inset-inline-end: 100%;  /* العربي: على اليمين، الإنجليزي: على الشمال */
  min-width: 230px;
  max-width: 320px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.nav-sub.flip > .nav-sub-menu { inset-inline-end: auto; inset-inline-start: 100%; }
.nav-sub-menu a { white-space: normal !important; overflow-wrap: anywhere; }

.nav-dropdown-head { display: inline-block; }
.nav-dropdown-toggle { display: none; }

@media (min-width: 901px) {
  .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
  .nav-sub:hover > .nav-sub-menu, .nav-sub:focus-within > .nav-sub-menu { display: block; }
  .nav-sub:hover > .nav-sub-head .nav-sub-link, .nav-sub:focus-within > .nav-sub-head .nav-sub-link { background: var(--color-light-bg); }
}

@media (max-width: 900px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-head {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  .nav-dropdown-head a { flex: 1; border-bottom: none !important; }
  .nav-caret-desktop, .nav-sub-caret { display: none; }
  .nav-dropdown-toggle, .nav-sub-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0 16px;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-dark);
    transition: transform .2s;
  }
  .nav-dropdown.open .nav-dropdown-toggle, .nav-sub.open > .nav-sub-head .nav-sub-toggle { transform: rotate(180deg); }
  .nav-dropdown-menu, .nav-sub-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    padding-inline-start: 16px;
    min-width: 0;
    max-width: none;
    max-height: none;
  }
  .nav-dropdown.open .nav-dropdown-menu, .nav-sub.open > .nav-sub-menu { display: block; }
  .nav-sub-head { border-bottom: 1px solid #eee; }
  .nav-sub-head a { border-bottom: none !important; }
  .nav-dropdown-menu a { padding: 8px 10px; font-size: 14px; color: var(--color-stone); }
  .nav-dropdown-menu .nav-sub-link { font-size: 15px; padding: 10px; }
  .nav-sub-urgent .nav-sub-link { color: var(--color-primary); }
}

/* شريط "ما قدمته سند" */
.impact-bar {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-white);
}
.impact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 24px;
  min-height: 100px;
}
.impact-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-inline-end: 18px;
  border-inline-end: 3px solid var(--color-white);
  flex-shrink: 0;
}
.impact-label strong { font-size: 20px; line-height: 1.2; font-weight: 700; }
.impact-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-inline-end: 120px;
}
.impact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 34px;
}
.impact-item + .impact-item { border-inline-start: 2px solid rgba(255,255,255,.75); }
.impact-text { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.impact-item-label { font-size: 20px; font-weight: 700; white-space: nowrap; }
.impact-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  min-width: 3ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  margin-top: 4px;
}
.impact-number .dg { display: inline-block; }
.impact-note {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 11px;
  opacity: .85;
  padding: 0 14px 7px;
  margin-top: -4px;
}
.impact-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  margin-inline-end: 8px;
  vertical-align: middle;
  animation: impact-pulse 1.8s ease-out infinite;
}
@keyframes impact-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.impact-number .dg.tick { animation: impact-roll .7s ease-out; }
@keyframes impact-roll {
  0% { transform: translateY(70%); opacity: 0; color: #ffe08a; }
  60% { color: #ffe08a; }
  100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .impact-live-dot { animation: none; }
}
.impact-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.impact-icon svg { width: 24px; height: 24px; }
.impact-art {
  position: absolute;
  inset-inline-end: -40px;
  top: -42px;
  height: 170px;
  width: auto;
  opacity: .96;
  pointer-events: none;
}

/* الهيدر يبقى ثابتًا لما نزل لتحت، والشريط الأحمر يختفي */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
}

@media (max-width: 900px) {
  .impact-art { display: none; }
  .impact-inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 14px; }
  .impact-label {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-inline-end: none;
    padding-inline-end: 0;
  }
  .impact-label strong { font-size: 16px; }
  .impact-items { margin-inline-end: 0; }
  .impact-item { padding: 0 14px; gap: 8px; }
  .impact-item-label { font-size: 14px; }
  .impact-number { font-size: 20px; }
  .impact-number { margin-top: 0; }
  .impact-icon { width: 30px; height: 30px; }
  .impact-icon svg { width: 18px; height: 18px; }
  .site-header { max-height: 100vh; overflow-y: auto; }
}
@media (max-width: 560px) {
  .impact-item { padding: 0 8px; flex-direction: column-reverse; gap: 4px; }
  .impact-item-label { font-size: 12px; }
  .impact-number { font-size: 18px; }
  .impact-icon { display: none; }
}

/* العنوان الفرعي داخل بانر الصفحة */
.page-hero-banner { flex-direction: column; text-align: center; padding: 0 20px; }
.page-hero-banner p { position: relative; z-index: 1; color: var(--color-white); margin-top: 8px; opacity: .92; }

/* رسالة نجاح الفورمة */
.form-success {
  background: #eaf6ee;
  border: 1px solid #b9dfc6;
  color: #1f5a35;
  border-radius: 10px;
  padding: 18px 20px;
  line-height: 1.8;
}
.form-success strong { font-size: 20px; margin-inline-end: 6px; }
.form-success a { color: var(--color-primary); font-weight: 600; }

/* حقول بيانات المتبرع */
.form-row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.form-hint { font-size: 0.82rem; color: #6b7280; margin: -4px 0 14px; line-height: 1.6; }
.form-group .opt { font-weight: 400; color: #6b7280; font-size: 0.85em; }
.form-group select { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; background: #fff; }

/* صفحة تواصل معنا */
.form-card select { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; background: #fff; }
.urgent-note { background: #fdecea; border: 1px solid #f3c4c0; color: #7a1b17; border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; line-height: 1.8; font-size: 0.95rem; }
.urgent-note[hidden] { display: none; }
.form-error { background: #fdecea; color: #a1241e; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.opt[hidden], #phoneReq[hidden], #emailReq[hidden] { display: none; }

/* ===== تعديلات الشريط العلوي (2026-10-12) ===== */
/* اللوجو والاسم رابط للرئيسية */
a.logo { text-decoration: none; color: var(--color-dark); }
a.logo strong { color: var(--color-dark); }
a.logo:hover strong { color: var(--color-primary); }

/* زرار اللغة أوضح: كبسولة بإطار وأيقونة كرة أرضية */
.header nav a.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary);
  background: #fff5f4;
  line-height: 1.2;
  transition: background .2s, color .2s;
}
.header nav a.lang-switch svg { width: 18px; height: 18px; flex-shrink: 0; }
.header nav a.lang-switch:hover { background: var(--color-primary); color: var(--color-white); }

/* أيقونات السوشيال */
.social-icons { display: flex; align-items: center; gap: 8px; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.social-icons svg { width: 17px; height: 17px; }
.header nav .header-social a { color: var(--color-dark); background: var(--color-light-bg); padding: 0; }
.header nav .header-social a:hover { background: var(--color-primary); color: var(--color-white); }
.footer-social { justify-content: center; margin-top: 10px; }
.footer-columns .footer-social a { color: #ffffff; background: rgba(255,255,255,.1); }
.footer-columns .footer-social a:hover { background: var(--color-primary); }

/* زرار الطوارئ بقى بإطار عشان زرار التبرع يبقى هو الأساسي */
.header nav a.nav-emergency {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 8px 18px;
}
.header nav a.nav-emergency:hover { background: var(--color-primary); color: var(--color-white); }

/* الكمبيوتر: نقرب المسافات شوية عشان العناصر الجديدة تكفي */
@media (min-width: 901px) {
  .header nav { gap: 18px; }
  .header nav .btn { padding: 9px 18px; white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .header nav { gap: 12px; font-size: 14px; }
  .header nav .header-social { gap: 4px; }
  .header nav .header-social a { width: 28px; height: 28px; }
  .header nav a.lang-switch { padding: 5px 10px; }
}

/* الموبايل: زرار التبرع واللغة والسوشيال في القائمة المفتوحة */
@media (max-width: 900px) {
  .header nav a.lang-switch { justify-content: center; margin-top: 8px; padding: 10px; border-bottom: 2px solid var(--color-primary); }
  .header nav .header-social { justify-content: center; padding: 10px 0 2px; gap: 12px; }
  .header nav .header-social a { width: 38px; height: 38px; border-bottom: none; padding: 0; }
  .header nav a.nav-emergency { padding: 10px 18px; }
}

/* زرار تبرع ظاهر على الموبايل جنب زرار القائمة */
.mobile-donate { display: none; }
@media (max-width: 900px) {
  .mobile-donate { display: inline-block; margin-inline-start: auto; margin-inline-end: 12px; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 480px) {
  .header { padding: 12px 14px; }
  .logo { gap: 6px; min-width: 0; }
  .logo img { height: 34px; }
  .logo strong { font-size: 13px; line-height: 1.3; }
  .mobile-donate { padding: 7px 12px; font-size: 13px; margin-inline-end: 8px; }
}

/* ===== سلايدر صور الحملة (2026-10-13) ===== */
.photo-slider { position: relative; border-radius: 12px; overflow: hidden; background: #1d1d1d; }
.photo-slider-viewport { overflow: hidden; touch-action: pan-y; }
.photo-slider-track { display: flex; transition: transform .55s ease; will-change: transform; }
.photo-slide { flex: 0 0 100%; height: 420px; }
.photo-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.photo-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: background .2s, color .2s;
}
.photo-slider-arrow svg { width: 22px; height: 22px; }
.photo-slider-arrow:hover { background: var(--color-primary); color: #fff; }
/* السهم "السابق" على جهة بداية القراءة، والأيقونة بتتقلب في العربي */
.photo-slider-arrow.prev { inset-inline-start: 14px; }
.photo-slider-arrow.next { inset-inline-end: 14px; }
[dir="rtl"] .photo-slider-arrow svg { transform: scaleX(-1); }
.photo-slider-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; padding: 6px 10px; border-radius: 20px; background: rgba(0,0,0,.35);
}
.photo-slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,.55); transition: width .25s, background .25s; }
.photo-slider-dots button.active { width: 24px; border-radius: 5px; background: #fff; }
.photo-slider-counter {
  position: absolute; top: 12px; inset-inline-end: 12px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 13px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px; direction: ltr;
}
@media (max-width: 700px) {
  .photo-slide { height: 260px; }
  .photo-slider-arrow { width: 36px; height: 36px; }
  .photo-slider-arrow.prev { inset-inline-start: 8px; }
  .photo-slider-arrow.next { inset-inline-end: 8px; }
}
@media (prefers-reduced-motion: reduce) { .photo-slider-track { transition: none; } }

/* ===== نوعين حملات: دائمة ومؤقتة (2026-10-14) ===== */
.campaign-card-media { position: relative; }
.campaign-badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--color-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.campaign-progress { margin: 4px 0 14px; }
.campaign-progress .progress-bar { margin: 0 0 6px; }
.campaign-progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: #666; gap: 8px; }
.campaign-progress-meta strong { color: var(--color-primary-dark); }
.campaign-days { font-size: 12px; color: var(--color-primary); font-weight: 700; margin-top: 4px; }
.urgent-section { background: #fff6f5; }
.nav-urgent { color: var(--color-primary) !important; }
.campaign-detail-progress { background: #fff6f5; border: 1px solid #f3d6d4; border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; }
.campaign-detail-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 10px; }
.campaign-detail-stats span { display: block; font-size: 12px; color: #777; }
.campaign-detail-stats strong { font-size: 18px; color: var(--color-primary-dark); }
.campaign-detail-pct { font-size: 13px; color: #666; margin-top: 4px; }
.empty-note { text-align: center; color: var(--color-stone); margin: 30px auto 60px; max-width: 600px; }

/* ===== حاسبة الزكاة (2026-10-14) ===== */
.zakat-calc { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 22px; margin: 6px 0 30px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.zakat-calc h2 { color: var(--color-primary-dark); font-size: 22px; margin-bottom: 8px; }
.zakat-intro { color: #555; line-height: 1.8; margin-bottom: 6px; }
.zakat-price { font-size: 13px; color: var(--color-primary); font-weight: 700; margin-bottom: 14px; }
.zakat-form { display: grid; gap: 12px; }
.zakat-form label { display: block; }
.zakat-form label > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; color: #333; }
.zk-input { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 8px; overflow: hidden; background: #fff; }
.zk-input input { flex: 1; border: none; padding: 11px 12px; font-size: 16px; font-family: inherit; min-width: 0; outline: none; }
.zk-input em { font-style: normal; color: #777; padding: 0 12px; background: #f6f5f4; align-self: stretch; display: flex; align-items: center; font-size: 14px; }
.zk-input:focus-within { border-color: var(--color-primary); }
.zk-row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.zk-karat select { width: 100%; padding: 11px 10px; border: 1px solid #ccc; border-radius: 8px; font-family: inherit; font-size: 15px; background: #fff; }
.zakat-result { margin-top: 18px; background: #fff6f5; border-radius: 10px; padding: 16px; }
.zk-line { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: #555; font-size: 14px; }
.zk-due { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid #f0d2cf; margin-top: 8px; padding-top: 10px; }
.zk-due span { font-weight: 700; color: #333; }
.zk-due strong { font-size: 26px; color: var(--color-primary); }
.zk-below { color: #8a5a00; background: #fff4e0; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-top: 8px; }
.zk-pay { width: 100%; margin-top: 12px; padding: 13px; font-size: 16px; }
.zk-pay:disabled { opacity: .5; cursor: not-allowed; }
.zakat-note { font-size: 12px; color: #888; margin-top: 10px; }
@media (max-width: 480px) { .zk-row { grid-template-columns: 1fr 90px; } .zakat-calc { padding: 16px; } }
.zakat-calc, .zakat-form, .zakat-form label, .zk-input { min-width: 0; max-width: 100%; }
.zk-input input { width: 100%; }
.zk-row { grid-template-columns: minmax(0, 1fr) 110px; }
@media (max-width: 480px) { .zk-row { grid-template-columns: minmax(0, 1fr) 84px; } }

/* لوحة الإعلانات: قسم كروت في الرئيسية بدون عنوان */
.announcements-section .campaigns-grid { margin-top: 0; }
.announcement-card .campaign-card-media img.thumb-contain { height: 180px; }
.announcement-badge-post { background: #4a4a4a; }
.announcement-badge-partner { background: #1f6f5c; }

/* الزراير في كل كروت الصف على نفس المستوى (تحت الكارت) مهما اختلف طول العنوان أو الوصف */
.campaign-card { display: flex; flex-direction: column; }
.campaign-card-body { flex: 1; display: flex; flex-direction: column; }
.campaign-card-body > .btn:last-child { margin-top: auto; align-self: flex-start; }

/* صفحة "تبرعاتي" للمتبرع */
.header nav a.nav-account { display: inline-flex; align-items: center; gap: 6px; }
.header nav a.nav-account svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-primary); }
.account-card .account-intro { color: #555; margin-bottom: 20px; line-height: 1.8; }
.account-sub { color: var(--color-dark); font-size: 20px; margin: 8px 0 12px; }
.account-alert { background: #fdecea; color: var(--color-primary-dark); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.account-wide { width: 100%; font-size: 17px; padding: 12px; }
.account-code-input { font-size: 26px !important; letter-spacing: 8px; text-align: center; }
.account-links { margin-top: 16px; text-align: center; color: #666; }
.account-links a { color: var(--color-primary); }
.account-page { max-width: 820px; margin: 40px auto; padding: 0 16px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.account-head h1 { color: var(--color-primary); margin-bottom: 4px; }
.account-head p { color: #666; }
.account-outline { background: #fff; color: var(--color-primary); border: 1px solid var(--color-primary); }
.account-stats { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 30px; }
.account-stat { background: var(--color-light-bg); border-radius: 10px; padding: 18px 20px; }
.account-stat span { display: block; color: #666; margin-bottom: 4px; }
.account-stat strong { font-size: 28px; color: var(--color-primary); }
.account-list { border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.account-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eee; }
.account-row:last-child { border-bottom: none; }
.account-row-main strong { display: block; font-size: 18px; }
.account-row-main span { color: #666; }
.account-row-side { text-align: end; }
.account-row-side .account-date { display: block; color: #888; font-size: 14px; }
.account-row-side a { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.account-empty { color: #666; background: var(--color-light-bg); border-radius: 10px; padding: 18px; }
.account-monthly { margin-top: 26px; border: 1px dashed var(--color-mist); border-radius: 10px; padding: 16px 18px; color: #666; }
.account-monthly strong { color: var(--color-dark); display: block; margin-bottom: 4px; }
.account-again { text-align: center; margin-top: 26px; }
.account-thanks-link { margin-top: 18px; }
.account-thanks-link a { color: var(--color-primary); font-weight: 700; }
@media (max-width: 600px) {
  .account-stats { grid-template-columns: 1fr; }
  .account-row { flex-direction: column; align-items: flex-start; }
  .account-row-side { text-align: start; }
}
.account-note { color: #888; font-size: 14px; margin: -6px 0 12px; }
.account-status { display: inline-block; max-width: 100%; font-size: 13px; font-weight: 700; line-height: 1.5; border-radius: 12px; padding: 3px 10px; margin: 4px 0; }
.account-status-completed { background: #e7f5ec; color: #1e7a3c; }
.account-status-pending { background: #fff4e0; color: #9a5b00; }
.account-status-cancelled, .account-status-failed { background: #f1f1f1; color: #777; }
.account-row-side .account-status + a { display: block; }
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }
.account-actions form { margin: 0; }
.account-btn { display: inline-block; font: inherit; font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--color-primary); background: #fff; color: var(--color-primary) !important; text-decoration: none; cursor: pointer; }
.account-btn-solid { background: var(--color-primary); color: #fff !important; }
@media (max-width: 600px) { .account-actions { justify-content: flex-start; } }

/* ===== صفحة الحملات: قسم الطارئة فوق (2026-10-20، دمج صفحة حملات طارئة) ===== */
.campaigns-urgent-block { background: #fff6f5; border-top: 3px solid var(--color-primary); padding: 0 0 8px; scroll-margin-top: 90px; }
.urgent-block-head { text-align: center; padding: 32px 16px 8px; }
.urgent-block-head h2, .campaigns-block-title { color: var(--color-primary); font-size: 1.6rem; margin: 0 0 6px; }
.urgent-block-head p { color: #666; margin: 0; }
.campaigns-block-title { text-align: center; padding: 32px 16px 0; }

/* ===== التبرع الشهري في "تبرعاتي" (2026-10-21) ===== */
.account-alert-ok { background: #e7f5ec; color: #1e7a3c; }
.monthly-row { align-items: flex-start; }
.monthly-row .account-row-main small { font-size: 14px; color: #666; font-weight: 400; }
.monthly-meta { display: block; font-size: 14px; color: #777 !important; margin-top: 4px; }
.account-row .account-row-main .account-legacy, .account-row .account-legacy { display: inline-block; font-size: 12px; font-weight: 600; color: #6b5a3e; background: #f5efe3; border-radius: 12px; padding: 1px 9px; margin-top: 4px; width: fit-content; }
.monthly-pending { color: #9a5b00 !important; }
.account-btn-muted { border-color: #bbb; color: #666 !important; }
.monthly-change { margin-top: 8px; }
.monthly-change summary { list-style: none; display: inline-block; }
.monthly-change summary::-webkit-details-marker { display: none; }
.monthly-change form { margin-top: 10px; text-align: start; background: var(--color-light-bg); border-radius: 8px; padding: 10px 12px; }
.monthly-change label { display: block; font-size: 14px; margin-bottom: 6px; }
.monthly-change-row { display: flex; gap: 8px; }
.monthly-change-row input { width: 120px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; font: inherit; }
.monthly-change small { display: block; color: #888; margin-top: 6px; line-height: 1.6; }
.monthly-note { margin-top: 10px; }
.thank-you-monthly { color: #1e7a3c; font-weight: 700; }
.monthly-hint { display: none; font-size: 14px; color: #666; background: var(--color-light-bg); border-radius: 8px; padding: 8px 12px; margin: -4px 0 14px; line-height: 1.7; }
.frequency-toggle:has(input[value="monthly"]:checked) + .monthly-hint { display: block; }
.monthly-next strong { color: var(--color-dark); }
.monthly-failed { color: #b02a37 !important; font-weight: 700; }
/* طريقة الدفع: بطاقة بنكية (guest على PayPal) أو حساب PayPal */
.pay-method { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pay-method label { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid #ddd; border-radius: 8px; cursor: pointer; min-width: 0; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method label:has(input:checked) { border-color: var(--color-primary); background: #fdeceb; }
.pay-method label:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.pay-method-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 40px; border-radius: 8px; background: #fff; border: 1px solid #e5e5e5; color: #333; }
.pay-method label:has(input:checked) .pay-method-icon { color: var(--color-primary); }
.pay-method-pp { font: italic 800 13px/1 Arial, sans-serif; direction: ltr; }
.pay-method-pp b { color: #003087; } .pay-method-pp i { color: #009cde; }
.pay-method-text { display: flex; flex-direction: column; min-width: 0; }
.pay-method-text strong { font-size: 15px; }
.pay-method-text small { font-size: 12px; color: #666; line-height: 1.5; }
.pay-method-hint { font-size: 13px; color: #666; margin: 0 0 14px; line-height: 1.7; }
.pay-method-hint-monthly { display: none; background: var(--color-light-bg); border-radius: 8px; padding: 8px 12px; }
form:has(input[name="payment_method"][value="paypal"]:checked) .pay-method-hint-card { display: none; }
/* الشهري: الكارت من غير حساب مش متاح، فبنخفيه ونوضح ليه */
form:has(input[name="frequency"][value="monthly"]:checked) .pay-method-card,
form:has(input[name="frequency"][value="monthly"]:checked) .pay-method-hint-card { display: none; }
form:has(input[name="frequency"][value="monthly"]:checked) .pay-method { grid-template-columns: 1fr; }
form:has(input[name="frequency"][value="monthly"]:checked) .pay-method-hint-monthly { display: block; }
@media (max-width: 480px) { .pay-method { grid-template-columns: 1fr; } }
form:has(input[name="frequency"][value="monthly"]:checked) .pay-method-paypal { border-color: var(--color-primary); background: #fdeceb; }
/* الدفع (PayPal JS SDK): زرار PayPal الرسمي، وتحته فورم الكارت. بيظهر بس لما الـ SDK يشتغل (pp-ready) والتبرع مرة واحدة */
.pp-checkout { display: none; }
form.pp-ready .pp-checkout { display: block; }
form.pp-ready .pay-fallback,
form.pp-ready:not(:has(input[name="frequency"][value="monthly"]:checked)) .donate-submit { display: none; }
.pp-button { min-height: 48px; }
.pp-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #777; font-size: 14px; }
.pp-divider::before, .pp-divider::after { content: ""; flex: 1; height: 1px; background: #ddd; }
.pp-card { border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; padding: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.pp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-weight: 700; color: #333; }
.pp-brands { display: inline-flex; gap: 6px; direction: ltr; }
.pp-brands svg { display: block; }
.pp-fields { display: none; }
form.cf-ready .pp-fields { display: block; }
.pp-field label { display: block; font-size: 13px; font-weight: 600; color: #555; margin: 0 2px 2px; }
.pp-field > div { min-height: 58px; margin: 0 -6px; } /* iframe بتاع PayPal فيه هامش داخلي ~6px */
.pp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pp-error { color: #b02a37; font-size: 14px; font-weight: 700; margin: 4px 2px 10px; }
.pp-pay-btn, .pp-card-redirect { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 14px; border: 0; border-radius: 8px; background: var(--color-primary); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .15s; }
.pp-pay-btn:hover, .pp-card-redirect:hover { background: var(--color-primary-dark); }
.pp-pay-btn:disabled { opacity: .6; cursor: wait; }
.pp-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px; margin: 12px 0 4px; font-size: 13px; color: #1e7a3c; text-align: center; }
.pp-trust .pp-logo { height: 15px; width: auto; }
.pp-trust small { flex-basis: 100%; color: #777; font-size: 12px; }
/* خانات الكارت مش متاحة للحساب: زرار بيكمل الدفع بالكارت في صفحة PayPal */
.pp-card .pp-card-redirect { display: none; }
form.pp-ready:not(.cf-ready) .pp-card .pp-card-redirect { display: flex; }
form.pp-busy .pp-checkout { opacity: .7; pointer-events: none; }
/* زرار الإرسال: في الشهري بيبقى بألوان PayPal */
.donate-submit .ds-monthly { display: none; }
form:has(input[name="frequency"][value="monthly"]:checked) .donate-submit { background: #ffc439; color: #111; border-color: #ffc439; display: flex; align-items: center; justify-content: center; gap: 8px; }
form:has(input[name="frequency"][value="monthly"]:checked) .donate-submit:hover { background: #f2ba36; }
form:has(input[name="frequency"][value="monthly"]:checked) .donate-submit .ds-default { display: none; }
form:has(input[name="frequency"][value="monthly"]:checked) .donate-submit .ds-monthly { display: inline-flex; align-items: center; gap: 8px; }
.donate-submit .pp-logo { height: 20px; width: auto; }
/* فورم التبرع الجديد (views/partials/donate-form.ejs): 3 خطوات، ملخص، علامات أمان */
.donate-card { background: #fff; box-shadow: 0 2px 18px rgba(0, 0, 0, .07); border: 1px solid #eee; }
.donate-sidebar-card:has(.dform) { background: #fff; border: 1px solid #eee; box-shadow: 0 2px 18px rgba(0, 0, 0, .07); }
.dform-step { padding: 4px 0 18px; }
.dform-step + .dform-step { border-top: 1px solid #eee; padding-top: 20px; }
.dform-step-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #222; margin: 0 0 14px; }
.dform-num { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 14px; font-weight: 700; }
/* مرة واحدة / شهري: زرار مقسوم نصين */
.dform .dform-freq { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px; margin-bottom: 14px; background: var(--color-light-bg); border-radius: 10px; }
.dform .dform-freq label { border: 0; border-radius: 8px; padding: 10px; font-weight: 700; color: #555; background: transparent; transition: background .15s, color .15s; }
.dform .dform-freq label:has(input:checked) { background: #fff; color: var(--color-primary); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.dform .dform-freq input:checked + span { color: inherit; }
.dform-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.dform-amounts label { display: flex; align-items: center; justify-content: center; min-height: 54px; border: 1.5px solid #ddd; border-radius: 10px; cursor: pointer; font-size: 18px; font-weight: 700; color: #333; background: #fff; transition: border-color .15s, background .15s; }
.dform-amounts label:hover { border-color: #bbb; }
.dform-amounts input { position: absolute; opacity: 0; pointer-events: none; }
.dform-amounts label:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.dform-amounts label:has(input:focus-visible), .dform .dform-freq label:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.dform-custom { position: relative; display: block; }
.dform-custom input { width: 100%; padding: 14px 16px; padding-inline-start: 38px; border: 1.5px solid #ddd; border-radius: 10px; font: inherit; font-size: 17px; font-weight: 600; background: #fff; }
.dform-custom input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(178, 37, 33, .12); }
.dform-cur { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: #777; pointer-events: none; }
.dform-impact { margin: 10px 2px 0; font-size: 13px; color: #6b7280; }
.dform .form-group label { font-size: 14px; color: #333; }
.dform .form-group input { border: 1.5px solid #ddd; border-radius: 10px; padding: 12px 14px; background: #fff; }
.dform .form-group input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(178, 37, 33, .12); }
.dform .req { color: var(--color-primary); }
.dform-help { display: block; margin-top: 6px; font-size: 12.5px; color: #6b7280; line-height: 1.6; }
/* ملخص التبرع في النص: السطر الأول (القلب + الجملة + الشارة) متوسّط، وتحته الرسوم و"لصالح" */
.dform-summary { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 16px; margin-bottom: 16px; border-radius: 10px; background: #fdeceb; color: var(--color-primary-dark); font-weight: 700; line-height: 1.6; }
.dform-sum-line { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; }
.dform-summary svg { flex: 0 0 auto; color: var(--color-primary); }
/* الجملة: المبلغ أكبر شوية (نقطة التركيز)، والشارة على نفس الخط، وبتلف بشكل مرتب على الشاشات الضيقة */
.dform-summary [data-sum] { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: .3em; row-gap: 4px; min-width: 0; font-size: 16.5px; }
.dform-summary [data-sum] bdi { font-size: 1.2em; font-weight: 800; }
.dform-summary small { display: block; font-weight: 400; color: #6b4a48; font-size: 13px; margin-top: 2px; }
.dform .donate-submit { width: 100%; margin-top: 4px; padding: 14px; border-radius: 8px; font-size: 17px; }
.dform-trust { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid #eee; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; color: #555; }
.dform-trust li { display: inline-flex; align-items: center; gap: 6px; }
.dform-trust svg { color: #1e7a3c; }
.dform .pp-trust small { display: none; } /* نفس المعنى موجود في علامات الأمان تحت */
@media (max-width: 480px) {
  .donate-card { padding: 20px 16px; margin: 24px 12px; }
  .dform-amounts label { min-height: 50px; font-size: 17px; }
}
/* تغطية رسوم الدفع: خانة اختيار تحت المبالغ (مرة واحدة بس) */
/* خانة تغطية الرسوم: واضحة (حدود بلون الموقع وخلفية فاتحة، مربع أكبر، والمبلغ عريض وملوّن)، والمربع كله بيدوس */
.dform-fee { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border: 1.5px solid rgba(178, 37, 33, .45); border-radius: 10px; background: #fff6f5; font-size: 15px; font-weight: 600; color: #2b2b2b; cursor: pointer; line-height: 1.6; transition: background .15s, border-color .15s, box-shadow .15s; }
.dform-fee:hover { border-color: var(--color-primary); background: #fdeceb; }
.dform-fee input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--color-primary); cursor: pointer; }
.dform-fee:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.dform-fee:has(input:checked) { border: 2px solid var(--color-primary); background: #fbdedb; box-shadow: 0 1px 6px rgba(178, 37, 33, .15); }
.dform-fee bdi { font-weight: 800; color: var(--color-primary); font-size: 1.08em; }
.dform-summary .dform-sum-fee { font-weight: 700; color: var(--color-primary-dark); }
.dform-sum-fee[hidden] { display: none; }
/* كلمة "شهريًا" في ملخص التبرع: شارة واضحة بلون الموقع، بتظهر بنطّة لما الشهري يتختار وبعدها نبض ولمعة مستمرين
   عشان المتبرع مايختارش الشهري بالغلط. النبض transform + box-shadow بس، فمش بيحرك السطر. مع تقليل الحركة: ثابتة بس واضحة */
.dform-monthly-word {
  display: inline-flex; align-items: center; position: relative; overflow: hidden;
  padding: 0 .75em; border-radius: 999px; font-size: 1.08em; line-height: 1.6;
  background: linear-gradient(135deg, #d6332c, var(--color-primary) 60%, #8f1814); color: #fff; font-weight: 800;
  box-shadow: 0 0 0 0 rgba(178, 37, 33, .45);
  animation: dform-word-pop .5s cubic-bezier(.2, 1.4, .4, 1) both, dform-word-pulse 1.8s ease-in-out .5s infinite;
}
.dform-monthly-word::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  animation: dform-word-shine 2.4s ease-in-out .8s infinite;
}
[dir="rtl"] .dform-monthly-word::after { animation-name: dform-word-shine-rtl; }
/* زرار "شهريًا" فوق الفورم: نفس شارة الملخص بالظبط (اللون والشكل والنبض واللمعة)، مالية الزرار.
   المختار عليه إطار أبيض (خلفية الزرار) والتاني من غير إطار */
.dform .dform-freq label.freq-monthly { padding: 4px; }
.dform .dform-freq label input + span.dform-freq-word { display: flex; justify-content: center; width: 100%; height: 100%; min-height: 36px; padding: 0 .75em; font-size: 1.04em; color: #fff; }
@keyframes dform-word-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes dform-word-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(178, 37, 33, .45); }
  45% { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(178, 37, 33, .16); }
  75% { box-shadow: 0 0 0 6px rgba(178, 37, 33, 0); }
}
@keyframes dform-word-shine { 0%, 50% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes dform-word-shine-rtl { 0%, 50% { transform: translateX(120%); } 85%, 100% { transform: translateX(-120%); } }
@media (prefers-reduced-motion: reduce) {
  .dform-monthly-word { animation: none; box-shadow: 0 0 0 2px rgba(178, 37, 33, .25); }
  .dform-monthly-word::after { display: none; }
}
/* الشهري: زراير اشتراك PayPal جوه الصفحة (sub-ready)، وزرار الكارت (sub-card) أو زرار الكارت اللي بيروح صفحة PayPal */
.pp-monthly { display: none; }
form.sub-ready:not(.cf-ready):has(input[name="frequency"][value="monthly"]:checked) .pp-monthly { display: block; margin-bottom: 10px; }
form.sub-ready:has(input[name="frequency"][value="monthly"]:checked) .donate-submit { display: none; }
.pp-sub-paypal, .pp-sub-card { min-height: 0; }
.pp-sub-card { margin-top: 2px; }
.pp-sub-card-redirect { display: none; width: 100%; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; padding: 10px 14px; border: 1.5px solid #222; border-radius: 6px; background: #fff; color: #222; font: inherit; cursor: pointer; text-align: start; }
.pp-sub-card-redirect:hover { background: #f6f6f6; }
.pp-sub-card-redirect span:last-child { display: flex; flex-direction: column; }
.pp-sub-card-redirect small { font-size: 12px; color: #666; }
form.sub-ready:not(.sub-card) .pp-sub-card-redirect { display: flex; }
/* الشهري بخانات الكارت (زي المرة الواحدة): زرار اشتراك PayPal مكان زرار PayPal العادي، والكارت بيتحفظ عند PayPal */
.pp-sub-paypal, .pp-pay-monthly { display: none; }
form:has(input[name="frequency"][value="monthly"]:checked) .pp-pay-monthly { display: inline; }
form:has(input[name="frequency"][value="monthly"]:checked) .pp-button { display: none; }
form.sub-ready:has(input[name="frequency"][value="monthly"]:checked) .pp-sub-paypal { display: block; min-height: 48px; }
/* الشهري: لو PayPal مش جاهز يبقى الزرار الأصفر (تحويل لصفحة PayPal)؛ ولو خانات الكارت شغالة الملاحظة عن PayPal مالهاش لازمة */
form.pp-ready:not(.sub-ready):has(input[name="frequency"][value="monthly"]:checked) .pp-checkout .pp-divider { display: none; }
form.cf-ready .pay-method-hint-monthly { display: none !important; }
/* تغيير بطاقة التبرع الشهري (حسابي) */
.card-change h1 { font-size: 24px; }
.card-change-current { text-align: center; color: #555; margin: -8px 0 6px; }
.card-change-note { text-align: center; color: #555; line-height: 1.8; margin: 0 0 16px; }
/* Google Pay / Apple Pay: تحت زرار PayPal (مرة واحدة بس)، وبيظهروا بس لو الجهاز بيدعمهم */
.pp-wallets { display: none; }
form.gpay-ready .pp-wallets, form.apay-ready .pp-wallets { display: grid; gap: 8px; margin-top: 8px; }
form:has(input[name="frequency"][value="monthly"]:checked) .pp-wallets { display: none; }
.pp-gpay:empty, .pp-apay:empty { display: none; }
.pp-gpay button { width: 100% !important; min-height: 48px; }
.pp-apay-btn { display: block; width: 100%; height: 48px; border: 0; border-radius: 6px; cursor: pointer;
  -webkit-appearance: -apple-pay-button; -apple-pay-button-type: donate; -apple-pay-button-style: black; }
/* حملة ليها هدف: المتبقي لاكتمالها + زرار "أكمل المبلغ المتبقي"، والمبالغ الأكبر مستخبية */
.dform-amounts label[hidden], .dform-goal[hidden] { display: none; }
.dform-goal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #f1f7f2; color: #1e5b33; font-size: 14px; font-weight: 600; }
.dform-goal bdi { font-weight: 800; }
.dform-goal-fill { border: 1.5px solid #1e7a3c; background: #fff; color: #1e7a3c; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dform-goal-fill:hover { background: #1e7a3c; color: #fff; }
.dform-goal-done { padding: 18px; border-radius: 10px; background: #f1f7f2; color: #1e5b33; text-align: center; font-size: 16px; line-height: 1.8; }
/* المبلغ أكبر من المتبقي لاكتمال الحملة: رسالة حمرا تحت الخانة، والخانة حمرا، وأزرار الدفع متوقفة لحد ما يتصلح */
.dform-goal-error { margin: 6px 2px 0; color: #b02a37; font-size: 14px; font-weight: 700; line-height: 1.6; }
.dform-goal-error[hidden] { display: none; }
form.goal-over .dform-custom input { border-color: #b02a37; box-shadow: 0 0 0 3px rgba(176, 42, 55, .15); }
form.goal-over .pp-checkout, form.goal-over .pp-monthly, form.goal-over .donate-submit { opacity: .45; pointer-events: none; filter: grayscale(.3); }
.account-pay-gpay button { width: 100% !important; min-height: 48px; }

/* إيصال ضريبي (Cerfa): خانات العنوان بتظهر بس لما المتبرع يعلّم على الخانة */
.tax-receipt { margin-top: 10px; padding: 12px 14px; border: 1px dashed #d6cfc4; border-radius: 10px; background: #fbf9f6; }
.tax-receipt > label { display: inline; font-weight: 600; cursor: pointer; margin-inline-start: 6px; }
.tax-check { width: 18px; height: 18px; vertical-align: middle; accent-color: #B22521; }
.tax-fields { display: none; margin-top: 10px; }
.tax-check:checked ~ .tax-fields { display: block; }
.account-tax { margin: 18px 0 8px; padding: 16px; border: 1px solid #eee; border-radius: 12px; background: #fff; }
.account-tax summary { cursor: pointer; font-weight: 700; }
.account-tax form { margin-top: 12px; }
.account-tax .form-group { margin-bottom: 10px; }
.account-tax input, .account-tax select { width: 100%; padding: 9px 10px; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
.account-years { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
/* صفحات السياسات */
.policy-page { max-width: 820px; margin: 0 auto; padding: 40px 20px 60px; line-height: 1.8; }
.policy-page h1 { margin-bottom: 20px; }
.policy-page h2 { font-size: 20px; margin: 28px 0 8px; }
.policy-page ul { padding-inline-start: 22px; margin: 8px 0; }
.dform-legal { margin: 10px 0 0; font-size: 13px; color: #667; text-align: center; }
.dform-legal a { color: inherit; text-decoration: underline; }

/* نافذة الموافقة على ملفات الارتباط: «قبول الكل» و«رفض الكل» بنفس الشكل والحجم (CNIL)، و«تخصيص» رابط تحتهم */
.cc { position: fixed; inset: auto 0 0 0; z-index: 2147483646; display: flex; justify-content: center; padding: 12px; pointer-events: none; }
.cc[hidden] { display: none; }
.cc-box { pointer-events: auto; width: 100%; max-width: 620px; max-height: calc(100vh - 24px); overflow-y: auto; background: #fff; color: #222;
  border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); padding: 18px 20px; border-top: 4px solid var(--color-primary); }
.cc-title { font-size: 1.1rem; margin: 0 0 6px; color: var(--color-primary-dark); }
.cc-text { margin: 0 0 12px; font-size: .95rem; line-height: 1.7; color: #444; }
.cc-text a { color: var(--color-primary); font-weight: 700; margin-inline-start: 4px; }
.cc .cc-no-tools, .cc.cc-tools .cc-has-tools { display: inline; }
.cc .cc-has-tools, .cc.cc-tools .cc-no-tools { display: none; }
.cc-cats { display: none; margin: 0 0 12px; border: 1px solid #eee; border-radius: 10px; }
.cc.cc-custom .cc-cats { display: block; }
.cc-cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; cursor: pointer; }
.cc-cat[hidden] { display: none; }
.cc-cat + .cc-cat { border-top: 1px solid #eee; }
.cc-cat strong { display: block; font-size: .95rem; }
.cc-cat small { display: block; color: #666; font-size: .82rem; line-height: 1.5; }
.cc-on { flex: none; font-size: .8rem; font-weight: 700; color: #1e7a3c; }
.cc-switch { flex: none; width: 22px; height: 22px; accent-color: var(--color-primary); cursor: pointer; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-btn { font: inherit; font-weight: 700; border-radius: 8px; padding: 11px 14px; cursor: pointer; }
.cc-main { background: var(--color-primary); color: #fff; border: 2px solid var(--color-primary); }
.cc-main:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.cc-link { grid-column: 1 / -1; background: none; border: 0; color: var(--color-primary); text-decoration: underline; padding: 4px; }
.cc-btn:focus-visible, .cc-switch:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
.cc-save, .cc-close { display: none; }
/* وضع التخصيص: حفظ اختياري مكان «تخصيص» */
.cc.cc-custom [data-cc="customize"] { display: none; }
.cc.cc-custom.cc-tools .cc-save { display: block; grid-column: 1 / -1; }
/* اتفتحت من الفوتر بعد ما اختار (أو مفيش أدوات): يقدر يقفل من غير ما يختار */
.cc.cc-reopen .cc-close { display: block; }
.cc:not(.cc-tools) [data-cc="refuse"], .cc:not(.cc-tools) [data-cc="accept"] { display: none; }
/* زرار المحادثة (Voxent) ثابت تحت في الركن: النافذة تطلع فوقه عشان مايغطيش «حفظ اختياري» */
.cc { padding-bottom: 92px; }
/* الوضع العادي: شريط صغير هادي تحت الصفحة (مش نافذة)، عشان مايشتتش المتبرع.
   «تخصيص» أو رابط الفوتر بيفتح التفاصيل في الكارت اللي فوق */
.cc .cc-short { display: none !important; }
.cc:not(.cc-custom) { padding: 0; }
.cc:not(.cc-custom) .cc-box { max-width: none; border-radius: 0; border-top: 1px solid #e4e0dd; background: #fafafa; box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
  padding: 8px 96px 8px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.cc:not(.cc-custom) .cc-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cc:not(.cc-custom) .cc-text { flex: 1 1 260px; margin: 0; font-size: .85rem; line-height: 1.5; color: #555; }
.cc.cc-tools:not(.cc-custom) .cc-long { display: none !important; }
.cc.cc-tools:not(.cc-custom) .cc-short { display: inline !important; }
.cc:not(.cc-custom) .cc-text a { font-weight: 600; color: #555; }
.cc:not(.cc-custom) .cc-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.cc:not(.cc-custom) .cc-btn { padding: 5px 14px; font-size: .85rem; border-radius: 6px; }
/* «رفض» و«قبول» نفس الشكل بالظبط (CNIL)، بس هاديين */
.cc:not(.cc-custom) .cc-main { background: #fff; color: #333; border: 1px solid #bdbdbd; font-weight: 600; }
.cc:not(.cc-custom) .cc-main:hover { background: #f4f2f1; border-color: #999; }
.cc:not(.cc-custom) .cc-link { grid-column: auto; font-size: .82rem; padding: 4px 2px; color: #666; }
/* زرار المحادثة على اليمين في اللغتين، فالمسافة دايماً يمين (مش inline-end) */
@media (max-width: 600px) {
  .cc:not(.cc-custom) .cc-box { padding: 8px 80px 8px 12px; gap: 6px 10px; }
  .cc:not(.cc-custom) .cc-text { flex-basis: 100%; font-size: .8rem; }
  .cc:not(.cc-custom) .cc-text a { display: none; } /* رابط السياسة في «تخصيص» وفي الفوتر */
}
