/* NextBotFX Capital · o visual FORMAL das páginas do servidor (site 1.9.0, etapa 3 da versão formal): o mesmo tema do CT
   formal (ct/ui/formal.css) e do painel do EA 2.40: preto, o roxo de destaque e o ciano nos detalhes; verde e vermelho só para
   alta e queda; a fonte do sistema no lugar da de pixel; sem a moeda 3D e sem a festa. Só vale com <html data-estilo="formal">
   (o base.html põe e só carrega este arquivo nesse visual). Sem aninhamento de CSS (Safari antigo) e sem estilos inline (CSP). */

html[data-estilo="formal"] {
  --fundo: #07080b; --fundo-2: #0b0d12; --cartao: #0f1219; --cartao-2: #151923;
  --borda: rgba(255, 255, 255, .08); --borda-2: rgba(255, 255, 255, .14);
  --texto: #e9ebf1; --discreto: #a1a8b8; --mudo: #687086;
  --ouro: #8b7cf6; --ouro-0: #ece8ff; --ouro-1: #c9bfff; --ouro-3: #7562ef; --ouro-4: #5b4bd6;
  --ouro-linha: rgba(139, 124, 246, .34); --ouro-brilho: rgba(139, 124, 246, .18);
  --ciano: #38bdf8; --ciano-linha: rgba(56, 189, 248, .38); --ciano-brilho: rgba(56, 189, 248, .18);
  --ok: #34d399; --perigo: #f87171; --aviso: #fbbf24;
  --plano-mensal: #38bdf8; --plano-cortesia: #c9bfff;
  --f-sans: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mini: var(--f-sans);
  --raio: 16px; --raio-p: 10px;
}
html[data-estilo="formal"] body {
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(139, 124, 246, .10), transparent 62%),
    radial-gradient(900px 560px at -12% 108%, rgba(56, 189, 248, .05), transparent 60%),
    var(--fundo);
  font-feature-settings: "tnum" 1;
}
html[data-estilo="formal"] ::selection { background: rgba(139, 124, 246, .38); }

/* títulos pequenos e rótulos: a fonte do sistema em caixa alta fina (no jogo é a de pixel) */
html[data-estilo="formal"] h3, html[data-estilo="formal"] .sobretitulo, html[data-estilo="formal"] .passo-num,
html[data-estilo="formal"] .xp-rotulo { font-family: var(--f-sans); font-weight: 600; letter-spacing: .1em; }
html[data-estilo="formal"] h3::before { background: linear-gradient(90deg, var(--ouro), transparent); }
html[data-estilo="formal"] h1, html[data-estilo="formal"] h2 { letter-spacing: -.02em; font-weight: 700; }

/* o topo: a marca sem o brilho ciano e o botão Formal | Gamificado */
html[data-estilo="formal"] .topo { background: rgba(9, 10, 14, .78); }
html[data-estilo="formal"] .marca img { filter: grayscale(1) brightness(1.15) drop-shadow(0 0 10px rgba(139, 124, 246, .35)); }
html[data-estilo="formal"] .marca span { color: var(--ouro-1); font-weight: 500; }

/* cartões de vidro */
html[data-estilo="formal"] .cartao {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)), var(--cartao);
  box-shadow: inset 0 0 0 1px var(--borda), 0 24px 60px rgba(0, 0, 0, .4);
}
html[data-estilo="formal"] .centrada .cartao.estreito {
  background: linear-gradient(180deg, rgba(21, 25, 35, .94), rgba(11, 13, 18, .97));
  box-shadow: inset 0 0 0 1px var(--borda-2), 0 40px 110px rgba(0, 0, 0, .55), 0 0 120px rgba(139, 124, 246, .08);
}

