/* Base comum: fontes, cores, botões, campos, avisos, folhas, barra do app. Visual no estilo Kort. */

@font-face { font-family: "Big Shoulders Display Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/big-shoulders-display-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Big Shoulders Display Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/big-shoulders-display-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk Variable"; font-style: normal; font-display: swap; font-weight: 400 900; src: url(../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk Variable"; font-style: normal; font-display: swap; font-weight: 400 900; src: url(../fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --preto: #080808; --asfalto: #171716; --asfalto-2: #222220; --concreto: #E6E5E0; --papel: #F6F6F2; --branco: #FFFFFF;
  --linha: #CDCCC5; --linha-fraca: #DCDBD5; --grafite: #5B5B56; --grafite-claro: #84847D;
  --kort: #E7F738; --kort-forte: #D3E322; --kort-suave: #F4FBB4; --kort-txt: var(--preto);
  --sombra: #4D4D4A; --lamina: #C9CAC6;
  --ok: #2E6A3E; --ok-fundo: #DCEBDD; --alerta: #8F620C; --alerta-fundo: #F5E7C6;
  --perigo: #A63A26; --perigo-fundo: #F4DCD5; --info: #2B4F86; --info-fundo: #DCE5F3;
  --f-display: "Big Shoulders Display Variable", "Arial Narrow", sans-serif;
  --f-texto: "Schibsted Grotesk Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-campo: 6px; --r-painel: 10px; --r-folha: 14px;
  --adesivo: 3px 3px 0 var(--preto); --adesivo-cinza: 3px 3px 0 var(--sombra);
  --rail: 236px; --topo-mobile: 56px; --abas-mobile: 64px;
  --mola: cubic-bezier(.34, 1.56, .64, 1); --saida: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { touch-action: manipulation; overscroll-behavior-x: none; }
body { margin: 0; font-family: var(--f-texto); font-size: 15px; line-height: 1.5; color: var(--preto); background: var(--concreto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, .display { font-family: var(--f-display); font-weight: 800; letter-spacing: .005em; line-height: 1; }
button, a, input, select, textarea, label, [role=button] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--preto); outline-offset: 2px; box-shadow: 0 0 0 5px var(--kort); border-radius: 4px; }
[hidden] { display: none !important; }
.so-leitor { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-campo); border: 1px solid transparent; background: none; font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; text-decoration: none; transition: transform 80ms ease, box-shadow 80ms ease, background-color .12s ease, border-color .12s ease; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.btn svg { flex: none; }
.btn-pequeno { height: 32px; padding: 0 11px; font-size: 13px; }
.btn-grande { height: 50px; padding: 0 22px; font-size: 16px; }
.btn-bloco { width: 100%; }
.btn-primario { background: var(--kort); color: var(--kort-txt); border: 1.5px solid var(--preto); box-shadow: var(--adesivo); }
.btn-primario:hover:not(:disabled) { background: var(--kort-forte); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--preto); }
.btn-primario:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--preto); }
.btn-primario:disabled { opacity: 1; background: var(--linha-fraca); color: var(--grafite-claro); border-color: var(--linha); box-shadow: none; }
.btn-sec { background: var(--branco); border-color: var(--linha); color: var(--preto); }
.btn-sec:hover:not(:disabled) { border-color: var(--preto); }
.btn-escuro { background: var(--preto); color: var(--branco); border-color: var(--preto); }
.btn-escuro:hover:not(:disabled) { background: var(--asfalto-2); }
.btn-perigo { background: var(--perigo-fundo); color: var(--perigo); border-color: #e4b7aa; }
.btn-perigo:hover:not(:disabled) { border-color: var(--perigo); }
.btn-fantasma { background: none; border-color: transparent; color: inherit; }
.btn-fantasma:hover:not(:disabled) { background: rgb(0 0 0 / .05); }
.btn-icone { width: 40px; padding: 0; }
.btn-pequeno.btn-icone { width: 32px; }
.btn.carregando { position: relative; color: transparent !important; pointer-events: none; }
.btn.carregando::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--preto) transparent var(--preto) transparent; animation: girar .7s linear infinite; }
@media (max-width: 900px) { .btn { min-height: 40px; } .btn-pequeno { min-height: 36px; } }

