/*
 * custom.css — إصلاحات الواجهة لموقع ملاذ الأمل
 * يُحمَّل تلقائيًا من tpls/blocks/head.php بعد template.css
 * القسم 1: انسجام الألوان والتباين والتفاعل والأبعاد (كل المقاسات)
 * القسم 2: إصلاحات الجوال (≤767px)
 */

/* ==========================================================
 * القسم 1 — الهوية اللونية الموحدة
 * البنفسجي الأساسي:  #8B3C8D
 * البنفسجي الغامق (hover/تفاعل): #6B2D6D
 * نص العناوين: #303842 — نص المتن: #555
 * ========================================================== */

/* --- تباعد أسطر يناسب العربية (كان 1.4 مضغوطًا) --- */
p,
.qx-media-body p,
.qx-element-text p {
  line-height: 1.9;
}
h1, h2, h3, h4, h5, h6 {
  line-height: 1.5;
}
h2 {
  margin-bottom: 20px;
}

/* --- توحيد hover الروابط والأزرار على البنفسجي الغامق
       (كان يقفز إلى رمادي-أزرق #666785 خارج الهوية) --- */
a:hover {
  color: #6B2D6D !important;
}
.btn.btn-primary:hover,
.qx-btn.btn-primary:hover,
.btn.qx-btn-primary:hover,
.qx-btn.qx-btn-primary:hover,
.btn:hover, .qx-btn:hover,
.btn.active, .qx-btn.active {
  background: #6B2D6D !important;
  border-color: #6B2D6D !important;
  color: #fff !important;
}
.btn, .qx-btn,
a, .footer-menu a,
input, textarea {
  transition: all .25s ease;
}

/* --- زر «تواصل معنا»: كان شبه مخفي (بلا حدود ولا خلفية) --- */
#qx-button-84133 .qx-btn {
  border: 2px solid #8B3C8D;
  color: #8B3C8D;
  background: transparent;
}
#qx-button-84133 .qx-btn:hover,
#qx-button-84133 .qx-btn:focus {
  background: #8B3C8D !important;
  border-color: #8B3C8D !important;
  color: #fff !important;
}

/* --- قابلية الوصول: إطار تركيز واضح للتنقل بلوحة المفاتيح --- */
a:focus-visible,
.btn:focus-visible,
.qx-btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8B3C8D;
  outline-offset: 2px;
}

/* --- حقول نموذج الاتصال: زوايا موحدة وحالة تركيز ظاهرة --- */
.qx-element-contact-form .form-horizontal .control-group .controls input,
.qx-element-contact-form .form-horizontal .control-group .controls textarea {
  border-radius: 8px;
}
.qx-element-contact-form .form-horizontal .control-group .controls input:focus,
.qx-element-contact-form .form-horizontal .control-group .controls textarea:focus {
  box-shadow: inset 0 0 0 2px #8B3C8D;
  background: #fff;
}

/* --- الفوتر: الروابط والأيقونات كانت رمادية-زرقاء (129,145,166)
       بتباين راسب 3.08:1 — توحيد على البنفسجي بتباين ناجح --- */
div.qx-section.footer .footer-menu ul li a,
.footer-menu ul li a,
#qx-section-93831 .qx-element-menu a {
  color: #8B3C8D;
  font-size: 13px;
}
div.qx-section.footer .footer-menu ul li a:hover,
.footer-menu ul li a:hover {
  color: #6B2D6D !important;
  padding-right: 8px;
}
/* (قاعدة الأيقونات القديمة حُذفت — كانت تقلب display عند التحويم فتقفز الروابط) */

/* --- القائمة العلوية: تكبير خط الروابط قليلًا (كان 12px) --- */
.navbar-default .navbar-nav > li > a {
  font-size: 14px;
}

/* --- بطاقات الخدمات: تفاعل خفيف عند المرور --- */
.qx-element-blurb {
  transition: transform .3s ease;
}
.qx-element-blurb:hover {
  transform: translateY(-4px);
}
.qx-element-blurb:hover .qx-icon {
  color: #8B3C8D;
}
.qx-icon {
  transition: color .3s ease;
}

/* ==========================================================
 * توحيد شكل الأزرار في كل الموقع (كبسولة + تفاعل موحد)
 * ========================================================== */
.btn,
.qx-btn,
button.validate,
input[type="submit"].btn {
  /* border-radius removed [TASK-20260929-PUBLIC-UI-CHROME]: `button.validate` out-ranked
     mlath-ds.css's `.btn` corner, so the invoice-search button alone stayed a 50px capsule;
     padding removed for the same reason (mlath-ds.css: 11px 26px) */
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
  text-shadow: none;
}
.btn:hover, .qx-btn:hover {
  box-shadow: 0 6px 18px rgba(107, 45, 109, .25);
  transform: translateY(-1px);
}
.btn:active, .qx-btn:active {
  transform: translateY(0);
}
/* [TASK-20260929-PUBLIC-UI-CHROME] the old secondary-button rule (2px lavender border, #8B3C8D
   text) was removed: mlath-ds.css defines the neutral and ghost roles; this rule's three-class
   selector recoloured the invoice page's ghost buttons only. */
/* استثناء زر «العودة لأعلى» — سهم صغير وليس زر نص */
#back-to-top .btn {
  border-radius: 6px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#back-to-top .btn:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

/* ==========================================================
 * إخفاء زر القائمة الجانبية — لوحته معطلة أصلًا فلا وظيفة له
 * ========================================================== */
.off-canvas-toggle {
  display: none !important;
}

/* ==========================================================
 * صفحة «فاتورتك»: بطاقة مركزية أنيقة بدل النموذج الملتصق
 * ========================================================== */
