/* Estoque Xtreme Games — tema claro (padrão) e escuro. Vermelho #E10600, Inter. */
:root {
  --fundo: #F4F5F7; --sup: #FFFFFF; --sup2: #F3F4F7; --sup3: #E8EBF0; --borda: #E4E7EC; --borda2: #CED3DB;
  --texto: #111318; --suave: #555D6B; --apagado: #8B92A0;
  --vermelho: #E10600; --vermelho2: #C10500; --vermelho-fundo: rgba(225, 6, 0, .08);
  --verde: #0B9A56; --verde-fundo: rgba(11, 154, 86, .1); --ambar: #B56A00; --ambar-fundo: rgba(181, 106, 0, .1); --azul: #2D62DD; --azul-fundo: rgba(45, 98, 221, .1);
  --erro-texto: #B80500; --alerta-texto: #7A4700; --vidro: rgba(255, 255, 255, .86); --heroi-a: rgba(255, 255, 255, .5); --heroi-b: rgba(255, 255, 255, .95);
  --balao: #E9F9EE; --balao-borda: #BFE8CC;
  --raio: 16px; --raio-p: 10px; --sombra: 0 24px 60px rgba(16, 24, 40, .2); --sombra-m: 0 14px 30px rgba(16, 24, 40, .12); --sombra-p: 0 1px 2px rgba(16, 24, 40, .05);
  --curva: cubic-bezier(.2, .8, .2, 1); --lateral: 244px; --barra: 62px;
  color-scheme: light;
}
:root[data-tema='escuro'] {
  --fundo: #0C0E13; --sup: #12151C; --sup2: #181C25; --sup3: #1F2430; --borda: #2A3140; --borda2: #394154;
  --texto: #F5F7FB; --suave: #A3ABBC; --apagado: #6E778B;
  --vermelho2: #FB0700; --vermelho-fundo: rgba(225, 6, 0, .14);
  --verde: #2FD27A; --verde-fundo: rgba(47, 210, 122, .12); --ambar: #F2A93B; --ambar-fundo: rgba(242, 169, 59, .12); --azul: #6C9BFF; --azul-fundo: rgba(108, 155, 255, .12);
  --erro-texto: var(--erro-texto); --alerta-texto: var(--alerta-texto); --vidro: var(--vidro); --heroi-a: rgba(12, 14, 19, .2); --heroi-b: rgba(12, 14, 19, .84);
  --balao: var(--balao); --balao-borda: #1C4638;
  --sombra: 0 24px 60px rgba(0, 0, 0, .55); --sombra-m: 0 16px 34px rgba(0, 0, 0, .45); --sombra-p: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--borda2) transparent; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 15px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; }
