/* D2 Agenda — visual no padrão Plutto: fundo bege, verde-limão, preto, menu no topo e blocos */
:root {
  --bg: #F2ECE1; --bg2: #E9E1D3; --card: #FFFDF8; --txt: #141414; --muted: #6B665E; --linha: #E2D9C9;
  --limao: #D4FF3A; --limao-txt: #141414; --preto: #141414; --preto-txt: #F2ECE1; --campo: #FFFFFF;
  --forte: #D4FF3A; --ok: #1E9E5A; --erro: #D23B3B; --aviso: #C98300; --azul: #2F6FED;
  --raio: 20px; --raio-sm: 12px; --sombra: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px -12px rgba(60,45,20,.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0F0F; --bg2: #191919; --card: #1A1A1A; --txt: #F2ECE1; --muted: #A39D92; --linha: #2C2C2C;
    --preto: #F2ECE1; --preto-txt: #141414; --campo: #121212; --sombra: none; --forte: #141414; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0F0F; --bg2: #191919; --card: #1A1A1A; --txt: #F2ECE1; --muted: #A39D92; --linha: #2C2C2C;
  --preto: #F2ECE1; --preto-txt: #141414; --campo: #121212; --sombra: none; --forte: #141414; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 15px/1.5 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--linha); margin: 6px 0; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.pequeno { font-size: .82rem; }
.mt { margin-top: 18px; }
[hidden] { display: none !important; }

/* ---------- Topo ---------- */
.topo { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); padding-top: env(safe-area-inset-top); }
.topo-in { max-width: 1180px; margin: auto; display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; min-width: 0; }
.marca img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.marca-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.marca-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--limao); color: var(--limao-txt); font-weight: 800; font-size: .9rem; flex: none; }
.marca-ico.grande { width: 56px; height: 56px; border-radius: 16px; font-size: 1.2rem; margin-bottom: 12px; }
.menu { display: flex; gap: 4px; flex: 1; justify-content: center; }
.menu a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .92rem; color: var(--muted); white-space: nowrap; }
.menu a:hover { color: var(--txt); background: var(--bg2); }
.menu { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
@media (min-width: 961px) { .menu { mask-image: none; -webkit-mask-image: none; } }
.menu a.on { background: var(--preto); color: var(--preto-txt); }
.topo-acoes { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ico-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--linha); background: var(--card); color: var(--txt); cursor: pointer; text-decoration: none; font-size: 1rem; }
.ico-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sino b { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--erro); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.perfil { position: relative; }
.perfil summary { list-style: none; cursor: pointer; }
.perfil summary::-webkit-details-marker { display: none; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--limao); color: var(--limao-txt); font-weight: 700; flex: none; }
.avatar.g { width: 46px; height: 46px; border-radius: 14px; font-size: 1.1rem; }
.perfil-menu { position: absolute; right: 0; top: 48px; width: 230px; background: var(--card); border: 1px solid var(--linha); border-radius: 16px; padding: 10px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.3); display: flex; flex-direction: column; }
.perfil-menu strong { padding: 6px 10px 0; }
.perfil-menu small { padding: 0 10px 8px; color: var(--muted); border-bottom: 1px solid var(--linha); margin-bottom: 6px; }
.perfil-menu a, .perfil-menu button { text-decoration: none; padding: 9px 10px; border-radius: 10px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.perfil-menu a:hover, .perfil-menu button:hover { background: var(--bg2); }
.faixa-suporte { background: var(--aviso); color: #fff; text-align: center; padding: 6px 12px; font-size: .88rem; }
.faixa-suporte a { color: #fff; font-weight: 600; }
.push-aviso { max-width: 1180px; margin: 12px auto 0; padding: 12px 16px; background: var(--preto); color: var(--preto-txt); border-radius: var(--raio-sm); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; width: calc(100% - 32px); }

/* ---------- Página ---------- */
.pagina { width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px 16px 40px; flex: 1; }
.pagina.estreita { max-width: 520px; }
.estreito { max-width: 560px; }
.rodape { text-align: center; color: var(--muted); font-size: .8rem; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.titulo-pag { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.titulo-pag h1 { margin: 0; }
.titulo-pag p { margin: 4px 0 0; }
.secao { margin: 24px 0 12px; }
.cartao { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; box-shadow: var(--sombra); }
.cartao + .cartao { margin-top: 16px; }
.cartao-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.link { font-size: .88rem; font-weight: 600; text-decoration: none; }
.vazio { text-align: center; padding: 40px 20px; }
.vazio-p { padding: 12px 0; margin: 0; }
.duas-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.duas-col > .cartao + .cartao { margin-top: 0; }
.col-lateral { display: flex; flex-direction: column; gap: 16px; }
.col-lateral .cartao + .cartao { margin-top: 0; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; font: 600 .93rem Poppins, system-ui, sans-serif; cursor: pointer; text-decoration: none; transition: transform .08s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-preto { background: var(--preto); color: var(--preto-txt); }
.btn-limao { background: var(--limao); color: var(--limao-txt); }
.btn-limao:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--limao) 35%, transparent); }
.btn-borda { background: transparent; color: var(--txt); border-color: var(--linha); }
.btn-borda:hover { border-color: var(--txt); }
.btn-bloco { width: 100%; }
.btn-grande { padding: 15px 22px; font-size: 1rem; }
.botoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.botoes form { display: contents; }

/* ---------- Formulários ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .88rem; }
input, select, textarea { font: 400 .95rem Poppins, system-ui, sans-serif; color: var(--txt); background: var(--campo); border: 1.5px solid var(--linha); border-radius: var(--raio-sm); padding: 11px 13px; width: 100%; min-height: 46px; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--txt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--limao) 55%, transparent); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--preto); padding: 0; flex: none; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; flex-wrap: wrap; }
.form label.check small { flex-basis: 100%; font-weight: 400; margin-left: 28px; margin-top: -6px; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prefixo { display: flex; align-items: center; border: 1.5px solid var(--linha); border-radius: var(--raio-sm); background: var(--campo); overflow: hidden; }
.prefixo span { padding: 0 2px 0 13px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.prefixo input { border: 0; padding-left: 2px; box-shadow: none !important; }
.prefixo:focus-within { border-color: var(--txt); }
fieldset { border: 1px solid var(--linha); border-radius: var(--raio-sm); padding: 10px 12px 12px; margin: 0; }
legend { font-size: .85rem; font-weight: 600; padding: 0 6px; }
.chips-check, .opcoes-pag { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao { position: relative; flex-direction: row !important; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.opcao span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--linha); cursor: pointer; font-weight: 500; font-size: .88rem; background: var(--campo); }
.opcao input:checked + span { background: var(--preto); color: var(--preto-txt); border-color: var(--preto); }
.opcao input:focus-visible + span { box-shadow: 0 0 0 3px var(--limao); }

/* ---------- Alertas e selos ---------- */
.alerta { padding: 12px 16px; border-radius: var(--raio-sm); margin-bottom: 14px; font-size: .92rem; border: 1px solid; }
.alerta-ok { background: color-mix(in srgb, var(--ok) 12%, var(--card)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.alerta-erro { background: color-mix(in srgb, var(--erro) 12%, var(--card)); border-color: color-mix(in srgb, var(--erro) 40%, transparent); }
.alerta-aviso { background: color-mix(in srgb, var(--aviso) 14%, var(--card)); border-color: color-mix(in srgb, var(--aviso) 40%, transparent); }
.form .alerta { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.st-pendente { background: color-mix(in srgb, var(--aviso) 16%, transparent); color: var(--aviso); }
.st-confirmado { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.st-concluido { background: color-mix(in srgb, var(--azul) 14%, transparent); color: var(--azul); }
.st-cancelado, .st-faltou { background: color-mix(in srgb, var(--erro) 13%, transparent); color: var(--erro); }
.tag { font-size: .72rem; padding: 2px 8px; border-radius: 6px; background: var(--bg2); margin-left: 6px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--bg2); text-decoration: none; font-size: .85rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--preto); color: var(--preto-txt); }
.chips-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }

/* ---------- Blocos (dashboard) ---------- */
.blocos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.bloco { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px; display: flex; flex-direction: column; gap: 4px; min-height: 118px; box-shadow: var(--sombra); }
.bloco small { color: inherit; opacity: .7; font-weight: 500; font-size: .8rem; }
.bloco strong { font-size: 1.55rem; font-weight: 700; line-height: 1.15; margin-top: auto; }
.bloco span { font-size: .82rem; opacity: .75; }
.bloco-limao { background: var(--limao); color: var(--limao-txt); border-color: transparent; }
.bloco-preto { background: var(--preto); color: var(--preto-txt); border-color: transparent; }
.bloco-preto strong { color: var(--forte); }
.bloco-largo strong { font-size: 1.25rem; }

.primeiros { margin-bottom: 16px; border: 2px dashed var(--linha); }
.passos-lista { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.passo { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg2); text-decoration: none; font-weight: 500; font-size: .88rem; }
.passo span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; flex: none; font-size: .75rem; }
.passo.feito { opacity: .6; text-decoration: line-through; }
.passo.feito span { background: var(--limao); border-color: var(--limao); color: #141414; }

.barras { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.barra { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; text-decoration: none; gap: 4px; }
.barra-b { width: 100%; max-width: 34px; background: var(--limao); border-radius: 8px 8px 4px 4px; min-height: 4px; }
.barra:first-child .barra-b { background: var(--preto); }
.barra-n { font-size: .8rem; font-weight: 600; }
.barra small { font-size: .72rem; color: var(--muted); }
.copiar-linha { display: flex; gap: 8px; margin-bottom: 10px; }
.copiar-linha input { min-height: 38px; padding: 7px 11px; font-size: .85rem; }

/* ---------- Agendamentos (cartões) ---------- */
.lista-ag { display: flex; flex-direction: column; gap: 10px; }
.ag { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--linha); border-left: 5px solid var(--ok); scroll-margin-top: 90px; }
.ag-pendente { border-left-color: var(--aviso); }
.ag-concluido { border-left-color: var(--azul); }
.ag-cancelado, .ag-faltou { border-left-color: var(--erro); opacity: .62; }
.ag:target { box-shadow: 0 0 0 3px var(--limao); }
.ag-hora { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.ag-hora b { font-size: 1.1rem; }
.ag-hora small { color: var(--muted); font-size: .75rem; }
.ag-info { flex: 1; min-width: 0; }
.ag-linha { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ag-sub { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.pag.pago { color: var(--ok); font-weight: 600; }
.ag-obs { font-size: .85rem; font-style: italic; margin-top: 6px; padding: 6px 10px; background: var(--card); border-radius: 8px; }
.ag-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.destaque { border: 2px solid var(--aviso); }
.destaque h2 { display: flex; align-items: center; gap: 8px; }

.nav-dia { display: flex; align-items: center; gap: 8px; padding: 10px; }
.nav-dia-form { display: flex; gap: 8px; flex: 1; }
.nav-dia-form input, .nav-dia-form select { min-height: 38px; padding: 6px 10px; }
.semana-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0 16px; }
.semana-strip .dia { padding: 8px 0; }
.bloqueios { margin-bottom: 16px; }
.linha-bloq { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linha); font-size: .9rem; }

/* ---------- Diálogos ---------- */
.dialogo { border: 0; border-radius: 24px; padding: 22px; width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: var(--card); color: var(--txt); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.dialogo::backdrop { background: rgba(10,10,10,.5); backdrop-filter: blur(2px); }
.dlg-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dlg-topo h2 { margin: 0; }

/* ---------- Listas de cadastro ---------- */
.lista-cards { display: flex; flex-direction: column; gap: 10px; }
.lista-cards .cartao + .cartao { margin-top: 0; }
.card-serv { padding: 14px 16px; }
.card-serv.inativo, .card-prof.inativo { opacity: .55; }
.card-serv.arrastando { opacity: .4; }
.card-serv-topo { display: flex; align-items: center; gap: 12px; }
.card-serv-topo > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card-serv-topo small { font-size: .82rem; }
.alca { cursor: grab; color: var(--muted); letter-spacing: -3px; user-select: none; }
.grade-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.grade-cards .cartao + .cartao { margin-top: 0; }
.card-prof-topo { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.card-prof-topo img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.card-prof-topo div { display: flex; flex-direction: column; }
.card-prof-topo small { color: var(--muted); font-size: .8rem; }

.tabela-horarios { gap: 0; }
.linha-dia { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.linha-dia .dia-nome { min-width: 120px; }
.linha-dia .horas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex: 1; min-width: 280px; }
.linha-dia .horas label { gap: 2px; }
.linha-dia .horas small { font-size: .72rem; color: var(--muted); }
.linha-dia .horas input { min-height: 40px; padding: 7px 8px; min-width: 0; }
.linha-dia .horas label { min-width: 0; }
.linha-dia.off .horas { opacity: .35; pointer-events: none; }
.tabela-horarios .botoes { padding-top: 16px; }

.busca { display: flex; gap: 8px; padding: 10px; margin-bottom: 16px; }
.busca input { min-height: 42px; }
.tabela-wrap { padding: 6px 4px; overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabela th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; font-weight: 600; }
.tabela td { padding: 12px; border-top: 1px solid var(--linha); vertical-align: middle; }
.acoes-td { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.logo-linha { display: flex; gap: 14px; align-items: center; }

.lista-notif { padding: 8px; }
.notif { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; }
.notif:hover { background: var(--bg2); }
.notif span { grid-column: 1; color: var(--muted); font-size: .88rem; }
.notif small { grid-row: 1; grid-column: 2; color: var(--muted); font-size: .78rem; }
.notif.nova { background: color-mix(in srgb, var(--limao) 22%, transparent); }

#toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100% - 32px)); }
.toast { display: flex; flex-direction: column; background: var(--preto); color: var(--preto-txt); padding: 14px 16px; border-radius: 16px; text-decoration: none; box-shadow: 0 16px 40px -10px rgba(0,0,0,.45); border-left: 5px solid var(--limao); animation: entra .25s ease-out; transition: opacity .5s, transform .5s; }
.toast span { font-size: .85rem; opacity: .85; }
.toast.sai { opacity: 0; transform: translateY(10px); }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Login / cadastro ---------- */
.login-wrap { display: grid; place-items: center; padding: 3vh 0; }
.login-box { width: 100%; max-width: 420px; padding: 30px 26px; }
.login-box.larga { max-width: 520px; }
.login-box h1 { margin-bottom: 4px; }
.login-box > p { margin-top: 0; }
.login-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: .88rem; gap: 10px; flex-wrap: wrap; }

/* ---------- Página inicial ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: 3vh 0 28px; }
.selo { display: inline-block; background: var(--card); border: 1px solid var(--linha); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.hero mark { background: var(--limao); color: #141414; padding: 0 .15em; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p { font-size: 1.05rem; color: var(--muted); max-width: 560px; }
.hero-acoes { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.busca-salao { display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--linha); border-radius: 999px; padding: 5px 5px 5px 16px; max-width: 420px; }
.busca-salao span { color: var(--muted); font-size: .9rem; }
.busca-salao input { border: 0; min-height: 36px; padding: 4px 2px; background: transparent; box-shadow: none !important; }
.hero-card { transform: rotate(1.5deg); }
.mini-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mini-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg); margin-top: 8px; }
.mini-item span { font-weight: 700; }
.mini-item div { display: flex; flex-direction: column; }
.mini-item small { color: var(--muted); }
.mini-item.on { background: var(--limao); color: #141414; }
.mini-item.on small { color: #141414; opacity: .7; }
.blocos-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.blocos-3 .bloco b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); color: var(--txt); margin-bottom: 10px; }
.blocos-3 .bloco-limao b, .blocos-3 .bloco-preto b { background: rgba(255,255,255,.25); color: inherit; }
.blocos-3 .bloco p { margin: 0; opacity: .8; font-size: .92rem; }
.lista-check { columns: 2; padding: 0; margin: 0; list-style: none; }
.lista-check li { padding: 6px 0 6px 30px; position: relative; break-inside: avoid; }
.lista-check li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--limao); color: #141414; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }

/* ---------- Página do salão / agendamento ---------- */
.salao-topo { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.salao-topo h1 { margin-bottom: 2px; }
.salao-topo p { margin: 0 0 10px; }
.salao-logo { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; background: var(--bg2); flex: none; }
.salao-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.chip-det summary { list-style: none; }
.chip-det summary::-webkit-details-marker { display: none; }
.chip-det[open] summary { background: var(--preto); color: var(--preto-txt); }
.tab-mini { margin-top: 8px; font-size: .85rem; border-collapse: collapse; }
.tab-mini td { padding: 3px 14px 3px 0; }
.salao-sobre { margin: 12px 0 0 !important; font-size: .92rem; }
.salao-topo.compacto { flex-direction: row !important; align-items: center !important; text-align: left !important; gap: 12px; padding: 10px 14px; }
.salao-topo.compacto .salao-logo { width: 40px; height: 40px; border-radius: 12px; }
.salao-topo.compacto h1 { font-size: 1.05rem; margin: 0; }
.salao-topo.compacto p, .salao-topo.compacto .salao-links, .salao-topo.compacto .salao-sobre { display: none; }

.agendar { max-width: 720px; margin: 0 auto; scroll-margin-top: 80px; }
.passos { display: flex; list-style: none; padding: 0; margin: 0 0 14px; gap: 6px; counter-reset: p; }
.passos li { flex: 1; font-size: .75rem; font-weight: 600; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--linha); counter-increment: p; }
.passos li::before { content: counter(p) ". "; }
.passos li.on { border-color: var(--preto); color: var(--txt); }
.etapa { animation: entra .2s ease-out; }
.voltar { background: none; border: 0; font: 600 .88rem Poppins, sans-serif; color: var(--muted); cursor: pointer; padding: 0; margin-bottom: 8px; }
.lista-serv, .lista-prof { display: flex; flex-direction: column; gap: 8px; }
.item-serv, .item-prof { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 15px 16px; border-radius: 16px; border: 1.5px solid var(--linha); background: var(--bg); color: var(--txt); font: inherit; cursor: pointer; transition: border-color .15s, transform .08s; }
.item-serv:hover, .item-prof:hover { border-color: var(--txt); }
.item-serv:active, .item-prof:active { transform: scale(.99); }
.item-serv span, .item-prof span { display: flex; flex-direction: column; }
.item-serv small, .item-prof small { color: var(--muted); font-size: .82rem; }
.item-serv strong { white-space: nowrap; background: var(--limao); color: #141414; padding: 4px 12px; border-radius: 999px; font-size: .88rem; }
.item-prof { justify-content: flex-start; }
.item-prof img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.dias { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.dia { display: flex; flex-direction: column; align-items: center; min-width: 60px; padding: 10px 6px; border-radius: 16px; border: 1.5px solid var(--linha); background: var(--bg); color: var(--txt); text-decoration: none; cursor: pointer; scroll-snap-align: start; font: inherit; }
.dia small { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.dia b { font-size: 1.25rem; line-height: 1.2; }
.dia.on { background: var(--preto); color: var(--preto-txt); border-color: var(--preto); }
.dia.on small { color: inherit; opacity: .7; }
.dia.hoje:not(.on) { border-color: var(--txt); }
.dia.fechado { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slots { display: flex; flex-direction: column; gap: 12px; }
.grupo-slot small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.grupo-slot div { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { padding: 11px 0; border-radius: 12px; border: 1.5px solid var(--linha); background: var(--bg); color: var(--txt); font: 600 .95rem Poppins, sans-serif; cursor: pointer; }
.slot:hover { background: var(--limao); border-color: var(--limao); color: #141414; }
.carregando { animation: pisca 1s infinite alternate; }
@keyframes pisca { to { opacity: .4; } }
.resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--bg); border-radius: 16px; padding: 14px; margin-bottom: 16px; }
.resumo div { display: flex; flex-direction: column; }
.resumo small { color: var(--muted); font-size: .76rem; }
.resumo b { font-size: .95rem; }
.pix-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--bg); padding: 10px 14px; border-radius: 12px; font-size: .9rem; word-break: break-all; }
.abas { display: flex; background: var(--bg); padding: 4px; border-radius: 999px; }
.aba { flex: 1; border: 0; background: none; padding: 9px; border-radius: 999px; font: 600 .86rem Poppins, sans-serif; color: var(--muted); cursor: pointer; }
.aba.on { background: var(--card); color: var(--txt); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.logado-como { background: var(--bg); padding: 12px 14px; border-radius: 12px; margin: 0; font-size: .9rem; }
.sucesso { text-align: center; }
.sucesso .resumo { text-align: left; }
.check-ok { width: 72px; height: 72px; border-radius: 50%; background: var(--limao); color: #141414; display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 6px auto 14px; }
.sucesso .botoes { justify-content: center; }

.card-cli { display: flex; gap: 16px; padding: 16px; }
.card-cli-data { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 62px; background: var(--limao); color: #141414; border-radius: 16px; padding: 8px; align-self: flex-start; }
.card-cli-data b { font-size: 1.5rem; line-height: 1.1; }
.card-cli-data small { font-size: .72rem; font-weight: 600; }
.card-cli-info { flex: 1; min-width: 0; }

/* ---------- Celular ---------- */
@media (max-width: 960px) {
  .topo-in { flex-wrap: wrap; row-gap: 6px; }
  .menu { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .menu::-webkit-scrollbar { display: none; }
  .blocos { grid-template-columns: 1fr 1fr; }
  .bloco-largo, .bloco-span { grid-column: 1 / -1; min-height: 0; }
  .duas-col { grid-template-columns: 1fr; }
  .passos-lista { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-card { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.4rem; }
  .pagina { padding: 14px 12px 30px; }
  .cartao { padding: 16px; border-radius: 18px; }
  .marca-nome { max-width: 150px; }
  .topo-acoes .ico-btn[target] { display: none; }
  .titulo-pag .btn, .titulo-pag .botoes { width: 100%; }
  .titulo-pag .botoes .btn { flex: 1; }
  .grade-2, .blocos-3 { grid-template-columns: 1fr; }
  .bloco { min-height: 96px; padding: 14px; }
  .bloco strong { font-size: 1.25rem; }
  .lista-check { columns: 1; }
  .ag { flex-direction: column; gap: 6px; padding: 12px; }
  .ag-hora { flex-direction: row; gap: 8px; align-items: baseline; }
  .nav-dia-form { flex-direction: column; }
  .linha-dia .horas { grid-template-columns: 1fr 1fr; min-width: 0; flex-basis: 100%; }
  .linha-dia { gap: 8px; }
  .salao-topo { flex-direction: column; align-items: center; text-align: center; }
  .salao-links { justify-content: center; }
  .resumo { grid-template-columns: 1fr; }
  .tabela thead { display: none; }
  .tabela tr { display: block; border-top: 1px solid var(--linha); padding: 10px 6px; }
  .tabela td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 6px; text-align: right; }
  .tabela td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .8rem; text-align: left; }
  .acoes-td { justify-content: flex-start !important; }
  .card-cli { gap: 12px; padding: 14px; }
  .dialogo { padding: 18px; border-radius: 22px; }
}

/* permissões do profissional */
.permissoes { display: flex; flex-direction: column; gap: 10px; }
.form label.check.perm { flex-wrap: nowrap; }
.perm span { display: flex; flex-direction: column; }
.perm small { font-weight: 400; font-size: .78rem; margin: 0 !important; }

/* ---------- Painel com menu lateral ---------- */
.casca { --lat-w: 252px; display: grid; grid-template-columns: var(--lat-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s ease; }
.lat-recolhida .casca { --lat-w: 78px; }
.lateral { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 6px; padding: 16px 12px calc(14px + env(safe-area-inset-bottom)); background: var(--card); border-right: 1px solid var(--linha); overflow-y: auto; overflow-x: hidden; z-index: 50; }
.lat-topo { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 14px; border-bottom: 1px solid var(--linha); margin-bottom: 8px; }
.lat-topo .marca-nome { max-width: 160px; }
.lat-fechar { display: none; }
.lat-menu, .lat-rodape { display: flex; flex-direction: column; gap: 2px; }
.lat-rodape { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--linha); }
.lat-menu a, .lat-rodape a, .lat-rodape button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font: 500 .92rem Poppins, system-ui, sans-serif; background: none; border: 0; cursor: pointer; white-space: nowrap; text-align: left; width: 100%; }
.lat-menu svg, .lat-rodape svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lat-menu a:hover, .lat-rodape a:hover, .lat-rodape button:hover { background: var(--bg2); color: var(--txt); }
.lat-menu a.on { background: var(--preto); color: var(--preto-txt); }
.lat-menu a.on svg { color: var(--forte); }
.lat-recolher svg { transition: transform .2s; }
.lat-recolhida .lat-recolher svg { transform: rotate(180deg); }
.lat-recolhida .lateral span, .lat-recolhida .lat-topo .marca-nome { display: none; }
.lat-recolhida .lat-menu a, .lat-recolhida .lat-rodape a, .lat-recolhida .lat-rodape button { justify-content: center; padding: 11px 0; }
.lat-recolhida .lat-topo { justify-content: center; }
.lat-fundo { display: none; }
.conteudo { display: flex; flex-direction: column; min-width: 0; }
.barra-topo { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 20px; padding-top: calc(10px + env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.barra-titulo { font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-menu { display: none; }
.conteudo .pagina { max-width: 1180px; }
.conteudo .push-aviso { width: calc(100% - 40px); }

@media (max-width: 960px) {
  .casca, .lat-recolhida .casca { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 84vw); transform: translateX(-102%); transition: transform .25s ease; box-shadow: 20px 0 50px -20px rgba(0,0,0,.4); }
  .menu-aberto .lateral { transform: none; }
  .lat-recolhida .lateral span, .lat-recolhida .lat-topo .marca-nome { display: initial; }
  .lat-recolhida .lat-menu a, .lat-recolhida .lat-rodape a, .lat-recolhida .lat-rodape button { justify-content: flex-start; padding: 10px 12px; }
  .lat-fechar { display: inline-grid; }
  .lat-recolher { display: none !important; }
  .menu-aberto .lat-fundo { display: block; position: fixed; inset: 0; background: rgba(10,10,10,.45); z-index: 40; }
  .btn-menu { display: inline-grid; }
  .barra-topo { padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .menu-aberto { overflow: hidden; }
}

/* ---------- Mapa ---------- */
.mapa { height: 280px; border-radius: 16px; overflow: hidden; border: 1px solid var(--linha); margin: 12px 0 6px; background: var(--bg2); z-index: 0; }
.mapa-pub { height: 220px; width: min(560px, 82vw); }
.det-mapa[open] { flex-basis: 100%; }
.det-mapa .rota { margin-top: 6px; justify-content: center; }
.pino span { display: block; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: #141414; border: 3px solid #D4FF3A; transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.leaflet-container { font-family: Poppins, system-ui, sans-serif; }

/* ---------- Relatórios ---------- */
.filtros { margin-bottom: 16px; }
.filtros .chips-nav { margin-bottom: 12px; }
.filtros-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.filtros-grade label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 500; }
.filtros-grade input, .filtros-grade select { min-height: 40px; padding: 7px 10px; font-size: .88rem; }
.filtros-acoes { display: flex; gap: 6px; }
.filtros-acoes .btn { flex: 1; padding: 9px 12px; }
.blocos:has(> .bloco:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grafico { display: flex; align-items: flex-end; gap: 3px; height: 190px; padding-top: 22px; border-bottom: 1px solid var(--linha); }
.g-col { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: none; min-width: 0; }
.g-barra { width: 100%; max-width: 28px; background: var(--limao); border-radius: 4px 4px 0 0; transition: filter .15s; }
.g-col small { position: absolute; bottom: -20px; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.grafico { margin-bottom: 24px; }
.g-col:hover .g-barra, .g-col:focus .g-barra { background: var(--preto); }
.g-dica { display: none; position: absolute; bottom: calc(100% - 18px); left: 50%; transform: translateX(-50%); background: var(--preto); color: var(--preto-txt); padding: 7px 10px; border-radius: 10px; font-size: .75rem; white-space: nowrap; z-index: 5; pointer-events: none; line-height: 1.4; }
.g-dica b { display: block; }
.g-col:hover .g-dica, .g-col:focus .g-dica { display: block; }
.grafico-horas { height: 150px; }
.ranking { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.rank-linha { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; }
.rank-linha:hover { background: var(--bg2); }
.rank-nome { display: flex; flex-direction: column; min-width: 0; }
.rank-nome small { color: var(--muted); font-size: .76rem; }
.rank-barra { height: 10px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.rank-barra i { display: block; height: 100%; background: var(--preto); border-radius: 99px; }
.tabela.compacta td, .tabela.compacta th { padding: 8px 10px; }
@media (max-width: 960px) { .blocos:has(> .bloco:nth-child(5)) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .rank-linha { grid-template-columns: 1fr auto; }
  .rank-barra { grid-column: 1 / -1; grid-row: 2; }
  .filtros-grade { grid-template-columns: 1fr 1fr; }
  .filtros-acoes { grid-column: 1 / -1; }
}
@media print {
  .lateral, .barra-topo, .filtros, .titulo-pag .botoes, .push-aviso, .rodape, #toasts { display: none !important; }
  .casca { display: block; }
  body { background: #fff; }
  .cartao, .bloco { box-shadow: none; break-inside: avoid; }
}

/* ---------- Admin: notificações ---------- */
.matriz td { vertical-align: top; }
.opcao.mini span { padding: 5px 10px; font-size: .76rem; }
.previa-email { width: 100%; height: 520px; border: 1px solid var(--linha); border-radius: 14px; background: #f2ece1; }

/* ---------- Página inicial ---------- */
.home { display: flex; flex-direction: column; gap: 56px; }
.home .hero { grid-template-columns: 1.15fr .85fr; padding-top: 4vh; }
.home .hero-txt > small { display: block; margin-top: 8px; }
.celular { position: relative; justify-self: center; width: 280px; }
.celular-tela { background: var(--card); border: 10px solid #141414; border-radius: 40px; padding: 18px 14px 20px; box-shadow: 0 40px 80px -30px rgba(40,30,10,.45); display: flex; flex-direction: column; gap: 12px; transform: rotate(2deg); }
.cel-topo { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.cel-topo .marca-ico { width: 30px; height: 30px; font-size: .75rem; border-radius: 9px; }
.cel-passos { display: flex; gap: 4px; } .cel-passos i { flex: 1; height: 4px; border-radius: 4px; background: var(--linha); } .cel-passos i.on { background: var(--preto); }
.cel-tit { font-size: .95rem; }
.cel-dias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cel-dias span { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 12px; border: 1.5px solid var(--linha); font-size: .62rem; color: var(--muted); }
.cel-dias b { font-size: 1rem; color: var(--txt); }
.cel-dias .on { background: var(--preto); border-color: var(--preto); color: var(--preto-txt); } .cel-dias .on b { color: var(--preto-txt); }
.cel-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cel-slots span, .cel-pag span { text-align: center; padding: 7px 0; border-radius: 10px; border: 1.5px solid var(--linha); font-size: .75rem; font-weight: 600; }
.cel-slots .on { background: var(--limao); border-color: var(--limao); color: #141414; }
.cel-pag { display: flex; gap: 6px; } .cel-pag span { flex: 1; border-radius: 99px; } .cel-pag .on { background: var(--preto); color: var(--preto-txt); border-color: var(--preto); }
.cel-btn { background: var(--limao); color: #141414; text-align: center; font-weight: 700; font-size: .82rem; padding: 11px; border-radius: 99px; }
.cel-notif { position: absolute; left: -70px; top: 46%; display: flex; gap: 10px; align-items: center; width: 270px; padding: 12px 14px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--linha); border-radius: 18px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.4); animation: notif 4s ease-in-out infinite; }
.cel-notif .marca-ico { width: 34px; height: 34px; font-size: .78rem; }
.cel-notif div { display: flex; flex-direction: column; min-width: 0; }
.cel-notif b { font-size: .8rem; } .cel-notif small { font-size: .7rem; color: var(--muted); }
@keyframes notif { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.secao-home { display: flex; flex-direction: column; align-items: center; text-align: center; }
.secao-home > h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; max-width: 720px; margin-bottom: 6px; }
.centro { text-align: center; margin-top: 0; }
.passos-home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; width: 100%; text-align: left; }
.passos-home .bloco b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); color: var(--txt); margin-bottom: 8px; }
.passos-home .bloco-limao b, .passos-home .bloco-preto b { background: rgba(255,255,255,.25); color: inherit; }
.passos-home .bloco p { margin: 0; opacity: .8; font-size: .9rem; }
.perfis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; width: 100%; text-align: left; }
.perfis .cartao + .cartao { margin-top: 0; }
.perfil-card p { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.perfil-card .lista-check { columns: 1; font-size: .88rem; }
.perfil-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--limao); color: #141414; margin-bottom: 12px; }
.perfil-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perfil-admin { background: var(--preto); color: var(--preto-txt); border-color: transparent; }
.perfil-admin p { color: inherit; opacity: .7; }
.recursos-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; width: 100%; text-align: left; }
.recurso { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--raio); background: var(--card); border: 1px solid var(--linha); }
.recurso svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.recurso span { color: var(--muted); font-size: .88rem; }
.faixa-app { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--limao); color: #141414; border-radius: 28px; padding: 28px 32px; }
.faixa-app h2 { margin: 0 0 4px; } .faixa-app p { margin: 0; max-width: 720px; }
.faixa-app .btn-limao { background: #141414; color: #D4FF3A; }
.faq { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 760px; margin-top: 20px; text-align: left; }
.faq .cartao + .cartao { margin-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.cta-final { text-align: center; background: #141414; color: #F2ECE1; border-radius: 32px; padding: 48px 24px; }
.cta-final h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.cta-final p { opacity: .75; margin: 0 0 20px; }
.cta-final .hero-acoes { justify-content: center; margin: 0; }
.btn-borda-clara { border-color: rgba(242,236,225,.35); color: #F2ECE1; background: transparent; }
@media (max-width: 960px) {
  .home .hero { grid-template-columns: 1fr; }
  .celular { margin-top: 10px; }
  .cel-notif { left: -30px; }
  .passos-home, .perfis { grid-template-columns: 1fr 1fr; }
  .recursos-grade { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .home { gap: 40px; }
  .passos-home, .perfis, .recursos-grade { grid-template-columns: 1fr; }
  .celular { width: 250px; }
  .cel-notif { left: -16px; width: 250px; top: auto; bottom: -26px; }
  .hero-acoes .btn-grande { flex: 1; }
  .faixa-app { padding: 22px; border-radius: 22px; }
}

/* ---------- Assinatura ---------- */
.faixa-plano { margin: 12px 20px 0; padding: 10px 16px; border-radius: 14px; background: var(--limao); color: #141414; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.faixa-plano a { margin-left: auto; font-weight: 700; color: #141414; background: rgba(0,0,0,.08); padding: 4px 12px; border-radius: 99px; text-decoration: none; }
.faixa-plano.alerta-plano { background: color-mix(in srgb, var(--erro) 15%, var(--card)); color: var(--txt); border: 1px solid color-mix(in srgb, var(--erro) 40%, transparent); }
.faixa-plano.alerta-plano a { color: var(--txt); }
.bloco-alerta { background: var(--erro); color: #fff; border-color: transparent; }
.blocos-3col { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.pix-qr { display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 14px; width: fit-content; margin: 6px auto 12px; border: 1px solid var(--linha); }
.pix-qr:empty { display: none; }
.pix-qr img, .pix-qr canvas { width: 210px !important; height: 210px !important; }
.pix-codigo { font-family: ui-monospace, Menlo, monospace; font-size: .75rem; word-break: break-all; }
.lista-pag { display: flex; flex-direction: column; }
.linha-pag { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--linha); }
.linha-pag span:first-child { display: flex; flex-direction: column; }
.linha-pag small { color: var(--muted); font-size: .78rem; }
@media (max-width: 960px) { .faixa-plano { margin: 10px 12px 0; } }
@media (max-width: 600px) { .blocos-3col { grid-template-columns: 1fr !important; } }

.form-linha { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.form-linha input { width: 76px; min-height: 34px; padding: 5px 8px; font-size: .82rem; }

.preco-linha { margin: 14px 0 0 !important; font-size: .92rem !important; color: var(--txt) !important; }
.cta-preco { color: #D4FF3A; opacity: 1 !important; font-weight: 600; margin-bottom: 4px !important; }

/* ---------- Convite para instalar o app ---------- */
.instalar-folha { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); width: min(440px, calc(100% - 24px)); background: var(--card); color: var(--txt); border: 1px solid var(--linha); border-radius: 22px; padding: 16px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.45); z-index: 90; transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
.instalar-folha.aberta { transform: translate(-50%, 0); }
.if-topo { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.if-topo img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.if-topo div { display: flex; flex-direction: column; }
.if-topo small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.if-passos { background: var(--bg); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: .88rem; }
.if-passos ol { margin: 0; padding-left: 18px; } .if-passos li { margin: 3px 0; } .if-passos small { color: var(--muted); }
.if-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--bg2); font-size: .8rem; }
.instalar-folha .botoes .btn { flex: 1; }

/* ---------- Ajustes de encaixe (sem precisar de zoom) ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
.semana-strip .dia { min-width: 0; padding: 8px 0; }
.passos-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mapa-pub { width: 100%; max-width: 560px; }
.cartao, .bloco, .ag-info, .card-cli-info, .rank-nome { min-width: 0; overflow-wrap: anywhere; }
.filtros-grade input, .filtros-grade select { min-width: 0; width: 100%; }
@media (max-width: 960px) {
  /* iPhone dá zoom sozinho em campos com letra menor que 16px */
  input, select, textarea, .filtros-grade input, .filtros-grade select, .nav-dia-form input, .nav-dia-form select { font-size: 16px; }
  .passos-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .passos-lista { grid-template-columns: 1fr; }
  .filtros-grade { grid-template-columns: 1fr; }
  .semana-strip { gap: 3px; }
  .semana-strip .dia b { font-size: 1.05rem; }
  .nav-dia { flex-wrap: wrap; }
  .btn { padding: 10px 16px; }
  .titulo-pag h1 { font-size: 1.3rem; }
}
@media (max-width: 960px) {
  input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { font-size: 16px !important; }
}

/* ---------- Planos ---------- */
.planos-escolha { display: flex; flex-direction: column; gap: 8px; }
.plano-op { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 14px; border: 1.5px solid var(--linha); border-radius: 16px; cursor: pointer; background: var(--bg); }
.plano-op:has(input:checked) { border-color: var(--txt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--limao) 60%, transparent); }
.plano-op span { display: flex; flex-direction: column; min-width: 0; }
.plano-op small { color: var(--muted); font-size: .78rem; font-weight: 400; }
.plano-op strong { font-size: 1.05rem; white-space: nowrap; }
.plano-op em { grid-column: 2 / -1; font-style: normal; font-size: .78rem; color: var(--muted); }
.plano-op i.badge { position: absolute; top: -9px; right: 12px; font-style: normal; }
.plano-op.indisp { opacity: .5; cursor: not-allowed; }
.precos-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; width: 100%; max-width: 760px; text-align: left; }
.preco-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--raio); background: var(--card); border: 1px solid var(--linha); }
.preco-card.destaque-plano { background: var(--preto); color: var(--preto-txt); border-color: transparent; }
.preco-card .valor { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.preco-card .valor small { font-size: .9rem; font-weight: 500; opacity: .7; }
.preco-card .lista-check { columns: 1; font-size: .9rem; margin: 8px 0 14px; }
.preco-card .btn { margin-top: auto; }

.faixa-equipe { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--linha); font-size: .88rem; }
.faixa-equipe a { font-weight: 600; margin-left: 6px; }
.faixa-equipe.cheio { border-color: var(--aviso); background: color-mix(in srgb, var(--aviso) 10%, var(--card)); }

.planos-admin input[type=number], .planos-admin input[inputmode=decimal] { width: 90px; }
.planos-admin input { min-height: 38px; padding: 6px 9px; }
.planos-admin th { white-space: nowrap; }

/* ---------- Topo público e início compactos no celular ---------- */
.btn-instalar-topo svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  .topo-pub .topo-in { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  .topo-pub .marca { gap: 8px; }
  .topo-pub .marca-ico, .topo-pub .marca img { width: 32px; height: 32px; font-size: .78rem; border-radius: 9px; }
  .topo-pub .marca-nome { font-size: .95rem; max-width: 34vw; }
  .topo-pub .topo-acoes { gap: 6px; }
  .topo-pub .ico-btn { width: 36px; height: 36px; border-radius: 11px; }
  .topo-pub .topo-acoes .btn { padding: 8px 13px; font-size: .8rem; }
  .btn-instalar-topo { padding: 0 !important; width: 36px; height: 36px; border-radius: 11px; }
  .btn-instalar-topo span { display: none; }
  .home { gap: 34px; }
  .home .hero { padding: 10px 0 0; gap: 14px; }
  .home .selo { font-size: .72rem; padding: 4px 11px; margin-bottom: 10px; }
  .home .hero h1 { font-size: 1.85rem; line-height: 1.12; margin-bottom: 10px; }
  .home .hero p { font-size: .94rem; line-height: 1.5; margin: 0; }
  .home .hero-acoes { margin: 16px 0 12px; gap: 8px; }
  .home .hero-acoes .btn-grande { padding: 12px 10px; font-size: .9rem; }
  .home .busca-salao { padding: 4px 4px 4px 12px; }
  .home .busca-salao span, .home .busca-salao input { font-size: .9rem !important; }
  .home .busca-salao input { min-height: 34px; }
  .home .hero-txt > small { font-size: .78rem; }
  .home .preco-linha { font-size: .84rem !important; margin-top: 10px !important; }
  .celular { width: 220px; }
  .celular-tela { border-width: 8px; border-radius: 32px; padding: 14px 11px 16px; gap: 9px; }
  .pagina:has(.home) { padding-top: 6px; }
}
/* App instalado: ainda mais enxuto (sem o selo de marketing e com menos respiro) */
@media (display-mode: standalone) and (max-width: 600px) {
  .home .selo:first-child { display: none; }
  .home .hero { padding-top: 4px; }
  .home .hero h1 { font-size: 1.65rem; }
  .btn-instalar-topo { display: none !important; }
}