.inv-edit.front-end-edit {
  max-width: 540px;
  margin: 60px auto 80px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 45px rgba(96, 39, 106, .10);
  padding: 48px 44px 40px;
}
.inv-edit.front-end-edit h1 {
  font-size: 28px;
  text-align: center;
  color: #303842;
  margin: 0 0 8px;
}
.inv-edit.front-end-edit h1:after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: #8B3C8D;
  margin: 14px auto 24px;
}
.inv-edit .form-horizontal .control-group {
  margin-bottom: 18px;
}
.inv-edit .form-horizontal .control-label {
  float: none;
  width: auto;
  display: block;
  text-align: right;
  margin-bottom: 6px;
  font-weight: 600;
  color: #555;
}
/* لا أحمر في عناوين الحقول (كانت تتلون بالأحمر بسبب تنسيق الحقول الإلزامية) */
.inv-edit .control-label,
.inv-edit label,
.inv-edit label.invalid,
.inv-edit .control-label.invalid,
.inv-edit .required,
.inv-edit label .star {
  color: #555 !important;
}
.inv-edit label .star,
.inv-edit .control-label .star {
  color: #8B3C8D !important;
}
.inv-edit input.invalid {
  border-color: #8B3C8D !important;
  box-shadow: 0 0 0 3px rgba(139, 60, 141, .12) !important;
}
html.dark .inv-edit .control-label,
html.dark .inv-edit label,
html.dark .inv-edit label.invalid {
  color: #b9aec4 !important;
}
.inv-edit .form-horizontal .controls {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.inv-edit input[type="text"],
.inv-edit input[type="tel"],
.inv-edit input[type="number"],
.inv-edit input:not([type="submit"]):not([type="button"]):not([type="hidden"]) {
  width: 100% !important;
  /* height, padding, corner, border and background come from mlath-ds.css like every other
     field; these values out-ranked it on the invoice search only [TASK-20260929-PUBLIC-UI-CHROME] */
  font-size: 16px;
  box-shadow: none;
}
.inv-edit input:focus {
  border-color: #8B3C8D;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139, 60, 141, .12);
}
.inv-edit .form-actions,
.inv-edit .btn-toolbar {
  background: transparent;
  border: 0;
  text-align: center;
  margin-top: 10px;
}

/* ==========================================================
 * لمسات الخط الراقي
 * ========================================================== */
body {
  font-weight: 400; /* كان 600 — ثقيل على القراءة */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
p {
  font-weight: 400;
}
strong, b, .qx-blurb-title, .control-label {
  font-weight: 600;
}
.qx-nc-number {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* ==========================================================
 * النسخة الإنجليزية المدمجة (html.en) — العربية هي الرسمية
 * نغير اتجاه النصوص فقط ونحافظ على التصميم كما هو
 * ========================================================== */
html.en p,
html.en h1, html.en h2, html.en h3, html.en h4,
html.en .qx-blurb-content,
html.en .qx-nc-title,
html.en .ml-pay-sub,
html.en .ml-since {
  direction: ltr;
}
html.en .ml-social-list li a,
html.en div.qx-section.footer .footer-menu ul li a {
  direction: ltr;
  text-align: left !important;
}
html.en #qx-text-92841 *,
html.en #qx-text-58849 * {
  text-align: left !important;
  direction: ltr;
}
html.en .qx-element-contact-form input,
html.en .qx-element-contact-form textarea {
  direction: ltr;
  text-align: left;
}
html.en .inv-edit .form-horizontal .control-label {
  text-align: left;
  direction: ltr;
}
html.en div.qx-section.footer p {
  direction: ltr;
  text-align: left;
}

/* H1 مخفي بصريًا (SEO) مع بقائه مقروءًا لمحركات البحث وقارئات الشاشة */
.sr-only-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
 * الخط الرسمي: IBM Plex Sans Arabic (يُحمَّل من head.php)
 * تدرج احترافي: متن 400، عناوين 600، أرقام وعناوين بارزة 700
 * ========================================================== */
body,
p, li, td, th, label, input, textarea, select, button,
.navbar-default .navbar-nav > li > a,
.t3-navbar {
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
}
h1, h2, h3, h4, h5, h6,
.qx-blurb-title,
.qx-nc-number, .qx-nc-title,
.btn, .qx-btn {
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
}
h1, h2 { font-weight: 700; }
h3, h4, h5, h6, .qx-blurb-title { font-weight: 600; }

/* ==========================================================
 * صفحة الفاتورة (بعد الدخول): بطاقة واحدة مركزية بدل
 * الصناديق المتداخلة والإزاحة الجانبية العشوائية
 * ========================================================== */
.item_fields {
  max-width: 860px;
  margin: 30px auto 60px;
  padding: 0;
}
.item_fields .row {
  margin: 0;
}
.item_fields .paper_feeling {
  float: none !important;
  width: 100% !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 20px;
  box-shadow: 0 12px 45px rgba(96, 39, 106, .10) !important;
  padding: 44px 40px !important;
}
.item_fields .inv_company_logo {
  max-height: 90px;
  margin-bottom: 14px;
}
.item_fields h2 {
  font-size: 22px;
  color: #303842;
  margin: 26px 0 14px;
}
.item_fields h2:after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: #8B3C8D;
  margin-top: 10px;
}
@media (max-width: 767px) {
  .item_fields .paper_feeling {
    padding: 28px 18px !important;
  }
}

/* ==========================================================
 * إزالة صورة الرجل وصورة اللابتوب نهائيًا (بطلب المالك)
 * وإعادة توزيع الأعمدة لتوازن جميل
 * ========================================================== */
#qx-section-3396 {
  background-image: none !important;
}
#qx-column-491221,
#qx-column-303908 {
  display: none !important;
}
#qx-column-411219 {
  width: 100% !important;
  text-align: center;
}
#qx-column-411219 .qx-element-text,
#qx-text-571409, #qx-text-941414,
#qx-text-571409 h1, #qx-text-571409 h2, #qx-text-571409 h3, #qx-text-571409 p,
#qx-text-941414 h1, #qx-text-941414 h2, #qx-text-941414 h3, #qx-text-941414 p {
  text-align: center !important;
}
/* العداد الثالث (عملاؤنا): توسيط عمودي مقابل العدادين */
#qx-column-123675 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
/* تخطيط العدّادات: تعريفه الوحيد في mlath-ds.css (§ صفّ العدّادات) — عرض 50% هنا كان
   يحبس العدّادين في عمود واحد [TASK-20260929-PUBLIC-UI-FOLLOWUP] */
#qx-number-counter-843678, #qx-number-counter-754166,
#qx-number-counter-564112 {
  text-align: center !important;
}
/* حذف عداد «جلسات التصوير» نهائيًا مع فاصله */
#qx-number-counter-854403,
#qx-divider-974316 {
  display: none !important;
}
#qx-section-851510 {
  padding-top: 100px !important;
}

/* ==========================================================
 * فاتورة العميل: جداول مودرن بدل الشكل الخام
 * ========================================================== */
.item_fields .table {
  border: 0;
  margin-bottom: 10px;
}
.item_fields .table th,
.item_fields .table td {
  border: 0 !important;
  padding: 13px 10px !important;
  vertical-align: middle !important;
}
.item_fields .table > tbody > tr,
.item_fields .table > tr {
  border-bottom: 1px solid #f1ebf3;
}
.item_fields .table th {
  color: #8a7d95;
  font-weight: 600;
  white-space: nowrap;
}
.item_fields .table td {
  color: #303842;
  font-weight: 600;
}
.item_fields .table h3 {
  font-size: 20px;
  color: #303842;
  margin: 18px 0 4px;
}
.item_fields .table h3:after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: #8B3C8D;
  margin-top: 8px;
}
/* جدول بنود الفاتورة الداخلي */
.item_fields .table-bordered {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee2f0 !important;
}
.item_fields .table-bordered th {
  background: #faf5fb;
  color: #6B2D6D;
}
.item_fields .table-bordered td,
.item_fields .table-bordered th {
  border: 1px solid #f3eaf5 !important;
  padding: 11px 12px !important;
}
/* زر الطباعة داخل العنوان */
.item_fields h3 .btn {
  padding: 9px 14px;
  margin-top: -6px;
}