body.com-painel { overflow: hidden; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
code { font: 500 14px/1.4 ui-monospace, 'SF Mono', Consolas, monospace; }
hr { border: 0; border-top: 1px solid var(--borda); margin: 4px 0; width: 100%; }
:focus-visible { outline: 2px solid var(--vermelho2); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--vermelho); color: #fff; }
[hidden] { display: none !important; }
.fora-da-tela { position: fixed; left: -9999px; top: 0; opacity: 0; }
.apagado { color: var(--apagado); font-size: 13px; }
.forte { color: var(--texto); font-weight: 600; }
.texto-apoio { color: var(--suave); font-size: 14px; }

@keyframes entrar { from { opacity: 0; transform: translateY(10px); } }
@keyframes surgir { from { opacity: 0; } }
@keyframes brilho { to { background-position: -200% 0; } }
@keyframes pulso { 50% { opacity: .45; transform: scale(.96); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes estalo { 0% { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.15); } }
@keyframes subir { from { transform: translateY(100%); } }
@keyframes deslizar { from { transform: translateX(100%); } }
@keyframes crescer { from { transform: scaleY(0); } }

/* ---------- Carregamento e acesso ---------- */
.carregando-inicial { min-height: 100dvh; display: grid; place-items: center; }
.logo-pulso { width: 120px; background: #0C0E13; border-radius: 26px; animation: pulso 1.4s ease-in-out infinite; }
.acesso { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.acesso-arte { position: absolute; inset: 0; pointer-events: none; }
.acesso-arte span { position: absolute; left: -10%; right: -10%; height: 1px; background: linear-gradient(90deg, transparent, var(--vermelho) 40%, transparent); opacity: .5; transform: rotate(-8deg); animation: surgir 1.2s both; }
.acesso-arte span:nth-child(1) { top: 18%; } .acesso-arte span:nth-child(2) { top: 52%; opacity: .25; animation-delay: .2s; } .acesso-arte span:nth-child(3) { top: 84%; animation-delay: .4s; }
.acesso-caixa { position: relative; width: min(100%, 400px); background: var(--sup); border: 1px solid var(--borda); border-radius: 20px; padding: 8px 28px 28px; box-shadow: var(--sombra); animation: entrar .5s var(--curva) both; }
.acesso-logo { width: 132px; height: 132px; margin: 22px auto 16px; object-fit: cover; background: #0C0E13; border-radius: 28px; }
.acesso-caixa h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.acesso-caixa > .texto-apoio { text-align: center; margin: 6px 0 22px; }
.acesso-caixa > .apagado { text-align: center; margin-top: 16px; }
.acesso-caixa > .btn { width: 100%; }
.acesso-form { display: grid; gap: 14px; }
.erro-form { color: var(--erro-texto); font-size: 14px; background: var(--vermelho-fundo); border: 1px solid rgba(225, 6, 0, .4); border-radius: var(--raio-p); padding: 10px 12px; }

/* ---------- Botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--raio-p); border: 1px solid var(--borda2); background: var(--sup2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; position: relative; }
.btn:hover { background: var(--sup3); border-color: var(--apagado); }
.btn:active { transform: scale(.97); }
.btn.primario { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }
.btn.primario:hover { background: var(--vermelho2); border-color: var(--vermelho2); }
.btn.perigo { background: transparent; border-color: var(--vermelho); color: var(--erro-texto); }
.btn.fantasma { background: transparent; border-color: transparent; color: var(--suave); }
.btn.fantasma:hover { background: var(--sup2); color: var(--texto); }
.btn.whats { background: #1FA855; border-color: #1FA855; color: #fff; }
.btn.whats:hover { background: #25C263; }
.btn.pequeno { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.grande { min-height: 50px; font-size: 15px; width: 100%; border-radius: 12px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ocupado > * { visibility: hidden; } .btn.ocupado { color: transparent; }
.btn.ocupado::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: girar .7s linear infinite; }
.btn-icone { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--suave); flex: none; transition: background .15s, color .15s; }
.btn-icone:hover { background: var(--sup3); color: var(--texto); }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo-rotulo, .rotulo-secao { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--apagado); }
.campo-dica { font-size: 12.5px; color: var(--apagado); }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 46px; padding: 10px 13px; background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio-p); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.4; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--suave) 50%), linear-gradient(135deg, var(--suave) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--vermelho); box-shadow: 0 0 0 3px var(--vermelho-fundo); }
input::placeholder, textarea::placeholder { color: var(--apagado); }
input:disabled { opacity: .55; }
.marcar { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--suave); cursor: pointer; }
.marcar input { width: 18px; height: 18px; accent-color: var(--vermelho); flex: none; }
.grade-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
fieldset.cartao { margin: 0; display: grid; gap: 14px; } fieldset legend { padding: 0 6px; font-weight: 700; font-size: 13px; }
.pilha { display: grid; gap: 16px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.linha-acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.linha-acoes.espalhar { justify-content: space-between; }

/* ---------- Casca ---------- */
.casca { min-height: 100dvh; }
.lateral { position: fixed; inset: 0 auto 0 0; width: var(--lateral); background: var(--sup); border-right: 1px solid var(--borda); display: flex; flex-direction: column; padding: 14px 12px; z-index: 20; }
.marca { display: flex; align-items: center; gap: 10px; padding: 2px 6px 14px; }
.marca-logo { width: 40px; height: 40px; overflow: hidden; position: relative; flex: none; display: block; background: #0C0E13; border-radius: 11px; }
.marca-logo img { position: absolute; width: 72px; height: 72px; max-width: none; left: -16px; top: -9px; }
.marca strong { display: block; font-size: 15px; font-weight: 900; letter-spacing: .14em; }
.marca span { font-size: 12px; color: var(--apagado); }
.lateral nav { display: grid; gap: 2px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--raio-p); color: var(--suave); font-weight: 500; font-size: 14.5px; border: 0; background: transparent; position: relative; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--sup2); color: var(--texto); }
.lateral .nav-item.ativo { background: var(--sup3); color: var(--texto); font-weight: 600; }
.lateral .nav-item.ativo::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--vermelho); view-transition-name: marcador; }
.lateral .nav-item.ativo svg { color: var(--vermelho2); }
.lateral-pe { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px; border-top: 1px solid var(--borda); }
.lateral-pe strong { display: block; font-size: 13.5px; } .lateral-pe span { font-size: 12px; color: var(--apagado); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--vermelho); color: #fff !important; font-weight: 800; font-size: 14px !important; flex: none; }
.conteudo { margin-left: var(--lateral); min-width: 0; }
.topo { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: var(--vidro); backdrop-filter: blur(14px); border-bottom: 1px solid var(--borda); }
.marca-movel { display: none; }
.busca { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 14px; background: var(--sup); border: 1px solid var(--borda); border-radius: 12px; color: var(--apagado); max-width: 880px; transition: border-color .15s, box-shadow .15s; cursor: text; }
.busca:focus-within { border-color: var(--vermelho); box-shadow: 0 0 0 3px var(--vermelho-fundo); color: var(--texto); }
.busca-input { flex: 1; min-width: 0; min-height: 0 !important; height: 100%; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--texto); }
.busca-input::-webkit-search-cancel-button { display: none; }
.busca-limpar { width: 30px; height: 30px; } .busca-input:placeholder-shown ~ .busca-limpar { display: none; }
.busca kbd { font: 600 12px Inter, sans-serif; color: var(--apagado); border: 1px solid var(--borda2); border-radius: 6px; padding: 2px 7px; }
.busca-input:not(:placeholder-shown) ~ kbd { display: none; }
.principal { padding: 26px 32px 64px; }
.barra-movel { display: none; }

/* ---------- Telas ---------- */
.tela { display: grid; gap: 22px; align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.tela > div:not([class]) { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.tela-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tela-cab h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.tela-cab p { color: var(--suave); margin-top: 4px; max-width: 70ch; }
.tela-cab p::first-letter { text-transform: uppercase; }
.bloco { display: grid; gap: 12px; margin-top: 4px; grid-template-columns: minmax(0, 1fr); }
.cartao { background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.cartao h3 { font-size: 15px; font-weight: 700; }
.duas-colunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.faixa { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--raio-p); background: var(--sup); border: 1px solid var(--borda); color: var(--suave); font-size: 14px; flex-wrap: wrap; }
.faixa > div { flex: 1; min-width: 200px; } .faixa svg { flex: none; margin-top: 2px; color: var(--apagado); }
.faixa.alerta { background: var(--ambar-fundo); border-color: rgba(242, 169, 59, .4); color: var(--alerta-texto); } .faixa.alerta svg { color: var(--ambar); }
.voltar { display: inline-flex; align-items: center; gap: 4px; color: var(--suave); font-size: 14px; font-weight: 500; width: max-content; margin-bottom: -8px; }
.voltar:hover { color: var(--texto); }
.vazio { text-align: center; padding: 48px 20px; border: 1px dashed var(--borda2); border-radius: var(--raio); display: grid; gap: 8px; justify-items: center; }
.vazio-marca { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--sup2); color: var(--apagado); }
.vazio h3 { font-size: 17px; } .vazio p { color: var(--suave); max-width: 46ch; } .vazio .btn { margin-top: 10px; width: auto; }
.esqueletos { display: grid; gap: 10px; }
.esqueletos:has(.cartao-jogo) { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.esq { border-radius: var(--raio); background: linear-gradient(90deg, var(--sup) 25%, var(--sup2) 50%, var(--sup) 75%) 0 0 / 200% 100%; animation: brilho 1.3s linear infinite; }
.esq.linha { height: 66px; } .esq.bloco { height: 140px; } .esq.cartao-jogo { aspect-ratio: 1 / 1.32; }

/* Chips e filtros */
.barra-filtros { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; min-width: 0; }
.chips { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip-filtro { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--borda); background: var(--sup); color: var(--suave); font-size: 13.5px; font-weight: 600; white-space: nowrap; flex: none; transition: all .15s; }
.chip-filtro:hover { border-color: var(--borda2); color: var(--texto); }
.chip-filtro.ativo { background: var(--texto); border-color: var(--texto); color: var(--fundo); }
.chip-n { font-size: 12px; font-weight: 700; opacity: .65; font-variant-numeric: tabular-nums; }
.nuvem { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; } .nuvem .chip-filtro { max-width: 100%; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.ordenar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--apagado); flex: none; }
.ordenar select { min-height: 36px; padding: 0 32px 0 12px; font-size: 13.5px; width: auto; background-color: var(--sup); }

/* ---------- Estoque (blocos de licença) ---------- */
.estoque-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.estoque { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; padding: 16px 18px 15px; background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); text-align: left; overflow: hidden; animation: entrar .5s var(--curva) both; animation-delay: calc(var(--i, 0) * 60ms); transition: border-color .2s, background .2s, transform .2s; }
.estoque::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--vermelho); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--curva); }
.estoque:hover { border-color: var(--borda2); transform: translateY(-2px); } .estoque:hover::before, .estoque.ativo::before { transform: scaleX(1); }
.estoque.ativo { background: var(--sup3); border-color: var(--vermelho); }
.estoque-console, .licenca-console { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; background: var(--texto); color: var(--fundo); width: max-content; }
.sec-ps4 .estoque-console, .prim-ps4 .estoque-console { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1.5px var(--suave); }
.estoque-papel { font-size: 13.5px; font-weight: 600; color: var(--suave); }
.estoque-numero { grid-column: 1 / -1; font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 6px; }
.estoque-sub { grid-column: 1 / -1; font-size: 12.5px; color: var(--apagado); }
.estoque.vazio .estoque-numero { color: var(--apagado); }
.estoque-grade.compacta .estoque-numero { font-size: 34px; }

