/* Mistersa Lux design system — 1.32.0
 * Tokens, cream surfaces, neon-orange hovers (glow, moving border, mouse spotlight), scroll reveal, twinkling stars
 * for galaxy sections. Only transform/opacity are animated; phones get the light version; reduced motion gets none.
 * Logical properties throughout, so the same rules serve RTL (fa/ar) and LTR (en). */
:root{
 --lux-cream:#FBF8F3;--lux-cream-2:#F5EFE6;--lux-surface:#fff;--lux-ink:#17141d;--lux-ink-2:#3d3846;--lux-muted:#6b6472;--lux-line:#ece4d8;
 --lux-orange:#ff8300;--lux-orange-ink:#a84b00;--lux-neon:255,131,0;
 --lux-galaxy-1:#0B1B3F;--lux-galaxy-2:#1E3A8A;
 --lux-radius:18px;--lux-radius-sm:12px;--lux-ease:cubic-bezier(.2,.75,.25,1);
 --lux-shadow:0 14px 38px -22px rgba(23,20,29,.28);
}
/* surfaces */
body.lux{background:var(--lux-cream)}
body.mistersa-eb-home-2026{background:var(--lux-cream)}
body.mistersa-eb-home-2026 .mh26-hero,body.mistersa-eb-home-2026 .mh26-stage{background:linear-gradient(180deg,#fff 0,#fff 78%,var(--lux-cream) 100%)}
body.lux :is(.meh-section,.mh26-products){background:transparent}
body.lux :is(.meh-section-head h2,.mh26-products h2){color:var(--lux-ink)}
/* headings: one accent bar, aligned */
body.lux .meh-section-head h2{position:relative;padding-inline-start:16px}
body.lux .meh-section-head h2::before{content:'';position:absolute;inset-inline-start:0;top:.2em;bottom:.2em;width:5px;border-radius:5px;background:linear-gradient(180deg,var(--lux-orange),#ffb469)}
/* cards: neon hover */
.lux-card{position:relative;isolation:isolate;transition:transform .35s var(--lux-ease),box-shadow .35s var(--lux-ease)}
.lux-card::before{content:'';position:absolute;inset:-1px;z-index:-1;border-radius:inherit;padding:1.5px;background:conic-gradient(from var(--lux-angle,0deg),rgba(var(--lux-neon),0) 0 62%,rgba(var(--lux-neon),.95) 78%,#ffd9a8 86%,rgba(var(--lux-neon),0) 100%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity .35s;pointer-events:none}
.lux-card::after{content:'';position:absolute;inset:0;z-index:1;border-radius:inherit;background:radial-gradient(260px circle at var(--lux-mx,50%) var(--lux-my,50%),rgba(var(--lux-neon),.16),rgba(var(--lux-neon),0) 65%);opacity:0;transition:opacity .35s;pointer-events:none}
@property --lux-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
@keyframes lux-orbit{to{--lux-angle:360deg}}
@media (hover:hover) and (pointer:fine){
 .lux-card:hover{transform:translateY(-4px);box-shadow:0 0 0 1px rgba(var(--lux-neon),.35),0 18px 44px -18px rgba(var(--lux-neon),.55)}
 .lux-card:hover::before{opacity:1;animation:lux-orbit 2.6s linear infinite}
 .lux-card:hover::after{opacity:1}
 .lux-btn{position:relative;transition:transform .25s var(--lux-ease),box-shadow .3s}
 .lux-btn:hover{box-shadow:0 0 0 1px rgba(var(--lux-neon),.5),0 10px 30px -8px rgba(var(--lux-neon),.7)}
}
/* reveal on scroll (only when the script is running) */
html.lux-js .lux-reveal{opacity:0;transform:translate3d(0,18px,0);transition:opacity .7s var(--lux-ease),transform .7s var(--lux-ease);transition-delay:var(--lux-delay,0ms)}
html.lux-js .lux-reveal.is-in{opacity:1;transform:none}
/* stars for galaxy sections */
.lux-stars{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.lux-stars i{position:absolute;inset:-10%;background-repeat:repeat;opacity:.9;animation:lux-twinkle 4.6s ease-in-out infinite alternate}
.lux-stars i:nth-child(1){background-image:radial-gradient(1.2px 1.2px at 12% 18%,#fff,transparent),radial-gradient(1px 1px at 42% 72%,#cfe0ff,transparent),radial-gradient(1.4px 1.4px at 78% 34%,#fff,transparent),radial-gradient(1px 1px at 63% 88%,#ffe2bd,transparent);background-size:340px 300px}
.lux-stars i:nth-child(2){background-image:radial-gradient(1.6px 1.6px at 25% 60%,#fff,transparent),radial-gradient(1.2px 1.2px at 85% 80%,#bcd2ff,transparent),radial-gradient(1.8px 1.8px at 55% 22%,#fff,transparent);background-size:520px 460px;animation-duration:6.8s;animation-delay:-2s}
.lux-stars i:nth-child(3){background-image:radial-gradient(2.2px 2.2px at 70% 50%,#fff,transparent),radial-gradient(2px 2px at 18% 84%,#ffd6a1,transparent);background-size:760px 640px;animation-duration:9s;animation-delay:-4s}
@keyframes lux-twinkle{0%{opacity:.35}100%{opacity:1}}
body.lux .mh26-galaxy{position:relative}
body.lux .mh26-galaxy>:not(.lux-stars){position:relative;z-index:1}
/* tables */
body.lux table.lux-table,body.lux .lux-prose table{width:100%;min-width:0;border-collapse:collapse;text-align:center}
body.lux .lux-prose :is(th,td){padding:10px 8px;border:1px solid var(--lux-line);text-align:center}
body.lux .lux-prose tbody tr:hover td{background:var(--lux-cream-2)}
body.lux .lux-prose p{text-align:justify}
/* phones: lighter */
@media (max-width:767px){
 html.lux-js .lux-reveal{transform:translate3d(0,10px,0);transition-duration:.5s}
 .lux-stars i:nth-child(3){display:none}
 .lux-card::before,.lux-card::after{display:none}
}
@media (prefers-reduced-motion:reduce){
 html.lux-js .lux-reveal{opacity:1;transform:none;transition:none}
 .lux-stars i{animation:none}
 .lux-card,.lux-btn{transition:none}
 .lux-card:hover::before{animation:none}
}

/* 1.33.0 — galaxy frame around the white hero film: deep-blue nebula and stars on the edges, clear centre (film untouched). */
body.mistersa-eb-home-2026 .mh26-stage::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse 66% 68% at 50% 46%,rgba(11,27,63,0) 72%,rgba(11,27,63,.5) 90%,rgba(11,27,63,.92) 100%),radial-gradient(40% 34% at 6% 88%,rgba(30,58,138,.55),rgba(30,58,138,0) 70%),radial-gradient(36% 30% at 96% 10%,rgba(255,131,0,.16),rgba(255,131,0,0) 70%)}
body.mistersa-eb-home-2026 .mh26-stage::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background-image:radial-gradient(1.4px 1.4px at 8% 14%,#fff,transparent),radial-gradient(1.2px 1.2px at 93% 22%,#cfe0ff,transparent),radial-gradient(1.6px 1.6px at 5% 72%,#fff,transparent),radial-gradient(1.3px 1.3px at 96% 78%,#ffe2bd,transparent),radial-gradient(1.1px 1.1px at 14% 92%,#fff,transparent),radial-gradient(1.5px 1.5px at 88% 94%,#fff,transparent),radial-gradient(1.2px 1.2px at 3% 40%,#bcd2ff,transparent),radial-gradient(1.2px 1.2px at 98% 52%,#fff,transparent);animation:lux-twinkle 5.2s ease-in-out infinite alternate}
body.mistersa-eb-home-2026 .mh26-stage>:is(.mh26-beat,.mh26-tag,.mh26-scroll,.mh26-progress){z-index:2}
body.mistersa-eb-home-2026 .mh26-hero,body.mistersa-eb-home-2026 .mh26-stage{background:#fff}
@media (max-width:767px){body.mistersa-eb-home-2026 .mh26-stage::before{background:linear-gradient(180deg,rgba(11,27,63,.5) 0,rgba(11,27,63,0) 8%,rgba(11,27,63,0) 88%,rgba(11,27,63,.8) 100%)}body.mistersa-eb-home-2026 .mh26-stage::after{animation:none;opacity:.8}}
/* floating themed ornaments on cream sections (decorative, desktop only) */
.lux-float{position:absolute;z-index:0;pointer-events:none;color:var(--lux-orange);opacity:.5;animation:lux-float 9s ease-in-out infinite alternate}
.lux-float svg{display:block;width:100%;height:100%}
.lux-float.is-a{inset-inline-end:2%;top:6%;width:120px;height:120px}
.lux-float.is-b{inset-inline-start:1.5%;bottom:8%;width:92px;height:92px;color:var(--lux-galaxy-2);animation-duration:12s;animation-delay:-3s}
@keyframes lux-float{0%{transform:translate3d(0,0,0) rotate(0)}100%{transform:translate3d(0,-16px,0) rotate(6deg)}}
body.lux :is(.meh-section,.mh26-products){position:relative}
body.lux :is(.meh-section,.mh26-products)>:not(.lux-float){position:relative;z-index:1}
@media (max-width:1100px){.lux-float{display:none}}
@media (prefers-reduced-motion:reduce){.lux-float,body.mistersa-eb-home-2026 .mh26-stage::after{animation:none}}
/* 1.33.1 — «رایگان» as a small corner badge on course cards (no extra card height) */
.meh-item{position:relative}
.meh-free-badge{position:absolute;top:12px;inset-inline-start:12px;z-index:3;padding:3px 11px;border-radius:999px;background:#14532d;color:#fff;font-size:12px;font-weight:800;line-height:1.7;box-shadow:0 4px 12px rgba(0,0,0,.22);pointer-events:none}
/* 1.34.0 — Lux beyond the home page (services, courses, blog, footer): the same neon hovers, reveal and stars on the
 * pages' own surfaces. `body.lux` (cream) stays a home-only switch; other pages keep their backgrounds. */
.lux-sky{isolation:isolate}
.lux-sky.lux-rel{position:relative}
.lux-sky>.lux-stars{z-index:-1}
.meb-site-footer .lux-stars{opacity:.7}
.meb-site-footer :is(.meb-footer-links,.meb-footer-menu) a{transition:color .25s,text-shadow .25s}
@media (hover:hover) and (pointer:fine){
 .meb-site-footer :is(.meb-footer-links,.meb-footer-menu) a:hover{color:#ffa033;text-shadow:0 0 18px rgba(var(--lux-neon),.6)}
 .meb-site-footer :is(.meb-footer-call,.meb-footer-mail){transition:box-shadow .3s,transform .3s var(--lux-ease)}
 .meb-site-footer :is(.meb-footer-call,.meb-footer-mail):hover{transform:translateY(-2px);box-shadow:0 0 0 1px rgba(var(--lux-neon),.45),0 14px 34px -14px rgba(var(--lux-neon),.6)}
}
@media (prefers-reduced-motion:reduce){.meb-site-footer :is(.meb-footer-call,.meb-footer-mail){transition:none}.meb-site-footer :is(.meb-footer-call,.meb-footer-mail):hover{transform:none}}