/* ==========================================================
 * قسم الدفع داخل الفاتورة: بطاقات بوابات أنيقة داعمة للثيم
 * ========================================================== */
/* لا داعي لشارات «وسائل الدفع المتاحة» داخل الفاتورة نفسها */
.item_fields .ml-pay-methods {
  display: none !important;
}
/* ==========================================================
 * خيارات الدفع الثلاثة: بنفت | بطاقة مصرفية | Apple Pay
 * تصميم عصري متجاوب (شبكة تتكيف مع الجوال)
 * ========================================================== */
.item_fields td:has(.ml-gw),
.item_fields .RadioinputGroup.ml-gw {
  vertical-align: top;
}
.item_fields .text-center:has(.ml-gw) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px;
  margin-inline: auto;
  padding-top: 12px;
}
.item_fields .RadioinputGroup.ml-gw {
  display: block;
  margin: 0 !important;
  width: auto !important;
  position: relative;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
}
.item_fields .RadioinputGroup.ml-gw label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100% !important;
  min-height: 120px !important;
  padding: 18px 10px !important;
  background: #fff !important;
  border: 1.5px solid #ece2ef;
  border-radius: 18px;
  cursor: pointer;
  transition: all .22s ease;
  box-shadow: none;
  margin: 0;
}
.item_fields .RadioinputGroup.ml-gw label:hover {
  border-color: #d7bdd9;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(96, 39, 106, .10);
}
/* الشعار الرسمي — نسخة نهارية/ليلية تتبدّل مع الثيم */
.item_fields .ml-gw-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}
.item_fields .ml-gw-logo .ml-lg {
  max-height: 34px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
}
.item_fields .ml-gw-logo .ml-lg-dark { display: none; }
html.dark .item_fields .ml-gw-logo .ml-lg-light { display: none; }
html.dark .item_fields .ml-gw-logo .ml-lg-dark { display: inline-block; }
.item_fields .ml-gw[data-gw="benefit"] .ml-lg { max-height: 48px; max-width: 60px; }
.item_fields .ml-gw[data-gw="benefit"] .ml-gw-logo { height: 48px; }
.item_fields .ml-gw-name {
  font-size: 13px;
  font-weight: 700;
  color: #303842;
}
/* علامة الاختيار — دائرة صغيرة في زاوية البطاقة (لا تلامس الشعار) */
.item_fields .ml-gw-check {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  transform: scale(0);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8B3C8D;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 7px rgba(139, 60, 141, .35);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  z-index: 2;
}
.item_fields .ml-gw-check svg {
  width: 13px; height: 13px;
  fill: none; stroke: #fff; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
/* الحالة المختارة — إطار + خلفية خفيفة + إظهار الصح */
.item_fields .RadioinputGroup.ml-gw input[type="radio"]:checked + label {
  border-color: #8B3C8D;
  border-width: 2px;
  background: #faf4fb !important;
  box-shadow: 0 8px 24px rgba(139, 60, 141, .16);
}
.item_fields .RadioinputGroup.ml-gw input[type="radio"]:checked + label .ml-gw-check {
  transform: scale(1);
}

/* ===== الوضع الليلي ===== */
html.dark .item_fields .RadioinputGroup.ml-gw label {
  background: #241b2e !important;
  border-color: #3a2d47;
}
html.dark .item_fields .RadioinputGroup.ml-gw label:hover {
  border-color: #5d4a6b;
}
html.dark .item_fields .ml-gw-name { color: #ece5f1; }
html.dark .item_fields .RadioinputGroup.ml-gw input[type="radio"]:checked + label {
  border-color: #c98fcb;
  background: #2c2138 !important;
}
html.dark .item_fields .ml-gw-check { background: #c98fcb; }
/* على الجوال: عمود واحد مريح */
@media (max-width: 560px) {
  .item_fields .text-center:has(.ml-gw) {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .item_fields .RadioinputGroup.ml-gw label {
    min-height: 108px !important;
    padding: 16px 8px !important;
  }
  .item_fields .ml-gw-ic { width: 46px; height: 46px; }
}

/* (بطاقات قديمة — إبقاء تنسيقها للتوافق مع أي بوابة أخرى) */
.item_fields .RadioinputGroup:not(.ml-gw) {
  display: inline-block;
  margin: 6px;
  vertical-align: middle;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  width: auto !important;
  position: relative;
}
/* إخفاء دائرة الراديو الخام — الاختيار يظهر بحد البطاقة وعلامة الصح */
.item_fields .RadioinputGroup input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
/* دائرة الراديو القديمة المرسومة على الملصق (::before و::after) */
.item_fields .RadioinputGroup label::before,
.item_fields .RadioinputGroup label::after {
  display: none !important;
  content: none !important;
}
.item_fields .RadioinputGroup label {
  position: relative;
}
/* علامة الاختيار القديمة — للبطاقات غير ml-gw فقط (ml-gw لها ml-gw-check خاص) */
.item_fields .RadioinputGroup:not(.ml-gw) input[type="radio"]:checked + label::after,
.item_fields .RadioinputGroup:not(.ml-gw) input[type="radio"]:checked ~ label::after {
  content: "\2713" !important;
  display: block !important;
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px !important;
  height: 24px !important;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: #8B3C8D !important;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: 0 !important;
  box-shadow: 0 3px 10px rgba(139, 60, 141, .35);
}
.item_fields .RadioinputGroup label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 88px;
  background: #fff !important;
  border: 2px solid #eee2f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: none;
  margin: 0;
  padding: 12px;
}
.item_fields .RadioinputGroup label:hover {
  border-color: #c9a3cb;
  box-shadow: 0 6px 18px rgba(96, 39, 106, .10);
}
.item_fields .RadioinputGroup input[type="radio"]:checked + label,
.item_fields .RadioinputGroup input[type="radio"]:checked ~ label {
  border-color: #8B3C8D;
  box-shadow: 0 6px 18px rgba(139, 60, 141, .18);
}
.item_fields .RadioinputGroup img {
  max-width: 120px;
  max-height: 56px;
  object-fit: contain;
}
html.dark .item_fields .RadioinputGroup label {
  background: #2c2138 !important;
  border-color: #3a2d47;
}
html.dark .item_fields .RadioinputGroup input[type="radio"]:checked + label,
html.dark .item_fields .RadioinputGroup input[type="radio"]:checked ~ label {
  border-color: #c98fcb;
}

/* تنويه الكوبون — ملاحظة قانونية/تسويقية أسفل حقل الكوبون */
.item_fields .ml-coupon-note {
  max-width: 460px;
  margin: 14px auto 0;
  padding: 11px 16px;
  background: #fbf4e9;
  border: 1px solid #f0e3cd;
  border-radius: 10px;
  color: #8a6d3b;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.75;
  text-align: start;
}
.item_fields .ml-coupon-note .fa {
  color: #d9a441;
  margin-inline-end: 5px;
}
.item_fields .ml-coupon-note strong { color: #7a5a28; font-weight: 700; }
html.dark .item_fields .ml-coupon-note {
  background: #2b2416;
  border-color: #4a3d1f;
  color: #d9c48f;
}
html.dark .item_fields .ml-coupon-note strong { color: #ecd9a0; }
html.dark .item_fields .ml-coupon-note .fa { color: #d9a441; }

/* الكوبون: حقل وأزرار متناسقة في صف واحد أنيق */
.item_fields #v_coupon {
  height: 46px;
  border-radius: 10px;
  border: 1px solid #e4dbe6;
  background: #faf8fb;
  padding: 0 16px;
  width: 220px;
  font-size: 15px;
  vertical-align: middle;
  box-shadow: none;
}
.item_fields #v_coupon:focus {
  border-color: #8B3C8D;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139, 60, 141, .12);
}
html.dark .item_fields #v_coupon {
  background: #2c2138;
  border-color: #3a2d47;
  color: #ece5f1;
}
/* فصل زري «نفذ» و«×» عن بعضهما */
.item_fields td .btn,
.item_fields td button {
  margin: 0 5px !important;
  vertical-align: middle;
}

/* ==========================================================
 * شارات وسائل الدفع (تُحقن عبر script.js)
 * ========================================================== */
.ml-pay-methods {
  text-align: center;
  margin: 26px 0 4px;
  padding-top: 20px;
  border-top: 1px solid #f1ebf3;
}
.ml-pay-methods .ml-pay-title {
  display: block;
  font-size: 13px;
  color: #8a7d95;
  margin-bottom: 12px;
  font-weight: 600;
}
.ml-pay-badge {
  display: inline-block;
  margin: 0 5px 8px;
  padding: 8px 18px;
  border: 1px solid #e6dbe9;
  border-radius: 50px;
  background: #fff;
  color: #303842;
  font-size: 13px;
  font-weight: 600;
  direction: ltr;
}
.ml-pay-badge .fa {
  margin-right: 6px;
  color: #8B3C8D;
}

/* ==========================================================
 * الفوتر: إعادة تهيئة وتنسيق
 * ========================================================== */
div.qx-section.footer {
  border-top: 3px solid #8B3C8D;
  padding-top: 70px !important;
  padding-bottom: 40px !important;
}
div.qx-section.footer .qx-column {
  margin-bottom: 30px;
}
div.qx-section.footer iframe {
  border-radius: 14px !important;
  box-shadow: 0 8px 26px rgba(96, 39, 106, .10);
  transition: filter .4s ease;
}
/* الخارطة تتحول لليل مع الوضع الليلي */
html.dark div.qx-section.footer iframe {
  filter: invert(.9) hue-rotate(180deg) contrast(.88) saturate(.85);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
}
div.qx-section.footer .footer-menu ul li a {
  padding: 7px 0;
  font-size: 14px;
}
div.qx-section.footer [id^="qx-social-icon"] a {
  font-size: 20px;
  margin: 0 0 0 14px;
}
div.qx-section.footer p {
  line-height: 2;
}

/* ==========================================================
 * الوضع الليلي 🌙 (تبديل عبر زر عائم — script.js)
 * ========================================================== */
#ml-theme-toggle {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 1050;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #8B3C8D;
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: all .25s ease;
}
#ml-theme-toggle:hover {
  background: #6B2D6D;
  transform: translateY(-2px);
}

html.dark body,
html.dark .t3-wrapper {
  background: #171220 !important;
  color: #b9aec4;
}
html.dark .t3-header,
html.dark #t3-header {
  background: #1e1728 !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
html.dark .navbar-default .navbar-nav > li > a {
  color: #cfc3d8;
}
html.dark .qx-section {
  background-color: #171220 !important;
}
html.dark #qx-section-3396:before,
html.dark #qx-section-991126:before {
  background: #1e1728 !important;
}
html.dark #qx-section-991126 {
  background-color: #1e1728 !important;
}
html.dark div.qx-section.footer {
  background-color: #120e18 !important;
}
html.dark h1, html.dark h2, html.dark h3,
html.dark h4, html.dark h5, html.dark h6,
html.dark .qx-blurb-title {
  color: #ece5f1 !important;
}
html.dark p, html.dark li,
html.dark .qx-media-body p,
html.dark .qx-nc-title {
  color: #b9aec4 !important;
}
html.dark .qx-nc-number {
  color: #c98fcb !important;
}
html.dark .qx-element-contact-form,
html.dark .inv-edit.front-end-edit,
html.dark .item_fields .paper_feeling {
  background: #241b2e !important;
  box-shadow: 0 12px 45px rgba(0, 0, 0, .4) !important;
}
html.dark .qx-element-contact-form input,
html.dark .qx-element-contact-form textarea,
html.dark .inv-edit input:not([type="submit"]):not([type="button"]):not([type="hidden"]) {
  background: #2c2138 !important;
  border-color: #3a2d47 !important;
  color: #ece5f1 !important;
}
html.dark .item_fields .table td { color: #ece5f1; }
html.dark .item_fields .table th { color: #a08fb0; }
html.dark .item_fields .table > tbody > tr,
html.dark .item_fields .table > tr {
  border-bottom-color: #2e2340;
}
html.dark .item_fields .table-bordered,
html.dark .item_fields .table-bordered td,
html.dark .item_fields .table-bordered th {
  border-color: #3a2d47 !important;
}
html.dark .item_fields .table-bordered th {
  background: #2c2138;
  color: #c98fcb;
}
html.dark .ml-pay-badge {
  background: #2c2138;
  border-color: #3a2d47;
  color: #ece5f1;
}
html.dark .ml-pay-methods {
  border-top-color: #2e2340;
}
html.dark .blurb-border .qx-media-body {
  border-left-color: #3a2d47;
}
/* شعار الواجهة يحافظ على ألوانه الأصلية في الوضعين (بطلب المالك) */

/* ==========================================================
 * الخدمات: ثلاث بطاقات في كل سطر (بدل عمودين متلاصقين)
 * ========================================================== */
#qx-row-23103 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
  height: auto !important;
}
#qx-row-23103 > .qx-column:empty,
#qx-column-54104 {
  display: none !important;
}
/* clearfix البوتستراب (::before/::after) يصبح عنصر شبكة ويحجز خلية — نلغيه */
#qx-row-23103::before,
#qx-row-23103::after {
  content: none !important;
  display: none !important;
}
#qx-column-74105,
#qx-column-86108 {
  display: contents !important;
}
#qx-row-23103 .qx-element-blurb {
  margin-bottom: 20px !important;
  padding: 28px 22px;
  border-radius: 16px;
  background: transparent;
  transition: all .3s ease;
}
#qx-row-23103 .qx-element-blurb:hover {
  background: rgba(139, 60, 141, .04);
  transform: translateY(-4px);
}
/* توحيد بنية البطاقة: أيقونة فوق + عنوان ونص متوسطان
   (كانت أيقونات عمود يمينًا وعمود يسارًا = شكل عشوائي) */
