/* Barber PRO · Painel — Dark Premium (mesmos tons do desenho aprovado) */
:root {
  --fundo: #121214;
  --fundo-2: #16161A;
  --cartao: #1B1B20;
  --cartao-2: #1D1D22;
  --linha: rgba(255, 255, 255, 0.07);
  --texto: #FFFFFF;
  --apagado: #8C8C9A;
  --ouro: #C9A25E;
  --ouro-claro: #E3C688;
  --ouro-fundo: rgba(201, 162, 94, 0.12);
  --verde: #4CC38A;
  --verde-fundo: rgba(76, 195, 138, 0.12);
  --vermelho: #F06A6A;
  --vermelho-fundo: rgba(240, 106, 106, 0.12);
  --azul: #6FA8FF;
  --laranja: #C9A25E; /* (nome antigo) dourado */
  --laranja-2: #E3C688;
  --raio: 16px;
  --titulo: 'Sora', system-ui, sans-serif;
  --corpo: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); }
body {
  font-family: var(--corpo); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  background:
    radial-gradient(1000px 520px at 75% -12%, rgba(201, 162, 94, 0.07), transparent 60%),
    var(--fundo);
  background-attachment: fixed;
}
a { color: var(--ouro); text-decoration: none; }
a:hover { color: var(--ouro-claro); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--titulo); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 24px; font-weight: 600; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
.mono { font-family: var(--mono); }
.apagado { color: var(--apagado); }
.pequeno { font-size: 13.5px; }
.ouro { color: var(--ouro); }
.verde { color: var(--verde); }
.vermelho { color: var(--vermelho); }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------ estrutura */
#app { min-height: 100vh; }
.casca { display: flex; min-height: 100vh; }
.lateral { display: none; }
.conteudo { flex: 1; min-width: 0; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.topo {
  padding: 18px 16px 14px; border-bottom: 1px solid var(--linha);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  position: sticky; top: 0; z-index: 5; background: rgba(18, 18, 20, 0.92); backdrop-filter: blur(10px);
}
.topo .sub { font-size: 13.5px; color: var(--apagado); }
.topo .voltar { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; margin-bottom: 4px; }
.pagina { padding: 16px; display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; }

.navegacao {
  position: fixed; left: 0; right: 0; bottom: 0; height: 68px; z-index: 20;
  background: linear-gradient(180deg, #0A0A0B, #000000);
  border-top: 1px solid rgba(227, 198, 136, 0.22);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.95), 0 -3px 10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex; align-items: stretch; padding: 0 4px calc(4px + env(safe-area-inset-bottom)); box-sizing: content-box;
}
.navegacao a {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: #B9B9C3; font-size: clamp(10.5px, 2.9vw, 12.5px); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  position: relative; transition: color 0.2s;
}
.navegacao a svg { width: 26px; height: 26px; stroke-width: 1.6; transition: transform 0.2s, filter 0.2s; }
.navegacao a:active svg { transform: scale(0.88); }
/* aba aberta: ícone e nome acesos em dourado + tracinho em cima */
.navegacao a.ativo { color: var(--ouro-claro); font-weight: 800; }
/* divisões entre as abas */
.navegacao a + a::after { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: rgba(255, 255, 255, 0.12); }
.navegacao a.ativo svg { stroke: var(--ouro-claro); stroke-width: 2; transform: translateY(-1px); filter: drop-shadow(0 0 8px rgba(227, 198, 136, 0.6)); }
.navegacao a.ativo::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px;
  background: var(--ouro-claro); box-shadow: 0 0 10px rgba(227, 198, 136, 0.8);
}
.lateral svg { width: 20px; height: 20px; }

