/* OMNIX — Celestial design system v8. Public EJS and authenticated Next.js surfaces.
   Component class names inherited from earlier releases are implementation details only. */
:root{
  color-scheme:dark;
  --omx-bg:#09090d;--omx-surface:#18171f;--omx-surface-2:#211d27;
  --omx-peach:#ffb39e;--omx-rose:#e48baa;--omx-white:#eae6e4;
  --omx-line:rgba(255,212,205,.135);--omx-text-muted:#b4aab3;
  --omx-shadow:0 22px 68px rgba(0,0,0,.28);
  --omx-focus:0 0 0 3px rgba(255,179,158,.2);
  --halo-bg:#09090d;--halo-surface:#18171f;--halo-surface-high:#211d27;
  --halo-coral:#ffb39e;--halo-rose:#e48baa;--halo-border:rgba(255,212,205,.135);
  --halo-text:#eae6e4;--halo-muted:#b4aab3;
}
html{scroll-behavior:smooth;scroll-padding-top:86px}
body{background:#09090d;color:#eae6e4;-webkit-font-smoothing:antialiased}
body,button,input,select,textarea{font-family:'DM Sans',Inter,system-ui,sans-serif}
:is(h1,h2,h3,h4,.brand-title,.h-brand-name,.halo-logo strong){font-family:'Space Grotesk',Inter,sans-serif}
:where(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #ffb39e!important;outline-offset:3px!important}
::selection{background:#e48baa69;color:#fff}
/* Low-cost ambient stars; the genuine Saturn cinematic scene stays confined to the home page. */
body.halo-rebuilt:not(.halo-orbit),body.omnix-public,body.halo-owner-ai,body:has(.halo-app){background-color:#09090d!important;background-image:radial-gradient(ellipse at 83% -15%,rgba(228,139,170,.14),transparent 44%),radial-gradient(ellipse at 4% 84%,rgba(255,179,158,.055),transparent 45%)!important}
body.halo-rebuilt:not(.halo-orbit)::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.55;
  background-image:radial-gradient(1px 1px at 15% 11%,#fff9 98%,transparent),radial-gradient(1px 1px at 84% 21%,#fff6 98%,transparent),radial-gradient(1px 1px at 57% 78%,#fff6 98%,transparent),radial-gradient(2px 2px at 91% 71%,#ffb39e59 98%,transparent),radial-gradient(1px 1px at 34% 49%,#e48baa73 98%,transparent);
  background-size:480px 490px,600px 560px,430px 550px,760px 650px,550px 520px;
}
body.halo-rebuilt:not(.halo-orbit)>:where(header,main,footer,nav){position:relative;z-index:1}
/* Public navigation and brand */
.h-top{background:rgba(9,9,13,.88)!important;border-bottom:1px solid var(--omx-line)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.h-brand-mark{box-shadow:0 0 0 1px rgba(255,179,158,.2),0 9px 30px rgba(228,139,170,.15)!important}
.h-brand-name small{font-size:9px!important;letter-spacing:.16em!important;color:#d9abb7!important}
.h-links a{position:relative;transition:color .22s}
.h-links a:hover{color:var(--omx-peach)!important}
.h-links a::after{content:"";position:absolute;height:1px;left:0;right:100%;bottom:-6px;background:var(--omx-peach);transition:right .2s}
.h-links a:hover::after{right:0}
.h-btn{border-radius:12px!important;transition:background .2s,border-color .2s,transform .2s,box-shadow .2s!important}
.h-btn.primary,.halo-button-primary{color:#23151c!important;background:linear-gradient(110deg,#ffcab1,#e48baa)!important;border-color:transparent!important;box-shadow:0 9px 32px #e48baa20}
.h-btn.primary:hover,.halo-button-primary:hover{transform:translateY(-2px);box-shadow:0 15px 35px #e48baa3c}
/* Public page heroes: same cosmic art direction, no forced heavyweight WebGL instances. */
body.halo-rebuilt:not(.halo-orbit) main.h-container{padding-top:clamp(22px,4vw,58px)}
.h-page-hero{position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--omx-line);border-radius:clamp(20px,3.8vw,34px)!important;background:linear-gradient(109deg,rgba(34,28,39,.98) 0%,rgba(16,14,22,.97) 70%),#141019!important;box-shadow:var(--omx-shadow);padding:clamp(29px,5vw,76px)!important;margin-bottom:clamp(24px,4vw,50px)!important}
.h-page-hero::before{content:"";position:absolute;width:430px;height:430px;right:-140px;top:-170px;border-radius:50%;border:1px solid rgba(255,179,158,.23);box-shadow:0 0 0 33px #e48baa09,0 0 0 78px #e48baa06,0 0 0 122px #e48baa04;transform:rotate(-26deg);pointer-events:none;z-index:-1}
.h-page-hero::after{content:"";position:absolute;right:-6%;bottom:-25%;width:min(59%,580px);height:95%;opacity:.24;background:url('/images/omnix-saturn-banner.webp') center/cover no-repeat;mask-image:linear-gradient(90deg,transparent,black 62%);-webkit-mask-image:linear-gradient(90deg,transparent,black 62%);pointer-events:none;z-index:-1}
.h-page-hero h1{font-size:clamp(38px,5.8vw,75px)!important;letter-spacing:-.065em!important;line-height:1.08!important;max-width:900px}
.h-page-hero p{color:#c7b9c3!important;line-height:1.85;max-width:690px}
.h-kicker,.h-section-head .h-kicker,.omx-utility-heading>span{letter-spacing:.2em!important;color:var(--omx-peach)!important;font-size:10px;font-weight:800}
.h-kicker::before{box-shadow:0 0 15px var(--omx-peach)}
.h-panel,.h-card,.h-cta,.h-partner-card,.h-offer,.p-offer,.a-item{border:1px solid var(--omx-line)!important;background:linear-gradient(145deg,rgba(30,26,37,.97),rgba(17,16,23,.98))!important;border-radius:21px!important;box-shadow:0 10px 40px #0001}
.h-card,.h-partner-card,.p-offer{transition:transform .25s,border-color .25s,box-shadow .25s}
.h-card:hover,.h-partner-card:hover,.p-offer:hover{transform:translateY(-3px);border-color:#ffb39e5a!important;box-shadow:0 16px 40px #0003}
.h-card h3,.h-panel h2{color:#f3e9e7}
.h-card p,.h-card small,.h-panel p{color:#bfb1bb}
.h-card a:not(.h-btn),.h-panel a:not(.h-btn){color:#ffb39e}
.h-divider{border-color:var(--omx-line)!important}
.h-page-hero .h-buttons{position:relative;z-index:2}
.h-auth-link{border-radius:15px!important;background:#25202a75!important;border-color:#ffffff21!important;transition:border-color .2s,transform .2s!important}
.h-auth-link:hover{transform:translateY(-2px);border-color:#ffb39e8b!important}
.h-auth-grid>.h-panel{box-shadow:0 25px 70px #0004}
/* Shared sections containing real product guidance rather than fabricated KPIs */
.omx-utility-section{margin:38px 0 clamp(64px,8vw,116px);padding:clamp(26px,4vw,44px);background:linear-gradient(130deg,#19151e,#101016);border:1px solid var(--omx-line);border-radius:26px;position:relative;overflow:hidden}
.omx-utility-section::before{content:"";position:absolute;width:160px;height:160px;right:-70px;top:-90px;border-radius:50%;border:1px solid #e48baa45;box-shadow:0 0 0 28px #e48baa08,0 0 0 56px #ffb39e08;pointer-events:none}
.omx-utility-heading{position:relative;margin-bottom:26px}
.omx-utility-heading h2{margin:10px 0 0;max-width:700px;font-size:clamp(24px,3.5vw,37px);letter-spacing:-.04em}
.omx-utility-grid{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.omx-utility-grid article{padding:23px;border-radius:17px;border:1px solid #ffffff15;background:#ffffff05;min-width:0}
.omx-utility-grid strong{font:700 16px 'Space Grotesk',sans-serif;letter-spacing:-.025em;color:#f0d4cf}
.omx-utility-grid p{font-size:13px;line-height:1.75;color:#b9aab5;margin:10px 0 0}
.omx-utility-grid a{display:inline-flex;margin-top:13px;color:var(--omx-peach);font-size:12px;font-weight:800}
.omx-insight-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 85px}
.omx-insight-strip>div{display:flex;flex-direction:column;padding:23px;border:1px solid var(--omx-line);background:#1b1720ed;border-radius:18px;gap:9px}
.omx-insight-strip b{font:700 12px 'Space Grotesk';color:var(--omx-peach)}
.omx-insight-strip strong{font-size:14px}
.omx-insight-strip span{font-size:12px;color:var(--omx-text-muted);line-height:1.65}
.omx-faq{display:grid;gap:10px;position:relative}.omx-faq details{border:1px solid var(--omx-line);border-radius:14px;background:#ffffff05;overflow:hidden}.omx-faq summary{padding:18px 20px;cursor:pointer;color:#f1e5e4;font-weight:750;list-style-position:inside}.omx-faq details[open] summary{border-bottom:1px solid var(--omx-line);color:var(--omx-peach)}.omx-faq p{margin:14px 20px;color:#bcb0b8;line-height:1.75;font-size:13px}.omx-faq a{display:inline-block;margin:0 20px 17px;color:var(--omx-peach)}
.omx-account-help{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:15px 0 60px;border:1px solid var(--omx-line);background:#ffffff06;border-radius:17px;padding:22px}.omx-account-help strong{font-size:13px}.omx-account-help span{font-size:12px;color:var(--omx-text-muted);flex:1;min-width:200px}.omx-account-help a{color:var(--omx-peach);font-size:12px;font-weight:800}
/* Footer: readable, fully navigable sitemap */
.omx-footer{position:relative;z-index:2;background:linear-gradient(180deg,#111016,#09090d)!important;border-top:1px solid var(--omx-line);padding:55px 0 20px!important}
.omx-footer-top{display:flex;gap:50px;justify-content:space-between;align-items:flex-start}.omx-footer-top>div:first-child{max-width:300px}.omx-footer-top p{color:#ac9eaa;font-size:12px;line-height:1.8;margin-top:18px}.omx-footer-links{display:flex;gap:clamp(28px,5vw,85px);flex-wrap:wrap}.omx-footer-links>div{display:grid;align-content:flex-start;gap:12px}.omx-footer-links b{font-size:12px;margin-bottom:5px;color:#f2c1b4}.omx-footer-links a,.omx-footer-bottom a{font-size:12px;color:#a99aa6;transition:color .2s}.omx-footer-links a:hover,.omx-footer-bottom a:hover{color:var(--omx-peach)}.omx-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--omx-line);margin-top:45px;padding-top:19px;color:#827583;font-size:11px}.omx-footer-bottom nav{display:flex;gap:20px;flex-wrap:wrap}
/* Drawer user preferences. Delegated click handling in omnix-appearance.js */
.omx-appearance{border-top:1px solid var(--omx-line);padding:13px 0 14px}.omx-appearance-title{display:block;color:#d8a6b6;letter-spacing:.13em;font-size:10px;font-weight:800;margin-bottom:10px}.omx-appearance-grid,.omx-prefs-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.omx-appearance-grid button:last-child,.omx-prefs-row button:last-child{grid-column:1/-1}.omx-appearance-grid button,.omx-prefs-row button{min-width:0;border:1px solid #ffffff1d;border-radius:10px;background:#ffffff08;color:#c2b2bc;font-size:11px;min-height:36px;padding:8px 6px;cursor:pointer}.omx-appearance-grid button[aria-pressed=true],.omx-prefs-row button[aria-pressed=true]{background:#e48baa24;border-color:#e48baa66;color:#ffe0d5}.omx-control-preferences{margin:15px 0;padding:13px 11px;background:#ffffff04;border:1px solid var(--omx-line);border-radius:15px}.omx-control-preferences .halo-nav-label{margin:0 0 9px!important}
/* Next dashboard: same celestial identity, no mock metrics */
.halo-app{background:#09090d!important}.halo-rail{background:linear-gradient(175deg,#1c1720,#100f15 65%)!important;border-color:var(--omx-line)!important}.halo-stage{background:radial-gradient(ellipse 85% 25% at 86% -12%,#e48baa15,transparent 70%),#09090d!important}.halo-toolbar{background:rgba(14,12,18,.84)!important;border-color:var(--omx-line)!important}.halo-logo{border-color:var(--omx-line)!important}.halo-logo small{color:#d7a5b5!important}.halo-nav-item.active{background:linear-gradient(100deg,#e48baa28,#e48baa08)!important;color:#ffdfd7!important}.halo-dashboard-hero{border-color:#e48baa42!important;background:radial-gradient(ellipse at 90% 10%,#e48baa28,transparent 48%),linear-gradient(130deg,#241c28,#141119 72%)!important}.halo-orbit-art .halo-orbit-ring{border-color:#e48baa55!important}.halo-card,.halo-metric,.halo-server-tile,.module-panel,.shortcut-card{border-color:var(--omx-line)!important;background:linear-gradient(150deg,#1c1720,#121017)!important}.halo-server-tile:hover,.shortcut-card:hover{border-color:#e48baa75!important}.halo-metric strong{letter-spacing:-.055em}.halo-section-title h2{letter-spacing:-.04em}.halo-app-footer{border-color:var(--omx-line)!important}.halo-button-primary{color:#23151c!important}.halo-toolbar-square{border-color:var(--omx-line)!important}
.omx-dashboard-nextsteps{margin-top:30px;padding:27px;display:flex;gap:22px;justify-content:space-between;align-items:center;border:1px solid var(--omx-line);border-radius:20px;background:radial-gradient(ellipse at right top,#e48baa20,transparent 52%),#17141c}.omx-dashboard-nextsteps h2{font-size:clamp(21px,2.6vw,29px);margin:7px 0}.omx-dashboard-nextsteps p{font-size:13px;color:#ae9fae;max-width:560px;margin:7px 0}.omx-nextstep-actions{display:flex;gap:9px;flex-wrap:wrap}.omx-nextstep-actions a{border:1px solid #e48baa52;background:#e48baa14;border-radius:12px;padding:11px 14px;color:#f3c5c6;font-size:12px;font-weight:800;white-space:nowrap}.omx-nextstep-actions a:hover{background:#e48baa26}
/* Owner / legacy operational consoles: preserve every button and data endpoint, unify color & surfaces. */
body.omnix-public{--primary:#e48baa!important;--primary2:#ffb39e!important;--cyan:#e8b7c4!important;--bg:#09090d!important;--bg-secondary:#121017!important;--panel:#18171f!important;--panel2:#211c26!important;--panel3:#251f2b!important;--line:rgba(255,212,205,.135)!important;--border:rgba(255,212,205,.135)!important;--border-hover:#ffb39e80!important;--text:#eae6e4!important;--muted:#b4aab3!important}
body.omnix-public .sidebar,body.omnix-public .rail{background:#141018f2!important;border-color:var(--omx-line)!important}
body.omnix-public :is(.topbar,.header,.toolbar){border-color:var(--omx-line)!important}
body.omnix-public :is(.panel,.card,.widget,.stat-card,.table-card,.box,.module-card){border-color:var(--omx-line)!important}
body.omnix-public :is(input,select,textarea):focus{border-color:#ffb39e!important;box-shadow:var(--omx-focus)}
body.omnix-public :is(.btn-primary,.primary-btn,.button-primary){background:linear-gradient(100deg,#ffb39e,#e48baa)!important;color:#24161e!important}
body.halo-owner-ai{--purple:#e48baa!important;--purple2:#ffb39e!important;--bg:#09090d!important;--panel:#18171f!important;--panel2:#211d27!important;--line:rgba(255,212,205,.135)!important}
/* Appearance preferences: reduce cost / improve legibility without breaking critical loading indicators. */
html.omx-reduced-effects{scroll-behavior:auto}
html.omx-reduced-effects :where(.h-card,.h-partner-card,.halo-server-tile,.shortcut-card,.halo-orbit-ring){transition-duration:0s!important;animation:none!important}
html.omx-reduced-effects :where(.h-page-hero,.omx-footer)::before{animation:none!important}
html.omx-high-contrast{--omx-text-muted:#e0d6df;--halo-muted:#e0d6df;--omx-line:rgba(255,221,211,.36);--halo-border:rgba(255,221,211,.36)}
html.omx-high-contrast :where(.h-page-hero p,.h-card p,.omx-utility-grid p,.halo-server-tile p,.halo-section-title p,.halo-metric small){color:#e6d9e1!important}
@media(max-width:800px){.omx-utility-grid,.omx-insight-strip{grid-template-columns:1fr 1fr}.omx-footer-top{flex-direction:column;gap:24px}.omx-footer-links{width:100%;justify-content:space-between}.omx-dashboard-nextsteps{display:block}.omx-nextstep-actions{margin-top:18px}}
@media(max-width:580px){.h-page-hero{padding:32px 25px!important}.h-page-hero::after{opacity:.13;width:85%;height:70%;right:-35%;bottom:-20%}.h-page-hero::before{width:240px;height:240px;right:-130px;top:-110px}.h-page-hero h1{font-size:clamp(34px,10vw,55px)!important}.omx-utility-section{padding:24px 18px}.omx-utility-grid,.omx-insight-strip{grid-template-columns:1fr}.omx-footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.omx-footer-bottom{align-items:flex-start;flex-direction:column}.omx-utility-grid article{padding:19px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.h-card,.h-partner-card,.p-offer{transition:none!important}}

html.omx-compact .halo-nav-item{min-height:34px;padding:7px 10px;margin:1px 0}html.omx-compact .halo-metric{padding:15px}html.omx-compact .halo-main{padding-top:18px}html.omx-compact .module-panel{padding:20px}html.omx-compact .h-card{padding:20px}html.omx-compact .omx-utility-grid article{padding:16px}

/* OMNIX V9: unified circular logo across public site, drawer, admin and React shell */
.omx-brand-image{display:block;width:44px;height:44px;flex:0 0 44px;object-fit:contain;border-radius:50%;background:#09090d;box-shadow:0 4px 24px rgba(228,139,170,.16);vertical-align:middle}
.h-brand .omx-brand-image{width:42px;height:42px;flex-basis:42px}
.halo-drawer-brand .omx-brand-image-drawer{width:46px;height:46px;flex-basis:46px}
.halo-logo .omx-brand-image-dashboard{width:46px;height:46px;flex-basis:46px}
.halo-admin-brand .omx-brand-image-admin{width:46px;height:46px;flex-basis:46px}
.omx-loader-top{display:flex;align-items:center;justify-content:center;gap:10px}
.omx-loader-brand-icon{width:30px;height:30px;object-fit:contain;border-radius:50%;flex-shrink:0}
@media(max-width:420px){.h-brand .omx-brand-image{width:38px;height:38px;flex-basis:38px}.halo-logo .omx-brand-image-dashboard{width:42px;height:42px;flex-basis:42px}}

/* OMNIX V15 — Navigation par capacités, aucune apparition de liens privés avant chargement. */
[data-omx-nav-role][hidden], [data-omx-nav-section][hidden], #halo-side-account[hidden], #halo-side-login[hidden], #halo-side-logout[hidden] { display:none!important; }
.halo-drawer-group[data-omx-nav-section=staff] { border-top:1px solid rgba(228,139,170,.14); padding-top:12px; }
.halo-drawer-link:focus-visible, .halo-nav-item:focus-visible { outline:2px solid #FFB39E; outline-offset:3px; }