/* Início */
.movimento-numeros { display: flex; gap: 32px; }
.movimento-numeros strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.movimento-numeros span { font-size: 13px; color: var(--apagado); }
.barras { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; height: 96px; align-items: end; }
.barra { display: grid; grid-template-rows: 1fr 18px; height: 100%; gap: 4px; align-items: end; }
.barra i { display: block; border-radius: 4px 4px 2px 2px; background: var(--sup3); transform-origin: bottom; animation: crescer .6s var(--curva) both; animation-delay: calc(var(--i) * 30ms); }
.barra i.cheia { background: color-mix(in srgb, var(--vermelho) 35%, var(--sup3)); } .barra.hoje i.cheia { background: var(--vermelho); }
.barra span { font-size: 11px; color: var(--apagado); text-align: center; font-variant-numeric: tabular-nums; }
.atalhos { display: grid; gap: 4px; }
.atalho { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: var(--raio-p); border: 0; background: transparent; text-align: left; width: calc(100% + 20px); transition: background .15s; }
.atalho:hover { background: var(--sup2); }
.atalho > div { flex: 1; min-width: 0; } .atalho strong { display: block; font-size: 14.5px; font-weight: 600; } .atalho span { font-size: 13px; color: var(--apagado); }
.atalho > svg { color: var(--apagado); flex: none; }
.atalho-icone { width: 36px; height: 36px; border-radius: 10px; background: var(--sup3); display: grid !important; place-items: center; color: var(--texto) !important; flex: none; }
.linha-tempo { display: grid; }
.linha-tempo li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 9px 0; position: relative; }
.linha-tempo li + li { border-top: 1px solid var(--borda); }
.linha-tempo li.clicavel { cursor: pointer; } .linha-tempo li.clicavel:hover strong { color: var(--texto); text-decoration: underline; text-decoration-color: var(--vermelho); text-underline-offset: 3px; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--borda2); margin: 7px 0 0 4px; }
.ponto.venda { background: var(--verde); } .ponto.repasse { background: var(--azul); } .ponto.devolucao { background: var(--ambar); } .ponto.login_falhou { background: var(--vermelho); } .ponto.segredos, .ponto.entrega, .ponto.exportacao { background: var(--suave); }
.linha-tempo strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; } .linha-tempo span { font-size: 12.5px; color: var(--apagado); }
.linha-tempo.cartao { padding: 6px 18px; gap: 0; }
dl.numeros, dl.dados { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
dt { font-size: 12px; color: var(--apagado); } dd { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; } dl.numeros dd { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Jogos ---------- */
.jogos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.jogo { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; animation: entrar .45s var(--curva) both; animation-delay: calc(var(--i, 0) * 22ms); transition: transform .2s var(--curva), border-color .2s, box-shadow .2s; }
.jogo:hover { transform: translateY(-4px); border-color: var(--borda2); box-shadow: var(--sombra-m); }
.jogo:hover .capa img { transform: scale(1.05); }
.jogo.zerado .capa { filter: saturate(.15); opacity: .55; }
.jogo-info { padding: 11px 12px 12px; display: grid; gap: 9px; align-content: space-between; }
.jogo-info h3 { font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.jogo-estoque { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cont { display: grid; justify-items: center; padding: 4px 0 3px; border-radius: 7px; background: var(--fundo); font-size: 13.5px; font-weight: 700; color: var(--apagado); font-variant-numeric: tabular-nums; line-height: 1.2; min-width: 34px; }
.cont b { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: var(--apagado); }
.cont.tem { color: var(--verde); background: var(--verde-fundo); } .cont.tem.retro { color: var(--ambar); background: var(--ambar-fundo); }
.cont.foco { box-shadow: inset 0 0 0 1.5px currentColor; } .cont.esg { color: var(--texto); background: var(--sup3); }
.jogo-selo { position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--vidro); color: var(--suave); }
.capa { position: relative; aspect-ratio: 1; background: repeating-linear-gradient(135deg, var(--sup2) 0 10px, var(--sup3) 10px 11px); display: grid; place-items: center; overflow: hidden; }
.capa-letras { font-size: 40px; font-weight: 900; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--borda2); }
.capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s, transform .5s var(--curva); }
.capa.com-imagem img { opacity: 1; } .capa.com-imagem .capa-letras { visibility: hidden; }
.capa.mini { width: 46px; border-radius: 9px; flex: none; } .capa.mini .capa-letras { font-size: 15px; -webkit-text-stroke-width: 1px; }
.sentinela { height: 1px; grid-column: 1 / -1; }
.heroi { position: relative; display: flex; gap: 22px; align-items: center; padding: 22px; border-radius: 20px; border: 1px solid var(--borda); background: var(--sup); overflow: hidden; isolation: isolate; }
.capa.fundo { position: absolute; inset: -40px; aspect-ratio: auto; z-index: -1; filter: blur(46px) saturate(1.3); opacity: .38; background: none; } .capa.fundo .capa-letras { display: none; }
.heroi::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--heroi-a), var(--heroi-b)); }
.capa.grande { width: 136px; border-radius: 12px; flex: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.heroi-texto { display: grid; gap: 8px; min-width: 0; justify-items: start; flex: 1; } .heroi-texto > * { max-width: 100%; }
.heroi-texto h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.heroi-texto > p { color: var(--suave); font-size: 14px; }
.precos { display: flex; flex-wrap: wrap; gap: 8px; }
.preco { display: inline-flex; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 8px; background: var(--vidro); border: 1px solid var(--borda2); font-size: 12.5px; color: var(--suave); flex-wrap: wrap; }
.preco b { color: var(--texto); } .preco:hover { border-color: var(--suave); }

/* ---------- Contas ---------- */
.lista { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.conta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); cursor: pointer; animation: entrar .4s var(--curva) both; animation-delay: calc(var(--i, 0) * 24ms); transition: background .15s, border-color .15s; min-width: 0; }
.conta:hover { background: var(--sup2); border-color: var(--borda2); }
.conta-principal { min-width: 0; display: grid; gap: 4px; flex: 1; }
.conta-email { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conta-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--suave); }
.etiqueta { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--sup3); color: var(--texto); white-space: nowrap; }
.etiqueta.alerta { background: var(--ambar-fundo); color: var(--ambar); }
.conta-lado { display: flex; align-items: center; gap: 12px; flex: none; }
.conta-seta { color: var(--apagado); display: grid; }
.vence, .saldo { font-size: 13px; color: var(--suave); } .vence.vencido { color: var(--erro-texto); } .vence.perto { color: var(--ambar); } .saldo strong { color: var(--verde); font-variant-numeric: tabular-nums; } .saldo.zero strong { color: var(--apagado); }
.motivos { display: grid; gap: 3px; font-size: 13px; color: var(--alerta-texto); } .motivos li { padding-left: 14px; position: relative; overflow-wrap: anywhere; } .motivos li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ambar); }
.cartao .motivos { color: var(--suave); } .cartao .motivos li::before { background: var(--apagado); }