@media (min-width: 960px) {
  .navegacao { display: none; }
  .conteudo { padding-bottom: 32px; }
  .lateral {
    display: flex; flex-direction: column; gap: 4px; width: 240px; flex-shrink: 0; padding: 20px 12px;
    border-right: 1px solid var(--linha); background: rgba(22, 22, 26, 0.6);
    position: sticky; top: 0; height: 100vh;
  }
  .lateral .marca { font-family: var(--titulo); font-weight: 700; font-size: 18px; padding: 4px 10px 18px; }
  .lateral .marca span { color: var(--ouro); }
  .lateral a {
    display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--apagado); font-weight: 500;
  }
  .lateral a { font-size: 15px; }
  .lateral a.ativo { color: var(--ouro-claro); font-weight: 600; background: var(--ouro-fundo); box-shadow: inset 3px 0 0 var(--ouro-claro); }
  .lateral a.ativo svg { stroke: var(--ouro-claro); filter: drop-shadow(0 0 6px rgba(227, 198, 136, 0.55)); }
  .lateral .rodape { margin-top: auto; font-size: 12px; color: var(--apagado); padding: 10px; }
  .pagina { padding: 24px; }
  .topo { padding: 22px 24px 16px; }
}

/* --------------------------------------------------------------- cartões */
.cartao {
  position: relative; border-radius: var(--raio); padding: 16px;
  background:
    linear-gradient(180deg, var(--cartao-2), #1A1A1E) padding-box,
    linear-gradient(135deg, rgba(222, 188, 120, 0.5), rgba(138, 106, 59, 0.16) 32%, rgba(138, 106, 59, 0.06) 62%, rgba(201, 162, 94, 0.36)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px rgba(0, 0, 0, 0.35);
}
.cartao.simples { background: var(--cartao); border: 1px solid var(--linha); box-shadow: none; }
.cartao-titulo { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.grade-numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.numero { display: flex; flex-direction: column; gap: 2px; }
.numero b { font-family: var(--titulo); font-size: 22px; font-weight: 600; }
.numero span { font-size: 13px; color: var(--apagado); }
.linha {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 0;
  border-bottom: 1px solid var(--linha);
}
.linha:last-child { border-bottom: 0; }
.linha .rotulo { color: var(--apagado); font-size: 13.5px; }
.linha.clicavel { cursor: pointer; }
.lista { display: flex; flex-direction: column; }

/* --------------------------------------------------------------- botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid rgba(201, 162, 94, 0.45); background: transparent; color: var(--ouro);
  font-weight: 600; font-size: 14px; cursor: pointer; text-align: center;
}
.botao:hover { border-color: var(--ouro); color: var(--ouro-claro); }
.botao.cheio { background: linear-gradient(180deg, #D4AE68, #B98F4C); color: #17130C; border-color: transparent; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.botao.cheio:hover { filter: brightness(1.06); color: #17130C; }
.acoes > .botao.largo { flex-basis: 100%; }
.botao.perigo { color: var(--vermelho); border-color: rgba(240, 106, 106, 0.45); }
.botao.discreto { border-color: var(--linha); color: var(--texto); }
.botao.pequeno { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.botao.largo { width: 100%; }
.botao[disabled] { opacity: 0.5; cursor: default; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.acoes > .botao { flex: 1 1 140px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.06); color: var(--apagado); white-space: nowrap;
}
.chip.verde { background: var(--verde-fundo); color: var(--verde); }
.chip.ouro { background: var(--ouro-fundo); color: var(--ouro); }
.chip.vermelho { background: var(--vermelho-fundo); color: var(--vermelho); }
.ponto { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* escolhas (serviços, dias, horários) */
.escolhas { display: flex; flex-wrap: wrap; gap: 8px; }
.escolha {
  min-height: 40px; padding: 6px 12px; border-radius: 11px; border: 1px solid var(--linha); background: var(--cartao);
  cursor: pointer; text-align: left; display: flex; flex-direction: column; justify-content: center;
}
.escolha small { color: var(--apagado); font-size: 11.5px; }
.escolha.marcada { border-color: var(--ouro); background: var(--ouro-fundo); }
.escolha.marcada small { color: var(--ouro-claro); }
.dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.dias::-webkit-scrollbar { display: none; }
.dia {
  color: var(--texto);
  flex: 0 0 auto; width: 54px; min-height: 60px; border-radius: 12px; border: 1px solid var(--linha); background: var(--cartao);
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; gap: 2px;
}
.dia small { font-size: 12px; color: var(--apagado); text-transform: capitalize; }
.dia b { font-family: var(--titulo); font-size: 17px; }
.dia.marcada { border-color: var(--ouro); background: linear-gradient(180deg, rgba(201, 162, 94, 0.32), rgba(201, 162, 94, 0.10)); }
.dia.folga b { color: var(--apagado); }
.horarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.horario {
  min-height: 40px; border-radius: 10px; border: 1px solid var(--linha); background: var(--cartao); cursor: pointer;
  font-family: var(--mono); font-size: 13px;
}
.horario.marcada { border-color: var(--ouro); background: var(--ouro-fundo); color: var(--ouro-claro); }

/* ------------------------------------------------------------- agenda */
.agenda { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px;
  border-radius: 14px; background: var(--cartao); border: 1px solid var(--linha); cursor: pointer;
}
.item:hover { border-color: rgba(201, 162, 94, 0.35); }
.item .hora { font-family: var(--mono); font-size: 14px; color: var(--ouro-claro); }
.item .hora small { display: block; color: var(--apagado); font-size: 11px; }
.item .quem { font-weight: 600; }
.item .oque { font-size: 13.5px; color: var(--apagado); }
.item.agora { border-color: rgba(201, 162, 94, 0.7); box-shadow: 0 0 0 1px rgba(201, 162, 94, 0.25) inset; }
.item.feito { opacity: 0.6; }
.item.faltou .quem { text-decoration: line-through; color: var(--apagado); }
.item.livre { border-style: dashed; background: transparent; cursor: default; }
.item.livre .quem { color: var(--apagado); font-weight: 500; }
.item.trava { border-style: dashed; background: rgba(240, 106, 106, 0.05); cursor: default; }
.aviso {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: var(--ouro-fundo); color: var(--ouro-claro); font-size: 13.5px;
}
.aviso.vermelho { background: var(--vermelho-fundo); color: var(--vermelho); }
.aviso.verde { background: var(--verde-fundo); color: var(--verde); }
.vazio { text-align: center; color: var(--apagado); padding: 28px 12px; font-size: 14px; }

/* --------------------------------------------------------- formulários */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label, .campo .rotulo { font-size: 13.5px; color: var(--apagado); font-weight: 500; }
.entrada, select.entrada, textarea.entrada {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linha);
  background: #141418; color: var(--texto); outline: none; font-size: 15px;
}
textarea.entrada { min-height: 96px; resize: vertical; }
.entrada:focus { border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(201, 162, 94, 0.15); }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chave { position: relative; width: 46px; height: 28px; flex-shrink: 0; }
.chave input { opacity: 0; width: 0; height: 0; position: absolute; }
.chave span { position: absolute; inset: 0; border-radius: 999px; background: #34343C; transition: 0.15s; cursor: pointer; }
.chave span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: 0.15s; }
.chave input:checked + span { background: var(--ouro); }
.chave input:checked + span::after { transform: translateX(18px); }
.chave input:focus-visible + span { outline: 2px solid var(--ouro-claro); outline-offset: 2px; }

/* -------------------------------------------------------- login */
.entrada-tela { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.entrada-tela .cartao { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.marca-grande { font-family: var(--titulo); font-weight: 700; font-size: 26px; text-align: center; }
.marca-grande span { color: var(--ouro); }

/* ------------------------------------------------- camada (folha/modal) */
.fundo-camada { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.folha {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: #18181C; border: 1px solid var(--linha);
  border-radius: 20px 20px 0 0; padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px;
  animation: subir 0.18s ease-out;
}
@media (min-width: 700px) {
  .fundo-camada { align-items: center; }
  .folha { border-radius: 20px; }
}
@keyframes subir { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.folha .cabeca { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fechar { background: none; border: 0; color: var(--apagado); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }

.aviso-flutuante {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px);
  background: #24242B; border: 1px solid var(--linha); border-radius: 12px; padding: 12px 16px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); animation: subir 0.18s ease-out;
}
.aviso-flutuante.erro { border-color: rgba(240, 106, 106, 0.5); }
@media (min-width: 960px) { .aviso-flutuante { bottom: 28px; } }

/* --------------------------------------------------------- conversa */
.bolhas { display: flex; flex-direction: column; gap: 8px; }
.bolha { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.bolha small { display: block; font-size: 10.5px; color: var(--apagado); margin-top: 3px; }
.bolha.cliente { align-self: flex-start; background: #24242B; border-bottom-left-radius: 4px; }
.bolha.robo { align-self: flex-end; background: rgba(201, 162, 94, 0.16); border-bottom-right-radius: 4px; }
.bolha.barbeiro { align-self: flex-end; background: rgba(76, 195, 138, 0.14); border-bottom-right-radius: 4px; }

/* barras do faturamento */
.barras { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 140px; }
.barra { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.barra i { display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #D4AE68, #8A6A3B); min-height: 3px; }
.barra small { font-size: 11px; color: var(--apagado); }
.barra.hoje small { color: var(--ouro); font-weight: 600; }

.carregando { display: flex; justify-content: center; padding: 40px; }
.carregando::after { content: ''; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(201, 162, 94, 0.25); border-top-color: var(--ouro); animation: girar 0.8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.codigo-whats { font-family: var(--mono); font-size: 30px; letter-spacing: 0.12em; text-align: center; color: var(--ouro-claro); padding: 8px 0; }
.qr { display: block; margin: 0 auto; width: 220px; height: 220px; background: #fff; border-radius: 12px; padding: 8px; }

svg.ic { width: 20px; height: 20px; flex-shrink: 0; }
#agendar { display: flex; flex-direction: column; gap: 14px; }
.acoes > .botao { white-space: nowrap; }
.numero b { font-size: clamp(17px, 5vw, 22px); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--ouro); }
@media (min-width: 960px) { .pagina { max-width: 980px; margin: 0; } }

/* ------------------------------------------------ Olá, Fulano 👋 */
.ola { font-size: 26px; display: flex; align-items: center; gap: 6px; }
.ola .brilho {
  background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 35%, var(--laranja-2) 50%, #FFFFFF 65%, #FFFFFF 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brilhar 4s ease-in-out infinite;
}
.ola .mao { display: inline-block; transform-origin: 70% 75%; animation: acenar 3.2s ease-in-out infinite; }
@keyframes brilhar { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }
@keyframes acenar { 0%, 60%, 100% { transform: rotate(0); } 8% { transform: rotate(16deg); } 16% { transform: rotate(-10deg); } 24% { transform: rotate(14deg); } 32% { transform: rotate(-6deg); } 40% { transform: rotate(10deg); } }

/* -------------------------------------------- robô (liga/desliga) */
.robo-cartao {
  display: flex; align-items: center; gap: 14px; padding: 16px 16px; border-radius: 18px; cursor: pointer;
  border: 1.5px solid; transition: background 0.25s, border-color 0.25s;
}
.robo-cartao.on { background: linear-gradient(135deg, rgba(76, 195, 138, 0.20), rgba(76, 195, 138, 0.06)); border-color: rgba(76, 195, 138, 0.55); animation: respirarVerde 2.6s ease-in-out infinite; }
.robo-cartao.off { background: linear-gradient(135deg, rgba(240, 106, 106, 0.20), rgba(240, 106, 106, 0.06)); border-color: rgba(240, 106, 106, 0.6); }
.robo-ico {
  position: relative; width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: 32px; background: rgba(255, 255, 255, 0.06); width: 62px; height: 62px;
}
.robo-ico svg { width: 60px; height: 60px; display: block; }
.robo-cartao.on .robo-ico::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--verde); animation: onda 1.8s ease-out infinite;
}
.robo-cartao.off .robo-ico { filter: grayscale(0.7); opacity: 0.8; }
.robo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.robo-txt b { white-space: nowrap; font-family: var(--titulo); font-size: clamp(17px, 5vw, 21px); font-weight: 700; letter-spacing: -0.02em; }
.robo-cartao.on .robo-txt b { color: #FFFFFF; }
.robo-cartao.off .robo-txt b { color: var(--vermelho); }
.robo-txt small { font-size: 13.5px; color: #D5D5DD; }
.interruptor { position: relative; width: 78px; height: 44px; flex-shrink: 0; }
.interruptor input { position: absolute; opacity: 0; width: 0; height: 0; }
.interruptor span { position: absolute; inset: 0; border-radius: 999px; background: #4A2A2A; border: 2px solid rgba(240, 106, 106, 0.7); transition: 0.25s; }
.interruptor span::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45); transition: transform 0.25s cubic-bezier(.3, 1.4, .5, 1);
}
.interruptor input:checked + span { background: var(--verde); border-color: #7BE0AE; box-shadow: 0 0 16px rgba(76, 195, 138, 0.55); }
.interruptor input:checked + span::after { transform: translateX(34px); }
.interruptor input:focus-visible + span { outline: 3px solid var(--laranja-2); outline-offset: 3px; }
@keyframes onda { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.45); opacity: 0; } }
@keyframes respirarVerde { 0%, 100% { box-shadow: 0 0 0 rgba(76, 195, 138, 0); } 50% { box-shadow: 0 0 22px rgba(76, 195, 138, 0.28); } }

/* -------------------------------------------- dinheiro do dia */
.cartao.dinheiro {
  overflow: hidden;
  background:
    radial-gradient(420px 180px at 85% 0%, rgba(201, 162, 94, 0.05), transparent 70%) padding-box,
    linear-gradient(180deg, #1C1B1C, #18181B) padding-box,
    linear-gradient(135deg, rgba(227, 198, 136, 0.40), rgba(201, 162, 94, 0.08) 40%, rgba(201, 162, 94, 0.03) 60%, rgba(227, 198, 136, 0.28)) border-box;
}
/* reflexo quase imperceptível passando devagar: uma faixa escura com um fio de luz neutra (nada de dourado) */
.cartao.dinheiro::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%; pointer-events: none; border-radius: inherit;
  background: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.035) 35%, rgba(255, 255, 255, 0.008) 50%, rgba(0, 0, 0, 0.035) 65%, transparent 100%);
  animation: reflexo 11s ease-in-out infinite;
}
@keyframes reflexo { 0%, 60% { left: -60%; } 100% { left: 120%; } }
.grana {
  font-family: var(--titulo); font-size: clamp(36px, 11vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  background: linear-gradient(180deg, #F3DDA8, #C9A25E); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 2px 0 6px; font-variant-numeric: tabular-nums;
}
.grafico { display: block; width: 100%; height: auto; overflow: visible; }
.grafico .grade-linhas line { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grafico .grade-linhas .chao { stroke: rgba(160, 185, 170, 0.25); }
.grafico .traco {
  fill: none; stroke: url(#g-linha); stroke-width: 0.75; stroke-linecap: round; stroke-linejoin: miter; vector-effect: non-scaling-stroke;
}
.grafico .area { opacity: 0.85; }
.grafico .bolinha { fill: #E4F2EA; stroke: #6FBF92; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; animation: aparecer 0.4s ease-out forwards; }
.grafico .agora-linha { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.grafico .agora-ponto { fill: #fff; stroke: #6FBF92; stroke-width: 3; vector-effect: non-scaling-stroke; }
.grafico .agora-onda { fill: rgba(111, 191, 146, 0.4); transform-box: fill-box; transform-origin: center; animation: piscar 1.4s ease-out infinite; }
.grafico text { font-family: var(--mono); font-size: 10px; fill: var(--apagado); }
.grafico .agora-txt { fill: #fff; font-weight: 500; }
@keyframes desenhar { to { stroke-dashoffset: 0; } }
@keyframes aparecer { to { opacity: 1; } }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pulsarLinha { 0%, 100% { filter: drop-shadow(0 0 3px rgba(111, 191, 146, 0.45)); } 50% { filter: drop-shadow(0 0 10px rgba(120, 210, 160, 0.95)); } }
@keyframes piscar { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.mini-numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(227, 198, 136, 0.18); }
.mini-numeros div { display: flex; flex-direction: column; gap: 2px; }
.mini-numeros div + div { border-left: 1px solid rgba(227, 198, 136, 0.18); padding-left: 10px; }
.mini-numeros b { font-family: var(--titulo); font-size: clamp(17px, 5vw, 21px); font-weight: 600; }
.mini-numeros span { font-size: 12.5px; color: #B9B9C4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .grafico .traco { stroke-dashoffset: 0; }
}

/* selos com a quantidade de clientes e a ponta que pisca */
.grafico .selo { opacity: 1; }
.grafico .selo rect { fill: #221E17; stroke: rgba(201, 162, 94, 0.7); stroke-width: 0.75; vector-effect: non-scaling-stroke; }
.grafico .selo text { fill: #F1DCA8; font-size: 7.5px; font-weight: 600; }
.grafico .ponta-ponto { fill: #7BE0AE; animation: piscarPonto 1.4s ease-in-out infinite; }
@keyframes piscarPonto { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes cintilar { 0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); } 40% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: 0.9; transform: scale(0.8) rotate(60deg); } }
.mini-numeros b { display: inline-flex; align-items: center; gap: 6px; }
.mini-numeros b svg.ic { width: 18px; height: 18px; color: #B9B9C4; }

.item .hora { color: var(--ouro-claro); }
.svc-ic { font-size: 12px; margin-right: 5px; opacity: 0.8; }

/* velas da semana (faturamento): verde subiu, vermelha caiu em relação ao dia anterior */
.velas { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 170px; align-items: end; }
.vela { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; color: inherit; }
.vela-valor { font-family: var(--mono); font-size: 10px; color: #CFCFD6; white-space: nowrap; min-height: 12px; }
.vela-corpo { position: relative; width: 60%; max-width: 26px; border-radius: 3px; background: #3A3A42; display: block; }
.vela-corpo i { position: absolute; left: 50%; top: -8px; height: 8px; width: 1.5px; margin-left: -0.75px; background: inherit; }
.vela.sobe .vela-corpo { background: #3FB57A; box-shadow: 0 0 10px rgba(63, 181, 122, 0.25); }
.vela.desce .vela-corpo { background: #E05A5A; box-shadow: 0 0 10px rgba(224, 90, 90, 0.25); }
.vela.neutra .vela-corpo, .vela.igual .vela-corpo { background: var(--ouro); }
.vela.vazia .vela-corpo i { display: none; }
.vela small { font-size: 12px; color: var(--apagado); text-transform: capitalize; }
.vela.hoje small { color: var(--ouro-claro); font-weight: 700; }
.vela.hoje .vela-valor { color: #fff; font-weight: 600; }
.vela-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--apagado); }
.vela-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.vela-legenda i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.vela-legenda i.sobe { background: #3FB57A; }
.vela-legenda i.desce { background: #E05A5A; }

.grafico .valor-ponto { fill: #E3C688; font-family: var(--mono); font-size: 8.5px; font-weight: 600; }
.grafico .valor-ponto.ganho { fill: #4CC38A; }
.grafico .valor-ponto.perda { fill: #F06A6A; }
.grafico .ponta-ponto.perda { fill: #F06A6A; }
.grafico .ponta-ponto.ganho { fill: #4CC38A; }

.mini-numeros b { font-size: clamp(15px, 4.4vw, 20px); }
.mini-numeros span { font-size: 11.5px; }
.mini-numeros div + div { padding-left: 8px; }

.grafico .marca-perda line { stroke: #F06A6A; stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.grafico .tique { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grafico .tique.hora { stroke: rgba(255, 255, 255, 0.35); }
.grafico .tique.ponto { stroke: rgba(227, 198, 136, 0.8); }
.grafico .eixo { font-size: 8.5px; }
.grafico .eixo-ponto { fill: #E3C688; }
.grafico .valor-ponto { paint-order: stroke; stroke: #19181B; stroke-width: 3px; stroke-linejoin: round; }
.grafico-rolagem { overflow-x: auto; overflow-y: hidden; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; -webkit-overflow-scrolling: touch; }
.grafico-rolagem::-webkit-scrollbar { height: 4px; }
.grafico-rolagem::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
.grafico-rolagem .grafico { width: 100%; }

/* responder pelo painel */
.resposta { display: flex; flex-direction: column; gap: 10px; }
.resposta textarea.entrada { min-height: 72px; }
.resposta-rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.resposta-rodape .botao { flex-shrink: 0; min-width: 110px; }
/* importar: três escolhas lado a lado */
.escolhas.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.escolhas.trio .escolha { min-height: 36px; padding: 4px 8px; align-items: center; font-size: 13.5px; font-weight: 500; color: var(--texto); }
.escolhas.trio .escolha.marcada { color: var(--ouro-claro); }
#imp-contador { color: var(--ouro-claro); }

/* WhatsApp desconectado: o cartão da assistente avisa e leva pra conectar */
.robo-cartao.desconectado { color: inherit; background: linear-gradient(135deg, rgba(240, 106, 106, 0.20), rgba(240, 106, 106, 0.06)); border-color: rgba(240, 106, 106, 0.65); animation: alertaVermelho 2.4s ease-in-out infinite; }
.robo-cartao.desconectado .robo-ico { filter: grayscale(1); opacity: 0.7; }
.robo-cartao.desconectado .robo-txt b { color: var(--vermelho); white-space: normal; }
.robo-conectar { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; padding: 8px 10px 8px 14px; border-radius: 999px; background: var(--vermelho); color: #1A0D0D; font-weight: 700; font-size: 14px; }
.robo-conectar svg { width: 16px; height: 16px; stroke: #1A0D0D; }
@keyframes alertaVermelho { 0%, 100% { box-shadow: 0 0 0 rgba(240, 106, 106, 0); } 50% { box-shadow: 0 0 20px rgba(240, 106, 106, 0.30); } }
.robo-cartao.desconectado .robo-txt b { font-size: clamp(16px, 4.5vw, 19px); }
.robo-cartao.desconectado .robo-ico { width: 48px; height: 48px; }
.robo-cartao.desconectado .robo-ico svg { width: 48px; height: 48px; }
.robo-conectar { padding: 7px 8px 7px 12px; font-size: 13px; }

/* ---------- Status do WhatsApp ---------- */
.status-aparelho { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--raio); background: var(--cartao); border: 1px solid var(--vermelho-fundo); }
.status-aparelho.ok { border-color: var(--linha); }
.status-aparelho > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.status-aparelho b { font-weight: 600; font-size: 14.5px; }
.status-aparelho span:not(.ponto) { color: var(--apagado); font-size: 12.5px; line-height: 1.4; }
.status-aparelho .ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--vermelho); flex: none; box-shadow: 0 0 0 4px var(--vermelho-fundo); }
.status-aparelho.ok .ponto { background: var(--verde); box-shadow: 0 0 0 4px var(--verde-fundo); }
.status-lista { display: flex; flex-direction: column; gap: 10px; }
.status-item { background: var(--fundo-2); border: 1px solid var(--linha); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.status-topo, .status-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-texto { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; font-size: 14.5px; }
ol.passos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--texto); line-height: 1.4; }
a.escolha { color: var(--texto); text-decoration: none; }
.imp-nome { padding: 8px 10px; font-size: 14px; margin-bottom: 4px; }
.imp-ver { flex: none; font-size: 12.5px; color: var(--ouro); text-decoration: none; padding: 6px 0; white-space: nowrap; }
.imp-topo { position: relative; }
.imp-contas { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.imp-contas b { font-family: var(--titulo); font-size: 20px; margin-right: 4px; }
.imp-busca { position: relative; }
.imp-busca .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--apagado); pointer-events: none; }
.imp-busca .entrada { padding-left: 42px; }

/* ---------- Dia lotou: Status automático ---------- */
.status-auto { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(201, 162, 94, 0.45); background: linear-gradient(135deg, rgba(201, 162, 94, 0.14), rgba(201, 162, 94, 0.04)); }
.status-auto.off { border-color: var(--linha); background: var(--cartao); }
.status-auto-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ouro-fundo); color: var(--ouro-claro); flex: none; }
.status-auto.off .status-auto-ico { color: var(--apagado); background: rgba(255, 255, 255, 0.05); }
.status-auto-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.status-auto-txt b { font-family: var(--titulo); font-size: 15px; }
.status-auto-txt small { color: var(--apagado); font-size: 12.5px; line-height: 1.35; }
.status-auto .interruptor { width: 52px; height: 30px; }
.status-auto .interruptor span { background: #2A2A30; border-color: rgba(255, 255, 255, 0.18); }
.status-auto .interruptor span::after { width: 22px; height: 22px; top: 2px; left: 2px; }
.status-auto .interruptor input:checked + span { background: var(--ouro); border-color: var(--ouro-claro); box-shadow: 0 0 10px rgba(201, 162, 94, 0.4); }
.status-auto .interruptor input:checked + span::after { transform: translateX(22px); }

/* ---------- Lista de espera do dia (tela Hoje) ---------- */
.espera-dia h3 { display: flex; align-items: center; gap: 8px; }
.espera-dia h3 .ic { color: var(--ouro); }
.espera-grupo { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.espera-grupo + .espera-grupo { border-top: 1px solid var(--linha); margin-top: 10px; }
.espera-grupo-titulo { font-weight: 600; font-size: 13.5px; color: var(--ouro-claro); display: flex; justify-content: space-between; }
.espera-grupo-titulo span { color: var(--apagado); font-weight: 400; font-size: 12.5px; }
.espera-pessoa { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--fundo-2); border: 1px solid var(--linha); }
.espera-pos { font-family: var(--mono); color: var(--ouro); font-size: 13px; width: 24px; flex: none; text-align: center; }
.espera-pessoa .quem { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.espera-pessoa .oque { color: var(--apagado); font-size: 12.5px; }
.codigo-whats { user-select: all; -webkit-user-select: all; }

/* ---------- Instalar como aplicativo ---------- */
.entrada-tela { flex-direction: column; gap: 14px; }
.instalar-cartao { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid rgba(201, 162, 94, 0.45); background: linear-gradient(135deg, rgba(201, 162, 94, 0.14), rgba(201, 162, 94, 0.04)); }
.instalar-cartao.compacto { width: 100%; max-width: 400px; }
.instalar-cartao img { border-radius: 12px; flex: none; }
.instalar-cartao b { display: block; font-family: var(--titulo); font-size: 15px; }
.instalar-cartao small { display: block; color: var(--apagado); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.instalar-pagina { text-align: center; }
.ou { display: flex; align-items: center; gap: 10px; color: var(--apagado); font-size: 12.5px; }
.ou::before, .ou::after { content: ''; flex: 1; height: 1px; background: var(--linha); }
