/*
 * © 2026 Ael-Host — feito por Fakkwel. Todos os direitos reservados.
 * Proibida a cópia, revenda ou distribuição deste código sem autorização do autor.
 */
/* =========================================================
   OuroBot — tokens, reset e estrutura do painel
   Quase tudo aqui é controlado por variáveis que a página
   "Personalizar" altera em tempo real.
   ========================================================= */
:root {
  --accent: #ef233c;
  --accent-ink: #ffffff;           /* texto sobre a cor de destaque (calculado em JS) */
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 45%, transparent);

  --font-ui: 'Inter Variable', 'Inter', system-ui, sans-serif;
  --font-display: 'Sora Variable', 'Sora', var(--font-ui);
  --font-mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --r: 10px;                       /* raio base (afiado/normal/redondo) */
  --r-lg: calc(var(--r) * 1.5);
  --r-sm: calc(var(--r) * .6);
  --glass: .78;                    /* opacidade dos painéis */
  --blur: 14px;
  --speed: 1;                      /* multiplicador das animações */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: 16px;                     /* densidade */
  --rail: 60px;
  --side: 268px;
  --status: 28px;

  --ok: #34d399;
  --bad: #ff5d73;
  --warn: #ffb547;
  --info: #60a5fa;
  --violet: #a78bfa;
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f1020;
  --bg-2: #14162b;
  --panel-rgb: 22, 24, 44;
  --panel: rgba(var(--panel-rgb), var(--glass));
  --panel-solid: #171a31;
  --raise: rgba(255, 255, 255, .045);
  --raise-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e9eaf5;
  --text-2: #b9bdd6;
  --muted: #8a8fb0;
  --faint: #5f6488;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .65), 0 2px 8px -2px rgba(0, 0, 0, .4);
  --code-bg: #0b0c18;
}

[data-theme='light'] {
  color-scheme: light;
  --bg: #eceef5;
  --bg-2: #e3e6f0;
  --panel-rgb: 255, 255, 255;
  --panel: rgba(var(--panel-rgb), calc(var(--glass) + .1));
  --panel-solid: #ffffff;
  --raise: rgba(20, 24, 60, .04);
  --raise-2: rgba(20, 24, 60, .075);
  --line: rgba(20, 24, 60, .09);
  --line-2: rgba(20, 24, 60, .16);
  --text: #171a2e;
  --text-2: #3c4160;
  --muted: #646a8c;
  --faint: #9599b5;
  --shadow: 0 18px 40px -22px rgba(30, 34, 80, .35), 0 2px 6px -2px rgba(30, 34, 80, .12);
  --code-bg: #f6f7fb;
}

[data-density='compact'] { --pad: 11px; }
[data-density='comfy'] { --pad: 20px; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  font-feature-settings: 'cv11', 'ss01';
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.2; letter-spacing: -.01em; font-weight: 650; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }
p { margin: 0 0 .6em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--raise-2); padding: .1em .4em; border-radius: 5px; }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 .4em; font-size: 11px; color: var(--text-2); background: var(--raise); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* scrollbar fino */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; border: 3px solid transparent; }

/* ---------- fundo ---------- */
#bg-canvas, #bg-image { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#bg-image { background-size: cover; background-position: center; opacity: 0; transition: opacity .6s; }
#bg-image.on { opacity: 1; }
#cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s; left: -999px; top: -999px;
}
body.cursor-glow #cursor-glow { opacity: .9; }
#app { position: relative; z-index: 2; height: 100%; }