/* Medidor de licenças: uma bolinha por licença. Cheia = livre, vazada = vendida. */
.medidores { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; }
.medidor { display: grid; justify-items: center; gap: 4px; padding: 5px 7px 6px; min-width: 38px; border-radius: 9px; background: var(--fundo); border: 1px solid transparent; }
.medidor-rotulo { font-size: 10px; font-weight: 800; letter-spacing: .05em; color: var(--apagado); line-height: 1; }
.pips { display: flex; gap: 4px; height: 10px; align-items: center; }
.pip { width: 10px; height: 10px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1.5px var(--borda2); }
.pip.livre { background: var(--verde); box-shadow: 0 0 8px rgba(47, 210, 122, .55); animation: estalo .4s var(--curva) both; }
.pip.nulo { width: 10px; height: 2px; border-radius: 1px; background: var(--borda); box-shadow: none; }
.medidor.disponivel { border-color: rgba(47, 210, 122, .32); } .medidor.disponivel .medidor-rotulo { color: var(--verde); }
.medidor.disponivel.retro { border-color: rgba(242, 169, 59, .4); } .medidor.retro .medidor-rotulo { color: var(--ambar); }
.medidor.retro .pip.livre { background: repeating-linear-gradient(135deg, var(--ambar) 0 2px, color-mix(in srgb, var(--ambar) 40%, transparent) 2px 4px); box-shadow: 0 0 8px rgba(242, 169, 59, .5); }
.medidor.inexistente { opacity: .45; }
.medidor.reservada .pip { box-shadow: inset 0 0 0 1.5px var(--azul); } .medidor.reservada .medidor-rotulo { color: var(--azul); }
.medidor.bloqueada .pip { background: var(--vermelho); box-shadow: none; } .medidor.bloqueada .medidor-rotulo { color: var(--erro-texto); }
.medidor.observacao .pip { box-shadow: inset 0 0 0 1.5px var(--ambar); } .medidor.observacao .medidor-rotulo { color: var(--ambar); }
.selo-retro { display: none; }

