﻿/* ============================================================================
   CodificaHub Tools — الوضع النهاري (الافتراضي الآن)
   تُحمَّل آخر ورقة على الرئيسية و /all/ لتغلب أي خلفية داكنة سابقة.
   الهوية: نفس فيروزي المنظومة على ورق فاتح، بلا ظلال ثقيلة.
   ========================================================================== */

html{color-scheme:light}
html,body{
  background:#F7F8FA !important;
  color:#0F1A2A !important;
}

/* ---------- الهيدر ---------- */
header.eco-hdr{
  background:rgba(255,255,255,.92) !important;
  border-bottom:1px solid #E3E8EF !important;
  box-shadow:0 1px 0 rgba(15,26,42,.04),0 10px 30px -24px rgba(15,26,42,.35) !important;
  backdrop-filter:blur(14px)
}
header.eco-hdr .eco-brand,
header.eco-hdr .eco-brand__nm{color:#0F1A2A !important}
header.eco-hdr .eco-nav a{color:#5A6B81 !important}
header.eco-hdr .eco-nav a:hover,
header.eco-hdr .eco-nav a[aria-current="page"]{color:#0f766e !important}
header.eco-hdr .eco-lang,
header.eco-hdr .eco-switch{
  background:#F2F5F8 !important;border:1px solid #E1E7EE !important;color:#3F5063 !important
}
.eco-burger{color:#0F1A2A !important}
header.eco-hdr .eco-login{
  color:#26405A !important;border:1px solid #DDE4EC !important;background:#fff !important
}
header.eco-hdr .eco-cart{
  background:#fff !important;border:1px solid #DDE4EC !important;color:#26405A !important
}
header.eco-hdr .eco-cart__n{background:#0f766e !important;color:#fff !important}
.eco-cta{
  background:linear-gradient(180deg,#14948a,#0f766e) !important;
  color:#fff !important;border:0 !important;box-shadow:0 8px 18px -12px rgba(15,118,110,.9)
}

/* ---------- الفوتر + ختم التوثيق ---------- */
footer.eco-ftr{
  background:#FFFFFF !important;color:#5A6B81 !important;
  border-top:1px solid #E3E8EF !important
}
footer.eco-ftr a{color:#41546B !important}
footer.eco-ftr a:hover{color:#0f766e !important}
footer.eco-ftr h3,footer.eco-ftr h4,footer.eco-ftr strong{color:#0F1A2A !important}
.eco-seal-dock{
  background:linear-gradient(180deg,rgba(247,248,250,0),rgba(247,248,250,.96) 55%) !important
}

/* ---------- قسم البطل ---------- */
.hero{background:linear-gradient(180deg,#FFFFFF, #F7F8FA 70%) !important;border-bottom:1px solid #EDF1F5}
.hero__txt .eyebrow{
  background:#E7F4F1 !important;color:#0f766e !important;border-color:rgba(15,118,110,.28) !important
}
.hero h1,.hero h1 em{color:#0B1A2B !important}
.hero h1 em{color:#0f766e !important}
.hero .lead,.hero p{color:#4A5B70 !important}
.hero__acts .btn{box-shadow:0 10px 22px -18px rgba(15,26,42,.6)}
.hero__search{
  background:#fff !important;border:1px solid #DDE4EC !important;
  box-shadow:0 16px 34px -30px rgba(15,26,42,.65)
}
.hero__search input{color:#0F1A2A !important}
.hero__search input::placeholder{color:#8A99AC !important}
.hero__search kbd{background:#F2F5F8 !important;border-color:#E1E7EE !important;color:#5A6B81 !important}
.stats{background:transparent !important}
.stats > div,.hero__stats > div{
  background:#fff !important;border:1px solid #E6EBF1 !important;color:#0F1A2A !important
}
.stats b,.hero__stats b{color:#0B1A2B !important}
.stats span,.hero__stats span{color:#5A6B81 !important}

/* ---------- نوافذ البطل ---------- */
.hw{
  background:#FFFFFF !important;
  border:1px solid #E3E8EF !important;
  box-shadow:0 22px 50px -34px rgba(15,26,42,.45) !important
}
.hw::before{background:linear-gradient(90deg,transparent,rgba(15,118,110,.35),transparent) !important}
.hw::after{background:linear-gradient(90deg,transparent,rgba(15,118,110,.35),transparent) !important}
.hw__bar{border:0 !important}
.hw__name{color:#0F1A2A !important}
.hw__tag{
  background:#F1F5F9 !important;color:#5A6B81 !important;border-color:#E1E7EE !important
}
.hw__row{color:#5A6B81 !important}
.hw__row b{color:#132133 !important}
.hw__out{
  background:#F5F9FA !important;border:1px solid #E1EAF0 !important
}
.hw__barline{background:#E3E8EF !important}
.hw__barline::after{background:linear-gradient(90deg,#14948a,#0f766e) !important}
.hw__txt{color:#0f766e !important}

/* ---------- العناوين والأقسام ---------- */
h1,h2,h3,h4,.h2,.sec-head h2{color:#0B1A2B !important}
.eyebrow{color:#0f766e !important}
.lead,.sec-head p{color:#5A6B81 !important}
.chip{
  background:#fff !important;border-color:#E1E7EE !important;color:#41546B !important
}
.chip.on,.chip:hover{background:#E7F4F1 !important;border-color:rgba(15,118,110,.35) !important;color:#0f766e !important}
section.cat,[data-root-tools] .cat{
  background:#fff !important;border:1px solid #E6EBF1 !important;
  box-shadow:0 18px 40px -38px rgba(15,26,42,.5)
}
section.cat .cat-head .cov-cat,[data-root-tools] .cov-cat{border-color:#E6EBF1 !important;background:#F2F5F8 !important}
section.cat .cat-head .count,[data-root-tools] .count{color:#6E819E !important;border-color:#E6EBF1 !important;background:#F7F9FB !important}
.line,[data-root-tools] .line{background:#EDF1F5 !important}

/* ---------- بطاقات الأدوات ---------- */
.card,[data-root-tools] .card{
  background:#fff !important;border:1px solid #E6EBF1 !important;
  box-shadow:0 10px 24px -22px rgba(15,26,42,.5)
}
.card:hover,[data-root-tools] .card:hover{
  border-color:rgba(15,118,110,.45) !important;
  box-shadow:0 18px 34px -26px rgba(15,118,110,.5)
}
.card h3,[data-root-tools] .card h3{color:#0F1A2A !important}
.card p,[data-root-tools] .card p{color:#5A6B81 !important}
.card .cover,[data-root-tools] .cover{background:#F2F5F8 !important;border-color:#EDF1F5 !important}
.card-go,[data-root-tools] .card-go{color:#0f766e !important}
.cov-cat,.cover-cat-img{background:#F2F5F8 !important}

/* ---------- لوحات الأداة والحقول ---------- */
.panel,.mod,.card-body,.result,.tool-panel{
  background:#fff !important;border-color:#E6EBF1 !important;color:#0F1A2A !important
}
.panel h2,.panel h3,.panel label{color:#0F1A2A !important}
.panel p,.hint,.help,.muted{color:#5A6B81 !important}
input[type=text],input[type=number],input[type=search],textarea,select{
  background:#fff !important;border:1px solid #DDE4EC !important;color:#0F1A2A !important
}
input:focus,textarea:focus,select:focus{
  border-color:#0f766e !important;box-shadow:0 0 0 3px rgba(15,118,110,.12) !important
}
.btn{background:#fff !important;border:1px solid #DDE4EC !important;color:#26405A !important}
.btn:hover{background:#F2F7FA !important;border-color:#BFD3DE !important}
.btn.primary{
  background:linear-gradient(180deg,#14948a,#0f766e) !important;color:#fff !important;border:0 !important
}
.result pre{
  background:#F7F9FB !important;border:1px solid #E6EBF1 !important;color:#132133 !important
}
.dropzone,[class*="drop"]{
  background:#F8FAFC !important;border-color:#CFDAE5 !important;color:#4A5B70 !important
}
table th{background:#F4F7FA !important;color:#26405A !important;border-color:#E6EBF1 !important}
table td{border-color:#EDF1F5 !important;color:#1B2A3C !important}

/* ---------- التنبيه العائم ---------- */
.qfloat,.chq-notice{
  background:#FFFFFF !important;border:1px solid #DDE7EE !important;color:#132133 !important;
  box-shadow:0 24px 50px -30px rgba(15,26,42,.55) !important
}
.qfloat b{color:#0f766e !important}
.qfloat a{color:#0f766e !important}

/* ---------- النافذة المنبثقة للحد اليومي ---------- */
.chmodal__bk{background:rgba(15,26,42,.42) !important}
.chmodal__card{
  background:#fff !important;border:1px solid #E6EBF1 !important;color:#132133 !important;
  box-shadow:0 40px 90px -40px rgba(15,26,42,.55) !important
}
.chmodal__card h2{color:#0B1A2B !important}
.chmodal__card p{color:#5A6B81 !important}
.chmodal__clock{
  background:#F5F9FA !important;border:1px solid #E1EAF0 !important;color:#0f766e !important;
  letter-spacing:.06em
}
.chmodal__hint{color:#0f766e !important}
.chmodal__acts .btn{background:#fff !important;border:1px solid #DDE4EC !important;color:#26405A !important}

/* ---------- عرض غير محدود ---------- */
.chplan{
  background:linear-gradient(180deg,#F2FBFD,#FFFFFF) !important;border:1px solid #CFE7EE !important
}
.chplan h2,.chplan h3{color:#0B1A2B !important}
.chplan__p{background:#fff !important;border:1px solid #E1E7EE !important}
.chplan__p b{color:#0f766e !important}
.chplan__p small{color:#6E819E !important}

/* ---------- درج السلة ---------- */
.cdrw{background:#fff !important;border-color:#E6EBF1 !important;box-shadow:-30px 0 80px -50px rgba(15,26,42,.6) !important}
.cdrw__hd,.cdrw__ft{border-color:#E6EBF1 !important;background:#fff !important}
.cdrw__x,.cdrw__cont{background:#fff !important;border-color:#DDE4EC !important;color:#26405A !important}
.cdrw__pay{background:linear-gradient(180deg,#14948a,#0f766e) !important;color:#fff !important}
.cdrw *{color:#132133}
.cdrw__pay{color:#fff !important}

/* ---------- الجوال: قسم البطل أولًا ثم النوافذ ---------- */
@media (max-width:860px){
  .hero__in{grid-template-columns:1fr !important;gap:22px !important}
  .hero__txt{order:1 !important}
  .hero__win{order:2 !important;grid-template-columns:1fr !important}
}

/* ===== FORCE-CARDS ===== */
html body #alltools .cat,html body #alltools .card,html body [data-root-tools] .cat,html body [data-root-tools] .card{background:#FFFFFF !important;border-color:#E6EBF1 !important}
html body #alltools .cover,html body [data-root-tools] .cover{background:#F2F5F8 !important}
html body #alltools .card h3{color:#0F1A2A !important}
html body #alltools .card p{color:#5A6B81 !important}
html body #alltools .card-go{color:#0f766e !important}
html body #alltools .chip{background:#fff !important;color:#41546B !important;border-color:#E1E7EE !important}

/* ===== REVEAL-FALLBACK + CAT-CHIPS ===== */
html body .rv{opacity:1 !important;transform:none !important;animation:none !important}
html body a.cat{background:#FFFFFF !important;border:1px solid #E6EBF1 !important;color:#0F1A2A !important;box-shadow:0 10px 24px -24px rgba(15,26,42,.5)}
html body a.cat:hover{background:#F7FCFD !important;border-color:rgba(15,118,110,.45) !important}
html body a.cat *{color:#0F1A2A !important}
html body a.cat svg,html body a.cat svg *{stroke:#0f766e !important;color:#0f766e !important}
html body a.cat .cat__n{color:#6E819E !important}
/* السلة: مخفية تمامًا إلا عند فتحها */
html[data-platform="tools"] .cdrw{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
html[data-platform="tools"] .cdrw.is-on{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:none !important;
}
html[data-platform="tools"] .cdrw-bk{
  opacity:0 !important; visibility:hidden !important;
}
html[data-platform="tools"] .cdrw-bk.is-on{
  opacity:1 !important; visibility:visible !important;
}
/* ── الأقسام: شبكة أكثف لتقصير المسافة إلى الأدوات ─────────────────── */
@media (min-width:1100px){
  .cats{grid-template-columns:repeat(4,1fr) !important;gap:12px !important}
}
@media (min-width:640px) and (max-width:1099px){
  .cats{gap:12px !important}
}
#cats{padding-top:40px}
#cats .sec-head{margin-bottom:20px}

/* ── الأسئلة الشائعة: كانت بلون فاتح على فاتح (1.02) ─────────────── */
.faq summary{color:#0B1220 !important}
.faq details p,.faq details{color:#3D4A5C}

/* ── تصحيح تباين الفوتر والنصوص الثانوية على الخلفية البيضاء ─────── */
.eco-ftr__h{color:#0B1220 !important}
.eco-ftr__desc,.eco-ftr__bar p,.eco-ftr__meta span{color:#4A5566 !important}
.eco-brand__nm,.eco-brand__nm span{color:#0B1220 !important}
[data-root-tools] .count,section.cat .cat-head .count,html body a.cat .cat__n{color:#4A5566 !important}
.chplan__p small,.chplan p,.hero__proof span,.cdrw__it span{color:#4A5566 !important}

/* ── بقايا تباين: وسوم وأسعار وعناوين صغيرة ─────────────────────── */
.chplan__p span,.chplan__p b,.tag,.badge{color:#3D4A5C !important}
.cats .cat__nm span{color:#4A5566 !important}
.eyebrow{color:#0B3D38 !important;background:#E6F5F2 !important;border:1px solid rgba(15,118,110,.4) !important}

/* ── تباين الهيرو والشرائح: أولوية أعلى من قواعد الثيم ────────────── */
.hero .eyebrow,.hero__txt .eyebrow,span.eyebrow{
  color:#0B3D38 !important;
  background:#E6F5F2 !important;
  border:1px solid rgba(15,118,110,.4) !important;
}
.filters .chip.on, .filters .chip.on .n{color:#06697D !important}
.hero-badges .badge{background:#0B1220 !important;color:#FFFFFF !important;border-color:transparent !important}
.hero-badges .badge b{color:#FFFFFF !important}


/* زر «افتح» في شريط العرض السريع: كان يأخذ خلفية رمادية ونصًّا أبيض
   (تباين 1.74) — غير مقروء. حالتان: مفعّل بلون الهوية، ومعطّل مقروء. */
#qv-open{
  background:#0f766e;color:#fff;border:0;border-radius:10px;
  padding:10px 18px;font-weight:700;cursor:pointer
}
#qv-open[disabled]{
  background:#E3EAF2;color:#5B6B7A;border:1px solid #C2D0E1;
  opacity:1;cursor:not-allowed
}

/* سطر إرشادي أسفل شريط العرض السريع: كان #6B7A8C بتباين 4.39 على الأبيض. */
.qv-h span{color:#5F6E7E !important}

/* أدوات البطل: صورة واسم، بلا نافذة محاكاة */
.hero__win{display:block}
.hx{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hx__a{display:flex;flex-direction:column;min-width:0;border-radius:16px;overflow:hidden;background:#fff;border:1px solid #E3E8EF;color:#121826;text-decoration:none}
.hx__a img{width:100%;height:96px;object-fit:cover;display:block}
.hx__a b{padding:8px 10px 10px;font-size:13.5px;font-weight:700;line-height:1.35}
.hw{display:none !important}

/* البطل: الأدوات بجانب السطر الأول، والإحصاءات صف واحد بعرض الصفحة */
.hero--split .hero__in{align-items:start !important}
.hero--split .stats{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  width:min(1120px,calc(100% - 36px));
  margin:22px auto 0;
  background:transparent !important;
  border:0 !important;
}
.hero--split .stats .stat{
  background:#fff !important;
  border:1px solid rgba(15,118,110,.22) !important;
  border-radius:18px !important;
  padding:16px 10px !important;
  text-align:center;
  min-height:92px;
}
.hero--split .stats b{color:#0f766e !important;font-size:1.7rem;font-weight:800}
.hero--split .stats span{color:#3D4A5C !important;font-size:.8rem;line-height:1.45}
.filters{width:100%}
.filters .chip{
  background:#fff !important;color:#121826 !important;
  border:1px solid rgba(11,18,32,.12) !important;border-radius:999px !important;
}
.filters .chip.on{
  background:#E6F5F2 !important;color:#0f766e !important;
  border-color:rgba(15,118,110,.45) !important;
}
html[lang="en"] .lg-ar{display:none !important}
html[lang="ar"] .lg-en{display:none !important}
.ch-band{width:min(1120px,calc(100% - 36px));margin:28px auto;background:#fff;border:1px solid rgba(15,118,110,.22);border-radius:22px;padding:28px 32px}
.ch-band h2{margin:6px 0 8px;color:#121826;font-size:1.55rem}
.ch-band .k{color:#0f766e;font-weight:800;font-size:.78rem}
.ch-band .lead{color:#3D4A5C;max-width:none;margin:0 0 18px}
.ch-band .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:8px}
.ch-band .steps div{background:#F5F3ED;border-radius:14px;padding:14px 16px}
.ch-band .steps b{display:block;color:#0f766e;margin-bottom:4px}
.ch-faq{display:grid;grid-template-columns:1fr 1fr;gap:14px 28px}
.ch-faq article b{display:block;color:#121826;margin-bottom:4px}
.ch-faq article p{margin:0;color:#3D4A5C;line-height:1.7}
@media(max-width:800px){
  .hero--split .stats{grid-template-columns:1fr 1fr}
  .ch-band .steps,.ch-faq{grid-template-columns:1fr}
}


/* —— الجوال: عناصر بطل الرئيسية فقط تُخفى؛ عنوان صفحة القسم وlead يبقيان في الأعلى —— */
@media (max-width: 768px) {
  /* عنوان صفحات الأقسام يبقى ظاهراً في الأعلى. الإخفاء كان مخصصاً لبطل الرئيسية
     (eyebrow/شارات/إحصاءات/نوافذ) ولا ينطبق على هذه الصفحات. */
  .hero .eyebrow,
  .hero-badges,
  .hero__win,
  .hero .stats,
  .hero > .wrap:has(.stats) {
    display: none !important;
  }
  .hero, .hero--split, .hero__in, .hero__txt {
    display: block !important;
    padding-block: 8px 4px !important;
    margin: 0 !important;
    gap: 0 !important;
    background: transparent !important;
    min-height: 0 !important;
  }
  .hero__in { grid-template-columns: 1fr !important; }
  .home-search { padding: 10px 0 6px; }
  .home-search__form, .hero__search {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }
}
