/* =====================================================================
   IA Sinais — visual brilhante (glossy) em verde
   (o vermelho fica só para o que é perigo: erros, terminar sessão, "evitar")
   O brilho vem de 3 coisas: gradiente vertical em 3 tons (claro em cima),
   uma linha de luz branca no topo (inset) e uma sombra colorida por baixo.
   Mais um foco de luz no topo do ecrã e cartões translúcidos com borda fina.
   ===================================================================== */

@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  color-scheme: dark;

  --bg: #001104;
  --surface: #001b0a;
  --surface-2: #00220d;
  --surface-3: #002e14;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --text: #ffffff;
  --text-2: #b7d4bf;
  --text-3: #789881;

  --accent: #00a360;
  --accent-hi: #96d6ab;
  --accent-lo: #007142;
  --accent-2: #00b974;
  --accent-soft: rgba(0, 163, 96, .16);
  --accent-line: rgba(62, 190, 120, .38);
  --gloss: linear-gradient(180deg, #96d6ab 0%, #00a360 42%, #007142 100%);
  --gloss-hl: inset 0 1px 0 rgba(255, 255, 255, .6);
  --glow: 0 8px 26px -4px rgba(0, 163, 96, .6);

  --ok: #34d17c;   --ok-soft: rgba(52, 209, 124, .15);
  --warn: #f5a524; --warn-soft: rgba(245, 165, 36, .15);
  --info: #7cb8ff; --info-soft: rgba(124, 184, 255, .12);
  --danger: #ff6b7a; --danger-soft: rgba(255, 92, 108, .14); --danger-line: rgba(255, 120, 135, .38);

  --radius: 20px;
  --appbar-h: 62px;
  --tabbar-h: 70px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sheet: cubic-bezier(.32, .72, 0, 1);

  /* compatibilidade com páginas antigas */
  --card: var(--surface);
  --border: var(--line);
  --muted: var(--text-3);
  --accent-dim: var(--accent-soft);
  --accent-border: var(--accent-line);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  /* sem fundo no body: o fundo está no html, assim o foco de luz (z-index -1) fica visível */
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* foco de luz no topo, como um holofote */
body::before {
  content: '';
  position: fixed; z-index: -1; pointer-events: none;
  left: 50%; top: -14vh;
  width: 150vw; max-width: 980px; height: 82vh;
  transform: translateX(-50%);
  background:
    radial-gradient(52% 42% at 50% 0%, rgba(83, 195, 130, .32), transparent 72%),
    conic-gradient(from 180deg at 50% 0%, transparent 150deg, rgba(186, 227, 199, .09) 166deg,
                   rgba(219, 240, 224, .17) 180deg, rgba(186, 227, 199, .09) 194deg, transparent 210deg);
  filter: blur(6px);
  -webkit-mask-image: linear-gradient(180deg, #000 25%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 25%, transparent 100%);
  animation: spot 6s ease-in-out infinite alternate;
}

html.sheet-open body { overflow: hidden; }

img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ---------- tipografia ---------- */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--text-2); }
.title-xl { font-size: 29px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.title-xl em { font-style: normal; color: var(--text-2); }
.title-lg { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.subtitle { font-size: 14.5px; color: var(--text-2); margin-top: 4px; }
.muted { color: var(--text-2); }
.page-head { padding: 6px 2px 16px; }
.grad-text {
  background: linear-gradient(180deg, #d6eedd 0%, #00a963 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 28px 2px 12px;
  font-size: 19px; font-weight: 800; letter-spacing: -.015em;
  scroll-margin-top: calc(var(--appbar-h) + var(--sat) + 12px);
}
.section-head .count {
  font-size: 12px; font-weight: 800; color: var(--text-2);
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px;
}
.section-head a { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 800; color: var(--accent); text-decoration: none; }

/* =====================================================================
   BRILHO (glossy)
   ===================================================================== */
.gloss { background: var(--gloss); color: #fff; box-shadow: var(--gloss-hl), var(--glow); text-shadow: 0 1px 1px rgba(0, 61, 33, .35); }

/* reflexo que atravessa o elemento de vez em quando */
.shine { position: relative; overflow: hidden; }
.shine::after, .btn-primary::after, .tc::after {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: shine-sweep 5s ease-in-out infinite;
  pointer-events: none;
}

/* moeda / medalha vermelha com o diamante */
.coin {
  --s: 30px;
  position: relative; flex: none; overflow: hidden;
  width: var(--s); height: var(--s); border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #cae9d3 0%, #00b268 30%, #00844d 62%, #00522e 100%);
  box-shadow: inset 0 0 0 calc(var(--s) * .07) rgba(255, 255, 255, .3), inset 0 -3px 6px rgba(0, 42, 21, .45), 0 4px 14px -2px rgba(0, 163, 96, .65);
}
.coin::before { content: ''; position: absolute; inset: 17%; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); }
.coin svg { position: relative; width: 46%; height: 46%; filter: drop-shadow(0 1px 1px rgba(0, 48, 25, .55)); }
.coin.md { --s: 44px; }
.coin.lg { --s: 64px; }
.coin.xl { --s: 92px; }
.coin.off { filter: grayscale(.85) brightness(.75); }

/* =====================================================================
   ESTRUTURA
   ===================================================================== */
.appbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--appbar-h) + var(--sat));
  padding: var(--sat) 16px 0;
  background: linear-gradient(180deg, rgba(0, 17, 4, .94), rgba(0, 17, 4, .72));
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
  view-transition-name: appbar;
}
.appbar.scrolled { border-bottom-color: var(--line); }
.appbar-inner { height: 100%; max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.page-wide-shell .appbar-inner { max-width: 1120px; }
.appbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.avatar-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #003418, #001507);
  border: 1.5px solid rgba(255, 255, 255, .22);
  color: #fff; font-size: 16px; font-weight: 800; text-decoration: none;
  transition: transform .15s var(--ease);
}
.avatar-btn:active { transform: scale(.92); }

.greet {
  position: relative; margin-left: 6px;
  padding: 7px 12px; border-radius: 14px;
  background: #fff; color: #001809;
  font-size: 13px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  animation: bubble-in .7s var(--spring) .35s backwards;
}
.greet::before { content: ''; position: absolute; left: -4px; top: 50%; width: 10px; height: 10px; border-radius: 2px; background: #fff; transform: translateY(-50%) rotate(45deg); }
.greet span { position: relative; display: block; max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 360px) { .greet { display: none; } }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.brand-gem { width: 28px; height: 28px; filter: drop-shadow(0 4px 10px rgba(0, 163, 96, .45)); }
.brand-word { font-size: 18px; font-weight: 800; letter-spacing: .06em; }
.brand-word em, .accent-text { font-style: normal; color: var(--accent); }

.icon-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  color: var(--text); font-size: 21px; cursor: pointer;
  transition: transform .15s var(--ease), background .2s;
}
.icon-btn:active { transform: scale(.9); }
.icon-btn.ringing i { animation: bell-ring 1s ease both; transform-origin: 50% 3px; }

.badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 11px; border: 2px solid var(--bg);
  background: var(--gloss); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 17px; text-align: center;
  box-shadow: 0 4px 10px rgba(0, 163, 96, .5);
  animation: badge-pop .5s var(--spring) both;
}

.vip-pill {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 13px 0 5px; border-radius: 99px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--accent-line);
  color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px -10px rgba(0, 163, 96, .8);
}
.vip-pill small { font-size: 12px; font-weight: 700; color: var(--text-2); }