/* ---------- Painel deslizante ---------- */
.painel-fundo { position: fixed; inset: 0; z-index: 50; background: rgba(4, 5, 8, .66); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; animation: surgir .2s both; }
.painel { width: min(100%, 480px); height: 100%; background: var(--sup); border-left: 1px solid var(--borda); display: flex; flex-direction: column; box-shadow: var(--sombra); animation: deslizar .32s var(--curva) both; }
.painel.largo { width: min(100%, 620px); }
.painel-fundo.saindo { opacity: 0; transition: opacity .22s; } .painel-fundo.saindo .painel { transform: translateX(40px); transition: transform .22s; }
.painel-alca { display: none; }
.painel-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 16px 14px 22px; border-bottom: 1px solid var(--borda); }
.painel-titulos { min-width: 0; } .painel-titulos h2 { font-size: 19px; font-weight: 800; letter-spacing: -.015em; overflow-wrap: anywhere; line-height: 1.25; } .painel-titulos p { color: var(--suave); font-size: 13.5px; margin-top: 3px; }
.painel-corpo { padding: 20px 22px 32px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
@media (min-width: 720px) {
  .painel-fundo:has(.compacto) { justify-content: center; align-items: center; }
  .painel.compacto { height: auto; max-height: 86dvh; width: min(100%, 440px); border: 1px solid var(--borda); border-radius: 18px; animation: entrar .28s var(--curva) both; }
}

/* Licenças dentro da conta */
.licencas { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.licenca { background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px; display: grid; gap: 10px; align-content: start; }
.licenca.disponivel { border-color: rgba(47, 210, 122, .4); } .licenca.disponivel.retro { border-color: rgba(242, 169, 59, .45); }
.licenca.inexistente { opacity: .6; }
.licenca > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.licenca > header > div:first-child { display: flex; align-items: center; gap: 8px; } .licenca h3 { font-size: 15px; font-weight: 700; }
.licenca-estado { display: flex; align-items: center; gap: 8px; } .licenca-estado .medidor { background: transparent; border: 0; padding: 0; min-width: 0; } .licenca-estado .medidor-rotulo { display: none; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sup3); color: var(--suave); white-space: nowrap; }
.chip.disponivel { background: var(--verde-fundo); color: var(--verde); } .chip.reservada { background: var(--azul-fundo); color: var(--azul); } .chip.bloqueada { background: var(--vermelho-fundo); color: var(--erro-texto); } .chip.observacao { background: var(--ambar-fundo); color: var(--ambar); }
.nota-retro { font-size: 13px; color: var(--alerta-texto); background: var(--ambar-fundo); border-left: 3px solid var(--ambar); border-radius: 4px 8px 8px 4px; padding: 8px 10px; }
.nota-retro.vermelha { color: var(--erro-texto); background: var(--vermelho-fundo); border-color: var(--vermelho); }
.licenca-obs { font-size: 13px; color: var(--ambar); overflow-wrap: anywhere; } .licenca-obs.neutra { color: var(--suave); white-space: pre-wrap; }
.ocupacao { display: grid; gap: 8px; padding: 10px 0 2px; border-top: 1px solid var(--borda); }
.ocupacao-quem strong { display: block; font-size: 14px; overflow-wrap: anywhere; } .ocupacao-quem span { font-size: 12.5px; color: var(--apagado); }
.ocupacao.anonima strong { color: var(--apagado); font-weight: 500; font-style: italic; }
.ocupacao-acoes { display: flex; gap: 6px; align-items: center; } .ocupacao-acoes .btn-icone { width: 34px; height: 34px; margin-left: auto; } .ocupacao-acoes .btn-icone:first-child { margin-left: 0; }
.licenca > footer { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding-top: 2px; } .licenca > footer .primario { flex: 1; }
.licenca > footer .fantasma:only-child { margin-left: auto; }
.cofre-fechado, .cofre-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cofre-fechado p { font-size: 13px; color: var(--apagado); }
.segredo { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 6px 4px 6px 12px; background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio-p); }
.segredo > span { font-size: 12px; color: var(--apagado); display: grid; } .segredo code { overflow-wrap: anywhere; user-select: all; }
.codigos { display: grid; gap: 8px; } .codigos-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.codigo { font: 600 14px ui-monospace, Consolas, monospace; letter-spacing: .06em; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--borda2); background: var(--fundo); transition: border-color .15s; } .codigo:hover { border-color: var(--verde); color: var(--verde); }
.form-codigos { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; } .form-codigos textarea { min-height: 46px; }
.obs { white-space: pre-wrap; color: var(--suave); font-size: 14px; border-top: 1px solid var(--borda); padding-top: 12px; overflow-wrap: anywhere; }