/* ---------- carregamento inicial ---------- */
.boot { height: 100%; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.boot-coin {
  width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, var(--accent) 55%, #9a6400);
  box-shadow: 0 0 40px var(--accent-soft);
  animation: coinspin 1.4s var(--ease) infinite;
}
@keyframes coinspin { 0% { transform: rotateY(0) } 100% { transform: rotateY(360deg) } }

/* =========================================================
   Estrutura: trilho | barra lateral | conteúdo | barra de status
   ========================================================= */
.shell {
  display: grid;
  grid-template-columns: var(--rail) var(--side) 1fr;
  grid-template-rows: 1fr var(--status);
  height: 100%;
}
.shell.side-collapsed { grid-template-columns: var(--rail) 0 1fr; }
.shell.side-collapsed .side { opacity: 0; pointer-events: none; }

/* trilho de ícones */
.rail {
  grid-row: 1; grid-column: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 0;
  background: rgba(var(--panel-rgb), calc(var(--glass) + .12));
  backdrop-filter: blur(var(--blur));
  border-right: 1px solid var(--line);
}
.rail-logo { width: 36px; height: 36px; margin-bottom: 10px; display: grid; place-items: center; }
.rail-logo img { width: 34px; height: 34px; transition: transform calc(.6s / var(--speed)) var(--ease); }
.rail-logo:hover img { transform: rotate(-12deg) scale(1.06); }
.rail-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--muted); border-radius: var(--r); cursor: pointer;
  transition: color .2s, background .2s;
}
.rail-btn:hover { color: var(--text); background: var(--raise-2); }
.rail-btn.active { color: var(--accent); background: var(--accent-soft); }
.rail-btn.active::before {
  content: ''; position: absolute; left: -9px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn .dot { position: absolute; top: 7px; right: 7px; min-width: 8px; height: 8px; border-radius: 8px; background: var(--bad); box-shadow: 0 0 0 2px var(--panel-solid); font-size: 9px; line-height: 8px; }
.rail-spacer { flex: 1; }
.rail-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line-2); cursor: pointer; padding: 0; background: var(--raise-2); }
.rail-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* barra lateral (explorador) */
.side {
  grid-row: 1; grid-column: 2;
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: rgba(var(--panel-rgb), calc(var(--glass) - .06));
  backdrop-filter: blur(var(--blur));
  border-right: 1px solid var(--line);
  transition: opacity .25s;
}
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
.side-head h4 { font-size: 12px; color: var(--muted); font-family: var(--font-ui); font-weight: 600; letter-spacing: .02em; }
.side-body { flex: 1; overflow: auto; padding: 0 8px 12px; }
.side-section { margin-top: 10px; }
.side-section > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 6px; border-radius: 6px; user-select: none;
}
.side-section > summary::-webkit-details-marker { display: none; }
.side-section > summary svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.side-section[open] > summary svg.chev { transform: rotate(90deg); }
.side-section > summary:hover { color: var(--text); }

.side-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--text-2);
  cursor: pointer; text-align: left; transition: background .15s, color .15s; text-decoration: none !important;
}
.side-item:hover { background: var(--raise-2); color: var(--text); }
.side-item.active { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.side-item svg { width: 16px; height: 16px; flex: none; }
.side-item .meta { margin-left: auto; font-size: 11px; color: var(--faint); font-family: var(--font-mono); }
.side-item .t { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item small { display: block; font-size: 11px; color: var(--faint); font-family: var(--font-mono); }

/* conteúdo */
.main { grid-row: 1; grid-column: 3; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px; min-height: 56px;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--panel-rgb), calc(var(--glass) - .2));
  backdrop-filter: blur(var(--blur));
}
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.crumbs b { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }
.topbar .grow { flex: 1; }
.palette-trigger {
  display: flex; align-items: center; gap: 10px; min-width: 260px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); color: var(--muted); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.palette-trigger:hover { border-color: var(--line-2); background: var(--raise-2); }
.palette-trigger svg { width: 15px; height: 15px; }
.palette-trigger kbd { margin-left: auto; }

.view { flex: 1; overflow: auto; position: relative; scroll-behavior: smooth; }
.view-inner { padding: 24px 28px 48px; max-width: 1360px; margin: 0 auto; }
.view-inner.wide { max-width: none; }
.view-inner.flush { padding: 0; max-width: none; height: 100%; }

/* barra de status estilo editor */
.statusbar {
  grid-row: 2; grid-column: 1 / -1;
  display: flex; align-items: stretch; gap: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 500 12px/var(--status) var(--font-mono);
  overflow: hidden; white-space: nowrap; user-select: none;
}
.statusbar .seg { display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; background: transparent; color: inherit; cursor: default; font: inherit; }
.statusbar button.seg { cursor: pointer; }
.statusbar button.seg:hover { background: rgba(0, 0, 0, .12); }
.statusbar .seg svg { width: 13px; height: 13px; }
.statusbar .seg.brand { background: rgba(0, 0, 0, .16); font-weight: 700; }
.statusbar .grow { flex: 1; }
.statusbar .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.statusbar .pulse.on { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 60%, transparent) } 70% { box-shadow: 0 0 0 7px transparent } 100% { box-shadow: 0 0 0 0 transparent } }

/* transições de página */
.page-enter { animation: var(--page-anim, pageFade) calc(.38s / var(--speed)) var(--ease-out) both; }
@keyframes pageFade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes pageSlide { from { opacity: 0; transform: translateX(22px) } to { opacity: 1; transform: none } }
@keyframes pageZoom { from { opacity: 0; transform: scale(.975) } to { opacity: 1; transform: none } }
@keyframes pageBlur { from { opacity: 0; filter: blur(8px) } to { opacity: 1; filter: none } }
@keyframes pageNone { from { opacity: 1 } to { opacity: 1 } }

/* revelar ao rolar */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity calc(.5s / var(--speed)) var(--ease-out), transform calc(.5s / var(--speed)) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
body.no-reveal .reveal { opacity: 1; transform: none; }

