/* Modulyra ERP V3.9.31.2 — engine-owned public experiences */

/* Structural public sections must never become full-page auto-surfaces. This is a
   defensive cascade for browsers that still have the previous coverage script cached. */
:is(html[data-identity-engine="stellar"],html[data-identity-engine="neo_najd"]) :where(
    .motion-hero,.dv-hero,.dv-section,.modules-hero,.trial-hero,.custom-request-hero,.module-detail-hero
)[data-theme-surface]{
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
}
:is(html[data-identity-engine="stellar"],html[data-identity-engine="neo_najd"]) :where(
    .motion-hero,.dv-hero,.dv-section,.modules-hero,.trial-hero,.custom-request-hero,.module-detail-hero
)[data-theme-surface]::after{display:none!important}

/* Stellar public shell: a compact technical observatory, never a viewport-sized card. */
html[data-identity-engine="stellar"] .motion-hero{
    min-height:0!important;
    grid-template-columns:minmax(420px,.86fr) minmax(540px,1.14fr)!important;
    gap:clamp(36px,5vw,88px)!important;
    padding:76px 0 82px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important;
}
html[data-identity-engine="stellar"] .motion-copy{
    padding-inline-start:30px;
    border-inline-start:1px solid var(--mi-stroke-strong,#46534d);
}
html[data-identity-engine="stellar"] .motion-copy::before{content:"STELLAR / OPERATING CORE 01";display:block;margin-bottom:18px;color:var(--mi-accent,#7cffb2);font:800 9px/1 monospace;letter-spacing:2px}
html[data-identity-engine="stellar"] .motion-copy h1{font-size:clamp(52px,5.7vw,90px)!important;line-height:1.03!important}
html[data-identity-engine="stellar"] .network-theater{min-height:540px!important}
html[data-identity-engine="stellar"] .dv-hero{
    min-height:0!important;
    padding:72px 0 52px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important;
}
html[data-identity-engine="stellar"] .dv-section{background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
html[data-identity-engine="stellar"] .modules-hero{background:transparent!important;background-image:none!important;box-shadow:none!important;overflow:visible!important}
html[data-identity-engine="stellar"] :where(.trial-hero,.custom-request-hero,.module-detail-hero){background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}

/* Neo Najd public shell: compact editorial rhythm, warm architecture, no Stellar-blue inheritance. */
html[data-identity-engine="neo_najd"] :where(.motion-landing,.dv-main,.content){position:relative;z-index:1}
html[data-identity-engine="neo_najd"] :where(.motion-hero,.dv-hero){
    min-height:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
html[data-identity-engine="neo_najd"] .motion-hero{
    grid-template-columns:minmax(430px,.9fr) minmax(520px,1.1fr)!important;
    gap:clamp(34px,4.5vw,76px)!important;
    padding:72px 0 78px!important;
}
html[data-identity-engine="neo_najd"] .motion-copy{
    padding:36px 34px 38px!important;
    border:1px solid rgba(239,166,108,.35)!important;
    border-inline-start:5px solid var(--najd-emerald-light,#2cc18d)!important;
    background:linear-gradient(125deg,rgba(44,38,23,.94),rgba(20,18,12,.97))!important;
    box-shadow:14px 14px 0 rgba(15,118,90,.16)!important;
    clip-path:polygon(0 0,calc(100% - 34px) 0,100% 34px,100% 100%,34px 100%,0 calc(100% - 34px))!important;
}
html[data-identity-engine="neo_najd"] .motion-copy::before{
    content:"NEO NAJD / INTELLIGENT CORE";
    display:block;
    margin-bottom:18px;
    color:var(--najd-copper-light,#efa66c);
    font:800 9px/1 ui-monospace,SFMono-Regular,monospace;
    letter-spacing:2px;
}
html[data-identity-engine="neo_najd"] .motion-copy h1{
    max-width:650px!important;
    margin:14px 0 18px!important;
    background:none!important;
    -webkit-background-clip:initial!important;
    color:#fff3d6!important;
    font-size:clamp(50px,5.5vw,84px)!important;
    line-height:1.08!important;
    letter-spacing:-.045em!important;
    text-shadow:none!important;
}
html[dir="rtl"][data-identity-engine="neo_najd"] .motion-copy h1{font-family:Tahoma,"Segoe UI",Arial,sans-serif!important;letter-spacing:-.03em!important;line-height:1.18!important}
html[data-identity-engine="neo_najd"] .motion-copy>p{color:#d9cba9!important;line-height:1.9!important}
html[data-identity-engine="neo_najd"] .motion-meta span{
    border-color:rgba(239,166,108,.3)!important;
    border-radius:2px 2px 10px 2px!important;
    background:rgba(234,216,173,.04)!important;
    color:#e6d8b7!important;
}
html[data-identity-engine="neo_najd"] .motion-meta i{background:#55d6a3!important;box-shadow:0 0 10px rgba(85,214,163,.55)!important}
html[data-identity-engine="neo_najd"] .motion-actions .button{border-radius:2px 2px 11px 2px!important}

html[data-identity-engine="neo_najd"] .network-theater{
    min-height:540px!important;
    border:1px solid rgba(239,166,108,.38)!important;
    border-radius:2px 2px 36px 2px!important;
    background:
        linear-gradient(rgba(239,166,108,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(239,166,108,.035) 1px,transparent 1px),
        radial-gradient(circle at 50% 48%,rgba(15,118,90,.16),transparent 36%),
        linear-gradient(145deg,#282317,#12110c)!important;
    background-size:38px 38px,38px 38px,auto,auto!important;
    box-shadow:16px 16px 0 rgba(199,124,69,.09)!important;
}
html[data-identity-engine="neo_najd"] .network-theater::before{
    background:linear-gradient(90deg,transparent,rgba(239,166,108,.1),transparent)!important;
}
html[data-identity-engine="neo_najd"] .theater-title small{color:#b99162!important}
html[data-identity-engine="neo_najd"] .theater-live{color:#74dfb7!important}
html[data-identity-engine="neo_najd"] .flow-path{stroke:#c78955!important;stroke-dasharray:4 12!important}
html[data-identity-engine="neo_najd"] .flow-path-shadow{stroke:rgba(15,118,90,.22)!important}
html[data-identity-engine="neo_najd"] .flow-packet{fill:#6de0b3!important;filter:drop-shadow(0 0 7px #2cc18d)!important}
html[data-identity-engine="neo_najd"] .flow-node{
    border-color:rgba(239,166,108,.34)!important;
    border-radius:2px 2px 15px 2px!important;
    background:linear-gradient(145deg,#332b1b,#19160f)!important;
    box-shadow:7px 7px 0 rgba(15,118,90,.1)!important;
}
html[data-identity-engine="neo_najd"] .flow-node.is-active{border-color:#e9bf79!important;box-shadow:8px 8px 0 rgba(15,118,90,.22)!important}
html[data-identity-engine="neo_najd"] .flow-node i{
    border-radius:2px 2px 11px 2px!important;
    background:linear-gradient(145deg,rgba(199,124,69,.28),rgba(15,118,90,.24))!important;
    color:#f0c986!important;
}
html[data-identity-engine="neo_najd"] .flow-core-badge,
html[data-identity-engine="neo_najd"] .flow-log span{
    border-color:rgba(239,166,108,.26)!important;
    border-radius:2px 2px 11px 2px!important;
    background:rgba(17,15,10,.9)!important;
    color:#c8b58e!important;
}
html[data-identity-engine="neo_najd"] .flow-core-badge img{border-radius:2px 2px 12px 2px!important}
html[data-identity-engine="neo_najd"] :where(.motion-card,.micro-grid article,.cloud-ingest,.erp-galaxy,.motion-cta){
    border-color:rgba(239,166,108,.24)!important;
    border-radius:2px 2px 20px 2px!important;
    background:linear-gradient(145deg,rgba(41,36,23,.94),rgba(18,16,11,.97))!important;
    box-shadow:none!important;
}
html[data-identity-engine="neo_najd"] .motion-card::after{background:#0f765a!important;opacity:.08!important}
html[data-identity-engine="neo_najd"] .micro-grid strong{color:#f0c986!important}
html[data-identity-engine="neo_najd"] .terminal-mini{border-color:#765934!important;border-radius:2px 2px 14px 2px!important;background:#0d0c09!important}
html[data-identity-engine="neo_najd"] .terminal-mini header{background:#2a2518!important}
html[data-identity-engine="neo_najd"] .terminal-mini pre{color:#8fe6c2!important}
html[data-identity-engine="neo_najd"] .security-orbit .shield-core,
html[data-identity-engine="neo_najd"] .erp-galaxy .galaxy-core,
html[data-identity-engine="neo_najd"] .cloud-body{background:linear-gradient(145deg,rgba(199,124,69,.5),rgba(15,118,90,.55))!important}
html[data-identity-engine="neo_najd"] :where(.security-ring,.orbit){border-color:rgba(239,166,108,.38)!important}

/* Neo Najd developer network: a warm guild hall, not a recolored Stellar console. */
html[data-identity-engine="neo_najd"] .dv-body{background:transparent!important}
html[data-identity-engine="neo_najd"] .dv-shell{width:min(1420px,calc(100% - 42px))!important}
html[data-identity-engine="neo_najd"] .dv-hero{
    grid-template-columns:minmax(440px,.88fr) minmax(520px,1.12fr)!important;
    gap:clamp(36px,5vw,90px)!important;
    padding:72px 0 48px!important;
}
html[data-identity-engine="neo_najd"] .dv-hero-copy{
    padding:34px 34px 36px!important;
    border:1px solid rgba(239,166,108,.34)!important;
    border-inline-start:5px solid #2cc18d!important;
    background:linear-gradient(130deg,rgba(44,38,23,.94),rgba(18,16,11,.97))!important;
    box-shadow:13px 13px 0 rgba(15,118,90,.15)!important;
    clip-path:polygon(0 0,calc(100% - 32px) 0,100% 32px,100% 100%,32px 100%,0 calc(100% - 32px))!important;
}
html[data-identity-engine="neo_najd"] .dv-hero-copy::before{content:"NAJD / TALENT GUILD 01";display:block;margin-bottom:17px;color:#efa66c;font:800 9px/1 monospace;letter-spacing:2px}
html[data-identity-engine="neo_najd"] .dv-hero h1{
    margin:18px 0!important;
    background:none!important;
    -webkit-background-clip:initial!important;
    color:#fff3d6!important;
    font-size:clamp(48px,5.5vw,82px)!important;
    line-height:1.12!important;
    letter-spacing:-.04em!important;
}
html[data-identity-engine="neo_najd"] .dv-lead{color:#d5c6a5!important}
html[data-identity-engine="neo_najd"] :where(.dv-kicker,.dv-trust-row span){border-color:rgba(239,166,108,.3)!important;border-radius:2px 2px 10px 2px!important;background:rgba(234,216,173,.04)!important;color:#dfc99d!important}
html[data-identity-engine="neo_najd"] .dv-btn{border-color:rgba(239,166,108,.34)!important;border-radius:2px 2px 11px 2px!important;background:#292418!important;color:#fff0d0!important}
html[data-identity-engine="neo_najd"] .dv-btn.primary{background:linear-gradient(110deg,#ead8ad,#c87b45 65%,#53c99c)!important;color:#171109!important}
html[data-identity-engine="neo_najd"] .dv-hero-stats strong{color:#f0c986!important}
html[data-identity-engine="neo_najd"] .dv-network-stage{
    min-height:525px!important;
    border:1px solid rgba(239,166,108,.38)!important;
    border-radius:2px 2px 34px 2px!important;
    background:radial-gradient(circle at 50% 50%,rgba(15,118,90,.16),transparent 31%),linear-gradient(145deg,#2a2417,#11100c)!important;
    box-shadow:16px 16px 0 rgba(199,124,69,.09)!important;
}
html[data-identity-engine="neo_najd"] .dv-network-stage::before{background:linear-gradient(rgba(239,166,108,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(239,166,108,.04) 1px,transparent 1px)!important;background-size:36px 36px!important}
html[data-identity-engine="neo_najd"] .dv-network-stage::after{background:conic-gradient(from 90deg,transparent,rgba(199,124,69,.08),transparent 28%,rgba(15,118,90,.08),transparent 58%)!important}
html[data-identity-engine="neo_najd"] .dv-stage-label{color:#b99162!important}
html[data-identity-engine="neo_najd"] .dv-network-node{
    border-color:rgba(239,166,108,.35)!important;
    border-radius:2px 2px 13px 2px!important;
    background:linear-gradient(145deg,#352d1c,#18150f)!important;
    box-shadow:6px 6px 0 rgba(15,118,90,.1)!important;
}
html[data-identity-engine="neo_najd"] .dv-network-node b{color:#f0c986!important}
html[data-identity-engine="neo_najd"] .dv-network-hub{border-color:#2cc18d!important;border-radius:2px 2px 30px 2px!important;background:linear-gradient(145deg,#30291a,#14120d)!important;box-shadow:9px 9px 0 rgba(199,124,69,.14)!important}
html[data-identity-engine="neo_najd"] .dv-hub-ring{border-color:rgba(239,166,108,.28)!important;border-radius:2px 2px 28px 2px!important}
html[data-identity-engine="neo_najd"] .dv-stage-log span{border-color:rgba(239,166,108,.22)!important;border-radius:2px 2px 9px 2px!important;background:#12100be8!important;color:#bba67e!important}
html[data-identity-engine="neo_najd"] .dv-section{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
html[data-identity-engine="neo_najd"] .dv-section-head{padding-bottom:16px;border-bottom:1px solid rgba(239,166,108,.22)}
html[data-identity-engine="neo_najd"] .dv-card{
    border-color:rgba(239,166,108,.25)!important;
    border-radius:2px 2px 18px 2px!important;
    background:linear-gradient(145deg,#292418,#17150f)!important;
    box-shadow:none!important;
}
html[data-identity-engine="neo_najd"] .dv-card:hover{border-color:#d69761!important;box-shadow:8px 8px 0 rgba(15,118,90,.14)!important}
html[data-identity-engine="neo_najd"] .dv-specialty-icon{border:1px solid rgba(44,193,141,.34)!important;border-radius:2px 2px 12px 2px!important;background:#17362d!important;color:#73ddb7!important}
html[data-identity-engine="neo_najd"] .dv-card-arrow{color:#efa66c!important}

/* Neo Najd system explorer and remaining public forms. */
html[data-identity-engine="neo_najd"] .modules-hero{
    margin:52px 0 32px!important;
    padding:36px 38px!important;
    border:1px solid rgba(239,166,108,.34)!important;
    border-inline-start:5px solid #2cc18d!important;
    background:linear-gradient(120deg,#322a1a,#18150e)!important;
    box-shadow:13px 13px 0 rgba(15,118,90,.15)!important;
    clip-path:polygon(0 0,calc(100% - 34px) 0,100% 34px,100% 100%,34px 100%,0 calc(100% - 34px))!important;
}
html[data-identity-engine="neo_najd"] .modules-hero::before{content:"NEO NAJD / SYSTEMS CATALOG";display:block;position:absolute;color:#efa66c;font:800 9px/1 monospace;letter-spacing:2px;transform:translateY(-18px)}
html[data-identity-engine="neo_najd"] .modules-hero h1{color:#fff3d6!important;line-height:1.08!important}
html[data-identity-engine="neo_najd"] .modules-summary span,
html[data-identity-engine="neo_najd"] .category-pill{border-color:rgba(239,166,108,.27)!important;border-radius:2px 2px 10px 2px!important;background:#262116!important;color:#d7c49f!important}
html[data-identity-engine="neo_najd"] .category-pill.active{border-color:#2cc18d!important;background:#17382e!important;color:#8fe6c2!important}
html[data-identity-engine="neo_najd"] .modules-search input{border-color:rgba(239,166,108,.3)!important;border-radius:2px 2px 13px 2px!important;background:#18150f!important;color:#fff3d6!important}
html[data-identity-engine="neo_najd"] .modules-search::before{color:#65d8ad!important}
html[data-identity-engine="neo_najd"] .public-module-grid{gap:18px!important}
html[data-identity-engine="neo_najd"] .public-module-card{
    min-height:275px!important;
    padding:22px!important;
    border-color:rgba(239,166,108,.24)!important;
    border-radius:2px 2px 18px 2px!important;
    background:linear-gradient(145deg,#292418,#17150f)!important;
    box-shadow:none!important;
}
html[data-identity-engine="neo_najd"] .public-module-card::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(#c77c45,#2cc18d);opacity:.55}
html[dir="rtl"][data-identity-engine="neo_najd"] .public-module-card::before{inset:0 0 0 auto}
html[data-identity-engine="neo_najd"] .public-module-card::after{width:120px;height:120px;border-radius:0;background:linear-gradient(135deg,#c77c45,#0f765a)!important;filter:blur(64px)!important;opacity:.08!important}
html[data-identity-engine="neo_najd"] .public-module-card:hover{transform:translate(-4px,-4px)!important;border-color:#d69761!important;box-shadow:9px 9px 0 rgba(15,118,90,.15)!important}
html[data-identity-engine="neo_najd"] .module-card-icon{
    width:58px!important;height:58px!important;
    border:1px solid rgba(239,166,108,.38)!important;
    border-radius:2px 2px 16px 2px!important;
    background:linear-gradient(145deg,#392e1c,#17352d)!important;
    color:#f0c986!important;
    box-shadow:5px 5px 0 rgba(15,118,90,.13)!important;
    clip-path:polygon(0 0,76% 0,100% 24%,100% 100%,24% 100%,0 76%)!important;
}
html[data-identity-engine="neo_najd"] .module-card-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
html[data-identity-engine="neo_najd"] .module-card-badge{border-radius:2px 2px 7px 2px!important}
html[data-identity-engine="neo_najd"] .module-open{color:#73ddb7!important}
html[data-identity-engine="neo_najd"] .custom-solution-cta,
html[data-identity-engine="neo_najd"] :where(.trial-panel,.custom-request-card,.module-stage,.feature-card,.module-detail-visual){
    border-color:rgba(239,166,108,.26)!important;
    border-radius:2px 2px 22px 2px!important;
    background:linear-gradient(145deg,#292418,#17150f)!important;
    box-shadow:none!important;
}
html[data-identity-engine="neo_najd"] .custom-solution-icon{border-radius:2px 2px 16px 2px!important;background:linear-gradient(145deg,#e1ba74,#43c494)!important;color:#161109!important}

/* Light Neo keeps the same architecture instead of reverting to old cyan surfaces. */
html[data-identity-engine="neo_najd"][data-theme="light"] :where(.motion-copy,.dv-hero-copy,.modules-hero){background:linear-gradient(125deg,#fff5dc,#e4cfaa)!important}
html[data-identity-engine="neo_najd"][data-theme="light"] :where(.motion-copy h1,.dv-hero h1,.modules-hero h1){color:#251d12!important}
html[data-identity-engine="neo_najd"][data-theme="light"] :where(.motion-copy>p,.dv-lead,.modules-hero p){color:#54452d!important}
html[data-identity-engine="neo_najd"][data-theme="light"] :where(.network-theater,.dv-network-stage,.motion-card,.dv-card,.public-module-card,.trial-panel,.custom-request-card){background:linear-gradient(145deg,#fff8e7,#e4d3b3)!important}
html[data-identity-engine="neo_najd"][data-theme="light"] :where(.flow-node,.dv-network-node){background:linear-gradient(145deg,#f9edcf,#d9c095)!important}
html[data-identity-engine="neo_najd"][data-theme="light"] :where(.flow-node strong,.dv-network-node span,.public-module-card h3,.dv-card h3){color:#2b2114!important}

@media(max-width:1180px){
    html[data-identity-engine="stellar"] :where(.motion-hero,.dv-hero){grid-template-columns:1fr!important;min-height:0!important;gap:30px!important}
    html[data-identity-engine="stellar"] .motion-copy{max-width:900px;margin-inline:auto;text-align:center;padding-inline-start:0;border-inline-start:0}
    html[data-identity-engine="stellar"] :where(.motion-actions,.motion-meta,.dv-hero-actions,.dv-trust-row,.dv-hero-stats){justify-content:center}
    html[data-identity-engine="neo_najd"] :where(.motion-hero,.dv-hero){grid-template-columns:1fr!important;gap:30px!important}
    html[data-identity-engine="neo_najd"] :where(.motion-copy,.dv-hero-copy){max-width:900px;margin-inline:auto;text-align:center}
    html[data-identity-engine="neo_najd"] :where(.motion-actions,.motion-meta,.dv-hero-actions,.dv-trust-row,.dv-hero-stats){justify-content:center}
}
@media(max-width:760px){
    html[data-identity-engine="stellar"] :where(.motion-hero,.dv-hero){padding:32px 0 48px!important}
    html[data-identity-engine="stellar"] :where(.network-theater,.dv-network-stage){min-height:650px!important}
    html[data-identity-engine="neo_najd"] :where(.motion-hero,.dv-hero){padding:30px 0 48px!important}
    html[data-identity-engine="neo_najd"] :where(.motion-copy,.dv-hero-copy,.modules-hero){padding:26px 20px 28px!important;clip-path:none!important;box-shadow:7px 7px 0 rgba(15,118,90,.13)!important}
    html[data-identity-engine="neo_najd"] .motion-copy h1,
    html[data-identity-engine="neo_najd"] .dv-hero h1{font-size:clamp(40px,13vw,62px)!important}
    html[data-identity-engine="neo_najd"] :where(.network-theater,.dv-network-stage){min-height:680px!important;border-radius:2px 2px 24px 2px!important}
    html[data-identity-engine="neo_najd"] .modules-hero{margin-top:26px!important;grid-template-columns:1fr!important}
}

@media(prefers-reduced-motion:reduce){
    html[data-identity-engine="neo_najd"] :where(.network-theater::before,.dv-network-stage::after){animation:none!important}
}