#qx-row-23103 .qx-media {
  display: flex;
  flex-direction: column;
  text-align: center;
}
/* الأيقونة تأتي أولًا فوق الكلام مهما كان ترتيبها في الكود */
#qx-row-23103 .qx-media-right,
#qx-row-23103 .qx-media-left,
#qx-row-23103 .qx-media > .qx-pull-right,
#qx-row-23103 .qx-media > .qx-pull-left {
  order: -1;
}
#qx-row-23103 .qx-media-right,
#qx-row-23103 .qx-media-left,
#qx-row-23103 .qx-media > .qx-pull-right,
#qx-row-23103 .qx-media > .qx-pull-left {
  float: none !important;
  display: block;
  margin: 0 auto 16px !important;
  padding: 0 !important;
}
#qx-row-23103 .qx-media img.qx-image {
  margin: 0 auto;
  width: 74px;
  height: 74px;
  object-fit: contain;
}
#qx-row-23103 .qx-media-body {
  border: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  display: block;
  width: auto;
}
#qx-row-23103 .qx-blurb-title,
#qx-row-23103 .qx-blurb-content,
#qx-row-23103 .qx-blurb-content p {
  text-align: center !important;
}
#qx-row-23103 .qx-blurb-title {
  margin-bottom: 12px !important;
  font-size: 16px !important;
}
html.dark #qx-row-23103 .qx-element-blurb:hover {
  background: rgba(201, 143, 203, .06);
}
@media (max-width: 991px) {
  #qx-row-23103 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  #qx-row-23103 { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================
 * قسم «زبائننا الأعزاء»: إزالة الخطين العلوي والسفلي
 * ========================================================== */
#qx-section-848,
.qx-section.customers-border {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* ==========================================================
 * التنبيهات (نجاح/تحذير/خطأ) بألوان متزنة في الوضعين
 * ========================================================== */
.alert {
  border-radius: 10px;
  border: 0;
}
.alert-success { background: #eaf6ec; color: #276639; }
.alert-warning { background: #fdf3e3; color: #8a5a1e; }
.alert-danger  { background: #fdeaea; color: #93373c; }
.alert-info    { background: #eef2fb; color: #33518e; }
html.dark .alert-success { background: #16301f; color: #a5e0b0; }
html.dark .alert-warning { background: #33270f; color: #ecc78a; }
html.dark .alert-danger  { background: #331416; color: #eea3a7; }
html.dark .alert-info    { background: #162033; color: #a8bfec; }

/* ==========================================================
 * أبعاد الفوتر: أربعة أعمدة متوازنة (الشعار/الخارطة/الروابط/تابعونا)
 * ========================================================== */
@media (min-width: 992px) {
  #qx-row-23832 {
    display: flex;
    align-items: flex-start;
    gap: 0 3%;
  }
  #qx-row-23832 > .qx-column {
    float: none !important;
    height: auto !important;
  }
  #qx-column-74833 { flex: 0 0 24%; width: auto !important; }
  #qx-row-23832 > .qx-column:has(iframe) { flex: 0 0 29%; width: auto !important; }
  #qx-column-36840 { flex: 0 0 15%; width: auto !important; }
  #qx-column-75848 { flex: 0 0 26%; width: auto !important; }
}
.ml-social-list li a {
  font-size: 12px;
}
div.qx-section.footer .qx-column h3,
div.qx-section.footer .qx-column h4,
div.qx-section.footer [id^="qx-text"] strong {
  font-size: 15px;
}
html.dark .footer-menu ul li a {
  color: #c98fcb;
}
html.dark .t3-navbar-collapse,
html.dark .navbar-collapse {
  background: #1e1728;
}

/* ==========================================================
 * أيقونات العدادات: SVG موحدة ناعمة + العدادات في سطر واحد
 * ========================================================== */
.ml-counter-icon {
  margin-bottom: 10px;
}
.ml-counter-icon svg {
  width: 46px;
  height: 46px;
  color: #c9bfd4;
  opacity: .8;
}
html.dark .ml-counter-icon svg {
  color: #5d4a6b;
  opacity: 1;
}

/* «سطر واحد للعدادات» (flex بـ!important على العمود) أُزيل: كان يغلب شبكة mlath-ds فيتكدّس
   العدّادان في خُمس العرض خارج المركز — «يظهر عشوائيًا» [TASK-20260929-PUBLIC-UI-FOLLOWUP] */
#qx-divider-654341, #qx-divider-974316 {
  display: none !important;
}
/* أرقام أكبر وأفخم — تليق بمسيرة منذ 2017 */
.qx-nc-number {
  font-size: 58px !important;
  letter-spacing: -1px;
}
.qx-nc-title {
  font-size: 16px !important;
  margin-top: 4px;
}
.ml-since {
  color: #8B3C8D;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

/* ==========================================================
 * إخفاء نهائي (من مستوى CSS) للنصوص القديمة في الفوتر
 * ========================================================== */
#qx-text-46837,
#qx-text-32836 {
  display: none !important;
}

/* ==========================================================
 * قائمة تابعونا (7 حسابات بأيقوناتها الرسمية)
 * ========================================================== */
.ml-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ml-social-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: #6d5f78;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
  transition: all .25s ease;
}
/* ساكنة تمامًا: لا حركة ولا أي تأثير عند المرور */
.ml-social-list li a,
.ml-social-list li a:hover,
.ml-social-list li a:focus {
  transform: none !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  color: #6d5f78 !important;
  background: transparent !important;
  transition: none !important;
  text-decoration: none !important;
}
/* الأيقونة مجردة بلون ناعم موحد — بلا دائرة ولا تأثيرات */
.ml-social-list .fa,
.ml-social-list li a:hover .fa {
  flex-shrink: 0;
  width: 20px;
  height: auto;
  line-height: inherit;
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #b3a5be !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  transition: none !important;
}
html.dark .ml-social-list li a,
html.dark .ml-social-list li a:hover {
  color: #b9aec4 !important;
}
html.dark .ml-social-list .fa,
html.dark .ml-social-list li a:hover .fa {
  color: #5d4a6b !important;
}

/* موازنة عمودي «روابط سريعة» و«تابعونا» مع بقية الفوتر */
#qx-text-92841,
#qx-text-58849,
#qx-text-92841 *,
#qx-text-58849 * {
  margin-bottom: 12px;
  text-align: right !important;
}
div.qx-section.footer .footer-menu ul li a {
  font-size: 12px;
  padding: 4px 0 !important;
}
div.qx-section.footer .footer-menu ul li a:hover {
  transform: none !important;
  background: transparent !important;
}

/* روابط سريعة: تفاعل ناعم بلا خلفية */
div.qx-section.footer .footer-menu ul li a {
  padding: 6px 0 !important;
  background: transparent !important;
  transition: all .25s ease;
}
div.qx-section.footer .footer-menu ul li a:hover,
div.qx-section.footer .footer-menu ul li a:focus {
  background: transparent !important;
  color: #6B2D6D !important;
  transform: none !important;
}

/* ==========================================================
 * أدوات الهيدر: زر الليل/النهار + زر اللغة (بدل الزر العائم
 * الذي كان يتعارض مع زر العودة لأعلى)
 * ========================================================== */
.ml-header-tools {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}
#t3-header {
  position: relative;
}
#ml-theme-toggle {
  position: static;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #f3ebf5;
  color: #8B3C8D;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: all .25s ease;
}
#ml-theme-toggle:hover {
  background: #8B3C8D;
  color: #fff;
  transform: none;
}
#ml-lang-toggle {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  background: #f3ebf5;
  color: #8B3C8D;
  font-size: 12px;
  font-weight: 700;
  transition: all .25s ease;
}
#ml-lang-toggle:hover {
  background: #8B3C8D;
  color: #fff !important;
}
html.dark #ml-theme-toggle,
html.dark #ml-lang-toggle {
  background: #2c2138;
  color: #c98fcb;
}
/* على المقاسات التي يظهر فيها زر القائمة (<1200): الأدوات بعده وليست فوقه */
@media (max-width: 1199px) {
  .ml-header-tools {
    left: 74px;
    gap: 6px;
    /* تثبيت من الأعلى: لا تنزل عند تمدد الهيدر بفتح القائمة */
    top: 15px;
    transform: none;
  }
  #ml-theme-toggle, #ml-lang-toggle {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 11px;
  }
  .navbar-toggle {
    position: relative;
    z-index: 30;
  }
}
@media (max-width: 380px) {
  .ml-header-tools { left: 58px; gap: 4px; }
  #ml-theme-toggle, #ml-lang-toggle { width: 29px; height: 29px; line-height: 29px; }
}