/* Venda e entrega */
.resumo-venda { display: grid; gap: 10px; padding: 14px; background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio); }
.resumo-venda > div:first-child { display: flex; gap: 8px; align-items: center; }
.resumo-jogo strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; } .resumo-jogo span { font-size: 13.5px; color: var(--suave); overflow-wrap: anywhere; }
.repasse-de { font-size: 14px; color: var(--suave); border-top: 1px solid var(--borda); padding-top: 10px; }
.sucesso { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--raio); background: var(--verde-fundo); border: 1px solid rgba(47, 210, 122, .35); font-size: 14px; }
.sucesso-marca { width: 38px; height: 38px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; flex: none; animation: estalo .5s var(--curva) both; }
.entrega-acoes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.previa { display: grid; gap: 8px; }
.balao { background: var(--balao); border: 1px solid var(--balao-borda); border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.balao p { min-height: .6em; } .balao strong { font-weight: 700; } .balao .citacao { border-left: 3px solid var(--verde); padding-left: 9px; color: var(--suave); }

/* Tabelas simples */
.tabela { display: grid; }
.tabela-linha { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; color: var(--suave); }
.tabela-linha + .tabela-linha { border-top: 1px solid var(--borda); } a.tabela-linha:hover { background: var(--sup2); }
.tabela-linha strong { color: var(--texto); font-weight: 600; overflow-wrap: anywhere; } .tabela-linha .forte { font-size: 13px; white-space: nowrap; }

/* Avisos */
#avisos { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100vw - 24px); pointer-events: none; }
.aviso { display: flex; gap: 10px; align-items: center; padding: 11px 16px; border-radius: 12px; background: var(--texto); color: var(--fundo); font-weight: 600; font-size: 14px; box-shadow: var(--sombra); animation: entrar .3s var(--curva) both; transition: opacity .25s, transform .25s; }
.aviso.erro { background: var(--vermelho); color: #fff; } .aviso.saindo { opacity: 0; transform: translateY(8px); } .aviso svg { flex: none; }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .lateral { display: none; }
  .conteudo { margin-left: 0; }
  .so-desktop { display: none; }
  .topo { padding: 8px 12px; gap: 6px; }
  .marca-movel { display: block; flex: none; }
  .busca kbd { display: none; } .busca-input::placeholder { font-size: 14.5px; }
  .principal { padding: 18px 14px calc(var(--barra) + 40px + env(safe-area-inset-bottom)); }
  .barra-movel { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 30; background: var(--vidro); backdrop-filter: blur(16px); border-top: 1px solid var(--borda); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .barra-movel .nav-item { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11px; font-weight: 600; justify-content: center; }
  .barra-movel .nav-item.ativo { color: var(--texto); } .barra-movel .nav-item.ativo svg { color: var(--vermelho2); }
  .barra-movel .nav-item.ativo::after { content: ''; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--vermelho); }
  #avisos { bottom: calc(var(--barra) + 22px + env(safe-area-inset-bottom)); }
  .tela-cab h1 { font-size: 25px; }
  .estoque-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .estoque { padding: 13px 14px; } .estoque-numero { font-size: 38px; } .estoque-grade.compacta .estoque-numero { font-size: 30px; }
  .jogos-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .heroi { padding: 16px; gap: 14px; align-items: flex-start; } .capa.grande { width: 92px; }
  .conta { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .conta-lado { justify-content: space-between; } .conta.jogo-linha { flex-direction: row; align-items: center; flex-wrap: wrap; } .jogo-linha .conta-seta { display: none; } .jogo-linha .conta-lado { flex-basis: 100%; } .jogo-linha .jogo-estoque { width: 100%; }
  .medidores { gap: 5px; }
  .barra-filtros { display: grid; grid-template-columns: minmax(0, 1fr); } .ordenar { justify-content: flex-end; }
  .chips { margin: -2px -14px; padding: 2px 14px; width: calc(100% + 28px); max-width: none; }
  /* painel vira folha que sobe de baixo */
  .painel-fundo { align-items: flex-end; }
  .painel, .painel.largo { width: 100%; height: auto; max-height: 93dvh; border: 0; border-top: 1px solid var(--borda2); border-radius: 22px 22px 0 0; animation-name: subir; }
  .painel-fundo.saindo .painel { transform: translateY(60px); }
  .painel-alca { display: block; width: 42px; height: 4px; border-radius: 2px; background: var(--borda2); margin: 9px auto 0; }
  .painel-cab { padding: 10px 10px 12px 18px; } .painel-corpo { padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); }
  .segredo { grid-template-columns: 1fr auto; } .segredo > span { grid-column: 1 / -1; }
  .tabela-linha { grid-template-columns: 1fr auto; } .tabela-linha > span:nth-child(2) { grid-row: 2; font-size: 13px; }
  .acesso-caixa { padding: 4px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }

/* ---------- Visual limpo: sombras leves, menu por seções, novo início ---------- */
.cartao, .conta, .jogo, .estoque, .heroi, .acesso-caixa { box-shadow: var(--sombra-p); }
.cartao { padding: 20px; }
.lateral nav { gap: 1px; }
.nav-rotulo { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--apagado); padding: 16px 12px 6px; }
.lateral .nav-item.ativo { background: var(--sup2); }
.lateral-pe > div { min-width: 0; flex: 1; }
.cartao-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cartao-cab > a { font-size: 13px; font-weight: 600; color: var(--suave); } .cartao-cab > a:hover { color: var(--vermelho); }
.inicio-grade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; }
.inicio-grade.baixo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.vendido-valor { font-size: 40px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vendido-sub { font-size: 13.5px; color: var(--suave); } .vendido-sub b { color: var(--verde); font-weight: 700; }
.acoes-rapidas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.acao { display: grid; justify-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--suave); text-align: center; }
.acao i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--sup2); border: 1px solid var(--borda); color: var(--texto); font-style: normal; transition: transform .2s var(--curva), background .15s; }
.acao:hover { color: var(--texto); } .acao:hover i { transform: translateY(-3px); }
.acao.principal i { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }
@keyframes tracar { to { stroke-dashoffset: 0; } }
.grafico { width: 100%; height: 150px; display: block; overflow: visible; }
.grafico .linha { fill: none; stroke: var(--vermelho); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
@keyframes revelar { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.grafico { animation: revelar 1s var(--curva) both; }
.grafico .area { fill: var(--vermelho); opacity: .08; animation: surgir .8s .35s both; }
.grafico-eixo { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--apagado); margin-top: -6px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--borda); padding-top: 12px; }
.mini-kpi { display: grid; gap: 2px; padding: 6px 8px; border-radius: 10px; } a.mini-kpi:hover { background: var(--sup2); }
.mini-kpi span { font-size: 12px; color: var(--apagado); } .mini-kpi strong { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-kpi.alerta strong { color: var(--ambar); } .mini-kpi.ruim strong { color: var(--erro-texto); }
.vendas { display: grid; }
.venda { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; background: none; text-align: left; cursor: pointer; animation: entrar .4s var(--curva) both; animation-delay: calc(var(--i, 0) * 30ms); }
.venda + .venda { border-top: 1px solid var(--borda); } .venda:hover { background: var(--sup2); border-radius: 10px; border-color: transparent; } .venda:hover + .venda { border-color: transparent; }
.venda-ok { width: 34px; height: 34px; border-radius: 50%; background: var(--verde-fundo); color: var(--verde); display: grid; place-items: center; } .venda-ok.repasse { background: var(--azul-fundo); color: var(--azul); }
.venda strong { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .venda span { font-size: 12.5px; color: var(--apagado); }
.venda-valor { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--texto) !important; }
.estoque-linhas { display: grid; }
.estoque-linha { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; } .estoque-linha + .estoque-linha { border-top: 1px solid var(--borda); }
.estoque-linha strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .estoque-linha:hover strong { color: var(--vermelho); }
.estoque-linha span { font-size: 12.5px; color: var(--suave); white-space: nowrap; } .estoque-linha b.zero { color: var(--erro-texto); }
.livres-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.livre { display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; background: var(--sup2); transition: background .15s; } .livre:hover { background: var(--sup3); }
.livre span { font-size: 11px; font-weight: 700; color: var(--apagado); letter-spacing: .04em; } .livre strong { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .livre em { font-style: normal; font-size: 11px; color: var(--ambar); min-height: 1.4em; }
@media (max-width: 900px) { .inicio-grade, .inicio-grade.baixo { grid-template-columns: minmax(0, 1fr); } .vendido-valor { font-size: 34px; } .livres-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- v3: tela cheia, caixa no menu, inventário, presets, telas novas ---------- */
.lateral { overflow-y: auto; scrollbar-width: thin; } .lateral nav { overflow: visible; flex: none; } .lateral-pe { position: sticky; bottom: -14px; background: var(--sup); padding-bottom: 14px; margin-bottom: -14px; }
.caixa-mes { display: grid; gap: 2px; padding: 14px 16px; margin: 0 0 12px; border-radius: 14px; background: #0C0E13; color: #fff; position: relative; overflow: hidden; }
.caixa-mes::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--vermelho); opacity: .9; }
.caixa-mes span { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .7); position: relative; z-index: 1; }
.caixa-mes strong { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.caixa-mes button { position: absolute; right: 8px; top: 8px; z-index: 2; color: #fff; width: 30px; height: 30px; } .caixa-mes button:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.inventario-resumo .livre { border: 1.5px solid transparent; text-align: left; cursor: pointer; padding: 14px 16px; } .inventario-resumo .livre strong { font-size: 28px; }
.inventario-resumo .livre.ativo { border-color: var(--vermelho); background: var(--vermelho-fundo); } .inventario-resumo .livre.ativo span { color: var(--vermelho); }
.filtros-lado { display: flex; align-items: center; gap: 10px; flex: none; }
.alternar { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--sup3); gap: 2px; }
.alternar button { width: 34px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--apagado); display: grid; place-items: center; } .alternar button.ativo { background: var(--sup); color: var(--texto); box-shadow: var(--sombra-p); }
.inv-cab { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 0 44px 0 74px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--apagado); }
.inv-cab div { display: grid; grid-template-columns: repeat(4, minmax(34px, 1fr)); gap: 4px; width: 172px; text-align: center; }
.jogo-linha .jogo-estoque { width: 172px; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--borda2); background: var(--sup); font-size: 13.5px; font-weight: 600; color: var(--suave); transition: all .15s; }
.opcao:hover { border-color: var(--apagado); color: var(--texto); } .opcao.ativa { background: var(--texto); border-color: var(--texto); color: var(--fundo); }
.opcao.criar { border-style: dashed; color: var(--apagado); }
.opcao-nova { display: flex; gap: 8px; margin-top: 2px; } .opcao-nova input { min-height: 40px; }
.preco-linha { display: grid; grid-template-columns: 46px minmax(0, 1.4fr) minmax(0, 1.6fr) auto; gap: 14px; align-items: center; padding: 10px 14px; background: var(--sup); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra-p); }
.preco-linha strong { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; } .preco-linha small { font-size: 12.5px; color: var(--apagado); }
.variantes { display: flex; flex-wrap: wrap; gap: 6px; } .variante { font-size: 12.5px; padding: 4px 9px; border-radius: 8px; background: var(--sup2); color: var(--suave); white-space: nowrap; } .variante b { color: var(--texto); font-variant-numeric: tabular-nums; }
.preco-estoque { display: flex; gap: 6px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.resultado { display: grid; gap: 0; } .resultado div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14.5px; color: var(--suave); } .resultado div + div { border-top: 1px solid var(--borda); }
.resultado strong { color: var(--texto); font-variant-numeric: tabular-nums; } .resultado .destaque { font-size: 16px; } .resultado .destaque strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.resultado .bom strong { color: var(--verde); } .resultado .ruim strong { color: var(--erro-texto); }
.mensagens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.em-breve { max-width: 640px; } .em-breve ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--suave); font-size: 14.5px; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } .inv-cab { display: none; } .jogo-linha .jogo-estoque { width: 100%; }
  .preco-linha { grid-template-columns: 46px minmax(0, 1fr); } .preco-linha .variantes, .preco-linha .preco-estoque { grid-column: 1 / -1; } .principal { padding: 18px 14px calc(var(--barra) + 40px + env(safe-area-inset-bottom)); } }