/* lista animada (entrada escalonada) */
.stagger > * { animation: itemIn calc(.42s / var(--speed)) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms / var(--speed)); }
@keyframes itemIn { from { opacity: 0; transform: translateY(8px) scale(.99) } to { opacity: 1; transform: none } }
.leaving { animation: itemOut calc(.28s / var(--speed)) var(--ease) both !important; }
@keyframes itemOut { to { opacity: 0; transform: translateX(-12px); height: 0; margin: 0; padding-top: 0; padding-bottom: 0 } }

/* animação de abrir/fechar (detalhes, seções) */
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows calc(.32s / var(--speed)) var(--ease-out); }
.collapse > .collapse-inner { overflow: hidden; min-height: 0; }
.collapse.open { grid-template-rows: 1fr; }

body.no-anim *, body.no-anim *::before, body.no-anim *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  :root { --side: 230px; }
  .palette-trigger { min-width: 0; }
  .palette-trigger span { display: none; }
}
/* botão "Mais" e fundo da gaveta só existem no celular */
.rail-more, .side-back { display: none; }
@media (max-width: 820px) {
  :root { --navh: calc(58px + env(safe-area-inset-bottom, 0px)); }
  /* minmax(0, 1fr): sem isso a barra de baixo (muitos ícones) alargava o painel inteiro além da tela */
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) var(--navh); }
  .rail {
    grid-row: 3; grid-column: 1; flex-direction: row; justify-content: space-around; align-items: center; gap: 2px;
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    border-right: 0; border-top: 1px solid var(--line); z-index: 20; min-width: 0;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail-logo, .rail-spacer { display: none; }
  .rail-btn { flex: 1 1 0; min-width: 44px; max-width: 72px; height: 46px; }
  .rail-btn svg { width: 22px; height: 22px; }
  .rail-btn.active::before { display: block; left: 30%; right: 30%; top: -7px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .rail-avatar { flex: none; width: 36px; height: 36px; margin: 0 6px; }
  .rail-more { display: grid; }
  .side {
    position: fixed; inset: 0 auto var(--navh) 0; width: min(86vw, 320px); z-index: 30; transform: translateX(-102%);
    transition: transform .3s var(--ease-out); background: var(--panel-solid);
    padding-top: env(safe-area-inset-top, 0px);
  }
  .shell.side-open .side { transform: none; box-shadow: var(--shadow); }
  .shell.side-collapsed .side { opacity: 1; pointer-events: auto; }
  .side-back { display: block; position: fixed; inset: 0 0 var(--navh) 0; z-index: 29; background: rgba(5, 6, 15, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .shell.side-open .side-back { opacity: 1; pointer-events: auto; }
  .side-item { min-height: 44px; }
  .side-section > summary { min-height: 40px; }
  .main { grid-row: 1 / 3; grid-column: 1; }
  .statusbar { display: none; }
  .view-inner { padding: 18px 16px 40px; }
  .topbar { padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top, 0px)); gap: 8px; min-height: 54px; }
  .topbar .btn.sm { height: 38px; }
  .topbar .btn.icon.sm { width: 38px; }
  .crumbs { flex: 1 1 auto; overflow: hidden; white-space: nowrap; }
  .crumbs > svg { flex: none; }
  .crumbs > a, .crumbs > b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .crumbs > :last-child { flex-shrink: .4; }
  .topbar .grow { display: none; }
  .palette-trigger { flex: none; width: 40px; height: 40px; padding: 0; justify-content: center; }
  .palette-trigger kbd { display: none; }
}
@media (max-width: 600px) {
  /* no celular a barra de baixo mostra só o principal; o resto fica no "Mais" (gaveta) */
  .rail-btn[data-nav="/ouro"], .rail-btn[data-nav="/planos"], .rail-btn[data-nav="/carteira"], .rail-btn[data-nav="/docs"],
  .rail-btn[data-nav="/suporte"], .rail-btn[data-nav="/personalizar"] { display: none; }
  .view-inner { padding: 16px 14px 32px; }
  .crumbs > :nth-last-child(n+4) { display: none; } /* mostra só os 2 últimos níveis */
  .topbar [data-act="install"] span { display: none; }
  .topbar [data-act="install"] { width: 38px; padding: 0; }
}

/* ===== Abertura Ael-Host (olho abrindo) ===== */
#splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: radial-gradient(900px 600px at 50% 45%, #1a1014 0%, #08080c 60%, #040406 100%); transition: opacity .6s ease, visibility .6s; overflow: hidden; }
#splash.out { opacity: 0; visibility: hidden; }
.ael-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ael-eye { position: relative; width: min(64vw, 300px); aspect-ratio: 1; border-radius: 23%; overflow: hidden; box-shadow: 0 30px 80px rgba(255,30,60,.25); animation: aelIn .9s cubic-bezier(.2,.8,.2,1) both; }
.ael-eye img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: aelZoom 2.4s cubic-bezier(.2,.8,.2,1) both; filter: contrast(1.08); }
.ael-glow { position: absolute; left: 50%; top: 46%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,40,60,.55) 0%, rgba(255,0,40,.18) 45%, transparent 70%); mix-blend-mode: screen; opacity: 0; animation: aelGlow 2.2s ease-in-out .9s infinite; }
.ael-lid { display: none; position: absolute; left: -5%; width: 110%; height: 52%; background: #0b0a0e; z-index: 2; }
.ael-lid.top { top: 0; transform-origin: top; border-bottom: 2px solid rgba(255,255,255,.55); border-radius: 0 0 50% 50% / 0 0 30% 30%; animation: aelLidTop 1.1s cubic-bezier(.7,0,.2,1) .25s both; }
.ael-lid.bottom { bottom: 0; transform-origin: bottom; border-top: 2px solid rgba(255,255,255,.35); border-radius: 50% 50% 0 0 / 30% 30% 0 0; animation: aelLidBot 1.1s cubic-bezier(.7,0,.2,1) .25s both; }
.ael-strands { position: absolute; inset: -40px -60px; pointer-events: none; z-index: 3; }
.ael-strands i { position: absolute; height: 2px; width: 140px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent); opacity: 0; animation: aelStrand 2.6s ease-in-out infinite; }
.ael-strands i:nth-child(1) { top: 18%; left: -10%; transform: rotate(-24deg); animation-delay: .5s; }
.ael-strands i:nth-child(2) { top: 30%; right: -8%; transform: rotate(18deg); animation-delay: .9s; width: 180px; }
.ael-strands i:nth-child(3) { top: 62%; left: -4%; transform: rotate(12deg); animation-delay: 1.3s; }
.ael-strands i:nth-child(4) { top: 74%; right: 0; transform: rotate(-30deg); animation-delay: 1.7s; width: 110px; }
.ael-strands i:nth-child(5) { top: 8%; left: 40%; transform: rotate(70deg); animation-delay: 1.1s; width: 90px; }
.ael-strands i:nth-child(6) { top: 86%; left: 30%; transform: rotate(-62deg); animation-delay: 2s; width: 100px; }
.ael-name { display: flex; gap: .02em; font: 800 clamp(30px, 8vw, 44px)/1 var(--font-display, 'Sora', sans-serif); letter-spacing: .06em; color: #f4f4f6; text-transform: none; }
.ael-name span { opacity: 0; transform: translateY(14px); filter: blur(6px); animation: aelLetter .55s cubic-bezier(.2,.8,.2,1) forwards; }
.ael-name span:nth-child(4) { color: #ff2a44; text-shadow: 0 0 18px rgba(255,42,68,.8); }
.ael-name span:nth-child(1) { animation-delay: 1.05s; } .ael-name span:nth-child(2) { animation-delay: 1.11s; } .ael-name span:nth-child(3) { animation-delay: 1.17s; } .ael-name span:nth-child(4) { animation-delay: 1.23s; }
.ael-name span:nth-child(5) { animation-delay: 1.29s; } .ael-name span:nth-child(6) { animation-delay: 1.35s; } .ael-name span:nth-child(7) { animation-delay: 1.41s; } .ael-name span:nth-child(8) { animation-delay: 1.47s; }
.ael-sub { font: 500 12px/1 var(--font-mono, monospace); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.45); opacity: 0; animation: aelFade .6s ease 1.6s forwards; }
@keyframes aelIn { from { opacity: 0; transform: scale(.92); } }
@keyframes aelZoom { from { transform: scale(1.45); } }
@keyframes aelLidTop { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes aelLidBot { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes aelBlinkTop { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
@keyframes aelBlinkBot { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
@keyframes aelGlow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes aelStrand { 0% { opacity: 0; translate: -30px 0; } 35% { opacity: .9; } 70%, 100% { opacity: 0; translate: 40px 0; } }
@keyframes aelLetter { to { opacity: 1; transform: none; filter: none; } }
@keyframes aelFade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ael-eye, .ael-eye img, .ael-lid, .ael-glow, .ael-strands i, .ael-name span, .ael-sub { animation: none !important; }
  .ael-lid { display: none; } .ael-name span, .ael-sub { opacity: 1; transform: none; filter: none; } .ael-glow { opacity: .6; }
}
/* logo Ael-Host (capuz animado): cantos arredondados e brilho vermelho */
.rail-logo img, .auth-brand img { border-radius: 30%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 4px 14px rgba(255,30,60,.25); }
/* celular: o chat entra na barra de baixo; Sistemas fica no menu ☰ */
@media (max-width: 600px) { .rail-btn[data-nav="/sistemas"] { display: none; } }