/* ==========================================================
 * الوضع النهاري: ألوان متزنة بلمسة بنفسجية دافئة
 * وإيقاع أخف للمسافات
 * ========================================================== */
body {
  background: #faf8fb;
}
#qx-section-442 {
  background: linear-gradient(180deg, #fdfcfe 0%, #f7f1f9 100%) !important;
  padding-top: 110px !important;
  padding-bottom: 110px !important;
}
/* قسم «زبائننا الأعزاء» حُذف بطلب المالك — حل محله قسم الفاتورة والدفع */
#qx-section-848 {
  display: none !important;
}
#qx-section-3396 {
  background: #fff !important;
  padding-bottom: 150px !important;
}
#qx-section-3396:before,
#qx-section-991126:before {
  background: #f7f1f9 !important;
}
#qx-section-991126 {
  background-color: #f7f1f9 !important;
  padding-top: 70px !important;
  padding-bottom: 60px !important;
}
#qx-section-851510 {
  background: #fff !important;
  padding-top: 80px !important;
  padding-bottom: 90px !important;
}
div.qx-section.footer {
  background: linear-gradient(180deg, #f7f1f9 0%, #efe5f2 100%) !important;
}
/* الليلي يتجاوز خلفيات النهاري */
html.dark #qx-section-442,
html.dark #qx-section-848,
html.dark #qx-section-3396,
html.dark #qx-section-851510 {
  background: #171220 !important;
}
html.dark #qx-section-991126 {
  background: #1e1728 !important;
}
html.dark div.qx-section.footer {
  background: #120e18 !important;
}

