/* ==========================================================
   Agenda para salões — estilos de todo o sistema (tema claro, visual moderno)
   Fontes hospedadas no site (OFL): Plus Jakarta Sans (títulos e texto) e Instrument Serif itálico
   (uma palavra de destaque nos títulos, classe .accent). Cores: tinta quase preta, fundo claro,
   blocos em tons pastel e UMA cor de destaque (--brand). Na página de cada salão, o layout troca --brand.
   ========================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbf9fa;
  --surface: #ffffff;
  --surface-soft: #f4f1f5;
  --ink: #17131c;
  --ink-soft: #4a4152;
  --muted: #6e6577;
  --line: #ece6ee;
  --line-strong: #ddd4e0;
  /* Texto de exemplo dos campos (placeholder): bem mais claro que o digitado, para não parecer preenchido */
  --placeholder: #b7aebd;
  --brand: #c2255c;
  --brand-dark: #9c1c4b;
  --brand-soft: #f9d9e5;
  /* Tons pastel dos blocos (fundo e texto) */
  --lilac: #eee8ff; --lilac-ink: #4c33b8;
  --peach: #ffe8dc; --peach-ink: #a3461f;
  --mint: #e3f5ec; --mint-ink: #1f6b48;
  --butter: #fff4cc; --butter-ink: #7a5a00;
  --dark-soft: #2a2330;
  --gold: #f2a9c4;
  --success: #1f7a52;
  --success-soft: #e3f5ec;
  --warning: #8a6100;
  --warning-soft: #fff4cc;
  --danger: #c0392b;
  --danger-soft: #fce8e5;
  --radius: 24px;
  --radius-small: 14px;
  --shadow: 0 1px 2px rgba(23, 19, 28, 0.04), 0 18px 40px -30px rgba(23, 19, 28, 0.35);
  --shadow-strong: 0 30px 60px -30px rgba(23, 19, 28, 0.5);
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
/* Uma palavra de destaque nos títulos: serifada itálica na cor de destaque */
em.accent, .accent, .accent-italic { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--brand); }
small, .muted { color: var(--muted); }
.muted { font-size: 0.92rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.2em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fill-in { background: #fff3b0; padding: 0 4px; border-radius: 4px; }
code { background: var(--surface-soft); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

/* ---------- Botões (pílula) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 0.95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--brand); color: #fff; transition: background 0.15s, transform 0.1s, border-color 0.15s;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #2f2735; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-soft { background: var(--surface-soft); color: var(--ink); }
.btn-soft:hover { background: var(--line); color: var(--ink); }
.btn-success { background: var(--success); }
.btn-success:hover { background: #17603f; }
.btn-danger { background: transparent; color: var(--danger); border-color: #efc4be; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-whatsapp { background: #25d366; color: #0b3d20; }
.btn-whatsapp:hover { background: #1fb457; color: #0b3d20; }
.btn-small { min-height: 38px; padding: 7px 16px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.link-button { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; align-content: start; }
.field label, .field-label { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.field small { font-size: 0.82rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="time"],
input[type="number"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 15px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: 500 1rem/1.4 var(--font-body);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 90px; resize: vertical; }
/* "opacity: 1": o Firefox deixa o placeholder transparente por conta própria */
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23, 19, 28, 0.08); }
/* /vibeadm → Backups: tabela rola para o lado no celular; "Restaurar…" abre a confirmação embaixo */
.table-scroll { overflow-x: auto; }
.restore-box { display: inline-block; vertical-align: top; }
.restore-box summary { list-style: none; }
.restore-box summary::-webkit-details-marker { display: none; }
.restore-box[open] form { margin-top: 8px; padding: 12px; border: 1px solid #efc4be; border-radius: 12px; background: var(--danger-soft); width: 300px; max-width: 80vw; }
/* Campo de senha com o olhinho (criado pelo common.js) */
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--ink); background: var(--line); }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
input[type="color"] { width: 48px; height: 48px; padding: 4px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; cursor: pointer; margin-bottom: 12px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
/* Campo com a unidade do lado ("21 dias") */
.input-suffix { display: flex; align-items: center; gap: 10px; }
.input-suffix input { max-width: 120px; }
.input-suffix span { color: var(--muted); font-weight: 600; }
/* Caixinhas em forma de etiqueta (quem faz o serviço) */
.service-professionals { border: 0; padding: 0; margin: 0 0 16px; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.check-chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.check-chip:has(input:checked) { border-color: var(--ink); background: var(--surface-soft); }

/* Busca da cliente no agendamento pelo painel (app.js, data-customer-picker) */
.customer-search { position: relative; }
.form-grid input[readonly] { background: var(--surface-soft); }
.customer-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-small); box-shadow: var(--shadow-strong); max-height: 330px; overflow-y: auto; overscroll-behavior: contain; }
.customer-results li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; min-width: 0; }
.customer-results li:hover, .customer-results li[aria-selected="true"] { background: var(--surface-soft); }
.customer-results .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 0.76rem; }
.customer-results .result-text { display: grid; min-width: 0; }
.customer-results .result-text b, .customer-results .result-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-results .result-text small { color: var(--muted); }
.customer-results .result-new { color: var(--brand); font-weight: 700; }
.customer-results .result-full { color: var(--butter-ink); background: var(--butter); cursor: default; font-size: 0.88rem; font-weight: 600; }
.customer-status { color: var(--muted); }
.customer-status.is-chosen { color: var(--mint-ink); font-weight: 700; }
.customer-status.is-chosen .link-button { color: var(--mint-ink); font-size: inherit; }
.customer-status.is-new { color: var(--ink-soft); font-weight: 600; }
.customer-status.is-warning { color: var(--butter-ink); font-weight: 700; }
.same-name .check { margin: 8px 0 0; color: var(--ink); font-weight: 600; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
}
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* ---------- Avisos ---------- */
.flash { padding: 14px 18px; border-radius: 18px; margin-bottom: 18px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.flash-notice { background: var(--mint); color: #155c3c; }
.flash-error { background: var(--danger-soft); color: #8e2a1f; }
.flash-warning { background: var(--butter); color: var(--butter-ink); }
.flash ul { margin: 6px 0 0; padding-left: 18px; font-weight: 400; }

/* ---------- Cartões e blocos ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
/* Cartão que abre e fecha pelo título (Configurações: app.js, data-collapsible-cards) */
.card-head.is-toggle { cursor: pointer; user-select: none; }
.card-head.is-toggle > h2 { flex: 1; min-width: 0; }
.card-head.is-toggle::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; margin: 0 4px 4px; flex: none; }
.card.is-collapsed .card-head.is-toggle::after { transform: rotate(-45deg); margin-bottom: 0; }
.card-head.is-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 8px; }
.card.is-collapsed > :not(.card-head) { display: none; }
.card.is-collapsed > .card-head { margin-bottom: 0; }
.rename-category summary { list-style: none; cursor: pointer; }
.rename-category summary::-webkit-details-marker { display: none; }
.rename-category[open] summary { display: none; }
.rename-category .inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.rename-category .inline-form input[name="new_name"] { width: 200px; max-width: 100%; }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty .empty-icon { font-size: 2rem; display: block; margin-bottom: 6px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; background: var(--surface-soft); color: var(--ink-soft); }
.badge-pending { background: var(--butter); color: var(--butter-ink); }
.badge-confirmed { background: var(--lilac); color: var(--lilac-ink); }
.badge-completed { background: var(--mint); color: var(--mint-ink); }
.badge-canceled { background: var(--surface-soft); color: var(--muted); text-decoration: line-through; }
.badge-no_show { background: var(--danger-soft); color: var(--danger); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

/* Lista simples (clientes, serviços, bloqueios) */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.list > li:last-child { border-bottom: 0; }
/* Venda de produto desfeita (Estoque): apagada, com o valor riscado */
.list > li.is-canceled-sale { opacity: 0.6; }
.list-main { flex: 1; min-width: 0; }
.list-main b, .list-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main small { display: block; }
.list a.list-link { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.list a.list-link:hover b { color: var(--brand); }
.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--surface-soft); color: var(--ink); font: 800 0.9rem/1 var(--font-body); letter-spacing: -0.02em; }

/* Tabelas */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
/* Importar clientes: prévia das colunas (a coluna que não entra fica apagada) e o aviso do limite do plano */
.import-table th { vertical-align: bottom; min-width: 150px; }
.import-table th small { display: block; font-weight: 600; margin-bottom: 4px; }
.import-table th select { width: 100%; }
.import-table td { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-table td.is-ignored { color: var(--muted); opacity: 0.55; }
.import-limit { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.import-help { margin-top: 12px; }
.import-help > summary { cursor: pointer; font-weight: 700; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th { text-align: left; font-weight: 700; color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
/* /vibeadm → Limites */
.limits-table td { vertical-align: top; }
.limits-table td:first-child { min-width: 200px; }
.limits-table .limits-value { font-weight: 700; white-space: nowrap; color: var(--ink); }
.limits-table td:last-child { min-width: 260px; font-size: 0.9rem; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Abas e botões segmentados */
.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.segmented a, .segmented button { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.88rem; border: 0; background: none; cursor: pointer; font-family: inherit; }
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current="page"], .segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ==========================================================
   Site do sistema (apresentação, cadastro, login)
   ========================================================== */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 249, 250, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.15rem/1 var(--font-display); letter-spacing: -0.03em; }
.logo:hover { color: var(--ink); }
.logo svg { width: 34px; height: 34px; flex: none; }
.site-links { display: flex; gap: 26px; font-size: 0.95rem; font-weight: 600; }
.site-links a { text-decoration: none; }
@media (max-width: 900px) { .site-links { display: none; } }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav .btn { white-space: nowrap; }
.site-nav .nav-link { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 10px 14px; }
.site-nav .nav-link:hover { color: var(--brand); }
@media (max-width: 560px) { .site-nav .hide-mobile { display: none; } .site-nav .btn { padding: 8px 14px; min-height: 40px; } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
.narrow { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: 0.4em; }

/* Página inicial: hero */
.lp-hero { padding: 48px 0 32px; }
.lp-hero-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .lp-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; }
.pill-tag b { padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.75rem; }
.lp-hero h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); line-height: 0.98; letter-spacing: -0.045em; margin: 22px 0 22px; }
/* Linha menor dentro do <h1> com a palavra-chave (SEO); a frase grande continua sendo o destaque */
.h1-kicker { display: block; margin-bottom: 14px; font: 700 clamp(0.95rem, 2.2vw, 1.1rem)/1.35 var(--font-body); letter-spacing: 0; color: var(--ink-soft); }
/* Hero sem o celular (páginas por profissão, Sobre nós) */
.lp-hero.is-simple { padding-top: 32px; }
.lp-hero.is-simple h1 { max-width: 14em; }
.lp-hero.is-simple .lp-lead { max-width: 38em; }
.lp-lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); max-width: 31em; margin: 0; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.lp-actions .btn { min-height: 56px; padding: 15px 28px; font-size: 1.02rem; }
.lp-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.lp-proof span::before { content: "✓"; color: var(--success); margin-right: 6px; font-weight: 800; }

/* Composição do hero: celular com o agendamento + cartões flutuando */
.lp-visual { position: relative; height: 600px; max-width: 560px; margin: 0 auto; width: 100%; }
.lp-visual-bg { position: absolute; inset: 30px 20px 0 60px; border-radius: 40px; background: var(--lilac); }
.lp-phone { position: absolute; left: 50%; top: 0; transform: translateX(-42%); width: 290px; height: 590px; border-radius: 46px; background: var(--ink); padding: 11px; box-shadow: var(--shadow-strong); }
.lp-phone-screen { height: 100%; border-radius: 36px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.lp-phone-head { padding: 34px 20px 14px; }
.lp-phone-head small { display: block; font-weight: 600; font-size: 0.75rem; }
.lp-phone-head b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.lp-days { display: flex; gap: 8px; padding: 0 20px 14px; }
.lp-days span { flex: 1; padding: 9px 0; border-radius: 16px; background: var(--surface-soft); text-align: center; font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.lp-days span small { display: block; font-size: 0.68rem; font-weight: 600; color: var(--muted); }
.lp-days span.is-on { background: var(--ink); color: #fff; }
.lp-days span.is-on small { color: rgba(255, 255, 255, 0.7); }
.lp-times { padding: 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-times span { padding: 10px 0; border-radius: 12px; border: 1px solid var(--line); text-align: center; font-size: 0.8rem; font-weight: 700; }
.lp-times span.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.lp-times span.is-off { color: #b8afbe; text-decoration: line-through; }
.lp-service { margin: 16px 20px 0; padding: 13px 14px; border-radius: 18px; background: var(--surface-soft); display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.lp-service b { display: block; }
.lp-phone-cta { margin: auto 20px 22px; padding: 14px 0; border-radius: 999px; background: var(--ink); color: #fff; text-align: center; font-size: 0.86rem; font-weight: 700; }
.lp-float { position: absolute; border-radius: 22px; box-shadow: 0 22px 50px -24px rgba(23, 19, 28, 0.45); }
.lp-notify { left: 0; top: 120px; width: 250px; padding: 14px 16px; background: #fff; display: flex; gap: 12px; align-items: center; font-size: 0.78rem; color: var(--muted); }
.lp-notify b { display: block; color: var(--ink); font-size: 0.84rem; }
.lp-notify i { width: 40px; height: 40px; border-radius: 13px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.lp-notify i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-stat { right: 0; bottom: 70px; width: 210px; padding: 18px; background: var(--ink); color: #fff; display: grid; gap: 6px; }
.lp-stat small { color: rgba(255, 255, 255, 0.65); font-weight: 600; }
.lp-stat b { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.lp-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.lp-bars i { flex: 1; border-radius: 4px; background: rgba(255, 255, 255, 0.25); }
.lp-bars i:last-child { background: var(--brand); }
@media (max-width: 520px) {
  .lp-visual { height: 560px; }
  .lp-phone { transform: translateX(-50%) scale(0.92); transform-origin: top center; }
  .lp-notify { top: 90px; left: -4px; width: 220px; }
  .lp-stat { right: -4px; bottom: 40px; width: 170px; }
  .lp-visual-bg { inset: 30px 0 0 0; }
}

.audience { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 24px 0 72px; }
.audience span, .audience.is-links a { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }
/* Faixa "para quem" com links para as páginas por profissão (SEO) */
.audience.is-links a { color: var(--ink); text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.audience.is-links a:hover { border-color: var(--brand); color: var(--brand); }
.cta-band + .audience.is-links { padding: 28px 0 0; }
/* Sobre nós (/sobre) */
.about-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.about-grid h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 18px; }
.about-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.about-list li { padding-left: 28px; position: relative; color: var(--ink-soft); line-height: 1.55; }
.about-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800; }
.about-list b { color: var(--ink); }
.about-professions { justify-content: flex-start; padding: 6px 0 0; }
.about-contact { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.about-contact a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.about-contact svg { width: 18px; height: 18px; }

/* Seções */
.section { padding: 88px 0; }
.section-tight { padding: 0 0 88px; }
.section-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 36px; }
.section-title h2 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 13em; margin: 0; }
.section-title p { margin: 0; font-size: 1.05rem; color: var(--ink-soft); max-width: 24em; }
.section-title.is-center { flex-direction: column; align-items: center; text-align: center; }
/* Página inicial: telas reais do sistema (public/assets/landing) */
/* A página da cliente: três celulares lado a lado; o do meio um pouco mais baixo. No celular, carrossel de arrastar */
.phone-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 960px; margin: 0 auto; align-items: start; }
.phone-shot { margin: 0; display: grid; gap: 16px; justify-items: center; text-align: center; }
.phone-shot:nth-child(2) { margin-top: 36px; }
.phone-frame { position: relative; width: 100%; max-width: 268px; padding: 24px 9px 12px; border-radius: 40px; background: var(--ink); box-shadow: 0 34px 60px -34px rgba(23, 19, 28, 0.55); }
.phone-frame::before { content: ""; position: absolute; top: 9px; left: 50%; width: 52px; height: 6px; transform: translateX(-50%); border-radius: 999px; background: #3b3342; }
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 22px 22px 30px 30px; background: #fff; }
.phone-shot figcaption { max-width: 260px; font-size: 0.9rem; color: var(--ink-soft); }
.phone-shot figcaption b { display: block; margin-bottom: 2px; font-size: 1rem; color: var(--ink); }
@media (max-width: 760px) {
  .phone-showcase { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .phone-showcase::-webkit-scrollbar { display: none; }
  .phone-shot { flex: 0 0 74%; scroll-snap-align: center; }
  .phone-shot:nth-child(2) { margin-top: 0; }
}
/* O painel: print dentro de uma moldura de navegador, ao lado do texto (alternando os lados) */
.feature-rows { display: grid; gap: 64px; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.feature-row.is-reversed { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.feature-row.is-reversed .browser-frame { order: 2; }
.browser-frame { display: block; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow), 0 40px 80px -50px rgba(23, 19, 28, 0.45); transition: transform 0.25s ease; }
.browser-frame:hover { transform: translateY(-4px); }
.browser-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-frame img { display: block; width: 100%; height: auto; }
.feature-kicker { display: inline-block; margin-bottom: 10px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.feature-text h3 { margin: 0 0 12px; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.05; letter-spacing: -0.03em; }
.feature-text p { margin: 0 0 16px; color: var(--ink-soft); font-size: 1.02rem; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 10px; color: var(--ink); font-weight: 600; }
.feature-list li::before { content: "✓"; color: var(--success); font-weight: 800; }
@media (max-width: 900px) {
  .feature-row, .feature-row.is-reversed { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .feature-row.is-reversed .browser-frame { order: 0; }
  .feature-rows { gap: 48px; }
}
@media (prefers-reduced-motion: reduce) { .browser-frame { transition: none; } .browser-frame:hover { transform: none; } }

/* Recursos em blocos (bento) */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tile.is-wide { grid-column: span 2; } }
@media (min-width: 760px) { .tile.is-full { grid-column: 1 / -1; } }
/* Ocupa a linha toda só no tablet (2 colunas); no computador fica ao lado de um .is-wide */
@media (min-width: 760px) and (max-width: 1039px) { .tile.is-full-tablet, .tile.is-wide { grid-column: 1 / -1; } }
.tile { padding: 30px; border-radius: 32px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile small { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tile h3 { font-size: 1.6rem; line-height: 1.12; margin: 0; letter-spacing: -0.03em; }
.tile p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.tile.is-lilac { background: var(--lilac); border-color: transparent; } .tile.is-lilac small { color: var(--lilac-ink); }
.tile.is-peach { background: var(--peach); border-color: transparent; } .tile.is-peach small { color: var(--peach-ink); }
.tile.is-mint { background: var(--mint); border-color: transparent; } .tile.is-mint small { color: var(--mint-ink); }
.tile.is-butter { background: var(--butter); border-color: transparent; } .tile.is-butter small { color: var(--butter-ink); }
.tile.is-dark { background: var(--ink); border-color: transparent; color: #fff; } .tile.is-dark h3 { color: #fff; } .tile.is-dark small { color: var(--gold); } .tile.is-dark p { color: #cfc7d4; }
.tile-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.tile-row > .tile-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.tile-times { width: 250px; max-width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile-times span { padding: 12px 0; border-radius: 14px; background: #fff; text-align: center; font-weight: 700; font-size: 0.88rem; }
.tile-times span.is-on { background: var(--lilac-ink); color: #fff; }
.tile-note { margin-top: auto; padding: 12px 14px; border-radius: 16px; background: #fff; font-size: 0.84rem; font-weight: 600; }
/* Prévia da mensagem do WhatsApp (cartão da confirmação de presença) */
.tile-chat { width: 290px; max-width: 100%; display: grid; gap: 6px; }
.tile-chat-bubble { padding: 12px 14px; border-radius: 18px 18px 18px 4px; background: #fff; font-size: 0.84rem; line-height: 1.45; color: var(--ink); }
.tile-chat-button { padding: 10px; border-radius: 14px; background: #fff; text-align: center; font-weight: 700; font-size: 0.84rem; color: var(--mint-ink); }
/* Prévia do vale-presente no bloco da página inicial */
.tile-gift { width: 300px; max-width: 100%; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 22px 20px; border-radius: 24px; background: linear-gradient(135deg, #fff, var(--peach)); box-shadow: var(--shadow); transform: rotate(-2deg); }
.tile-gift-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac-ink); }
.tile-gift b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15; }
.tile-gift-service { font-weight: 800; color: var(--brand); }
.tile-gift-message { font-family: var(--font-accent); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); }
.tile-gift-code { margin-top: 4px; padding: 6px 14px; border: 2px dashed var(--line); border-radius: 12px; font-weight: 800; letter-spacing: 0.08em; background: #fff; }
/* Bloco "Mudar de sistema" (importar clientes): os formatos, uma planilha e o resultado */
.tile-import { width: 300px; max-width: 100%; display: grid; gap: 8px; justify-items: center; padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.tile-import-files { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tile-import-files span { padding: 3px 10px; border-radius: 999px; background: var(--butter); color: var(--butter-ink); font-size: 0.74rem; font-weight: 800; }
.tile-import-sheet { width: 100%; display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 0.78rem; }
.tile-import-sheet span { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--line); }
.tile-import-sheet span:first-child { border-top: 0; background: var(--surface-soft); }
.tile-import-sheet i { font-style: normal; color: var(--muted); white-space: nowrap; }
.tile-import-arrow { font-size: 1.2rem; font-weight: 800; color: var(--muted); line-height: 1; }
.tile-import-done { padding: 8px 14px; border-radius: 14px; background: var(--mint); color: var(--mint-ink); font-weight: 800; font-size: 0.86rem; }
a.pill-tag { color: inherit; text-decoration: none; }
/* Bloco "Sinal no agendamento": a prévia do Pix como a cliente vê */
.tile-pix { width: 300px; max-width: 100%; display: grid; gap: 10px; justify-items: center; padding: 20px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); transform: rotate(2deg); }
.tile-pix-kicker { font-size: 0.8rem; font-weight: 800; text-align: center; }
.tile-pix-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.tile-pix-amounts span { padding: 8px 10px; border-radius: 12px; background: var(--brand-soft); }
.tile-pix-amounts small { display: block; font-size: 0.68rem; font-weight: 700; color: var(--muted); }
.tile-pix-amounts b { font-family: var(--font-display); font-size: 1.05rem; }
.tile-pix-qr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; width: 112px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.tile-pix-qr i { aspect-ratio: 1; border-radius: 2px; background: var(--surface-soft); }
.tile-pix-qr i.on { background: var(--ink); }
.tile-pix-copy { width: 100%; padding: 8px; border-radius: 12px; background: var(--surface-soft); text-align: center; font-size: 0.82rem; font-weight: 700; }
.tile-pix-button { width: 100%; padding: 10px; border-radius: 999px; background: var(--ink); color: #fff; text-align: center; font-size: 0.86rem; font-weight: 800; }
.tile-bars { margin-top: auto; display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.tile-bars i { flex: 1; border-radius: 6px; background: rgba(255, 255, 255, 0.18); }
.tile-bars i:last-child { background: var(--brand); }

/* Como funciona */
.steps { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.step { display: flex; flex-direction: column; gap: 10px; }
.step-index { font: italic 400 3.8rem/1 var(--font-accent); color: var(--brand); }
.step h3 { font-size: 1.35rem; margin: 0; }
.step p { margin: 0; color: var(--ink-soft); line-height: 1.55; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }
.cta-band { padding: 64px 48px; border-radius: 40px; background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.04em; margin: 0; }
.cta-band h2 .accent { color: var(--gold); }
.cta-band .btn { min-height: 60px; padding: 18px 32px; font-size: 1.05rem; }
@media (max-width: 640px) { .cta-band { padding: 40px 24px; border-radius: 28px; } }
.site-footer { padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-footer a { color: var(--muted); margin-right: 16px; }
.site-footer-support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.site-footer-support strong { display: block; color: var(--ink); font-size: 1rem; }
.site-footer-support-links { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer-support-links a { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.site-footer-support-links a:hover { border-color: var(--ink); }
.site-footer-support-links svg { width: 18px; height: 18px; flex: none; }
.site-footer-company { display: grid; gap: 4px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 0.86rem; overflow-wrap: anywhere; }
.site-footer-company p { margin: 0; }
.site-footer-company strong { color: var(--ink-soft); }
.site-footer-professions { display: flex; flex-wrap: wrap; gap: 6px 0; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.site-footer-professions strong { color: var(--ink-soft); margin-right: 12px; }

/* Cartão de login / cadastro */
.auth-page { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 32px 16px 64px; }
.auth-card { width: 100%; max-width: 470px; border-radius: 32px; padding: 32px; }
@media (max-width: 480px) { .auth-card { padding: 24px 20px; } }
.auth-card h1 { font-size: 2.1rem; margin-bottom: 6px; }
.auth-card .lead { color: var(--ink-soft); margin-bottom: 22px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--ink-soft); }
.type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.type-options label { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); background: var(--surface); }
.type-options input { accent-color: var(--ink); }
.type-options label:has(input:checked) { border-color: var(--ink); color: var(--ink); background: var(--surface-soft); }

/* ==========================================================
   Painel do salão (/app): fundo cinza-rosado, menu escuro flutuante, cartões brancos
   ========================================================== */
.app-body { background: var(--surface-soft); }
.app-body .card, .app-body .kpi { border-color: transparent; }
.app-shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
@media (min-width: 821px) { .app-shell { grid-template-columns: 252px minmax(0, 1fr); gap: 8px; padding: 16px 0 0 16px; } }

/* Modo suporte (/vibeadm entrou no salão): faixa no topo do painel */
.support-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--brand); color: #fff; font-size: 0.9rem; }
.support-bar span { min-width: 0; }
.support-bar form { margin: 0; }
.support-bar .btn { background: #fff; color: var(--ink); }
.page-actions form { margin: 0; }
.admin-support-cell { min-width: 170px; }
.admin-support-cell > form { display: inline-block; margin: 0 4px 4px 0; }
.admin-support-cell details { display: inline-block; }
.admin-support-cell summary { list-style: none; cursor: pointer; }
.admin-support-cell summary::-webkit-details-marker { display: none; }
.admin-password-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.admin-password-form .password-field, .admin-password-form > input { width: 230px; max-width: 100%; }

.sidebar { display: none; }
@media (min-width: 821px) {
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 16px; height: calc(100vh - 32px); padding: 22px 14px; background: var(--ink); color: #fff; border-radius: 28px; overflow-y: auto; }
}
.sidebar .logo { padding: 2px 8px 18px; font-size: 1.08rem; color: #fff; }
.salon-chip { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 14px; border-radius: 18px; background: var(--surface-soft); min-width: 0; }
.salon-chip b { display: block; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salon-chip small { display: block; font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salon-chip > div { min-width: 0; }
.sidebar .salon-chip { background: var(--dark-soft); }
.sidebar .salon-chip small { color: #b9b0bf; }
.sidebar .salon-chip .avatar { background: var(--brand); color: #fff; }
.side-nav { display: grid; gap: 3px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.side-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.sidebar .side-nav a { color: #cfc7d4; }
.sidebar .side-nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.sidebar .side-nav a[aria-current="page"] { background: #fff; color: var(--ink); font-weight: 700; }
.side-nav svg, .tabbar svg, .icon-button svg, .avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-nav .nav-count { margin-left: auto; background: var(--brand); color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 8px; padding-top: 14px; }
.sidebar-bottom form { margin: 0; }
.sidebar .sidebar-bottom .btn-soft { background: var(--dark-soft); color: #fff; }
.sidebar .sidebar-bottom .btn-ghost { border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.sidebar .sidebar-bottom .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
/* Uso do plano no menu */
.sidebar-plan { padding: 14px; border-radius: 18px; background: var(--dark-soft); display: grid; gap: 8px; text-decoration: none; color: #fff; }
.sidebar-plan:hover { color: #fff; background: #352d3b; }
.sidebar-plan b { font-size: 0.85rem; }
.sidebar-plan small { color: #b9b0bf; font-size: 0.76rem; }
.sidebar-plan .meter { height: 7px; border-radius: 99px; background: #3a3240; overflow: hidden; }
.sidebar-plan .meter i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); background: rgba(244, 241, 245, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar .logo { font-size: 1.02rem; min-width: 0; }
.topbar .logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .logo svg { width: 32px; height: 32px; }
.icon-button { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; position: relative; flex: none; }
.icon-button:hover { background: var(--line); color: var(--ink); }
.icon-button .nav-count { position: absolute; top: -4px; right: -4px; background: var(--brand); color: #fff; border-radius: 999px; font-size: 0.68rem; padding: 1px 6px; }
@media (min-width: 821px) { .topbar { display: none; } }

.app-main { padding: 12px 16px 130px; min-width: 0; max-width: 1320px; width: 100%; }
@media (min-width: 821px) { .app-main { padding: 18px 24px 60px; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-weight: 500; }
.page-kicker { display: block; font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.page-kicker::first-letter { text-transform: uppercase; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.back-link:hover { color: var(--ink); }

/* Barra do celular: pílula escura flutuante, só ícones (o nome vai para o leitor de tela) */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; height: 66px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; padding: 0 6px; background: var(--ink); border-radius: 24px; box-shadow: 0 18px 40px -16px rgba(23, 19, 28, 0.6); }
.tabbar a, .tabbar button { justify-self: center; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 15px; color: #b9b0bf; text-decoration: none; background: none; border: 0; cursor: pointer; }
.tabbar a:hover, .tabbar button:hover { color: #fff; }
.tabbar a[aria-current="page"] { color: #fff; background: #2f2735; }
.tabbar svg { width: 20px; height: 20px; }
.tabbar .tab-new { width: 49px; height: 49px; border-radius: 18px; background: var(--brand); color: #fff; }
.tabbar .tab-new svg { width: 22px; height: 22px; stroke-width: 2.4; }
@media (min-width: 821px) { .tabbar { display: none; } }

/* Menu "Mais" do celular (gaveta) */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(23, 19, 28, 0.45); }
.drawer-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: var(--surface); border-radius: 28px 28px 0 0; padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px)); animation: drawer-up 0.22s ease; }
.drawer-handle { width: 44px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 0 auto 14px; }
@keyframes drawer-up { from { transform: translateY(40px); opacity: 0; } }

/* Primeiros passos */
.onboarding { background: var(--lilac) !important; }
.onboarding ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-weight: 500; }
.share-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface); padding: 10px 12px; border-radius: 16px; }
.share-box code { background: none; padding: 0; font-weight: 700; color: var(--lilac-ink); word-break: break-all; flex: 1; min-width: 180px; }

/* ---------- Agenda ---------- */
.agenda-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav .icon-button { width: 42px; height: 42px; }
.date-title { display: inline-block; font: 800 1.2rem/1.2 var(--font-display); letter-spacing: -0.02em; margin: 0 6px; }
.date-title::first-letter, .big-when::first-letter { text-transform: uppercase; }
@media (max-width: 640px) { .date-title { font-size: 1.05rem; } .hide-small { display: none; } }
.date-picker { position: relative; }
.date-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.day-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.day-summary span { background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; color: var(--ink-soft); }
.day-summary b { color: var(--ink); }

.calendar-scroll { overflow-x: auto; border-radius: 28px; background: var(--surface); padding: 8px 0; }
.calendar { display: grid; min-width: 100%; }
.calendar-head { display: grid; position: sticky; top: 0; z-index: 3; background: var(--surface); }
.calendar-head div { padding: 10px 8px 12px; font-weight: 700; font-size: 0.88rem; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-transform: capitalize; }
.col-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.68rem; font-weight: 800; flex: none; background: color-mix(in srgb, var(--event-color) 20%, #fff); color: color-mix(in srgb, var(--event-color) 60%, #17131c); }
.lp-service span { display: block; }
.calendar-head a { color: inherit; text-decoration: none; }
.calendar-head .is-today { color: var(--brand); }
.calendar-body { display: grid; position: relative; }
.hours { position: relative; }
.hours span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 0.72rem; font-weight: 600; color: #9a90a1; font-variant-numeric: tabular-nums; }
.column { position: relative; cursor: default; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 90px; margin: 0 4px; }
.column.is-today { background-color: #fffbfc; }
.column[data-new-at] { cursor: pointer; }
/* Mouse sobre o espaço vazio: o bloco do horário aparece com "+ 14:30" (app.js) */
.slot-hover { position: absolute; left: 2px; right: 2px; z-index: 0; min-height: 22px; display: flex; align-items: flex-start; padding: 4px 10px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 9%, transparent); border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, transparent); color: var(--brand-dark); font-size: 0.76rem; font-weight: 700; pointer-events: none; }
/* Horário vazio tocado: aparece com a bolinha girando enquanto o novo agendamento abre */
.slot-loading { position: absolute; left: 2px; right: 2px; z-index: 3; min-height: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); border: 1.5px dashed var(--brand); font-size: 0.78rem; font-weight: 700; pointer-events: none; }
body.is-loading-page, body.is-loading-page .column { cursor: progress; }
.closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, #f4f1f5, #f4f1f5 6px, #fbf9fb 6px, #fbf9fb 12px); pointer-events: none; border-radius: 10px; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--brand); z-index: 2; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
/* Cartão do agendamento: fundo clarinho e texto escuro na cor da profissional */
.event { position: absolute; z-index: 1; padding: 6px 10px; border-radius: 14px; overflow: hidden; text-decoration: none; font-size: 0.78rem; line-height: 1.25; background: color-mix(in srgb, var(--event-color, var(--brand)) 18%, #fff); color: color-mix(in srgb, var(--event-color, var(--brand)) 55%, #17131c); cursor: pointer; transition: transform 0.1s, box-shadow 0.15s; }
.event:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(23, 19, 28, 0.45); z-index: 2; color: color-mix(in srgb, var(--event-color, var(--brand)) 55%, #17131c); }
.event b { display: block; font-size: 0.82rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.85; }
.event.is-pending { background: #fff; border: 2px dashed color-mix(in srgb, var(--event-color, var(--brand)) 55%, #fff); }
/* Concluído: verde-menta (a mesma cor da etiqueta "Concluído"); a faixa da esquerda mantém a cor da profissional */
.event.is-completed { background: var(--mint); color: var(--mint-ink); border-left: 4px solid var(--event-color, var(--brand)); }
.event.is-completed:hover { color: var(--mint-ink); }
.event.is-completed span { opacity: 1; font-weight: 600; }
.event.is-no_show { opacity: 0.55; text-decoration: line-through; }
.event.is-block { background: repeating-linear-gradient(-45deg, #ece7ee, #ece7ee 6px, #f7f4f8 6px, #f7f4f8 12px); color: var(--muted); }
/* Cancelado pela cliente e ainda não visto pela dona: vermelho tracejado; pisca nos primeiros 30 minutos */
.event.is-canceled { background: repeating-linear-gradient(-45deg, var(--danger-soft), var(--danger-soft) 6px, #fff 6px, #fff 12px); border: 2px dashed var(--danger); color: #8e2a1f; }
.event.is-canceled:hover { color: #8e2a1f; }
.event.is-canceled s { text-decoration-thickness: 2px; }
.event.is-canceled.is-fresh { animation: cancel-blink 1.6s ease-in-out infinite; }
@keyframes cancel-blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5); opacity: 1; } 50% { box-shadow: 0 0 0 6px rgba(192, 57, 43, 0); opacity: 0.55; } }
.cancel-alert { display: grid; gap: 6px; }
.cancel-alert-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.cancel-alert-head form { margin: 0; }
.cancel-alert ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.cancel-alert a { color: inherit; font-weight: 700; }
.cancel-alert small { opacity: 0.85; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Lista do dia */
.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.day-list a { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border-radius: 20px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.day-list a:hover { color: var(--ink); border-color: var(--line-strong); }
.day-list .time { min-width: 58px; padding: 10px 0; border-radius: 14px; text-align: center; font-weight: 800; font-size: 0.92rem; background: color-mix(in srgb, var(--event-color, var(--brand)) 18%, #fff); color: color-mix(in srgb, var(--event-color, var(--brand)) 55%, #17131c); }
.day-list .who { flex: 1; min-width: 0; }
.day-list .who b, .day-list .who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
/* Celular: os badges descem para baixo do serviço (alinhados com o nome) e não estouram a largura */
@media (max-width: 640px) {
  .day-list a { flex-wrap: wrap; row-gap: 8px; }
  .day-badges { flex-basis: 100%; justify-content: flex-start; padding-left: 70px; }
}

/* Mês */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month-weekday { text-align: center; font-size: 0.74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; padding: 4px 0; letter-spacing: 0.04em; }
.month-day { min-height: 86px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1.5px solid transparent; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.month-day:hover { border-color: var(--ink); color: var(--ink); }
.month-day.is-other { opacity: 0.4; }
.month-day.is-closed { background: #f9f7fa; }
.month-day.is-today { background: var(--ink); color: #fff; }
.month-day .day-number { font-weight: 800; font-size: 0.95rem; }
.month-day .count { margin-top: auto; align-self: flex-start; background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 2px 9px; font-size: 0.74rem; font-weight: 800; }
.month-day.is-today .count { background: var(--brand); color: #fff; }
@media (max-width: 640px) { .month-day { min-height: 58px; padding: 6px; border-radius: 12px; } .month-day .count { padding: 1px 6px; } }

/* Detalhe do agendamento */
.detail-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.info-list { display: grid; gap: 12px; margin: 0; }
.info-list div { display: flex; gap: 12px; align-items: baseline; }
.info-list dt { color: var(--muted); font-size: 0.85rem; min-width: 110px; font-weight: 600; }
.info-list dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.status-actions { display: grid; gap: 10px; }
.status-actions form { margin: 0; }
.pay-row { display: flex; gap: 8px; }
.pay-row select { flex: 1; min-width: 0; }
.big-when { font: 800 1.7rem/1.15 var(--font-display); letter-spacing: -0.035em; margin: 0 0 4px; }

/* Números (KPIs) e gráfico do financeiro */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; min-width: 0; }
.kpi small { display: block; font-weight: 600; font-size: 0.8rem; color: var(--muted); }
.kpi b { display: block; font: 800 clamp(1.3rem, 3vw, 1.85rem)/1.15 var(--font-display); letter-spacing: -0.035em; margin: 4px 0 2px; overflow-wrap: anywhere; }
.kpi span { font-size: 0.8rem; color: var(--muted); }
/* Texto no lugar do número (ex.: serviço mais vendido): menor e numa linha só, com "…" */
.kpi b.kpi-text { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; margin: 8px 0 6px; }
.kpi.is-highlight { background: var(--ink); border-color: transparent; color: #fff; }
.kpi.is-highlight small, .kpi.is-highlight span { color: #cfc7d4; }
.kpi.is-highlight b { color: #fff; }
.kpi.is-butter { background: var(--butter); border-color: transparent; }
.kpi.is-butter small, .kpi.is-butter span { color: var(--butter-ink); }
.kpi.is-lilac { background: var(--lilac); border-color: transparent; }
.kpi.is-lilac small, .kpi.is-lilac span { color: var(--lilac-ink); }
a.kpi { text-decoration: none; color: var(--ink); }
/* Cartão "Aguardando confirmação": botão que abre a lista de quem falta confirmar */
button.kpi { font: inherit; color: var(--ink); text-align: left; cursor: pointer; width: 100%; }
button.kpi:disabled { cursor: default; }
.kpi-toggle[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.pending-list { margin-bottom: 16px; }
.pending-list .time small { display: block; font-size: 0.7rem; font-weight: 700; opacity: 0.8; }
.kpi .is-negative { color: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 10px; }
.bars .bar { flex: 1; min-width: 4px; background: var(--surface-soft); border-radius: 6px 6px 3px 3px; position: relative; transition: background 0.15s; }
.bars .bar.has-value { background: var(--ink); }
.bars .bar:hover { background: var(--brand); }
.bars-axis { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.share-bar { height: 8px; border-radius: 99px; background: var(--surface-soft); overflow: hidden; margin-top: 4px; }
.share-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
/* Filtro do histórico de mensagens: busca ocupa o espaço que sobrar */
.messages-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.messages-filter .field { margin: 0; }
.messages-search { flex: 1 1 240px; min-width: 0; }
.messages-search input { width: 100%; }

/* Paginação (partials/pager.php) */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.pager-numbers { display: flex; gap: 4px; align-items: center; }
.pager-step, .pager-number { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.pager-step svg { width: 16px; height: 16px; }
a.pager-step:hover, a.pager-number:hover { border-color: var(--ink); }
.pager-number.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-step.is-disabled { opacity: 0.4; }
.pager-gap { color: var(--muted); padding: 0 2px; }
.pager-summary { display: none; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
/* No celular: só Anterior · "Página 2 de 5" · Próxima */
@media (max-width: 560px) { .pager-numbers { display: none; } .pager-summary { display: inline; } .pager-step span { display: none; } .pager-step { padding: 0; } }

.period-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.period-form .field { margin: 0; }
.period-form input { min-height: 42px; padding: 6px 10px; }

/* Configurações: horários */
.hours-table { display: grid; gap: 8px; }
.hours-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); padding: 12px; background: var(--surface-soft); border-radius: 18px; align-items: center; }
@media (min-width: 760px) { .hours-row { grid-template-columns: 130px repeat(2, minmax(0, 1fr)) minmax(0, 1.6fr); } }
.hours-row .check { margin: 0; font-weight: 800; }
.hours-row .time-pair { display: flex; align-items: center; gap: 6px; }
.hours-row .time-pair span { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.hours-row input[type="time"] { min-height: 42px; padding: 6px 8px; }
.hours-row.is-closed .time-pair { opacity: 0.35; pointer-events: none; }
.theme-options { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-options label { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; font-size: 0.88rem; }
.theme-options label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.theme-options input { position: absolute; opacity: 0; }
.theme-options .swatch { width: 26px; height: 26px; border-radius: 50%; }
.qr { width: 168px; height: 168px; background: #fff; padding: 8px; border-radius: 18px; border: 1px solid var(--line); }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.settings-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.settings-nav a { padding: 8px 15px; border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.88rem; }
.settings-nav a:hover { background: var(--ink); color: #fff; }
/* Configurações → Mensagens do WhatsApp: uma linha recolhida por mensagem; toca e abre o texto */
.message-list { border-top: 1px solid var(--line); }
.message-item { border-bottom: 1px solid var(--line); }
.message-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.message-item > summary::-webkit-details-marker { display: none; }
.message-item > summary > span:first-child { display: grid; gap: 2px; min-width: 0; }
.message-item > summary::after { content: "›"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform 0.2s; }
.message-item[open] > summary::after { transform: rotate(90deg); }
.message-item .role-badge { flex-shrink: 0; margin-left: auto; }
.message-item > .field { margin-top: 0; }
.message-item > .form-actions { margin: 0 0 16px; align-items: center; }
section[id] { scroll-margin-top: 80px; }

.team-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
@media (min-width: 700px) { .team-row { grid-template-columns: auto minmax(0, 1fr) auto auto; } }
.team-row .check { margin: 0; }
.team-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-list > .card + .card { margin-top: 0; }
/* Inativas (saíram da equipe): seção recolhida depois das ativas */
.team-inactive { margin-top: 16px; }
.team-inactive > summary { cursor: pointer; font-weight: 800; padding: 10px 0; color: var(--ink-soft); }
.team-inactive > p { margin: 0 0 12px; font-size: 0.88rem; }
.team-card { padding: 18px; display: grid; gap: 12px; align-content: start; }
.team-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.team-photo .avatar { width: 64px; height: 64px; font-size: 1.1rem; }
.team-photo form { margin: 0; }
.team-main { display: grid; grid-template-columns: auto minmax(0, 1fr) 110px; gap: 10px; align-items: end; }
.team-main .field { margin: 0; }
.team-main input[type="color"] { width: 44px; height: 44px; padding: 3px; margin-bottom: 2px; }
.team-main .check, .team-main .btn { grid-column: span 1; }
@media (max-width: 520px) { .team-main { grid-template-columns: auto minmax(0, 1fr); } .team-main .field:nth-of-type(2) { grid-column: 2; } }
.team-main .check { margin: 0 0 10px; }
.team-access { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.team-access-status { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.team-access summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--brand); }
.team-access-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 10px; align-items: end; margin-top: 10px; }
.team-access-form .btn { margin-bottom: 14px; }
.team-access-form > .flash { grid-column: 1 / -1; }
/* Login no cartão da profissional: e-mail na linha toda; embaixo, senha e "Tipo de acesso" do mesmo tamanho; depois o botão */
.team-login-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.team-login-form .team-email-field { grid-column: 1 / -1; }
.team-login-form .btn { grid-column: 1; justify-self: start; }
/* Celular: e-mail, senha e tipo de acesso um embaixo do outro */
@media (max-width: 640px) { .team-login-form { grid-template-columns: minmax(0, 1fr); } }
.team-access-note { font-size: 0.82rem; margin: 0; }
/* Tipo de acesso (Titular, Gerente/sócio, Funcionário) e a lista de gerentes */
.role-badge { display: inline-block; vertical-align: middle; font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink-soft); }
.role-badge.is-owner { background: var(--brand); color: #fff; }
.role-badge.is-manager { background: var(--lilac); color: var(--lilac-ink); }
.list > li.manager-row { flex-wrap: wrap; }
.manager-edit { flex-basis: 100%; }
.manager-edit summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--brand); }
details > summary.btn { list-style: none; display: inline-flex; }
details > summary.btn::-webkit-details-marker { display: none; }

/* ==========================================================
   Página pública do salão (/{link}) e do agendamento da cliente
   A capa usa a cor clarinha do tema do salão (--brand-soft); destaques na cor dele (--brand).
   ========================================================== */
.booking-page { min-height: 100vh; background: var(--bg); }
.salon-cover { background: var(--brand-soft); }
.salon-hero { max-width: 760px; margin: 0 auto; padding: 44px 16px 30px; }
.salon-type { color: var(--brand-dark); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.salon-hero h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1; letter-spacing: -0.045em; margin: 8px 0 0; }
.salon-hero h1 .accent { color: var(--brand); }
.salon-about { color: var(--ink-soft); margin: 14px 0 0; max-width: 34em; font-weight: 500; }
.salon-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.salon-links a, .salon-links span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.86rem; font-weight: 700; text-decoration: none; }
.salon-links a:first-child { background: var(--ink); color: #fff; }
.salon-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.booking-wrap { max-width: 760px; margin: 0 auto; padding: 22px 16px 120px; }
.booking-step { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 24px; margin-bottom: 14px; }
@media (max-width: 480px) { .booking-step { padding: 20px 16px; border-radius: 24px; } }
.booking-step.is-locked { opacity: 0.45; pointer-events: none; }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-title h2 { margin: 0; font-size: 1.3rem; }
.step-number { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 0.9rem/1 var(--font-body); flex: none; }
.booking-step.is-done .step-number { background: var(--success); }
.step-number svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-summary { margin-left: auto; font-size: 0.85rem; color: var(--muted); text-align: right; }
.service-group + .service-group { margin-top: 18px; }
.service-group h3 { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.option-list { display: grid; gap: 8px; }
.option { position: relative; display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.option:hover { border-color: var(--line-strong); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { border: 2px solid var(--ink); padding: 14.5px 15.5px; }
.option:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.option-main { flex: 1; min-width: 0; }
.option-main b { display: block; font-weight: 800; }
.option-main small { display: block; }
.option-price { font-weight: 800; white-space: nowrap; color: var(--ink); }
/* Foto do serviço na página do salão (quando o salão cadastrou) */
.option-photo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: var(--surface-soft); }
.professional-options { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.professional-options .option { flex-direction: column; text-align: center; gap: 8px; }
.professional-options .avatar { width: 56px; height: 56px; font-size: 1rem; }
/* Bolinha da profissional (partials/professional-avatar): foto ou iniciais */
.avatar-round, .avatar-photo { border-radius: 50%; }
.avatar-photo { overflow: hidden; background: var(--surface-soft); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Foto do serviço e do produto: quadrada com cantos arredondados (lista do painel e campo Foto do cadastro) */
.item-photo { object-fit: cover; padding: 0; }
.photo-field-row { display: flex; gap: 14px; align-items: flex-start; }
.photo-field-preview { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; flex: none; background: var(--surface-soft); }
.photo-field-preview.is-empty { display: grid; place-items: center; color: var(--muted); }
.photo-field-inputs { display: grid; gap: 8px; min-width: 0; }
.photo-field-inputs .check { margin: 0; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.day-chip { flex: none; scroll-snap-align: start; width: 64px; padding: 10px 0; border-radius: 18px; border: 0; background: var(--surface-soft); text-align: center; cursor: pointer; font-family: inherit; color: var(--ink); }
.day-chip small { display: block; font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.day-chip b { display: block; font: 800 1.3rem/1.2 var(--font-body); letter-spacing: -0.02em; }
.day-chip span { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 600; }
.day-chip:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.day-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.day-chip[aria-pressed="true"] small, .day-chip[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.7); }
.times { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); margin-top: 10px; }
.time-chip { padding: 12px 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: 700 0.95rem/1 var(--font-body); color: var(--ink); cursor: pointer; }
.time-chip:hover { border-color: var(--ink); }
.time-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.times-period { grid-column: 1 / -1; font-size: 0.74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }
.booking-summary { background: var(--surface-soft); border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; font-size: 0.95rem; }
.booking-summary b { color: var(--ink); }
.notice-box { background: var(--butter); color: var(--butter-ink); border-radius: 18px; padding: 13px 15px; font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; }
.my-bookings { background: var(--ink); color: #fff; border-radius: 24px; padding: 18px 20px; margin-bottom: 14px; }
.my-bookings h2 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.my-bookings a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--ink); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.powered { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 26px; }
.powered a { color: var(--muted); }

.ticket { background: var(--surface); border-radius: 32px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticket-top { padding: 30px 24px 24px; text-align: center; background: var(--brand-soft); }
.ticket-top .status-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem; background: var(--surface); }
.ticket-top h1 { font-size: 1.8rem; margin-bottom: 6px; }
.ticket-body { padding: 24px; }
.ticket-actions { display: grid; gap: 10px; padding: 0 24px 24px; }

/* Vale-presente: cartão público (/vale/{código}) e telas do painel (/app/vales) */
.gift-ticket-top { background: linear-gradient(135deg, var(--brand-soft), var(--peach)); }
.gift-kicker { margin: 0 0 6px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.gift-service { margin: 4px 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.gift-message { margin: 0 0 18px; padding: 16px 18px; border-radius: 18px; background: var(--butter); color: var(--ink); font-size: 1.05rem; font-style: italic; }
.gift-code-box { display: grid; gap: 2px; justify-items: center; margin: 0 0 18px; padding: 16px; border: 2px dashed var(--line); border-radius: 18px; text-align: center; }
.gift-code-box small { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.gift-code-box b { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0.08em; color: var(--ink); }
.gift-code-box span { font-size: 0.9rem; color: var(--muted); }
.gift-steps { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-soft); }
.gift-hint { margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: var(--butter); color: var(--butter-ink); font-size: 0.9rem; font-weight: 600; }
.gift-code-field { margin-top: 10px; }
.gift-code-field input { text-transform: uppercase; letter-spacing: 0.06em; }
.gift-upsell { display: flex; gap: 18px; align-items: flex-start; background: var(--peach); border-color: transparent; }
.gift-upsell-icon { font-size: 2.4rem; line-height: 1; }
.gift-upsell p { margin: 0 0 12px; }
.push-offer { margin: 0 24px 20px; padding: 16px; border-radius: 20px; background: var(--lilac); font-size: 0.92rem; }
.push-offer p { margin: 0 0 10px; }
/* Atendimento concluído: pedido de avaliação no Google */
.review-ask { margin: 0 24px 6px; padding: 16px; border-radius: 20px; background: var(--butter); display: grid; gap: 12px; font-size: 0.95rem; }
.review-ask p { margin: 0; }

/* Página do salão: área da cliente (login mágico) e confirmação de presença */
.customer-account { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 16px 18px; margin-bottom: 14px; display: grid; gap: 10px; }
.customer-notice { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--mint); color: var(--mint-ink); font-size: 0.9rem; font-weight: 600; }
.customer-notice.is-error { background: var(--danger-soft); color: #8e2a1f; }
.customer-login { display: grid; gap: 8px; margin: 0; }
.customer-login label { font-size: 0.92rem; color: var(--ink-soft); }
.customer-login-row { display: flex; gap: 8px; }
.customer-login-row input { flex: 1; min-width: 0; }
.customer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.customer-head small { display: block; color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.customer-head b { font: 800 1.2rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.customer-head form { margin: 0; }
.customer-muted { margin: 0; color: var(--muted); font-size: 0.88rem; }
.customer-muted:empty { display: none; }
.customer-appointments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.customer-appointments a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--brand-soft); color: var(--ink); text-decoration: none; }
.customer-appointments b, .customer-appointments small { display: block; }
.customer-appointments small { color: var(--ink-soft); font-size: 0.82rem; }
/* "Agendar de novo" o último serviço (cliente conectada) */
.customer-repeat { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed var(--brand); color: var(--ink); text-decoration: none; }
.customer-repeat:hover { background: var(--brand-soft); }
.customer-repeat span { display: grid; min-width: 0; }
.customer-repeat small { color: var(--brand-dark); font-weight: 700; font-size: 0.8rem; }
.customer-repeat svg { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.customer-status { font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.customer-install { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--lilac); color: var(--lilac-ink); font-size: 0.88rem; font-weight: 600; }
.customer-install[hidden] { display: none; }
/* "Não sou um robô" do Cloudflare (Turnstile): só ocupa espaço quando a caixinha aparece */
.cf-turnstile { display: flex; justify-content: center; }
.cf-turnstile:not(:empty) { margin: 4px 0 12px; }
.customer-push { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--butter); color: var(--butter-ink); font-size: 0.88rem; font-weight: 600; }
.presence-card.is-done { background: var(--mint); border-color: transparent; }
.presence-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .presence-row { grid-template-columns: minmax(0, 1fr) auto; } }
.presence-quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 6px 0 4px; }
.presence-quick select { width: auto; min-height: 38px; padding: 6px 12px; font-size: 0.86rem; }
.presence { margin: 0 24px 6px; padding: 16px; border-radius: 20px; background: var(--surface-soft); display: grid; gap: 12px; }
.presence p { margin: 0; }
.presence.is-asked { background: var(--butter); box-shadow: 0 0 0 2px var(--brand); }
.presence.is-done { background: var(--mint); color: var(--mint-ink); }

/* Página inicial: faixa "em números" e carrossel de depoimentos */
.numbers-band { margin: -40px 0 64px; }
.numbers-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .numbers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.number-item { background: var(--ink); color: #fff; border-radius: 24px; padding: 22px 20px; display: grid; gap: 4px; min-width: 0; }
.number-item:nth-child(2) { background: var(--lilac); color: var(--ink); }
.number-item:nth-child(3) { background: var(--peach); color: var(--ink); }
.number-item:nth-child(4) { background: var(--mint); color: var(--ink); }
.number-item b { font: 800 clamp(1.9rem, 4.5vw, 2.8rem)/1 var(--font-display); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.number-item span { font-size: 0.9rem; font-weight: 600; opacity: 0.78; }
.carousel { position: relative; }
#depoimentos { padding-bottom: 24px; }
.carousel-track { list-style: none; margin: 0; padding: 4px 2px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 86%; column-gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .carousel-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1080px) { .carousel-track { grid-auto-columns: calc((100% - 32px) / 3); } }
.testimonial { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-width: 0; }
.testimonial-text { margin: 0; font-size: 1.04rem; line-height: 1.6; color: var(--ink-soft); }
.testimonial-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.testimonial-person img, .testimonial-avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; object-fit: cover; }
.testimonial-avatar { display: grid; place-items: center; font-weight: 800; font-size: 1rem; }
.testimonial-avatar.is-tone-0 { background: var(--brand-soft); color: var(--brand-dark); }
.testimonial-avatar.is-tone-1 { background: var(--lilac); color: var(--lilac-ink); }
.testimonial-avatar.is-tone-2 { background: var(--peach); color: var(--peach-ink); }
.testimonial-avatar.is-tone-3 { background: var(--mint); color: var(--mint-ink); }
.testimonial-person b { display: block; }
.testimonial-person small { display: block; color: var(--muted); font-size: 0.84rem; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: none; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.carousel-arrow .icon { width: 20px; height: 20px; }
.carousel-arrow.is-prev { left: -14px; }
.carousel-arrow.is-next { right: -14px; }
@media (min-width: 720px) { .carousel-arrow { display: grid; } .carousel.fits .carousel-arrow { display: none; } }
.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.carousel-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: width 0.2s; }
.carousel-dots i.is-on { width: 22px; border-radius: 99px; background: var(--ink); }

/* Estoque (/app/estoque) */
.stock-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.stock-search { display: flex; gap: 8px; flex: 1 1 240px; max-width: 420px; }
.stock-quantity { display: grid; justify-items: end; gap: 3px; text-align: right; white-space: nowrap; }
.stock-change.is-in { color: var(--success); }
.stock-change.is-out { color: var(--danger); }
.stock-moves { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; align-items: start; }
@media (min-width: 1100px) { .stock-moves { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stock-moves > .card + .card { margin-top: 0; }
.stock-moves .card-head { margin-bottom: 10px; }
.stock-moves .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stock-moves .form-grid.cols-2 .span-2 { grid-column: 1 / -1; }

/* Administração do sistema (/admin) */
.admin-body { background: var(--surface-soft); }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--ink); color: #fff; }
.admin-top .logo { color: #fff; }
.admin-top nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-top nav a, .admin-top nav button { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 8px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.admin-top nav a[aria-current="page"], .admin-top nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 26px 16px 60px; }
/* Celular: igual ao painel do salão — menu do topo some; barra flutuante embaixo + gaveta "Mais" */
.admin-tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-tabbar a { position: relative; }
.admin-tabbar .tab-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 0.68rem/18px var(--font-body); text-align: center; }
@media (max-width: 820px) {
  .admin-top .admin-nav { display: none; }
  .admin-top { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .admin-main { padding-bottom: 110px; }
}
.deploy-versions { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
@media (min-width: 700px) { .deploy-versions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.deploy-versions > div { padding: 14px; border-radius: 12px; background: var(--surface-soft); display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.deploy-versions b { font: 600 1.3rem/1 ui-monospace, monospace; }

/* /admin: gráficos, visitas e logs (admin.js desenha os gráficos com o Chart.js) */
.admin-body { --chart-1: #c2255c; --chart-2: #6d4ae0; --chart-3: #a16f00; --up: #1f7a52; --down: #c0392b; }
.admin-section { margin-bottom: 18px; }
.admin-back { margin: 0 0 6px; font-weight: 600; font-size: 0.9rem; }
.admin-back a { color: var(--muted); text-decoration: none; }
.admin-footnote { margin: 12px 0 0; font-size: 0.84rem; }
.admin-subtitle { margin-top: 20px; }
.admin-three { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .admin-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.admin-three h3, .admin-section > .card > h3 { margin-top: 0; }
.grid-2 > .card + .card, .admin-three > .card + .card { margin-top: 0; }
.chart-box { position: relative; height: 240px; }
.chart-tall { height: 300px; }
.chart-small { height: 70px; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; font-size: 0.8rem; color: var(--muted); align-items: center; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend-1 { background: var(--chart-1); }
.legend-2 { background: var(--chart-2); }
.legend-3 { background: var(--chart-3); }
.legend-dash { background: none !important; border-top: 2px dashed var(--ink); height: 0 !important; border-radius: 0 !important; vertical-align: 3px !important; }
.legend-projection { background: rgba(194, 37, 92, 0.1); border: 1.5px dashed var(--chart-1); }
.live-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; }
@media (min-width: 900px) { .live-card { grid-template-columns: auto minmax(0, 1fr) 260px; } }
.live-number { display: flex; gap: 14px; align-items: center; }
.live-number small, .live-pages small { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: block; }
.live-number strong { display: block; font: 800 3.2rem/1 var(--font-display); letter-spacing: -0.04em; color: var(--chart-1); font-variant-numeric: tabular-nums; }
.live-pulse { width: 14px; height: 14px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: live-pulse 1.6s infinite; flex: none; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.live-card.changed strong { animation: live-flash 0.8s; }
@keyframes live-flash { 0% { color: var(--chart-2); } 100% { color: var(--chart-1); } }
.live-pages ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.88rem; max-height: 150px; overflow-y: auto; }
.live-pages li { display: flex; justify-content: space-between; gap: 8px; }
.live-pages li span { min-width: 0; overflow-wrap: anywhere; }
.kpi .change { display: block; margin: 2px 0; }
.change { font-size: 0.8rem; font-weight: 700; }
.change small { font-weight: 500; color: var(--muted); }
.change.is-up { color: var(--up); }
.change.is-down { color: var(--down); }
.change.is-flat { color: var(--muted); }
.kpi.is-highlight .change small, .kpi.is-highlight .change.is-flat { color: #cfc7d4; }
.kpi.is-highlight .change.is-up { color: #7ee2b0; }
.kpi.is-highlight .change.is-down { color: #ffaaa0; }
.verdict { margin: 0 0 18px; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-left: 5px solid var(--muted); border-radius: 16px; padding: 14px 16px; font-size: 0.95rem; }
.verdict.is-up { border-left-color: var(--up); }
.verdict.is-down { border-left-color: var(--down); }
.verdict > span:first-child { font-size: 1.4rem; line-height: 1; }
.heatmap-wrap { overflow-x: auto; }
.heatmap { border-collapse: separate; border-spacing: 3px; min-width: 640px; width: 100%; font-size: 0.7rem; table-layout: fixed; }
.heatmap th:first-child { width: 36px; }
.heatmap th { color: var(--muted); font-weight: 600; text-align: left; padding: 0 4px; white-space: nowrap; overflow: visible; }
.heatmap td { height: 22px; border-radius: 4px; background: rgba(194, 37, 92, calc(0.05 + var(--level) * 0.9)); }
.heatmap-legend { margin-top: 10px; }
.heatmap-legend i { width: 18px; height: 12px; background: rgba(194, 37, 92, calc(0.05 + var(--level) * 0.9)); }
.bar-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.bar-top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.88rem; }
.bar-top span { overflow-wrap: anywhere; min-width: 0; }
.bar-top b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-top small { color: var(--muted); font-weight: 500; }
.bar-track { height: 8px; background: var(--surface-soft); border-radius: 4px; margin-top: 4px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 4px; }
.admin-facts { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
@media (min-width: 900px) { .admin-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.admin-facts > div { background: var(--surface-soft); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.admin-facts small { font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.admin-facts .muted { font-size: 0.8rem; }
.admin-actions { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .admin-actions { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.admin-action { border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-width: 0; }
.admin-action h4 { margin: 0 0 4px; font-size: 1rem; }
.admin-action > p { margin: 0 0 12px; font-size: 0.86rem; }
.admin-action-fields { display: grid; gap: 0 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.admin-action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-zone { border: 1px solid #efc4be; background: #fffafa; }
.danger-zone h3 { margin-top: 0; color: var(--danger); }
.danger-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.danger-form .field { margin: 0; flex: 1 1 280px; }
.log-filters { margin: 0 0 12px; }
.log-filters .field { flex: 1 1 220px; }
.log-meta { font-size: 0.84rem; margin: 0 0 8px; overflow-wrap: anywhere; }
.log-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; font: 0.8rem/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace; max-height: 70vh; overflow-y: auto; }
.log-lines li { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 8px; background: var(--surface-soft); border-left: 3px solid var(--line-strong); }
.log-text { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.log-kind { flex: none; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: var(--muted); width: 48px; }
.log-erro { border-left-color: var(--danger) !important; }
.log-erro .log-kind { color: var(--danger); }
.log-deploy { border-left-color: var(--up) !important; }
.log-deploy .log-kind { color: var(--up); }

/* App instalado: "puxar para atualizar" (assets/js/app-shell.js) */
.pull-ball {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 50%; z-index: 9999; pointer-events: none;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--brand); font: 700 22px/1 system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(43, 27, 42, 0.3); opacity: 0; transform: translate(-50%, -50px);
}
.pull-ball.animate { transition: transform 0.25s ease, opacity 0.25s ease; }
.pull-ball.ready { background: var(--brand); color: #fff; }
.pull-ball span { display: block; }
.pull-ball.spinning span { animation: spin 0.7s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   Celular: barra de navegação, aviso de cookies, convite de instalação (modelo do iCalculei)
   ========================================================== */
/* Puxar para atualizar é nosso (app-shell.js): desliga o gesto nativo para não recarregar duas vezes */
html.is-phone, html.is-phone body { overscroll-behavior-y: contain; }

/* Barra do rodapé no site e na página do salão: Voltar, Avançar, Início, Atualizar (só celular) */
.app-nav { display: none; }
@media (max-width: 820px) {
  .is-phone .app-nav:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(23, 19, 28, 0.08);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .is-phone .app-nav button, .is-phone .app-nav a {
    display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; border-radius: 12px;
    color: var(--ink-soft); font: 600 0.7rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  }
  .is-phone .app-nav button:active, .is-phone .app-nav a:active { background: var(--brand-soft); color: var(--brand-dark); }
  .is-phone .app-nav .icon { width: 22px; height: 22px; }
  .is-phone body:has(.app-nav:not([hidden])) { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* Aviso de cookies: cartão no rodapé, acima das barras do celular */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-strong);
  animation: drawer-up 0.3s ease;
}
.cookie-inner { padding: 16px 18px; display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; }
.cookie-text { flex: 1 1 320px; min-width: 0; }
.cookie-text h2 { font-size: 1.05rem; margin-bottom: 4px; }
.cookie-text p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 820px) {
  .is-phone body:has(.app-nav:not([hidden])) .cookie-banner,
  body:has(.tabbar) .cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Botão "ocupado" (Salvando…, Enviando…): bolinha girando no lugar do ícone */
.is-busy { pointer-events: none; opacity: 0.85; }
.busy-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; flex: none; animation: spin 0.7s linear infinite; }

/* Confirmação do e-mail */
.verify-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 1.9rem; background: var(--brand-soft); margin-bottom: 14px; }
.code-input { font: 600 1.8rem/1 var(--font-body) !important; letter-spacing: 0.45em; text-align: center; padding-left: 0.45em !important; font-variant-numeric: tabular-nums; }
.verify-resend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 18px; font-size: 0.92rem; }
.verify-resend .link-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.auth-switch .link-button { color: var(--muted); }
/* "O e-mail está errado?" na confirmação do cadastro */
.verify-fix { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.verify-fix > summary { cursor: pointer; text-align: center; color: var(--ink-soft); font-size: 0.92rem; overflow-wrap: anywhere; }
.verify-fix > form { margin-top: 12px; }
/* "Você quis dizer ...@gmail.com?" embaixo do campo de e-mail (common.js, data-email-suggest) */
.email-suggestion { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--ink-soft); }
.email-suggestion .link-button { color: var(--brand); }

/* Topo do painel no celular */
.topbar-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.install-footer { display: flex; justify-content: center; padding: 0 16px 22px; }

/* Convite de instalação: cartão que sobe do rodapé, com o passo a passo animado */
[data-install-app][hidden], [data-install-area][hidden] { display: none !important; }
html.install-open { overflow: hidden; }
.install-invite {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: end center; padding: 12px;
  background: rgba(43, 27, 42, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.3s ease;
}
.install-invite.is-open { opacity: 1; }
.install-invite.is-leaving { opacity: 0; }
.install-card {
  position: relative; width: min(440px, 100%); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: 26px 20px 14px; border-radius: 28px; text-align: center; outline: none; color: var(--ink);
  background: radial-gradient(120% 60% at 50% 0%, rgba(194, 87, 122, 0.18), transparent 60%), var(--surface);
  border: 1px solid var(--line); box-shadow: 0 -20px 60px rgba(43, 27, 42, 0.35);
  transform: translateY(110%); transition: transform 0.55s cubic-bezier(0.2, 1.25, 0.35, 1);
}
.install-invite.is-open .install-card { transform: none; }
.install-invite.is-leaving .install-card { transform: translateY(110%); transition-duration: 0.3s; transition-timing-function: ease-in; }
.install-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); background: var(--surface-soft); }
.install-top { position: relative; width: 96px; height: 96px; margin: 0 auto 12px; display: grid; place-items: center; }
.install-glow {
  position: absolute; inset: -10px; border-radius: 50%; filter: blur(12px); opacity: 0.6;
  background: conic-gradient(from 0deg, var(--gold), var(--brand), #8e6bbf, #f1cf8e, var(--gold));
  animation: install-spin 6s linear infinite;
}
.install-app-icon {
  position: relative; width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 28px rgba(23, 19, 28, 0.35);
  animation: install-enter 0.7s 0.25s cubic-bezier(0.2, 1.5, 0.4, 1) both, install-float 3.2s 1s ease-in-out infinite;
}
.install-card h2 { margin: 0 0 6px; font-size: 1.6rem; animation: install-rise 0.5s 0.35s both; }
.install-subtitle { margin: 0 auto 16px; max-width: 340px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; animation: install-rise 0.5s 0.45s both; }
.install-subtitle b { color: var(--brand-dark); }
.install-quick { display: none; margin-bottom: 8px; }
.install-invite.has-installer .install-quick { display: block; animation: install-rise 0.5s 0.5s both; }
.install-invite.has-installer .install-guide,
.install-invite.has-installer .install-note { display: none; }
.install-now { width: 100%; font-size: 1.05rem; padding: 14px 16px; border-radius: 16px; animation: install-call 2.4s 1.2s ease-in-out infinite; }
.install-quick small { display: block; margin-top: 8px; color: var(--muted); font-size: 0.82rem; }
.install-guide {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; text-align: left;
  padding: 14px; border-radius: 20px; background: var(--surface-soft); border: 1px solid var(--line);
  animation: install-rise 0.5s 0.55s both;
}
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; line-height: 1.35; }
.install-steps li { display: flex; gap: 9px; align-items: flex-start; padding: 8px 9px; border-radius: 12px; animation: install-step 9s linear infinite; }
.install-steps li.step-2 { animation-delay: -6s; }
.install-steps li.step-3 { animation-delay: -3s; }
.install-steps li > span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 0.75rem var(--font-body); color: #fff; background: var(--brand); }
.install-steps b { color: var(--brand-dark); }
.install-icon { display: inline-grid; vertical-align: -4px; width: 18px; height: 18px; color: #2b7de9; }
.install-icon svg { width: 100%; height: 100%; }
.install-note { margin: 10px 0 0; font-size: 0.78rem; color: var(--muted); }
.install-later { margin-top: 8px; padding: 10px 18px; border: 0; background: none; cursor: pointer; font: 600 0.88rem var(--font-body); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* Celularzinho com o passo a passo: 3 cenas de 3 s cada, em loop */
.install-phone { width: 118px; height: 212px; padding: 6px; border-radius: 24px; background: #2b1b2a; box-shadow: 0 0 0 1.5px #4a3247, 0 14px 30px rgba(43, 27, 42, 0.35); }
.install-phone .phone-screen { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 18px; background: linear-gradient(170deg, #ffffff, #fbeef2); }
.phone-scene { position: absolute; inset: 0; opacity: 0; animation: install-scene 9s linear infinite; }
.phone-scene::before {
  /* "conteúdo" da agenda no fundo: título e horários */
  content: ""; position: absolute; left: 10px; right: 10px; top: 36px; height: 110px; border-radius: 8px;
  background:
    linear-gradient(#c2577a 0 0) 0 0 / 60% 9px no-repeat,
    linear-gradient(#ecd6dd 0 0) 0 18px / 100% 6px no-repeat,
    linear-gradient(#fbe7ee 0 0) 0 34px / 100% 22px no-repeat,
    linear-gradient(#fbe7ee 0 0) 0 62px / 100% 22px no-repeat,
    linear-gradient(#f1eafa 0 0) 0 90px / 100% 20px no-repeat;
}
.phone-scene.scene-3::before { display: none; }
.phone-bar { position: absolute; left: 0; right: 0; height: 28px; display: flex; align-items: center; justify-content: space-around; background: rgba(255, 255, 255, 0.95); color: #2b7de9; font-size: 0; }
.phone-bar.is-bottom { bottom: 0; border-top: 1px solid #ddd; }
.phone-bar.is-top { top: 0; justify-content: space-between; padding: 0 6px 0 8px; border-bottom: 1px solid #ddd; color: #444; }
.phone-bar span:not(.phone-url) { width: 16px; height: 16px; display: grid; }
.phone-bar.is-bottom span:not(.phone-target)::before { content: ""; margin: auto; width: 10px; height: 2px; border-radius: 2px; background: #b8c4d6; }
.phone-bar svg { width: 100%; height: 100%; }
.phone-url { flex: 1; margin-right: 6px; padding: 3px 6px; border-radius: 99px; background: #eee; color: #666; font: 600 7px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-bar .phone-target { border-radius: 50%; animation: install-pulse 1.2s ease-out infinite; }
.phone-menu { position: absolute; background: #fff; color: #222; font: 600 7.5px/1 var(--font-body); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); animation: install-menu 9s cubic-bezier(0.2, 1.1, 0.4, 1) infinite; }
.phone-menu.is-bottom { left: 4px; right: 4px; bottom: 32px; border-radius: 10px; --menu-from: translateY(140%); }
.phone-menu.is-top { top: 24px; right: 4px; width: 84px; border-radius: 8px; transform-origin: top right; --menu-from: scale(0.3); }
.phone-menu div { display: flex; align-items: center; gap: 4px; padding: 7px; border-bottom: 1px solid #eee; }
.phone-menu div:last-child { border: 0; }
.phone-menu svg { width: 10px; height: 10px; flex: none; }
.phone-menu .phone-target { color: #1a5fd0; animation: install-mark 9s linear infinite; }
.phone-finger {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(194, 87, 122, 0.95) 35%, rgba(194, 87, 122, 0.35) 60%, transparent 70%);
  animation: install-finger 9s ease-in-out infinite;
}
.is-ios .scene-1 .phone-finger { left: 50%; top: calc(100% - 14px); }
.is-ios .scene-2 .phone-finger { left: 50%; top: calc(100% - 44px); }
.is-android .scene-1 .phone-finger { left: calc(100% - 14px); top: 14px; }
.is-android .scene-2 .phone-finger { left: calc(100% - 45px); top: 83px; }
.phone-home { position: absolute; inset: 0; padding: 22px 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 9px; align-content: start; background: linear-gradient(160deg, #c2577a, #6c4c99 60%, #2b1b2a); }
.phone-home i { aspect-ratio: 1; border-radius: 9px; background: rgba(255, 255, 255, 0.22); }
.phone-home b { display: grid; justify-items: center; gap: 3px; min-width: 0; animation: install-new 9s cubic-bezier(0.2, 1.6, 0.4, 1) infinite; }
.phone-home b img { width: 100%; aspect-ratio: 1; border-radius: 9px; box-shadow: 0 0 0 2px #f1cf8e, 0 0 14px #f1cf8e; }
.phone-home b small { font: 600 7px var(--font-body); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
/* A cena 2 começa aos 3 s e a 3 aos 6 s (atrasos negativos: todas usam o mesmo relógio de 9 s) */
.install-phone .scene-2, .install-phone .scene-2 * { animation-delay: -6s; }
.install-phone .scene-3, .install-phone .scene-3 * { animation-delay: -3s; }

@keyframes install-spin { to { transform: rotate(1turn); } }
@keyframes install-enter { from { opacity: 0; transform: scale(0.3) rotate(-20deg); } }
@keyframes install-float { 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes install-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes install-call { 0%, 70%, 100% { transform: none; } 78% { transform: scale(1.04) rotate(-1deg); } 86% { transform: scale(1.04) rotate(1deg); } }
@keyframes install-scene { 0%, 30% { opacity: 1; } 33%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes install-step {
  0%, 30% { opacity: 1; background: var(--brand-soft); transform: translateX(3px); }
  33%, 97% { opacity: 0.5; background: transparent; transform: none; }
  100% { opacity: 1; background: var(--brand-soft); transform: translateX(3px); }
}
@keyframes install-pulse { from { box-shadow: 0 0 0 0 rgba(43, 125, 233, 0.55); } to { box-shadow: 0 0 0 10px rgba(43, 125, 233, 0); } }
@keyframes install-menu { 0% { transform: var(--menu-from); opacity: 0; } 6%, 100% { transform: none; opacity: 1; } }
@keyframes install-mark { 0%, 16% { background: transparent; } 18%, 30% { background: #dbe8ff; } 31%, 100% { background: transparent; } }
@keyframes install-finger {
  0% { opacity: 0; transform: translate(26px, 34px) scale(1.2); }
  9% { opacity: 1; transform: translate(26px, 34px) scale(1.2); }
  15% { opacity: 1; transform: none; }
  17% { transform: scale(0.7); }
  20% { transform: scale(1); }
  26% { opacity: 1; }
  30%, 100% { opacity: 0; }
}
@keyframes install-new { 0%, 5% { transform: scale(0); } 12% { transform: scale(1.25); } 16%, 100% { transform: scale(1); } }
@media (max-width: 350px) { .install-guide { grid-template-columns: minmax(0, 1fr); justify-items: center; } }

/* ==========================================================
   Planos (painel → Plano e página inicial)
   ========================================================== */
.plan-usage { margin-bottom: 18px; }
/* Mensagens WhatsApp e Configurações → WhatsApp */
.block-title { font-size: 1.25rem; margin: 26px 0 14px; }
.plans + p + .card { margin-top: 22px; }
.small-list { margin: 4px 0 16px; padding-left: 18px; font-size: 0.9rem; display: grid; gap: 4px; }
.usage-bar { height: 10px; border-radius: 99px; background: var(--surface-soft); overflow: hidden; }
.usage-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.usage-bar.is-high i { background: linear-gradient(90deg, var(--warning), var(--danger)); }
.usage-alert { margin: 10px 0 0; color: var(--danger); font-weight: 600; font-size: 0.92rem; }
.plan-flash { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.plans { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; min-width: 0; }
.plan-card.is-current { border: 2px solid var(--ink); }
.plan-card h3 { margin: 0; font-size: 1.1rem; }
.plan-ribbon { position: absolute; top: 20px; right: 20px; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 5px 10px; border-radius: 99px; }
.plan-price { font: 800 2.5rem/1.05 var(--font-display); letter-spacing: -0.045em; margin: 6px 0 0; color: var(--ink); }
/* Promoção (Plans::PROMO): preço "de" riscado e a etiqueta do desconto */
.plan-was { margin: 4px 0 -4px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; }
.plan-off { padding: 2px 8px; border-radius: 999px; background: #f5c84c; color: #1b1420; font-size: 0.76rem; font-weight: 800; }
.plan-card.is-popular .plan-was { color: #b9b0bf; }
.promo-pill { display: inline-block; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; font-size: 0.86rem; }
.promo-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-top: 28px; margin-bottom: 28px; padding: 30px 36px; border-radius: 36px; background: linear-gradient(120deg, var(--ink) 0%, #3a1f33 60%, var(--brand) 140%); color: #fff; }
.promo-percent { display: grid; justify-items: center; line-height: 0.9; }
.promo-percent b { font: 800 clamp(3.4rem, 9vw, 5.6rem)/0.9 var(--font-display); letter-spacing: -0.05em; color: #f5c84c; }
.promo-percent span { font-weight: 800; letter-spacing: 0.3em; font-size: 1rem; }
.promo-text h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.promo-text h2 .accent { color: #f5c84c; }
.promo-text p { margin: 0; color: #e6dde9; }
.promo-band .btn { background: #fff; color: var(--ink); min-height: 54px; padding: 14px 26px; }
.promo-band .btn:hover { background: #f5c84c; color: var(--ink); }
@media (max-width: 760px) { .promo-band { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 26px 20px; gap: 14px; } .promo-band .btn { justify-self: center; } }
.plan-price small { font: 600 0.9rem var(--font-body); letter-spacing: 0; color: var(--muted); }
.plan-limit { margin: 0; font-weight: 700; color: var(--ink-soft); }
.plan-features { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 7px; font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.plan-features li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 8px; }
.plan-features li.is-new { font-weight: 700; color: var(--ink); }
.plan-card.is-popular .plan-features li.is-new { color: #fff; }
/* Plano em destaque: cartão escuro */
.plan-card.is-popular { background: var(--ink); border-color: transparent; color: #fff; }
.plan-card.is-popular h3, .plan-card.is-popular .plan-price { color: #fff; }
.plan-card.is-popular .plan-price small, .plan-card.is-popular .plan-limit, .plan-card.is-popular .plan-features, .plan-card.is-popular .plan-note { color: #cfc7d4; }
.plan-card.is-popular .plan-features li::before { color: var(--gold); }
/* Recurso que o plano não tem (lista igual em todos os planos): ✕ e texto apagado */
.plan-features li.is-off { color: var(--placeholder); text-decoration: line-through; text-decoration-thickness: 1px; }
.plan-features li.is-off::before { content: "✕"; color: var(--placeholder); }
.plan-card.is-popular .plan-features li.is-off, .plan-card.is-popular .plan-features li.is-off::before { color: #7d7486; }
.plan-card.is-popular .btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.plan-card.is-popular .btn-soft { background: var(--dark-soft); color: #fff; }
.plan-card form { margin: 0; }
.plan-current { pointer-events: none; }
.plan-note { font-size: 0.85rem; text-align: center; }

/* Pagamento do plano dentro do site (Stripe Embedded Checkout) */
.checkout-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.checkout-summary h2 { margin: 2px 0 0; }
.checkout-summary .plan-features { flex: none; }
.checkout-secure { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 0.85rem; }
.checkout-box { padding: 12px; min-height: 420px; }
@media (max-width: 640px) { .checkout-box { padding: 4px; } }

/* ---------- Artigos (/artigos e /artigos/{slug}) ---------- */
.articles-hero { padding-top: 48px; padding-bottom: 32px; }
.articles-hero .section-title h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 13em; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 0.86rem; color: var(--muted); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--brand); }
.article-search { display: flex; gap: 10px; max-width: 640px; margin-bottom: 16px; }
.article-search input { flex: 1; min-width: 0; }
.article-categories { margin-bottom: 4px; }
.article-result-count { margin: 0 0 18px; }
.article-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.article-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--surface-soft); }
.article-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.article-card-link:hover h3 { color: var(--brand); }
.article-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.5; flex: 1; }
.article-tag { align-self: flex-start; display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--lilac); color: var(--lilac-ink); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.article-head { max-width: 860px; padding-top: 40px; }
.article-head h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.06; letter-spacing: -0.04em; margin: 14px 0 14px; }
.article-lead { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.55; margin: 0 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.86rem; color: var(--muted); margin: 0 0 26px; }
.article-cover { max-width: 1100px; margin-bottom: 36px; }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; display: block; }
.article-cover figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 8px; text-align: right; }
.article-cover figcaption a { color: inherit; }
.article-layout { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); max-width: 1100px; margin-bottom: 72px; }
@media (min-width: 980px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; } .article-aside { position: sticky; top: 90px; align-self: start; } }
.article-aside { display: grid; gap: 16px; }
.article-toc b, .article-promo b { display: block; font-family: var(--font-display); font-weight: 800; margin-bottom: 10px; }
.article-toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.92rem; }
.article-toc li { padding-left: 12px; border-left: 2px solid var(--line); }
.article-toc a { color: var(--ink-soft); text-decoration: none; }
.article-toc a:hover { color: var(--brand); }
.article-promo { background: var(--peach); border-color: transparent; }
.article-promo p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.94rem; }
/* Fim do artigo: a página da profissão (o que vende) e quem escreveu */
.article-next { max-width: 720px; margin: 36px 0 18px; padding: 26px 28px; border-radius: 28px; background: var(--lilac); display: grid; gap: 8px; justify-items: start; }
.article-next small { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lilac-ink); }
.article-next b { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.02em; }
.article-next p { margin: 0 0 6px; color: var(--ink-soft); line-height: 1.55; }
.article-author { max-width: 720px; display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.article-author-mark { flex: none; width: 48px; height: 48px; }
.article-author-mark svg { width: 48px; height: 48px; display: block; }
.article-author b { display: block; margin-bottom: 4px; }
.article-author p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.55; }
.article-meta a { color: inherit; }
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink); max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -0.03em; margin: 1.8em 0 0.5em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.25rem; margin: 1.5em 0 0.4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; display: grid; gap: 0.4em; }
.prose a { color: var(--brand); font-weight: 600; }
.prose strong { font-weight: 800; }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-radius: 20px; background: var(--butter); color: var(--ink); }
.prose blockquote p { margin: 0; }
@media (max-width: 640px) { .article-search .btn { padding-left: 14px; padding-right: 14px; } }

/* ==========================================================
   Recursos dos planos pagos (04/10/2026): etiqueta PRO, convite, balões, clientes sumidas,
   aniversariantes, relatórios do mês e a página do salão com capa e galeria
   ========================================================== */
.app-body { --chart-1: #c2255c; --chart-2: #6d4ae0; --chart-3: #a16f00; }
.pro-tag { display: inline-block; margin-left: auto; padding: 2px 7px; border-radius: 999px; background: #f5c84c; color: #1b1420; font: 800 0.66rem/1.4 var(--font-body); letter-spacing: 0.04em; vertical-align: middle; }
h1 .pro-tag { margin-left: 6px; font-size: 0.8rem; }
.theme-options label.is-locked { opacity: 0.55; cursor: not-allowed; }
.kpi.is-peach { background: var(--peach); border-color: transparent; }
.kpi.is-peach small, .kpi.is-peach span { color: var(--peach-ink); }
.kpi.is-mint { background: var(--mint); border-color: transparent; }
.kpi.is-mint small, .kpi.is-mint span { color: var(--mint-ink); }
@media (min-width: 900px) { .kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Convite de recurso pago (tela desfocada + cartão) */
.locked-screen { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); min-height: 420px; display: grid; place-items: center; padding: 28px 18px; }
.locked-sample { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px; filter: blur(6px); opacity: 0.55; pointer-events: none; }
.locked-sample i { border-radius: 18px; }
.locked-sample .is-lilac { background: var(--lilac); }
.locked-sample .is-peach { background: var(--peach); }
.locked-sample .is-mint { background: var(--mint); }
.locked-sample .is-butter { background: var(--butter); }
.locked-card { position: relative; max-width: 480px; background: var(--surface); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-strong); display: grid; gap: 10px; }
.locked-card h2 { margin: 0; text-wrap: balance; }
.locked-card p { margin: 0; color: var(--ink-soft); }
.locked-card ul { margin: 0; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 4px; }
.locked-plan { width: fit-content; padding: 4px 11px; border-radius: 999px; background: #f5c84c; color: #1b1420; font-weight: 800; font-size: 0.78rem; }

/* Balões do painel (canto da tela) */
.nudge { position: fixed; right: 24px; bottom: 24px; z-index: 45; width: min(370px, calc(100vw - 24px)); background: var(--surface); border-radius: 24px; padding: 20px; box-shadow: var(--shadow-strong), 0 0 0 1px var(--line); display: grid; gap: 10px; animation: nudge-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; overflow: hidden; }
.nudge h3 { margin: 0; font-size: 1.12rem; line-height: 1.25; padding-right: 22px; text-wrap: balance; }
.nudge p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.nudge.is-achievement { background: linear-gradient(165deg, var(--lilac) 0%, var(--surface) 55%); }
.nudge-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 10px; }
.nudge-close:hover { color: var(--ink); background: var(--surface-soft); }
.nudge-badge { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 1.4rem; background: var(--surface); box-shadow: var(--shadow); }
.nudge .nudge-big { font: 800 2.6rem/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); }
.nudge-big small { font: 600 0.88rem/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); }
.nudge-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.nudge-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--lilac-ink); opacity: 0.3; }
.nudge-bars i:last-child { opacity: 1; background: var(--brand); }
.nudge-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.nudge-compare { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; font-size: 0.84rem; }
.nudge-compare b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nudge-track { height: 14px; border-radius: 99px; background: var(--surface-soft); overflow: hidden; }
.nudge-track i { display: block; height: 100%; min-width: 5px; border-radius: 99px; background: var(--brand); }
.nudge-track i.is-revenue { background: var(--mint-ink); }
.nudge-confetti { position: absolute; inset: 0; pointer-events: none; }
.nudge-confetti i { position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 2px; background: var(--brand); animation: nudge-confetti 2.6s ease-in both; }
.nudge-confetti i:nth-child(5n + 1) { background: #6d4ae0; }
.nudge-confetti i:nth-child(5n + 2) { background: #f5c84c; }
.nudge-confetti i:nth-child(5n + 3) { background: var(--mint-ink); }
.nudge-confetti i:nth-child(5n + 4) { background: #f2a9c4; }
.nudge-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(23, 19, 28, 0.55); animation: nudge-fade 0.3s ease both; }
.nudge-overlay .nudge.is-courtesy { position: relative; right: auto; bottom: auto; width: min(400px, 100%); padding: 26px 22px 22px; text-align: center; justify-items: center; background: linear-gradient(165deg, var(--butter) 0%, var(--surface) 60%); }
.nudge.is-courtesy h3 { padding: 0 18px; font-size: 1.35rem; }
.nudge.is-courtesy .nudge-actions { justify-content: center; }
.nudge-validity { display: grid; gap: 2px; padding: 10px 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.nudge.is-courtesy .nudge-validity span { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.nudge-validity b { font: 800 1.5rem/1.1 var(--font-display); color: var(--brand); letter-spacing: -0.02em; }
@keyframes nudge-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nudge-pop { from { transform: translateY(16px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nudge-confetti { from { transform: translateY(0) rotate(0); opacity: 1; } to { transform: translateY(260px) rotate(380deg); opacity: 0; } }
@media (max-width: 820px) { .nudge { right: 12px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .nudge, .nudge-overlay { animation: none; } .nudge-confetti { display: none; } }

/* Faixa das datas do comércio (topo do painel) */
.nudge-season { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 18px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(115deg, var(--peach) 0%, var(--brand-soft) 100%); }
.nudge-season h3 { margin: 0 0 4px; font-size: 1.1rem; text-wrap: balance; }
.nudge-season p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.9rem; max-width: 62ch; }
.nudge-countdown { background: var(--surface); border-radius: 18px; padding: 10px 16px; text-align: center; box-shadow: var(--shadow); min-width: 76px; }
.nudge-countdown b { display: block; font: 800 1.9rem/1 var(--font-display); color: var(--brand); letter-spacing: -0.03em; }
.nudge-countdown span { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.nudge-gift-card { width: 132px; aspect-ratio: 1.6; border-radius: 14px; padding: 10px 12px; display: grid; align-content: space-between; background: linear-gradient(135deg, var(--brand), #e0658e); color: #fff; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; box-shadow: var(--shadow); }
.nudge-gift-card b { font-size: 0.95rem; text-transform: none; letter-spacing: -0.01em; }
@media (max-width: 640px) { .nudge-season { grid-template-columns: auto minmax(0, 1fr); } .nudge-gift-card { display: none; } }

/* Clientes sumidas e aniversariantes */
.retention-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .retention-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.retention-row { flex-wrap: wrap; }
.retention-row .list-link { flex: 1 1 260px; }
.retention-row.is-past { opacity: 0.6; }
.retention-action { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.away-chip { padding: 4px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--butter); color: var(--butter-ink); }
.away-chip.is-mid { background: var(--peach); color: var(--peach-ink); }
.away-chip.is-high { background: var(--brand-soft); color: var(--brand-dark); }
.whats-preview { background: #ece5dd; border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.whats-preview-label { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.whats-bubble { margin: 0; justify-self: end; max-width: 94%; padding: 10px 13px; border-radius: 14px 14px 4px 14px; background: #dcf8c6; color: #111; font-size: 0.9rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); overflow-wrap: anywhere; }
.whats-preview small { color: var(--ink-soft); font-size: 0.8rem; }
/* Configurações → Confirmação pelo WhatsApp: opções à esquerda e, à direita, a mensagem do modelo da Meta como a cliente recebe */
.whatsapp-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 24px; align-items: start; }
@media (max-width: 900px) { .whatsapp-settings { grid-template-columns: minmax(0, 1fr); } }
.wa-template { background: #ece5dd; border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.wa-template > small { color: var(--ink-soft); font-size: 0.8rem; }
.wa-template-message { background: #fff; border-radius: 4px 14px 14px 14px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); overflow: hidden; color: #111; font-size: 0.88rem; line-height: 1.45; }
.wa-template-body { padding: 10px 12px 6px; overflow-wrap: anywhere; }
.wa-template-body p { margin: 0 0 10px; }
.wa-template-title { display: block; font-size: 0.95rem; margin-bottom: 6px; }
.wa-template-footer { display: flex; justify-content: space-between; gap: 8px; color: #8a8a8a; font-size: 0.78rem; }
.wa-template-button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-top: 1px solid #e9edef; color: #008069; font-weight: 600; }
.wa-template-button svg { width: 16px; height: 16px; }
.day-badge { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; align-content: center; line-height: 1.05; background: var(--surface-soft); text-align: center; }
.day-badge b { font-size: 1.05rem; }
.day-badge span { font-size: 0.66rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.birthday-today { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 16px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--butter), var(--peach)); }
.birthday-today b { font-size: 1.05rem; }
.birthday-today p { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.birthday-cake { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 640px) { .birthday-today { grid-template-columns: auto minmax(0, 1fr); } .birthday-today .retention-action { grid-column: 1 / -1; } }

/* Relatórios do mês */
.report-kpis .change { display: block; font-size: 0.8rem; font-weight: 700; }
.report-kpis .change.is-up { color: var(--mint-ink); }
.report-kpis .change.is-down { color: var(--danger); }
.report-tip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 14px 18px; border-radius: 20px; background: var(--lilac); color: var(--lilac-ink); font-weight: 600; }
.report-tip p { margin: 0; flex: 1 1 280px; }
.report-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
@media (min-width: 1000px) { .report-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.report-chart { position: relative; height: 260px; }
.chart-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.chart-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--chart-1); }
.chart-legend i.is-secondary { background: #cfc2f5; margin-left: 8px; }
.heatmap-scroll { overflow-x: auto; }
.heatmap { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 420px; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.heatmap th { font-weight: 700; color: var(--muted); text-align: center; padding: 0 0 2px; }
.heatmap tbody th { text-align: left; color: var(--ink-soft); padding-right: 4px; }
.heatmap td { height: 26px; border-radius: 6px; }
.heatmap .level-0, .heatmap-legend .level-0 { background: var(--surface-soft); }
.heatmap .level-1, .heatmap-legend .level-1 { background: #f9d9e5; }
.heatmap .level-2, .heatmap-legend .level-2 { background: #ec9bb8; }
.heatmap .level-3, .heatmap-legend .level-3 { background: #d9567f; }
.heatmap .level-4, .heatmap-legend .level-4 { background: #c2255c; }
.heatmap .is-closed, .heatmap-legend .is-closed { background: repeating-linear-gradient(135deg, var(--surface) 0 4px, var(--line) 4px 6px); }
.heatmap-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 10px; font-size: 0.76rem; color: var(--muted); }
.heatmap-legend i { width: 16px; height: 12px; border-radius: 4px; display: inline-block; }
.heatmap-legend .is-closed { margin-left: 10px; }
.origin-split { height: 18px; border-radius: 99px; background: #cfc2f5; overflow: hidden; margin: 6px 0 14px; }
.origin-split i { display: block; height: 100%; background: var(--chart-1); }
.origin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.origin-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 0.92rem; }
.origin-list li i { width: 12px; height: 12px; border-radius: 4px; background: #cfc2f5; }
.origin-list li i.is-online { background: var(--chart-1); }
.origin-list li i.is-new { background: var(--mint-ink); }
.origin-list b { font-variant-numeric: tabular-nums; }
.origin-list small { color: var(--muted); font-weight: 600; }
.rank { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; margin-right: 8px; font-size: 0.76rem; font-weight: 800; background: var(--surface-soft); }
.rank.is-first { background: #f5c84c; }
.report-email { margin-top: 16px; }
.report-email .check { align-items: flex-start; }
.report-email .check small { font-weight: 500; }

/* "Salvar em PDF" (impressão do navegador): só o conteúdo, sem menus, balões nem botões, com as cores dos cartões */
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  html, body, .app-body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sidebar, .topbar, .tabbar, .drawer, .nudge, .nudge-overlay, .nudge-season, .cookie-banner, .flash, .plan-flash, .no-print,
  .app-nav, .install-invite, .report-tip .btn { display: none !important; }
  .print-only { display: block; }
  .report-print-head { margin: 0 0 10px; font-size: 0.85rem; color: var(--muted); }
  .app-shell { display: block; padding: 0; }
  .app-main { padding: 0 !important; }
  .card, .kpi, .report-tip { break-inside: avoid; box-shadow: none; border: 1px solid var(--line) !important; }
  .report-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .report-chart { height: 230px; }
}

/* Minha página: capa e galeria */
/* Largura máxima (e não altura): assim o quadro fica sempre 5:2, igual à capa */
.cover-preview { border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 2; max-width: 760px; width: 100%; background: var(--brand-soft); margin-bottom: 12px; }
/* Editor da capa (app.js): a foto anda dentro do quadro 5:2 */
.cover-editor { display: grid; gap: 10px; max-width: 760px; margin-bottom: 12px; }
.cover-frame { position: relative; width: 100%; aspect-ratio: 5 / 2; overflow: hidden; border-radius: 20px; background: var(--surface-soft); cursor: grab; touch-action: none; user-select: none; box-shadow: 0 0 0 2px var(--brand) inset; }
.cover-frame:active { cursor: grabbing; }
.cover-frame:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 3px; }
.cover-frame img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.cover-frame-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(23, 19, 28, 0.72); color: #fff; font-size: 0.8rem; font-weight: 700; white-space: nowrap; pointer-events: none; transition: opacity 0.3s; }
.cover-frame.is-moved .cover-frame-hint { opacity: 0; }
.cover-zoom { display: flex; align-items: center; gap: 10px; max-width: 360px; font-weight: 800; color: var(--muted); }
.cover-zoom input { flex: 1; accent-color: var(--brand); }
.cover-size-hint { display: flex; gap: 8px; align-items: flex-start; max-width: 760px; margin: 0 0 6px; padding: 10px 14px; border-radius: 14px; background: var(--lilac); color: var(--lilac-ink); font-size: 0.88rem; }
.cover-size-hint svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-preview.is-empty { display: grid; place-items: center; background: color-mix(in srgb, var(--cover-brand) 18%, #fff); color: var(--ink-soft); font-weight: 700; }
.cover-preview.is-empty span { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; text-align: center; }
.cover-preview svg, .photo-delete svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.upload-form { margin: 0; }
.upload-form label.btn { cursor: pointer; }
.upload-form label.btn:focus-within { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.photo-grid li { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface-soft); }
.photo-grid a { display: block; width: 100%; height: 100%; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid form { position: absolute; top: 6px; right: 6px; margin: 0; }
.photo-delete { width: 36px; height: 36px; border-radius: 12px; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--danger); cursor: pointer; }
.photo-delete:hover { background: #fff; }
.check-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-soft); }
.check-list b { color: var(--ink); }

/* Página pública do salão: capa e "Nossos trabalhos" */
.salon-cover-photo { display: block; width: 100%; aspect-ratio: 5 / 2; max-height: 340px; object-fit: cover; }
.salon-cover.has-photo .salon-hero { padding-top: 26px; }
.salon-gallery { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) { .salon-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.salon-gallery a { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--brand-soft); }
.salon-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.salon-gallery a:hover img { transform: scale(1.04); }
/* Modal da galeria (booking.js): foto grande no fundo escuro, setas e × */
html.has-lightbox, html.has-lightbox body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: calc(16px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px)); background: rgba(14, 11, 17, 0.92); animation: lightbox-in 0.18s ease; }
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 10px; min-width: 0; height: 100%; align-content: center; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); border-radius: 14px; object-fit: contain; background: #2a2330; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); user-select: none; }
.lightbox-counter { color: #d9d1de; font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lightbox-close, .lightbox-arrow { border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.12); font: 400 2rem/1 var(--font-body); transition: background 0.15s; }
.lightbox-close:hover, .lightbox-arrow:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-close:focus-visible, .lightbox-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 1; width: 46px; height: 46px; border-radius: 15px; }
.lightbox-arrow { width: 48px; height: 64px; border-radius: 16px; }
.lightbox-arrow[hidden] { display: none; }
@media (max-width: 640px) {
  /* Celular: as setas ficam por cima da foto, nas laterais (a foto usa a tela toda) */
  .lightbox { grid-template-columns: minmax(0, 1fr); padding-left: 8px; padding-right: 8px; }
  .lightbox-figure { grid-row: 1; grid-column: 1; }
  .lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 56px; z-index: 1; background: rgba(14, 11, 17, 0.55); }
  .lightbox-arrow.is-previous { left: 8px; }
  .lightbox-arrow.is-next { right: 8px; }
}
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }

/* ==========================================================
   Sinal pelo Pix (plano Business): página do salão, página do agendamento e painel
   ========================================================== */
.deposit-tag { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: 0.74rem; font-weight: 800; }
.option-price s { display: block; font-size: 0.78rem; font-weight: 600; }
.summary-deposit { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--mint); color: var(--mint-ink); }
.summary-deposit small { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.4; }
.pix-box { display: grid; gap: 12px; margin: 0 22px 18px; padding: 18px; border-radius: 22px; background: var(--brand-soft); }
.pix-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pix-amounts div { background: var(--surface); border-radius: 16px; padding: 10px 14px; }
.pix-amounts small { display: block; font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.pix-amounts b { font: 800 1.35rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.pix-qr { width: 220px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; padding: 10px; border-radius: 18px; background: #fff; }
.pix-qr svg { width: 100%; height: 100%; display: block; }
.pix-help, .pix-policy { margin: 0; font-size: 0.82rem; text-align: center; }
.pix-deadline { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--butter); color: var(--butter-ink); font-size: 0.88rem; text-align: center; }
.pix-claimed { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--mint); color: var(--mint-ink); }
.deposit-hint { margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); font-size: 0.88rem; }
.deposit-hint.is-warning { background: var(--butter); color: var(--butter-ink); }
.deposit-card.is-claimed, .deposit-card.is-to_refund { box-shadow: 0 0 0 2px #f5c84c inset; }
.deposit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.deposit-actions form { margin: 0; }
.deposit-row { flex-wrap: wrap; }
.deposit-row .list-link { flex: 1 1 260px; }
.deposit-row .deposit-actions { margin-top: 0; }
.deposit-group + .deposit-group { margin-top: 16px; }

/* ==========================================================
   Tour de primeira visita (Holofote, tour.js): a tela escurece e só o botão da vez fica aceso
   ========================================================== */
.tour-blocker { position: fixed; inset: 0; z-index: 90; }
.tour-spot { position: fixed; z-index: 91; border-radius: 16px; pointer-events: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4000px rgba(23, 19, 28, 0.6); transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease; }
.tour-tip { position: fixed; z-index: 92; width: min(320px, calc(100vw - 20px)); background: var(--surface); color: var(--ink); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-strong); display: grid; gap: 8px; transition: top 0.3s ease, left 0.3s ease; }
.tour-tip h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; text-wrap: balance; }
.tour-tip p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.tour-count { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.tour-nav { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.tour-nav button { border: 0; border-radius: 999px; font: 800 0.82rem var(--font-body); cursor: pointer; }
.tour-skip { margin-right: auto; background: none; color: var(--muted); padding: 8px 2px; }
.tour-prev { background: var(--surface-soft); color: var(--ink); padding: 8px 14px; }
.tour-next { background: var(--ink); color: #fff; padding: 8px 16px; }
.tour-next:focus-visible, .tour-prev:focus-visible, .tour-skip:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.tour-dots { display: flex; gap: 4px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); }
.tour-dots i.is-on { width: 16px; background: var(--brand); }
/* Botão "?" no topo da página: mostra o tour de novo */
.tour-help { order: 99; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); font: 800 0.95rem var(--font-body); cursor: pointer; display: grid; place-items: center; }
.tour-help:hover { border-color: var(--ink); color: var(--ink); }
.tour-help.is-floating { position: fixed; right: 18px; top: 18px; z-index: 35; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-tip { transition: none; } }

/* ==========================================================
   Suporte: tickets (painel /app/suporte e /vibeadm/tickets)
   ========================================================== */
.support-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.support-msg { max-width: 760px; padding: 12px 14px; border-radius: 16px; background: var(--surface-soft); min-width: 0; }
.support-msg.is-mine { justify-self: end; background: var(--lilac); }
.support-msg.is-theirs { justify-self: start; }
.support-msg.is-note { justify-self: end; background: var(--butter); border: 1px dashed var(--butter-ink); }
.support-msg.is-system { justify-self: center; background: none; padding: 2px 8px; color: var(--muted); font-size: 0.82rem; text-align: center; }
.support-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.support-msg-body { overflow-wrap: anywhere; line-height: 1.5; }
.support-files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.support-files img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; display: block; border: 1px solid var(--line); }
.support-file-pdf { display: inline-block; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 0.88rem; }
.support-form { margin-top: 16px; }
.support-form h2 { margin-top: 0; }
.support-form textarea { width: 100%; }
.support-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.support-close { margin-top: 10px; }
.support-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.support-rate form { margin: 0; }
.support-list .badge { flex: none; }
/* Prazo do ticket (SupportSla::dueInfo) */
.sla-badge { flex: none; display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.78rem; font-weight: 700; line-height: 1.3; text-align: center; background: var(--surface-soft); color: var(--ink-soft); }
.sla-badge.sla-ok { background: var(--mint); color: var(--mint-ink); }
.sla-badge.sla-warn { background: var(--butter); color: var(--butter-ink); }
.sla-badge.sla-late { background: var(--danger-soft); color: var(--danger); }
.sla-badge.sla-paused, .sla-badge.sla-done { background: var(--surface-soft); color: var(--muted); }
.ticket-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .ticket-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.ticket-layout aside h3 { margin-top: 0; }
.ticket-facts { margin: 0; display: grid; gap: 8px; }
.ticket-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; font-size: 0.88rem; }
.ticket-facts dt { color: var(--muted); font-weight: 700; }
.ticket-facts dd { margin: 0; overflow-wrap: anywhere; }
.ticket-next { border: 0; padding: 0; margin: 4px 0 14px; display: grid; gap: 6px; }
.ticket-next legend { font-weight: 800; margin-bottom: 6px; }
.ticket-assign { display: flex; gap: 6px; margin-top: 10px; }
.ticket-assign select { flex: 1; min-width: 0; }
.ticket-status-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.ticket-status-buttons form { margin: 0; }
.sla-hours { width: 90px; }
.team-admin-row { flex-wrap: wrap; }
.ticket-unassigned { font-weight: 800; color: var(--danger); }
/* /vibeadm → Minha segurança e Equipe */
.team-security-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.team-security-actions form { margin: 0; }
.totp-steps { padding-left: 20px; display: grid; gap: 10px; }
.totp-qr { width: 200px; max-width: 100%; margin: 10px 0 6px; background: #fff; border-radius: 12px; }
.totp-qr svg { display: block; width: 100%; height: auto; }
.totp-key { font-size: 0.95rem; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.totp-confirm { display: flex; gap: 8px; max-width: 320px; }
.totp-confirm input { flex: 1; min-width: 0; font-size: 1.2rem; letter-spacing: 0.25em; text-align: center; }
.auth-code-title { font-size: 1.3rem; margin: 0 0 12px; }
/* Financeiro: filtros (mês, datas, profissional) e lista de atendimentos */
.finance-filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin-bottom: 16px; }
.finance-filters .field { margin: 0; }
.finance-filters select, .finance-filters input { min-height: 42px; padding: 6px 10px; }
.finance-rows { margin-top: 18px; }
.finance-rows-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.finance-rows-filter select { flex: 0 1 230px; min-width: 0; }
.finance-rows-filter input[type="search"] { flex: 1 1 220px; min-width: 0; }
.finance-table td { vertical-align: top; }
.nowrap { white-space: nowrap; }
.finance-rows-note { margin: -4px 0 10px; font-size: 0.86rem; }
/* Aviso de mudança de plano (partials/plan-warning.php): popup no meio + faixa no topo */
.nudge-overlay .nudge.is-plan-warning { position: relative; right: auto; bottom: auto; width: min(420px, 100%); padding: 26px 22px 22px; text-align: center; justify-items: center; background: linear-gradient(165deg, var(--danger-soft) 0%, var(--surface) 55%); }
.nudge.is-plan-warning h3 { padding: 0 18px; font-size: 1.3rem; }
.nudge.is-plan-warning .nudge-actions { justify-content: center; }
.nudge.is-plan-warning .nudge-validity span { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.nudge.is-plan-warning .nudge-validity b { color: var(--danger); }

/* ==========================================================
   Site de divulgação (08/10/2026): botão flutuante do WhatsApp, compartilhar, "sem fidelidade"
   e o preço como vantagem (#preco da página inicial, landing.js)
   ========================================================== */
/* Botão flutuante "Fale conosco" (partials/whatsapp-float.php) */
.whatsapp-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px;
  background: #25d366; color: #0b3d20; font-weight: 800; font-size: 0.95rem; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(11, 61, 32, 0.55); animation: whatsapp-float-in 0.5s ease 1s both;
}
.whatsapp-float:hover { background: #1fb457; color: #0b3d20; transform: translateY(-2px); }
.whatsapp-float .icon { width: 28px; height: 28px; stroke-width: 2.2; }
/* Um "pulso" leve a cada poucos segundos para chamar a atenção, sem atrapalhar */
.whatsapp-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); animation: whatsapp-pulse 4s ease-out 2s infinite; pointer-events: none; }
@keyframes whatsapp-float-in { from { opacity: 0; transform: translateY(20px) scale(0.9); } }
@keyframes whatsapp-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); } 40%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
/* Enquanto o aviso de cookies está aberto, o botão sai da frente */
body:has(.cookie-banner:not([hidden])) .whatsapp-float { display: none; }
@media (max-width: 820px) {
  .whatsapp-float { padding: 14px; right: 14px; }
  .whatsapp-float-label { display: none; }
  .is-phone body:has(.app-nav:not([hidden])) .whatsapp-float { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float, .whatsapp-float::after { animation: none; } }
@media print { .whatsapp-float { display: none; } }

.cta-band + .no-commitment { margin-top: 28px; }

/* "Sem fidelidade" (partials/no-commitment.php) */
.no-commitment { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .no-commitment { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .no-commitment { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.no-commitment li { position: relative; padding: 16px 18px 16px 52px; border-radius: var(--radius-small); background: var(--mint); }
.no-commitment li::before {
  content: "✓"; position: absolute; left: 16px; top: 15px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--success); color: #fff; font-weight: 800; font-size: 0.85rem;
}
.no-commitment b { display: block; color: var(--mint-ink); font-size: 1rem; }
.no-commitment span { display: block; margin-top: 2px; font-size: 0.88rem; color: var(--ink-soft); }

/* Botão da faixa final com a frase "sem cartão · sem fidelidade" embaixo */
.cta-band-action { display: grid; gap: 10px; justify-items: center; }
.cta-band-action small { color: rgba(255, 255, 255, 0.72); font-weight: 600; font-size: 0.88rem; }

/* Preço como vantagem: calculadora das faltas × plano (landing.js) */
.price-compare { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .price-compare { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.loss-card { padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; display: grid; gap: 22px; }
.loss-field { display: grid; gap: 10px; margin: 0; }
.loss-field > span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.loss-field output { font: 800 1.35rem/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.loss-field input[type="range"] { width: 100%; accent-color: var(--gold); height: 28px; cursor: pointer; }
.loss-bars { display: grid; gap: 14px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.loss-bar { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.loss-bar span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.loss-bar b { font: 800 1.15rem/1 var(--font-display); font-variant-numeric: tabular-nums; min-width: 6.5ch; text-align: right; }
.loss-track { height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.loss-track i { display: block; height: 100%; border-radius: inherit; transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.loss-bar.is-loss i { background: linear-gradient(90deg, #ff8a80, #ff5252); }
.loss-bar.is-loss b { color: #ff8a80; }
.loss-bar.is-plan i { background: #4ade80; }
.loss-bar.is-plan b { color: #4ade80; }
.loss-verdict { margin: 0; font-size: 1.05rem; color: #fff; }
.loss-verdict b { color: var(--gold); }
@media (max-width: 560px) {
  .loss-card { padding: 22px 18px; }
  .loss-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .loss-bar .loss-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .loss-track i { transition: none; } }
.price-facts { display: grid; gap: 12px; align-content: start; }
.price-fact { padding: 20px 22px; border-radius: var(--radius-small); display: grid; gap: 4px; }
.price-fact b { font: 800 clamp(1.8rem, 4vw, 2.4rem)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-fact span { color: var(--ink-soft); font-size: 0.95rem; }
.price-fact.is-mint { background: var(--mint); } .price-fact.is-mint b { color: var(--mint-ink); }
.price-fact.is-lilac { background: var(--lilac); } .price-fact.is-lilac b { color: var(--lilac-ink); }
.price-fact.is-butter { background: var(--butter); } .price-fact.is-butter b { color: var(--butter-ink); }
.price-note { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }

/* /vibeadm → Funil (SignupFunnel): uma barra por etapa, proporcional aos cadastros */
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.funnel li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 9rem); gap: 14px; align-items: center; }
.funnel-label b { display: block; }
.funnel-label small, .funnel-numbers small { display: block; color: var(--muted); font-size: 0.8rem; }
.funnel-track { height: 22px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; }
.funnel-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.funnel-numbers { text-align: right; }
.funnel-numbers b { font: 800 1.3rem/1 var(--font-display); }
@media (max-width: 720px) {
  .funnel li { grid-template-columns: minmax(0, 1fr) auto; }
  .funnel-track { grid-column: 1 / -1; grid-row: 2; }
}
.funnel-numbers small + small { margin-top: 2px; }
.funnel-note { margin: 12px 0 0; font-size: 0.86rem; }
.funnel-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .funnel-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.funnel-grid { display: grid; gap: 18px; margin-top: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .funnel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .funnel-grid > .is-full { grid-column: 1 / -1; } }
.funnel-subtitle { margin: 18px 0 8px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.funnel-salons td { vertical-align: top; }
.funnel-note-form { margin-top: 6px; }
.funnel-note-form summary { cursor: pointer; font-size: 0.85rem; font-weight: 700; color: var(--brand); }
.funnel-note-form form { display: grid; gap: 6px; margin-top: 6px; min-width: 220px; }
.funnel-note-form textarea { width: 100%; font: inherit; font-size: 0.88rem; }
.funnel-call-form { display: inline; margin: 0; }

/* "Não precisa de cartão de crédito" (partials/no-card.php e o cartão do plano grátis), pedido em 08/10/2026 */
.no-card { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--mint); color: var(--ink-soft); font-size: 0.95rem; max-width: 100%; }
.no-card b { color: var(--mint-ink); }
.no-card-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--success); color: #fff; }
.no-card-icon .icon { width: 22px; height: 22px; }
.plan-no-card { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: 0.82rem; font-weight: 700; }
.plan-no-card .icon { width: 16px; height: 16px; }
.auth-card .no-card { margin-top: 4px; }

/* ==========================================================
   Página inicial animada (08/10/2026, landing.js). Tudo só vale com a classe .is-animated, que o JavaScript
   põe quando a pessoa não pediu "reduzir movimento": sem ela, as telas ficam paradas como antes.
   ========================================================== */
/* Dedinho que "toca" na tela (celular do topo e mensagem do WhatsApp) */
.lp-finger {
  position: absolute; left: 0; top: 0; z-index: 5; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: rgba(23, 19, 28, 0.2); border: 2px solid rgba(255, 255, 255, 0.95); box-shadow: 0 6px 14px rgba(23, 19, 28, 0.3);
  opacity: 0; pointer-events: none; transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.3s;
}
.lp-finger.is-visible { opacity: 1; }
.lp-finger.is-tap { animation: finger-tap 0.35s ease; }
@keyframes finger-tap { 50% { scale: 0.72; background: rgba(194, 37, 92, 0.45); } }

/* 1. Celular do topo agendando sozinho */
.lp-visual.is-animated .lp-days span,
.lp-visual.is-animated .lp-times span { transition: background 0.25s, color 0.25s, border-color 0.25s, scale 0.2s; }
.lp-visual.is-animated .is-pressed { scale: 0.92; }
.lp-visual.is-animated .lp-service { transition: opacity 0.3s, translate 0.3s; }
.lp-visual.is-animated .lp-service.is-swapping { opacity: 0; translate: 0 8px; }
.lp-visual.is-animated .lp-phone-cta { transition: background 0.3s, color 0.3s, scale 0.2s; }
.lp-phone-cta.is-waiting { background: var(--surface-soft); color: var(--muted); }
.lp-phone-cta.is-done { background: var(--success); }
.lp-visual.is-animated .lp-notify { opacity: 0; translate: -28px 0; scale: 0.96; transition: opacity 0.45s, translate 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), scale 0.45s; }
.lp-visual.is-animated .lp-notify.is-shown { opacity: 1; translate: 0 0; scale: 1; }
.lp-visual.is-animated .lp-bars i { transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lp-visual.is-animated .lp-stat.is-bump { animation: stat-bump 0.5s ease; }
@keyframes stat-bump { 40% { scale: 1.05; } }

/* 2. Mensagem do WhatsApp: "digitando…" → mensagem → toque em Confirmar → ✅ */
.tile-chat { position: relative; }
.tile-chat-typing, .tile-chat-done { display: none; }
.tile-chat-typing { position: absolute; left: 0; top: 0; gap: 5px; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: #fff; }
.tile-chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing-dot 1s infinite ease-in-out; }
.tile-chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.tile-chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot { 0%, 60%, 100% { translate: 0 0; opacity: 0.45; } 30% { translate: 0 -4px; opacity: 1; } }
.tile-chat-done { padding: 10px 12px; border-radius: 14px; background: var(--success); color: #fff; text-align: center; font-weight: 800; font-size: 0.82rem; }
.tile-chat.is-animated .tile-chat-done { display: block; opacity: 0; scale: 0.9; transition: opacity 0.35s, scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.tile-chat.is-animated[data-step="typing"] .tile-chat-typing { display: inline-flex; }
.tile-chat.is-animated .tile-chat-bubble,
.tile-chat.is-animated .tile-chat-button { transition: opacity 0.4s, translate 0.4s, scale 0.2s, background 0.25s; }
.tile-chat.is-animated[data-step="typing"] .tile-chat-bubble,
.tile-chat.is-animated[data-step="typing"] .tile-chat-button { opacity: 0; translate: 0 10px; }
.tile-chat.is-animated[data-step="typing"] .tile-chat-button { transition-delay: 0s; }
.tile-chat.is-animated[data-step="message"] .tile-chat-button:nth-of-type(2) { transition-delay: 0.15s; }
.tile-chat.is-animated[data-step="message"] .tile-chat-button:nth-of-type(3) { transition-delay: 0.3s; }
.tile-chat.is-animated[data-step="tap"] [data-chat-confirm] { scale: 0.95; box-shadow: inset 0 0 0 2px var(--success); }
.tile-chat.is-animated[data-step="done"] [data-chat-confirm] { box-shadow: inset 0 0 0 2px var(--success); color: var(--success); }
.tile-chat.is-animated[data-step="done"] .tile-chat-done { opacity: 1; scale: 1; }

/* 3. Importação: linhas da planilha descendo, seta pulsando e o contador subindo */
.tile-import.is-animated .tile-import-sheet span:not(:first-child) { opacity: 0; translate: -12px 0; transition: opacity 0.35s, translate 0.35s; }
.tile-import.is-animated .tile-import-sheet span.is-shown { opacity: 1; translate: 0 0; }
.tile-import.is-animated[data-step="importing"] .tile-import-arrow { animation: import-arrow 0.6s ease-in-out infinite; color: var(--success); }
@keyframes import-arrow { 50% { translate: 0 5px; } }
.tile-import.is-animated .tile-import-done { transition: opacity 0.3s, scale 0.3s; }
.tile-import.is-animated[data-step="start"] .tile-import-done { opacity: 0.35; scale: 0.95; }
.tile-import.is-animated[data-step="done"] .tile-import-done { animation: stat-bump 0.5s ease; }
.tile-import-done b { font-variant-numeric: tabular-nums; }

/* 4. Blocos surgindo ao rolar a página (landing.js põe .reveal e, quando aparece na tela, .is-visible) */
.reveal { opacity: 0; translate: 0 26px; transition: opacity 0.6s ease, translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; translate: 0 0; }
@media print { .reveal { opacity: 1; translate: none; } .lp-finger { display: none; } }

/* Salão de demonstração (DemoSalon): faixa no topo da página de exemplo e a confirmação de exemplo */
.demo-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 10px 16px; background: var(--ink); color: #fff; font-size: 0.9rem; text-align: center; }
.demo-bar .btn { background: #fff; color: var(--ink); }
.demo-done-explain { margin: 0 22px 22px; padding: 16px 18px; border-radius: 18px; background: var(--brand-soft); font-size: 0.92rem; }
.demo-done-explain p { margin: 0 0 8px; }
.demo-done-explain ul { margin: 0 0 10px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.demo-done-actions { display: grid; gap: 10px; margin-top: 18px; }
.demo-cta { display: grid; justify-items: center; gap: 10px; margin: 32px 0 0; text-align: center; }

/* Página de exemplo dentro de um celular desenhado (landing.js, data-demo-phone), pedido em 08/10/2026 */
html.has-demo-phone { overflow: hidden; }
.demo-phone-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.demo-phone-modal[hidden] { display: none; }
.demo-phone-backdrop { position: absolute; inset: 0; background: rgba(23, 19, 28, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: nudge-fade 0.25s ease; }
.demo-phone-stage { position: relative; display: grid; justify-items: center; gap: 12px; animation: demo-phone-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes demo-phone-in { from { opacity: 0; translate: 0 30px; scale: 0.96; } }
.demo-phone {
  position: relative; width: min(390px, calc(100vw - 32px)); height: min(800px, calc(100dvh - 110px));
  padding: 34px 12px 14px; border-radius: 54px; background: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #3a3240;
}
.demo-phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 30px; background: #fff; }
.demo-phone-notch { position: absolute; top: 13px; left: 50%; z-index: 2; width: 70px; height: 8px; margin-left: -35px; border-radius: 999px; background: #3a3240; pointer-events: none; }
.demo-phone-loading { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid var(--brand-soft); border-right-color: var(--brand); animation: spin 0.8s linear infinite; }
.demo-phone-modal.is-loaded .demo-phone-loading { display: none; }
.demo-phone-close {
  position: absolute; top: -6px; right: -52px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%;
  display: grid; place-items: center; padding: 0; background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow);
}
/* Ícone desenhado (não a letra "×", que fica fora do centro por causa da altura da fonte) */
.demo-phone-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.demo-phone-close:hover { background: var(--brand-soft); }
.demo-phone-hint { margin: 0; color: #fff; font-size: 0.92rem; text-align: center; }
/* Celular de verdade: o exemplo ocupa a tela inteira, com o "Fechar" embaixo */
@media (max-width: 600px) {
  .demo-phone-modal { padding: 0; }
  .demo-phone { width: 100vw; height: 100dvh; padding: 0; border-radius: 0; box-shadow: none; }
  .demo-phone iframe { border-radius: 0; }
  .demo-phone-notch, .demo-phone-hint { display: none; }
  .demo-phone-close { position: fixed; top: auto; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; background: var(--ink); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .demo-phone-stage, .demo-phone-backdrop { animation: none; } }
/* Dentro do celular desenhado: sem aviso de cookies, convite de instalar nem barra do rodapé */
html.is-embedded { scrollbar-width: none; }
html.is-embedded::-webkit-scrollbar { display: none; }
html.is-embedded .cookie-banner, html.is-embedded .install-invite, html.is-embedded .app-nav, html.is-embedded .whatsapp-float { display: none !important; }
