/* ستايل «الهالة» — كل الأسماء ببادئة .sbh- كي لا تتصادم مع app.css.
   القائمة داكنة في الوضعين (هويتها شفق بنفسجي على ليل)، والمحتوى يتبع
   ثيم اللوحة. الأرقام لاتينية والخطّ Tajawal المعرَّف في app.css. */

.sbh-wrap{
  --sbh-bg-0:#0d0818;
  --sbh-bg-1:#140c24;
  --sbh-ink:#f3eefb;
  --sbh-ink-2:#cfc4e4;
  --sbh-ink-3:#8f83a8;
  --sbh-ink-4:#6a6084;
  --sbh-hair:rgba(255,255,255,.07);
  --sbh-hair-2:rgba(255,255,255,.12);
  --sbh-brand:#7c4dbd;
  --sbh-brand-2:#a97fd6;
  --sbh-live:#34d399;
  --sbh-ease-out:cubic-bezier(.22,1,.36,1);
  --sbh-ease-spring:cubic-bezier(.34,1.32,.5,1);
  --sbh-w:280px;
  display:contents;
}
.sbh-wrap *,.sbh-wrap *::before,.sbh-wrap *::after{box-sizing:border-box}
.sbh-wrap button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-align:inherit}
.sbh-wrap svg{display:block}
.sbh-wrap [hidden]{display:none!important}

