/* =========================================================
   v15 — التصميم الاحترافي (كحلي داكن + ذهبي، دقيق ومرتب)
   يُحمَّل بعد style.css و skills.css — ما يغيّر أي بيانات.
   الوضع الافتراضي داكن، والزائر يقدر يحوّله نهاري من الزر.
   ========================================================= */
:root{
  --font-ar:'IBM Plex Sans Arabic','Tajawal',system-ui,sans-serif;
  --font-head:'Readex Pro','IBM Plex Sans Arabic','Tajawal',system-ui,sans-serif;
  --hand:var(--font-head);
  --r-sm:12px;--r-md:16px;--r-lg:20px;
  --pro-gold:#F2A81D;--pro-mint:#5FC3B0;
}
html[lang="en"]{--font-head:'Poppins',system-ui,sans-serif}
html[data-theme="dark"]{
  --paper:#0A1120;--cream:#0A1120;--card:#0F1A2E;--white:#0F1A2E;--panel2:#132139;
  --ink:#E9EEF6;--navy:#E9EEF6;--muted:#8E9CB3;--line:rgba(255,255,255,.08);--paper-line:transparent;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);--shadow-md:0 18px 40px -18px rgba(0,0,0,.6);--shadow-lg:0 30px 60px -24px rgba(0,0,0,.7);
}
body{background-image:none!important;font-family:var(--font)}
html[data-theme="dark"] body{background:#0A1120}
h1,h2,h3,h4,.display,.section-title{font-family:var(--font-head);font-weight:600;letter-spacing:0}
.display{font-weight:600}
.section-title{font-size:clamp(1.8rem,3.6vw,2.7rem);line-height:1.25}

/* ---------- header ---------- */
.site-header,.site-header.scrolled{background:rgba(10,17,32,.86)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.08)!important}
html:not([data-theme="dark"]) .site-header,html:not([data-theme="dark"]) .site-header.scrolled{background:rgba(10,17,32,.92)!important}
.brand img{height:44px}
.nav-links a{font-weight:600;font-size:.95rem;color:#c9d3e1}
.nav-links a:hover,.nav-links a.active{color:#fff}
.nav-links a.active::after{background-image:none!important;background:var(--pro-gold)!important;height:2px!important;bottom:-6px!important;border-radius:2px}
.lang-toggle,.theme-toggle{border-radius:var(--r-sm)!important;border:1px solid rgba(255,255,255,.14)!important}
.acct-btn{border-radius:var(--r-sm);border:1px solid rgba(242,168,29,.5)}

/* ---------- buttons ---------- */
.btn{border-radius:14px;font-weight:700;padding:.85rem 1.6rem}
.btn-primary,html[data-theme="dark"] .btn-primary,.hero .btn-primary,.cta-band .btn-primary,.cta-band .btn-light,.cta-band .btn-on-navy{background:var(--pro-gold);color:#0A1120;border:0;box-shadow:0 10px 24px -12px rgba(242,168,29,.6)}
.btn-primary:hover,html[data-theme="dark"] .btn-primary:hover,.hero .btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 30px -12px rgba(242,168,29,.7);background:#f5b53a}
.btn-ghost,html[data-theme="dark"] .btn-ghost{border:1px solid var(--line);border-style:solid!important;color:var(--ink);background:transparent}
html[data-theme="dark"] .btn-ghost{border-color:rgba(255,255,255,.18)}
.btn-ghost:hover{border-color:var(--pro-gold)!important;color:var(--ink);transform:translateY(-2px)}
.hero .btn-ghost{color:#fff;border-color:rgba(255,255,255,.2)}

/* ---------- eyebrow + section heads (numbered on the home page) ---------- */
.eyebrow{font-family:var(--font);font-size:.82rem;font-weight:700;letter-spacing:.02em;text-transform:none;color:var(--pro-gold)}
.eyebrow::before{width:24px;height:1px;background:var(--pro-gold)}
.section .section-head .section-title::after{display:none!important}
.section-head{margin-bottom:clamp(1.8rem,3.5vw,2.6rem)}
body.home main{counter-reset:sec}
body.home main>.section .section-head .eyebrow,body.home main>[data-frag]>.section .section-head .eyebrow{counter-increment:sec}
body.home main .section .section-head .eyebrow::before{content:counter(sec,decimal-leading-zero);width:auto;height:auto;background:none;font-family:var(--font-head);font-weight:500;color:var(--muted);direction:ltr;padding-inline-end:.7rem;margin-inline-end:.1rem;border-inline-end:1px solid currentColor;line-height:1}

/* ---------- cards: clean panels (no tilt, no pins) ---------- */
.card,.tool-card{background:var(--card);border:1px solid var(--line)!important;border-radius:var(--r-lg);box-shadow:none}
html[data-theme="dark"] .card,html[data-theme="dark"] .tool-card{box-shadow:none}
.grid>.card.svc:nth-child(odd),.grid>.card.svc:nth-child(even),.grid>.card.why-card:nth-child(odd),.grid>.card.why-card:nth-child(even),.grid>.card.info-card:nth-child(odd),.grid>.card.info-card:nth-child(even){rotate:0deg!important}
.card.svc::before,.card.why-card::before,.card.info-card::before{display:none!important}
.card:hover,.tool-card:hover{transform:translateY(-4px)!important;border-color:rgba(242,168,29,.35)!important;box-shadow:0 24px 40px -24px rgba(0,0,0,.55)}
.card .corner{display:none}
.card .ic{border-radius:14px;width:52px;height:52px;transform:none}
html[data-theme="dark"] .card .ic.t-gold{background:rgba(242,168,29,.1);color:var(--pro-gold);border:1px solid rgba(242,168,29,.22)}
html[data-theme="dark"] .card .ic.t-teal,html[data-theme="dark"] .card .ic.t-mint{background:rgba(95,195,176,.1);color:var(--pro-mint);border:1px solid rgba(95,195,176,.22)}
html[data-theme="dark"] .card .ic.t-navy{background:rgba(143,183,255,.1);color:#8FB7FF;border:1px solid rgba(143,183,255,.22)}
.card h3{font-family:var(--font-head);font-weight:600}
.fx-glow{background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%),rgba(242,168,29,.09),transparent 60%)}

/* ---------- inner page heads: clean band, no torn edge ---------- */
main>section.section:first-child>.container>.section-head::after,
main>section.section:first-child>.container>[data-frag="guides-head"]>.section-head::after,
html body .d-head::after,.section.course-hero::after,.section.guide-hero::after{display:none!important}
main>section.section:first-child>.container>.section-head::before,
main>section.section:first-child>.container>[data-frag="guides-head"]>.section-head::before,
html body .d-head::before{background:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px) 0 0/56px 56px,linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px) 0 0/56px 56px,radial-gradient(700px 360px at 80% 0%,rgba(242,168,29,.12),transparent 65%),#0B1424!important;border-bottom:1px solid rgba(255,255,255,.08)}
main>section.section:first-child>.container>.section-head .eyebrow,
main>section.section:first-child>.container>[data-frag="guides-head"] .eyebrow,
html body .d-head .d-eyebrow,.section.course-hero .eyebrow,.section.guide-hero .eyebrow{font-family:var(--font);font-size:.85rem;font-weight:700;color:var(--pro-gold)}
.section.course-hero,.section.guide-hero{background:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px) 0 0/56px 56px,linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px) 0 0/56px 56px,radial-gradient(700px 360px at 80% 0%,rgba(242,168,29,.12),transparent 65%),#0B1424!important;border-bottom:1px solid rgba(255,255,255,.08)}

/* ---------- CTA band ---------- */
.cta-band{background:linear-gradient(120deg,#132139,#0F1A2E 60%)!important;border:1px solid rgba(255,255,255,.08);border-radius:24px;box-shadow:none}
.cta-band::before{background:radial-gradient(500px 260px at 15% 0%,rgba(242,168,29,.14),transparent 70%)!important;-webkit-mask:none!important;mask:none!important}
.cta-band h2{font-family:var(--font-head);font-weight:600}

/* ---------- footer ---------- */
.site-footer,html[data-theme="dark"] .site-footer{background:#08101D!important;border-top:1px solid rgba(255,255,255,.08)}
.footer-col h4{font-family:var(--font-head);font-weight:600}
.footer-social a{border-radius:12px;background:#0F1A2E;border:1px solid rgba(255,255,255,.08)}
.footer-social a:hover{background:var(--pro-gold);color:#0A1120;border-color:var(--pro-gold)}
.footer-bottom{border-top-color:rgba(255,255,255,.08)}

/* ---------- forms + chips in dark ---------- */
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0A1120;color:var(--ink);border-color:rgba(255,255,255,.12)}
html[data-theme="dark"] .filter-btn{background:#0F1A2E}

/* =========================================================
   الشريط المتحرك
   ========================================================= */
.bk-tk{position:relative;display:flex;align-items:stretch;overflow:hidden;font-size:.86rem;font-weight:600;line-height:1;z-index:60;direction:rtl}
.bk-tk.s-navy{background:#0D1628;color:#dfe6f0;border-bottom:1px solid rgba(255,255,255,.07)}
.bk-tk.s-gold{background:#F2A81D;color:#0A1120}
.bk-tk.s-teal{background:#1d5f66;color:#fff}
.bk-tk-l{flex:none;display:flex;align-items:center;padding:0 1rem;font-weight:800;font-size:.78rem;background:#F2A81D;color:#0A1120;position:relative;z-index:2}
.bk-tk.s-gold .bk-tk-l{background:#0A1120;color:#F2A81D}
.bk-tk-v{flex:1;display:flex;overflow:hidden;mask:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);-webkit-mask:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.bk-tk-r{display:flex;flex:none;min-width:100%;animation:bkTick var(--tk-s,40s) linear infinite}
.bk-tk:hover .bk-tk-r,.bk-tk:focus-within .bk-tk-r{animation-play-state:paused}
.bk-tk-i{display:inline-flex;align-items:center;gap:.7rem;padding:.62rem 1.6rem;white-space:nowrap;color:inherit}
.bk-tk-i i{width:6px;height:6px;border-radius:50%;background:#F2A81D;flex:none}
.bk-tk.s-gold .bk-tk-i i{background:#0A1120}
a.bk-tk-i:hover span{text-decoration:underline;text-underline-offset:3px}
@keyframes bkTick{from{transform:translateX(0)}to{transform:translateX(100%)}}
html[dir="ltr"] .bk-tk{direction:ltr}
html[dir="ltr"] .bk-tk-r{animation-name:bkTickL}
@keyframes bkTickL{from{transform:translateX(0)}to{transform:translateX(-100%)}}
@media (prefers-reduced-motion:reduce){.bk-tk-r{animation:none}.bk-tk-v{overflow-x:auto}}

/* =========================================================
   الصفحة الرئيسية — الواجهة
   ========================================================= */
.hero.hero-pro{background:#0A1120;color:#E9EEF6;padding:clamp(2.6rem,6vw,4.5rem) 0 0;border-bottom:1px solid rgba(255,255,255,.08)}
.hero.hero-pro::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:64px 64px;-webkit-mask:radial-gradient(ellipse 70% 80% at 30% 40%,#000 15%,transparent 75%);mask:radial-gradient(ellipse 70% 80% at 30% 40%,#000 15%,transparent 75%)}
.hero-pro .fx-net{opacity:.55}
.hero-pro .fx-wm{display:none!important}
.hero-pro .hero-inner{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:clamp(2rem,5vw,4rem);align-items:end;z-index:2}
.hero-pro .hero-copy{padding-bottom:clamp(2.4rem,5vw,4rem)}
.hero-pro .eyebrow{display:flex!important;width:max-content;font-family:var(--font)!important;font-size:.82rem!important;font-weight:700;color:var(--pro-mint)!important;transform:none!important;padding:.42rem .9rem;border-radius:999px;background:rgba(95,195,176,.1);border:1px solid rgba(95,195,176,.25);margin-bottom:1.3rem;letter-spacing:0}
.hero-pro .eyebrow::before{width:7px!important;height:7px!important;border-radius:50%!important;background:var(--pro-mint)!important}
.hero-pro .display{display:block!important;font-size:clamp(2.6rem,5.6vw,4.4rem);font-weight:600;color:#fff;line-height:1.12}
.hero-pro .display::after{display:none!important}
.hero-pro .fx-typed{font-family:var(--font-head);font-size:clamp(1.1rem,2.2vw,1.45rem);font-weight:500;color:#c9d3e1;margin-top:.9rem}
.hero-pro .fx-typed b{color:var(--pro-gold);font-weight:500;font-family:var(--font-head)}
.hero-pro p.lead{color:#9AA8BE;font-size:clamp(1rem,1.6vw,1.12rem);line-height:1.9;margin-top:1rem;max-width:52ch}
.hero-pro .hero-cta{margin-top:1.8rem;gap:.75rem}
.hero-panels{display:grid;grid-template-columns:1fr 1fr;gap:.9rem;margin-top:2rem;max-width:560px}
.hero-panels .hp{background:rgba(15,26,46,.85);border:1px solid rgba(255,255,255,.08);border-radius:var(--r-md);padding:1.1rem 1.2rem}
.hero-panels .hp b{display:block;font-size:.74rem;font-weight:800;color:var(--pro-gold);margin-bottom:.7rem}
.hero-panels .hp-2 b{color:var(--pro-mint)}
.hero-panels ul{display:flex;flex-direction:column;gap:.5rem}
.hero-panels li{display:flex;align-items:center;gap:.55rem;font-size:.9rem;color:#E9EEF6}
.hero-panels svg{width:15px;height:15px;flex:none;fill:none;stroke:var(--pro-gold);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

.hero-side{position:relative;align-self:stretch;min-height:clamp(420px,46vw,600px)}
.hero-me{position:absolute;inset:0;pointer-events:none}
.hero-me i{position:absolute;left:50%;top:44%;border-radius:50%;transform:translate(-50%,-50%)}
.hero-me .g{width:82%;aspect-ratio:1;background:radial-gradient(circle,rgba(242,168,29,.26),rgba(242,168,29,0) 66%)}
.hero-me .r1{width:76%;aspect-ratio:1;border:1px solid rgba(242,168,29,.32)}
.hero-me .r2{width:94%;aspect-ratio:1;border:1px dashed rgba(255,255,255,.1);animation:fxSpin 60s linear infinite}
html .hero-pro .hero-me img{display:block!important;position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:auto;height:88%;max-width:96%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 20px 40px rgba(0,0,0,.45));-webkit-mask:linear-gradient(180deg,#000 80%,transparent);mask:linear-gradient(180deg,#000 80%,transparent);animation:none}
/* floating badges (the admin «notes») */
html .hero-pro .hero-art{position:absolute!important;inset:0;min-height:0!important;max-width:none!important;margin:0!important;perspective:none;pointer-events:none}
html .hero-pro .hero-art .note{pointer-events:auto;position:absolute;width:auto;max-width:220px;rotate:0deg;transform:none!important;translate:calc(var(--px,0px) * var(--d,1)) calc(var(--py,0px) * var(--d,1));background:rgba(15,26,46,.92)!important;color:#E9EEF6;border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:.75rem .95rem;font-size:.8rem;font-weight:600;line-height:1.55;box-shadow:0 20px 40px -16px rgba(0,0,0,.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
html .hero-pro .hero-art .note::before{display:none}
html .hero-pro .hero-art .note small{font-family:var(--font);font-size:.72rem;font-weight:800;color:var(--pro-gold)!important;margin-bottom:2px}
html .hero-pro .hero-art .note.n2 small{color:var(--pro-mint)!important}
html .hero-pro .hero-art .note.n3 small{color:#8FB7FF!important}
html .hero-pro .hero-art .note.n1{top:16%;inset-inline-start:auto;inset-inline-end:-2%}
html .hero-pro .hero-art .note.n2{top:46%;inset-inline-start:-4%;inset-inline-end:auto}
html .hero-pro .hero-art .note.n3{bottom:12%;top:auto;inset-inline-end:-2%;inset-inline-start:auto}
.hero-soc{position:absolute;bottom:clamp(1.2rem,3vw,2rem);inset-inline-start:-8px;display:flex;flex-direction:column;gap:.55rem;z-index:3}
.hero-soc a{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:rgba(15,26,46,.92);border:1px solid rgba(255,255,255,.1);color:#E9EEF6;transition:background .2s,color .2s,transform .2s}
.hero-soc a:hover{background:var(--pro-gold);color:#0A1120;transform:translateY(-2px)}
.hero-soc svg{width:20px;height:20px}

/* stats bar under the hero */
.hero-bar{position:relative;z-index:3;background:var(--paper)}
.hero-bar .hero-stats{display:flex;flex-wrap:nowrap;gap:0;margin:0;background:var(--card);border:1px solid var(--line);border-top:0;border-radius:0 0 var(--r-lg) var(--r-lg);overflow:hidden}
.hero-bar .stat{flex:1;min-width:0;padding:1.3rem 1.5rem;border-inline-start:1px solid var(--line);display:flex;flex-direction:column;gap:.15rem}
.hero-bar .stat:first-child{border-inline-start:0}
.hero-bar .stat[hidden]{display:none}
.hero-bar .stat .num{font-family:var(--font-head)!important;font-size:clamp(1.6rem,3vw,2.3rem)!important;font-weight:600!important;color:var(--ink)!important;line-height:1.15}
.hero-bar .stat .lbl{font-size:.82rem;color:var(--muted)!important;font-weight:600}
.hero-bar a.stat:hover{background:rgba(242,168,29,.06)}
.hero-bar a.stat:hover .num{color:var(--pro-gold)!important}

@media (max-width:900px){
  .hero-pro .hero-inner{grid-template-columns:1fr;align-items:stretch}
  .hero-side{order:-1;min-height:360px;max-width:440px;width:100%;margin-inline:auto}
  html .hero-pro .hero-art .note{max-width:170px;font-size:.74rem}
  html .hero-pro .hero-art .note.n2{inset-inline-start:0}
  html .hero-pro .hero-art .note.n1{inset-inline-end:0}
  .hero-pro .hero-copy{padding-bottom:2.4rem}
  .hero-bar .hero-stats{flex-wrap:wrap}
  .hero-bar .stat{flex:1 1 33%;border-top:1px solid var(--line)}
}
@media (max-width:560px){
  .hero-panels{grid-template-columns:1fr}
  .hero-bar .stat{flex:1 1 50%;padding:1rem 1.1rem}
  html .hero-pro .hero-art{display:none!important}
  .hero-soc{flex-direction:row;bottom:.6rem;inset-inline-start:50%;transform:translateX(-50%)}
  html[dir="rtl"] .hero-soc{transform:translateX(50%)}
  .hero-soc a{width:38px;height:38px}
}
@media (prefers-reduced-motion:reduce){.hero-me .r2{animation:none}}

/* =========================================================
   الوضع النهاري (لو الزائر اختاره) — نفس الشكل بألوان فاتحة
   ========================================================= */
html:not([data-theme="dark"]){--paper:#F6F4F0;--card:#fff;--line:rgba(24,52,89,.1)}
html:not([data-theme="dark"]) body{background:#F6F4F0}
html:not([data-theme="dark"]) .hero-bar .stat .num{color:#183459!important}