/* ---------- Campos ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > label, .rotulo { font-size: 13px; font-weight: 600; color: var(--preto); }
.input, .select, .textarea { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--linha); border-radius: var(--r-campo); background: var(--branco); transition: border-color .12s; }
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B5B56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--grafite-claro); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-radius: var(--r-campo); }
.ajuda { font-size: 12.5px; color: var(--grafite); }
.erro-campo { font-size: 12.5px; color: var(--perigo); font-weight: 500; }
.campo.com-erro .input, .campo.com-erro .textarea, .campo.com-erro .select { border-color: var(--perigo); }
.campos { display: grid; gap: 16px; }
.campos-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 560px) { .campos-2 { grid-template-columns: 1fr; } }
.marcar { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.marcar input { width: 18px; height: 18px; accent-color: var(--preto); }
@media (max-width: 900px), (pointer: coarse) { input, select, textarea, .input, .select, .textarea { font-size: 16px !important; } }

/* Interruptor */
.interruptor { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .trilho { width: 40px; height: 24px; border-radius: 999px; background: var(--linha); border: 1.5px solid var(--preto); position: relative; transition: background .15s; flex: none; }
.interruptor .trilho::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--branco); border: 1.5px solid var(--preto); transition: transform .2s var(--mola); }
.interruptor input:checked + .trilho { background: var(--kort); }
.interruptor input:checked + .trilho::after { transform: translateX(16px); }
.interruptor input:focus-visible + .trilho { box-shadow: 0 0 0 4px var(--kort); }

/* ---------- Selos (status) ---------- */
.selo { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--linha-fraca); color: var(--grafite); }
.selo-ok { background: var(--ok-fundo); color: var(--ok); }
.selo-alerta { background: var(--alerta-fundo); color: var(--alerta); }
.selo-perigo { background: var(--perigo-fundo); color: var(--perigo); }
.selo-info { background: var(--info-fundo); color: var(--info); }
.selo-preto { background: var(--preto); color: var(--branco); }
.selo-kort { background: var(--kort); color: var(--kort-txt); }
.selo-neutro { background: var(--linha-fraca); color: var(--grafite); }

/* ---------- Avisos (toast) ---------- */
.avisos { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(440px, calc(100vw - 32px)); }
.aviso { pointer-events: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--preto); color: var(--branco); font-size: 14px; font-weight: 500; box-shadow: 3px 3px 0 var(--kort); animation: subir .3s var(--saida) both; }
.aviso.erro { box-shadow: 3px 3px 0 #e46a52; }
.aviso.ok svg { color: var(--kort); }
.aviso.saindo { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@media (max-width: 900px) { .avisos { bottom: calc(var(--abas-mobile) + 16px + env(safe-area-inset-bottom)); } }

/* ---------- Folhas (painel lateral / bottom sheet) e modal ---------- */
.folha-fundo { position: fixed; inset: 0; z-index: 70; background: rgb(8 8 8 / .5); animation: vt-aparece .2s ease-out; }
.folha { position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--papel); color: var(--preto); display: flex; flex-direction: column; box-shadow: -6px 0 0 rgb(0 0 0 / .08); animation: folhaDireita .28s var(--saida) both; }
.folha.larga { width: min(640px, 100vw); }
.folha-cab { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--linha); }
.folha-cab h2 { font-size: 28px; flex: 1; }
.folha-corpo { flex: 1; overflow-y: auto; padding: 20px; }
.folha-pe { display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); background: var(--papel); }
.folha-pe .btn { flex: 1; }
.folha-alca { display: none; width: 40px; height: 4px; border-radius: 2px; background: var(--lamina); margin: 10px auto 2px; flex: none; }
@media (max-width: 720px) {
  .folha, .folha.larga { top: auto; left: 0; width: 100%; max-height: 92dvh; border-radius: var(--r-folha) var(--r-folha) 0 0; animation: folhaBaixo .3s var(--saida) both; }
  .folha-alca { display: block; }
}
.modal { position: fixed; z-index: 75; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--papel); border-radius: var(--r-painel); border: 1.5px solid var(--preto); box-shadow: 6px 6px 0 var(--preto); padding: 22px; animation: colarModal .32s var(--mola) both; }
@keyframes colarModal { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.12) rotate(-3deg); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal h2 { font-size: 28px; margin-bottom: 8px; }
.modal p { color: var(--grafite); }
.modal-acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- Estado vazio ---------- */
.vazio { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 34px 18px; border: 1px dashed var(--linha); border-radius: var(--r-painel); color: var(--grafite); }
.vazio strong { color: var(--preto); font-size: 16px; }
.vazio p { font-size: 14px; max-width: 42ch; }
.vazio .btn { margin-top: 6px; }