#qx-section-3396, #qx-section-991126, #qx-section-848 {
  position: relative;
}

/* ==========================================================
 * قسم «فاتورتك والدفع الإلكتروني»
 * ========================================================== */
#ml-pay-section {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, #faf7fb 0%, #f3ebf5 100%);
  padding: 90px 20px;
  overflow: hidden;
}
#ml-pay-section h2 {
  color: #303842;
  margin-bottom: 6px;
}
#ml-pay-section h2:after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: #8B3C8D;
  margin: 14px auto 0;
}
#ml-pay-section .ml-pay-sub {
  color: #777;
  margin: 18px auto 26px;
  max-width: 520px;
}
#ml-pay-section .ml-pay-cta {
  font-size: 16px;
  padding: 14px 40px;
}
#ml-pay-section .ml-pay-methods {
  border-top: 0;
  margin-top: 30px;
}
html.dark #ml-pay-section {
  background: linear-gradient(180deg, #1e1728 0%, #171220 100%);
}
html.dark #ml-pay-section h2 { color: #ece5f1; }
html.dark #ml-pay-section .ml-pay-sub { color: #b9aec4; }

/* ==========================================================
 * أزرار الهاتف في قسم اتصل بنا
 * ========================================================== */
.ml-contact-phones {
  text-align: center;
  margin: 8px 0 30px;
}
.ml-contact-phones .btn {
  margin: 6px 8px;
}
.ml-contact-mail {
  margin-top: 14px;
}
.ml-contact-mail a {
  color: #8B3C8D;
  font-size: 15px;
  font-weight: 600;
  direction: ltr;
  display: inline-block;
}
.ml-contact-mail a .fa {
  margin-right: 6px;
}
.ml-contact-mail a:hover {
  color: #6B2D6D !important;
}
html.dark .ml-contact-mail a { color: #c98fcb; }

/* ==========================================================
 * نموذج الاتصال الاحترافي: شبكة عمودين
 * (الاسم/الهاتف ثم البريد/الموضوع ثم الرسالة والزر بعرض كامل)
 * ========================================================== */
.qx-element-contact-form fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.qx-element-contact-form fieldset > .control-group:nth-of-type(5),
.qx-element-contact-form fieldset > .control-group:last-of-type {
  grid-column: 1 / -1;
}
.qx-element-contact-form .form-horizontal .control-group::before,
.qx-element-contact-form .form-horizontal .control-group::after {
  content: none !important;
}
.qx-element-contact-form button[type="submit"] {
  min-width: 200px;
}
/* خانة الرسالة بمقاس ثابت — لا تمدد يدوي */
.qx-element-contact-form textarea {
  resize: none !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
}
/* صندوق النموذج ببصمة بطاقات الثيم: زوايا مستديرة وظل بنفسجي ناعم */
.qx-element-contact-form {
  border-radius: 20px !important;
  box-shadow: 0 12px 45px rgba(96, 39, 106, .10) !important;
  background: #fff !important;
  padding: 44px 40px !important;
}
html.dark .qx-element-contact-form {
  background: #241b2e !important;
  box-shadow: 0 12px 45px rgba(0, 0, 0, .4) !important;
}
@media (max-width: 600px) {
  .qx-element-contact-form {
    padding: 28px 20px !important;
  }
}
@media (max-width: 600px) {
  .qx-element-contact-form fieldset {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
 * سطر الحقوق الموحد أسفل الموقع
 * ========================================================== */
#ml-copyright {
  text-align: center;
  padding: 20px 15px 0;
  margin-top: 24px;
  border: 0;
  color: #8a7d95;
  font-size: 13px;
}
html.dark #ml-copyright {
  color: #8a7d95;
}
/* حجب حقل مصيدة البوتات عن البشر */
.qx-element-contact-form .control-group:has(#jform_website) {
  display: none !important;
}

/* ==========================================================
 * صفحة الدخول للفاتورة: إزالة الإطار الخارجي المزدوج
 * وجعلها منتشرة مثل صفحات الأحكام والخصوصية
 * ========================================================== */
#t3-mainbody {
  background: transparent !important;
  box-shadow: none !important;
}
/* إزالة الصندوق الأبيض الخارجي في صفحات الفاتورة فقط */
.t3-content:has(.inv-edit),
.t3-content:has(.item_fields) {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
#t3-mainbody:has(.inv-edit),
#t3-mainbody:has(.item_fields) {
  border: 0 !important;
}
.t3-wrapper:has(.inv-edit),
.t3-wrapper:has(.item_fields) {
  background: #faf8fb !important;
}
html.dark .t3-wrapper:has(.inv-edit),
html.dark .t3-wrapper:has(.item_fields) {
  background: #171220 !important;
}
.inv-edit.front-end-edit {
  max-width: 720px;
}
html.dark #t3-mainbody {
  background: transparent !important;
}