.page {
  position: relative;
  max-width: 600px; margin: 0 auto;
  padding: calc(var(--appbar-h) + var(--sat) + 8px) 16px calc(var(--tabbar-h) + var(--sab) + 40px);
}
.page.page-wide { max-width: 1120px; }

/* entrada escalonada do conteúdo (fill "backwards": no fim não deixa transform aplicado) */
.page > * { animation: rise .5s var(--ease) backwards; }
.page > *:nth-child(1) { animation-delay: .02s; }
.page > *:nth-child(2) { animation-delay: .07s; }
.page > *:nth-child(3) { animation-delay: .12s; }
.page > *:nth-child(4) { animation-delay: .17s; }
.page > *:nth-child(5) { animation-delay: .22s; }
.page > *:nth-child(6) { animation-delay: .27s; }
.page > *:nth-child(7) { animation-delay: .32s; }
.page > *:nth-child(n+8) { animation-delay: .36s; }

/* ---------- barra de baixo com botão central ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: space-around;
  padding: 7px 6px calc(7px + var(--sab));
  background: linear-gradient(180deg, rgba(0, 21, 7, .94), rgba(0, 11, 3, .98));
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border-top: 1px solid var(--line);
  view-transition-name: tabbar;
}
.tab {
  flex: 1; max-width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 2px 0; border: 0; background: none; cursor: pointer;
  color: var(--text-3); text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: .01em;
  transition: color .2s;
}
.tab-ic { position: relative; width: 52px; height: 32px; display: grid; place-items: center; }
.tab-ic i { position: relative; z-index: 1; font-size: 22px; transition: transform .3s var(--spring); }
.tab-pill {
  position: absolute; inset: 0; border-radius: 11px;
  background: linear-gradient(180deg, rgba(62, 190, 120, .38), rgba(0, 163, 96, .14));
  border: 1px solid rgba(102, 200, 140, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  opacity: 0; transform: scale(.5);
  transition: opacity .25s, transform .4s var(--spring);
}
.tab.active { color: #fff; }
.tab.active .tab-ic i { color: var(--accent-hi); }
.tab.active .tab-pill { opacity: 1; transform: none; view-transition-name: tabpill; }
.tab:active .tab-ic i { transform: scale(.85); }
.tab .badge { top: -4px; right: 6px; }

.tab-center { position: relative; }
.tc {
  position: relative; overflow: hidden;
  width: 62px; height: 62px; margin-top: -30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gloss);
  box-shadow: 0 0 0 5px #001506, 0 0 0 6.5px rgba(102, 200, 140, .38), var(--gloss-hl), 0 14px 30px -6px rgba(0, 163, 96, .8);
  animation: tc-float 3.2s ease-in-out infinite;
  transition: transform .2s var(--ease);
}
.tc svg { position: relative; width: 31px; height: 28px; filter: drop-shadow(0 2px 2px rgba(0, 54, 29, .45)); }
.tab-center.active .tc { box-shadow: 0 0 0 5px #001506, 0 0 0 7px rgba(150, 214, 171, .7), var(--gloss-hl), 0 14px 36px -4px rgba(0, 163, 96, 1); }
.tab-center:active .tc { transform: scale(.92); }

@media (min-width: 900px) {
  .tabbar {
    left: 50%; right: auto; bottom: 18px;
    translate: -50% 0;
    gap: 6px; padding: 8px 14px;
    border: 1px solid var(--line-2); border-radius: 26px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  }
  .tab { width: 90px; flex: none; }
  .page { padding-bottom: 140px; }
}

/* =====================================================================
   COMPONENTES
   ===================================================================== */
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.card + .card { margin-top: 12px; }

.btn {
  position: relative; overflow: hidden;
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 99px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .22);
  color: var(--text);
  font: 800 15px/1 'Plus Jakarta Sans', sans-serif;
  text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), filter .2s;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 19px; }
.btn-primary {
  border: 0;
  background: var(--gloss); color: #fff;
  box-shadow: var(--gloss-hl), var(--glow);
  text-shadow: 0 1px 1px rgba(0, 61, 33, .35);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .22); }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; }
.btn-glow { animation: glow 2.4s ease-in-out infinite; }