.caixa-mes, .marca, .lateral-pe { flex: none; }
.inventario-resumo .livre em { color: var(--apagado); }
.em-breve .etiqueta { justify-self: start; }

/* ---------- Filtros da PS Plus ---------- */
.plus-filtros { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.plus-selects { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.vence b { font-weight: 700; }
@media (max-width: 900px) { .plus-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .plus-selects .ordenar { display: grid; gap: 4px; justify-content: stretch; } .plus-selects select { width: 100%; } }

/* a bolinha usa a classe "livre", igual aos blocos de total: não herda o espaçamento deles */
.pip.livre { display: block; padding: 0; border-radius: 50%; }
.pip.livre, .pip.livre:hover { background: var(--verde); }
.medidor.retro .pip.livre, .medidor.retro .pip.livre:hover { background: var(--ambar); }

.venda.pedido { cursor: default; } .livres-4 > div.livre:hover { background: var(--sup2); }

/* esconde o token sem ser campo de senha (senão o navegador preencheria com a senha de login) */
.campo-secreto { -webkit-text-security: disc; }

/* Caixa de hoje */
.caixa-sub { min-height: 1.4em; }
.venda-fim { display: flex; align-items: center; gap: 6px; } .venda.cancelada strong, .venda.cancelada .venda-valor { text-decoration: line-through; opacity: .5; }
input[type=date] { min-height: 38px !important; width: auto !important; padding: 4px 10px !important; font-size: 14px !important; background: var(--sup); }
@media (max-width: 900px) { .filtros-lado { flex-wrap: wrap; justify-content: space-between; } }

/* Fila de entrega */
.nav-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--vermelho); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.fila-item { cursor: default; } .fila-item .conta-email { white-space: normal; } .fila-item .conta-lado { gap: 6px; } .fila-item .btn.fantasma { padding: 0 8px; }
.escolha { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; text-align: left; border: 1px solid var(--borda); border-radius: 12px; background: var(--sup); } .escolha > div { flex: 1; min-width: 0; } .escolha strong { display: block; font-size: 14px; overflow-wrap: anywhere; } .escolha div span { font-size: 12.5px; color: var(--apagado); }
.escolha.ativa { border-color: var(--vermelho); background: var(--vermelho-fundo); } .escolha .bolinha { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--borda2); flex: none; } .escolha.ativa .bolinha { border: 5px solid var(--vermelho); }
.sugestoes { display: flex; flex-wrap: wrap; gap: 8px; } .sugestoes .opcao { height: auto; min-height: 38px; text-align: left; padding: 6px 12px; }
@media (max-width: 900px) { .barra-movel .nav-n { position: absolute; top: 2px; left: 54%; margin: 0; } .fila-item .conta-lado { flex-wrap: wrap; justify-content: flex-start; } .fila-item .conta-lado .primario { flex: 1 1 100%; } }

.nota-retro.azul { color: var(--texto); background: var(--azul-fundo); border-color: var(--azul); }