@media (max-width: 767px) {

  /* ===== قسم الخدمات: إلغاء الهامش السالب الذي يسبب تراكب النصوص ===== */
  #qx-column-74105,
  #qx-column-86108 {
    margin-bottom: 0 !important;
  }
  #qx-blurb-30107,
  #qx-blurb-30110 {
    margin-bottom: 60px !important;
  }

  /* إخفاء خلفية اللابتوب الخارجة عن الشاشة على الجوال */
  #qx-section-3396 {
    background-image: none !important;
    padding-bottom: 80px !important;
  }

  /* صورة قسم الإنجازات: إلغاء التداخل مع القسم التالي */
  #qx-image-491465 {
    margin-bottom: 0 !important;
  }

  #qx-section-442 {
    padding-top: 90px !important;
    padding-bottom: 90px !important;
  }

  /* ===== منع الانزلاق الأفقي الناتج عن هوامش الصفوف السالبة ===== */
  .qx-container {
    padding-left: 15px;
    padding-right: 15px;
  }
  body {
    overflow-x: hidden;
  }

  /* ===== الفوتر: محاذاة يمين تناسب الاتجاه العربي عند التكديس ===== */
  #qx-section-93831 .qx-column {
    text-align: right;
  }
  #qx-section-93831 .footer-menu ul li a {
    text-align: right;
  }
  #qx-social-icon-668 {
    text-align: right;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ===== ملاذ: Homepage theme tokens ===== */
