/* ═══════════════════════════════════════════════════════════════════════
   WHIMSICAL STUDIO — SISTEMA DE DESIGN (redesign 14/09/2026)
   Um arquivo só pra site, painel do afiliado, admin e páginas de apoio.
   Tema escuro único, destaque azul-gelo (do logo) e dourado (da coroa).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #060607;
  --bg-2: #0b0b0d;
  --card: #111113;
  --card-2: #17171a;
  --card-3: #1e1e22;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --tx: #fafafa;
  --tx-2: #a6a6ad;
  --tx-3: #6e6e76;
  --azul: #1aa3ff;
  --azul-2: #0080ff;
  --azul-glow: rgba(26, 163, 255, .35);
  --ouro: #ffd23f;
  --ouro-2: #ff9f1a;
  --verm: #ff3d3d;
  --verde: #2fd37a;
  --roxo: #8b5cf6;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sombra: 0 30px 80px -20px rgba(0, 0, 0, .7);
  --f-tx: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-dp: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --env: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 16px/1.6 var(--f-tx);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
img, video { height: auto; }
html, body { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--azul); color: #000; }
.hide, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 6px; }

.env { width: 100%; max-width: var(--env); margin: 0 auto; padding: 0 24px; }

/* ─────────────── tipografia ─────────────── */
.h-hero, .h-sec, .h-card { font-family: var(--f-dp); letter-spacing: -.045em; line-height: .98; margin: 0; font-weight: 700; }
.h-hero { font-size: clamp(2.8rem, 7.2vw, 6.2rem); }
.h-sec { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.h-card { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.03em; line-height: 1.15; }
.t-2 { color: var(--tx-2); }
.t-3 { color: var(--tx-3); }
.lead { color: var(--tx-2); font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.65; max-width: 560px; margin: 0; }
.ouro { background: linear-gradient(100deg, #fff3b0 0%, var(--ouro) 35%, var(--ouro-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gelo { background: linear-gradient(100deg, #e6f6ff 0%, #8fd3ff 40%, var(--azul) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.apagado { color: var(--tx-3); }

/* ─────────────── botões ─────────────── */
.btn {
  --bg-b: #fff; --tx-b: #000;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--bg-b); color: var(--tx-b);
  font: 600 15px/1 var(--f-tx); letter-spacing: -.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease), border-color .25s, color .25s;
  position: relative; isolation: isolate; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(255, 255, 255, .35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn .seta { width: 26px; height: 26px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; margin-right: -12px; transition: transform .4s var(--ease); }
.btn:hover .seta { transform: rotate(45deg); }
.btn .seta svg { width: 13px; height: 13px; }
.btn-linha { --bg-b: rgba(255, 255, 255, .04); --tx-b: #fff; border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn-linha:hover { border-color: rgba(255, 255, 255, .35); box-shadow: none; background: rgba(255, 255, 255, .08); }
.btn-azul { --bg-b: var(--azul); --tx-b: #001526; }
.btn-azul:hover { box-shadow: 0 16px 44px -10px var(--azul-glow); }
.btn-ouro { --bg-b: linear-gradient(135deg, #ffe680, var(--ouro) 45%, var(--ouro-2)); --tx-b: #1f1400; background: var(--bg-b); }
.btn-ouro:hover { box-shadow: 0 16px 44px -10px rgba(255, 190, 40, .45); }
.btn-verm { --bg-b: rgba(255, 61, 61, .12); --tx-b: #ff8080; border-color: rgba(255, 61, 61, .3); }
.btn-verde { --bg-b: rgba(47, 211, 122, .12); --tx-b: #6ff0a8; border-color: rgba(47, 211, 122, .3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; gap: 8px; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
.btn-lg { height: 60px; padding: 0 32px; font-size: 16.5px; }
.btn-bloco { width: 100%; }

/* ─────────────── pílulas ─────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font: 500 13px/1 var(--f-tx); color: var(--tx-2); white-space: nowrap;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 4px rgba(26, 163, 255, .18); }
.pill.viva i { background: var(--verde); box-shadow: 0 0 0 0 rgba(47, 211, 122, .6); animation: pulso 2s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(47, 211, 122, .55); } 70% { box-shadow: 0 0 0 9px rgba(47, 211, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 211, 122, 0); } }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--tx-2); font-size: 14px; white-space: nowrap;
}

/* ─────────────── NAV flutuante ─────────────── */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 80;
  width: min(1100px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(12, 12, 14, .62); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .3s, border-color .3s, top .35s var(--ease);
}
.nav.rolou { background: rgba(10, 10, 12, .85); border-color: var(--line-2); }
.nav-marca { display: flex; align-items: center; gap: 10px; font: 700 16px/1 var(--f-dp); letter-spacing: -.02em; }
.nav-marca img { width: 30px; height: 30px; border-radius: 9px; background: #000; border: 1px solid var(--line-2); }
.nav-marca small { display: block; font: 500 10.5px/1 var(--f-tx); color: var(--tx-3); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 10px 14px; border-radius: 999px; font-size: 14px; color: var(--tx-2); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.on { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-dir { display: flex; align-items: center; gap: 8px; }
.nav-menu { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; }
.nav-menu span, .nav-menu span::before, .nav-menu span::after { display: block; width: 16px; height: 1.5px; background: #fff; position: relative; transition: transform .3s var(--ease); }
.nav-menu span::before, .nav-menu span::after { content: ""; position: absolute; left: 0; }
.nav-menu span::before { top: -5px; } .nav-menu span::after { top: 5px; }
.nav.aberta .nav-menu span { background: transparent; }
.nav.aberta .nav-menu span::before { transform: translateY(5px) rotate(45deg); }
.nav.aberta .nav-menu span::after { transform: translateY(-5px) rotate(-45deg); }
/* seletor de bandeiras (montado por idioma.js) */
.idioma { display: flex; gap: 2px; }
.idioma button { width: 30px; height: 30px; border-radius: 50%; padding: 0; display: grid; place-items: center; opacity: .45; transition: opacity .2s, background .2s; }
.idioma button:hover { opacity: .8; }
.idioma button.on { opacity: 1; background: rgba(255, 255, 255, .08); }
.idioma img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
@media (max-width: 900px) {
  .nav { border-radius: 26px; flex-wrap: wrap; padding-left: 12px; }
  .nav-marca small { display: none; }
  .nav-dir { gap: 6px; }
  .nav-links { order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
  .nav.aberta .nav-links { max-height: 320px; padding: 6px 0 8px; }
  .nav-links a { padding: 13px 12px; font-size: 16px; }
  .nav-menu { display: grid; }
  .nav-dir .esc-sm { display: none; }
}

/* ─────────────── seções ─────────────── */
.sec { position: relative; padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.sec-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-cab .lead { max-width: 440px; }
.sec-olho { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 500 14px/1 var(--f-tx); color: var(--tx-2); }
.sec-olho::before { content: ""; width: 22px; height: 1px; background: var(--tx-3); }
.sec-acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.divisor { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }

/* luzes de fundo de seção (temas) */
.luz { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: 0; }
.luz-azul { background: radial-gradient(circle, rgba(26, 163, 255, .55), transparent 65%); }
.luz-ouro { background: radial-gradient(circle, rgba(255, 190, 40, .45), transparent 65%); }
.luz-verde { background: radial-gradient(circle, rgba(80, 220, 120, .35), transparent 65%); }
.luz-verm { background: radial-gradient(circle, rgba(255, 61, 61, .35), transparent 65%); }
.sec > .env { position: relative; z-index: 1; }
.grade-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

/* ─────────────── cartões ─────────────── */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}
.card-2 { background: var(--card-2); }
.card-borda { background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(140deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 40%, rgba(26, 163, 255, .35)) border-box; border: 1px solid transparent; }
.brilho { position: relative; overflow: hidden; }
.brilho::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .07), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.brilho:hover::after { opacity: 1; }

/* ─────────────── 3D: tilt ─────────────── */
.tilt { transform-style: preserve-3d; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); will-change: transform; }
.tilt.mexendo { transition: transform .12s linear; }
.prof { transform: translateZ(var(--z, 40px)); }

/* ─────────────── letreiro ─────────────── */
.letreiro { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.letreiro-trilho { display: flex; gap: 12px; width: max-content; animation: corre var(--dur, 38s) linear infinite; }
.letreiro.volta .letreiro-trilho { animation-direction: reverse; }
.letreiro:hover .letreiro-trilho { animation-play-state: paused; }
@keyframes corre { to { transform: translateX(-50%); } }

/* ─────────────── revelar ao rolar ─────────────── */
.js .rev { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rev.dentro { opacity: 1; transform: none; filter: none; }
.palavras .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.palavras .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d0, 0ms)); }
.palavras.dentro .w > span, .no-js .palavras .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rev { opacity: 1; transform: none; filter: none; }
  .palavras .w > span { transform: none; }
}

/* ─────────────── formulários ─────────────── */
.campo { display: grid; gap: 7px; margin-bottom: 14px; }
.campo label { font-size: 13px; font-weight: 500; color: var(--tx-2); }
.inp, .campo input, .campo select, .campo textarea {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--tx); font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.campo textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.inp:focus, .campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(26, 163, 255, .15); background: #0e0e11; }
.inp::placeholder, .campo input::placeholder { color: var(--tx-3); }
.aviso { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; margin: 0 0 14px; border: 1px solid; }
.aviso-erro { background: rgba(255, 61, 61, .08); border-color: rgba(255, 61, 61, .28); color: #ff9c9c; }
.aviso-ok { background: rgba(47, 211, 122, .08); border-color: rgba(47, 211, 122, .28); color: #86f0b5; }
.aviso-info { background: rgba(26, 163, 255, .07); border-color: rgba(26, 163, 255, .25); color: #9fd8ff; }
.aviso-ouro { background: rgba(255, 210, 63, .07); border-color: rgba(255, 210, 63, .25); color: #ffe38a; }

/* ─────────────── modais ─────────────── */
.overlay, .wsl-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .68); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.overlay.on, .wsl-overlay.on { opacity: 1; visibility: visible; }
.modal, .wsl-modal {
  position: relative; width: min(440px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: linear-gradient(180deg, #151518, #0e0e10); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--sombra);
  transform: translateY(18px) scale(.97); transition: transform .45s var(--ease);
}
.overlay.on .modal, .wsl-overlay.on .wsl-modal { transform: none; }
.modal h3, .wsl-modal h2 { font: 700 24px/1.15 var(--f-dp); letter-spacing: -.03em; margin: 0 0 8px; }
.modal .sub, .wsl-modal .sub { color: var(--tx-2); font-size: 14.5px; margin: 0 0 22px; }
.modal .x, .wsl-fechar { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--tx-2); background: rgba(255, 255, 255, .05); transition: background .2s, color .2s; }
.modal .x:hover, .wsl-fechar:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 20px; }
.abas button { height: 40px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--tx-2); transition: background .25s, color .25s; }
.abas button.on { background: #fff; color: #000; }
.mbtn { width: 100%; height: 50px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 15px; margin-top: 6px; transition: transform .3s var(--ease), opacity .2s; }
.mbtn:hover { transform: translateY(-1px); }
.mbtn:disabled { opacity: .55; }
.aviso-erro.hide { display: none; }
.wsl-campo { display: grid; gap: 7px; margin-bottom: 12px; }
.wsl-campo label { font-size: 13px; color: var(--tx-2); font-weight: 500; }
.wsl-campo input { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.wsl-campo input:focus { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(26, 163, 255, .15); }
.wsl-erro { color: #ff9c9c; font-size: 13.5px; margin: 0 0 10px; }
.wsl-erro.hide { display: none; }
.wsl-nota { color: var(--tx-3); font-size: 12.5px; text-align: center; margin: 14px 0 0; }

/* ─────────────── toast ─────────────── */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: #1b1b1f; border: 1px solid var(--line-2); box-shadow: var(--sombra); font-size: 14px; animation: toastIn .45s var(--ease); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }
.toast.erro i { background: var(--verm); }
.toast.sai { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ─────────────── botão flutuante de suporte (idioma.js) ─────────────── */
.suporte { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: #5865f2; color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 14px 36px -10px rgba(88, 101, 242, .6); transition: transform .35s var(--ease); }
.suporte:hover { transform: translateY(-3px); }
.suporte svg { width: 20px; height: 20px; fill: currentColor; }
.fundo, .fundo-icones, .fundo-veu, .fundo-aura { display: none; }

/* ─────────────── rodapé ─────────────── */
.rodape { border-top: 1px solid var(--line); padding: 56px 0 96px; color: var(--tx-3); font-size: 14px; }
.rodape-grade { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.rodape h5 { color: var(--tx); font: 600 14px/1 var(--f-tx); margin: 0 0 16px; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rodape a:hover { color: #fff; }
.rodape-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; }
.rodape-legal { max-width: 640px; margin: 0; }
.rodape-legal b { color: var(--tx-2); font-weight: 600; }
@media (max-width: 800px) { .rodape-grade { grid-template-columns: 1fr 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════
   PAINÉIS (afiliado e admin) — casca com barra lateral
   ═══════════════════════════════════════════════════════════════════════ */
body.app { background: var(--bg); }
.app-casca { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.app-veu { position: fixed; inset: 0; z-index: 115; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: .3s; }
.app-veu.on { opacity: 1; visibility: visible; }
.app-lado {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px; border-right: 1px solid var(--line); background: #09090b; overflow-y: auto;
}
.app-marca { display: flex; align-items: center; gap: 11px; padding: 6px 10px 20px; }
.app-marca img { width: 36px; height: 36px; border-radius: 11px; background: #000; border: 1px solid var(--line-2); }
.app-marca b { display: block; font: 700 15px/1.1 var(--f-dp); letter-spacing: -.02em; }
.app-marca small { color: var(--tx-3); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.app-grupo { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); padding: 14px 12px 6px; }
.app-item {
  display: flex; align-items: center; gap: 11px; width: 100%; height: 42px; padding: 0 12px; border-radius: 11px;
  color: var(--tx-2); font-size: 14px; font-weight: 500; text-align: left; transition: background .2s, color .2s;
}
.app-item svg { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.app-item:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.app-item.on { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.app-item.on svg { color: var(--azul); opacity: 1; }
.app-item .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--verm); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.app-item .badge.azul { background: var(--azul); color: #001526; }
.app-rodape { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.app-perfil { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.app-perfil img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--card-3); }
.app-perfil b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-perfil span { display: block; color: var(--tx-3); font-size: 12px; }
.app-perfil > div { min-width: 0; }

.app-main { min-width: 0; padding: 26px clamp(18px, 3vw, 40px) 80px; }
.app-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.app-topo h1 { font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--f-dp); letter-spacing: -.035em; margin: 0; }
.app-topo p { margin: 6px 0 0; color: var(--tx-2); font-size: 14.5px; }
.app-topo-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-mob { display: none; }
.app-aba { display: none; animation: abaIn .5s var(--ease); }
.app-aba.on { display: block; }
@keyframes abaIn { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 960px) {
  .app-casca { grid-template-columns: 1fr; }
  .app-lado { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 120; transform: translateX(-100%); transition: transform .4s var(--ease); box-shadow: 30px 0 80px rgba(0, 0, 0, .6); }
  .app-lado.aberto { transform: none; }
  .app-mob { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 110; padding: 12px 16px; background: rgba(6, 6, 7, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .app-mob .app-marca { padding: 0; }
}

/* grades */
.g { display: grid; gap: 14px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 1180px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-21, .g-12 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g-3, .g-2 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .g-4 { grid-template-columns: 1fr; } }
.mt { margin-top: 14px; } .mt-2 { margin-top: 24px; } .mb { margin-bottom: 14px; } .mb-2 { margin-bottom: 24px; }

/* KPI */
.kpi { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 20px; overflow: hidden; }
.kpi-rot { display: flex; align-items: center; gap: 8px; color: var(--tx-2); font-size: 13px; font-weight: 500; }
.kpi-rot .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.kpi-rot .ic svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi-val { font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--f-dp); letter-spacing: -.035em; margin-top: 12px; font-variant-numeric: tabular-nums; }
.kpi-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--tx-3); font-size: 12.5px; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.delta.sobe { color: #6ff0a8; background: rgba(47, 211, 122, .12); }
.delta.desce { color: #ff9c9c; background: rgba(255, 61, 61, .12); }
.delta.igual { color: var(--tx-2); background: rgba(255, 255, 255, .06); }
.kpi-azul { background: linear-gradient(160deg, rgba(26, 163, 255, .16), var(--card) 55%); border-color: rgba(26, 163, 255, .25); }
.kpi-ouro { background: linear-gradient(160deg, rgba(255, 210, 63, .14), var(--card) 55%); border-color: rgba(255, 210, 63, .22); }
.kpi-verde { background: linear-gradient(160deg, rgba(47, 211, 122, .13), var(--card) 55%); border-color: rgba(47, 211, 122, .22); }
.kpi-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44px; opacity: .28; pointer-events: none; }
.kpi-spark svg { width: 100%; height: 100%; }
body.app .suporte { display: none; }

/* bloco de painel */
.bloco { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; min-width: 0; }
.bloco-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.bloco-cab h3 { font: 650 16px/1.3 var(--f-tx); margin: 0; letter-spacing: -.01em; }
.bloco-cab p { color: var(--tx-3); font-size: 13px; margin: 3px 0 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--tx-2); }
.seg button.on { background: var(--card-3); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }

/* gráficos SVG */
.graf { position: relative; width: 100%; height: 240px; }
.graf svg { width: 100%; height: 100%; overflow: visible; }
.graf .eixo { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.graf .rot { fill: var(--tx-3); font-size: 11px; font-family: var(--f-tx); }
.graf-dica { position: absolute; pointer-events: none; z-index: 5; padding: 9px 12px; border-radius: 10px; background: #1d1d21; border: 1px solid var(--line-2); font-size: 12.5px; line-height: 1.5; white-space: nowrap; box-shadow: var(--sombra); opacity: 0; transition: opacity .15s; transform: translate(-50%, -110%); }
.graf-dica.on { opacity: 1; }
.graf-dica b { font-weight: 600; }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--tx-2); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* tabela */
.tabela { width: 100%; overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.tabela table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.tabela td.chave { white-space: nowrap; }
.tabela th { text-align: left; font-weight: 500; color: var(--tx-3); font-size: 12px; letter-spacing: .02em; padding: 11px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tabela td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr { transition: background .15s; }
.tabela tbody tr:hover { background: rgba(255, 255, 255, .025); }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela td .mono, .tabela td.mono, .tabela td .st { white-space: nowrap; }
.tabela td.dt { white-space: nowrap; }
.tabela .acoes { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.vazio { display: grid; place-items: center; gap: 8px; text-align: center; padding: 42px 20px; color: var(--tx-3); font-size: 14px; }
.vazio svg { width: 38px; height: 38px; stroke: var(--tx-3); fill: none; stroke-width: 1.5; opacity: .7; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-ok { color: #6ff0a8; background: rgba(47, 211, 122, .1); }
.st-pend { color: #ffd76b; background: rgba(255, 210, 63, .1); }
.st-erro { color: #ff8f8f; background: rgba(255, 61, 61, .1); }
.st-neutro { color: var(--tx-2); background: rgba(255, 255, 255, .06); }
.st-azul { color: #8fd3ff; background: rgba(26, 163, 255, .1); }
.ic-btn { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--tx-2); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: .2s; }
.ic-btn:hover { color: #fff; border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.ic-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ferr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.busca { position: relative; flex: 1 1 240px; }
.busca svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--tx-3); fill: none; stroke-width: 2; }
.busca .inp { height: 42px; padding-left: 40px; font-size: 14px; border-radius: 11px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--tx-2); font-size: 13px; font-weight: 500; transition: .2s; }
.chip:hover { color: #fff; border-color: var(--line-2); }
.chip.on { background: #fff; color: #000; border-color: #fff; }
.chip .n { opacity: .6; margin-left: 4px; }

/* drawer lateral */
.drawer-veu { position: fixed; inset: 0; z-index: 180; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: .3s; }
.drawer-veu.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 190; width: min(560px, 100%); background: #0c0c0e; border-left: 1px solid var(--line-2); transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-cab h3 { margin: 0; font: 700 19px/1.2 var(--f-dp); letter-spacing: -.02em; }
.drawer-corpo { padding: 22px; overflow-y: auto; flex: 1; }

/* listas de dados */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; margin: 0; }
.dl dt { color: var(--tx-3); }
.dl dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.linha-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.linha-item:last-child { border-bottom: 0; }
.barra-prog { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.barra-prog > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--azul), #7cd0ff); transition: width 1s var(--ease); }
.barra-prog.ouro > i { background: linear-gradient(90deg, var(--ouro-2), var(--ouro)); }
.esqueleto { background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: esq 1.3s infinite; border-radius: 8px; color: transparent !important; }
@keyframes esq { to { background-position: -200% 0; } }

/* tela de login dos painéis */
.login-tela { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-arte { position: relative; overflow: hidden; background: radial-gradient(90% 70% at 30% 20%, rgba(26, 163, 255, .28), transparent 60%), radial-gradient(70% 60% at 80% 90%, rgba(255, 190, 40, .22), transparent 60%), #08080a; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.login-arte .grade-bg { opacity: .9; }
.login-arte h2 { position: relative; font: 700 clamp(2rem, 3.6vw, 3.2rem)/1.02 var(--f-dp); letter-spacing: -.045em; margin: 0; max-width: 460px; }
.login-arte p { position: relative; color: var(--tx-2); max-width: 400px; margin: 14px 0 0; }
.login-arte .char { position: absolute; right: -2%; top: 6%; width: min(52%, 400px); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)); animation: flutua 6s ease-in-out infinite; }
.login-arte > div:not(.grade-bg) { max-width: 60%; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-caixa { width: min(400px, 100%); }
.login-caixa h1 { font: 700 30px/1.1 var(--f-dp); letter-spacing: -.035em; margin: 0 0 8px; }
.login-caixa > p { color: var(--tx-2); margin: 0 0 26px; font-size: 15px; }
@media (max-width: 900px) { .login-tela { grid-template-columns: 1fr; } .login-arte { min-height: 340px; padding: 28px; } .login-arte .char { width: 40%; top: 10%; } .login-arte > div:not(.grade-bg) { max-width: 100%; } }
@keyframes flutua { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
