/* ═══ hub-app-dark.css — طبقة الهوية النهائية لمنصّة Drill ═══
   تُحمَّل بعد كل ملفّات drill (app.css · identity.css · cards-light.css ·
   theme-day.css · contrast-fix.css) فتغلب بقواعدها.

   الهدف: سطح تطبيق app.codificahub.com — خلفية #070B12، بطاقات #0E1622،
   نص #EAF1F6، ثانوي #9DAEC0، لون المنصّة #0A7C94.

   ⚠ الخصوصية: الملفّات القديمة تفرض الأبيض بـ !important على
   `html[data-platform="drill"] …` — لذلك كل قاعدة هنا بنفس البادئة
   (`html[data-platform="drill"]`) وبـ !important، وترتيبها لاحق، فتفوز. */

html[data-platform],
html[data-platform="drill"]{
  --id-accent:#12A0BC;
  --id-accent-2:#0A7C94;
  --id-accent-ink:#04141a;
  --id-ink:#EAF1F6;
  --id-ink-2:#9DAEC0;
  --id-line:rgba(255,255,255,.09);
  --id-ga:rgba(18,160,188,.16);
  --id-gb:rgba(10,124,148,.12);
  --id-gc:rgba(18,160,188,.10);
  --accent:#12A0BC;
  --accent-hover:#2BB6D2;
  --accent-line:rgba(18,160,188,.42);
  color-scheme:dark;
}