.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; } .passos li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; } .passos li > b { width: 28px; height: 28px; border-radius: 50%; background: var(--sup3); display: grid; place-items: center; font-size: 13px; } .passos li > div { display: grid; gap: 8px; justify-items: start; } .passos p { font-size: 13.5px; color: var(--suave); } .passos .campo { width: 100%; }

.vendido-cab { display: flex; align-items: center; gap: 6px; } .vendido-cab .btn-icone { width: 32px; height: 32px; }
.periodo-datas { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; } .periodo-datas[hidden] { display: none; } .periodo-datas label { display: grid; gap: 4px; font-size: 12.5px; color: var(--apagado); flex: 1 1 130px; min-width: 0; } .periodo-datas input { min-height: 38px; padding: 0 10px; font-size: 13.5px; width: 100%; min-width: 0; } .periodo-datas .btn { min-height: 38px; }
.inicio-grade.baixo.so-um { grid-template-columns: minmax(0, 1fr); } .busca-vaga { flex: 1; }
.permissoes { border: 1px solid var(--borda); border-radius: 12px; padding: 12px 14px; display: grid; gap: 12px; margin: 0; } .permissoes legend { font-size: 12.5px; font-weight: 700; color: var(--apagado); padding: 0 6px; } .permissoes .marcar { align-items: flex-start; } .permissoes .marcar span { display: grid; gap: 2px; } .permissoes strong { color: var(--texto); font-weight: 600; } .permissoes small { font-size: 12.5px; color: var(--apagado); }
.inicio-grade .acoes-rapidas { align-items: start; align-self: start; } .inicio-grade .acao { align-content: start; }
@media (max-width: 900px) { .inicio-grade > .cartao { align-content: start; } .inicio-grade > .cartao > .chips { flex-wrap: wrap; width: auto; margin: -2px; padding: 2px; overflow: visible; } .inicio-grade .chip-filtro { padding-inline: 11px; } .periodo-datas .btn { flex: 1 1 100%; } }

/* Pop-up de venda nova */
.novidades { position: fixed; z-index: 80; right: 24px; bottom: 24px; display: grid; gap: 10px; width: min(340px, calc(100vw - 32px)); pointer-events: none; }
body.com-painel .novidades { right: auto; left: 24px; }
.novidade { position: relative; overflow: hidden; pointer-events: auto; background: var(--sup); border: 1px solid var(--borda); border-radius: 14px; box-shadow: var(--sombra-m); animation: novidade .42s var(--curva) both; }
.novidade.saindo { opacity: 0; transform: translateX(16px); transition: opacity .22s, transform .22s; }
.novidade-corpo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 13px 38px 14px 14px; border: 0; background: none; text-align: left; }
.novidade-corpo:hover b { color: var(--vermelho); }
.novidade-marca { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-fundo); color: var(--verde); }
.novidade-texto { display: grid; gap: 1px; min-width: 0; } .novidade-texto small { font-size: 11.5px; font-weight: 600; color: var(--apagado); }
.novidade-texto b { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .novidade-texto > span { font-size: 12.5px; color: var(--apagado); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.novidade-valor { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.novidade-fechar { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border: 0; background: none; color: var(--apagado); display: grid; place-items: center; border-radius: 8px; } .novidade-fechar:hover { color: var(--texto); background: var(--sup2); }
.novidade-tempo { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--verde); transform-origin: left; animation: novidade-tempo 9s linear both; opacity: .55; } .novidade.parada .novidade-tempo { animation-play-state: paused; }
@keyframes novidade { from { opacity: 0; transform: translateY(18px); } } @keyframes novidade-tempo { to { transform: scaleX(0); } }
@media (max-width: 900px) { .novidades, body.com-painel .novidades { left: 12px; right: 12px; bottom: auto; top: calc(74px + env(safe-area-inset-top)); width: auto; } body.com-painel .novidades { top: calc(8px + env(safe-area-inset-top)); } @keyframes novidade { from { opacity: 0; transform: translateY(-14px); } } }
@media (prefers-reduced-motion: reduce) { .novidade, .novidade-tempo { animation: none; } .novidade-tempo { display: none; } }
.inicio-grade .acao.principal { padding: 6px 2px; margin: 0; max-width: none; }

/* Calculadora */
.calc-sugestoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .calc-sugestoes .faixa { grid-column: 1 / -1; }
.calc-sugestao { display: grid; gap: 2px; align-content: start; padding: 14px; border: 1px solid var(--borda); border-radius: 12px; background: var(--sup2); } .calc-sugestao span { font-size: 12.5px; font-weight: 600; color: var(--suave); } .calc-sugestao strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .calc-sugestao small { font-size: 12px; color: var(--apagado); line-height: 1.4; } .calc-sugestao.piso { border-color: var(--ambar); background: var(--ambar-fundo); }
.calc-comparar { display: grid; gap: 8px; } .calc-comparar:empty { display: none; } .calc-tabela { border: 1px solid var(--borda); border-radius: 12px; overflow: hidden; } .calc-tabela > div { display: grid; grid-template-columns: minmax(0, 1fr) 96px 96px; gap: 8px; padding: 9px 12px; font-size: 13.5px; } .calc-tabela > div + div { border-top: 1px solid var(--borda); } .calc-tabela .cab { font-size: 12px; color: var(--apagado); background: var(--sup2); } .calc-tabela a { text-decoration: underline; text-underline-offset: 3px; } .calc-tabela span, .calc-tabela a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .calc-tabela b, .calc-tabela .cab span:not(:first-child) { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; } .calc-tabela .minha { background: var(--vermelho-fundo); }
@media (max-width: 420px) { .calc-tabela > div { grid-template-columns: minmax(0, 1fr) 80px 80px; padding: 9px 10px; font-size: 12.5px; } }
.calc-sugestao strong, .calc .resultado strong { white-space: nowrap; } @media (max-width: 420px) { .calc-sugestao strong { font-size: 20px; } }

.calc-tabela b small { display: block; font-size: 11px; font-weight: 400; color: var(--apagado); white-space: nowrap; } .calc-sugestao small.forte { color: var(--texto); font-weight: 600; }
@media (max-width: 420px) { .calc-tabela b small { white-space: normal; line-height: 1.25; } }

.calc-tabela .calc-taxa { display: block; font-size: 11px; color: var(--apagado); }
.resultado strong { white-space: nowrap; }