:root{
  --ht-stats-bg:#fafafa;
  --ht-num-1:rgb(138,60,141);--ht-num-2:rgb(102,103,133);--ht-nc-title:#4a3460;
  --cf-sec-bg:transparent;--cf-card-bg:#fff;
  --cf-card-brd:#E6E3EA;--cf-card-shadow:0 1px 2px rgba(38,33,48,.05);
  --cf-field-bg:#fff;--cf-field-brd:#D0CAD6;--cf-field-focus:#8B3E90;
  --cf-field-text:#262130;--cf-field-ph:#8E8897; /* TASK-20260929-PUBLIC-UI: حقول بيضاء بحدّ محايد */
  --cf-btn-bg:#8b3c8d;--cf-btn-text:#fff;--cf-btn-brd:transparent;
}
html.dark{
  --ht-stats-bg:#1e1728;
  --ht-num-1:#c98fcb;--ht-num-2:#b9aec4;--ht-nc-title:#ece5f1;
  --cf-sec-bg:#171220;--cf-card-bg:#241b2e;
  --cf-card-brd:#3a2d47;--cf-card-shadow:0 8px 40px rgba(0,0,0,.28);
  --cf-field-bg:#2c2138;--cf-field-brd:#3a2d47;--cf-field-focus:#c98fcb;
  --cf-field-text:#ece5f1;--cf-field-ph:#8a7d95;
  --cf-btn-bg:#2c2138;--cf-btn-text:#c98fcb;--cf-btn-brd:#c98fcb;
}
/* Stats dark */
html.dark #qx-section-991126{background:#1e1728 !important}
html.dark #qx-section-991126:before{background:#1e1728 !important}
html.dark #qx-number-counter-843678 .qx-nc-number{color:#c98fcb !important}
html.dark #qx-number-counter-754166 .qx-nc-number{color:#b9aec4 !important}
html.dark #qx-number-counter-564112 .qx-nc-number{color:#b9aec4 !important}
html.dark #qx-number-counter-854403 .qx-nc-number{color:#c98fcb !important}
html.dark .qx-nc-title{color:#ece5f1 !important}
/* Contact section dark */
html.dark #qx-section-851510{background:#171220 !important}
html.dark #qx-contact-form-272072{background:#241b2e !important;border-color:#3a2d47 !important}
html.dark #qx-contact-form-272072 input[type=text],
html.dark #qx-contact-form-272072 input[type=email],
html.dark #qx-contact-form-272072 textarea{
  background:#2c2138 !important;border-color:#3a2d47 !important;color:#ece5f1 !important}
html.dark #qx-contact-form-272072 input::placeholder,
html.dark #qx-contact-form-272072 textarea::placeholder{color:#8a7d95 !important}
/* Contact buttons dark */
html.dark .ml-contact-phones a{
  background:#2c2138 !important;color:#c98fcb !important;border-color:#c98fcb !important}
/* Footer dark — direct rules (no CSS var dependency) */
html.dark #t3-footer{background:#171220 !important}
html.dark .mlath-footer{color:#ece5f1}
html.dark .mlath-footer-tagline{color:#b9aec4}
html.dark .mlath-footer-heading{color:#ece5f1;border-bottom-color:#8b3c8d}
html.dark .mlath-footer-links li a{color:#b9aec4 !important}
html.dark .mlath-footer-address{background:#241b2e;border-color:#3a2d47}
html.dark .addr-ar{color:#ece5f1}
html.dark .mlath-footer-bar{background:#120e18;border-top-color:#2e2340}
html.dark .mlath-footer-copy{color:#8a7d95}

/* ===== FOOTER (light) — removed [TASK-20260929-PUBLIC-UI] =====
   A second full footer design (purple borders, lavender address box, purple links, all
   !important) that only the Joomla pages load; the static pages never did, so the same
   footer looked different across the site. The footer is defined once, in
   local/css/mlath-ds.css §13. Removed block kept in git history (see the task report). */
/* DARK MODE */
html.dark #t3-footer{background:#1e1728 !important;box-shadow:0 -8px 32px rgba(0,0,0,.35) !important}
html.dark .mlath-footer{color:#ece5f1}
html.dark .mlath-footer-tagline{color:#b9aec4}
html.dark .mlath-footer-heading{color:#ece5f1 !important;border-bottom-color:#8b3c8d !important}
html.dark .mlath-footer-links li a{color:#b9aec4 !important}
html.dark .mlath-footer-links li a:hover{color:#c98fcb !important}
html.dark .mlath-soc-btn{background:#2c2138;border-color:#3a2d47;color:#c98fcb !important}
html.dark .mlath-soc-btn:hover{background:#8b3c8d;color:#fff !important}
html.dark .mlath-footer-contact p{color:#b9aec4}
html.dark .mlath-footer-contact a{color:#c98fcb !important}
html.dark .mlath-footer-contact .fa{color:#c98fcb}
html.dark .mlath-footer-address{background:#241b2e !important;border-color:#3a2d47 !important}
html.dark .addr-ar{color:#ece5f1}
html.dark .addr-en{color:#8a7d95}
html.dark .mlath-map-wrap{border-color:#3a2d47}
html.dark .mlath-map-wrap iframe{filter:invert(.88) hue-rotate(180deg) saturate(.85)}
html.dark .mlath-footer-bar{background:#120e18 !important;border-top-color:#2e2340 !important}
html.dark .mlath-footer-copy{color:#8a7d95}
html.dark .mlath-footer-logo{filter:brightness(0) invert(1)}
html.dark #t3-footer .t3-module{background:transparent !important}
/* ===== Footer copy-row (replaces footer-bar) ===== */
.mlath-footer-copy .addr-ar{display:inline}.mlath-footer-copy .addr-en{display:none}
html.en .mlath-footer-copy .addr-ar{display:none}
html.en .mlath-footer-copy .addr-en{display:inline}

html.dark .mlath-footer-copy{color:#8a7d95}
/* ===== Contact form — light + dark (direct values, no variables) ===== */
#qx-contact-form-272072{background:#fff !important;border:1px solid #E6E3EA !important;border-radius:16px !important;box-shadow:0 1px 2px rgba(38,33,48,.05) !important;padding:28px 30px 24px !important}
#qx-contact-form-272072 input[type=text],
#qx-contact-form-272072 input[type=email],
#qx-contact-form-272072 textarea{background:#fff !important;border:1px solid #D0CAD6 !important;border-radius:10px !important;color:#262130 !important;font-family:Cairo,sans-serif !important;padding:11px 15px !important;width:100% !important;box-sizing:border-box !important;transition:border-color .2s,box-shadow .2s !important;outline:none !important}
#qx-contact-form-272072 input[type=text]:focus,
#qx-contact-form-272072 input[type=email]:focus,
#qx-contact-form-272072 textarea:focus{border-color:#8B3E90 !important;box-shadow:0 0 0 3px rgba(139,62,144,.22) !important}
#qx-contact-form-272072 input::placeholder,
#qx-contact-form-272072 textarea::placeholder{color:#8E8897 !important}
html.dark #qx-contact-form-272072{border-radius:18px !important}
html.dark #qx-contact-form-272072 input[type=text],
html.dark #qx-contact-form-272072 input[type=email],
html.dark #qx-contact-form-272072 textarea{border-radius:10px !important;padding:11px 15px !important;outline:none !important;transition:border-color .2s,box-shadow .2s !important}
html.dark #qx-contact-form-272072 input[type=text]:focus,
html.dark #qx-contact-form-272072 input[type=email]:focus,
html.dark #qx-contact-form-272072 textarea:focus{border-color:#c98fcb !important;box-shadow:0 0 0 3px rgba(201,143,203,.15) !important}
html.dark #qx-contact-form-272072 input::placeholder,
html.dark #qx-contact-form-272072 textarea::placeholder{color:#8a7d95 !important}
html.dark .mlath-footer-copy-row{border-top-color:#2e2340}
/* ===== Quickpay invsearch form — fields on one row ===== */







/* Quickpay form - stacked layout, fix EN label wrapping */
#form-inv .control-label{float:none;width:auto;text-align:right;margin-bottom:4px;white-space:nowrap}
html.en #form-inv .control-label{text-align:left;white-space:nowrap}
#form-inv .controls{width:100%;clear:both}
/* Footer tagline bilingual */
.mlath-footer-tagline .ftag-ar{display:inline}
.mlath-footer-tagline .ftag-en{display:none}
html.en .mlath-footer-tagline .ftag-ar{display:none}
html.en .mlath-footer-tagline .ftag-en{display:inline}
/* Fix horizontal scroll theme break — html must have same bg as body */
html{background:#fdf9ff;overflow-x:hidden}
html.dark{background:#171220}
body{overflow-x:hidden}

/* ==========================================================
 * توحيد إيقاع الأقسام الرأسي (تحسين متدرّج آمن — 2026-07-12)
 * حشوة متجاوبة بـclamp بدل القيم الثابتة المتفاوتة (110/90/100-150/70/80)
 * فيصبح تدفّق الصفحة أهدأ وأكثر اتساقًا على كل المقاسات. لا مساس بالبنية.
 * ========================================================== */
#qx-section-442  { padding-block: clamp(72px, 9vw, 120px) !important; }
#ml-pay-section  { padding-block: clamp(60px, 7vw, 96px)  !important; }
#qx-section-3396 { padding-block: clamp(64px, 8vw, 104px) !important; }
#qx-section-991126{ padding-block: clamp(56px, 7vw, 88px) !important; }
#qx-section-851510{ padding-block: clamp(60px, 7vw, 96px) !important; }
@media (max-width: 767px) {
  #qx-section-442, #ml-pay-section, #qx-section-3396,
  #qx-section-991126, #qx-section-851510 { padding-block: clamp(40px, 11vw, 64px) !important; }
}