/* ---------- Tema escuro público (.pub) ---------- */
.pub { --fundo: var(--preto); --sup: #141413; --sup-2: #1E1E1C; --borda: #2C2C2A; --txt: #F2F2EE; --txt-2: #A3A39C; min-height: 100dvh; background: var(--fundo); color: var(--txt); }
.pub :focus-visible { outline-color: var(--kort); box-shadow: 0 0 0 5px #e7f73859; }
.pub .rotulo, .pub .campo > label { color: var(--txt); }
.pub .ajuda { color: var(--txt-2); }
.pub .erro-campo { color: #ff8f78; }
.pub .input, .pub .textarea, .pub .select { background: var(--sup); border-color: var(--borda); color: var(--txt); height: 48px; font-size: 16px; }
.pub .textarea { height: auto; }
.pub .input::placeholder, .pub .textarea::placeholder { color: #6e6e68; }
.pub .input:hover, .pub .textarea:hover { border-color: #46463f; }
.pub .btn-sec { background: transparent; border-color: var(--borda); color: var(--txt); }
.pub .btn-sec:hover:not(:disabled) { border-color: var(--txt-2); }
.pub .btn-primario { box-shadow: 3px 3px 0 var(--sombra); border-color: var(--kort); }
.pub .btn-primario:hover:not(:disabled) { box-shadow: 4px 4px 0 var(--sombra); }
.pub .btn-primario:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--sombra); }
.pub .btn-primario:disabled { background: var(--sup-2); border-color: var(--borda); color: #6e6e68; box-shadow: none; }
.pub .btn-fantasma:hover:not(:disabled) { background: #ffffff0d; }
.pub .vazio { border-color: var(--borda); color: var(--txt-2); }
.pub .vazio strong { color: var(--txt); }
.pub .folha, .pub .modal { background: var(--sup); color: var(--txt); }
.pub .folha-cab, .pub .folha-pe { border-color: var(--borda); background: var(--sup); }
.pub .modal { border-color: var(--kort); box-shadow: 6px 6px 0 #000; }
.pub .modal p { color: var(--txt-2); }
.pub .selo-neutro { background: var(--sup-2); color: var(--txt-2); }
.pub .marcar input { accent-color: var(--kort); }
.pub-wrap { max-width: 640px; margin: 0 auto; padding: 0 18px calc(120px + env(safe-area-inset-bottom)); }
.pub-erro { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: #3a1610; color: #ffd9cf; font-size: 14px; }
.pub-ok { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: #1f2a0d; color: #e9f7a8; font-size: 14px; }

/* Barra fixa inferior (resumo + ação) */
.pub-resumo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #080808f0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--borda); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); animation: subir .36s .2s var(--saida) both; --dist: 100%; }
.pub-resumo-in { max-width: 640px; min-width: 0; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.pub-resumo-in > div:first-child { min-width: 0; }
.pub-resumo .tot { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; }
.pub-resumo .det { font-size: 12.5px; color: var(--txt-2); margin-top: 3px; }
.pub-resumo-tit { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.05; }
.pub-resumo .btn { margin-left: auto; flex: none; }

.pub-rodape { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--borda); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--txt-2); }
.pub-rodape a { display: inline-flex; align-items: center; gap: 8px; color: var(--txt-2); text-decoration: none; font-weight: 600; }
.credito { display: inline-flex; align-items: center; gap: 7px; color: var(--txt-2); text-decoration: none; font-weight: 500; white-space: nowrap; transition: color .15s; }
.credito b { color: var(--txt); font-weight: 700; }
.credito svg { flex: none; color: var(--kort); fill: none; transition: transform .2s var(--mola, ease); }
.credito:hover, .credito:focus-visible { color: var(--txt); }
.credito:hover b { text-decoration: underline; text-underline-offset: 3px; }
.credito:hover svg { transform: rotate(-8deg) scale(1.12); }

/* Cabeçalho compacto (agendamento, área do cliente) */
.pub-capa-mini { padding: 28px 0 22px; border-bottom: 1px solid var(--borda); }
.pub-capa-mini-marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.pub-capa-mini-logo { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--sup); flex: none; display: grid; place-items: center; }
.pub-capa-mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.pub-capa-mini-logo span { font-family: var(--f-display); font-weight: 900; font-size: 18px; color: var(--kort); }
.pub-capa-mini h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 12vw, 68px); line-height: .92; text-transform: uppercase; animation: colar .52s var(--mola) both; min-width: 0; overflow-wrap: anywhere; }

/* Passos (agendamento) */
.pub-passos { display: flex; gap: 4px; margin: 22px 0 6px; }
.pub-passos i { flex: 1; height: 4px; border-radius: 2px; background: var(--borda); position: relative; overflow: hidden; }
.pub-passos i.feito::after { content: ""; position: absolute; inset: 0; background: var(--kort); transform-origin: left; animation: encher .42s var(--saida) both; }
.pub-voltar { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; margin-top: 6px; background: none; border: 0; color: var(--txt-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.pub-voltar:hover { color: var(--txt); }
.pub-passo-tit { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 14px; }
.pub-passo-tit b { width: 28px; height: 28px; border-radius: 6px; background: var(--kort); color: var(--kort-txt); box-shadow: 2px 2px 0 var(--sombra); font-family: var(--f-display); font-weight: 900; font-size: 18px; display: grid; place-items: center; transform: translateY(-3px); animation: colar .42s var(--mola) both; flex: none; }
.pub-passo-tit h2 { font-size: 32px; font-weight: 800; }

/* Cartões de opção (barbeiro, pagamento...) */
.pub-opcoes { display: flex; flex-direction: column; gap: 8px; }
.pub-opcao { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px; width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--borda); background: var(--sup); color: var(--txt); text-align: left; transition: border-color .15s, background .15s, transform .1s; animation: subir .32s var(--saida) both; }
.pub-opcao:hover { border-color: #46463f; }
.pub-opcao:active { transform: scale(.985); }
.pub-opcao[aria-pressed=true], .pub-opcao.sel { border-color: var(--kort); background: var(--sup-2); box-shadow: inset 4px 0 0 var(--kort); }
.pub-opcao strong { font-size: 16px; display: block; }
.pub-opcao small { font-size: 13.5px; color: var(--txt-2); display: block; }
.pub-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--sup-2); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 19px; box-shadow: inset 0 0 0 2px var(--cor, transparent); overflow: hidden; flex: none; }
.pub-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pub-avatar.livre { color: var(--kort); }

/* ---------- Barra de abas do aplicativo (celular) ----------
   Início · Horários · [Agendar] · Prêmios · Perfil. O "Agendar" do meio é um círculo limão que sobe da barra;
   a pílula limão marca a aba ativa e desliza da aba anterior (o índice vem do sessionStorage, ver pub_abas()).
   Quando a página tem a barra de resumo fixa (.pub-resumo) logo acima, o círculo encolhe para dentro da barra. */
.app-abas { display: none; }
@media (max-width: 900px) {
  .com-abas { padding-bottom: calc(var(--abas-mobile) + 18px + env(safe-area-inset-bottom)); }
  .com-abas .pub-resumo { bottom: calc(var(--abas-mobile) + env(safe-area-inset-bottom)); }
  .com-abas .avisos { bottom: calc(var(--abas-mobile) + 30px + env(safe-area-inset-bottom)); }
  .app-abas { --aba-fundo: #0d0d0c; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--abas-mobile) + env(safe-area-inset-bottom)); padding: 0 0 env(safe-area-inset-bottom); background: rgb(13 13 12 / .94); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--borda, #2C2C2A); box-shadow: 0 -12px 28px rgb(0 0 0 / .5); }
  .app-aba { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; height: var(--abas-mobile); padding-bottom: 9px; color: #96968f; text-decoration: none; }
  .app-aba-ico { position: relative; width: 52px; height: 30px; display: grid; place-items: center; border-radius: 999px; transition: transform .22s var(--mola), color .2s ease; }
  .app-aba-rot { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 600; line-height: 14px; letter-spacing: .01em; transition: color .2s ease; }
  .app-aba:active .app-aba-ico { transform: scale(.86); }
  .app-aba.ativa { color: var(--txt, #F2F2EE); }
  .app-aba.ativa .app-aba-rot { font-weight: 700; }
  .app-aba.ativa .app-aba-ico { color: var(--kort-txt); }
  .app-aba.ativa .app-aba-ico svg { animation: abaPop .5s var(--mola) .12s both; }

  /* pílula da aba ativa (desliza com transform; cada coluna = 20% da barra) */
  .app-abas-ind { position: absolute; z-index: 0; left: 0; top: 7px; width: 20%; height: 30px; display: grid; place-items: center; pointer-events: none; transform: translateX(calc(var(--i, 0) * 100%)); }
  .app-abas-ind i { width: 52px; height: 30px; border-radius: 999px; background: var(--kort); box-shadow: 2px 2px 0 var(--sombra); transition: opacity .2s ease, transform .25s var(--mola); }
  .app-abas-ind.desliza { animation: abaDesliza .46s var(--saida) both; }
  .app-abas[data-ativa="2"] .app-abas-ind i, .app-abas[data-ativa="-1"] .app-abas-ind i { opacity: 0; transform: scale(.4); }

  /* Agendar: círculo que sobe da barra */
  .app-aba-meio { z-index: 2; }
  .app-aba-meio .app-aba-ico { width: 54px; height: 54px; margin-top: -24px; border-radius: 50%; background: var(--kort); color: var(--kort-txt); box-shadow: 3px 3px 0 var(--sombra), 0 0 0 5px var(--aba-fundo); transform: translateY(var(--ty, 0px)) scale(var(--s, 1)); }
  .app-aba-meio .app-aba-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--kort); opacity: 0; pointer-events: none; animation: abaOnda 2.4s ease-out 1.2s 2; }
  .app-aba-meio:active .app-aba-ico { transform: translate(2px, calc(var(--ty, 0px) + 2px)) scale(var(--s, 1)); box-shadow: 1px 1px 0 var(--sombra), 0 0 0 5px var(--aba-fundo); }
  .app-aba-meio .app-aba-rot { color: var(--txt, #F2F2EE); }
  .app-aba-meio.ativa .app-aba-rot { color: var(--kort); }
  .app-aba-meio.ativa .app-aba-ico svg { animation: none; }
  .com-abas:has(.pub-resumo:not([hidden])) .app-aba-meio .app-aba-ico { --ty: 11px; --s: .62; }

  /* selo com o número de avisos não lidos */
  .app-aba-n { position: absolute; top: -5px; left: calc(50% + 4px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--kort); color: var(--kort-txt); font: 800 11px/1 var(--f-texto); box-shadow: 0 0 0 2px var(--aba-fundo); animation: abaSelo .55s var(--mola) .35s both; }
  .app-aba.ativa .app-aba-n { background: var(--preto); color: var(--kort); box-shadow: 0 0 0 2px var(--kort); }
  .app-aba-n.saindo { transform: scale(0); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
}
@keyframes abaDesliza { 0% { transform: translateX(calc(var(--de, 0) * 100%)); } }
@keyframes abaPop { 0% { transform: scale(.55); } }
@keyframes abaSelo { 0% { transform: scale(0); } }
@keyframes abaOnda { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .app-abas-ind.desliza, .app-aba-meio .app-aba-ico::after, .app-aba.ativa .app-aba-ico svg { animation: none !important; } }

/* ---------- Animações ---------- */
@keyframes subir { 0% { opacity: 0; transform: translateY(var(--dist, 8px)); } }
@keyframes vt-aparece { 0% { opacity: 0; } to { opacity: 1; } }
@keyframes colar { 0% { opacity: 0; transform: scale(1.12) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes encher { 0% { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes daDireita { 0% { opacity: 0; transform: translateX(28px); } }
@keyframes daEsquerda { 0% { opacity: 0; transform: translateX(-28px); } }
@keyframes folhaDireita { 0% { transform: translateX(100%); } }
@keyframes folhaBaixo { 0% { transform: translateY(100%); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes pulsar { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}

.folha:focus { outline: none; }

/* ---------- Efeitos comuns (use em qualquer tela pública ou do painel) ----------
   .revelar      entra suave quando aparece na tela (App.revelar() observa sozinho; --atraso para cascata)
   .toque        afunda um pouco ao tocar (feedback de app)
   .brilho       faixa de luz passando por cima (cartões especiais, bilhete, prêmio)
   .flutuar      sobe e desce de leve (ícones de destaque)                                                   */
.revelar { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--saida), transform .55s var(--saida); transition-delay: var(--atraso, 0s); }
.revelar.visivel { opacity: 1; transform: none; }
.toque { transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, border-color .15s ease; }
.toque:active { transform: scale(.97); }
.brilho { position: relative; overflow: hidden; isolation: isolate; }
.brilho::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: 0; width: 45%; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .28), transparent); transform: translateX(-140%) skewX(-18deg); animation: brilhar 3.6s ease-in-out infinite; will-change: transform; }
@keyframes brilhar { 0%, 55% { transform: translateX(-140%) skewX(-18deg); } 85%, 100% { transform: translateX(300%) skewX(-18deg); } }
.flutuar { animation: flutuar 3s ease-in-out infinite; }
@keyframes flutuar { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .revelar { opacity: 1; transform: none; transition: none; }
  .brilho::after, .flutuar { animation: none; }
}
