/* EDRIS brand look, shared by the public pages (home, /guest, /join and business demos).
   Black, white and blue: near-black navy background, bold wide white wordmark, the living blue orb.
   Loaded after each page's own styles so it can restyle them. The private app (/app) does not use it. */
:root {
  --e-bg: #05070B;
  --e-navy: #0A0806;
  --e-panel: #0A0806;
  --e-panel-2: #0A0806;
  --e-line: #16120B;
  --e-white: #F4F7FF;
  --e-ice: #F7F0E0;
  --e-muted: #B8AE9C;
  --e-blue: #E9B44C;
  --e-blue-hi: #E9B44C;
  --e-blue-lo: #E9B44C;
  --e-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --e-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* The living orb */
.orb {
  position: relative; overflow: visible; border-radius: 50%;
  background: url(/orb.svg) center / contain no-repeat !important;
  box-shadow: none !important; filter: drop-shadow(0 0 18px rgba(233,180,76,.55));
  animation: eFloat 7s ease-in-out infinite !important;
}
.orb::before, .orb::after { content: none !important; }
.orb.small, .orb.tiny { animation: none !important; filter: drop-shadow(0 0 6px rgba(233,180,76,.6)); }
.orb.small::before, .orb.tiny::before { filter: blur(2px); }
.orb.small::after, .orb.tiny::after { filter: blur(1px); }
.orb.busy { animation: eFloat 1.4s ease-in-out infinite !important; filter: drop-shadow(0 0 14px rgba(245,211,138,.9)); }
.orb.busy::before { animation-duration: 1.5s; }
@keyframes eFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.03); } }
@keyframes eGlow {
  0%, 100% { box-shadow: 0 0 24px 4px rgba(233,180,76,.45), 0 0 60px 12px rgba(233,180,76,.2), inset -14px -18px 34px rgba(10,8,6,.65); }
  50% { box-shadow: 0 0 36px 8px rgba(233,180,76,.7), 0 0 80px 18px rgba(233,180,76,.32), inset -14px -18px 34px rgba(10,8,6,.65); }
}
@keyframes eGlowSm {
  0%, 100% { box-shadow: 0 0 8px 1px rgba(233,180,76,.45), inset -4px -5px 10px rgba(10,8,6,.6); }
  50% { box-shadow: 0 0 18px 5px rgba(233,180,76,.75), inset -4px -5px 10px rgba(10,8,6,.6); }
}
@keyframes eSpin { to { transform: rotate(360deg); } }
@keyframes eShine { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(18%, 10%); } 66% { transform: translate(-6%, 22%); } }

/* The wordmark: bold, wide, white with a cool blue fade, like the EDRIS logo */
.wordmark, .word {
  font-family: var(--e-font) !important; font-weight: 900 !important; font-stretch: 125% !important;
  letter-spacing: .03em !important; padding-left: 0 !important; text-transform: uppercase;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--e-ice) 60%, #F5D38A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(233,180,76,.3));
}

/* Guest and members pages */
/* Dark mode: navy-to-black background */
body.e-dark {
  font-family: var(--e-text) !important;
  background: radial-gradient(120% 60% at 50% 0%, var(--e-navy) 0%, #070B14 45%, var(--e-bg) 100%) fixed, var(--e-bg) !important;
}
body.e-dark header b { font-family: var(--e-font); font-weight: 900; font-stretch: 125%; letter-spacing: .04em; color: var(--e-white); }
body.e-dark header { background: rgba(5,7,11,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.e-dark .m.user { color: #fff; }

/* Light mode (follows the phone's setting): white background */
@media (prefers-color-scheme: light) {
:root:has(body.e-dark) { --bg: #FFFFFF; --panel: #F5F8FC; --line: #E3E9F2; --text: #0A0806; --muted: #6B6150; --bad: #C62828; }
html:has(body.e-dark) { background: #FFFFFF; }
body.e-dark {
  font-family: var(--e-text) !important;
  background: #FFFFFF !important; color: #0A0806 !important;
}
body.e-dark header b { font-family: var(--e-font); font-weight: 900; font-stretch: 125%; letter-spacing: .04em; color: #0A0806; }
body.e-dark header { background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.e-dark .msg.ok { color: #241D12; }
body.e-dark #msg { box-shadow: none; }
body.e-dark .m.user { color: #fff; }
.wordmark, .word {
  background: linear-gradient(180deg, #0A0806 0%, #16120B 75%, #E9B44C 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important; filter: none !important;
}
}
body.e-dark .go, body.e-dark .send, body.e-dark .over a:not(.ghost) {
  background: linear-gradient(180deg, var(--e-blue-hi), var(--e-blue-lo)) !important; color: #fff;
  box-shadow: 0 8px 24px -8px rgba(233,180,76,.7);
}
body.e-dark .go:disabled, body.e-dark .send:disabled { box-shadow: none; }
body.e-dark .m.user {
  background: linear-gradient(180deg, var(--e-blue-hi), var(--e-blue-lo)) !important;
  box-shadow: 0 6px 22px -10px rgba(233,180,76,.9);
}
body.e-dark input, body.e-dark textarea, body.e-dark button { font-family: var(--e-text); }
body.e-dark input:focus, body.e-dark textarea:focus {
  border-color: var(--e-blue) !important; box-shadow: 0 0 0 3px rgba(233,180,76,.22), 0 0 18px -4px rgba(233,180,76,.6) !important;
}

@media (prefers-reduced-motion: reduce) {
  .orb, .orb::before, .orb::after { animation: none !important; }
}