/* botões: o roxo do CT formal, o texto branco */
html[data-estilo="formal"] .botao {
  color: #fff; background: linear-gradient(180deg, #a698ff 0%, #8b7cf6 46%, #7562ef 100%);
  box-shadow: 0 10px 30px rgba(139, 124, 246, .25), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(40, 24, 120, .35);
}
html[data-estilo="formal"] .botao:hover {
  color: #fff; box-shadow: 0 14px 40px rgba(139, 124, 246, .36), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(40, 24, 120, .35);
}
html[data-estilo="formal"] .botao.secundario { color: var(--ouro-1); background: transparent; box-shadow: inset 0 0 0 1.5px var(--ouro-linha); }
html[data-estilo="formal"] .botao.secundario:hover { color: var(--ouro-0); background: rgba(139, 124, 246, .1); box-shadow: inset 0 0 0 1.5px rgba(139, 124, 246, .6); }
html[data-estilo="formal"] .botao.perigo { color: var(--perigo); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(248, 113, 113, .55); }
html[data-estilo="formal"] .botao.perigo:hover { color: #fff; background: rgba(248, 113, 113, .16); box-shadow: inset 0 0 0 1.5px var(--perigo); }
html[data-estilo="formal"] .botao-google { color: #1f1f1f; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .08); }
html[data-estilo="formal"] .botao-google:hover { color: #1f1f1f; background: #f4f4f4; }
html[data-estilo="formal"] .botao-jogo::after { display: none; }
html[data-estilo="formal"] .jogo-ico { color: #fff; background: rgba(0, 0, 0, .28); }

/* avisos, selos e planos */
html[data-estilo="formal"] .aviso { color: var(--ouro-0); background: linear-gradient(90deg, rgba(139, 124, 246, .14), rgba(139, 124, 246, .04)); }
html[data-estilo="formal"] .selo-plano-anual { color: #fff; background: linear-gradient(180deg, #a698ff, var(--ouro)); box-shadow: 0 4px 14px rgba(139, 124, 246, .25); }
html[data-estilo="formal"] .plano-resumo { background: rgba(139, 124, 246, .07); }
html[data-estilo="formal"] .plano-conta.destaque { background: linear-gradient(180deg, rgba(139, 124, 246, .1), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(139, 124, 246, .5); }
html[data-estilo="formal"] .plano-conta.escolhido { box-shadow: inset 0 0 0 2px var(--ouro), 0 0 30px rgba(139, 124, 246, .18); }
html[data-estilo="formal"] .plano-conta .selo-plano { color: #fff; background: linear-gradient(180deg, #a698ff, #8b7cf6 60%, #7562ef); }
html[data-estilo="formal"] .trilha-compra li b { font-family: var(--f-sans); font-weight: 700; }
html[data-estilo="formal"] .trilha-compra li.atual b { color: #fff; }

/* a instalação: a barra de progresso sem cara de XP, os passos e os downloads */
html[data-estilo="formal"] .barra-xp i { background: linear-gradient(90deg, var(--ouro-4), var(--ouro), var(--ciano)); }
html[data-estilo="formal"] .progresso-i .feito .num { background: linear-gradient(180deg, #a698ff, var(--ouro)); }
html[data-estilo="formal"] .progresso-i .feito .num::after { border-color: #fff; }
html[data-estilo="formal"] .progresso-i .atual { background: rgba(139, 124, 246, .08); }
html[data-estilo="formal"] .baixar a { background: rgba(139, 124, 246, .07); }
html[data-estilo="formal"] .baixar a:hover { background: rgba(139, 124, 246, .12); }
html[data-estilo="formal"] .baixar .icone-baixar { background: linear-gradient(180deg, #a698ff, var(--ouro)); box-shadow: 0 6px 18px rgba(139, 124, 246, .25); }
html[data-estilo="formal"] .baixar .icone-baixar::before { border-color: #fff; }
html[data-estilo="formal"] .passos-ea li > b { font-family: var(--f-sans); font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #a698ff, #8b7cf6 60%, #7562ef); }
html[data-estilo="formal"] .botao-baixar .baixar-ico { color: #fff; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
html[data-estilo="formal"] .botao-baixar .baixar-txt strong { color: #fff; }
html[data-estilo="formal"] .botao-baixar .baixar-txt small { color: rgba(255, 255, 255, .78); }
html[data-estilo="formal"] .cartao-instalar {
  background: radial-gradient(520px 240px at 12% 50%, rgba(139, 124, 246, .16), transparent 70%),
              linear-gradient(180deg, rgba(21, 25, 35, .95), rgba(11, 13, 18, .97));
  box-shadow: inset 0 0 0 1.5px var(--ouro-linha), 0 30px 80px rgba(0, 0, 0, .45), 0 0 90px rgba(139, 124, 246, .08);
}
html[data-estilo="formal"] .mockup-menu .aberto { background: rgba(139, 124, 246, .18); }
html[data-estilo="formal"] .mockup .ea::before { background: radial-gradient(circle at 35% 35%, #ece8ff, var(--ouro) 55%, #4b3cc4); }

/* o emblema no lugar da moeda (o template troca a imagem; sem o moeda.js não há canvas) */
html[data-estilo="formal"] .palco-moeda::before {
  background: radial-gradient(circle, rgba(139, 124, 246, .2), rgba(56, 189, 248, .05) 45%, transparent 70%);
}
html[data-estilo="formal"] .moeda-poster { filter: drop-shadow(0 0 40px rgba(139, 124, 246, .3)) brightness(1.05); }
html[data-estilo="formal"] .emblema-cabeca { filter: drop-shadow(0 0 26px rgba(139, 124, 246, .35)); -webkit-mask-image: none; mask-image: none; }
html[data-estilo="formal"] .emblema-aura { width: 150px; height: 150px; }
html[data-estilo="formal"] .emblema-aura .emblema-cabeca { width: 82%; height: 82%; }
/* 1.36.0: a moeda formal (o robô de prata) antes do 3D e sem WebGL: o emblema com o anel de luz girando */
html[data-estilo="formal"] .palco-moeda[data-moeda-estilo="formal"] .moeda-poster { inset: 16%; width: 68%; height: 68%; -webkit-mask-image: none; mask-image: none; }
html[data-estilo="formal"] .palco-moeda[data-moeda-estilo="formal"]::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%; pointer-events: none; transition: opacity .7s ease;
  background: conic-gradient(from 0deg, transparent 0 52%, rgba(91, 75, 214, .15) 58%, #5b4bd6 72%, #8b7cf6 86%, #38bdf8 97%, #e0f7ff 99%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  animation: aura-gira 3.4s linear infinite;
}
html[data-estilo="formal"] .palco-moeda[data-moeda-estilo="formal"].pronta::after { opacity: 0; }
/* 1.36.0: o logo da NextBotFX no lugar do selo com o "N" (pedido do Lucas: "efeito chamativo e bonito"): o anel de luz roxo ->
   ciano girando em volta do emblema e o brilho pulsando atrás; parado com "reduzir movimento" */
.logo-aura { position: relative; display: inline-grid; place-items: center; isolation: isolate; border-radius: 50%; }
.logo-aura::before {
  content: ""; position: absolute; inset: -7%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 52%, rgba(91, 75, 214, .15) 58%, #5b4bd6 72%, #8b7cf6 86%, #38bdf8 97%, #e0f7ff 99%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: aura-gira 3.4s linear infinite;
}
.logo-aura::after {
  content: ""; position: absolute; inset: 4%; border-radius: 50%; z-index: -2; pointer-events: none;
  background: radial-gradient(circle, rgba(139, 124, 246, .42), rgba(56, 189, 248, .12) 55%, transparent 72%);
  animation: aura-pulsa 2.8s ease-in-out infinite;
}
.logo-aura > img { filter: brightness(1.06) contrast(1.05) drop-shadow(0 0 10px rgba(125, 211, 252, .35)); }
@keyframes aura-gira { to { transform: rotate(1turn); } }
@keyframes aura-pulsa { 50% { opacity: .5; transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .logo-aura::before, .logo-aura::after { animation: none; } }

html[data-estilo="formal"] .emblema { filter: grayscale(1) brightness(1.15) drop-shadow(0 0 18px rgba(139, 124, 246, .35)); }
html[data-estilo="formal"] .codigo-pareamento { color: var(--ouro-1); }

/* sem a festa no visual formal */
html[data-estilo="formal"] .confete { display: none; }
