/* ==========================================================
   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;
  --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; }
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; }
.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; }
.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; }
.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; }
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; }
.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; }
.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 { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }

/* 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; }

/* 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; }
.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); }

/* 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; } }

.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: 46px; height: 46px; 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: 22px; height: 22px; }
.tabbar .tab-new { width: 52px; height: 52px; border-radius: 18px; background: var(--brand); color: #fff; }
.tabbar .tab-new svg { width: 24px; height: 24px; 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: copy; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 90px; margin: 0 4px; }
.column.is-today { background-color: #fffbfc; }
.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); }
.event.is-completed { opacity: 0.7; }
.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); }
.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; }
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; }
.team-card { padding: 18px; display: grid; gap: 12px; align-content: start; }
.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-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); }
.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; }
.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; }

/* 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; }
.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; }
.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); }

/* 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); }
.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); }
.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; }
.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; } }
