/* طبقة الثيم الأخيرة: أسود + فريمات برتقالية (تدرّج لامع برتقالي ← عسلي). بتتحمّل بعد كل الستايلات في كل الصفحات */
body{background:var(--bg)}

/* ---------- فريم هولوجرام للكروت ---------- */
/* الخلفية طبقتين: لون الكارت جوّه (padding-box) + التدرّج اللامع على الإطار (border-box) */
.card,.cd,.pc,.plan,.dia,.pv,.endc,.nd,.rt .core,.rt .flow div,details.q,details.g,body.dash .hero,#how .steps li,.pk div,.chs span,.ptype button,.stat3 div,.fc,.watch,.wnum{
 --cb:var(--surface);
 border:1px solid transparent!important;
 background:linear-gradient(var(--cb),var(--cb)) padding-box,var(--holo) border-box!important;
 background-size:100% 100%,240% 240%!important;background-position:0 0,0% 50%!important;
 box-shadow:0 0 0 1px rgba(0,0,0,.4),0 14px 34px -22px rgba(255,178,36,.45),0 10px 28px -24px rgba(255,122,24,.5)!important}
.card{--cb:var(--surface)}.pk div,.chs span,.wnum,.ptype button,.stat3 div{--cb:var(--bg2)}
.card:hover,.cd:hover,.pc:hover,.plan:hover,details.q:hover,details.g:hover,#how .steps li:hover,.nd:hover,.rt .flow div:hover,.pk div:hover,.chs span:hover,.ptype button:hover{
 animation:holo 3.5s linear infinite;box-shadow:0 0 0 1px rgba(0,0,0,.4),0 18px 44px -20px rgba(255,178,36,.6),0 14px 36px -22px rgba(255,122,24,.65)!important}
@keyframes holo{to{background-position:0 0,240% 50%}}
.plan.cur,.pc.f,.ptype button.on{border-width:2px!important;animation:holo 6s linear infinite}
.endc{border-top-width:3px!important}
details.g>summary,details.q summary{background:none}
/* الأزرار الأساسية: نفس تدرّج الويدجت */
.btn:not(.ghost):not(.danger){background:var(--grad);color:var(--on-brand)}
body.dash .hero .btn:not(.solid){background:var(--surface2);color:var(--ink)}
@media(prefers-reduced-motion:reduce){*{animation:none!important}}

/* ---------- عنوان الصفحة الرئيسية: أصغر، في سطر أو سطرين ---------- */
.hero h1{font-size:clamp(22px,2.5vw,32px)!important;line-height:1.45!important;letter-spacing:0!important;max-width:560px}
.hero .lead{font-size:16px}
@media(max-width:560px){.hero h1{font-size:21px!important}}

/* ---------- دواير الحالة: العلامة/الرقم جوّاها أبيض وباين ---------- */
.ck{background:var(--surface2)!important;border:2px solid var(--line2)!important;color:var(--ink)!important;font-weight:800}
.ck.on{background:#1b0c03!important;border-color:var(--brand)!important;color:#fff!important;box-shadow:0 0 0 3px var(--brand-soft),0 0 12px -2px var(--brand2)}
.ck2 b{background:#2a0f0c!important;border:2px solid var(--warn);color:#fff!important;font-weight:800}
.ck2.ok b{background:#1b0c03!important;border-color:var(--brand);color:#fff!important}
.dot{width:9px;height:9px;box-shadow:0 0 0 2px color-mix(in srgb,currentColor 25%,transparent)}
#bell b,#nc{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:var(--grad);color:#170800;font-size:12px;font-weight:800;line-height:1}
body.dash .side .who i{background:var(--grad);color:#170800}
[data-theme=light] .ck.on,[data-theme=light] .ck2.ok b{background:var(--brand)!important;color:#fff!important}
[data-theme=light] .ck2 b{background:var(--warn)!important}

/* ---------- الشعار: بلوك بعرض السايدبار كله بفريم هولوجرام، والأيقونة جنب الاسم ---------- */
body.dash .side .logo{display:flex!important;align-items:center;gap:11px;width:100%;box-sizing:border-box;margin:0 0 16px!important;padding:11px 11px!important;
 border:1.5px solid transparent!important;border-radius:16px;
 background:linear-gradient(#0a0806,#0a0806) padding-box,var(--holo) border-box;background-size:100% 100%,240% 240%;
 box-shadow:0 0 22px -8px rgba(255,178,36,.55),0 0 30px -14px rgba(255,122,24,.6);animation:holo 7s linear infinite}
body.dash .side .logo .mk{width:52px!important;height:52px!important;flex:none;border-radius:14px;box-shadow:0 0 16px -4px rgba(255,178,36,.6)!important}
body.dash .side .logo .mk img{width:52px!important;height:52px!important;border-radius:14px;background:none!important}
body.dash .side .logo>span:last-child{display:flex;flex-direction:column;line-height:1.25;min-width:0;flex:1}
body.dash .side .logo>span:last-child{font-size:17px;letter-spacing:-.2px;font-weight:800;white-space:nowrap;background:linear-gradient(90deg,#fff 0%,#fff 55%,#ff7a18 78%,#ffb224 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
body.dash .side .logo small{font-size:12px!important;-webkit-text-fill-color:var(--side-ink);color:var(--side-ink);margin-top:3px}
.logo .mk img{background:none!important}
body.dash .top .mlogo img{width:32px;height:32px;display:block;border-radius:9px}
/* صفحة الدخول + الهيدر في الموقع */
#auth .logo .mk img{width:40px;height:40px}
header .logo .mk img{width:38px;height:38px;filter:drop-shadow(0 0 10px rgba(255,178,36,.45))}

/* ---------- المحفظة في الشريط العلوي ---------- */
.wal{display:inline-flex;align-items:center;gap:6px;border:1px solid transparent!important;background:linear-gradient(var(--surface2),var(--surface2)) padding-box,var(--holo) border-box!important;font-weight:800}
.wal svg{width:17px;height:17px;stroke:var(--brand2);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.wal b{color:var(--brand);direction:ltr;unicode-bidi:embed}
.topout{display:inline-flex;align-items:center;gap:6px}
.topout svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
[dir=ltr] .topout svg{transform:scaleX(-1)}
@media(max-width:900px){.topout span{display:none}.wal small{display:none}}

/* ---------- صفحة المحفظة والدفع ---------- */
.wgrid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}
@media(max-width:1100px){.wgrid{grid-template-columns:1fr}}
.balc .n{font-size:38px;font-weight:800;direction:ltr;text-align:start;line-height:1.2;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.balc .id{font:600 13px Consolas,monospace;background:var(--bg2);border:1px solid var(--line2);border-radius:8px;padding:2px 8px;direction:ltr;display:inline-block}
#vpbody:empty{display:none}
.plan .pbtns{display:flex;flex-direction:column;gap:8px}
.plan .pbtns .btn{width:100%}
.plan .q{font-size:12.5px;color:var(--mut);margin:-4px 0 10px}

/* ---------- السايدبار: يسكرول لو الشاشة قصيرة عشان زرار الخروج يفضل باين ---------- */
@media(min-width:901px){body.dash .side{overflow-y:auto}}
