/*
 * Modulyra ERP V3.9.31.3
 * Isolated regression guard: Stellar sky continuity + Neo Najd public home polish.
 * Deliberately does not restyle module cards, menus, forms, or application shells.
 */

/* Stellar Universe: keep the interactive sky above the document background and
   below every application surface, including the Super Admin command shell. */
html[data-identity-engine="stellar"]{
    min-height:100%;
    background:#050806!important;
}
html[data-identity-engine="stellar"] body{
    position:relative!important;
    min-height:100vh;
    isolation:isolate!important;
    background:transparent!important;
    background-image:none!important;
}
html[data-identity-engine="stellar"] .modulyra-stellar-field{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100vh!important;
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:none!important;
    z-index:0!important;
    contain:none!important;
}
html[data-identity-engine="stellar"] body > :not(.modulyra-stellar-field):not(script){
    position:relative;
    z-index:1;
}
html[data-identity-engine="stellar"] :where(
    .platform-command-layout,
    .command-layout,
    .command-main,
    .main-area,
    .page-transition,
    .owner-shell,
    .owner-dashboard-shell,
    .subscriber-launcher,
    .dv-main
){
    background-color:transparent!important;
    background-image:none!important;
}
html[data-identity-engine="stellar"] :where(.platform-command-layout,.command-main,.main-area){
    position:relative;
    z-index:1;
}
html[data-identity-engine="stellar"] .command-topbar{z-index:120!important}
html[data-identity-engine="stellar"] :where(.platform-command-sidebar,.command-sidebar){z-index:20}

/* Canvas fallback: visible motion remains if a browser temporarily refuses a 2D context. */
html[data-identity-engine="stellar"]:not([data-stellar-sky="active"]) body::after{
    content:"";
    position:fixed;
    inset:-12%;
    z-index:0;
    pointer-events:none;
    background-image:
        radial-gradient(circle,rgba(232,255,240,.72) 0 1px,transparent 1.5px),
        radial-gradient(circle,rgba(124,255,178,.42) 0 1px,transparent 1.6px),
        radial-gradient(circle,rgba(255,180,94,.32) 0 1px,transparent 1.7px);
    background-size:73px 73px,121px 121px,181px 181px;
    background-position:0 0,33px 47px,91px 19px;
    animation:miStellarFallbackDrift 28s linear infinite;
    opacity:.62;
}
@keyframes miStellarFallbackDrift{
    to{transform:translate3d(70px,-48px,0)}
}

/* Neo Najd: only the public home hero is refined here. Other pages are untouched. */
html[data-identity-engine="neo_najd"] .motion-landing::before{
    background:
        radial-gradient(circle at 12% 18%,rgba(15,118,90,.2),transparent 31%),
        radial-gradient(circle at 86% 24%,rgba(199,124,69,.16),transparent 34%),
        linear-gradient(180deg,rgba(13,13,10,.22),rgba(8,9,7,.62))!important;
}
html[data-identity-engine="neo_najd"] .motion-landing .motion-grid{
    background-image:
        linear-gradient(rgba(234,216,173,.032) 1px,transparent 1px),
        linear-gradient(90deg,rgba(234,216,173,.032) 1px,transparent 1px)!important;
    background-size:72px 72px!important;
    mask-image:linear-gradient(to bottom,#000,transparent 92%)!important;
}
html[data-identity-engine="neo_najd"] .motion-landing .code-rain{display:none!important}
html[data-identity-engine="neo_najd"] .motion-landing .motion-noise{opacity:.055!important;mix-blend-mode:soft-light!important}
html[data-identity-engine="neo_najd"] .motion-landing .motion-glow{
    background:linear-gradient(135deg,rgba(199,124,69,.9),rgba(15,118,90,.88))!important;
    opacity:.1!important;
}
html[data-identity-engine="neo_najd"] .motion-landing .motion-hero{
    min-height:auto!important;
    align-items:stretch!important;
    padding:58px 0 46px!important;
}
html[data-identity-engine="neo_najd"] .motion-landing :where(.motion-copy,.network-theater){
    min-height:520px!important;
}
html[data-identity-engine="neo_najd"] .motion-landing .motion-copy{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
}
html[data-identity-engine="neo_najd"] .motion-landing .network-theater{
    align-self:stretch!important;
}
html[data-identity-engine="neo_najd"] .motion-landing .motion-section{
    padding:62px 0!important;
}

@media(max-width:1180px){
    html[data-identity-engine="neo_najd"] .motion-landing :where(.motion-copy,.network-theater){min-height:auto!important}
    html[data-identity-engine="neo_najd"] .motion-landing .network-theater{min-height:610px!important}
}
@media(max-width:760px){
    html[data-identity-engine="neo_najd"] .motion-landing .motion-hero{padding:28px 0 36px!important}
    html[data-identity-engine="neo_najd"] .motion-landing .network-theater{min-height:760px!important}
    html[data-identity-engine="neo_najd"] .motion-landing .motion-section{padding:48px 0!important}
}
@media(prefers-reduced-motion:reduce){
    html[data-identity-engine="stellar"]:not([data-stellar-sky="active"]) body::after{animation:none!important}
}