html[data-platform="drill"]{ background:#070B12 !important }

html[data-platform="drill"] body{
  background-color:#070B12 !important;
  background-image:
    radial-gradient(60vmax 42vmax at 50% -16%, rgba(18,160,188,.20), transparent 64%),
    radial-gradient(48vmax 48vmax at 12% 4%, rgba(10,124,148,.14), transparent 66%),
    radial-gradient(46vmax 46vmax at 90% 12%, rgba(18,160,188,.08), transparent 68%) !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
  color:#EAF1F6 !important;
}

/* ——— العناوين والعنوان البطل ——— */
html[data-platform="drill"] h1,
html[data-platform="drill"] h1 *,
html[data-platform="drill"] h2,
html[data-platform="drill"] h2 *,
html[data-platform="drill"] h3,
html[data-platform="drill"] h3 *,
html[data-platform="drill"] h4,
html[data-platform="drill"] .sec-t{
  color:#EAF1F6 !important;
  -webkit-text-fill-color:#EAF1F6 !important;
  background-image:none !important;
}
html[data-platform="drill"] .hl,
html[data-platform="drill"] .hl *{
  color:#9BE7F5 !important;
  -webkit-text-fill-color:#9BE7F5 !important;
  background:none !important;
}

/* ——— النصوص ——— */
html[data-platform="drill"] main p,
html[data-platform="drill"] main li,
html[data-platform="drill"] main span,
html[data-platform="drill"] main small,
html[data-platform="drill"] .muted,
html[data-platform="drill"] .lede,
html[data-platform="drill"] .fine,
html[data-platform="drill"] .small,
html[data-platform="drill"] .hero-sub,
html[data-platform="drill"] .card-note{ color:#9DAEC0 !important }

html[data-platform="drill"] main strong,
html[data-platform="drill"] main b,
html[data-platform="drill"] .f b{ color:#EAF1F6 !important }

html[data-platform="drill"] a{ color:#9BE7F5 !important }
html[data-platform="drill"] a.btn{ color:#04141a !important }
html[data-platform="drill"] a.btn.ghost{ color:#EAF1F6 !important }

/* ——— البطاقات ومحتوى الدورة وقائمة المحتوى ——— */
html[data-platform="drill"] .card,
html[data-platform="drill"] .details,
html[data-platform="drill"] .li,
html[data-platform="drill"] .card-note,
html[data-platform="drill"] .modules,
html[data-platform="drill"] .outcomes,
html[data-platform="drill"] .learn-wrap,
html[data-platform="drill"] .rail,
html[data-platform="drill"] .stage,
html[data-platform="drill"] .f,
html[data-platform="drill"] .proof,
html[data-platform="drill"] .proof-list li,
html[data-platform="drill"] .stats,
html[data-platform="drill"] .stats-row li,
html[data-platform="drill"] .stat,
html[data-platform="drill"] .di,
html[data-platform="drill"] .lcards,
html[data-platform="drill"] .two-col > *,
html[data-platform="drill"] .wrap.band,
html[data-platform="drill"] .box,
html[data-platform="drill"] .acc,
html[data-platform="drill"] .faq details,
html[data-platform="drill"] main details,
html[data-platform="drill"] .d-cart-p{
  background:#0E1622 !important;
  border:1px solid rgba(255,255,255,.09) !important;
  color:#EAF1F6 !important;
  box-shadow:0 10px 30px -24px rgba(0,0,0,.9) !important;
}

/* النصوص داخل البطاقة: cards-light يفرض #0f172a عليها بـ !important */
html[data-platform="drill"] .card > *:not(:has(img)):not(.card-ribbon),
html[data-platform="drill"] .card > *:not(:has(img)):not(.card-ribbon) *{
  color:#9DAEC0 !important;
}
html[data-platform="drill"] .card > *:not(:has(img)):not(.card-ribbon) h3,
html[data-platform="drill"] .card > *:not(:has(img)):not(.card-ribbon) h3 *,
html[data-platform="drill"] .card > *:not(:has(img)):not(.card-ribbon) b,
html[data-platform="drill"] .card > *:not(:has(img)):not(.card-ribbon) strong{
  color:#EAF1F6 !important;
}

/* الشرائح الصغيرة داخل البطاقة */
html[data-platform="drill"] .pill,
html[data-platform="drill"] .meta > *,
html[data-platform="drill"] .card .meta > *{
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color:#9DAEC0 !important;
}
html[data-platform="drill"] .card .price,
html[data-platform="drill"] .card .cost,
html[data-platform="drill"] .card .meta b{ color:#9BE7F5 !important }

html[data-platform="drill"] .cover{ background:#111B28 !important }

/* ——— الأزرار والحقول والجداول ——— */
html[data-platform="drill"] .btn{
  background:linear-gradient(180deg,#12A0BC,#0A7C94) !important;
  border:1px solid rgba(18,160,188,.55) !important;
  color:#04141a !important;
}
html[data-platform="drill"] .btn.ghost{
  background:transparent !important;
  border:1px solid rgba(255,255,255,.14) !important;
  color:#EAF1F6 !important;
}
html[data-platform="drill"] input,
html[data-platform="drill"] select,
html[data-platform="drill"] textarea{
  background:#0B1420 !important;
  border:1px solid rgba(255,255,255,.12) !important;
  color:#EAF1F6 !important;
}
html[data-platform="drill"] input::placeholder{ color:#6E8296 !important }

html[data-platform="drill"] th{ color:#9DAEC0 !important; border-color:rgba(255,255,255,.09) !important }
html[data-platform="drill"] td{ border-color:rgba(255,255,255,.07) !important }

/* ——— ما يجب أن يبقى فاتحًا فوق الصور (يأتي أخيرًا فيغلب) ——— */
html[data-platform="drill"] .cover *,
html[data-platform="drill"] .cover-lang,
html[data-platform="drill"] .cover-brand,
html[data-platform="drill"] .cover-lv,
html[data-platform="drill"] .card .cover-lv,
html[data-platform="drill"] .card .cover-lv *,
html[data-platform="drill"] .card .card-brand,
html[data-platform="drill"] .card .card-brand *,
html[data-platform="drill"] .card .card-ribbon{ color:#ffffff !important }

/* ——— هيدر التطبيق ——— */
.hs-bar{
  position:sticky; top:0; z-index:90;
  background:rgba(7,11,18,.985);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.hs-in{
  max-width:1180px; margin:0 auto; padding:13px 20px;
  display:flex; align-items:center; gap:14px;
}
.hs-brand{ display:flex; align-items:center; gap:10px; text-decoration:none !important; flex:none }
.hs-mark{
  width:34px; height:34px; border-radius:11px; display:grid; place-items:center;
  background:#0A7C94; box-shadow:0 0 22px -6px rgba(10,124,148,.9);
}
.hs-bt{ font-weight:700; font-size:17px; color:#EAF1F6 !important; letter-spacing:.01em; white-space:nowrap }
.hs-bt b{ color:#9BE7F5 !important }
.hs-chip{
  font:700 10.5px/1 ui-monospace,Menlo,Consolas,monospace; letter-spacing:.06em;
  color:#9BE7F5; background:rgba(18,160,188,.14);
  border:1px solid rgba(18,160,188,.38); border-radius:999px;
  padding:4px 9px; margin-inline-start:2px;
}
.hs-nav{ display:flex; align-items:center; gap:2px; margin-inline-start:14px; flex:1 }
.hs-nav a{
  padding:9px 13px; border-radius:999px; font-size:14.5px; font-weight:500;
  color:#9DAEC0 !important; text-decoration:none !important; white-space:nowrap;
  transition:color .18s, background-color .18s;
}
.hs-nav a:hover{ color:#EAF1F6 !important; background:rgba(255,255,255,.05) }
.hs-nav a[aria-current="page"]{ color:#04141a !important; background:#12A0BC }
.hs-act{ display:flex; align-items:center; gap:8px; margin-inline-start:auto; flex:none }
.hs-icon{
  width:38px; height:38px; border-radius:11px; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.03);
  color:#9DAEC0 !important; position:relative;
}
.hs-icon:hover{ color:#EAF1F6 !important; border-color:rgba(18,160,188,.45) }
.hs-acc{
  padding:9px 16px; border-radius:999px; font-size:14.5px; font-weight:600;
  background:rgba(18,160,188,.14); border:1px solid rgba(18,160,188,.40);
  color:#9BE7F5 !important; text-decoration:none !important; white-space:nowrap;
}
.hs-cta{
  padding:9px 16px; border-radius:999px; font-size:14.5px; font-weight:700;
  background:linear-gradient(180deg,#12A0BC,#0A7C94); color:#04141a !important;
  text-decoration:none !important; white-space:nowrap;
}
.hs-burger{
  display:none; width:38px; height:38px; border-radius:11px; cursor:pointer;
  border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.03);
}
.hs-burger span{ display:block; width:16px; height:1.6px; margin:3px auto; background:#EAF1F6 }

/* ——— فوتر التطبيق ——— */
.hs-foot{ border-top:1px solid rgba(255,255,255,.07); margin-top:40px; background:rgba(255,255,255,.015) }
.hs-foot-in{
  max-width:1180px; margin:0 auto; padding:18px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  font-size:13.5px; color:#9DAEC0;
}
.hs-foot-in a{ color:#9DAEC0 !important; text-decoration:none !important }
.hs-foot-in a:hover{ color:#9BE7F5 !important }
.hs-foot-l{ display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.hs-dot{ opacity:.4 }

/* ——— الجوال ——— */
@media (max-width:860px){
  .hs-nav{
    position:fixed; inset-inline:12px; top:62px; z-index:95;
    flex-direction:column; align-items:stretch; gap:4px; padding:10px;
    background:#0B1420; border:1px solid rgba(255,255,255,.10); border-radius:16px;
    box-shadow:0 24px 60px -30px #000; display:none; margin:0;
  }
  .hs-nav[data-open="1"]{ display:flex }
  .hs-nav a{ padding:11px 14px }
  .hs-burger{ display:block }
  .hs-in{ padding:11px 14px; gap:10px }
  .hs-bt{ font-size:15.5px }
  .hs-chip{ display:none }
  .hs-cta{ display:none }
}

/* ═══ طبقة الغلبة النهائية ═══
   بعض القواعد في theme-day.css / contrast-fix.css / occ.css تستهدف نفس العناصر
   بخصوصية أعلى أو تُطبَّق بعد تبديل السِمة. هذه الكتلة تُرفع الخصوصية إلى
   html[data-platform="drill"] (يضعها hub-shell.js) فتفوز دائمًا. */

html .hs-bar{
  background:rgba(7,11,18,.985) !important;
  border-bottom:1px solid rgba(255,255,255,.07) !important;
  box-shadow:none !important;
}
html .kick,
html .pill{
  background:rgba(255,255,255,.05) !important;
  border:1px solid rgba(255,255,255,.11) !important;
  color:#9DAEC0 !important;
}
html .btn,
html .btn.big{
  background:linear-gradient(180deg,#12A0BC,#0A7C94) !important;
  border:1px solid rgba(18,160,188,.55) !important;
  color:#04141a !important;
}
html .btn.ghost,
html .btn.big.ghost{
  background:transparent !important;
  border:1px solid rgba(255,255,255,.16) !important;
  color:#EAF1F6 !important;
}
html .proof-list > li,
html .proof-list li,
html .stats-row > li,
html .f,
html .li,
html .wrap.band,
html .d-cart-p,
html .card,
html .details,
html .learn-wrap,
html .rail,
html .stage,
html .modules,
html .outcomes,
html .two-col > *{
  background:#0E1622 !important;
  border-color:rgba(255,255,255,.09) !important;
  color:#EAF1F6 !important;
}
html .proof-list > li p,
html .stats-row > li span,
html .f p,
html .li p{ color:#9DAEC0 !important }
html .proof-list > li b,
html .stats-row > li b,
html .f h3{ color:#EAF1F6 !important }
html .stats-row > li b{ color:#9BE7F5 !important }

/* شريط الأدوات/الفرز والبحث */
html .toolbar,
html .filters,
html .searchbar{ background:#0B1420 !important; border-color:rgba(255,255,255,.10) !important }

/* ——— تصحيح ٢: عنوان البطاقة (h3 مباشر) ولون زر الإجراء ——— */
html .card > h1,
html .card > h2,
html .card > h3,
html .card > h4,
html .card h3,
html .card h3 *{
  color:#EAF1F6 !important;
  -webkit-text-fill-color:#EAF1F6 !important;
}
html .card .sub,
html .card p{ color:#9DAEC0 !important }

html .hs-act a.hs-cta,
html[data-platform="drill"] a.hs-cta{
  color:#04141a !important;
  -webkit-text-fill-color:#04141a !important;
}
html .hs-act a.hs-acc{ color:#9BE7F5 !important }

/* ——— شارات الغلاف: كانت شريحةً بيضاء بنصٍّ أبيض (غير مرئيّ) — توحّد كشرائح داكنة ——— */
html .cover-lang,
html .cover-brand,
html .cover-lv,
html .card .cover-lang,
html .card .cover-brand,
html .card .cover-lv{
  background:rgba(8,18,30,.74) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  color:#EAF1F6 !important;
  -webkit-text-fill-color:#EAF1F6 !important;
  backdrop-filter:blur(4px);
}

/* ——— زر تبديل اللغة والشرائح الكهرمانية القديمة ——— */
html button.ls,
html .ls,
html .lang-switch{
  background:rgba(255,255,255,.05) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  color:#EAF1F6 !important;
  -webkit-text-fill-color:#EAF1F6 !important;
}
html .muted,
html p.muted{ color:#9DAEC0 !important }

/* ——— المتغيّرات بـ !important ———
   الصفحات تحمل <style> داخل <body> يعيد تعريف --accent/--id-accent بالكهرماني
   بنفس الخصوصية لكن بعده في الترتيب، فيفوز. الـ !important يحسمها. */
html{
  --id-accent:#12A0BC !important;
  --id-accent-2:#0A7C94 !important;
  --id-accent-ink:#04141a !important;
  --id-ink:#EAF1F6 !important;
  --id-ink-2:#9DAEC0 !important;
  --id-line:rgba(255,255,255,.09) !important;
  --accent:#12A0BC !important;
  --accent-hover:#2BB6D2 !important;
  --accent-line:rgba(18,160,188,.42) !important;
  --primary:#12A0BC !important;
  --primary-strong:#0A7C94 !important;
  --primary-hover:rgba(18,160,188,.24) !important;
}

/* شريط المناسبات/الشارة العائمة القديمة */
html #id-occ,
html .occ-bar{ display:none !important }

/* الشارة المزدوجة القديمة (بقايا id-chip) */
html .id-chip{ display:none !important }

/* شريط البطاقة: من النعناعي الفاتح إلى لون المنصّة */
html .card-ribbon,
html .card .card-ribbon{
  background:rgba(10,124,148,.94) !important;
  background-image:none !important;
  color:#EAF1F6 !important;
  -webkit-text-fill-color:#EAF1F6 !important;
  border:0 !important;
}

/* النصوص الثانوية داخل البطاقة: تباين أعلى */
html .card .sub,
html .card p,
html .card .meta,
html .card .meta *{ color:#A9B8C6 !important }

/* شريحة أعلى البطاقة (kp-ribbon) كانت نعناعية فاتحة */
html .kp-ribbon{
  background:rgba(10,124,148,.95) !important;
  background-image:none !important;
  color:#EAF1F6 !important;
  -webkit-text-fill-color:#EAF1F6 !important;
  border:1px solid rgba(18,160,188,.5) !important;
}

/* ——— ثبات الهيدر ———
   كان sticky مع top:34px (تفرضه قاعدة .occ-shifted) وجسم الصفحة عليه padding-top:34px،
   فيبدأ عند 72px ثم يقفز إلى 34px عند أول تمرير. الحلّ: fixed من أعلى الصفحة،
   ومسافة الجسم تُضبط بالارتفاع الفعلي عبر hub-shell.js. */
html .hs-bar,
html .hs-bar.occ-shifted{
  position:fixed !important;
  top:0 !important;
  inset-inline:0 !important;
  margin:0 !important;
  transform:none !important;
}


/* ═══ ضمان نهائي مستقلّ عن JS ═══ */
html{ background:#070B12 !important; color-scheme:dark !important }
body{ background:#070B12 !important; color:#EAF1F6 !important }
body:has(.hs-bar) .ch-hdr, body:has(.hs-bar) .foot, body:has(.hs-bar) .ch-sp, body:has(.hs-bar) [data-eco-header]{ display:none !important }

/* إن فشل سكربت الهيدر: يبقى الهيدر القديم بهوية داكنة بدل شريط أبيض بأزرار برتقالية */
body:not(:has(.hs-bar)) .ch-hdr{background:rgba(7,11,18,.96) !important;border:1px solid rgba(255,255,255,.08) !important}
body:not(:has(.hs-bar)) .ch-hdr,body:not(:has(.hs-bar)) .ch-hdr a,body:not(:has(.hs-bar)) .ch-hdr span{color:#EAF1F6 !important}
body:not(:has(.hs-bar)) .ch-cta,body:not(:has(.hs-bar)) .ch-hdr .btn{background:linear-gradient(180deg,#12A0BC,#0A7C94) !important;color:#04141a !important;border-color:rgba(18,160,188,.55) !important}

/* الأزرار الثانوية: كانت كهرمانية بنصّ داكن */
.btn.ghost, a.btn.ghost, button.btn.ghost{background:transparent !important;color:#9BE7F5 !important;border-color:rgba(255,255,255,.18) !important}

/* غلبة على cards-light.css الذي يفرض الأبيض بـ html[data-platform="drill"] .card
   — نفس الخصوصية + ملفّنا لاحق = الفوز قبل تنفيذ أي سكربت (لا وميض أبيض) */
html[data-platform] .card,
html[data-platform] .f,
html[data-platform] .li,
html[data-platform] .proof-list > li,
html[data-platform] .stat,
html[data-platform] .panel{background:#0E1622 !important;border-color:rgba(255,255,255,.09) !important}
html[data-platform] .card h1,html[data-platform] .card h2,html[data-platform] .card h3,
html[data-platform] .f h2,html[data-platform] .f h3{color:#EAF1F6 !important}
html[data-platform] .card p,html[data-platform] .card span,html[data-platform] .f p{color:#9DAEC0 !important}

/* احتياط: لو تعطّل السكربت يبقى المحتوى تحت الشريط لا خلفه */
body{padding-top:72px !important}
@media (max-width:860px){ body{padding-top:64px !important} }

/* سطر المقدّمة: كان بلون الثيم النهاري (غامق) على خلفية داكنة */
.hero .lede, .lede, section.hero p{color:#9DAEC0 !important}

html[data-platform] .lede,
html[data-platform] .hero .lede,
html[data-platform] section.hero p{color:#9DAEC0 !important}
html[data-platform] .hero h1,html[data-platform] .hero h1 span{color:#EAF1F6 !important}

/* زرّ تبديل اللغة: كان كهرمانيًّا (180,83,9) */
button.ls, .ls, .lang-switch button{background:rgba(255,255,255,.06) !important;background-image:none !important;color:#9BE7F5 !important;border:1px solid rgba(255,255,255,.14) !important;box-shadow:none !important}
button.ls.on, .ls.on{background:rgba(18,160,188,.18) !important;color:#EAF1F6 !important;border-color:rgba(18,160,188,.5) !important}

/* ═══ إبطال الكهرماني من contrast-fix.css ═══
   كان يفرض --accent و #B45309 على .btn.big:not(.ghost) بخصوصية أعلى،
   فيظهر البرتقالي لحظةً حتى يُصلحه السكربت inline. الآن يُهزم في CSS نفسه. */
html[data-platform],
html[data-platform="drill"]{
  --accent:#12A0BC !important;
  --accent-2:#0A7C94 !important;
  --accent-hover:#12A0BC !important;
  --id-accent:#12A0BC !important;
  --id-accent-2:#0A7C94 !important;
  --id-ga:rgba(18,160,188,.18) !important;
  --id-gb:rgba(10,124,148,.12) !important;
  --id-gc:rgba(18,160,188,.10) !important;
}
html[data-platform="drill"] .btn.big:not(.ghost),
html[data-platform="drill"] a.btn.big:not(.ghost),
html[data-platform="drill"] .btn:not(.ghost).solid,
html[data-platform="drill"] .btn[type=submit],
html[data-platform] .btn:not(.ghost){
  background:linear-gradient(180deg,#12A0BC,#0A7C94) !important;
  border-color:rgba(18,160,188,.55) !important;
  color:#04141a !important;
}
html[data-platform="drill"] .btn.ghost,
html[data-platform="drill"] .btn.ghost.big,
html[data-platform="drill"] a.btn.ghost,
html[data-platform="drill"] a.btn.big.ghost{
  background:transparent !important;
  color:#9BE7F5 !important;
  border-color:rgba(255,255,255,.18) !important;
}

/* زرّا اللغة والسلة في الهيدر */
.hs-lang{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:34px;padding:0 9px;border-radius:9px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:#9BE7F5;font:600 11.5px/1 Tajawal,system-ui,sans-serif;letter-spacing:.04em;cursor:pointer}
.hs-lang:hover{background:rgba(18,160,188,.16);color:#EAF1F6;border-color:rgba(18,160,188,.45)}
#drill-ui-switch{display:none !important}

/* زرّ سلّة Drill (يحقنه cart.js) — توحيد شكله مع الهيدر */
#d-cartBtn,.d-cart-btn{display:inline-flex !important;align-items:center;justify-content:center;position:relative;min-width:38px;height:34px;padding:0 9px;border-radius:9px;border:1px solid rgba(255,255,255,.14) !important;background:rgba(255,255,255,.05) !important;color:#9BE7F5 !important}
#d-cartBtn:hover{background:rgba(18,160,188,.16) !important;color:#EAF1F6 !important}
#d-cartBtn .d-cart-n{position:absolute;top:-5px;inset-inline-end:-5px;min-width:15px;height:15px;border-radius:8px;background:#12A0BC;color:#04141a;font:700 9.5px/15px Tajawal,system-ui,sans-serif;text-align:center}

/* ═══ نافذة سلّة Drill الجانبية بهوية التطبيق ═══ */
#d-cart-bk{background:rgba(3,6,11,.66) !important}
#d-cart-p,.d-cart-p{background:#0B1420 !important;color:#EAF1F6 !important;border-inline-start:1px solid rgba(255,255,255,.09) !important;box-shadow:-24px 0 70px rgba(0,0,0,.55) !important}
#d-cart-p .d-cart-h{border-bottom:1px solid rgba(255,255,255,.08) !important}
#d-cart-p .d-cart-ttl{color:#EAF1F6 !important;font-weight:700 !important}
#d-cart-p .d-cart-x{color:#9DAEC0 !important}
#d-cart-p .muted,#d-cart-p .d-cart-note,#d-cart-p .d-cart-lbl{color:#9DAEC0 !important}
#d-cart-p .d-cart-f{border-top:1px solid rgba(255,255,255,.08) !important;background:#0B1420 !important}
#d-cart-p .d-cart-go,#d-cart-go{background:linear-gradient(180deg,#12A0BC,#0A7C94) !important;color:#04141a !important;border:0 !important;font-weight:700 !important}
#d-cart-p .d-cart-2{background:transparent !important;color:#9BE7F5 !important;border:1px solid rgba(255,255,255,.16) !important}
#d-cart-p .d-cart-sum{color:#EAF1F6 !important}
/* ═══ طبقة النهار لمنصّة Drill — تُضاف في نهاية hub-app-dark.css ═══
   نفس البادئة وبنفس الأهمية، لكنها تأتي لاحقًا فتغلب كل قاعدة ليلية. */
html[data-platform="drill"],
html[data-platform="drill"] body{
  background:#FBFAF6 !important;
  color:#0E1A20 !important;
  color-scheme:light !important;
}

html[data-platform="drill"] .hs-bar{
  background:rgba(255,255,255,.95) !important;
  border-bottom:1px solid #E7E2D8 !important;
  color:#0E1A20 !important;
}
html[data-platform="drill"] .hs-bar *,
html[data-platform="drill"] .hs-bar .hs-brand,
html[data-platform="drill"] .hs-bar .hs-bt,
html[data-platform="drill"] .hs-bar .hs-link{
  color:#0E1A20 !important;
}
html[data-platform="drill"] .hs-bar .hs-bt b{color:#0A7C94 !important}
html[data-platform="drill"] .hs-bar .hs-lang,
html[data-platform="drill"] .hs-bar .hs-cart,
html[data-platform="drill"] .hs-bar button{
  background:#FFFFFF !important;border:1px solid #E1DCD1 !important;color:#0E1A20 !important;
}
html[data-platform="drill"] .hs-bar .hs-cta{
  background:linear-gradient(180deg,#0F766E,#0A7C94) !important;color:#FFFFFF !important;
}

html[data-platform="drill"] .card,
html[data-platform="drill"] .pane,
html[data-platform="drill"] .box,
html[data-platform="drill"] .panel{
  background:#FFFFFF !important;
  border-color:#DCE4E9 !important;
  color:#0E1A20 !important;
}
html[data-platform="drill"] h1,
html[data-platform="drill"] h2,
html[data-platform="drill"] h3,
html[data-platform="drill"] h4,
html[data-platform="drill"] .title{color:#0E1A20 !important}
html[data-platform="drill"] p,
html[data-platform="drill"] .muted,
html[data-platform="drill"] .sub,
html[data-platform="drill"] .lead{color:#51636B !important}

html[data-platform="drill"] .btn:not(.ghost){
  background:linear-gradient(180deg,#0F766E,#0A7C94) !important;
  color:#FFFFFF !important;
  border-color:#0A7C94 !important;
}
html[data-platform="drill"] .btn.ghost{
  background:#FFFFFF !important;color:#0E1A20 !important;border-color:#E1DCD1 !important;
}
html[data-platform="drill"] .kp-ribbon,
html[data-platform="drill"] .card-ribbon{
  background:#0F766E !important;color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
}

/* ═══ إصلاح بنية الترويسة: الشعار كان يتضخّم لحجم الشاشة ═══ */
html[data-platform="drill"] .hs-bar{
  background:rgba(255,255,255,.96) !important;
  border-bottom:1px solid #E7E2D8 !important;
  padding:0 !important;
}
html[data-platform="drill"] .hs-in{
  display:flex !important;align-items:center;gap:14px !important;
  height:64px !important;max-width:1120px !important;
  margin:0 auto !important;padding:0 18px !important;
}
html[data-platform="drill"] .hs-mark{
  width:34px !important;height:34px !important;flex:none !important;
  display:grid !important;place-items:center !important;border-radius:11px !important;
  background:linear-gradient(160deg,#14B8A6,#0A7C94) !important;color:#fff !important;
  overflow:hidden !important;
}
html[data-platform="drill"] .hs-mark svg{
  width:20px !important;height:20px !important;display:block !important;
}

/* بطاقات الدورات: سطح نهاري */
html article.card,html .card{background:#FFFFFF !important;border-color:#E4E9EC !important;color:#0E1A20 !important}
html article.card .cover,html .cover{background:#F4F1E9 !important}
html article.card h3,html article.card h2,html article.card b,html article.card .t{color:#0E1A20 !important}
html article.card p,html article.card .m,html article.card small{color:#51636B !important}
html article.card .chip,html article.card .tag{background:#F1EEE6 !important;color:#3E495C !important}

/* (2026-11-21 · v5polish) شريط .hs-bar الثابت (ارتفاعه ~49px): القفزُ إلى مرساةٍ أو scrollIntoView ينزل تحته لا خلفه */
html:has(.hs-bar){scroll-padding-top:64px}
