/* ============================================================
   BarberFlow — estilos
   ============================================================ */
:root {
  --bg: #f4f2ee; --surface: #ffffff; --surface-2: #f9f8f5; --surface-3: #efebe5;
  --line: #e7e2da; --line-2: #d6cfc4;
  --text: #1d1a16; --text-2: #57514a; --muted: #8a8378;
  --accent: #c9a227; --accent-ink: #16120c;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-txt: color-mix(in srgb, var(--accent) 62%, var(--text));
  --side-bg: #17140f; --side-2: #221e18; --side-text: #e5dfd3; --side-muted: #958c7e;
  --ok: #15803d; --ok-bg: #e2f3e7;
  --aviso: #8a5a00; --aviso-bg: #fbf0d2;
  --alerta: #b8440c; --alerta-bg: #fce8db;
  --ruim: #b91c1c; --ruim-bg: #fce3e3;
  --info: #1d4ed8; --info-bg: #e3eafc;
  --neutro: #6b645b; --neutro-bg: #ece8e1;
  --r: 14px; --r-sm: 10px;
  --sombra: 0 1px 2px rgba(30, 20, 10, .05), 0 6px 20px rgba(30, 20, 10, .06);
  --sombra-forte: 0 20px 60px rgba(0, 0, 0, .25);
  --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0d0b; --surface: #191613; --surface-2: #1f1b17; --surface-3: #29241f;
    --line: #2d2822; --line-2: #3d362e;
    --text: #f1ede6; --text-2: #c3bbaf; --muted: #8e867a;
    --accent-txt: color-mix(in srgb, var(--accent) 70%, #fff);
    --side-bg: #0a0908; --side-2: #171411;
    --ok: #4ade80; --ok-bg: rgba(74, 222, 128, .12);
    --aviso: #facc15; --aviso-bg: rgba(250, 204, 21, .12);
    --alerta: #fb923c; --alerta-bg: rgba(251, 146, 60, .13);
    --ruim: #f87171; --ruim-bg: rgba(248, 113, 113, .13);
    --info: #7aa2ff; --info-bg: rgba(122, 162, 255, .13);
    --neutro: #a8a095; --neutro-bg: rgba(168, 160, 149, .13);
    --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0d0b; --surface: #191613; --surface-2: #1f1b17; --surface-3: #29241f;
  --line: #2d2822; --line-2: #3d362e; --text: #f1ede6; --text-2: #c3bbaf; --muted: #8e867a;
  --accent-txt: color-mix(in srgb, var(--accent) 70%, #fff); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--fonte); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.com-modal { overflow: hidden; }
a { color: var(--accent-txt); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
.i { width: 18px; height: 18px; flex: none; }
.num, .tab { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; color: var(--text); transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.pri:hover { filter: brightness(1.06); }
.btn.perigo { background: var(--ruim); border-color: var(--ruim); color: #fff; }
.btn.perigo-txt { color: var(--ruim); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.fantasma { background: transparent; border-color: transparent; }
.btn.fantasma:hover { background: var(--surface-3); }
.btn.peq { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.grande { min-height: 50px; font-size: 16px; padding: 0 22px; }
.btn.cheio { width: 100%; }
.btn-icone { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: inherit; }
.btn-icone:hover { background: var(--surface-3); }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- formulários ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > span, .rotulo { font-size: 13px; font-weight: 600; color: var(--text-2); }
.campo small, .ajuda { font-size: 12.5px; color: var(--muted); }
.entrada, .campo input:not([type=checkbox]):not([type=radio]):not([type=color]), .campo select, .campo textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.campo textarea { min-height: 84px; resize: vertical; }
.entrada:focus, .campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grade-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grade-form .inteiro { grid-column: 1 / -1; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .grade-form, .grade-3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.busca { position: relative; }
.busca .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.busca input { padding-left: 38px !important; }

/* interruptor */
.chave { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.chave input { position: absolute; opacity: 0; }
.chave i { width: 40px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.chave i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.chave input:checked + i { background: var(--accent); }
.chave input:checked + i::after { transform: translateX(16px); }
.chave input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* fichas (chips) e controle segmentado */
.fichas { display: flex; gap: 6px; flex-wrap: wrap; }
.ficha { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.ficha:hover { border-color: var(--muted); }
.ficha.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.ficha .cont { font-size: 12px; opacity: .7; }
.ficha:disabled { opacity: .4; cursor: not-allowed; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-3); gap: 2px; }
.seg button { border: 0; background: transparent; min-height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* selos */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--neutro-bg); color: var(--neutro); }
.badge .i { width: 13px; height: 13px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.aviso { background: var(--aviso-bg); color: var(--aviso); }
.badge.alerta { background: var(--alerta-bg); color: var(--alerta); }
.badge.ruim { background: var(--ruim-bg); color: var(--ruim); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.destaque { background: var(--accent-soft); color: var(--accent-txt); }

/* avatar */
.avatar { --av: var(--accent); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden; font-weight: 700; font-size: 14px; color: #fff; background: var(--av); letter-spacing: .02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.p { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.g { width: 56px; height: 56px; font-size: 19px; }
.avatar.gg { width: 84px; height: 84px; font-size: 28px; }
.capa-vazia { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, #2a241c), #1b1712); color: color-mix(in srgb, var(--accent) 70%, #fff); }
.capa-vazia .i { width: 34%; height: 34%; max-width: 44px; max-height: 44px; stroke-width: 1.5; }

/* ---------- cartões, KPIs, tabelas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card + .card { margin-top: 14px; }
.card-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-cab h3 { font-size: 15.5px; }
.card-cab p { font-size: 13px; color: var(--muted); }
.duas-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.duas-col > .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .duas-col { grid-template-columns: minmax(0, 1fr); } }
.card { min-width: 0; }
.pilha > * + * { margin-top: 14px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi small { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi small .i { width: 15px; height: 15px; }
.kpi b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.kpi.destaque { background: var(--side-bg); border-color: var(--side-bg); color: var(--side-text); }
.kpi.destaque small, .kpi.destaque em { color: var(--side-muted); }
.kpi.destaque b { color: color-mix(in srgb, var(--accent) 75%, #fff); }
.kpi.clicavel { cursor: pointer; transition: border-color .15s; text-align: left; }
.kpi.clicavel:hover { border-color: var(--accent); }
.kpi .tom-ruim { color: var(--ruim); } .kpi .tom-alerta { color: var(--alerta); } .kpi .tom-ok { color: var(--ok); }

.tabela-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr.clicavel { cursor: pointer; }
.tabela tbody tr.clicavel:hover td { background: var(--surface-2); }
.tabela .num { text-align: right; white-space: nowrap; }
.tabela .acoes { justify-content: flex-end; flex-wrap: nowrap; }
.tabela td small { display: block; color: var(--muted); font-size: 12.5px; }

.vazio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 16px; color: var(--muted); }
.vazio > .i { width: 34px; height: 34px; stroke-width: 1.5; margin-bottom: 4px; }
.vazio b { color: var(--text); font-size: 15px; }
.vazio .btn { margin-top: 10px; }

.aviso-faixa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--aviso-bg); color: var(--aviso); font-size: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.aviso-faixa.ruim { background: var(--ruim-bg); color: var(--ruim); }
.aviso-faixa.info { background: var(--info-bg); color: var(--info); }
.aviso-faixa span { flex: 1; min-width: 200px; }
.aviso-faixa .btn { border-color: currentColor; background: transparent; color: inherit; }

/* lista em linhas (funciona bem no celular) */
.linhas { display: flex; flex-direction: column; }
.linha { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.linha:last-child { border-bottom: 0; }
.linha.clicavel { cursor: pointer; border-radius: 10px; }
.linha.clicavel:hover { background: var(--surface-2); }
.linha-txt { flex: 1; min-width: 0; }
.linha-txt b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-txt small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-fim { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.linha-fim b { font-variant-numeric: tabular-nums; }

/* gráfico de barras */
.grafico { position: relative; height: 230px; margin: 6px 0 4px; }
.graf-grade { position: absolute; inset: 4px 0 26px 72px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.graf-grade span { border-top: 1px solid var(--line); position: relative; height: 0; }
.graf-grade span::before { content: attr(data-v); position: absolute; right: calc(100% + 8px); top: -8px; font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.graf-barras { position: absolute; inset: 4px 0 26px 72px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; }
.gb { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; }
.gb-barra { width: min(72%, 30px); background: var(--accent); border-radius: 4px 4px 0 0; transition: filter .15s; }
.gb:hover .gb-barra, .gb:focus .gb-barra { filter: brightness(1.15) saturate(1.1); }
.gb-rot { position: absolute; top: 100%; margin-top: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.gb-dica { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: 12px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 5; display: flex; flex-direction: column; text-align: center; }
.gb-dica { bottom: auto; top: -4px; transform: translate(-50%, -100%); }
.gb:hover .gb-dica, .gb:focus .gb-dica { opacity: 1; }
.gb:first-child .gb-dica { left: 0; transform: translate(0, -100%); }
.gb:last-child .gb-dica { left: auto; right: 0; transform: translate(0, -100%); }
.partes { display: flex; flex-direction: column; gap: 12px; }
.parte-l { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.parte-l b { font-variant-numeric: tabular-nums; }
.parte-trilho { height: 8px; border-radius: 99px; background: var(--surface-3); margin: 5px 0 2px; overflow: hidden; }
.parte-trilho div { height: 100%; background: var(--accent); border-radius: 99px; }
.parte small { font-size: 12px; color: var(--muted); }

/* ---------- casca (menu lateral + conteúdo) ---------- */
.casca { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100dvh; }
.lateral { position: sticky; top: 0; height: 100dvh; background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; padding: calc(18px + env(safe-area-inset-top)) 12px 18px; gap: 18px; }
.lateral-marca { padding: 4px 8px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: inherit; text-decoration: none; min-width: 0; }
.marca .marca-icone { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none; overflow: hidden; }
.marca .marca-icone img { width: 100%; height: 100%; object-fit: cover; }
.marca .marca-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.marca .marca-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marca .marca-txt small { font-size: 12px; font-weight: 500; color: var(--side-muted); }
.lateral-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-muted); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.nav-item:hover { background: var(--side-2); color: var(--side-text); }
.nav-item.on { background: var(--side-2); color: #fff; }
.nav-item.on .i { color: var(--accent); }
.lateral-rodape { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.lateral-rodape .nav-item { padding: 9px 12px; }
.lateral-usuario { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--side-2); font-size: 13.5px; min-width: 0; }
.lateral-usuario div { min-width: 0; flex: 1; }
.lateral-usuario b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.lateral-usuario small { color: var(--side-muted); }
.principal { padding: calc(28px + env(safe-area-inset-top)) 32px 56px; min-width: 0; width: 100%; max-width: 1320px; }
.barra-celular { display: none; }
.nav-baixo { display: none; }

.topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.topo h1 { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; }
.topo .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.topo-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.barra-filtros { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.barra-filtros .busca { flex: 1; min-width: 220px; max-width: 360px; }

@media (max-width: 860px) {
  .casca { grid-template-columns: minmax(0, 1fr); }
  .lateral { display: none; }
  .principal { padding: 14px 16px calc(92px + env(safe-area-inset-bottom)); }
  .barra-celular { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -14px -16px 14px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: var(--side-bg); color: var(--side-text); position: sticky; top: 0; z-index: 20; }
  .nav-baixo { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .nb-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; border-radius: 10px; min-width: 0; }
  .nb-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nb-item .i { width: 22px; height: 22px; }
  .nb-item.on { color: var(--text); }
  .nb-item.on .i { color: var(--accent-txt); }
  .topo { align-items: flex-start; }
  .topo h1 { font-size: 22px; }
  .topo-acoes { width: 100%; }
  .topo-acoes .btn { flex: 1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; }
  .kpi b { font-size: 19px; }
  .card { padding: 14px; }
  .tabela-wrap { margin: 0 -14px; padding: 0 14px; }
}

/* ---------- janela (modal) ---------- */
.modal-fundo { position: fixed; inset: 0; z-index: 100; background: rgba(10, 8, 6, .55); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .16s; backdrop-filter: blur(2px); }
.modal-fundo.aberto { opacity: 1; }
.modal { background: var(--surface); color: var(--text); border-radius: 18px; width: 100%; max-width: 560px; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; box-shadow: var(--sombra-forte); transform: translateY(8px) scale(.99); transition: transform .16s; }
.modal-fundo.aberto .modal { transform: none; }
.modal.pequeno { max-width: 420px; }
.modal.largo { max-width: 820px; }
.modal-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px 22px; border-bottom: 1px solid var(--line); }
.modal-cab h3 { font-size: 17px; }
.modal-corpo { padding: 18px 22px; overflow-y: auto; flex: 1; }
.modal-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-rodape .esq { margin-right: auto; }
.texto-modal { color: var(--text-2); }
.secao-modal + .secao-modal { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.secao-modal > h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 640px) {
  .modal-fundo { padding: env(safe-area-inset-top) 0 0; align-items: flex-end; }
  .modal, .modal.pequeno, .modal.largo { max-width: none; border-radius: 20px 20px 0 0; max-height: min(94dvh, calc(100dvh - env(safe-area-inset-top) - 8px)); }
  .modal-corpo { padding: 16px; }
  .modal-rodape { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-rodape .btn { flex: 1; }
  .modal-rodape .esq { flex: 0 0 auto; }
}
.info-lista { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; margin: 0; font-size: 14px; }
.info-lista dt { color: var(--muted); }
.info-lista dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .info-lista { grid-template-columns: 1fr; gap: 2px; } .info-lista dd { margin-bottom: 8px; } }

/* avisos rápidos */
#toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: #1d1a16; color: #f4efe7; padding: 11px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--sombra-forte); animation: entra .2s ease-out; transition: opacity .3s, transform .3s; }
.toast .i { color: #6ee7a0; }
.toast.erro .i { color: #fca5a5; }
.toast.info .i { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.toast.sai { opacity: 0; transform: translateY(6px); }
@media (max-width: 860px) { #toasts { bottom: calc(86px + env(safe-area-inset-bottom)); } }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); background: radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--accent) 25%, transparent), transparent), var(--side-bg); }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 22px; padding: 28px 24px; box-shadow: var(--sombra-forte); }
.login-card .marca { justify-content: center; margin-bottom: 6px; }
.login-card h1 { font-size: 21px; text-align: center; margin: 14px 0 4px; }
.login-card > p { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.quem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quem button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 600; text-align: center; }
.quem button:hover { border-color: var(--accent); }
.quem .avatar { width: 48px; height: 48px; font-size: 16px; }
.quem-dono .avatar { background: var(--side-bg); color: var(--accent); }
.pin-pontos { display: flex; justify-content: center; gap: 14px; margin: 8px 0 18px; }
.pin-pontos i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); }
.pin-pontos i.on { background: var(--accent); border-color: var(--accent); }
.pin-pontos.erro { animation: treme .35s; }
.pin-teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pin-teclado button { height: 58px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: 22px; font-weight: 600; }
.pin-teclado button:active { background: var(--surface-3); }
.pin-teclado .vazio-btn { visibility: hidden; }
@keyframes treme { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.login-voltar { display: flex; justify-content: center; margin-top: 14px; }

.tela-msg { min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); background: var(--side-bg); color: var(--side-text); text-align: center; }
.tela-msg > div { max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tela-msg .grande-icone { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--side-2); color: var(--accent); }
.tela-msg .grande-icone .i { width: 30px; height: 30px; }
.tela-msg h1 { font-size: 22px; color: #fff; }
.tela-msg p { color: var(--side-muted); }

/* ---------- início (demonstração) ---------- */
.home { min-height: 100dvh; background: radial-gradient(1100px 520px at 70% -10%, rgba(201, 162, 39, .22), transparent), var(--side-bg); color: var(--side-text); padding: 28px 20px 60px; }
.home-in { max-width: 1120px; margin: 0 auto; }
.home-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 48px; }
.home h1 { font-size: clamp(30px, 5vw, 48px); color: #fff; letter-spacing: -0.03em; max-width: 720px; line-height: 1.08; }
.home h1 em { font-style: normal; color: var(--accent); }
.home-lead { font-size: 17px; color: var(--side-muted); margin: 14px 0 34px; max-width: 620px; }
.home-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .home-grade { grid-template-columns: 1fr; } }
.home-card { background: #1d1914; border: 1px solid #2c261f; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.home-card .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #16120c; }
.home-card h2 { font-size: 19px; color: #fff; }
.home-card p { color: var(--side-muted); font-size: 14.5px; }
.home-card .btn { margin-top: auto; }
.home-lista { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.home-lista a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #25201a; color: var(--side-text); text-decoration: none; font-size: 14px; }
.home-lista a:hover { background: #2e2820; }
.home-lista a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-lista a small { color: var(--side-muted); font-size: 12px; white-space: nowrap; }
.home-lista .cor { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.home-dica { margin-top: 26px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: #1d1914; border: 1px dashed #3a3229; color: var(--side-muted); font-size: 14.5px; }
.home-dica .i { color: var(--accent); margin-top: 2px; }
.home-dica b { color: var(--side-text); }

/* ---------- painel da barbearia: agenda ---------- */
.agenda-barra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.agenda-barra .nav-dia { display: flex; align-items: center; gap: 4px; }
.agenda-barra input[type=date] { min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); }
.agenda-barra .esp { flex: 1; }
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.dia-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.dia-btn small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; font-weight: 600; letter-spacing: .03em; }
.dia-btn b { font-size: 18px; font-weight: 700; }
.dia-btn em { font-style: normal; font-size: 11.5px; color: var(--muted); min-height: 17px; }
.dia-btn.hoje b { color: var(--accent-txt); }
.dia-btn.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.dia-btn.on small, .dia-btn.on em, .dia-btn.on b { color: var(--bg); }
.dia-btn.fechado { opacity: .5; }
.resumo-dia { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); margin-bottom: 12px; }
.resumo-dia span { display: inline-flex; align-items: center; gap: 6px; }
.resumo-dia b { color: var(--text); }

.cal-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); max-height: calc(100dvh - 290px); min-height: 360px; overscroll-behavior: contain; }
.cal { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(180px, 1fr)); min-width: min-content; }
.cal-cab { position: sticky; top: 0; z-index: 6; height: 54px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; padding: 0 12px; font-weight: 600; font-size: 14px; min-width: 0; }
.cal-cab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.cal-cab .avatar { flex: none; }
.cal-cab small { color: var(--muted); font-weight: 500; font-size: 12px; }
.cal-horas { position: sticky; left: 0; z-index: 7; background: var(--surface); border-right: 1px solid var(--line); }
.cal-horas .cal-cab { z-index: 8; }
.cal-horas-corpo { position: relative; }
.cal-horas-corpo span { position: absolute; right: 8px; font-size: 11px; color: var(--muted); transform: translateY(3px); font-variant-numeric: tabular-nums; }
.cal-col { border-left: 1px solid var(--line); min-width: 0; }
.cal-col:nth-child(2) { border-left: 0; }
.cal-corpo { position: relative; cursor: copy; }
.cal-linha { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; }
.cal-linha.meia { border-top-style: dashed; opacity: .55; }
.cal-fechado { position: absolute; left: 0; right: 0; pointer-events: none; background: repeating-linear-gradient(135deg, var(--surface-3) 0 5px, transparent 5px 11px); }
.cal-bloq { position: absolute; left: 4px; right: 4px; z-index: 1; border-radius: 8px; border: 1px dashed var(--line-2); background: repeating-linear-gradient(135deg, var(--neutro-bg) 0 7px, var(--surface-2) 7px 14px); color: var(--text-2); font-size: 12px; font-weight: 600; padding: 4px 8px; cursor: pointer; overflow: hidden; display: flex; gap: 6px; align-items: flex-start; }
.cal-bloq .i { width: 13px; height: 13px; margin-top: 2px; }
.cal-ag { --c: var(--accent); position: absolute; left: 4px; right: 4px; z-index: 2; border-radius: 8px; padding: 4px 8px; font-size: 12px; line-height: 1.3; overflow: hidden; cursor: pointer; background: color-mix(in srgb, var(--c) 15%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-left: 3px solid var(--c); color: var(--text); transition: box-shadow .12s; }
.cal-ag:hover { box-shadow: 0 2px 10px rgba(0,0,0,.12); z-index: 4; }
.cal-ag b { display: flex; align-items: center; gap: 4px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ag b .i { width: 12px; height: 12px; flex: none; }
.cal-ag span { display: block; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ag.curto { padding-top: 2px; display: flex; gap: 6px; align-items: center; }
.cal-ag.curto span { display: none; }
.cal-ag.st-concluido { background: var(--surface-2); border-color: var(--line); border-left-color: var(--ok); color: var(--text-2); }
.cal-ag.st-concluido b .i { color: var(--ok); }
.cal-ag.st-faltou { background: var(--ruim-bg); border-color: transparent; border-left-color: var(--ruim); }
.cal-ag.novo { animation: pisca 1.2s ease-in-out 3; }
@keyframes pisca { 50% { box-shadow: 0 0 0 3px var(--accent); } }
.cal-agora { position: absolute; left: 0; right: 0; z-index: 3; border-top: 2px solid var(--ruim); pointer-events: none; }
.cal-agora::before { content: ''; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ruim); }
.cal-livre-dica { position: absolute; left: 4px; right: 4px; z-index: 1; border-radius: 8px; border: 1.5px dashed var(--accent); background: var(--accent-soft); pointer-events: none; display: none; font-size: 12px; font-weight: 600; color: var(--accent-txt); padding: 3px 8px; }
@media (max-width: 860px) {
  .cal { grid-template-columns: 48px repeat(var(--cols), minmax(150px, 1fr)); }
  .cal-wrap { max-height: calc(100dvh - 330px); }
  .semana { gap: 4px; }
  .dia-btn { padding: 6px 2px; }
  .dia-btn b { font-size: 16px; }
}
.cal.um .cal-col { min-width: 0; }

/* lista de agendamentos */
.ag-lista { display: flex; flex-direction: column; gap: 8px; }
.ag-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; width: 100%; border-left: 4px solid var(--c, var(--accent)); }
.ag-item:hover { border-color: var(--line-2); }
.ag-hora b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.ag-hora small { color: var(--muted); font-size: 12px; }
.ag-txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-txt small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-item.st-cancelado { opacity: .55; }
.ag-item.st-cancelado .ag-txt b { text-decoration: line-through; }
.ag-fim { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ag-fim b { font-variant-numeric: tabular-nums; font-size: 14px; }

/* detalhe do agendamento */
.det-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.det-topo > div { flex: 1; min-width: 0; }
.det-topo h4 { font-size: 18px; }
.det-topo a { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.det-servicos { display: flex; flex-direction: column; gap: 4px; }
.det-servicos div { display: flex; justify-content: space-between; gap: 10px; }
.det-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 12px; border-top: 1px dashed var(--line-2); font-size: 15px; }
.det-total b { font-size: 22px; font-variant-numeric: tabular-nums; }
.det-nota { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; margin-top: 12px; }
.det-nota .i { color: var(--accent-txt); margin-top: 2px; }

/* seletores dentro dos formulários */
.opcoes-grade { display: flex; flex-wrap: wrap; gap: 6px; }
.op-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; }
.op-btn small { color: var(--muted); font-size: 12px; }
.op-btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.op-btn.on small { color: inherit; opacity: .75; }
.op-btn:disabled { opacity: .4; cursor: not-allowed; }
.horas-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.horas-grade .op-btn { justify-content: center; padding: 0 4px; font-variant-numeric: tabular-nums; }
.itens-conta { display: flex; flex-direction: column; gap: 8px; }
.item-conta { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.item-conta span { flex: 1; min-width: 0; }
.item-conta b { font-variant-numeric: tabular-nums; }
.qtd { display: inline-flex; align-items: center; gap: 4px; }
.qtd button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; }
.qtd button .i { width: 14px; height: 14px; }
.qtd span { min-width: 20px; text-align: center; font-weight: 600; }
.total-grande { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: var(--side-bg); color: var(--side-text); margin-top: 16px; }
.total-grande b { font-size: 26px; color: color-mix(in srgb, var(--accent) 75%, #fff); font-variant-numeric: tabular-nums; }

/* catálogo */
.cat-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: border-color .15s, box-shadow .15s; }
.cat-card:hover { border-color: var(--line-2); box-shadow: var(--sombra); }
.cat-foto { aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; position: relative; }
.cat-foto img { width: 100%; height: 100%; object-fit: cover; }
.cat-foto .badge { position: absolute; top: 10px; left: 10px; }
.cat-txt { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cat-txt b { font-size: 15px; }
.cat-txt p { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-rodape { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.cat-rodape b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cat-rodape small { color: var(--muted); font-size: 12.5px; display: inline-flex; gap: 4px; align-items: center; }
.cat-rodape small .i { width: 14px; height: 14px; }
.cat-card.inativo { opacity: .55; }
@media (max-width: 640px) { .cat-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cat-txt { padding: 10px; } .cat-txt p { display: none; } }

.foto-campo { display: flex; gap: 14px; align-items: center; }
.foto-prev { width: 104px; height: 78px; border-radius: 12px; overflow: hidden; background: var(--surface-3); flex: none; border: 1px solid var(--line); }
.foto-prev img { width: 100%; height: 100%; object-fit: cover; }
.foto-prev.redonda { width: 78px; height: 78px; border-radius: 50%; }
.foto-campo .acoes { flex-direction: column; align-items: flex-start; }
.foto-campo input[type=file] { display: none; }

/* equipe */
.equipe-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.membro { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; text-align: left; }
.membro:hover { border-color: var(--line-2); box-shadow: var(--sombra); }
.membro-topo { display: flex; gap: 12px; align-items: center; }
.membro-topo div { flex: 1; min-width: 0; }
.membro-topo b { display: block; font-size: 15.5px; }
.membro-topo small { color: var(--muted); font-size: 13px; }
.membro-dados { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; }
.membro-dados span { display: flex; flex-direction: column; color: var(--muted); }
.membro-dados b { color: var(--text); font-weight: 600; }
.membro.inativo { opacity: .55; }

/* editor de horário */
.hor-ed { display: flex; flex-direction: column; gap: 6px; }
.hor-linha { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.hor-dia { display: flex; align-items: center; gap: 8px; width: 70px; font-weight: 600; text-transform: capitalize; cursor: pointer; }
.hor-dia input { width: 18px; height: 18px; accent-color: var(--accent); }
.hor-campos { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; }
.hor-campos input { min-height: 34px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; }
.hor-sep { color: var(--muted); font-size: 13px; }
.hor-pausa { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.hor-fechado-txt { display: none; color: var(--muted); font-size: 13px; }
.hor-linha.fechado .hor-campos { display: none; }
.hor-linha.fechado .hor-fechado-txt { display: block; }

/* cores */
.cores { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cor-op { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); padding: 0; }
.cor-op.on { box-shadow: 0 0 0 2px var(--text); }
.cores input[type=color] { width: 40px; height: 36px; border: 1px solid var(--line-2); border-radius: 10px; padding: 2px; background: var(--surface); }

.link-caixa { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.link-caixa code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--text-2); }
.salvar-barra { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 0; margin-top: 14px; background: linear-gradient(transparent, var(--bg) 30%); }
@media (max-width: 860px) { .salvar-barra { bottom: calc(66px + env(safe-area-inset-bottom)); } .salvar-barra .btn { flex: 1; } }

.mais-lista { display: flex; flex-direction: column; }
.mais-lista a, .mais-lista button { display: flex; align-items: center; gap: 14px; padding: 16px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; color: var(--text); font-size: 15.5px; font-weight: 500; text-align: left; width: 100%; }
.mais-lista .i:last-child { margin-left: auto; color: var(--muted); }

/* ---------- admin ---------- */
.bb-linha { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) 120px 150px 40px; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.bb-linha:hover { background: var(--surface-2); }
.bb-linha:last-child { border-bottom: 0; }
.bb-nome { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bb-nome div { min-width: 0; }
.bb-nome b, .bb-col b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-nome small, .bb-col small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; overflow: hidden; font-weight: 800; font-size: 15px; }
.bb-logo img { width: 100%; height: 100%; object-fit: cover; }
.bb-col { min-width: 0; font-size: 14px; }
@media (max-width: 1000px) {
  .bb-linha { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .bb-linha .bb-col.so-largo { display: none; }
}
.atencao-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.atencao-item:last-child { border-bottom: 0; }
.atencao-item > div { flex: 1; min-width: 180px; }
.atencao-item b { display: block; }
.atencao-item small { color: var(--muted); font-size: 13px; }
.plano-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.plano { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.plano h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.plano .preco { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plano .preco small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plano ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.plano li { display: flex; gap: 8px; align-items: center; }
.plano li .i { width: 16px; height: 16px; color: var(--ok); }
.plano .acoes { margin-top: auto; padding-top: 6px; }
.metricas-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metricas-mini div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.metricas-mini small { display: block; color: var(--muted); font-size: 12px; }
.metricas-mini b { font-size: 17px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .metricas-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mes-nav { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.mes-nav span { min-width: 150px; text-align: center; }

/* ============================================================
   Cliente — chat de agendamento
   ============================================================ */
body.tela-cliente { background: #0b0a08; color: #f2ede5; }
.tela-cliente {
  --c-bg: #110f0c; --c-bolha: #221e19; --c-card: #1a1713; --c-card-2: #241f1a; --c-line: #2e2822; --c-text: #f2ede5; --c-muted: #9d9488;
  --c-acc-txt: color-mix(in srgb, var(--accent) 62%, #fff);
}
.chat-palco { min-height: 100dvh; display: flex; justify-content: center; background: radial-gradient(900px 500px at 50% -15%, color-mix(in srgb, var(--accent) 24%, transparent), transparent), #0b0a08; }
.chat { width: 100%; max-width: 560px; height: 100dvh; display: flex; flex-direction: column; background: var(--c-bg); position: relative; }
@media (min-width: 600px) { .chat { border-left: 1px solid var(--c-line); border-right: 1px solid var(--c-line); box-shadow: 0 0 80px rgba(0,0,0,.5); } }
.chat-cab { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--c-line); background: rgba(17, 15, 12, .94); backdrop-filter: blur(8px); z-index: 5; }
.chat-logo { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; position: relative; }
.chat-logo img { width: 100%; height: 100%; object-fit: cover; }
.chat-cab-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-cab-txt b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-cab-txt span { font-size: 12.5px; color: var(--c-muted); display: flex; align-items: center; gap: 6px; }
.chat-cab-txt span i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chat-cab-txt span i.fechado { background: #9d9488; }
.chat-cab .btn-icone { color: var(--c-text); width: 42px; height: 42px; }
.chat-cab .btn-icone:hover { background: var(--c-card-2); }
.chat-msgs { position: relative; flex: 1; overflow-y: auto; padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.chat-msgs::-webkit-scrollbar { width: 0; }
.chat-dia { align-self: center; font-size: 12px; color: var(--c-muted); background: var(--c-card); padding: 4px 12px; border-radius: 99px; margin: 4px 0 8px; }
.msg { display: flex; animation: entra .22s ease-out; }
.msg.eu { justify-content: flex-end; }
.msg + .msg.eu, .msg.eu + .msg.bot { margin-top: 6px; }
.bolha { max-width: 84%; padding: 9px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.bot .bolha { background: var(--c-bolha); color: var(--c-text); border-top-left-radius: 6px; }
.msg.eu .bolha { background: var(--accent); color: var(--accent-ink); border-top-right-radius: 6px; font-weight: 500; }
.msg.bot .bolha b { color: #fff; }
.msg.com-widget .bolha { background: transparent; padding: 0; max-width: 100%; width: 100%; border-radius: 0; }
.digitando .bolha { display: flex; gap: 4px; padding: 14px 16px; }
.digitando .bolha span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-muted); animation: pula 1s infinite; }
.digitando .bolha span:nth-child(2) { animation-delay: .15s; }
.digitando .bolha span:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-rapidas { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px 4px; scrollbar-width: none; flex: none; }
.chat-rapidas::-webkit-scrollbar { display: none; }
.chat-rapidas:empty { display: none; }
.rapida { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--c-acc-txt); font-weight: 600; font-size: 14px; white-space: nowrap; }
.rapida:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.rapida .i { width: 16px; height: 16px; }
.chat-entrada { display: flex; gap: 8px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); flex: none; }
.chat-entrada input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-text); font-size: 16px; }
.chat-entrada input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.chat-entrada input::placeholder { color: var(--c-muted); }
.chat-enviar { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.chat-enviar .i { width: 20px; height: 20px; margin-left: -2px; }

/* widgets do chat */
.widget { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 18px; padding: 10px; max-width: 100%; }
.widget.respondido { opacity: .5; pointer-events: none; }
.widget.respondido .w-op:not(.escolhida) { opacity: .6; }
.widget .escolhida { outline: 2px solid var(--accent); outline-offset: -2px; }
.w-titulo { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 700; margin: 6px 6px 8px; }
.w-menu { display: flex; flex-direction: column; gap: 6px; padding: 6px; }
.w-menu-op { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--c-line); background: var(--c-card-2); text-align: left; color: var(--c-text); width: 100%; }
.w-menu-op:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.w-menu-op .ic-caixa { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--c-acc-txt); flex: none; }
.w-menu-op div { flex: 1; min-width: 0; }
.w-menu-op b { display: block; font-size: 15px; }
.w-menu-op small { color: var(--c-muted); font-size: 13px; }
.w-menu-op > .i:last-child { color: var(--c-muted); }
.w-menu-op.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.w-menu-op.pri .ic-caixa { background: rgba(0, 0, 0, .12); color: inherit; }
.w-menu-op.pri small, .w-menu-op.pri > .i:last-child { color: inherit; opacity: .75; }

.w-lista { display: flex; flex-direction: column; gap: 6px; }
.w-sv { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--c-line); background: var(--c-card-2); text-align: left; color: var(--c-text); width: 100%; }
.w-sv-foto { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; }
.w-sv-foto img { width: 100%; height: 100%; object-fit: cover; }
.w-sv-txt b { display: block; font-size: 15px; }
.w-sv-txt small { display: block; color: var(--c-muted); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-sv-fim { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.w-sv-fim b { font-variant-numeric: tabular-nums; }
.w-sv-fim small { color: var(--c-muted); font-size: 12px; }
.w-marca { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c-line); display: grid; place-items: center; }
.w-marca .i { width: 14px; height: 14px; opacity: 0; }
.w-sv.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--c-card-2)); }
.w-sv.on .w-marca { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.w-sv.on .w-marca .i { opacity: 1; }
.w-rodape { padding: 10px 2px 2px; }
.w-continuar { width: 100%; min-height: 50px; border-radius: 14px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15.5px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.w-continuar:disabled { background: var(--c-card-2); color: var(--c-muted); cursor: default; }

.carrossel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; scrollbar-width: none; }
.carrossel::-webkit-scrollbar { display: none; }
.cc { flex: 0 0 74%; max-width: 250px; scroll-snap-align: start; background: var(--c-card-2); border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: var(--c-text); text-align: left; padding: 0; }
.cc-foto { aspect-ratio: 4 / 3; overflow: hidden; }
.cc-foto img { width: 100%; height: 100%; object-fit: cover; }
.cc-txt { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cc-txt b { font-size: 15px; }
.cc-txt p { font-size: 13px; color: var(--c-muted); line-height: 1.4; }
.cc-preco { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.cc-preco b { font-size: 17px; font-variant-numeric: tabular-nums; color: var(--c-acc-txt); }
.cc-preco small { color: var(--c-muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.cc-preco small .i { width: 14px; height: 14px; }
.cc-btn .i { width: 16px; height: 16px; }
.w-botoes .w-op .i, .w-link .i, .btn-chat .i { width: 17px; height: 17px; }
button.nav-item { border: 0; background: none; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.cc-btn:disabled { cursor: not-allowed; }
.cc-btn { margin: 0 12px 12px; min-height: 40px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: transparent; color: var(--c-acc-txt); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cc-btn:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }

.w-barbeiros .w-op { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 16px; border: 1px solid var(--c-line); background: var(--c-card-2); color: var(--c-text); text-align: center; }
.w-barbeiros .w-op:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.w-barbeiros .w-op b { font-size: 14.5px; }
.w-barbeiros .w-op small { font-size: 12px; color: var(--c-muted); line-height: 1.3; }
.w-barbeiros .w-op small em { font-style: normal; color: var(--c-acc-txt); font-weight: 600; display: block; }
.w-barbeiros .qualquer .avatar { background: var(--c-card); color: var(--c-acc-txt); border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); }

.w-dias .trilho { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px; scrollbar-width: none; }
.w-dias .trilho::-webkit-scrollbar { display: none; }
.w-dia { flex: 0 0 68px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--c-line); background: var(--c-card-2); color: var(--c-text); scroll-snap-align: start; }
.w-dia small { font-size: 11.5px; text-transform: uppercase; color: var(--c-muted); font-weight: 700; letter-spacing: .03em; }
.w-dia b { font-size: 21px; line-height: 1.15; }
.w-dia em { font-style: normal; font-size: 11px; color: var(--c-acc-txt); font-weight: 600; margin-top: 2px; white-space: nowrap; }
.w-dia:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.w-dia:disabled { opacity: .38; cursor: not-allowed; }
.w-dia:disabled em { color: var(--c-muted); }
.w-extra { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 2px 2px; }
.w-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--c-line); background: transparent; color: var(--c-text); font-size: 13.5px; font-weight: 500; }
.w-link:hover { border-color: var(--c-muted); }
.w-link .i { width: 15px; height: 15px; }
.w-mes-cab { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; font-weight: 700; }
.w-mes-cab .btn-icone { color: var(--c-text); width: 34px; height: 34px; }
.w-mes-cab .btn-icone:disabled { opacity: .3; }
.w-mes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.w-mes .sem { text-align: center; font-size: 11px; color: var(--c-muted); font-weight: 700; text-transform: uppercase; padding-bottom: 4px; }
.w-mes .w-op { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: var(--c-card-2); color: var(--c-text); font-weight: 600; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; }
.w-mes .w-op i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.w-mes .w-op:disabled { background: transparent; color: #5b544b; cursor: default; }
.w-mes .w-op:disabled i { display: none; }
.w-mes .w-op:not(:disabled):hover { border-color: var(--accent); }
.w-mes .vazio-cel { visibility: hidden; }

.w-horas h5 { margin: 6px 4px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); display: flex; align-items: center; gap: 6px; }
.w-horas h5:not(:first-child) { margin-top: 14px; }
.w-horas-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.w-hora { min-height: 44px; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-card-2); color: var(--c-text); font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; }
.w-hora:hover { border-color: var(--accent); }

.w-botoes { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px; }
.w-botoes .w-op { flex: 1; min-width: 130px; min-height: 46px; border-radius: 14px; border: 1px solid var(--c-line); background: var(--c-card-2); color: var(--c-text); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; }
.w-botoes .w-op.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.w-botoes .w-op.perigo { border-color: rgba(248, 113, 113, .5); color: #fca5a5; }

.ticket { background: var(--c-card-2); border-radius: 16px; overflow: hidden; border: 1px solid var(--c-line); }
.ticket-topo { display: flex; gap: 14px; align-items: center; padding: 14px; background: color-mix(in srgb, var(--accent) 16%, var(--c-card-2)); }
.ticket-data { width: 58px; height: 62px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.ticket-data small { font-size: 11px; font-weight: 700; text-transform: uppercase; opacity: .8; }
.ticket-data b { font-size: 24px; line-height: 1.05; }
.ticket-topo div:last-child { min-width: 0; }
.ticket-topo b.q { display: block; font-size: 16px; color: #fff; }
.ticket-topo span { color: var(--c-muted); font-size: 14px; }
.ticket-linhas { padding: 6px 14px; }
.ticket-linhas div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--c-line); font-size: 14.5px; }
.ticket-linhas div:last-child { border-bottom: 0; }
.ticket-linhas span { color: var(--c-muted); flex: none; }
.ticket-linhas b { text-align: right; font-weight: 600; min-width: 0; }
.ticket-linhas .tot b { font-size: 17px; color: var(--c-acc-txt); }
.ticket-acoes { display: flex; gap: 8px; padding: 0 14px 14px; flex-wrap: wrap; }
.ticket-acoes > * { flex: 1; min-width: 130px; }
.widget .ticket + .w-botoes { margin-top: 10px; }
.btn-chat { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; white-space: nowrap; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-text); font-weight: 600; font-size: 14px; text-decoration: none; }
.btn-chat:hover { border-color: var(--c-muted); }
.btn-chat.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-chat.verde { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }

.w-info { display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.w-info-linha { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.w-info-linha > .i { color: var(--c-acc-txt); margin-top: 2px; }
.w-horario { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; }
.w-horario span:nth-child(odd) { color: var(--c-muted); }
.w-horario .hoje { color: #fff !important; font-weight: 700; }

.meu-ag { background: var(--c-card-2); border: 1px solid var(--c-line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.meu-ag + .meu-ag { margin-top: 8px; }
.meu-ag-topo { display: flex; gap: 12px; align-items: center; }
.meu-ag-topo div { min-width: 0; flex: 1; }
.meu-ag-topo b { display: block; }
.meu-ag-topo small { color: var(--c-muted); font-size: 13px; }
.meu-ag .w-botoes .w-op { min-height: 40px; min-width: 0; }

/* folha do catálogo (cliente) */
.folha-fundo { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); display: flex; justify-content: center; align-items: flex-end; padding-top: env(safe-area-inset-top); opacity: 0; transition: opacity .2s; }
.folha-fundo.aberto { opacity: 1; }
.folha { width: 100%; max-width: 560px; height: min(90dvh, calc(100dvh - env(safe-area-inset-top) - 8px)); background: #15120f; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transform: translateY(30px); transition: transform .22s; color: var(--c-text); border: 1px solid var(--c-line); border-bottom: 0; }
.folha-fundo.aberto .folha { transform: none; }
.folha-cab { padding: 10px 14px 0; }
.folha-puxador { width: 42px; height: 5px; border-radius: 99px; background: #3a332b; margin: 0 auto 10px; }
.folha-cab-l { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.folha-cab-l h3 { font-size: 18px; }
.folha-cab .btn-icone { color: var(--c-text); }
.folha-cab .btn-icone:hover { background: var(--c-card-2); }
.folha-abas { display: flex; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.folha-abas button { flex: 1; min-height: 40px; border-radius: 12px; border: 1px solid var(--c-line); background: transparent; color: var(--c-muted); font-weight: 600; font-size: 14px; }
.folha-abas button.on { background: var(--c-card-2); color: #fff; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.folha-corpo { flex: 1; overflow-y: auto; padding: 14px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.folha-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.folha-grade .cc { max-width: none; flex: none; }
.folha-equipe { display: flex; flex-direction: column; gap: 10px; }
.folha-membro { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--c-card-2); border: 1px solid var(--c-line); }
.folha-membro div { flex: 1; min-width: 0; }
.folha-membro b { display: block; font-size: 15.5px; }
.folha-membro small { color: var(--c-muted); font-size: 13px; }
.chat-aviso { margin: 6px 0; padding: 10px 14px; border-radius: 14px; background: rgba(250, 204, 21, .1); color: #fde68a; font-size: 14px; display: flex; gap: 10px; }

/* planos e preços na página inicial */
.home-planos { margin-top: 40px; }
.home-planos h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.home-planos-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.home-plano { background: #1d1914; border: 1px solid #2c261f; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.home-plano.destaque { border-color: var(--accent); }
.hp-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hp-topo h3 { color: #fff; margin: 0; font-size: 18px; }
.hp-preco b { color: #fff; font-size: 30px; letter-spacing: -.02em; }
.hp-preco small { color: var(--side-muted); margin-left: 3px; }
.home-plano ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.home-plano li { display: flex; gap: 8px; align-items: flex-start; color: var(--side-text); font-size: 14px; }
.home-plano li .i { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }
.home-plano li.fora { color: #6f675c; }
.home-plano li.fora .i { color: #4d463d; }