/* quadrado de ícone brilhante */
.ic {
  position: relative; overflow: hidden;
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  display: grid; place-items: center; font-size: 23px;
  background: var(--gloss); color: #fff;
  box-shadow: var(--gloss-hl), 0 8px 18px -8px rgba(0, 163, 96, .9);
}
.ic i { filter: drop-shadow(0 1px 1px rgba(0, 54, 29, .45)); }
.ic img { width: 100%; height: 100%; object-fit: cover; }
.ic.sm { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }
.ic.dark { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.ic.dark i { filter: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12px; font-weight: 800; white-space: nowrap;
}
.chip i { font-size: 14px; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip .dot.pulse { animation: dot-pulse 1.8s ease-in-out infinite; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(52, 209, 124, .3); }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(245, 165, 36, .3); }
.chip.accent { background: var(--gloss); color: #fff; border: 0; box-shadow: var(--gloss-hl); text-shadow: 0 1px 1px rgba(0, 61, 33, .35); }
.chip.dark { background: rgba(0, 4, 1, .55); color: #fff; border-color: rgba(255, 255, 255, .14); }
.chip.info { background: var(--info-soft); color: var(--info); }

.list { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.row {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px;
  background: none; border: 0; color: var(--text);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.row + .row::before { content: ''; position: absolute; top: 0; left: 66px; right: 0; height: 1px; background: var(--line); }
.row:active { background: rgba(255, 255, 255, .05); }
.row-ic {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 19px;
  background: rgba(255, 255, 255, .08); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.row-ic.red { background: var(--gloss); color: #fff; box-shadow: var(--gloss-hl), 0 6px 14px -6px rgba(0, 163, 96, .9); }
.row-ic.green { background: var(--ok-soft); color: var(--ok); }
.row-ic.amber { background: var(--warn-soft); color: var(--warn); }
.row-ic.blue { background: var(--info-soft); color: var(--info); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main b { font-size: 15px; font-weight: 800; }
.row-main small { font-size: 13px; color: var(--text-2); }
.row-end { font-size: 14.5px; font-weight: 800; text-align: right; }
.row .chev { color: var(--text-3); font-size: 18px; }
.row.danger, .row.danger .row-ic { color: var(--danger); }
.row.danger .row-ic { background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger-line); }
.row.static { cursor: default; }
.row.static:active { background: none; }

.notice {
  display: flex; gap: 12px;
  padding: 14px 16px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--accent-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  color: var(--text-2); font-size: 13.5px; line-height: 1.55;
}
.notice > i { flex: none; margin-top: 1px; font-size: 20px; color: var(--accent-hi); }
.notice b { display: block; margin-bottom: 2px; color: #fff; font-size: 14px; }

.empty {
  padding: 34px 20px; text-align: center;
  background: var(--glass); border: 1px dashed var(--line-2); border-radius: var(--radius);
  color: var(--text-2); font-size: 14px;
}
.empty i { display: block; margin-bottom: 10px; font-size: 34px; color: var(--text-3); }

.footnote { margin-top: 20px; font-size: 12.5px; color: var(--text-3); text-align: center; line-height: 1.6; }
.footnote a { color: var(--text-2); }

.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .16; transform: scale(0);
  animation: ripple .6s ease-out forwards;
}

/* carrossel horizontal */
.h-scroll {
  display: flex; gap: 12px;
  margin: 0 -16px; padding: 8px 16px 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 16px;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; }

/* cartão de robô: vidro escuro, raios a rodar e um anel vivo à volta da mesa */
.game {
  position: relative; overflow: hidden; isolation: isolate;
  flex: none; width: 150px; height: 208px; border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 10px 14px; text-align: center;
  color: #fff; text-decoration: none;
  background:
    radial-gradient(90% 58% at 50% 33%, rgba(0, 154, 90, .5), transparent 72%),
    linear-gradient(180deg, #002610 0%, #001004 100%);
  border: 1px solid rgba(63, 191, 119, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 18px 34px -18px rgba(0, 0, 0, .85);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
  animation: rise .55s var(--ease) backwards;
}
.game:nth-child(2) { animation-delay: .06s; }
.game:nth-child(3) { animation-delay: .12s; }
.game:nth-child(4) { animation-delay: .18s; }
.game:nth-child(5) { animation-delay: .24s; }
.game:nth-child(6) { animation-delay: .3s; }
/* raios atrás da mesa */
.game::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 86px;
  width: 380px; height: 380px; margin: -190px 0 0 -190px;
  background: repeating-conic-gradient(rgba(255, 255, 255, .085) 0deg 7deg, transparent 7deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 14%, transparent 52%);
  mask-image: radial-gradient(circle, #000 14%, transparent 52%);
  animation: rays 30s linear infinite;
}
/* reflexo que passa pelo cartão */
.game::after {
  content: ''; position: absolute; z-index: 3; top: -10%; bottom: -10%; left: 0; width: 50%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: translateX(-170%) skewX(-18deg);
  animation: game-sweep 6s ease-in-out infinite;
}
.game:nth-child(2n)::after { animation-delay: 1.5s; }
.game:nth-child(3n)::after { animation-delay: 3s; }
.game:hover { transform: translateY(-4px); border-color: rgba(103, 200, 140, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 22px 40px -18px rgba(0, 151, 89, .75); }
.game:active { transform: scale(.97); }
.game .g-img {
  position: absolute; top: 42px; left: 50%; isolation: isolate; overflow: hidden;
  width: 90px; height: 90px; margin-left: -45px; padding: 3px; border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(0, 151, 89, .12), 0 0 28px rgba(0, 151, 89, .55), 0 12px 24px rgba(0, 0, 0, .5);
  animation: float 4s ease-in-out infinite;
}
/* anel: um gradiente que roda por transform por trás da foto (só aparece nos 3 px de margem) */
.game .g-img::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: conic-gradient(#009759, #acddbb 18%, #009759 36%, rgba(0, 151, 89, .12) 62%, #009759);
  animation: rays 2.8s linear infinite; will-change: transform;
}
.game:nth-child(2n) .g-img { animation-delay: -1.3s; }
.game:nth-child(3n) .g-img { animation-delay: -2.6s; }
.game .g-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid #001004; background: #001004; }
.game b { display: block; max-width: 100%; font-size: 14px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: rgba(208, 235, 215, .68); white-space: nowrap; }
.game .g-tl { position: absolute; top: 10px; left: 10px; z-index: 2; }
.game .g-tr { position: absolute; top: 10px; right: 10px; z-index: 2; }
.game .chip { height: 22px; padding: 0 8px; font-size: 10.5px; }
.game .chip.ok { background: rgba(8, 36, 20, .6); border-color: rgba(52, 209, 124, .45); }
/* barrinhas de sinal: o robô está a ler a mesa */
.g-bars { position: absolute; z-index: 2; top: 14px; right: 13px; display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.g-bars i { width: 3px; height: 100%; border-radius: 2px; background: #00ab63; box-shadow: 0 0 6px rgba(0, 158, 92, .8); transform-origin: bottom; animation: g-bar 1s ease-in-out infinite; }
.g-bars i:nth-child(1) { animation-delay: -.2s; }
.g-bars i:nth-child(2) { animation-delay: -.55s; }
.g-bars i:nth-child(3) { animation-delay: -.85s; }
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.games-grid .game { width: auto; height: 214px; }
@media (min-width: 700px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
/* etiqueta escolhida no painel (Novo, Em alta, Top) no canto do cartão */
.game .g-tag { border: 0; color: #fff; letter-spacing: .01em; }
.game .g-tag-novo { background: linear-gradient(180deg, #5b9bff, #2563eb); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 12px -4px rgba(37, 99, 235, .9); }
.game .g-tag-alta { background: var(--gloss); box-shadow: var(--gloss-hl), 0 4px 12px -4px rgba(0, 151, 89, .9); }
.game .g-tag-top { background: linear-gradient(180deg, #ffe08a, #f2a900); color: #3d2600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 12px -4px rgba(242, 169, 0, .9); }
.game .chip.warn { background: rgba(48, 30, 0, .65); border-color: rgba(245, 165, 36, .5); }
/* robô em manutenção: o cartão fica apagado e parado */
.game.g-off .g-img { animation: none; filter: grayscale(.9) brightness(.75); }
.game.g-off .g-img::before { animation: none; background: rgba(255, 255, 255, .16); }
.game.g-off b, .game.g-off small { opacity: .72; }
/* aviso de robôs grátis (página Robôs, contas sem VIP) */
a.notice { align-items: center; margin-bottom: 12px; text-decoration: none; transition: transform .15s var(--ease); }
a.notice:active { transform: scale(.98); }
a.notice > i:last-child { flex: none; margin-left: auto; color: var(--text-3); font-size: 18px; }
.notice-gratis { border-color: rgba(52, 209, 124, .4); }
.notice-gratis > i:first-child { color: var(--ok); }
.notice-gratis em { font-style: normal; font-weight: 800; color: var(--ok); }
@keyframes g-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes game-sweep { 0%, 70% { transform: translateX(-170%) skewX(-18deg); } 100% { transform: translateX(300%) skewX(-18deg); } }

/* linhas tipo "missão" (novidades) */
.missions { display: flex; flex-direction: column; gap: 10px; }
.mission {
  border-radius: 18px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.mission.hot {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(0, 171, 99, .16), rgba(0, 171, 99, .04));
  box-shadow: 0 16px 34px -20px rgba(0, 163, 96, .9), inset 0 1px 0 rgba(255, 255, 255, .09);
}
.mission > summary, .mission-row {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; cursor: pointer; list-style: none;
  color: var(--text); text-decoration: none;
}
.mission > summary::-webkit-details-marker { display: none; }
.m-txt { flex: 1; min-width: 0; }
.m-txt b { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
.m-txt small { display: block; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-txt small strong { color: var(--accent-hi); font-weight: 800; }
.mission .chev { flex: none; color: var(--text-3); font-size: 18px; transition: transform .25s var(--ease); }
.mission[open] .chev { transform: rotate(90deg); color: var(--accent-hi); }
.m-body { padding: 0 14px 14px; animation: rise .35s var(--ease); }
.m-body img { display: block; width: 100%; max-height: 280px; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.m-body p { white-space: pre-line; color: var(--text-2); font-size: 14px; }

/* =====================================================================
   NOTIFICAÇÕES
   ===================================================================== */
.backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 2, 1, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.backdrop.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; z-index: 100; left: 0; right: 0; bottom: 0;
  max-width: 560px; margin: 0 auto;
  max-height: 88vh; max-height: 88dvh;
  display: flex; flex-direction: column;
  padding-bottom: var(--sab);
  background: linear-gradient(180deg, #001d0a, #001205 40%);
  border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .45s var(--sheet), visibility 0s linear .45s;
}
.sheet.open { transform: none; visibility: visible; transition: transform .5s var(--sheet), visibility 0s; }
.sheet-grab { flex: none; touch-action: none; cursor: grab; }
.sheet-handle { width: 40px; height: 5px; margin: 10px auto 4px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 10px; }
.sheet-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 20px; }

/* ---------- MENU (separador "Menu"): janela que sobe do fundo, com cartões grandes ---------- */
.sheet.mn {
  left: 8px; right: 8px; max-width: 540px;
  border-radius: 30px 30px 0 0; border-color: rgba(103, 200, 140, .35);
  background:
    radial-gradient(120% 45% at 50% 0%, rgba(0, 162, 94, .38), transparent 70%),
    linear-gradient(180deg, #002c14 0%, #001809 48%, #001205 100%);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.mn .sheet-handle { width: 46px; background: rgba(255, 255, 255, .35); }
.mn-cab { display: flex; align-items: center; gap: 12px; padding: 8px 16px 14px; }
.mn-logo { width: 46px; height: 46px; flex: none; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 8px 18px -6px rgba(0, 0, 0, .6); }
.mn-cab-txt { flex: 1; min-width: 0; }
.mn-cab-txt h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.mn-cab-txt small { display: block; font-size: 12.5px; font-weight: 700; color: rgba(215, 239, 221, .78); }
.mn-x {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 19px;
  transition: background .2s, transform .15s var(--ease);
}
.mn-x:hover { background: rgba(255, 255, 255, .24); }
.mn-x:active { transform: scale(.92); }
.mn-corpo { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 18px; }
.mn-corpo > * { flex-shrink: 0; }   /* os cartões não encolhem: a janela é que faz scroll */
.mn-duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.mn-duas:empty, .mn-duas:not(:has(> :not([hidden]))) { display: none; }

.mn-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px;
  min-height: 118px; padding: 13px 14px 14px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 178, 103, .26) 0%, rgba(0, 162, 94, .1) 48%, rgba(255, 255, 255, .03) 100%);
  border: 1px solid rgba(120, 204, 150, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 30px -20px rgba(0, 0, 0, .9);
  color: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), border-color .2s, box-shadow .2s;
}
.mn-card[hidden] { display: none; }
.mn-card:hover { border-color: rgba(166, 220, 182, .6); }
.mn-card:active { transform: scale(.975); }
.mn-card.ativo { border-color: rgba(187, 228, 199, .75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 3px rgba(0, 163, 96, .2), 0 16px 30px -20px rgba(0, 0, 0, .9); }
/* ícone no canto: quadrado brilhante com aro claro */
.mn-ic {
  width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--gloss); color: #fff; font-size: 22px;
  box-shadow: var(--gloss-hl), 0 0 0 3px rgba(201, 232, 210, .5), 0 8px 18px -6px rgba(0, 157, 92, .95);
}
.mn-ic i { filter: drop-shadow(0 1px 1px rgba(0, 54, 29, .45)); }
.mn-seta {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
}
.mn-txt { position: relative; z-index: 1; display: block; max-width: 100%; }
.mn-card.largo .mn-txt { max-width: 62%; }
.mn-txt b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.mn-txt small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: rgba(215, 239, 221, .8); }
/* desenho grande e esbatido à direita */
.mn-arte { position: absolute; z-index: -1; right: -6px; bottom: -14px; font-size: 92px; line-height: 1; color: rgba(187, 228, 199, .13); transform: rotate(-12deg); pointer-events: none; }
.mn-card.largo .mn-arte { right: 14px; bottom: -10px; font-size: 104px; }
.mn-arte.fotos { z-index: 0; color: inherit; transform: none; right: 50px; bottom: auto; top: 56%; translate: 0 -50%; display: flex; align-items: center; }
.mn-card.com-robos .mn-txt { max-width: 50%; }
.mn-arte.robos { right: 48px; }
.mn-arte.robos img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid #001004; box-shadow: 0 0 0 2px rgba(63, 191, 119, .7), 0 10px 18px -6px rgba(0, 0, 0, .7); }
.mn-arte.robos img + img { margin-left: -14px; }
.mn-arte.robos img:nth-child(1) { transform: rotate(-10deg) translateY(6px); }
.mn-arte.robos img:nth-child(2) { position: relative; z-index: 1; width: 62px; height: 62px; }
.mn-arte.robos img:nth-child(3) { transform: rotate(10deg) translateY(6px); }
/* VIP: o cartão dourado do fim */
.mn-card.vip { border-color: rgba(255, 214, 107, .8); background: linear-gradient(135deg, rgba(255, 200, 70, .24) 0%, rgba(0, 171, 99, .1) 55%, rgba(255, 255, 255, .03) 100%); }
.mn-card.vip .mn-ic { background: linear-gradient(180deg, #ffe9a8, #ffc23d 55%, #e09a00); color: #3d2600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 3px rgba(255, 236, 180, .5), 0 8px 18px -6px rgba(255, 180, 40, .9); }
.mn-card.vip .mn-ic i { filter: none; }
.mn-card.vip .mn-seta { background: #ffd66b; border-color: #ffd66b; color: #3d2600; }
.mn-card.vip .mn-arte { color: rgba(255, 214, 107, .2); }

.mn-sair {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; margin-top: 4px; border-radius: 16px;
  background: rgba(0, 0, 0, .2); border: 1px solid var(--danger-line);
  color: #ff9aa6; font-size: 14.5px; font-weight: 800; text-decoration: none;
  transition: background .2s;
}
.mn-sair:active { background: var(--danger-soft); }
.mn-pe { margin-top: 2px; font-size: 12px; color: var(--text-3); text-align: center; }
/* ao abrir, os cartões entram um a um */
.sheet.mn.open .mn-corpo > * { animation: mn-entra .5s var(--ease) backwards; }
.sheet.mn.open .mn-corpo > :nth-child(1) { animation-delay: .06s; }
.sheet.mn.open .mn-corpo > :nth-child(2) { animation-delay: .1s; }
.sheet.mn.open .mn-corpo > :nth-child(3) { animation-delay: .14s; }
.sheet.mn.open .mn-corpo > :nth-child(4) { animation-delay: .18s; }
.sheet.mn.open .mn-corpo > :nth-child(5) { animation-delay: .22s; }
.sheet.mn.open .mn-corpo > :nth-child(6) { animation-delay: .26s; }
.sheet.mn.open .mn-corpo > :nth-child(n+7) { animation-delay: .3s; }
@keyframes mn-entra { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 360px) {
  .mn-card.largo .mn-txt { max-width: 56%; }
  .mn-card.com-robos .mn-txt { max-width: 46%; }
  .mn-arte.robos img { width: 44px; height: 44px; }
  .mn-arte.robos img:nth-child(2) { width: 50px; height: 50px; }
}

.nf-group { margin: 14px 4px 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.nf {
  position: relative; overflow: hidden;
  display: flex; gap: 12px;
  margin-bottom: 8px; padding: 13px 14px;
  border-radius: 16px; background: var(--glass); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  animation: nf-in .45s var(--ease) backwards;
}
.nf.unread { background: linear-gradient(180deg, rgba(0, 171, 99, .16), rgba(0, 171, 99, .05)); border-color: var(--accent-line); }
.nf.unread::after { content: ''; position: absolute; top: 17px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.nf-ic {
  width: 42px; height: 42px; border-radius: 13px; flex: none; overflow: hidden;
  display: grid; place-items: center; font-size: 21px;
  background: var(--gloss); color: #fff; box-shadow: var(--gloss-hl);
}
.nf-ic img { width: 100%; height: 100%; object-fit: cover; }
.nf-ic.vip { background: linear-gradient(180deg, #ffe39a, #f5a524 45%, #c97a00); }
.nf-txt { flex: 1; min-width: 0; padding-right: 14px; }
.nf-txt b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.35; }
.nf-txt p { margin-top: 2px; font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nf-time { display: block; margin-top: 4px; font-size: 12px; color: var(--text-3); }

.push-card {
  display: flex; align-items: center; gap: 12px;
  margin: 2px 0 6px; padding: 14px;
  border-radius: 18px; border: 1px solid var(--accent-line);
  background: linear-gradient(180deg, rgba(0, 171, 99, .2), rgba(0, 171, 99, .06));
}
.pc-ic { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--gloss); color: #fff; font-size: 21px; box-shadow: var(--gloss-hl); }
.pc-ic i { animation: bell-ring 1.2s ease 1s both; transform-origin: 50% 3px; }
.pc-txt { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.pc-txt b { display: block; color: var(--text); font-size: 14.5px; }
.push-state { display: flex; align-items: center; gap: 8px; margin: 2px 4px 6px; font-size: 13px; color: var(--ok); }
.push-state span { flex: 1; min-width: 0; }
.push-state.off { color: var(--text-3); }
.link-btn { flex: none; padding: 4px 2px; border: 0; background: none; color: var(--text-2); font: 800 13px 'Plus Jakarta Sans', sans-serif; text-decoration: underline; cursor: pointer; }

.toast {
  position: fixed; z-index: 120;
  left: 12px; right: 12px; top: calc(var(--sat) + 10px);
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 20px;
  background: rgba(0, 30, 12, .92);
  -webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px);
  border: 1px solid var(--accent-line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  cursor: pointer;
  transform: translateY(calc(-100% - 40px));
  visibility: hidden;
  transition: transform .5s var(--sheet), visibility 0s linear .5s;
}
.toast.show { transform: none; visibility: visible; transition: transform .65s var(--spring), visibility 0s; }
.toast img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.toast-txt { flex: 1; min-width: 0; }
.toast-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.toast-txt b { display: block; font-size: 14.5px; line-height: 1.35; }
.toast-txt p { font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =====================================================================
   ANIMAÇÃO DE ENTRADA (splash)
   ===================================================================== */
#splash {
  position: fixed; inset: 0; z-index: 1000;
  display: none; place-items: center;
  background: var(--bg); overflow: hidden;
}
html.splash #splash { display: grid; }
html.splash body { overflow: hidden; }
html.splash:not(.splash-exit) .page > * { animation-play-state: paused; }
html.splash-exit .appbar { animation: drop-in .75s var(--spring) .1s backwards; }
html.splash-exit .tabbar { animation: lift-in .75s var(--spring) .18s backwards; }

.sp-aurora { position: absolute; inset: 0; overflow: hidden; }   /* fora da grelha: o logótipo fica ao centro */
.sp-aurora i {
  position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%;
  opacity: 0; animation: fade-in 1.4s ease forwards, drift 9s ease-in-out infinite alternate;
}
.sp-aurora i:nth-child(1) { left: -30vmax; top: -40vmax; background: radial-gradient(circle, rgba(0, 161, 95, .34), transparent 62%); }
.sp-aurora i:nth-child(2) { right: -35vmax; bottom: -45vmax; background: radial-gradient(circle, rgba(0, 185, 116, .22), transparent 62%); animation-delay: .2s, -3s; }
.sp-aurora i:nth-child(3) { left: 10vmax; bottom: -55vmax; background: radial-gradient(circle, rgba(150, 214, 171, .14), transparent 62%); animation-delay: .4s, -6s; }

/* ---- tema casino: roleta atrás, IA SINAIS numa máquina de slot, jackpot com fichas ----
   (só transform e opacity: corre na placa gráfica) */
.sp-center { position: relative; display: flex; flex-direction: column; align-items: center; }

/* roleta a girar por trás do logótipo */
.sp-roleta {
  position: absolute; left: 50%; top: 50%; z-index: -1;
  width: min(118vw, 470px); aspect-ratio: 1; transform: translate(-50%, -54%);
  border-radius: 50%; opacity: 0; animation: fade-in .6s ease .05s forwards;
}
.sp-roleta-gira {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 58%, rgba(245, 196, 81, .9) 58.5% 59.5%, transparent 60% 69%, rgba(245, 196, 81, .75) 69.5% 70.5%, transparent 71%),
    repeating-conic-gradient(#006f41 0 9deg, #000a02 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle, transparent 57%, #000 58% 71%, transparent 72%);
  mask-image: radial-gradient(circle, transparent 57%, #000 58% 71%, transparent 72%);
  opacity: .62; will-change: transform;
  animation: sp-roda 2.7s cubic-bezier(.12, .7, .18, 1) forwards;
}
.sp-bola { position: absolute; inset: 0; will-change: transform; animation: sp-bola 2.5s cubic-bezier(.2, .62, .25, 1) forwards; }
.sp-bola::before {
  content: ''; position: absolute; left: 50%; top: 4.5%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #d6d6dc 60%, #9a9aa4);
  box-shadow: 0 0 12px rgba(255, 255, 255, .85);
  animation: sp-cai .45s cubic-bezier(.5, 0, .75, 0) 2.15s forwards;
}

/* máquina de slot: moldura dourada com luzes */
.sp-slot {
  position: relative; overflow: hidden;
  padding: 12px 14px; border-radius: 20px;
  background: linear-gradient(180deg, #001909, #000902);
  border: 2px solid #f5c451;
  box-shadow: 0 0 0 5px rgba(245, 196, 81, .14), 0 0 46px rgba(0, 151, 89, .45), inset 0 0 22px rgba(0, 0, 0, .7);
  transform: scale(.7); opacity: 0;
  animation: sp-entra .6s cubic-bezier(.34, 1.56, .64, 1) .1s forwards;
}
.sp-slot::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 40%; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 190, .55), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: sp-brilho .8s ease-in-out 1.75s forwards;
}
.sp-luzes { display: flex; justify-content: space-between; padding: 0 4px; }
.sp-luzes i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ffe7a3; box-shadow: 0 0 8px #f5c451;
  animation: sp-pisca .5s steps(1) infinite;
}
.sp-luzes i:nth-child(even) { animation-delay: .25s; }
.sp-luzes.cima { margin-bottom: 9px; }
.sp-luzes.baixo { margin-top: 9px; }
/* 8 rolos (IA SINAIS): o tamanho acompanha a largura do ecrã para caberem no telemóvel */
.sp-rolos { display: flex; gap: .14em; font-size: min(40px, 8.4vw); font-weight: 800; line-height: 1; --h: 1.12em; }
.sp-esp { flex: none; width: .3em; }   /* espaço entre "IA" e "SINAIS" */
.sp-rolo {
  position: relative; display: block; width: .92em; height: var(--h); overflow: hidden; border-radius: 9px;
  background: linear-gradient(180deg, #000b03, #001e0c 50%, #000b03);
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, .28), inset 0 6px 10px rgba(0, 0, 0, .55), inset 0 -6px 10px rgba(0, 0, 0, .55);
}
.sp-fita {
  display: flex; flex-direction: column; will-change: transform;
  animation: sp-gira var(--d, 1s) cubic-bezier(.3, .05, .2, 1) .25s both;
}
.sp-fita b { display: grid; place-items: center; height: var(--h); flex: none; font-weight: 800; }
.sp-fita b:nth-child(3n) { color: #f5c451; }
.sp-fita b:nth-child(3n+1) { color: #009e5c; }
.sp-fita b:nth-child(3n+2) { color: #fff; }
.sp-fita b.l { color: #fff; text-shadow: 0 2px 0 #007042, 0 0 16px rgba(0, 151, 89, .85), 0 0 30px rgba(245, 196, 81, .35); }
/* cada rolo pára um pouco depois do anterior: o --d (1s, 1.1s, 1.2s…) vem de cada rolo no base.html */

/* jackpot: clarão dourado + fichas e naipes a voar */
.sp-clarao {
  position: absolute; left: 50%; top: 50%; z-index: -1; width: 380px; height: 380px; margin: -190px 0 0 -190px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 102, .6), rgba(0, 151, 89, .28) 52%, transparent);
  opacity: 0; transform: scale(.3);
  animation: sp-clarao 1s ease-out 1.85s forwards;
}
.sp-voa { position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none; opacity: 0; animation: sp-voa 1.15s cubic-bezier(.15, .8, .3, 1) 1.85s both; }
.sp-voa.ficha {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle, #00864d 0 36%, #fff 37% 45%, #00864d 46%);
  border: 3px dashed #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}
.sp-voa.ficha.ouro { background: radial-gradient(circle, #c99210 0 36%, #fff 37% 45%, #c99210 46%); }
.sp-voa.naipe { font-size: 26px; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 0 12px rgba(0, 151, 89, .9); }
.sp-voa.naipe.vermelho { color: #009e5c; text-shadow: 0 0 12px rgba(0, 158, 92, .7); }
.sp-voa.naipe.ouro { color: #f5c451; text-shadow: 0 0 12px rgba(245, 196, 81, .7); }

.sp-tag { margin-top: 16px; font-size: 12.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #f5c451; text-shadow: 0 0 12px rgba(245, 196, 81, .35); opacity: 0; animation: fade-up .6s var(--ease) 1.9s forwards; }
.sp-bar { width: 150px; height: 4px; margin-top: 18px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .1); opacity: 0; animation: fade-in .3s ease .3s forwards; }
.sp-bar i { display: block; width: 100%; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #009759, #f5c451); box-shadow: 0 0 10px rgba(245, 196, 81, .7); animation: load 2.45s cubic-bezier(.4, 0, .2, 1) .35s forwards; }

@keyframes sp-roda { from { transform: rotate(0); } to { transform: rotate(1500deg); } }
@keyframes sp-bola { from { transform: rotate(0); } to { transform: rotate(-1180deg); } }
@keyframes sp-cai { to { transform: translateY(26px); } }
@keyframes sp-entra { to { transform: none; opacity: 1; } }
@keyframes sp-brilho { to { transform: translateX(330%) skewX(-18deg); } }
@keyframes sp-pisca { 50% { opacity: .2; } }
/* a fita tem 12 símbolos; a letra é o 11.º: sobe 10 alturas, passa um pouco e volta (efeito de travão) */
@keyframes sp-gira {
  0% { transform: translateY(0); }
  86% { transform: translateY(calc(var(--h) * -10.18)); }
  100% { transform: translateY(calc(var(--h) * -10)); }
}
@keyframes sp-clarao { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes sp-voa {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); }
}
.sp-skip { position: absolute; bottom: calc(var(--sab) + 26px); left: 0; right: 0; text-align: center; font-size: 12px; color: var(--text-3); opacity: 0; animation: fade-in .4s ease 1.8s forwards; }

#splash.out { animation: splash-fade .55s ease .12s forwards; pointer-events: none; }
#splash.out .sp-center { animation: zoom-through .6s cubic-bezier(.7, 0, .84, 0) forwards; }
#splash.out .sp-skip { display: none; }

/* =====================================================================
   PÁGINAS
   ===================================================================== */

/* ---------- início ---------- */
.hello { padding: 8px 2px 2px; }
.hello .sub { margin-top: 4px; font-size: 14px; color: var(--text-3); }
.live { display: flex; align-items: center; gap: 8px; margin: 10px 2px 16px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: live-pulse 2s ease-out infinite; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.2s ease-in-out .9s 2; }

.balance {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 16px; border-radius: 22px;
  color: var(--text); text-decoration: none;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #002f16 0%, #001b0a 58%, #001507 100%) padding-box,
    linear-gradient(135deg, rgba(174, 223, 189, .95), rgba(0, 163, 96, .5) 40%, rgba(255, 255, 255, .08) 80%) border-box;
  box-shadow: 0 22px 46px -24px rgba(0, 163, 96, .85), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.balance::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .09) 50%, transparent 62%);
  transform: translateX(-100%);
  animation: sheen 6s ease-in-out 1.6s infinite;
}
.balance .b-txt { flex: 1; min-width: 0; }
.balance .lbl { font-size: 13px; font-weight: 700; color: var(--text-2); }
.balance .big { display: block; font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; filter: drop-shadow(0 2px 12px rgba(0, 163, 96, .4)); }
.balance .big small { font-size: 17px; font-weight: 800; }
.balance .hint { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.balance .hint b { color: var(--accent-hi); }
.balance.free { display: block; }
.balance.free .b-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.balance.free .big { font-size: 27px; }
.vring { position: relative; flex: none; width: 76px; height: 76px; }
.vring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.vring circle { fill: none; stroke-width: 6.5; }
.vring .trk { stroke: rgba(255, 255, 255, .1); }
.vring .arc {
  stroke: url(#vringG); stroke-linecap: round;
  stroke-dasharray: 0 100;   /* o valor real vem no atributo style do template */
  filter: drop-shadow(0 0 5px rgba(0, 163, 96, .8));
  animation: arc-in 1.3s var(--ease) .35s backwards;
}
.vring span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 19px; font-weight: 800; line-height: 1; }
.vring small { margin-top: 3px; font-size: 10.5px; font-weight: 700; color: var(--text-2); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 14px 4px 11px; border-radius: 20px;
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(0, 154, 90, .26), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02));
  border: 1px solid rgba(32, 187, 110, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 14px 28px -18px rgba(0, 151, 89, .6);
  color: var(--text); text-decoration: none;
  font-size: 13.5px; font-weight: 800;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.tile .ic {
  z-index: 1; width: 50px; height: 50px; margin-bottom: 8px; border-radius: 16px; font-size: 25px;
  animation: tile-bob 3.2s ease-in-out infinite;
}
.tile:nth-child(2) .ic { animation-delay: -.8s; }
.tile:nth-child(3) .ic { animation-delay: -1.6s; }
.tile:nth-child(4) .ic { animation-delay: -2.4s; }
/* onda que sai do ícone (transform + opacity: fluido) */
.tile::before {
  content: ''; position: absolute; z-index: 0; top: 14px; left: 50%; width: 50px; height: 50px; margin-left: -25px;
  border-radius: 16px; border: 2px solid rgba(0, 163, 96, .7); pointer-events: none;
  animation: tile-ring 2.8s ease-out infinite; will-change: transform, opacity;
}
.tile:nth-child(2)::before { animation-delay: -.7s; }
.tile:nth-child(3)::before { animation-delay: -1.4s; }
.tile:nth-child(4)::before { animation-delay: -2.1s; }
.tile .ic-dot { position: absolute; z-index: 2; top: 10px; right: calc(50% - 31px); width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #001809; animation: live-pulse 1.6s ease-out infinite; }
.tile small { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.tile small.ok { color: var(--ok); }
.tile small.gold { color: #ffd27a; }
.tile:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 32px -16px rgba(0, 151, 89, .85); }
.tile:active { transform: scale(.95); }
.tile:nth-child(2) .ic::after { animation-delay: 1.2s; }
.tile:nth-child(3) .ic::after { animation-delay: 2.4s; }
.tile:nth-child(4) .ic::after { animation-delay: 3.6s; }
@keyframes tile-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes tile-ring { 0% { transform: scale(1); opacity: .85; } 70%, 100% { transform: scale(1.38); opacity: 0; } }

.steps-list { display: flex; flex-direction: column; gap: 8px; }
.steps-list .mission-row { border-radius: 16px; background: rgba(0, 0, 0, .18); border: 1px solid var(--line); cursor: default; }
.steps-list .ic { width: 38px; height: 38px; border-radius: 12px; font-size: 16px; font-weight: 800; }

.install-card {
  display: flex; align-items: center; gap: 14px;
  margin-top: 12px; padding: 14px 14px 14px 16px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.install-card img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.install-card .t { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); }
.install-card .t b { display: block; color: var(--text); font-size: 15px; }
.install-card .x { background: none; border: 0; color: var(--text-3); font-size: 20px; padding: 4px; cursor: pointer; }

/* ---------- perfil ---------- */
.profile-head { padding: 8px 0 8px; text-align: center; }
.avatar-xl {
  position: relative;
  width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #cae9d3 0%, #00b268 30%, #00844d 62%, #00522e 100%);
  color: #fff; font-size: 38px; font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 54, 29, .45);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .28), 0 18px 40px -12px rgba(0, 163, 96, .85);
}
.avatar-xl::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px dashed rgba(135, 209, 161, .45); animation: rays 30s linear infinite; }
.profile-head h1 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.profile-head p { margin: 2px 0 10px; font-size: 14px; color: var(--text-2); }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv:first-child { padding-top: 0; }
.kv span { color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.kv b.ok { color: var(--ok); }
.card .btn-block { margin-top: 16px; }

.locked { text-align: center; }
.lock-ic {
  position: relative; overflow: hidden;
  width: 72px; height: 72px; margin: 4px auto 14px; border-radius: 22px;
  display: grid; place-items: center; font-size: 34px;
  background: var(--gloss); color: #fff;
  box-shadow: var(--gloss-hl), 0 14px 30px -10px rgba(0, 163, 96, .9);
  animation: float 3.4s ease-in-out infinite;
}
.locked h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.locked p { margin: 8px auto 18px; max-width: 380px; font-size: 14.5px; color: var(--text-2); }
.locked p a { color: var(--accent-hi); font-weight: 800; }
.locked p strong { color: var(--text); }
.hint { display: flex; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--text-3); text-align: left; line-height: 1.5; }
.hint i { color: var(--accent-hi); font-size: 16px; flex: none; }

/* ---------- afiliados ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.stat.big {
  grid-column: 1 / -1; border: 1px solid transparent;
  background:
    linear-gradient(160deg, #002f16, #001a09) padding-box,
    linear-gradient(135deg, rgba(174, 223, 189, .9), rgba(0, 163, 96, .45) 45%, rgba(255, 255, 255, .08)) border-box;
  box-shadow: 0 20px 40px -24px rgba(0, 163, 96, .9);
}
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat.big b { font-size: 34px; }
.stat small { font-size: 13px; color: var(--text-2); }
.offer { display: flex; flex-direction: column; gap: 12px; }
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.offer-top b { font-size: 16px; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.offer-grid div { padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.offer-grid small { display: block; font-size: 12px; color: var(--text-3); }
.offer-grid b { font-size: 15px; }
.offer-grid b.ok { color: var(--accent-hi); }

/* ---------- aulas ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 22px 20px; border-radius: 24px; border: 1px solid transparent;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(83, 194, 130, .3), transparent 55%) padding-box,
    linear-gradient(160deg, #003318 0%, #001a09 70%) padding-box,
    linear-gradient(135deg, rgba(174, 223, 189, .9), rgba(0, 163, 96, .45) 45%, rgba(255, 255, 255, .08)) border-box;
  box-shadow: 0 22px 46px -24px rgba(0, 163, 96, .85);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .08) 50%, transparent 62%);
  transform: translateX(-100%); animation: sheen 7s ease-in-out 2s infinite;
}
.hero-tag { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--accent-hi); }
.hero h1 { margin: 8px 0 6px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.hero p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.hero-meta { display: flex; gap: 22px; margin-top: 16px; }
.hero-meta b { display: block; font-size: 22px; font-weight: 800; }
.hero-meta small { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--text-2); }

.sec-label { margin: 28px 2px 12px; font-size: 19px; font-weight: 800; letter-spacing: -.015em; }

.aula { margin-bottom: 10px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: border-color .25s; }
.aula.open { border-color: var(--accent-line); }
.aula-head { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; user-select: none; }
.aula-ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 23px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.aula.open .aula-ico { background: var(--gloss); box-shadow: var(--gloss-hl), 0 8px 18px -8px rgba(0, 163, 96, .9); }
.aula-tit { flex: 1; min-width: 0; }
.aula-tit b { display: block; font-size: 15.5px; font-weight: 800; }
.aula-tit small { display: block; font-size: 12.5px; color: var(--text-2); }
.aula-rtp { flex: none; font-size: 11px; font-weight: 800; color: var(--text-2); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.aula .arrow { flex: none; color: var(--text-3); transition: transform .3s var(--ease); }
.aula .arrow.open { transform: rotate(90deg); color: var(--accent-hi); }
.aula-body { display: none; padding: 0 14px 16px; }
.aula.open .aula-body { display: block; animation: rise .4s var(--ease); }
.bloco { margin-top: 12px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.bloco h4 { margin-bottom: 6px; font-size: 14.5px; font-weight: 800; }
.bloco p, .bloco li { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.bloco ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.bloco b { color: var(--text); }
.bloco.ok { background: var(--ok-soft); border-color: rgba(52, 209, 124, .2); }
.bloco.ok h4 { color: var(--ok); }
.bloco.evitar { background: var(--danger-soft); border-color: var(--danger-line); }
.bloco.evitar h4 { color: var(--danger); }
.bloco.real { background: rgba(255, 255, 255, .05); border-color: var(--line-2); }
.bloco.real h4 { color: #fff; }
.ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.ficha div { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .15); }
.ficha b { display: block; font-size: 15px; }
.ficha small { font-size: 11.5px; color: var(--text-3); }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.acoes .btn { flex: 1 1 160px; height: 46px; font-size: 14px; }
.btn-robo { border: 0; background: var(--gloss); color: #fff; box-shadow: var(--gloss-hl), var(--glow); }
.btn-aula { background: rgba(255, 255, 255, .06); color: var(--text); }

/* =====================================================================
   ECRÃ DE ACESSO (login / registo)
   ===================================================================== */
.auth {
  min-height: 100vh; min-height: 100dvh;
  display: flex; justify-content: center;
  padding: calc(var(--sat) + 22px) 18px calc(var(--sab) + 24px);
}
.auth-wrap { width: 100%; max-width: 400px; }
.logo-stage { position: relative; width: 230px; height: 196px; margin: 0 auto; display: grid; place-items: center; }
.orbit { position: absolute; width: 186px; height: 186px; border-radius: 50%; border: 1.5px dashed rgba(135, 209, 161, .3); animation: rays 40s linear infinite; }
.logo-tile {
  position: relative; overflow: hidden;
  width: 128px; height: 128px; padding: 6px; border-radius: 34px;
  background: var(--gloss);
  box-shadow: var(--gloss-hl), 0 20px 46px -10px rgba(0, 163, 96, .8);
  animation: gem-pop .9s var(--spring) .1s both;
}
.logo-tile > div { width: 100%; height: 100%; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: radial-gradient(circle at 50% 30%, #002912, #001104); }
.logo-tile svg { width: 60px; height: 52px; filter: drop-shadow(0 6px 14px rgba(0, 163, 96, .55)); }
.logo-tile span { font-size: 21px; font-weight: 800; letter-spacing: .08em; }
.logo-tile span em { font-style: normal; color: var(--accent); }
.float-coin { position: absolute; animation: float 3.6s ease-in-out infinite; }
.float-coin.c1 { left: 34px; top: 10px; }
.float-coin.c2 { left: 6px; top: 70px; animation-delay: -1.2s; }
.float-coin.c3 { right: 6px; top: 96px; animation-delay: -2.4s; }
.auth h1 { margin-top: 4px; text-align: center; font-size: 31px; font-weight: 800; letter-spacing: -.025em; animation: fade-up .6s var(--ease) .3s backwards; }
.auth h1 em { font-style: normal; color: var(--accent); }
.auth .kicker { margin-top: 6px; text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-hi); animation: fade-up .6s var(--ease) .38s backwards; }
.auth .lead { margin: 10px auto 18px; max-width: 330px; text-align: center; font-size: 15px; color: var(--text-2); animation: fade-up .6s var(--ease) .44s backwards; }
.auth-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; animation: rise .6s var(--ease) .5s backwards; }
.auth-stats div { padding: 12px 6px; border-radius: 16px; text-align: center; background: var(--glass); border: 1px solid var(--line); }
.auth-stats b { display: block; font-size: 23px; font-weight: 800; color: var(--accent); }
.auth-stats small { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.auth-card {
  padding: 20px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -24px rgba(0, 0, 0, .7);
  animation: rise .7s var(--ease) .58s backwards;
}
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 18px; border-radius: 99px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; height: 40px; border: 0; background: none; color: var(--text-2); font: 800 14px 'Plus Jakarta Sans', sans-serif; cursor: pointer; transition: color .25s; }
.seg button.active { color: #fff; text-shadow: 0 1px 1px rgba(0, 61, 33, .35); }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: var(--gloss); box-shadow: var(--gloss-hl), 0 6px 16px -6px rgba(0, 163, 96, .9); transition: transform .45s var(--spring); }
.seg.reg .seg-ind { transform: translateX(100%); }
.field { position: relative; margin-bottom: 12px; }
.field i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--text-3); pointer-events: none; transition: color .2s; }
.field input {
  width: 100%; height: 52px; padding: 0 16px 0 46px;
  border-radius: 99px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .28); color: var(--text);
  font: 600 15px 'Plus Jakarta Sans', sans-serif; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { border-color: var(--accent-line); background: rgba(0, 0, 0, .38); box-shadow: 0 0 0 4px rgba(0, 163, 96, .14); }
.field:focus-within i { color: var(--accent-hi); }
.form-block { display: none; }
.form-block.active { display: block; }
.form-block.active .field, .form-block.active .btn { animation: rise .45s var(--ease) backwards; }
.form-block.active > form > :nth-child(2) { animation-delay: .05s; }
.form-block.active > form > :nth-child(3) { animation-delay: .1s; }
.form-block.active > form > :nth-child(4) { animation-delay: .15s; }
.auth .btn-primary { margin-top: 6px; height: 54px; font-size: 16px; }
.auth-error { margin-bottom: 14px; padding: 11px 14px; border-radius: 14px; background: var(--danger-soft); border: 1px solid var(--danger-line); color: #ffc2c9; font-size: 13.5px; text-align: center; animation: shake .5s ease .6s both; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--text-3); animation: fade-up .6s ease .9s backwards; }

/* =====================================================================
   TRANSIÇÕES ENTRE PÁGINAS (browsers com View Transitions)
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .18s ease both vt-out; }
::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
::view-transition-group(tabpill) { animation-duration: .45s; animation-timing-function: var(--spring); }

/* =====================================================================
   KEYFRAMES
   ===================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { transform: translateY(-110%); opacity: 0; } }
@keyframes lift-in { from { transform: translateY(110%); opacity: 0; } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes spot { from { opacity: .72; } to { opacity: 1; } }
/* reflexo por transform (corre na placa gráfica; animar "left" obrigava a redesenhar a cada frame) */
@keyframes shine-sweep { 0%, 64% { transform: translateX(-160%) skewX(-18deg); } 100% { transform: translateX(300%) skewX(-18deg); } }
@keyframes bubble-in { from { opacity: 0; transform: scale(.6) translateX(-8px); } }
@keyframes badge-pop { from { transform: scale(0); } }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(16deg); } 26% { transform: rotate(-13deg); } 40% { transform: rotate(9deg); } 54% { transform: rotate(-6deg); } 68% { transform: rotate(3deg); } 82% { transform: rotate(-1deg); } }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 209, 124, .6); } 100% { box-shadow: 0 0 0 9px rgba(52, 209, 124, 0); } }
@keyframes glow { 0%, 100% { box-shadow: var(--gloss-hl), 0 0 0 0 rgba(0, 163, 96, .55), var(--glow); } 60% { box-shadow: var(--gloss-hl), 0 0 0 14px rgba(0, 163, 96, 0), var(--glow); } }
@keyframes tc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes nf-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes sheen { 0% { transform: translateX(-100%); } 30%, 100% { transform: translateX(100%); } }
@keyframes ring-fill { from { --p: 0; } }
@keyframes arc-in { from { stroke-dasharray: 0 100; } }
@keyframes rays { to { transform: rotate(360deg); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vmax, 4vmax) scale(1.08); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes gem-pop { 0% { transform: scale(.55) rotate(-8deg); } 100% { transform: none; } }
@keyframes shine { to { transform: translateX(84px) skewX(-18deg); } }
@keyframes ring-out { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.7); opacity: 0; } }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-96px) scale(.3); } }
@keyframes letter { to { transform: none; } }
@keyframes load { to { transform: scaleX(1); } }
@keyframes splash-fade { to { opacity: 0; visibility: hidden; } }
@keyframes zoom-through { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(7); opacity: 0; } }

/* =====================================================================
   MENOS MOVIMENTO
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