/* ============ اللوحة ============ */
.sbh{
  /* النواة تجعل #sbStyleRoot ‏display:contents وتحجز للمحتوى --sb-width،
     فالقائمة نفسها ثابتة على يمين الشاشة */
  position:fixed;top:0;bottom:0;right:0;z-index:30;
  width:var(--sbh-w);
  display:flex;flex-direction:column;isolation:isolate;overflow:hidden;
  direction:rtl;color:var(--sbh-ink);color-scheme:dark;
  font-family:"Tajawal","Cairo","Segoe UI",Tahoma,sans-serif;font-size:14px;line-height:1.5;
  -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(124,77,189,.16), transparent 60%),
    linear-gradient(180deg,var(--sbh-bg-1) 0%, #110a1f 45%, var(--sbh-bg-0) 100%);
  border-inline-end:1px solid var(--sbh-hair);
  box-shadow:-1px 0 0 rgba(0,0,0,.4), 12px 0 40px -20px rgba(0,0,0,.6);
}
/* حبيبات خفيفة */
.sbh::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.35;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* الشفق */
.sbh-aurora{position:absolute;inset:-40px -30px auto -30px;height:220px;z-index:-1;pointer-events:none;overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg,#000 30%,transparent 100%);mask-image:linear-gradient(180deg,#000 30%,transparent 100%)}
.sbh-aurora i{position:absolute;border-radius:50%;filter:blur(34px);opacity:.55;will-change:transform}
.sbh-aurora i:nth-child(1){width:190px;height:120px;top:40px;right:10px;background:radial-gradient(closest-side,#8b5cf6,transparent);animation:sbh-aur1 17s ease-in-out infinite alternate}
.sbh-aurora i:nth-child(2){width:160px;height:110px;top:60px;right:120px;background:radial-gradient(closest-side,#ec4899,transparent);opacity:.32;animation:sbh-aur2 14s ease-in-out infinite alternate}
.sbh-aurora i:nth-child(3){width:150px;height:90px;top:20px;right:70px;background:radial-gradient(closest-side,#22d3ee,transparent);opacity:.2;animation:sbh-aur3 19s ease-in-out infinite alternate}
@keyframes sbh-aur1{0%{transform:translate(0,0) scale(1)}50%{transform:translate(-50px,14px) scale(1.15)}100%{transform:translate(-20px,-8px) scale(.95)}}
@keyframes sbh-aur2{0%{transform:translate(0,0) scale(1) rotate(0)}50%{transform:translate(60px,-10px) scale(1.2) rotate(20deg)}100%{transform:translate(20px,18px) scale(.9) rotate(-10deg)}}
@keyframes sbh-aur3{0%{transform:translate(0,0) scale(.9)}50%{transform:translate(-40px,26px) scale(1.25)}100%{transform:translate(30px,6px) scale(1)}}

/* الشعار */
.sbh-brand{display:flex;align-items:center;gap:12px;padding:22px 20px 16px;position:relative;flex:0 0 auto}
.sbh-logo{
  position:relative;width:46px;height:46px;flex:0 0 46px;border-radius:14px;overflow:hidden;
  background:linear-gradient(160deg,rgba(255,255,255,.10),rgba(255,255,255,.02));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10), 0 10px 26px -10px rgba(139,92,246,.7);
  display:grid;place-items:start center;
}
.sbh-logo img{height:52px;width:auto;margin-top:3px;filter:drop-shadow(0 2px 6px rgba(169,127,214,.5)) saturate(1.1) brightness(1.08);user-select:none}
.sbh-brand-txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.15}
.sbh-brand-txt b{font-weight:900;font-size:19px;background:linear-gradient(90deg,#fff,#e3d3fb 60%,#c9a8f0);-webkit-background-clip:text;background-clip:text;color:transparent}
.sbh-brand-txt span{font-size:11.5px;color:var(--sbh-ink-3);font-weight:500;margin-top:3px}
.sbh-bl{display:flex;align-items:baseline;gap:6px}
.sbh-bl em{font-style:normal;font-size:12px;font-weight:700;color:var(--sbh-brand-2)}
.sbh-close{display:none;flex:0 0 36px;width:36px;height:36px;border-radius:11px;place-items:center;color:var(--sbh-ink-3);
  transition:color .2s,background-color .2s}
.sbh-close svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.sbh-close:hover{color:#fff;background:rgba(255,255,255,.07)}
.sbh-close:focus-visible{outline:none;box-shadow:inset 0 0 0 1.5px rgba(169,127,214,.8)}

/* البحث داخل القائمة */
.sbh-quick{flex:0 0 auto;margin:0 16px 8px;display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:11px;
  background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px var(--sbh-hair);color:var(--sbh-ink-3);cursor:text;
  transition:background-color .2s,box-shadow .2s}
.sbh-quick:hover{background:rgba(255,255,255,.055);box-shadow:inset 0 0 0 1px var(--sbh-hair-2)}
.sbh-quick:focus-within{background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(169,127,214,.55),0 0 0 3px rgba(124,77,189,.18)}
.sbh-quick svg{width:15px;height:15px;flex:0 0 15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;opacity:.8}
.sbh-filter{flex:1;min-width:0;height:100%;border:0;outline:none;background:transparent;color:var(--sbh-ink);
  font:500 12.5px/1 "Tajawal","Cairo",sans-serif;padding:0;margin:0;-webkit-appearance:none;appearance:none}
.sbh-filter::placeholder{color:var(--sbh-ink-3);opacity:1}
.sbh-filter::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:14px;height:14px;cursor:pointer;opacity:.6;
  background:no-repeat center/14px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfc4e4' stroke-width='2.4' stroke-linecap='round'><path d='M6 6l12 12M18 6 6 18'/></svg>")}

/* التمرير */
.sbh-scroll{
  position:relative;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
  padding:6px 12px 18px;overscroll-behavior:contain;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 14px,#000 calc(100% - 22px),transparent 100%);
          mask-image:linear-gradient(180deg,transparent 0,#000 14px,#000 calc(100% - 22px),transparent 100%);
  scrollbar-width:thin;scrollbar-color:transparent transparent;transition:scrollbar-color .3s;
}
.sbh-scroll:hover,.sbh-scroll:focus-within{scrollbar-color:rgba(255,255,255,.14) transparent}
.sbh-scroll::-webkit-scrollbar{width:8px}
.sbh-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.08);border-radius:8px;border:2px solid transparent;background-clip:content-box}
.sbh-scroll:hover::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.16)}
.sbh-nav{position:relative}
.sbh-empty{margin:18px 10px;font-size:12.5px;color:var(--sbh-ink-3);text-align:center}

/* الشرائح */
.sbh-band{margin-top:14px}
.sbh-band:first-of-type{margin-top:4px}
.sbh-band-label{display:flex;align-items:center;gap:10px;padding:8px 10px 6px;font-size:11px;font-weight:700;color:var(--sbh-ink-4)}
.sbh-band-label::before{content:"";width:5px;height:5px;border-radius:2px;background:currentColor;opacity:.7;transform:rotate(45deg)}
.sbh-band-label::after{content:"";flex:1;height:1px;background:linear-gradient(270deg,var(--sbh-hair),transparent)}

/* الأقسام */
.sbh-grp{--c:#a78bfa;position:relative;margin:2px 0}
.sbh-head{
  position:relative;z-index:1;width:100%;display:flex;align-items:center;gap:11px;
  min-height:42px;padding:6px 8px 6px 10px;border-radius:12px;text-align:start;
  color:var(--sbh-ink-2);transition:color .25s,background-color .25s;outline:none;
}
.sbh-head::after{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.075) 50%,transparent 65%) no-repeat;
  background-size:300% 100%;background-position:0% 0;opacity:0;
}
.sbh-head:hover{background:rgba(255,255,255,.035);color:var(--sbh-ink)}
.sbh-head:hover::after{animation:sbh-sheen .9s var(--sbh-ease-out) forwards}
@keyframes sbh-sheen{0%{background-position:0% 0;opacity:1}100%{background-position:100% 0;opacity:1}}
.sbh-head:focus-visible{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--c) 70%,transparent),0 0 0 3px color-mix(in srgb,var(--c) 18%,transparent)}

.sbh-tile{
  position:relative;flex:0 0 30px;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;
  color:var(--c);
  background:color-mix(in srgb,var(--c) 15%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 22%,transparent),inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .3s var(--sbh-ease-spring),box-shadow .35s var(--sbh-ease-out),background-color .35s;
}
.sbh-tile svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sbh-head:hover .sbh-tile{transform:translateY(-2px)}
.sbh-head:active .sbh-tile{transform:translateY(0) scale(.94)}
.sbh-grp.sbh-open .sbh-tile,.sbh-grp.sbh-active-home .sbh-tile,.sbh-nav.sbh-filtering .sbh-grp.sbh-fhit .sbh-tile{
  background:color-mix(in srgb,var(--c) 24%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 55%,transparent),
             0 0 0 4px color-mix(in srgb,var(--c) 9%,transparent),
             0 6px 20px -4px color-mix(in srgb,var(--c) 60%,transparent);
}
.sbh-htitle{flex:1;min-width:0;font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .25s}
.sbh-grp.sbh-open .sbh-head{color:#fff}
.sbh-grp.sbh-open .sbh-htitle{font-weight:700}
.sbh-grp.sbh-has-active:not(.sbh-open) .sbh-htitle,.sbh-grp.sbh-active-home .sbh-htitle{color:#fff}
.sbh-lock{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;font-size:10px;font-weight:700;color:#fca5a5;
  padding:2px 6px 2px 5px;border-radius:999px;background:rgba(248,113,113,.10);box-shadow:inset 0 0 0 1px rgba(248,113,113,.22)}
.sbh-lock svg{width:10px;height:10px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* السهم: «لليسار» في RTL ويدور للأسفل حين يُفتح */
.sbh-chev{flex:0 0 18px;width:18px;height:18px;color:var(--sbh-ink-4);transition:transform .3s var(--sbh-ease-out),color .25s}
.sbh-chev svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sbh-head:hover .sbh-chev{color:var(--sbh-ink-3)}
.sbh-grp.sbh-open .sbh-chev{transform:rotate(-90deg);color:var(--c)}
.sbh-direct .sbh-chev{visibility:hidden}
.sbh-nav.sbh-filtering .sbh-chev{opacity:0}

/* الشارات */
.sbh-badge{
  flex:0 0 auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-grid;place-items:center;
  font-family:"Tajawal","Cairo",sans-serif;font-size:11px;font-weight:800;color:#fff;line-height:1;
  direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;
  background:linear-gradient(180deg,#f472b6,#e23d8c);
  box-shadow:0 0 0 1px rgba(255,255,255,.12) inset,0 4px 12px -3px rgba(236,72,153,.65);
}
.sbh-badge.sbh-pop{animation:sbh-pop .6s var(--sbh-ease-spring) both}
.sbh-head .sbh-badge{transition:opacity .2s,transform .25s var(--sbh-ease-out)}
.sbh-grp.sbh-open .sbh-head .sbh-badge,.sbh-nav.sbh-filtering .sbh-head .sbh-badge{opacity:0;transform:scale(.6)}
@keyframes sbh-pop{0%{transform:scale(0);opacity:0}60%{transform:scale(1.18);opacity:1}100%{transform:scale(1)}}

/* نقطة البثّ الحيّ */
.sbh-live{position:relative;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--sbh-live);box-shadow:0 0 8px rgba(52,211,153,.8)}
.sbh-live::before,.sbh-live::after{content:"";position:absolute;inset:0;border-radius:50%;border:1.5px solid var(--sbh-live);animation:sbh-ping 2.2s var(--sbh-ease-out) infinite}
.sbh-live::after{animation-delay:1.1s}
@keyframes sbh-ping{0%{transform:scale(1);opacity:.9}100%{transform:scale(3);opacity:0}}

/* الطيّ: الصفوف الشبكية تتحرّك من 0 إلى ارتفاع المحتوى */
.sbh-body{display:grid;grid-template-rows:0fr;visibility:hidden;
  transition:grid-template-rows .3s var(--sbh-ease-out),visibility 0s linear .3s}
.sbh-grp.sbh-open .sbh-body,.sbh-nav.sbh-filtering .sbh-grp.sbh-fhit .sbh-body{grid-template-rows:1fr;visibility:visible;
  transition:grid-template-rows .3s var(--sbh-ease-out),visibility 0s}
.sbh-inner{min-height:0;overflow:hidden;position:relative}
.sbh-list{list-style:none;margin:0;padding:4px 0 8px;padding-inline-start:36px;position:relative}
/* خطّ القسم المفتوح يُرسم من أعلى إلى أسفل */
.sbh-rail{
  position:absolute;top:2px;bottom:12px;inset-inline-start:22px;width:2px;border-radius:2px;
  background:linear-gradient(180deg,var(--c) 0%,color-mix(in srgb,var(--c) 55%,transparent) 55%,transparent 100%);
  box-shadow:0 0 10px color-mix(in srgb,var(--c) 45%,transparent);
  transform:scaleY(0);transform-origin:top;transition:transform .2s var(--sbh-ease-out);
}
.sbh-grp.sbh-open .sbh-rail,.sbh-nav.sbh-filtering .sbh-grp.sbh-fhit .sbh-rail{transform:scaleY(1);transition:transform .34s var(--sbh-ease-out) .06s}

/* ظهور البنود متتابعاً */
.sbh-list > li{opacity:0;transform:translateY(-6px);transition:opacity .16s ease,transform .2s var(--sbh-ease-out)}
.sbh-grp.sbh-open .sbh-list > li,.sbh-nav.sbh-filtering .sbh-grp.sbh-fhit .sbh-list > li{
  opacity:1;transform:none;
  transition:opacity .3s ease,transform .38s var(--sbh-ease-out);
  transition-delay:calc(60ms + var(--i,0) * 20ms);
}
.sbh-nav.sbh-filtering .sbh-list > li.sbh-fmiss,.sbh-nav.sbh-filtering .sbh-sub{display:none}
.sbh-nav.sbh-filtering .sbh-grp:not(.sbh-fhit){display:none}

.sbh-sub{display:flex;align-items:center;gap:8px;padding:12px 10px 5px 4px;font-size:10.5px;font-weight:700;color:var(--sbh-ink-4)}
.sbh-sub::after{content:"";flex:1;height:1px;background:linear-gradient(270deg,rgba(255,255,255,.14),transparent)}
.sbh-list > li.sbh-sub:first-child{padding-top:6px}

.sbh-item{
  position:relative;z-index:1;width:100%;display:flex;align-items:center;gap:8px;min-height:34px;padding:6px 12px 6px 10px;
  border-radius:10px;font-size:13.5px;font-weight:500;color:var(--sbh-ink-3);outline:none;text-align:start;
  transition:color .2s,background-color .2s,padding .35s var(--sbh-ease-out);
}
.sbh-t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sbh-item::before{ /* شرطة صغيرة تخرج من الخطّ */
  content:"";position:absolute;inset-inline-start:-14px;top:50%;width:8px;height:2px;border-radius:2px;margin-top:-1px;
  background:var(--c);opacity:0;transform:scaleX(0);transform-origin:right;transition:opacity .2s,transform .25s var(--sbh-ease-out);
}
.sbh-item:hover{color:var(--sbh-ink);background:rgba(255,255,255,.03)}
.sbh-item:hover::before{opacity:.7;transform:scaleX(1)}
.sbh-item:focus-visible{color:var(--sbh-ink);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--c) 65%,transparent)}
.sbh-item.sbh-active{color:#fff;font-weight:700;background:transparent;padding-inline-start:24px}
.sbh-item.sbh-active::before{opacity:1;transform:scaleX(1);box-shadow:0 0 8px var(--c)}
.sbh-item .sbh-live{width:7px;height:7px;flex-basis:7px}

/* الحبّة الزجاجية المشتركة للبند النشط */
.sbh-ind{
  position:absolute;top:0;right:0;z-index:0;pointer-events:none;border-radius:10px;opacity:0;
  --ic:#a78bfa;
  background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.045));
  -webkit-backdrop-filter:blur(10px) saturate(140%);backdrop-filter:blur(10px) saturate(140%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10),inset 0 1px 0 rgba(255,255,255,.12),
             0 8px 24px -10px rgba(0,0,0,.7),0 0 22px -8px color-mix(in srgb,var(--ic) 55%,transparent);
  transition:transform .42s var(--sbh-ease-spring),width .42s var(--sbh-ease-spring),height .42s var(--sbh-ease-spring),opacity .25s ease;
  will-change:transform;
}
.sbh-ind::after{
  content:"";position:absolute;right:11px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;
  background:var(--ic);box-shadow:0 0 0 3px color-mix(in srgb,var(--ic) 22%,transparent),0 0 12px 1px var(--ic);
  transition:background-color .3s,box-shadow .3s,opacity .2s;
}
.sbh-ind.sbh-home::after,.sbh-ind.sbh-parked::after{opacity:0}
.sbh-ind.sbh-show{opacity:1}
.sbh-ind.sbh-show.sbh-parked{opacity:.6}
.sbh-nav.sbh-tracking .sbh-ind{transition:opacity .25s ease}
.sbh-ind.sbh-blip{animation:sbh-blip .5s var(--sbh-ease-out)}
@keyframes sbh-blip{0%{filter:brightness(1.6)}100%{filter:none}}

/* بطاقة المستخدم */
.sbh-foot{flex:0 0 auto;padding:12px 12px 14px;padding-bottom:max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--sbh-hair);background:linear-gradient(180deg,transparent,rgba(0,0,0,.18))}
.sbh-user{display:flex;align-items:center;gap:10px;padding:8px;border-radius:14px;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px var(--sbh-hair)}
.sbh-av{position:relative;flex:0 0 36px;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;
  font-weight:800;font-size:13px;color:#fff;background:linear-gradient(140deg,#a97fd6,#7c4dbd 55%,#5b2f9e);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 6px 16px -6px rgba(124,77,189,.8)}
.sbh-av::after{content:"";position:absolute;bottom:-2px;left:-2px;width:10px;height:10px;border-radius:50%;background:var(--sbh-live);box-shadow:0 0 0 2.5px #120b20}
.sbh-user.sbh-anon .sbh-av::after{display:none}
.sbh-who{flex:1;min-width:0;line-height:1.25}
.sbh-who b{display:block;font-weight:700;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sbh-who span{font-size:11.5px;color:var(--sbh-ink-3);display:inline-flex;align-items:center;gap:4px}
.sbh-who span svg{width:11px;height:11px;stroke:#fbbf24;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sbh-out{flex:0 0 34px;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--sbh-ink-3);
  transition:color .2s,background-color .2s,transform .2s var(--sbh-ease-spring);outline:none}
.sbh-out svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sbh-out:hover{color:#fda4af;background:rgba(244,63,94,.10)}
.sbh-out:active{transform:scale(.92)}
.sbh-out:focus-visible{box-shadow:inset 0 0 0 1.5px rgba(253,164,175,.7)}

/* ============ الجوّال: درج جانبي ============ */
/* (أ) النواة تملك الدرج (html[data-sbc-drawer]، زرّ القائمة في الشريط
   العلوي، الستارة sbc-scrim بطبقة 54، وEscape) — الهالة تنزلق فوقها. */
.sbh-toggle,.sbh-scrim{display:none}
html[data-sbc-drawer] .sbh-wrap.sbh-core-drawer .sbh{
  z-index:55;width:min(300px,86vw);
  transform:translate3d(105%,0,0);visibility:hidden;
  transition:transform .34s var(--sbh-ease-out),visibility 0s linear .34s;
}
html[data-sbc-drawer][data-sbc-drawer-open] .sbh-wrap.sbh-core-drawer .sbh{
  transform:none;visibility:visible;
  box-shadow:-24px 0 60px -10px rgba(0,0,0,.55);
  transition:transform .34s var(--sbh-ease-out),visibility 0s;
}
html[data-sbc-drawer] .sbh-wrap.sbh-core-drawer .sbh-close{display:grid}

/* (ب) احتياط بلا درج من النواة: درجنا الخاص بزرّ عائم وستارة */
@media (max-width:980px){
  .sbh-wrap.sbh-own-drawer.sbh-mobile .sbh{
    z-index:1000;width:min(300px,86vw);
    transform:translate3d(105%,0,0);visibility:hidden;
    transition:transform .34s var(--sbh-ease-out),visibility 0s linear .34s;
    box-shadow:-24px 0 60px -10px rgba(0,0,0,.55);
  }
  .sbh-wrap.sbh-own-drawer.sbh-mobile.sbh-drawer-open .sbh{transform:none;visibility:visible;transition:transform .34s var(--sbh-ease-out),visibility 0s}
  .sbh-wrap.sbh-own-drawer.sbh-mobile .sbh-close{display:grid}
  .sbh-wrap.sbh-own-drawer.sbh-mobile .sbh-scrim{
    display:block;position:fixed;inset:0;z-index:999;background:rgba(10,5,20,.5);
    -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
    opacity:0;pointer-events:none;transition:opacity .3s ease;
  }
  .sbh-wrap.sbh-own-drawer.sbh-mobile.sbh-drawer-open .sbh-scrim{opacity:1;pointer-events:auto}
  .sbh-wrap.sbh-own-drawer.sbh-mobile .sbh-toggle{
    display:grid;place-items:center;position:fixed;z-index:998;
    right:16px;bottom:max(16px,env(safe-area-inset-bottom));
    width:52px;height:52px;border-radius:16px;color:#fff;
    background:linear-gradient(150deg,#2a1745,#140c24);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 0 0 4px rgba(124,77,189,.16),0 14px 30px -8px rgba(124,77,189,.7);
    transition:transform .25s var(--sbh-ease-spring),opacity .2s;
  }
  .sbh-wrap.sbh-own-drawer.sbh-mobile .sbh-toggle svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
  .sbh-wrap.sbh-own-drawer.sbh-mobile .sbh-toggle:hover{transform:translateY(-2px)}
  .sbh-wrap.sbh-own-drawer.sbh-mobile .sbh-toggle:active{transform:scale(.94)}
  .sbh-wrap.sbh-own-drawer.sbh-mobile .sbh-toggle:focus-visible{outline:2px solid #a97fd6;outline-offset:3px}
  .sbh-wrap.sbh-own-drawer.sbh-mobile.sbh-drawer-open .sbh-toggle{opacity:0;pointer-events:none}
  .sbh-toggle-dot{position:absolute;top:9px;left:9px;width:9px;height:9px;border-radius:50%;background:#f472b6;box-shadow:0 0 0 2px #1d1030,0 0 8px #ec4899}
  html.sbh-drawer-lock,html.sbh-drawer-lock body{overflow:hidden}
}

/* ============ حركة مخفّفة ============ */
@media (prefers-reduced-motion:reduce){
  .sbh-wrap *,.sbh-wrap *::before,.sbh-wrap *::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;transition-delay:0ms!important;scroll-behavior:auto!important;
  }
  .sbh-aurora i{animation:none!important}
  .sbh-live::before,.sbh-live::after{display:none}
}
