/* ============================================================
   BARBERFLOW — SHARED COMPONENTS
   Depende de tokens.css. Inclua APÓS tokens.css.
============================================================ */

/* ── Proteções de app (dissuasão de download de mídia + zoom) ──
   Bloqueia "salvar imagem"/arrastar em mídias e o zoom de duplo-toque.
   Pinch-zoom é bloqueado em JS (AppGuards.js) + viewport. Não é segurança
   real — só dissuasão (print/DevTools ainda passam). */
img, video, .bf-protegido {
  -webkit-touch-callout: none;   /* iOS: sem menu "Salvar imagem" no toque longo */
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
html { touch-action: manipulation; } /* mata o zoom de duplo-toque, mantém scroll */

/* ── Sem seleção de texto ao duplo clique/duplo toque ──────────────────
   Menu, cards, ícones de ação e botões de modal não devem "grifar" texto
   — mesmo padrão já aplicado a botões (button-system.css) e cards
   (barber-card.css). Não altera cursor, :active/:hover nem eventos de
   clique/onclick. Chat (ChatModal/UniversalChatPage/ChatSearchWidget) e
   os composers de mensagem pública (portfolio/story) ficam de fora de
   propósito — nenhum seletor abaixo pertence a essas áreas — assim como
   inputs, textarea, select e [contenteditable], que nunca são alvo aqui. */
.menu-item,
.menu-nav-item,
.menu-avatar,
.menu-avatar-upload,
.menu-footer-link,
.sec-ver-mais,
.card-mini,
.port-item,
.portfolio-card__media,
.portfolio-viewer__close,
.mb-cfg-lapis-btn,
.mb-cfg-prod-img-btn,
.mb-cfg-prod-remove,
.mb-config-upload-btn,
.mb-gps-btn,
.mb-item-confirm-nao,
.mb-item-confirm-sim,
.mb-item-trash-btn,
.mb-mais-btn,
.mb-portfolio-card,
.mb-portfolio-delete-overlay__op,
.mb-portfolio-status button,
.mb-portfolio-upload,
.mb-prod-card-edit-btn,
.mb-prod-card-view,
.mb-share-copy,
.mb-share-whats,
.gps-btn-buscar,
.gps-btn-gps,
.gps-btn-salvar,
.cam-btn,
.cam-fechar,
.ccm-btn,
.crtm-btn,
.crtm-checkbox,
.crtm-fechar,
.crtm-item,
.crtm-label,
.inpustyle-btn,
.mslm-btn--fechar,
.mslm-btn-adicionar,
.mslm-btn-remover,
.mslm-fechar,
.pwa-banner__btn,
.pwa-banner__fechar,
.sfm-btn,
.sv-fechar,
.sv-like-btn,
.termos-info-fechar,
.tag,
.cdr-row,
.cdr-cadeira--long-press,
.btn-perfil-criar,
.btn-perfil-editar {
  -webkit-user-select: none;
  user-select: none;
}

/* ── Header Global Fixo — definição principal em shared/css/components.css (~linha 1059) ── */

/* Botão hamburger */
.header-menu-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--ease), transform var(--ease);
}
.header-menu-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(74%) sepia(50%) saturate(480%) hue-rotate(4deg);
  transition: filter var(--ease), opacity var(--ease);
}
.header-menu-btn:active {
  opacity: .7;
  transform: scale(.9);
}

/* Menu aberto — hamburger fica dourado */
.header-menu-btn.menu-aberto img {
  filter: brightness(0) saturate(100%) invert(74%) sepia(50%) saturate(480%) hue-rotate(4deg);
  opacity: 1;
}

/* Logo central */
.header-logo {
  position: absolute;
  left: calc(56px + 1rem);
  top: 50%;
  transform: translateY(calc(-50% + 0.3rem)) translateX(-1rem);
  width: 60%;
  height: calc(var(--header-h) * 2.10); /* auto-escala com --header-h */
  display: flex;
  align-items: center;
  pointer-events: none;
  overflow: visible;
}
.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.header-logo-txt {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
}

/* Wrapper direito do header (sair + avatar) */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Botão Sair no header */
.header-sair-btn {
  all: unset;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
  background: rgba(212, 175, 55, .06);
  transition: background var(--ease), color var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.header-sair-btn:active {
  background: rgba(212, 175, 55, .18);
}

/* Avatar — layout vertical: foto + nome abaixo */
.header-avatar-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--ease), opacity var(--ease);
}
.header-avatar-btn img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-border);
  box-shadow: 0 0 0 1.5px rgba(212, 175, 55, .25);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.header-avatar-btn.logado img {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, .35);
}
.header-avatar-btn:active {
  transform: scale(.9);
  opacity: .8;
}
.header-avatar-btn span {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  max-width: 52px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1;
}

/* Overlay só cobre abaixo do header */
#menu-overlay {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  z-index: 9699;
  background: var(--overlay);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
#menu-overlay.ativo {
  display: block;
  animation: overlayIn .25s ease both;
}
@keyframes overlayIn { from { opacity:0 } to { opacity:1 } }

/* ── Menu Drawer ───────────────────────────────────────────── */
#menu-drawer {
  position: fixed;
  top: var(--header-h); left: 0; bottom: 0;
  z-index: 9700;
  width: min(300px, 80vw);
  background: var(--card);
  border-right: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.25,0,.2,1),
              box-shadow .32s cubic-bezier(.25,0,.2,1);
  overflow-y: auto;
  overflow-x: hidden;
}
#menu-drawer.aberto {
  transform: translateX(0);
  box-shadow: var(--shadow-menu), 2px 0 0 var(--gold-border);
}
/* Saída pelo lado direito — quando a navegação dispara com o menu aberto */
#menu-drawer.saindo-direita {
  transform: translateX(100%);
}

/* Header do menu */
.menu-header {
  padding: 22px 20px 22px;
  border-bottom: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(160deg, rgba(212,175,55,.07), transparent 70%);
  flex-shrink: 0;
}
.menu-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0px;
  border-radius: var(--r-md);
  background: radial-gradient(ellipse at 50% 50%, rgba(255,251,230,.90) 0%, rgba(245,217,122,.65) 28%, rgba(212,175,55,.30) 55%, transparent 78%);
  padding: 0.5rem;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, rgba(0,0,0,.55) 62%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, rgba(0,0,0,.55) 62%, transparent 82%);
}
.menu-logo img { height: 120px; width: 100%; object-fit: contain; }
.menu-logo span {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 1px;
}
.menu-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-avatar {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color var(--ease);
}
.menu-avatar:hover { border-color: var(--gold); }
.menu-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--ease);
}
.menu-avatar.logado img { opacity: 1; }
.menu-avatar-upload {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--overlay-soft);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity .2s;
  border-radius: 50%;
  cursor: pointer;
}
/* Só exibe o ícone de câmera quando o usuário está logado */
.menu-avatar.logado .menu-avatar-upload { display: flex; }
.menu-avatar.logado:hover .menu-avatar-upload { opacity: 1; }
.menu-username {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.menu-username small {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Itens do menu */
.menu-list-nav {
  list-style: none;
  padding: 12px 0;
  flex: 1;
}
.menu-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 22px;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
  transition: background .18s, color .18s, padding-left .18s;
  -webkit-tap-highlight-color: transparent;
}
.menu-nav-item:hover {
  background: rgba(212,175,55,.08);
  color: var(--gold);
  padding-left: 28px;
}
/* Item ativo no menu lateral — igual ao hover */
.menu-nav-item.ativo {
  background: rgba(212,175,55,.12);
  color: var(--gold);
  padding-left: 28px;
  border-left: 3px solid var(--gold);
}
.menu-nav-item img {
  width: 44px; height: 44px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(24%) sepia(28%) saturate(829%) hue-rotate(344deg) brightness(91%) contrast(89%);
  opacity: .65;
  flex-shrink: 0;
  transition: filter var(--ease), opacity var(--ease);
}
.menu-nav-item:hover img {
  filter: brightness(0) saturate(100%) invert(74%) sepia(50%) saturate(480%) hue-rotate(4deg);
  opacity: 1;
}
.menu-nav-item.ativo img {
  filter: brightness(0) saturate(100%) invert(74%) sepia(50%) saturate(480%) hue-rotate(4deg);
  opacity: 1;
}
.menu-icon-txt {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.28rem;
  flex-shrink: 0;
}

/* ── Menu Drawer — responsivo mobile ───────────────────────── */
@media (max-width: 480px) {
  .menu-header {
    padding: 10px 14px;
    gap: 10px;
  }
  .menu-logo img {
    height: 70px;
  }
  .menu-avatar {
    width: 44px;
    height: 44px;
  }
  .menu-username {
    font-size: .85rem;
  }
  .menu-username small {
    font-size: .65rem;
  }
  .menu-nav-item {
    padding: 11px 18px;
    gap: 12px;
    font-size: .84rem;
  }
  .menu-nav-item:hover,
  .menu-nav-item.ativo {
    padding-left: 24px;
  }
  .menu-nav-item img,
  .menu-icon-txt {
    width: 28px;
    height: 28px;
    font-size: .95rem;
  }
}

/* ── Menu Drawer — rodapé de termos legais ──────────────────── */
.menu-footer {
  flex-shrink: 0;
  padding: 14px 22px;
  border-top: 1px solid var(--gold-border);
  background: rgba(0,0,0,.18);
}
.menu-footer-link {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 4px 0;
  border-radius: var(--r-sm);
  transition: color .18s;
}
.menu-footer-link:hover,
.menu-footer-link:focus-visible {
  color: var(--gold);
  outline: none;
}

/* ── Overlay de Termos Informativos ─────────────────────────── */
#termos-info-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0,0,0,.92);
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 1.5rem 1rem 2rem;
}
#termos-info-overlay:not([hidden]) { display: flex; }

.termos-info-card {
  background: #1a120a;
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 1rem;
  width: 100%;
  max-width: 640px;
  color: var(--text, #F5E9DC);
  font-size: .9rem;
  line-height: 1.6;
  overflow: hidden;
}

.termos-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(160deg, rgba(212,175,55,.12), transparent 70%);
  border-bottom: 1px solid rgba(212,175,55,.2);
  position: sticky;
  top: 0;
  z-index: 1;
}
.termos-info-header h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold, #D4A017);
  letter-spacing: .3px;
}
.termos-info-fechar {
  all: unset;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(245,233,220,.6);
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
  transition: background .18s, color .18s;
}
.termos-info-fechar:hover,
.termos-info-fechar:focus-visible {
  background: rgba(212,175,55,.18);
  color: var(--gold, #D4A017);
  outline: none;
}

.termos-info-corpo {
  padding: 1.25rem 1.5rem 1.75rem;
}

.termos-info-secao {
  margin-bottom: 1.5rem;
}
.termos-info-secao:last-child {
  margin-bottom: 0;
}
.termos-info-secao-titulo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 800;
  color: var(--gold, #D4A017);
  margin: 0 0 .6rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(212,175,55,.15);
}
.termos-info-secao p {
  margin: .45rem 0;
  color: rgba(245,233,220,.85);
}
.termos-info-secao ul {
  margin: .45rem 0;
  padding-left: 1.25rem;
  color: rgba(245,233,220,.85);
}
.termos-info-secao ul li {
  margin-bottom: .25rem;
}
.termos-info-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  background: rgba(212,175,55,.18);
  color: var(--gold, #D4A017);
  border-radius: .3rem;
  padding: 1px 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 4px;
}
.termos-info-placeholder {
  background: rgba(212,175,55,.06);
  border: 1px dashed rgba(212,175,55,.25);
  border-radius: .6rem;
  padding: .75rem 1rem;
  font-size: .82rem;
  color: rgba(245,233,220,.5);
  font-style: italic;
  text-align: center;
}

/* ── Botão Voltar ────────────────────────────────────────────── */
.btn-voltar {
  all: unset;
  cursor: pointer;
  position: absolute; /* relativo à .tela (position:fixed) */
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 88px;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  width: auto;
  height: auto;
  pointer-events: auto;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .4px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--ease);
}
.btn-voltar:active { opacity: .6; }
.btn-voltar::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url('/shared/img/inicio.svg') center/contain no-repeat;
  filter: brightness(0) saturate(100%) invert(74%) sepia(50%) saturate(480%) hue-rotate(4deg);
  transform: scaleX(-1); /* aponta para a esquerda */
}
.btn-voltar[data-action="voltar"]::before {
  content: none;
  display: none;
}
.btn-voltar__icone,
.btn-voltar__texto {
  pointer-events: none;
}

/* ── Padrão obrigatório para novas telas: topo com btn-voltar ── */
/* Uso:
   <div class="tela-topo">
     <button class="btn-voltar" data-voltar aria-label="Voltar">Voltar</button>
     <h2 class="tela-topo__titulo">Título</h2>
   </div>
   <div class="content"> ... </div>
*/
.tela-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 0 8px;
  flex-shrink: 0;
}

/* Override: dentro de .tela-topo o btn-voltar é parte do fluxo */
.tela-topo .btn-voltar {
  position: static;
}

.tela-topo__titulo {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold, #D4AF37);
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Conteúdo a 1.5rem abaixo do topo */
.tela-topo + .content {
  padding-top: 0;
  margin-top: 1.5rem;
}

#tela-barbearia .bp-boas-vindas {
  background: transparent;
  border-left: none;
  padding: 2px 14px;
  margin-top: 4px;
  font-size: .9rem;
  color: var(--text-muted, rgba(245,233,220,.75));
  text-align: left;
  min-height: 1.4em;
  line-height: 1.5;
}

/* Span do nome do usuário (marrom/terra) */
#tela-barbearia .bp-boas-vindas .bv-user {
  color: #c8813a;
  font-weight: 700;
}

/* Span do nome da barbearia (dourado) */
#tela-barbearia .bp-boas-vindas .bv-shop {
  color: var(--gold, #d4a84b);
  font-weight: 800;
}

/* Dig de fila — mesma fonte do boas-vindas, sem fundo/borda */
#tela-barbearia #bp-fila-dig {
  background: none;
  border: none;
  padding: 0 14px;
  margin-top: 0;
  margin-bottom: 4px;
  font-size: .9rem;
  text-align: left;
}

/* CTA de login/cadastro para visitantes */
#tela-barbearia .bp-cta-login {
  padding: 3px 14px 6px;
  font-size: .78rem;
  color: var(--gold, #d4a84b);
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0;
}

/* ── Info fixa da barbearia — ao final do scroll da tela ──────── */
#bp-info-fixa.mb-info-card {
  background: transparent;
  border: none;
  border-radius: var(--r-lg, 18px);
  padding: 8px 16px calc(var(--nav-h, 64px) + 18px);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(107,74,50,.18);
}
#bp-info-fixa.mb-info-card[hidden] { display: none; }
#bp-info-fixa .mb-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
#bp-info-fixa .mb-info-icon { font-size: .9rem; flex-shrink: 0; }
#bp-info-fixa .mb-info-nome {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text, #2b1b12);
  margin: 0;
}
#bp-info-fixa .mb-info-linha {
  font-size: .75rem;
  color: var(--text-muted, #6b5a4a);
  margin: 0;
  line-height: 1.4;
}
#bp-info-fixa .mb-info-linha[hidden] { display: none; }
#bp-info-fixa .mb-info-desde {
  color: var(--gold, #D4AF37);
  font-weight: 600;
}
#bp-info-fixa .mb-info-whats {
  color: var(--text, #2b1b12);
  font-weight: 500;
}
.bp-endereco {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bp-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bp-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.bp-badge--open   { background: rgba(212,175,55,.14); color: var(--gold, #D4AF37); border: 1px solid rgba(212,175,55,.3); text-shadow: 0 0 6px rgba(212,175,55,.55); }
.bp-badge--closed { background: rgba(220,50,50,.15);  color: #e57373; border: 1px solid rgba(229,115,115,.3); }
.bp-badge--pausa  { background: rgba(255,160,0,.15);  color: #ffb74d; border: 1px solid rgba(255,183,77,.35); }
.bp-rating, .bp-likes, .bp-desde {
  font-size: .72rem;
  color: var(--text-muted, rgba(245,233,220,.6));
}
#bp-info-fixa .bp-desde.mb-info-desde {
  color: var(--gold, #D4AF37);
}
.bp-likes-wrap {
  display: inline-flex;
  align-items: center;
}

/* ── Tela Barbearia — Stories section ─────────────────────── */
#tela-barbearia .bp-stories-section {
  margin-top: -2rem;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 6;
}
#tela-barbearia .bp-stories-section .story-card {
  background: transparent;
}
#tela-barbearia .bp-stories-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 0;
}
#tela-barbearia .bp-stories-titulo {
  margin: 0;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold, #D4AF37);
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
}
#tela-barbearia .bp-stories-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold, #D4AF37), transparent);
}

/* ── Tela Barbearia — Seção genérica (Barbeiros, etc.) ────── */
#tela-barbearia .bp-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 0;
}
#tela-barbearia .bp-section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold, #D4AF37), transparent);
}
#tela-barbearia .bp-section-titulo {
  margin: 0;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold, #D4AF37);
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Tela Barbearia — Hero capa ────────────────────────────── */
#tela-barbearia .bp-capa-wrap {
  position: relative;
  width: 100%;
  height: 176px;
  overflow: hidden;
  flex-shrink: 0;
}
#tela-barbearia #bp-capa {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Gradiente escuro no topo para o botão voltar ser legível */
#tela-barbearia .bp-capa-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}
/* btn-voltar sobreposto na capa */
#tela-barbearia .bp-capa-wrap .btn-voltar {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
}
/* Badge de status (Aberta/Fechada) sobreposto no canto sup. direito da capa */
#tela-barbearia .bp-capa-wrap .bp-capa-status {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  z-index: 10;
  font-size: .7rem;
  padding: 3px 10px;
  pointer-events: none;
}
/* Botão favoritar sobreposto na capa da barbearia (abaixo do badge de status) */
#tela-barbearia .bp-capa-wrap #bp-fav-btn {
  position: absolute;
  top: 2.4rem;
  right: 0.65rem;
  z-index: 10;
  background: rgba(0, 0, 0, .35);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Identidade sobreposta na base da capa, ~20px acima da seção de stories */
#tela-barbearia .bp-capa-identidade {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 16px;
  background: transparent;
  z-index: 5;
}
#tela-barbearia .bp-capa-identidade #bp-logo {
  width: 52px;
  height: 52px;
  /* border-radius: 50% faz o recorte circular — se a imagem tiver fundo
     próprio o círculo aparece; se for PNG transparente fica transparente */
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: transparent;
}
#tela-barbearia .bp-capa-identidade .bp-nome {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.85);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

/* ── Header antigo (screens internas) ── oculto na inicio ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-border);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.header-brand img  { height: 28px; object-fit: contain; }
.header-brand span {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}

.chip {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--gold-muted);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  text-transform: uppercase;
}

/* ── Footer Nav ────────────────────────────────────────────── */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--header-bg);
  border-top: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  /* Animação de sumir/aparecer ao rolar */
  transition: transform 0.45s cubic-bezier(.4, 0, .2, 1),
              opacity  0.45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* Footer oculto — desce até sumir na borda inferior */
.footer-nav.oculto {
  transform: translateY(calc(100% + env(safe-area-inset-bottom)));
  opacity: 0;
  pointer-events: none;
}

/* ── Dica do botão gota (footer oculto) ─────────────────────── */
/* Fica exatamente sobreposto ao #btn-abrir-footer             */
#footer-dica {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom));
  right: 18px;
  z-index: 999;
  width: 34px;
  height: 44px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#footer-dica.visivel {
  opacity: 1;
}

.dica-gota-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dica-contorno {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dica-contorno-traco {
  fill: none;
  stroke: rgba(212, 175, 55, 0.90);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 182;
  stroke-dashoffset: 182;
  opacity: 0;
}

/* Texto flutua abaixo e à esquerda do botão */
.dica-texto {
  position: absolute;
  right: calc(100% + 8px);
  bottom: -2px;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: max-content;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(30, 18, 10, 0.82);
  text-shadow: 0 1px 6px rgba(255,255,255,0.55);
  white-space: nowrap;
  line-height: 1;
}

/* Animação: traço sobe em volta da gota, fecha no topo e some */
#footer-dica.animando .dica-contorno-traco {
  animation: dica-gota-contorno 1.35s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes dica-gota-contorno {
  0% {
    opacity: 0;
    stroke-dashoffset: 182;
  }
  10% {
    opacity: 1;
  }
  58% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -182;
  }
}

.nav-btn {
  all: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 2px;
  flex: 1;
  min-width: 0;
  color: var(--text-on-surface-muted);
  transition: color var(--ease);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.nav-btn:hover { color: var(--gold-light); }
.nav-btn.ativo  { color: var(--gold); }

.nav-pill {
  width: 48px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  transition: background var(--ease);
}
.nav-btn.ativo .nav-pill { background: var(--gold-muted); }

.nav-btn img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .62;
  transition: filter var(--ease), opacity var(--ease);
}
.nav-btn.ativo img,
.nav-btn:hover img {
  filter: brightness(0) saturate(100%) invert(74%) sepia(50%) saturate(480%) hue-rotate(4deg);
  opacity: 1;
}

.nav-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
}

.nav-dot {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(4px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  border: 1.5px solid var(--surface);
}

/* ── Layout helpers ─────────────────────────────────────────── */
.content {
  display: flex;
  flex-direction: column;
  flex-shrink: 0; /* impede flex de comprimir — ativa scroll na .tela */
  gap: 0.5rem;
  padding: 16px;
}

/* ── Hierarquia Tipográfica Reutilizável ───────────────────── */
.title-large,
.type-title-large {
  font-family: var(--font-display);
  font-size: var(--fs-title-large);
  font-weight: var(--fw-title-large);
  line-height: var(--lh-title-large);
  color: var(--text);
  margin-bottom: var(--space-title-content);
}

.section-title,
.type-section-title {
  font-family: var(--font);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-section-title);
  line-height: var(--lh-section-title);
  color: var(--text);
}

.card-title,
.type-card-title {
  font-family: var(--font);
  font-size: var(--fs-card-title);
  font-weight: var(--fw-card-title);
  line-height: var(--lh-body);
  color: var(--text);
}

.body-text,
.type-body-text {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  color: var(--text);
}

.caption,
.type-caption {
  font-family: var(--font);
  font-size: var(--fs-caption);
  font-weight: var(--fw-caption);
  line-height: var(--lh-caption);
  color: var(--text-muted);
}

.sec-title {
  font-family: var(--font);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-section-title);
  color: var(--text);
  letter-spacing: .2px;
  text-transform: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-border);
}

/* ── Linha de seção com título esq + botão "Ver mais" dir ── */
.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

/* O sec-title dentro de sec-header não usa a linha decorativa */
.sec-header .sec-title::after { display: none; }
.sec-header .sec-title { flex: 1; }

.sec-ver-mais {
  background: none;
  border: none;
  padding: 2px 0;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 600;
  color: #c0504a;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s;
  flex-shrink: 0;
}
.sec-ver-mais:hover { color: #e06a64; }

.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.card:hover { border-color: rgba(212, 175, 55, .45); }

.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }

.card-mini {
  min-width: 126px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease);
}
.card-mini:hover { transform: translateY(-3px); border-color: var(--gold); }

/* ── Story Cards ─────────────────────────────────────────── */
.story-card {
  min-width: 148px;
  max-width: 148px;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.story-video-wrap {
  position: relative;
  width: 100%;
  height: 176px;
  background: var(--card2);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}
.story-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
  background: var(--overlay-soft);
  transition: opacity .2s;
  pointer-events: none;
}
.story-play-btn.playing { opacity: 0; }

/* ── Header global fixo ──────────────────────────────────── */
#app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: url('/shared/img/imgFundoHeader.png') center/cover no-repeat;
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  padding-top: calc(env(safe-area-inset-top) + 10px);
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 10px;
  height: var(--header-h);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#app-header .header-logo-img {
  position: absolute;
  left: 50%;
  transform: translateX(calc(-50% - 10px));
  max-height: 142px;
  width: auto;
  display: block;
  pointer-events: none;
}

#app-header .header-menu-btn,
#app-header .header-avatar-btn {
  flex-shrink: 0;
}

/* Header oculto — sobe para fora da tela */
#app-header.header--oculto {
  transform: translateY(-110%);
}

/* Info Stories: h2 + h3 sempre visíveis na header */
.header-stories-info {
  display: block;
  width: 100%;
  text-align: center;
  padding-top: 6px;
}
.header-stories-info .sec-title {
  color: #fff;
}
.header-stories-info .sec-title::after {
  background: rgba(255, 255, 255, .5);
}
.header-stories-info .stories-tagline {
  -webkit-text-fill-color: #fff;
  background: none;
  color: #fff;
  margin-bottom: 0;
}

/* stories-carousel-wrap na home sobe 1rem sobre o header */
#tela-inicio .stories-carousel-wrap {
  position: relative;
  z-index: 2;
  margin-top: -1rem;
}

/* ── Stories Tagline ──────────────────────────────────────────── */
.stories-tagline {
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-title-large);
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 2px 0 8px;
  background: linear-gradient(90deg, var(--brown-light), var(--gold), var(--brown-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* ── Stories Scroll — 3 cards visíveis, snap 1 card por vez ───── */
.stories-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 8px;
  padding: 6px 10px 8px;
  margin-inline: -16px;
  align-items: flex-start;
}
.stories-scroll::-webkit-scrollbar { display: none; }

.stories-scroll .story-card {
  width: calc((100% - 16px) / 3);
  min-width: 0;
  max-width: none;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.stories-scroll .story-card .story-video-wrap {
  height: auto;
  aspect-ratio: 3 / 4.4;
}

.stories-scroll .story-card .story-shop-badge {
  width: 38px;
  height: 38px;
}

.stories-scroll .story-card .story-card-info {
  padding: 5px 7px 2px;
}

.destaque-name,
.stories-scroll .story-card .story-card-name {
  font-family: var(--font);
  font-size: var(--fs-card-title);
  font-weight: var(--fw-card-title);
  background: linear-gradient(90deg, var(--brown-light), var(--gold), var(--brown-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stories-scroll .story-card .story-card-addr { font-size: var(--fs-caption); }
.stories-scroll .story-card .story-like-btn {
  padding: 4px 7px 7px;
  gap: 3px;
}
.stories-scroll .story-card .story-like-btn img { width: 15px; height: 15px; }
.stories-scroll .story-card .story-like-count { font-size: var(--fs-caption); }

.story-shop-badge {
  width: 77px;
  height: 77px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  background: var(--card);
}
.story-card-info {
  padding: 8px 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.story-card-name {
  font-size: var(--fs-card-title);
  font-weight: var(--fw-card-title);
  font-family: var(--font);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.story-card-addr {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.story-like-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 10px;
  -webkit-tap-highlight-color: transparent;
}
.story-like-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.story-like-btn.curtido img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(1000%) hue-rotate(340deg);
  animation: likePop .2s ease;
}
.story-like-count {
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--text-muted);
}
.story-like-btn.curtido .story-like-count { color: #e74c3c; }
@keyframes likePop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }

/* ── Stories Tagline ──────────────────────────────────────────── */
.stories-tagline {
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-title-large);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 2px 0 8px;
  text-align: center;
  background: linear-gradient(90deg, var(--brown-light), var(--gold), var(--brown-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* ── Stories Scroll — 3 cards visíveis, snap 1 card por vez ───── */
.stories-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 10px;   /* ancora o snap após o padding lateral */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 8px;
  padding: 6px 10px 8px;
  /* quebra o padding do .content para usar largura total */
  margin-inline: -16px;
  align-items: flex-start;
}
.stories-scroll::-webkit-scrollbar { display: none; }

/* Cada card ocupa exatamente 1/3 da área interna (3 cards + 2 gaps de 8px) */
.stories-scroll .story-card {
  width: calc((100% - 16px) / 3);
  min-width: 0;
  max-width: none;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* Vídeo proporcional ao card menor */
.stories-scroll .story-card .story-video-wrap {
  height: auto;
  aspect-ratio: 3 / 4.4;
}

/* Badge da loja — escala para o card menor */
.stories-scroll .story-card .story-shop-badge {
  width: 38px;
  height: 38px;
}

/* Info e like — ajuste de tamanho */
.stories-scroll .story-card .story-card-info {
  padding: 5px 7px 2px;
}
/* Nome compartilhado: Stories + Em Destaque — mesma fonte e tamanho */
.destaque-name,
.stories-scroll .story-card .story-card-name {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--brown-light), var(--gold), var(--brown-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stories-scroll .story-card .story-card-addr { font-size: .59rem; }
.stories-scroll .story-card .story-like-btn {
  padding: 4px 7px 7px;
  gap: 3px;
}
.stories-scroll .story-card .story-like-btn img { width: 15px; height: 15px; }
.stories-scroll .story-card .story-like-count  { font-size: .67rem; }

/* ── LogoGlow — efeito de luz dourada radial (POO) ─────────── */
.logo-glow-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  padding: 0.5rem;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,251,230,.90) 0%, rgba(245,217,122,.65) 28%, rgba(212,175,55,.30) 55%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, rgba(0,0,0,.55) 62%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, rgba(0,0,0,.55) 62%, transparent 82%);
}

/* Variante para o badge dos stories — mantém posicionamento absoluto */
.logo-glow-wrap--badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  border-radius: 50%;
  padding: 4px;
}

.story-shop-badge {
  width: 77px;   /* 96px ≓20% = 77px */
  height: 77px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  background: var(--card);
}
.story-card-info {
  padding: 8px 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.story-card-name {
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.story-card-addr {
  font-size: .68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.story-like-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 10px;
  -webkit-tap-highlight-color: transparent;
}
.story-like-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.story-like-btn.curtido img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(1000%) hue-rotate(340deg);
  animation: likePop .2s ease;
}
.story-like-count {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.story-like-btn.curtido .story-like-count { color: #e74c3c; }
@keyframes likePop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--card2);
  border: 2px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar.gold { border-color: var(--gold); }
.avatar img  { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── Badge / Chip ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--gold-muted);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  text-shadow: 0 0 6px rgba(212,175,55,.5);
}
.badge.closed {
  background: rgba(224, 82, 82, .08);
  color: var(--danger);
  border-color: rgba(224, 82, 82, .25);
}

/* ── Stars ──────────────────────────────────────────────────── */
.stars { color: var(--gold); font-size: .75rem; letter-spacing: 1px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-full);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  letter-spacing: .4px;
  font-family: var(--font);
}
.btn:active { transform: scale(.97); }
.btn-full   { width: 100%; }

.btn-gold {
  background: var(--cta);
  color: var(--cta-text);
  box-shadow: 0 8px 20px rgba(242, 183, 5, .28);
}
.btn-gold:hover { box-shadow: 0 10px 24px rgba(242, 183, 5, .35); transform: translateY(-2px); }

.btn-outline {
  background: var(--card);
  color: var(--gold-dark);
  border: 1.5px solid var(--gold-dark);
}
.btn-outline:hover { background: var(--gold-muted); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-sm     { padding: 7px 16px; font-size: var(--fs-caption); }

/* ── Stories ────────────────────────────────────────────────── */
.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.story-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  transition: transform var(--ease);
}
.story-ring:hover { transform: scale(1.08); }
.story-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--card2);
  border: 2.5px solid var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  overflow: hidden;
}
.story-name {
  font-size: .6rem;
  color: var(--text-muted);
  max-width: 58px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── MapWidget — Container Leaflet ──────────────────────────── */
.mapa-container {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  background: var(--card);
}

/* Leaflet attribution — dark */
.mapa-container .leaflet-control-attribution {
  background: rgba(0,0,0,.65) !important;
  color: rgba(255,255,255,.4) !important;
  font-size: .58rem !important;
}
.mapa-container .leaflet-control-attribution a { color: var(--gold) !important; }

/* Zoom control — dark */
.mapa-container .leaflet-bar a {
  background: var(--surface) !important;
  color: var(--gold) !important;
  border-color: var(--gold-border) !important;
}
.mapa-container .leaflet-bar a:hover { background: var(--card) !important; }

/* ── FAB sobre o mapa ───────────────────────────────────────── */
.mapa-gps-fab {
  position:   absolute;
  bottom:     16px;
  left:       50%;
  transform:  translateX(-50%);
  z-index:    500;
  display:    flex;
  align-items: center;
  gap:        8px;
  background: var(--gold);
  color:      #0a0a0a;
  border:     none;
  border-radius: var(--r-full);
  padding:    10px 22px;
  font-size:  .88rem;
  font-weight: 700;
  cursor:     pointer;
  box-shadow: 0 4px 20px rgba(212,175,55,.50);
  transition: transform .25s, opacity .3s, box-shadow .25s;
  white-space: nowrap;
  letter-spacing: .4px;
  -webkit-tap-highlight-color: transparent;
}
.mapa-gps-fab:active               { transform: translateX(-50%) scale(.94); }
.mapa-gps-fab--oculto              { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(50px); }
.mapa-gps-fab--carregando          {
  background: var(--card);
  color:      var(--gold);
  border:     1px solid var(--gold-border);
  cursor:     default;
  animation:  mapa-fab-pulse .9s ease-in-out infinite alternate;
}
.mapa-gps-fab--erro {
  background: #8B2500;
  color:      #fff;
  box-shadow: 0 4px 20px rgba(139,37,0,.50);
}

@keyframes mapa-fab-pulse {
  from { box-shadow: 0 4px 16px rgba(212,175,55,.15); }
  to   { box-shadow: 0 6px 32px rgba(212,175,55,.65); }
}

/* ── Marcador — posição do usuário ─────────────────────────── */
.mapa-marker-user  {
  position: relative;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.mapa-marker-user-dot {
  width:  14px; height: 14px;
  background:    var(--gold);
  border:        2.5px solid #0a0a0a;
  border-radius: 50%;
  position:      relative;
  z-index:       2;
  box-shadow:    0 0 8px rgba(212,175,55,.85);
}
.mapa-marker-user-pulse {
  position:      absolute; inset: 0;
  border-radius: 50%;
  background:    rgba(212,175,55,.28);
  animation:     mapa-user-pulse 1.7s ease-out infinite;
}
@keyframes mapa-user-pulse {
  0%   { transform: scale(1);   opacity: .9; }
  100% { transform: scale(2.4); opacity: 0;  }
}

/* ── Marcador avatar — barbearia ────────────────────────────── */
.mapa-av {
  position:        relative;
  width:           48px;
  height:          58px;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  cursor:          pointer;
  filter:          drop-shadow(0 3px 8px rgba(0,0,0,.6));
  transition:      transform .18s;
}
.mapa-av:hover          { transform: scale(1.1); }
.mapa-av:active         { transform: scale(.95); }

.mapa-av__ring {
  width:           46px;
  height:          46px;
  border-radius:   50%;
  border:          2.5px solid var(--gold);
  overflow:        hidden;
  background:      var(--surface);
  display:         flex;
  align-items:     center;
  justify-content: center;
  box-shadow:      0 0 0 2px rgba(212,175,55,.18), 0 2px 10px rgba(0,0,0,.5);
  flex-shrink:     0;
}
.mapa-av__img {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  border-radius:   50%;
  display:         block;
}
.mapa-av__initials {
  width:           100%;
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       .95rem;
  font-weight:     800;
  color:           var(--gold);
  background:      var(--card);
  letter-spacing:  .5px;
  user-select:     none;
}
.mapa-av__pin {
  width:            0;
  height:           0;
  border-left:      7px solid transparent;
  border-right:     7px solid transparent;
  border-top:       11px solid var(--gold);
  margin-top:       -1px;
  filter:           drop-shadow(0 2px 3px rgba(0,0,0,.4));
}

/* ── Tooltip permanente — nome da barbearia ─────────────────── */
.mapa-tooltip-nome.leaflet-tooltip {
  background:      rgba(10,10,10,.88) !important;
  border:          1px solid var(--gold-border) !important;
  border-radius:   20px !important;
  color:           var(--gold) !important;
  font-size:       .68rem !important;
  font-weight:     700 !important;
  padding:         2px 8px !important;
  white-space:     nowrap !important;
  box-shadow:      0 2px 8px rgba(0,0,0,.5) !important;
  letter-spacing:  .3px;
  pointer-events:  none;
}
.mapa-tooltip-nome.leaflet-tooltip::before { border: none !important; }

/* ── Popup Leaflet — dark ───────────────────────────────────── */
.leaflet-popup-content-wrapper {
  background:    var(--surface)    !important;
  color:         var(--text)       !important;
  border:        1px solid var(--gold-border) !important;
  border-radius: var(--r-md)       !important;
  box-shadow:    0 4px 20px rgba(0,0,0,.55) !important;
  padding:       0 !important;
}
.leaflet-popup-content  { margin: 0 !important; }
.leaflet-popup-tip      { background: var(--surface) !important; }
.leaflet-popup-close-button {
  color:         var(--gold)       !important;
  font-size:     1rem              !important;
  padding:       4px 7px          !important;
  top:           2px               !important;
  right:         2px               !important;
}

/* ── Popup card — layout ────────────────────────────────────── */
.mapa-popup {
  display:         flex;
  align-items:     flex-start;
  gap:             10px;
  padding:         12px 14px;
  min-width:       200px;
  max-width:       250px;
}
.mapa-popup__avatar {
  width:           52px;
  height:          52px;
  border-radius:   50%;
  border:          2px solid var(--gold);
  overflow:        hidden;
  flex-shrink:     0;
  background:      var(--card);
  display:         flex;
  align-items:     center;
  justify-content: center;
}
.mapa-popup__avatar-img {
  width:           100%;
  height:          100%;
  object-fit:      cover;
}
.mapa-popup__avatar-initials {
  width:           100%;
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       1rem;
  font-weight:     800;
  color:           var(--gold);
}
.mapa-popup__info {
  display:         flex;
  flex-direction:  column;
  gap:             3px;
  flex: 1;
  min-width: 0;
}
.mapa-popup__nome {
  color:           var(--gold);
  font-size:       .9rem;
  font-weight:     700;
  white-space:     nowrap;
  overflow:        hidden;
  text-overflow:   ellipsis;
  display:         block;
}
.mapa-popup__meta {
  display:         flex;
  align-items:     center;
  gap:             6px;
  flex-wrap:       wrap;
}
.mapa-popup__badge {
  font-size:       .65rem;
  font-weight:     700;
  padding:         1px 7px;
  border-radius:   20px;
  letter-spacing:  .3px;
}
.mapa-popup__badge--open   { background: rgba(212,175,55,.18); color: var(--gold, #D4AF37); border: 1px solid rgba(212,175,55,.35); text-shadow: 0 0 6px rgba(212,175,55,.55); }
.mapa-popup__badge--closed { background: rgba(139,37,0,.22);   color: #e07050; border: 1px solid rgba(139,37,0,.35); }
.mapa-popup__rating {
  font-size:       .72rem;
  color:           var(--gold);
  display:         flex;
  align-items:     center;
  gap:             2px;
}
.mapa-popup__rating small { color: var(--text-muted); font-size: .67rem; }
.mapa-popup__addr {
  font-size:       .72rem;
  color:           var(--text-muted);
  white-space:     nowrap;
  overflow:        hidden;
  text-overflow:   ellipsis;
  display:         block;
}
.mapa-popup__dist {
  font-size:       .72rem;
  color:           var(--gold);
  font-weight:     600;
}

/* ── Map Placeholder (fallback) ─────────────────────────────── */
.map-box {
  width: 100%;
  height: 175px;
  background: var(--card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .83rem;
  position: relative;
  overflow: hidden;
}
.map-pin   { font-size: 2rem; position: relative; z-index: 1; }
.map-box p { position: relative; z-index: 1; text-align: center; line-height: 1.5; }

.nearby-hint-wrap {
  background: var(--card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.nearby-hint-msg {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}
.nearby-hint-msg strong {
  color: var(--gold);
  font-weight: 700;
}
.nearby-hint-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ── Search Bar (tela pesquisa) ────────────────────────────── */
/* ── Cabeçalho da tela de pesquisa ──────────────────────────── */
.search-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding: 12px 0.3rem 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--gold-border);
}

/* btn-voltar dentro do search-header usa position static */
.search-header .btn-voltar {
  position: static;
  padding: 4px 8px;
}

.search-bar-input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  margin-top: 1.5rem;
  background: var(--card);
  border: 1.5px solid var(--gold-border);
  border-radius: 3px;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  padding: 0 14px;
  caret-color: var(--gold);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-bar-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}
.search-bar-input::placeholder { color: var(--text-dim); }
.search-bar-input::-webkit-search-cancel-button {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(10deg);
}

/* ── Texto animado "dig" (digitação) ──────────────────────── */
.search-dig {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 14px;
  font-size: 1.18rem;
  font-family: 'Special Elite', 'Courier New', Courier, monospace;
  color: var(--gold-dark, #6B4A32);
  line-height: 1.8;
  min-height: 1.5em;
  margin-top: 20px;
  text-align: center;
  letter-spacing: 0.02em;
  background: var(--gold-muted, rgba(212,160,23,.10));
  border-left: 3px solid var(--gold, #D4A017);
  border-radius: 0 6px 6px 0;
}
.search-dig.dig-ativo::after {
  content: '|';
  display: inline-block;
  animation: dig-cursor 0.7s step-end infinite;
  color: var(--gold);
  margin-left: 1px;
}
@keyframes dig-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.search-content {
  padding-top: 16px;
}

/* Search placeholder (bem-vindo / vazio / erro) */
.search-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 16px;
  text-align: center;
}
.search-placeholder-icon { font-size: 2.4rem; }
.search-placeholder-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.75;
}

/* ── NearbyBarbershopsWidget ────────────────────────────────── */
.nearby-gps-off {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--card);
  border-radius: var(--r-md);
  border: 1px solid var(--gold-border);
  text-align: center;
}
.nearby-gps-icon { font-size: 2rem; }
.nearby-gps-msg  { font-size: .83rem; color: var(--text-muted); line-height: 1.5; }
.nearby-gps-btn  { margin-top: 4px; }

.nearby-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: .83rem;
}
.nearby-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--gold-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: nearby-spin .7s linear infinite;
}
@keyframes nearby-spin { to { transform: rotate(360deg); } }

.nearby-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Nenhuma barbearia por perto ──────────────────────── */
.nearby-vazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  text-align: center;
}
.nearby-vazio-icone {
  font-size: 2rem;
  line-height: 1;
  opacity: .6;
}
.nearby-vazio-titulo {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.nearby-vazio-sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 240px;
}

.nearby-gps-btn-round {
  border-radius: var(--r-full);
  padding: 10px 28px;
  font-size: .9rem;
  letter-spacing: .5px;
  margin-top: 6px;
}

/* ── Chairs (fila) ──────────────────────────────────────────── */
.chair {
  min-width: 62px;
  height: 72px;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  gap: 4px;
  border: 1.5px solid var(--gold-border);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease);
}
.chair:hover          { transform: translateY(-2px); }
.chair img            { width: 30px; height: 30px; object-fit: contain; }
.chair.ocupada        { background: rgba(212, 175, 55, .07); border-color: var(--gold);                 color: var(--gold); }
.chair.livre          { background: rgba(107, 74, 50, .06); color: var(--text-dim); }
.chair.espera         { background: rgba(224, 82, 82, .07);   border-color: rgba(224, 82, 82, .35);     color: var(--danger); }

/* ── Barber Row ─────────────────────────────────────────────── */
.barber-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
}
.barber-row:hover { border-color: rgba(212, 175, 55, .5); transform: translateX(3px); }
.barber-info      { flex: 1; min-width: 0; }
.barber-name      { font-size: var(--fs-card-title); font-weight: var(--fw-card-title); font-family: var(--font); }
.barber-sub       { font-size: var(--fs-caption); color: var(--text-muted); margin-top: 2px; }
.barber-meta      { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.price            { font-size: .8rem; font-weight: 700; color: var(--gold); }

/* ── Tags ───────────────────────────────────────────────────── */
.tags { display: flex; gap: 7px; flex-wrap: wrap; }
.tag {
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--card2);
  border: 1px solid var(--gold-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.tag:hover, .tag.on { background: var(--gold-muted); border-color: var(--gold); color: var(--gold); }

/* ── Search Bar ─────────────────────────────────────────────── */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--r-full);
  padding: 11px 16px;
  transition: border-color var(--ease);
}
.search-wrap:focus-within          { border-color: var(--gold); }
.search-wrap img                   { width: 18px; opacity: .7; filter: brightness(0) saturate(100%) invert(24%) sepia(28%) saturate(829%) hue-rotate(344deg) brightness(91%) contrast(89%); flex-shrink: 0; }
.search-wrap input                 { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-size: var(--fs-body); font-family: var(--font); }
.search-wrap input::placeholder    { color: var(--text-dim); }

/* ── Chat List ──────────────────────────────────────────────── */
.chat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--r-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color var(--ease);
}
.chat-item:hover    { border-color: var(--gold-border); }
.chat-info          { flex: 1; min-width: 0; }
.chat-name          { font-size: var(--fs-card-title); font-weight: var(--fw-card-title); }
.chat-preview       { font-size: var(--fs-caption); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-meta          { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.chat-time          { font-size: var(--fs-caption); color: var(--text-dim); }
.chat-badge         { background: var(--gold); color: var(--bg); font-size: .62rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ── Profile Hero ───────────────────────────────────────────── */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: calc(32px + 1.5rem) 16px 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, .09) 0%, transparent 60%);
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--card2);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-name { font-family: var(--font-display); font-size: var(--fs-title-large); font-weight: var(--fw-title-large); line-height: var(--lh-title-large); }
.profile-sub  { font-size: var(--fs-caption); color: var(--text-muted); }

/* ── Perfil — Ações (Editar / Criar) ───────────────────────── */
.perfil-acoes {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.btn-perfil-editar,
.btn-perfil-criar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  min-width: 130px;
  border: none;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: opacity .18s, transform .15s;
  white-space: nowrap;
}
.btn-perfil-editar:active,
.btn-perfil-criar:active { opacity: .78; transform: scale(.96); }

/* Amarelo-ouro → Editar perfil */
.btn-perfil-editar {
  background: var(--gold);
  color: #1a0800;
}
/* Marrom → + Criar */
.btn-perfil-criar {
  background: var(--brown);
  color: #fff;
  border: 1.5px solid var(--brown-border);
}

/* ── Perfil — Lista de dados pessoais ──────────────────────── */
.perfil-lista {
  list-style: none;
  margin: 0;
  padding: 0 16px 32px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  align-self: stretch;
}
.perfil-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--gold-border);
}
.perfil-item:last-child { border-bottom: none; }
/* ícone decorativo à esquerda de cada campo */
.pi-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--text);
  opacity: .55;
}
.perfil-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.perfil-item-label {
  font-size: .68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  transition: opacity .2s;
}
.perfil-item-label[hidden] { display: none; }
.pi-val {
  font-size: .92rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Botão lápis: escondido até ativar modo editar */
.btn-pi-lapis {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, background .15s, color .15s;
  flex-shrink: 0;
}
.perfil-lista.modo-editar .btn-pi-lapis {
  opacity: 1;
  pointer-events: auto;
}
.btn-pi-lapis:hover  { background: var(--gold-muted); color: var(--gold); }
.btn-pi-lapis:active { transform: scale(.88); }
/* Campo editável inline */
.pi-editor {
  flex: 1;
  background: var(--card2);
  border: 1.5px solid var(--gold);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: .9rem;
  padding: 7px 10px;
  outline: none;
  min-width: 0;
  width: 100%;
  max-width: 260px;
}
.pi-editor:focus { border-color: var(--gold-light); box-shadow: 0 0 0 3px var(--gold-muted); }
select.pi-editor  { appearance: auto; cursor: pointer; }

/* ── Stat Grid ──────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-border);
  border-radius: var(--r-md);
  overflow: hidden;
  width: 100%;
  max-width: 360px;
}
.stat-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; background: var(--card); }
.stat-val  { font-size: 1.1rem; font-weight: 800; color: var(--gold); }
.stat-lbl  { font-size: .64rem; color: var(--text-muted); text-align: center; }

/* ── Menu List ──────────────────────────────────────────────── */
.menu-list { display: flex; flex-direction: column; gap: 3px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: var(--card);
  border-radius: var(--r-md);
  cursor: pointer;
  border: 1px solid var(--border-soft);
  transition: border-color var(--ease), background var(--ease);
}
.menu-item:hover { border-color: var(--gold-border); background: var(--card2); }
.menu-icon  { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--gold-muted); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.menu-label { flex: 1; font-size: var(--fs-body); font-weight: var(--fw-section-title); }
.menu-arrow { color: var(--text-dim); font-size: .9rem; }

/* ── Sair Screen ────────────────────────────────────────────── */
.sair-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 100%;
  padding: 40px 24px;
  text-align: center;
}
/* Botão-ícone central — o elemento clicável de confirmar saída */
.sair-icone-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(224,82,82,.18) 0%,
    rgba(224,82,82,.06) 60%,
    transparent 80%);
  border: 2px solid rgba(224, 82, 82, .35);
  box-shadow: 0 0 32px rgba(224,82,82,.15);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.sair-icone-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(224,82,82,.12);
  pointer-events: none;
}
.sair-icone-btn:hover,
.sair-icone-btn:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 0 48px rgba(224,82,82,.28);
  border-color: rgba(224,82,82,.6);
}
.sair-icone-btn:active {
  transform: scale(.95);
}
.sair-icone-btn img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(42%) sepia(63%) saturate(700%) hue-rotate(330deg);
  transition: filter .18s;
}

/* Estado "confirmando" — feedback visual ao clicar */
.sair-icone-btn.saindo-confirm {
  animation: sairPulse .4s ease forwards;
  pointer-events: none;
}
@keyframes sairPulse {
  0%   { transform: scale(1);    box-shadow: 0 0 32px rgba(224,82,82,.15); }
  40%  { transform: scale(1.15); box-shadow: 0 0 64px rgba(224,82,82,.45); }
  100% { transform: scale(.9);   box-shadow: 0 0 16px rgba(224,82,82,.08); opacity: .5; }
}

.sair-texto-titulo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: .3px;
}
.sair-texto-sub {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: -16px auto 0;
}
.sair-hint {
  font-size: .72rem;
  color: var(--text-dim);
  opacity: .7;
}
.sair-btns { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }

/* ── Login Screen ───────────────────────────────────────────── */
.login-bg {
  min-height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 36px;
  gap: 20px;
  background: var(--bg);
}

.login-logo     { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.login-logo .app-icon {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(43, 27, 18, .18));
}

.login-tagline  { font-size: var(--fs-caption); color: var(--text-muted); letter-spacing: 1.4px; text-transform: uppercase; }

/* Card branco do formulário de auth */
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(43, 27, 18, .10);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: .2px;
}

.login-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.login-form[hidden] { display: none !important; }

.form-field         { display: flex; flex-direction: column; gap: 6px; }
.form-field label   { font-size: var(--fs-caption); font-weight: var(--fw-section-title); color: var(--text-muted); letter-spacing: .2px; }
.form-field input {
  width: 100%;
  padding: 13px 16px;
  background: var(--card);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--fs-body);
  font-family: var(--font);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-field input::placeholder { color: var(--text-dim); }
.form-field input:focus        { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .1); }

.login-link   { font-size: var(--fs-caption); color: var(--text-dim); text-align: center; line-height: 1.6; }
.login-link a { color: var(--gold); text-decoration: none; font-weight: 700; }

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.auth-social-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-align: center;
}
.auth-social-separator::before,
.auth-social-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
/* Botões sociais no padrão do sistema (.btn-flow), variante contorno gold —
   mesma linguagem visual dos botões flow, mas secundários ao submit dourado. */
.auth-social-btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--gold, #c9872a);
  border-radius: var(--r-sm, 8px);
  background: transparent;
  color: var(--gold, #c9872a);
  font: inherit;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, border-color .15s, transform var(--ease);
}
.auth-social-btn:active,
.auth-social-btn:hover {
  background: var(--gold, #c9872a);
  border-color: var(--gold, #c9872a);
  color: #1a0800;
  transform: translateY(-1px);
}
.auth-social-btn:disabled {
  opacity: .65;
  cursor: progress;
  transform: none;
}
.auth-social-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: .9rem;
  line-height: 1;
  background: #fff;
}
.auth-social-btn--google .auth-social-icon { color: #1a73e8; }
.auth-social-btn--facebook .auth-social-icon {
  background: #1877f2;
  color: #fff;
  font-size: 1.05rem;
}

/* Mensagens de erro/sucesso nos formulários de auth */
.form-erro {
  display: none;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  line-height: 1.5;
  margin-bottom: -4px;
}
.form-erro--error   { color: var(--danger); background: rgba(224,82,82,.10); border: 1px solid rgba(224,82,82,.25); }
.form-erro--success { color: var(--success); background: rgba(82,201,122,.10); border: 1px solid rgba(82,201,122,.25); }

/* ── CriarBarbeariaPage — mensagem e intro ──────────────────── */
.criar-msg {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  margin-bottom: 4px;
  min-height: 1.6em;
}
.criar-msg:empty { display: none; }
.criar-msg.form-erro   { display: block; color: var(--danger);  background: rgba(224,82,82,.10); border: 1px solid rgba(224,82,82,.25); }
.criar-msg--ok         { color: var(--success); background: rgba(82,201,122,.10); border: 1px solid rgba(82,201,122,.25); }
.criar-intro p {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* ── Empty State ────────────────────────────────────────────── */
/* ── Splash Overlay — troca de app (compacto / mobile-first) ────────── */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #5A3E2B 0%, #2B1B12 100%);
  animation: splashIn .3s ease both;
}
.splash-overlay.saindo { animation: splashOut .45s ease both; }
@keyframes splashIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes splashOut { from { opacity: 1; } to { opacity: 0; } }

.splash-logo-nome {
  width: 52%;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(212,175,55,.4));
}

.splash-app {
  font-family: var(--font-display);
  font-size: .88rem;
  color: #fff;
  letter-spacing: 2px;
  text-align: center;
  margin: 0;
}
.splash-app strong {
  display: block;
  color: #D4AF37;
  font-size: 1.05rem;
  letter-spacing: 4px;
  margin-top: 2px;
}

.splash-polo-wrap {
  height: 11rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.splash-polo-wrap .barber-pole {
  transform: scale(0.42);
  transform-origin: top center;
}

.empty        { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 24px; text-align: center; }
.empty-icon   { width: 68px; height: 68px; border-radius: 50%; background: var(--gold-muted); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.empty-title  { font-size: var(--fs-section-title); font-weight: var(--fw-section-title); }
.empty-text   { font-size: var(--fs-caption); color: var(--text-muted); line-height: 1.6; max-width: 270px; }

/* ── BarberPole Component ───────────────────────────────────── */

/* Container — flex coluna centralizado */
.barber-pole {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  user-select: none;
}

/* Globo com efeito de luz acesa */
.bp-globo {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    #fffde0 0%,        /* ponto de luz — branco quente */
    #E8C84A 18%,       /* dourado claro */
    #D4AF37 38%,       /* ouro do sistema */
    #8B4500 65%,       /* marrom avermelhado */
    #3a0800 100%       /* escuro */
  );
  border: 2px solid rgba(212, 175, 55, 0.8);
  box-shadow:
    0 0 12px 4px  rgba(212, 175, 55, 0.9),
    0 0 28px 10px rgba(212, 175, 55, 0.4),
    0 0 60px 20px rgba(139, 69,  0,  0.25),
    inset 0  2px 8px  rgba(255, 253, 200, 0.35),
    inset 0 -4px 12px rgba(0,   0,   0,   0.5);
  margin-bottom: -3rem;
  transform: translateY(-0.8rem);
  z-index: 1;
  animation: bp-glow 2.5s ease-in-out infinite;
}

@keyframes bp-glow {
  0%, 100% {
    box-shadow:
      0 0 12px 4px  rgba(212, 175, 55, 0.9),
      0 0 28px 10px rgba(212, 175, 55, 0.4),
      0 0 60px 20px rgba(139, 69,  0,  0.25),
      inset 0  2px 8px  rgba(255, 253, 200, 0.35),
      inset 0 -4px 12px rgba(0,   0,   0,   0.5);
  }
  50% {
    box-shadow:
      0 0 22px 9px  rgba(212, 175, 55, 1),
      0 0 50px 20px rgba(212, 175, 55, 0.65),
      0 0 90px 38px rgba(139, 69,  0,  0.45),
      inset 0  2px 8px  rgba(255, 253, 200, 0.55),
      inset 0 -4px 12px rgba(0,   0,   0,   0.5);
  }
}

/* Topo — moldura superior com nome */
.bp-topo {
  width: 8rem;
  height: 2.5rem;
  background: linear-gradient(180deg, var(--wood-light) 0%, var(--wood-1) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.bp-nome {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #D4AF37;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 4px rgba(43, 27, 18, 0.55), 0 0 8px rgba(212, 175, 55, 0.35);
}

/* Aro central */
.bp-aro {
  width: 11.5rem;
  height: 2rem;
  background: linear-gradient(180deg, var(--wood-2) 0%, var(--wood-1) 50%, var(--wood-2) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  border-radius: 0.4rem;
  z-index: 2;
}

/* Campo — área animada SVG */
.bp-campo {
  width: 10.5rem;
  height: 21rem;
  background: var(--wood-darker);
  border-left:   1.5px solid rgba(212, 175, 55, 0.45);
  border-right:  1.5px solid rgba(212, 175, 55, 0.45);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 0 0 0.4rem 0.4rem;
  overflow: hidden;
  position: relative;
}

.bp-campo svg { width: 100%; height: 100%; display: block; }

/* Pedestais */
.bp-base-med {
  width: 12.5rem;
  height: 2rem;
  background: linear-gradient(180deg, var(--wood-1) 0%, var(--wood-2) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  border-radius: 0.4rem;
}

.bp-base {
  width: 14rem;
  height: 2rem;
  background: linear-gradient(180deg, var(--wood-1) 0%, var(--wood-dark) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  border-radius: 0.4rem;
}

/* ── Story Viewer — overlay expandido (StoryViewer.js) ─────── */
#sv-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .28s ease;
}
#sv-overlay.sv-ativo { opacity: 1; }

.sv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Linha horizontal: prev | card | next */
.sv-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Stage: perspective container — sobrepõe os dois inners (dual-buffer) */
.sv-stage {
  position: relative;
  width: 80vw;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  perspective: 1200px;          /* mais sutil que 900px → efeito premium */
  perspective-origin: 50% 50%;
}

/* Dois inners ocupam o mesmo espaço absoluto dentro do stage.
   transform e opacity injetados pelo StorySwipeTransition.js (GPU). */
.sv-inner {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1.5px solid var(--gold-border);
  box-shadow:
    0 24px 64px rgba(0,0,0,.85),
    0 0 0 1px rgba(212,175,55,.12);
  /* Força camada compositor própria — evita repaint durante a animação */
  will-change: transform, opacity;
  transform-origin: 50% 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Overlay de escurecimento dinâmico — controlado por --sv-darken via JS.
   Reforça separação de profundidade entre card que sai e card que entra. */
.sv-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--sv-darken, 0);
  pointer-events: none;
  z-index: 19;
  border-radius: 18px;
}

/* Indicadores de posição (pílulas) — injetados pelo StoryProgressLayer.js */
.sv-progress {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 5px;
  pointer-events: none;
}
.sv-progress-pill {
  height: 3px;
  width: 20px;
  border-radius: 99px;
  background: rgba(255,255,255,.35);
  transition: background .2s ease, width .2s ease;
  flex-shrink: 0;
}
.sv-progress-pill.ativo {
  background: rgba(255,255,255,.92);
  width: 28px;
}

.sv-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradiente + info no topo — flex coluna para acomodar badge+nome (linha 1) e barber (linha 2) */
.sv-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 14px 12px 32px;
  background: linear-gradient(to bottom, rgba(0,0,0,.75) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
/* Linha 1: badge + info + fechar */
.sv-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sv-top-row > * { pointer-events: auto; }

.sv-badge {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}
.sv-info { flex: 1; min-width: 0; }
.sv-nome {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-addr {
  font-size: .7rem;
  color: rgba(255,255,255,.72);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-fechar {
  all: unset;
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: .9rem;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Gradiente + curtir na base */
.sv-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  display: flex;
  justify-content: flex-end;
}
.sv-like-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  -webkit-tap-highlight-color: transparent;
}
.sv-like-icon {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .2s, filter .2s;
  display: flex;
  align-items: center;
}
.sv-like-btn span {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
}
.sv-like-btn.curtido .sv-like-icon {
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, .95));
  transform: scale(1.25);
}

/* Botão mensagem (ícone 💬 só — igual ao portfólio) */
.sv-comentar-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  margin-left: 8px;
  -webkit-tap-highlight-color: transparent;
  font-size: 1.3rem;
  line-height: 1;
}

/* ── Painel de comentários (slide-up sobre o inner) ─────── */
.sv-comment-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(12,8,4,.92);
  border-top: 1px solid var(--gold-border);
  border-radius: 0 0 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 25;
  transition: max-height .35s cubic-bezier(.22,.61,.36,1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sv-comment-panel--aberto {
  max-height: 70%;
}

.sv-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(212,175,55,.15);
  flex-shrink: 0;
}
.sv-comment-header span {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold);
}
.sv-comment-fechar {
  all: unset;
  cursor: pointer;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  padding: 4px 8px;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.sv-comment-lista {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
}
.sv-comment-lista::-webkit-scrollbar { display: none; }

.sv-comment-vazio {
  text-align: center;
  color: rgba(255,255,255,.40);
  font-size: .8rem;
  padding: 20px 0;
  margin: 0;
}

.sv-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 1;
  transition: opacity .2s;
}
.sv-comment-item--enviando { opacity: .55; }

.sv-comment-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,.35);
}
.sv-comment-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.sv-comment-body {
  flex: 1;
  background: rgba(255,255,255,.06);
  border-radius: 10px 10px 10px 2px;
  padding: 6px 10px;
}
.sv-comment-nome {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-muted, #b8943a);
  display: block;
  margin-bottom: 2px;
}
.sv-comment-texto {
  font-size: .82rem;
  color: rgba(255,255,255,.88);
  margin: 0 0 2px;
  word-break: break-word;
}
.sv-comment-hora {
  font-size: .65rem;
  color: rgba(255,255,255,.35);
  display: block;
  text-align: right;
}

.sv-comment-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(212,175,55,.12);
  flex-shrink: 0;
}
.sv-comment-input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: var(--r-full);
  padding: 9px 14px;
  font-size: .85rem;
  color: #fff;
  outline: none;
  transition: border-color .18s;
  min-width: 0;
}
.sv-comment-input::placeholder { color: rgba(255,255,255,.35); }
.sv-comment-input:focus { border-color: var(--gold); }
.sv-comment-enviar {
  all: unset;
  cursor: pointer;
  padding: 9px 16px;
  border-radius: var(--r-full);
  background: var(--gold);
  color: #1a0800;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s;
}
.sv-comment-enviar:active { opacity: .80; }

/* Botões de navegação prev / next — ficam fora do .sv-inner */
.sv-nav {
  all: unset;
  cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 1.6rem;
  flex-shrink: 0;
  margin: 0 6px;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, transform .12s;
  user-select: none;
}
.sv-nav:active {
  background: rgba(212,175,55,.3);
  transform: scale(.88);
}

/* ── Desktop breakpoints ────────────────────────────────────── */
@media (min-width: 640px) {
  .footer-nav { max-width: 540px; left: 50%; transform: translateX(-50%); border-radius: 20px 20px 0 0; }
  .content    { padding: 20px 24px; max-width: 680px; margin: 0 auto; }
}

@media (min-width: 1024px) {
  .content { padding: 24px 32px; }
}

/* ============================================================
   MESSAGES — Lista de conversas + Modal de chat
============================================================ */

/* ── Lista de conversas ─────────────────────────────────── */
/* ── Logo + cabeçalho da tela de mensagens ───────────────── */
.msgs-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
}
.msgs-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  display: block;
}

.msgs-chatflow {
  font-family: var(--font-display, 'Rye', serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}
.msgs-notif-dig {
  margin-top: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.2em;
  display: none;
}
.msgs-notif-dig.dig-visivel { display: block; }
.barber-row--unread {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px var(--gold-muted, rgba(212,160,23,.25)) !important;
}

/* Card iluminado enquanto o DigText cita o nome do remetente */
.card-citado {
  border-color: var(--gold) !important;
  animation: card-pulso 0.7s ease-in-out infinite alternate;
  position: relative;
  z-index: 1;
}
@keyframes card-pulso {
  from { box-shadow: 0 0 0 2px rgba(212,175,55,.55), 0 0  8px rgba(212,175,55,.25); }
  to   { box-shadow: 0 0 0 4px rgba(212,175,55,1),   0 0 28px rgba(212,175,55,.75); }
}
.msgs-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
}

/* ── Empty state ────────────────────────────────────────── */
.msgs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 16px;
  color: var(--text-dim);
  text-align: center;
}
.msgs-empty span          { font-size: 2.8rem; }
.msgs-empty p:first-of-type { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.msgs-empty p:last-of-type  { font-size: 0.8rem; }

/* ── lock do body quando modal aberto ──────────────────── */

/* ── Tela Chat (full-screen, dentro do #app) ────────────── */
/* A tela cobre a tela inteira (header + conteúdo + rodapé):
   top:0 e bottom:0 garantem que nada fica fora da área visível
   em qualquer tamanho de dispositivo móvel. */
#tela-chat {
  overflow: hidden;
  top: 0 !important;           /* cobre o header global */
  bottom: 0 !important;        /* cobre o rodapé do sistema */
  padding-bottom: 0 !important;
  z-index: 1100;               /* acima do header (z-index:1000) e do nav */
}

/* No topo do chat: layout flex com btn-voltar + avatar + nome/sub.
   min-width:0 nos filhos flex garante que o texto não ultrapasse
   a largura disponível em telas pequenas. */
#tela-chat .tela-topo {
  border-bottom: 1px solid var(--gold-border);
  background: var(--card);
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top)); /* barra de status iOS/Android */
  flex-shrink: 0;
  min-height: 0;
  overflow: hidden;           /* evita que avatar/nome vazem */
}

/* Seta preta do btn-voltar exclusiva do chat (SVG inline, sem ::before dourado) */
#tela-chat .btn-voltar {
  color: #1a0800 !important;
  padding: 8px 8px 8px 0;
  position: static !important;
  background: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  flex-shrink: 0;             /* não encolhe em telas pequenas */
  min-width: 32px;            /* toque mínimo confortável */
  min-height: 32px;
}
#tela-chat .btn-voltar::before {
  content: none !important;      /* suprime o pseudo-elemento por completo */
  display: none !important;
}
#tela-chat .btn-voltar svg {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

/* Avatar menor para caber na linha do topo */
#tela-chat .chat-modal-avatar {
  width: 38px;
  height: 38px;
  font-size: 0.75rem;
}

/* Título + sub no chat-topo */
#tela-chat .chat-modal-nome {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tela-chat .chat-modal-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Área de mensagens expande para preencher todo o espaço disponível */
#tela-chat .chat-mensagens {
  flex: 1;
  min-height: 0; /* crucial para que flex:1 respeite o limite do pai */
}

#tela-chat .chat-modal-title-wrap {
  flex: 1;
  min-width: 0;               /* garante que o texto seja truncado e não empurre o layout */
}

/* Rodapé do chat sempre colado à base da tela */
#tela-chat .chat-modal-footer {
  flex-shrink: 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom)); /* safe-area abaixo da home-bar */
}

/* ── Cabeçalho do modal ─────────────────────────────────── */
.chat-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--gold-border);
  background: var(--card);
  flex-shrink: 0;
}

.chat-modal-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-muted);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-dark);
  flex-shrink: 0;
  overflow: hidden;
}

.chat-modal-title-wrap { flex: 1; min-width: 0; }
.chat-modal-nome { font-size: 1rem; font-weight: 700; color: var(--text); }
.chat-modal-sub  { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-modal-fechar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--card2);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
}
.chat-modal-fechar:hover { background: var(--gold-muted); color: var(--gold); }

/* ── Área de mensagens ──────────────────────────────────── */
.chat-mensagens {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface, var(--bg));
}

/* ── Bolhas de chat ─────────────────────────────────────── */
.chat-bubble-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 82%;
}
.chat-bubble-eu,
.chat-message-row--eu {
  align-self: flex-end;
}
.chat-bubble-outro,
.chat-message-row--outro {
  align-self: flex-start;
}

.chat-message-row {
  align-items: flex-end;
}

.chat-message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chat-message-row--eu .chat-message-content {
  align-items: flex-end;
}

.chat-message-row--outro .chat-message-content {
  align-items: flex-start;
}

.chat-message-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 0 4px;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--text-muted);
}

.chat-message-row--eu .chat-message-meta {
  justify-content: flex-end;
  text-align: right;
}

.chat-message-sender {
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
  color: var(--text);
}

.chat-message-date {
  flex-shrink: 0;
  color: var(--text-dim);
}

.chat-message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-muted);
  border: 1.5px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.chat-message-row--eu .chat-message-avatar {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a0800;
}

.chat-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-muted);
  border: 1.5px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--gold-dark);
  flex-shrink: 0;
  letter-spacing: -.5px;
}
.chat-bubble-avatar-eu {
  background: var(--gold);
  color: #1a0800;
  border-color: var(--gold);
}

.chat-bubble-col { display: flex; flex-direction: column; gap: 4px; }
.chat-bubble-eu    .chat-bubble-col { align-items: flex-end; }
.chat-bubble-outro .chat-bubble-col { align-items: flex-start; }

.chat-bubble-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 4px;
}

.chat-balao {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
  max-width: 260px;
}
.chat-bubble-eu .chat-balao {
  background: var(--gold);
  color: #1a0800;
  border-bottom-right-radius: 4px;
}
.chat-bubble-outro .chat-balao {
  background: var(--card);
  border: 1px solid var(--gold-border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-bubble-hora {
  font-size: 0.64rem;
  color: var(--text-dim);
  padding: 0 4px;
}

/* ── Rodapé do modal (input de envio) ───────────────────── */
.chat-modal-footer {
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--gold-border);
  background: var(--card);
  flex-shrink: 0;
}

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;        /* corta qualquer vazamento */
}

/* .chat-eu-avatar removido — div excluída do HTML */

.chat-input {
  flex: 1 1 0;             /* cresce E ENCOLHE conforme o espaço disponível */
  min-width: 0;            /* permite encolher abaixo do tamanho intrínseco */
  width: 0;                /* força o flex a calcular o tamanho real pelo container */
  background: var(--card2);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--r-full);
  padding: 9px 12px;       /* padding menor para ganhar espaço horizontal */
  font-size: 0.88rem;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  caret-color: var(--gold);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
.chat-input:focus         { border-color: var(--gold); }
.chat-input::placeholder  { color: var(--text-dim); }

.chat-send-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;         /* garante que nunca encolhe abaixo de 38px */
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #1a0800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;          /* NUNCA encolhe — botão sempre visível */
  transition: background var(--ease), transform var(--ease);
}
.chat-send-btn:hover { background: var(--gold-light); transform: scale(1.06); }
.chat-send-btn svg   { width: 17px; height: 17px; }

/* ── Tela Barbearia — Skeleton + Seções ─────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.bp-skeleton-linha {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg,
    var(--card2, rgba(255,255,255,.07)) 25%,
    var(--card,  rgba(255,255,255,.14)) 50%,
    var(--card2, rgba(255,255,255,.07)) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  margin-bottom: 8px;
}

.bp-secao {
  padding: 10px 14px 4px;
}
.bp-secao-titulo {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold, #D4AF37);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.bp-vazio {
  font-size: .82rem;
  color: var(--text-muted);
  padding: 10px 0;
  margin: 0;
}
.bp-erro {
  font-size: .85rem;
  color: #e07070;
  text-align: center;
  padding: 20px;
  margin: 0;
}

/* ── Tela Barbearia — Seção Barbeiros (carousel) ────────── */
.bp-barbeiros-secao {
  padding-bottom: 6px;
}

.bp-barbeiros-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 14px 10px;
  overflow-x: hidden;
}
.bp-barbeiros-scroll::-webkit-scrollbar { display: none; }

/* Card mini do barbeiro no carousel */
.bp-barber-mini {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px 6px 10px;
  border-radius: var(--r-md, 12px);
  border: 1px solid transparent;
  transition: border-color var(--ease, .18s), transform var(--ease, .18s);
  -webkit-tap-highlight-color: transparent;
}
.bp-barber-mini:hover,
.bp-barber-mini:focus-visible { border-color: var(--gold); transform: translateY(-2px); outline: none; }
.bp-barber-mini:active        { transform: scale(.95); }

/* Avatar circular */
.bp-barber-mini .bm-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--card2, rgba(255,255,255,.07));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid transparent;
  flex-shrink: 0;
  overflow: hidden;
}
.bp-barber-mini--owner .bm-avatar { border-color: var(--gold); }

/* img dentro do div.bm-avatar */
.bp-barber-mini .bm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Nome abaixo do avatar */
.bp-barber-mini .bm-nome {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

/* Tag "Dono" */
.bp-barber-mini .bm-owner-tag {
  font-size: .56rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 10px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}

/* Skeleton do carousel de barbeiros */
.bp-barber-mini--skel {
  pointer-events: none;
  opacity: .35;
}
.bp-barber-mini--skel .bm-avatar {
  background: linear-gradient(90deg,
    var(--card2) 25%, var(--card) 50%, var(--card2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.bp-barber-mini--skel .bm-nome-skel {
  width: 52px;
  height: 9px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    var(--card2) 25%, var(--card) 50%, var(--card2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

/* ── BarbeiroCard (.bbc-*) ──────────────────────────────── */
.bbc-card {
  flex-shrink: 0;
  width: 60px;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 6px;
  border-radius: 10px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.bbc-card--owner .bbc-avatar { width: 42px; height: 42px; border-color: var(--gold, #D4AF37); }

.bbc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card2, rgba(255,255,255,.07));
  font-size: 1.4rem;
  border: 2px solid transparent;
  flex-shrink: 0;
}
.bbc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.bbc-nome {
  font-size: .63rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

.bbc-owner-tag {
  font-size: .54rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 10px;
  padding: 1px 5px;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}

/* Skeleton */
.bbc-card--skel {
  pointer-events: none;
  opacity: .35;
}
.bbc-card--skel .bbc-avatar {
  background: linear-gradient(90deg,
    var(--card2) 25%, var(--card) 50%, var(--card2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.bbc-nome-skel {
  width: 44px;
  height: 9px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    var(--card2) 25%, var(--card) 50%, var(--card2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

/* ── Cadeira pública (.cdr-*) ───────────────────────────── */
/* Row: [BarbeiroCard] [Cadeira produção] [Cadeiras de fila] */
.cdr-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.cdr-row--skel { opacity: .35; pointer-events: none; }
.cdr-row--owner {
  position: relative;
  box-shadow: 0 3px 10px rgba(212,175,55,.13);
  min-height: 72px;
  cursor: pointer;
}
.cdr-row--owner:hover {
  box-shadow: 0 6px 18px rgba(212,175,55,.24);
  transform: translateY(-1px);
}
.cdr-row--owner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7B4F2E, #D4AF37);
}
/* Row de membro (sem -owner): borda suave + min-height + hover */
.cdr-row:not(.cdr-row--owner):not(.cdr-row--skel) {
  border: 1px solid var(--border-soft, rgba(212,175,55,.12));
  min-height: 60px;
}
.cdr-row:not(.cdr-row--owner):not(.cdr-row--skel):hover {
  box-shadow: 0 3px 10px rgba(212,175,55,.14);
  transform: translateY(-1px);
}

.cdr-cadeiras-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.cdr-fila-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}
.cdr-fila-wrap::-webkit-scrollbar { display: none; }

.cdr-cadeira {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  position: relative;
  width: 72px;
  min-width: 72px;
  padding: 7px 6px;
  padding-top: 18px;
  border-radius: 10px;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  scroll-snap-align: start;
}

.cdr-row,
.cdr-row *,
.cdr-cadeiras-wrap,
.cdr-cadeiras-wrap *,
.cdr-fila-wrap,
.cdr-fila-wrap *,
.cdr-cadeira,
.cdr-cadeira * {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none;
}

.cdr-row:active,
.cdr-row:focus,
.cdr-row:focus-within,
.cdr-cadeiras-wrap:active,
.cdr-cadeiras-wrap:focus,
.cdr-cadeiras-wrap:focus-within,
.cdr-fila-wrap:active,
.cdr-fila-wrap:focus,
.cdr-fila-wrap:focus-within {
  outline: none;
}
.cdr-cadeira--livre {
  border: 1px dashed var(--border-soft, rgba(212,175,55,.22));
  background: transparent;
  opacity: .55;
}
/* Cadeira de produção livre: borda dourada para indicar que é o posto principal */
.cdr-cadeira--producao.cdr-cadeira--livre {
  border-color: rgba(212,175,55,.45);
}
.cdr-cadeira--ocupada {
  border: none;
  background: transparent;
}
.cdr-cadeira--em_producao {
  border: 1.5px solid var(--gold, #D4AF37);
  background: rgba(212,175,55,.06);
}

/* Cadeira interativa (cliente pode entrar na fila) */
.cdr-cadeira--interativa {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
  transition: transform .15s ease, opacity .15s ease;
  outline: none;
}
.cdr-cadeira--interativa:hover {
  opacity: .88;
  transform: scale(1.06);
}
.cdr-cadeira--interativa:active {
  transform: scale(.96);
  opacity: .75;
}
.cdr-cadeira--interativa:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.cdr-cadeira--long-press {
  cursor: pointer;
  touch-action: manipulation;
}
.cdr-cadeira--pressionando {
  transform: translateY(-1px) scale(.96);
  border-color: rgba(224, 82, 82, .55);
  box-shadow: 0 0 0 3px rgba(224, 82, 82, .12);
}

/* Skeleton */
.cdr-cadeira--skel {
  border: 1px dashed var(--border-soft, rgba(212,175,55,.12));
  background: linear-gradient(90deg,
    var(--card2) 25%, var(--card) 50%, var(--card2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  opacity: .35;
  height: 88px;
}

/* Ícone / avatar dentro da cadeira */
.cdr-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card2, rgba(255,255,255,.07));
  flex-shrink: 0;
}
.cdr-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.cdr-cadeira--em_producao .cdr-icon { border: 1.5px solid var(--gold, #D4AF37); }

/* Rótulo de estado */
.cdr-label {
  font-size: .59rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}
.cdr-cadeira--em_producao .cdr-label { color: var(--gold, #D4AF37); }

/* Nome do cliente na cadeira */
.cdr-cliente {
  font-size: .53rem;
  color: var(--text-muted, #8c7057);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ── Confirmação de presença — borda visual da cadeira de produção ── */
/* Confirmado: borda dourada no ícone, sem borda no container */
.cdr-cadeira--confirmada {
  border: none !important;
  outline: none !important;
}
.cdr-icon--confirmada {
  border: 2.5px solid #D4A017 !important;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(212,175,55,.35);
}

/* Avatar flutuante do cliente acima da imagem da cadeira */
.cdr-avatar-cli {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold, #D4AF37);
  background: var(--card2, #f0e8d8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  z-index: 1;
  flex-shrink: 0;
}
.cdr-avatar-cli img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cdr-cadeira--confirmada .cdr-avatar-cli {
  top: calc(2px + 0.5rem);
}
.cdr-cadeira--confirmada .cdr-label {
  white-space: normal;
  line-height: 1.3;
  font-size: .52rem;
  width: 100%;
}
/* Marrom: cliente não respondeu após o grace de 5 min (ausente) */
.cdr-cadeira--ausente {
  outline: 2.5px solid #7B4F2E;
  outline-offset: 2px;
  border-radius: inherit;
}
/* Âmbar pulsante: barbeiro aguardando cliente se sentar */
.cdr-cadeira--aguardando {
  outline: 2.5px solid #F0A500;
  outline-offset: 2px;
  border-radius: inherit;
  animation: cdr-espera-pulse 2s ease-in-out infinite;
}
.cdr-cadeira--aguardando .cdr-label,
.cdr-cadeira--aguardando .mb-cadeira-label {
  color: #F0A500;
}
@keyframes cdr-espera-pulse {
  0%, 100% { outline-color: #F0A500; opacity: 1; }
  50%       { outline-color: #D4AF37; opacity: .6; }
}

/* ── FluxoDeFila — motor de modais push reutilizável ───────────── */
/* ── Keyframes da modal FluxoDeFila ── */
@keyframes fdf-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes fdf-corpo-reveal {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Overlay ── */
.fdf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.fdf-overlay--visivel { opacity: 1; }
.fdf-overlay--saindo  { opacity: 0; transition: opacity .22s ease; }

/* ── Card — glassmorphism premium ── */
.fdf-card {
  background: #E8D5C0;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1.5px solid rgba(212,175,55,.55);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow:
    0 24px 48px rgba(0,0,0,.55),
    0 8px 16px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(212,160,23,.12);
  position: relative;
  animation: fdf-float 8s ease-in-out infinite;
  will-change: transform;
}

/* ── Botão fechar ── */
.fdf-fechar {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: none;
  color: var(--text-muted, #8c7057);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: .25rem;
  transition: opacity .15s;
}
.fdf-fechar:hover { opacity: .7; }

/* ── Ícone simples (emoji) ── */
.fdf-icone { font-size: 2.4rem; line-height: 1; }

/* ── Ícone imagem (logo da barbearia) ── */
.fdf-icone-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(200,169,110,.12);
  border: 1.5px solid rgba(212,160,23,.30);
  box-shadow: 0 2px 14px rgba(0,0,0,.32);
  padding: 4px;
  display: block;
  margin: 0 auto;
}

/* ── Título ── */
.fdf-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold, #D4A017);
  margin: 0;
}

/* ── Corpo ── */
.fdf-corpo {
  font-size: 1rem;
  color: #1a0f00;
  margin: 0;
  line-height: 1.65;
  letter-spacing: .01em;
  animation: fdf-corpo-reveal .65s ease .15s both;
}
.fdf-corpo strong { color: var(--gold, #D4A017); font-weight: 600; }

/* ── Ações — botões em linha (2 botões) ou coluna (3+) ── */
.fdf-acoes {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: .65rem;
  margin-top: .5rem;
  overflow: hidden;
  background: rgba(240,220,180,.10);
  border-radius: 12px;
  padding: .4rem;
}
/* 3 ou mais botões: empilha em coluna */
.fdf-acoes:has(> :nth-child(3)) {
  flex-direction: column;
  justify-content: unset;
}
.fdf-acoes:has(> :nth-child(3)) .fdf-btn {
  width: 100%;
}

/* ── Botão base — todos quase transparentes com borda dourada ── */
.fdf-btn {
  flex: 1;
  min-width: 0;
  padding: .6rem .75rem;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(212,175,55,.55);
  color: var(--gold, #D4AF37);
  box-shadow:
    0 2px 12px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(212,175,55,.12);
  transition: transform .18s ease, opacity .18s ease, background .18s ease, box-shadow .18s ease;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}
.fdf-btn:hover {
  background: rgba(212,175,55,.12);
  box-shadow:
    0 6px 20px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(212,175,55,.20);
  transform: scale(1.04);
}
.fdf-btn:active { transform: scale(.97); opacity: .8; }

/* ── Primário — mesma cor do título ── */
.fdf-btn--primario { color: var(--gold, #D4A017); }

/* ── Secundário — mesma cor do título ── */
.fdf-btn--secundario { color: #1a0f00; }

/* ── Perigo e neutro — não alterados ── */
.fdf-btn--perigo { background: #c0392b; border: none; color: #fff; }
.fdf-btn--neutro {
  background: var(--surface-alt, #2a2a3e);
  color: var(--gold, #D4A017);
  border: 1px solid var(--gold, #D4A017);
}

/* ── Ícone duplo (app + barbearia) — dentro do fdf-card ── */
.fdf-icone-duplo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}
.fdf-icone-duplo__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
/* Logo do app: exibida naturalmente sem círculo adicionado */
.fdf-icone-duplo__img--app {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
/* Logo da barbearia: sem fundo forçado — mantém aparência original */
.fdf-icone-duplo__img--barbearia {
  border-radius: 50%;
}
/* Se a barbearia não tem logo, exibe emoji fallback */
.fdf-icone-duplo__emoji {
  font-size: 2rem;
  line-height: 1;
}
/* Setas de interação entre os dois logos */
.fdf-icone-duplo__seta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: var(--gold, #D4A017);
  font-size: .65rem;
  line-height: 1;
  opacity: .85;
}

/* ── CorteModal — Seleção de serviços (shared: cliente + profissional) ── */
.crtm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9500;
  opacity: 0;
  transition: opacity .22s ease;
}
.crtm-overlay--visivel { opacity: 1; }
.crtm-overlay--saindo  { opacity: 0; }
.crtm-card {
  background: var(--card, #fff9f0);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(32px);
  transition: transform .22s ease;
}
.crtm-overlay--visivel .crtm-card { transform: translateY(0); }
.crtm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--border-soft, rgba(212,175,55,.15));
  flex-shrink: 0;
}
.crtm-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #2b1b12);
  margin: 0;
  padding: 16px 18px 0;
}
.crtm-fechar {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted, #8c7057);
  padding: 4px 8px;
}
.crtm-lista {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  flex: 1;
}
.crtm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  cursor: pointer;
}
.crtm-item:hover { background: var(--card2, #f0e8d8); }
.crtm-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(107, 74, 50, .18);
  background: var(--card2, #f0e8d8);
}
.crtm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.crtm-img--vazio {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.crtm-img--vazio::after { content: '✂️'; }
.crtm-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--gold, #D4AF37);
  cursor: pointer;
  flex-shrink: 0;
}
.crtm-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  flex: 1;
}
.crtm-svc-nome {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text, #2b1b12);
}
.crtm-svc-meta {
  font-size: .75rem;
  color: var(--text-muted, #8c7057);
}
.crtm-vazio {
  text-align: center;
  padding: 24px;
  color: var(--text-muted, #8c7057);
  font-size: .85rem;
}
.crtm-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border-soft, rgba(212,175,55,.15));
  flex-shrink: 0;
}
.crtm-total {
  font-size: .85rem;
  color: var(--text-muted, #8c7057);
  margin: 0;
}
.crtm-total-val { color: var(--gold, #D4AF37); }
.crtm-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.crtm-btn:active { opacity: .75; }
.crtm-btn--confirmar {
  background: var(--gold, #D4AF37);
  color: #fff;
}
.crtm-btn--confirmar:disabled {
  opacity: .38;
  cursor: not-allowed;
}
.crtm-btn--cancelar {
  background: var(--card2, #f0e8d8);
  color: var(--text, #2b1b12);
}

/* ── Lista de serviços da BarbeariaPage (bp-serv-*) ── */
.bp-serv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(107, 74, 50, .1);
}
.bp-serv-img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(107, 74, 50, .18);
  background: var(--card2, #f0e8d8);
}
.bp-serv-img--vazio {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.bp-serv-img--vazio::after { content: '✂️'; }
.bp-serv-info { flex: 1; min-width: 0; }
.bp-serv-meta {
  margin: 2px 0 0;
  font-size: .75rem;
  color: var(--text-muted, #8c7057);
}

/* ── Serviços em tabela de colunas na página pública ───────────── */
.bp-serv-carousel {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scroll-snap-type: x proximity;
}
.bp-serv-carousel::-webkit-scrollbar { display: none; }
.bp-serv-coluna {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 calc((100% - 18px) / 2);
  max-width: calc((100% - 18px) / 2);
  min-width: 0;
  scroll-snap-align: start;
}
.bp-serv-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.bp-serv-nome {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text, #f5e9dc);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.bp-serv-preco {
  margin: 0;
  color: var(--gold, #D4AF37);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Separador entre carousel de serviços e banner de mensalidade ── */

.bp-divider {
  width: 100%;
  height: 0;
  margin: 16px 0;
  border-bottom: 1.5px solid #8b4513;
}
.bp-divider[hidden] { display: none; }

/* ── Mensalidade — container + trigger card + modal ────────────── */

/* Container: wrapper transparente; só controla visibilidade */
.bp-mensal-banner {
  width: 100%;
  margin: 12px 0 14px;
  padding: 0 16px; /* alinhado com outros elementos da página */
}
.bp-mensal-banner[hidden] { display: none; }

.bp-mensal-banner__titulo {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--gold, #D4AF37);
  letter-spacing: .01em;
}

.bp-mensal-banner__descricao {
  margin: 0 0 10px;
  font-size: .86rem;
  line-height: 1.45;
  color: var(--text-muted, #d6d0c7);
}

/* Trigger card — botão clicável que abre o modal */
.bp-mensal-trigger {
  width: 100%;
  border-radius: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1a1008 0%, #6B4A32 28%, #C75A1A 56%, #D4AF37 78%, #0b0704 100%);
  border: 1px solid rgba(212,175,55,.32);
  box-shadow: 0 6px 22px rgba(0,0,0,.38), inset 0 1px 0 rgba(212,175,55,.14);
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  text-align: left;
  transition: opacity .18s ease;
}
.bp-mensal-trigger:active { opacity: .78; }
.bp-mensal-trigger__linha {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-right: 22px;
}
.bp-mensal-trigger__tag {
  margin: 0;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold, #D4AF37);
  text-shadow: 0 2px 6px rgba(0,0,0,.72);
}
.bp-mensal-trigger__valor {
  margin: 0;
  font-size: 1.62rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,.78);
}
.bp-mensal-trigger__per {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  margin-left: 4px;
}
.bp-mensal-trigger__msg {
  margin: 0;
  font-size: .82rem;
  color: var(--gold, #D4AF37);
  text-shadow: 0 2px 6px rgba(0,0,0,.7);
}
.bp-mensal-trigger__icone {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  line-height: 1;
  pointer-events: none;
}

/* Modal overlay — cobre toda a tela, abre como bottom-sheet */
.bp-mensal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 2200;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity .22s ease;
}
.bp-mensal-modal-overlay--visivel { opacity: 1; }
.bp-mensal-modal-overlay--saindo  { opacity: 0; }
.bp-mensal-modal-overlay[hidden]  { display: none; }

/* Card do modal (bottom-sheet) */
.bp-mensal-modal-card {
  background: var(--card, #fff9f0);
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-height: 72vh;
  overflow-y: auto;
  padding: 22px 20px 36px;
  position: relative;
  transform: translateY(28px);
  transition: transform .22s ease;
}
.bp-mensal-modal-overlay--visivel .bp-mensal-modal-card {
  transform: translateY(0);
}

/* Botão fechar */
.bp-mensal-modal-fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--fg-muted, #888);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50%;
  line-height: 1;
  transition: background .15s;
}
.bp-mensal-modal-fechar:hover { background: rgba(0,0,0,.07); }

/* Corpo do modal */
.bp-mensal-modal-corpo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.bp-mensal-modal-tag {
  margin: 0;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold, #C75A1A);
}
.bp-mensal-modal-valor {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--fg, #1a1008);
  line-height: 1.05;
}
.bp-mensal-modal-per {
  font-size: .9rem;
  font-weight: 500;
  color: var(--fg-muted, #666);
  margin-left: 4px;
}
.bp-mensal-modal-msg {
  margin: 0;
  font-size: .95rem;
  color: var(--fg-muted, #555);
  line-height: 1.5;
}
.bp-mensal-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 13px 22px;
  background: #25D366;
  color: #fff;
  border-radius: 13px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: opacity .18s;
}
.bp-mensal-modal-cta:active { opacity: .82; }

/* ── Config: serviços por tipo (UL/LI) + luzes meia/inteira ────── */
.mb-serv-tipos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mb-serv-tipo-li {
  padding: 10px 12px;
  border: 1px solid var(--gold-border, rgba(212,175,55,.18));
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.mb-serv-tipo-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold, #D4AF37);
}
.mb-serv-tipo-li[data-category="corte"],
.mb-serv-tipo-li[data-category="barba"] {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.mb-serv-tipo-li[data-category="corte"] .mb-serv-tipo-label,
.mb-serv-tipo-li[data-category="barba"] .mb-serv-tipo-label {
  flex: 0 0 58px;
}
.mb-serv-tipo-li[data-category="corte"] .mb-prod-li--painel,
.mb-serv-tipo-li[data-category="barba"] .mb-prod-li--painel {
  flex: 1;
  align-items: center;
}
.mb-serv-tipo-li[data-category="corte"] .mb-cfg-prod-fields,
.mb-serv-tipo-li[data-category="barba"] .mb-cfg-prod-fields {
  flex-direction: row;
  align-items: end;
}
.mb-serv-tipo-acoes {
  align-self: center;
  margin-left: auto;
}
.mb-serv-tipo-salvar-btn {
  min-width: 44px;
  padding-inline: 12px;
}
.mb-serv-tipo-salvar-btn--ok {
  min-width: 36px;
  padding-inline: 0;
}
.mb-luzes-row {
  display: flex;
  gap: 12px;
}
.mb-luzes-row .mb-cfg-prod-field-group { flex: 1; min-width: 0; }
.mb-mensal-msg {
  width: 100%;
  margin-top: 8px;
  min-height: 56px;
  resize: vertical;
}

/* ── Modais de confirmação de presença (ConfirmacaoCorteModal) ── */
.ccm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.ccm-overlay--visivel { opacity: 1; }
.ccm-overlay--saindo  { opacity: 0; }
.ccm-card {
  background: var(--surface, #1a1a2e);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.ccm-icone,
.qcs-modal-icone { font-size: 2.4rem; line-height: 1; }
.ccm-icone-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  background: #c8a96e;
  border: 2px solid var(--gold, #D4A017);
  display: block;
  margin: 0 auto;
}
.ccm-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold, #D4A017);
  margin: 0;
}
.ccm-corpo {
  font-size: .93rem;
  color: var(--text, #e8d5c0);
  margin: 0;
  line-height: 1.5;
}
.ccm-acoes {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .5rem;
}
.ccm-btn {
  padding: .7rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.ccm-btn:active { opacity: .75; }
/* Sim: fundo marrom + texto dourado + borda gradiente ouro→marrom */
.ccm-btn--sim {
  background:
    linear-gradient(#3d1208, #3d1208) padding-box,
    linear-gradient(135deg, #D4A017, #7a2e0a) border-box;
  border: 2px solid transparent;
  color: var(--gold, #D4A017);
}
/* Não: fundo transparente + borda dourada + texto dourado */
.ccm-btn--nao {
  background: transparent;
  border: 2px solid var(--gold, #D4A017);
  color: var(--gold, #D4A017);
}

/* ── Modal de cliente ausente (ClienteAusenteModal) — visão do barbeiro ── */
.cam-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.cam-overlay--visivel { opacity: 1; }
.cam-overlay--saindo  { opacity: 0; }
.cam-card {
  background: var(--surface, #1a1a2e);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  position: relative;
}
.cam-fechar {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: none;
  color: var(--text-muted, #8c7057);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: .25rem;
}
.cam-icone { font-size: 2.4rem; line-height: 1; }
.cam-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold, #D4A017);
  margin: 0;
}
.cam-corpo {
  font-size: .93rem;
  color: var(--text, #e8d5c0);
  margin: 0;
  line-height: 1.5;
}
.cam-acoes {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .5rem;
}
.cam-btn {
  padding: .7rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.cam-btn:active { opacity: .75; }
.cam-btn--remover  { background: #c0392b; color: #fff; }
.cam-btn--mensagem { background: var(--surface-alt, #2a2a3e); color: var(--gold, #D4A017); border: 1px solid var(--gold, #D4A017); }

/* ── Tela Barbeiro (BarbeiroPage) ────────────────────────── */
#tela-barbeiro .beiro-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 6px 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* btn-voltar: canto esquerdo, seta ← via ::before */
#tela-barbeiro .beiro-topbar .btn-voltar {
  position: static;
  top: auto;
  left: auto;
  margin-left: 1rem;
}
#tela-barbeiro .beiro-topbar .btn-voltar::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-left: 2.5px solid var(--gold);
  border-bottom: 2.5px solid var(--gold);
  transform: rotate(45deg);
  background: transparent;
  filter: none;
}
/* Grupo de ações no lado direito (curtida + favorito) */
#tela-barbeiro .beiro-topbar .beiro-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 1rem;
}

/* Botão favoritar no topbar do barbeiro (lado direito) */
#tela-barbeiro .beiro-topbar #beiro-fav-btn {
  position: static;
  font-size: 1.3rem;
  background: transparent;
  flex-shrink: 0;
}

#tela-barbeiro .beiro-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px 16px;
}

.beiro-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}

#tela-barbeiro #beiro-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.beiro-nome {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.beiro-owner-badge {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.4);
  border-radius: 20px;
  padding: 3px 14px;
}

.beiro-meta {
  padding: 4px 16px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.beiro-rating {
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
}

.beiro-bio {
  padding: 8px 20px 24px;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.beiro-section {
  animation: beiro-section-in .24s ease-out both;
}

.beiro-page-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.beiro-since {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(212,175,55,.08);
  font-size: .78rem;
  font-weight: 700;
}

.beiro-public-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: min(100%, 420px);
}

.beiro-info-row,
.beiro-workplace-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .84rem;
  line-height: 1.35;
}

.beiro-section-icon {
  display: inline-flex;
  width: 20px;
  min-width: 20px;
  justify-content: center;
  color: var(--gold);
}

.beiro-workplace {
  width: calc(100% - 32px);
  max-width: 520px;
  margin: 0 auto 28px;
  padding: 16px 4px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.beiro-workplace-row {
  margin: 0 0 9px;
  justify-content: center;
  text-align: center;
}

.beiro-workplace-message {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid rgba(212,175,55,.38);
  border-radius: 10px;
  background: rgba(212,175,55,.11);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.beiro-workplace-message:hover {
  transform: translateY(-1px);
  background: rgba(212,175,55,.16);
  border-color: rgba(212,175,55,.58);
}

.beiro-workplace-message:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.portfolio-section {
  width: calc(100% - 32px);
  max-width: 720px;
  margin: 0 auto 32px;
  padding-top: 8px;
}

.portfolio-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}

.portfolio-section__header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.portfolio-section .portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mb-portfolio-section {
  width: 100%;
  margin: 18px 0 20px;
}

/* ── Card "Divulgue sua barbearia" (link via WhatsApp) ────── */
.mb-share-section {
  width: 100%;
  margin: 18px 0 20px;
}
.mb-share-section[hidden] { display: none; }

.mb-share-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--gold-border, rgba(212,160,23,.42));
  border-radius: 14px;
  background: var(--card, rgba(255,255,255,.03));
}

.mb-share-preview {
  display: block;
  /* 50% da largura do container = ~50% da altura original (1:1) */
  width: 50%;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background: rgba(0,0,0,.3);
}
.mb-share-preview[hidden] { display: none; }

.mb-share-desc {
  margin: 0;
  font-size: .8rem;
  line-height: 1.35;
  color: var(--text-muted, #b9a88f);
}

.mb-share-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.mb-share-link {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--gold-border, rgba(212,160,23,.3));
  border-radius: 9px;
  background: rgba(0,0,0,.18);
  color: var(--text, #f3e8dc);
  font-size: .76rem;
  text-overflow: ellipsis;
}

.mb-share-copy {
  flex-shrink: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(212,160,23,.42);
  border-radius: 9px;
  background: rgba(212,160,23,.10);
  color: var(--gold, #D4A017);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.mb-share-copy:active { transform: scale(.97); }

/* Bloco de envio: seta indicando o card → botão WhatsApp redondo (só ícone) */
.mb-share-send {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}
.mb-share-arrow {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--gold, #D4A017);
  animation: mbShareArrow 1.2s ease-in-out infinite;
}
@keyframes mbShareArrow {
  0%, 100% { transform: translateY(0);   opacity: .65; }
  50%      { transform: translateY(5px); opacity: 1;   }
}

.mb-share-whats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37,211,102,.4);
}
.mb-share-whats:active { transform: scale(.94); }
.mb-share-whats-ico { width: 26px; height: 26px; display: block; }

.mb-share-status {
  margin: 0;
  min-height: 1em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--gold, #D4A017);
  text-align: center;
}

.mb-portfolio-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(212,160,23,.42);
  border-radius: 8px;
  color: var(--gold, #D4A017);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  background: rgba(212,160,23,.08);
}

.mb-portfolio-upload[hidden] {
  display: none;
}

.mb-portfolio-upload--busy {
  opacity: .68;
  pointer-events: none;
}

.mb-portfolio-status {
  min-height: 20px;
  margin: 6px 0 10px;
  color: var(--text-muted, rgba(255,255,255,.68));
  font-size: .78rem;
}

.mb-portfolio-status:empty {
  display: none;
}

.mb-portfolio-status button {
  border: 0;
  background: transparent;
  color: var(--gold, #D4A017);
  font-weight: 800;
  cursor: pointer;
}

.mb-portfolio-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mb-portfolio-card {
  position: relative;
  aspect-ratio: 1;
  flex: 0 0 clamp(132px, 42vw, 180px);
  width: clamp(132px, 42vw, 180px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  scroll-snap-align: start;
  cursor: pointer;
}

.mb-portfolio-card > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Animação de pressão no card */
.mb-portfolio-card--pressionado {
  opacity: .72;
  transform: scale(.95);
  transition: opacity .1s, transform .1s;
}

/* Overlay de exclusão (aparece sobre o card ao segurar) */
.mb-portfolio-delete-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(0,0,0,.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  animation: mb-overlay-fade-in .15s ease;
}
@keyframes mb-overlay-fade-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
.mb-portfolio-delete-overlay__op {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  user-select: none;
}
.mb-portfolio-delete-overlay__op--danger {
  background: #e53e3e;
}
.mb-portfolio-delete-overlay__op--danger:active { background: #c53030; }

.mb-portfolio-card__barber {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px 4px 4px;
  border-radius: 999px;
  background: rgba(0,0,0,.56);
  color: #fff;
  pointer-events: none;
}

.mb-portfolio-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,.68);
  flex: 0 0 auto;
}

.mb-portfolio-card__nome {
  min-width: 0;
  font-size: .72rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-portfolio-card--skel {
  animation: pbp-shimmer 1.4s ease-in-out infinite;
}

.portfolio-gallery__carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
}

.port-item {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--border-soft, rgba(255,255,255,.1));
  border-radius: 8px;
  background: var(--card2, rgba(255,255,255,.04));
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.portfolio-gallery__carousel .portfolio-card,
.portfolio-gallery__carousel .portfolio-card.parcerias-foto-item {
  flex: 0 0 clamp(136px, 42vw, 184px);
  width: auto;
  height: auto;
  scroll-snap-align: start;
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
  animation: portfolio-card-enter .22s ease both;
}

.portfolio-gallery__carousel .portfolio-card:nth-child(2) { animation-delay: .03s; }
.portfolio-gallery__carousel .portfolio-card:nth-child(3) { animation-delay: .06s; }
.portfolio-gallery__carousel .portfolio-card:nth-child(4) { animation-delay: .09s; }

.portfolio-card__media {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.port-item:hover {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(212,175,55,.58);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.portfolio-actions {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  gap: 5px;
  z-index: 2;
}

.portfolio-action {
  min-width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.portfolio-action:hover,
.portfolio-action.ativo {
  border-color: rgba(212,175,55,.75);
  color: var(--gold);
}

.portfolio-action:disabled {
  opacity: .55;
  cursor: wait;
}

.portfolio-action__icon {
  font-size: .9rem;
  line-height: 1;
}

.portfolio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.02);
  transition: opacity .24s ease, filter .24s ease, transform .24s ease;
}

.portfolio-card--loaded .portfolio-card__img {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.portfolio-skeleton {
  display: block;
  background: linear-gradient(90deg, var(--card2) 25%, var(--card) 50%, var(--card2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes portfolio-card-enter {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.portfolio-empty {
  min-height: 96px;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 8px;
  background: rgba(212,175,55,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.portfolio-empty p {
  margin: 0;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.4;
}

.portfolio-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: grid;
  place-items: center;
  padding: 24px;
  perspective: 2400px;
  touch-action: pan-y;
}

.portfolio-viewer[hidden] {
  display: none !important;
}

.portfolio-viewer__stage {
  width: min(92vw, 920px);
  height: min(78vh, 720px);
  display: grid;
  place-items: center;
  perspective: 2400px;
}

.portfolio-viewer__cube {
  --portfolio-cube-depth: min(46vw, 460px);
  --portfolio-spin-angle: 0deg;
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--portfolio-cube-depth) * -1)) rotateY(var(--portfolio-spin-angle));
  transform-origin: center center;
  will-change: transform;
  transition: transform .18s ease-out;
}

.portfolio-viewer__cube--drag {
  transition: none;
}

.portfolio-viewer__cube--next {
  transition: none;
  animation: portfolio-spin-next .62s cubic-bezier(.22,.74,.22,1) both;
}

.portfolio-viewer__cube--prev {
  transition: none;
  animation: portfolio-spin-prev .62s cubic-bezier(.22,.74,.22,1) both;
}

.portfolio-viewer__face {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #050505;
  backface-visibility: hidden;
  box-shadow:
    0 24px 56px rgba(0,0,0,.48),
    inset 0 0 0 1px rgba(255,255,255,.08);
}

.portfolio-viewer__face::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.34), transparent 22%, transparent 78%, rgba(0,0,0,.34)),
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 18%, rgba(0,0,0,.22));
}

.portfolio-viewer__face--front {
  transform: rotateY(0deg) translateZ(var(--portfolio-cube-depth));
}

.portfolio-viewer__face--right {
  transform: rotateY(90deg) translateZ(var(--portfolio-cube-depth));
}

.portfolio-viewer__face--back {
  transform: rotateY(180deg) translateZ(var(--portfolio-cube-depth));
}

.portfolio-viewer__face--left {
  transform: rotateY(-90deg) translateZ(var(--portfolio-cube-depth));
}

.portfolio-viewer__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.portfolio-viewer__meta {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 10001;
  max-width: min(70vw, 320px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.26);
  pointer-events: none;
}
.portfolio-viewer__meta[hidden] { display: none; }
.portfolio-viewer__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.45);
  flex: 0 0 auto;
}
.portfolio-viewer__meta-text {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.portfolio-viewer__name,
.portfolio-viewer__likes {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portfolio-viewer__name {
  font-size: .82rem;
  line-height: 1.1;
}
.portfolio-viewer__likes {
  color: rgba(255,255,255,.74);
  font-size: .7rem;
  line-height: 1.1;
}

.portfolio-viewer__title {
  position: fixed;
  left: 50%;
  bottom: 52px;
  max-width: min(86vw, 720px);
  margin: 0;
  color: #fff;
  text-align: center;
  font-weight: 800;
  transform: translateX(-50%);
  text-shadow: 0 2px 10px rgba(0,0,0,.72);
}

.portfolio-viewer__actions {
  position: fixed;
  top: 18px;
  right: 72px;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.portfolio-viewer__actions .portfolio-actions {
  position: static;
}

.portfolio-viewer__close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.portfolio-viewer__close:hover {
  border-color: rgba(212,175,55,.65);
  background: rgba(212,175,55,.14);
}

.portfolio-viewer__count {
  position: fixed;
  left: 50%;
  bottom: 18px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  transform: translateX(-50%);
}

.portfolio-messages-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  width: min(92vw, 360px);
  max-height: min(66vh, 520px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(12,12,12,.94);
  color: #fff;
  box-shadow: 0 22px 54px rgba(0,0,0,.42);
  backdrop-filter: blur(12px);
}

.portfolio-messages-panel[hidden] {
  display: none !important;
}

.portfolio-messages-panel__header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: rgba(12,12,12,.98);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.portfolio-messages-panel__close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}

.portfolio-messages-panel__status {
  margin: 0;
  padding: 12px;
  color: rgba(255,255,255,.72);
  font-size: .86rem;
}

.portfolio-messages-panel__list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.portfolio-messages-panel__item {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,.06);
}

.portfolio-messages-panel__item p {
  margin: 0;
  color: #fff;
  font-size: .88rem;
  line-height: 1.4;
}

.portfolio-messages-panel__item span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.58);
  font-size: .72rem;
}

@keyframes portfolio-spin-next {
  0% {
    transform: translateZ(calc(var(--portfolio-cube-depth) * -1)) rotateY(var(--portfolio-spin-angle));
    filter: drop-shadow(0 18px 24px rgba(0,0,0,.38));
  }
  54% {
    transform: translateZ(calc(var(--portfolio-cube-depth) * -1.08)) rotateY(-58deg);
    filter: drop-shadow(22px 28px 40px rgba(0,0,0,.56));
  }
  100% {
    transform: translateZ(calc(var(--portfolio-cube-depth) * -1)) rotateY(-90deg);
    filter: drop-shadow(34px 30px 44px rgba(0,0,0,.58));
  }
}

@keyframes portfolio-spin-prev {
  0% {
    transform: translateZ(calc(var(--portfolio-cube-depth) * -1)) rotateY(var(--portfolio-spin-angle));
    filter: drop-shadow(0 18px 24px rgba(0,0,0,.38));
  }
  54% {
    transform: translateZ(calc(var(--portfolio-cube-depth) * -1.08)) rotateY(58deg);
    filter: drop-shadow(-22px 28px 40px rgba(0,0,0,.56));
  }
  100% {
    transform: translateZ(calc(var(--portfolio-cube-depth) * -1)) rotateY(90deg);
    filter: drop-shadow(-34px 30px 44px rgba(0,0,0,.58));
  }
}

@media (max-width: 520px) {
  .portfolio-viewer {
    padding: 14px;
  }

  .portfolio-viewer__stage {
    width: 94vw;
    height: 76vh;
  }

  .portfolio-viewer__cube {
    --portfolio-cube-depth: 47vw;
  }

  .portfolio-viewer__actions {
    top: 16px;
    right: 62px;
  }
}

@media (min-width: 640px) {
  .portfolio-grid,
  .portfolio-section .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .portfolio-grid,
  .portfolio-section .portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@keyframes beiro-section-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Skeleton da tela barbeiro */
#tela-barbeiro .beiro-hero-skel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 20px 24px;
}

#tela-barbeiro .beiro-ava-skel {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(90deg,
    var(--card2) 25%, var(--card) 50%, var(--card2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT DESKTOP — min-width: 768px
   Só altera posicionamento/largura; UX/UI mobile permanece intacto
══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* Tela barbearia — centra conteúdo em coluna estreita */
  #tela-barbearia {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Capa hero um pouco mais alta no desktop */
  #tela-barbearia .bp-capa-wrap {
    height: 240px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
  }

  /* Boas-vindas levemente maior no desktop */
  #tela-barbearia .bp-boas-vindas {
    font-size: 1rem;
    padding: 4px 20px;
  }

  #tela-barbearia .bp-cta-login {
    font-size: .85rem;
    padding: 4px 20px 8px;
  }

  /* Seção de stories — centraliza sem quebrar scroll */
  #tela-barbearia .stories-scroll {
    padding: 6px 20px 10px;
  }

  /* Seção de barbeiros — mais espaçamento lateral */
  #tela-barbearia .bp-barbeiros-scroll {
    padding: 6px 20px 12px;
  }

  /* Conteúdo dinâmico da barbearia — padding lateral confortável */
  #tela-barbearia #bp-conteudo {
    padding: 0 20px;
  }

  /* Barbeiro — centra a tela de perfil */
  #tela-barbeiro {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ================================================================
   MINHA BARBEARIA — tela + painel de configurações
================================================================ */

/* ── Layout geral ──────────────────────────────────────── */

/* Hero header: capa da barbearia como background */
.mb-hero-header {
  position: relative;
  width: 100%;
  margin-inline: -16px; /* cancela o padding do .content pai → full-width */
  width: calc(100% + 32px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--card-bg, #1a1a1a);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}
/* Overlay escuro para legibilidade dos textos */
.mb-hero-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.62) 0%,
    rgba(0,0,0,.45) 55%,
    rgba(0,0,0,.58) 100%);
  pointer-events: none;
}
/* Todos os filhos diretos ficam acima do overlay */
.mb-hero-header > * { position: relative; z-index: 1; }

/* tela-topo dentro do hero: sem padding extra */
.mb-hero-header .tela-topo { padding-top: 10px; }

/* Textos sobre a imagem */
.mb-hero-header .mb-boas-vindas {
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
  margin-top: 6px;
}
.mb-hero-header .mb-nome-titulo {
  text-shadow: 0 1px 10px rgba(0,0,0,.85);
  color: #fff;
  margin-top: 4px;
}

/* Badge de status: sem fundo, só texto colorido */
.mb-hero-header .mb-topo-status {
  background: transparent !important;
  border-color: transparent !important;
}

/* Aviso de teste grátis (trial) — contagem regressiva no topo da barbearia */
/* Pílula discreta acima do status aberto/fechado — não quebra linha, ocupa
   só o necessário. Contador de teste grátis ("VC tem X dias" / "Plano venceu"). */
.mb-trial-aviso {
  display: block;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 6px auto 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(201, 135, 42, .14);
  border: 1px solid var(--gold, #c9872a);
  color: var(--gold, #c9872a);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.25;
}
.mb-trial-aviso[hidden] { display: none; }

/* Último dia / expirando — urgência em vermelho */
.mb-trial-aviso.mb-trial-aviso--urgente {
  background: rgba(214, 69, 69, .16);
  border-color: #d64545;
  color: #ff6b6b;
}

/* Linha logo + h2 */
.mb-hero-nome-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
}

/* Ícone/logo da barbearia */
.mb-hero-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(212,175,55,.55);
  background: var(--card-bg, #1a1a1a);
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}

/* Linha de seção "Stories" dentro do hero header: branca */
.mb-hero-header .mb-stories-title {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
  padding: 0 16px;
  margin: 14px 0 10px;
  position: relative;
  z-index: 1;
}
.mb-hero-header .mb-stories-title::after {
  background: rgba(255,255,255,.35);
}

/* Wrapper injetado pelo StoriesLayout.js — sobrepõe 2rem sobre o hero */
#tela-minha-barbearia .stories-carousel-wrap {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
}

/* Stories scroll dentro do wrapper */
.mb-stories-scroll {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 12px;
  padding-right: 12px;
}

.mb-content {
  padding-top: 0;
  margin-top: 0;
  gap: 6px; /* sobrescreve --space-section (32px) do .content */
}
/* sec-title dentro da tela minha barbearia: margem mínima */
.mb-content .sec-title {
  margin: 2px 0 0;
}
/* Título boas-vindas animado */
.mb-boas-vindas {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold, #D4AF37);
  text-align: center;
  margin: 0.3rem 0 0;
  min-height: 1.4em;
  letter-spacing: .3px;
  background: transparent;
  border: none;
}

.mb-nome-titulo {
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin: 8px 0 0;
  min-height: 1.6rem;
  line-height: 1.2;
}

/* ── Stories scroll (3 cards fixos visíveis) ──────────── */
.mb-stories-scroll {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 0;
}

/* ── Card 1: upload ────────────────────────────────────── */
.mb-story-upload {
  cursor: pointer;
}
/* mb-story-upload-inner herda todos os estilos de .story-video-wrap;
   apenas garante que a imagem de capa preencha o container. */
.mb-story-upload-inner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Texto de quota: absoluto no canto sup. esq. do card */
.mb-quota-txt {
  position: absolute;
  top: 7px;
  left: 8px;
  font-size: .58rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.45);
  padding: 2px 6px;
  border-radius: 20px;
  z-index: 3;
  pointer-events: none;
  line-height: 1.4;
}

/* Círculo + (canto inferior direito) */
.mb-add-btn {
  all: unset;
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: #1a0800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 10px rgba(0,0,0,.40);
  transition: transform .15s, background .15s;
}
.mb-add-btn:active { transform: scale(.88); }

/* ── Slots 2 e 3: placeholder vazio ───────────────────── */
.mb-story-slot .story-video-wrap {
  background: var(--card);
  border: 1.5px dashed var(--gold-border);
}
.mb-slot-vazio {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold-border);
}

/* ── Linha GPS + Mais ──────────────────────────────────── */
.mb-btns-row {
  display: flex;
  gap: 10px;
  margin: 0;
}
.mb-gps-btn,
.mb-mais-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: var(--r-sm, 8px);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s;
}
.mb-gps-btn {
  background: #5c2a0e;
  border: 2px solid #7a3a14;
  color: #f5d9c0;
}
.mb-gps-btn:active,
.mb-gps-btn:hover  { background: #7a3a14; color: #fff; }
.mb-mais-btn {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.mb-mais-btn:active,
.mb-mais-btn:hover  { background: var(--gold); color: #1a0800; }

/* ================================================================
   STATUS DA BARBEARIA — linha: texto + traço + toggle switch
================================================================ */

/* Linha: [status text] [—traço—] [toggle] */
.mb-status-row {
  display: flex;
  align-items: center;
  gap: 0;
  height: 36px;
  margin: 4px 0 2px;
}

/* Texto dinâmico — muda cor via classe JS */
.mb-status-txt {
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  padding-right: 8px;
  flex-shrink: 0;
  letter-spacing: .2px;
  margin: 0;
  transition: color .3s;
}
.mb-status-txt--fechada { color: #e05252; }
.mb-status-txt--aberta  { color: var(--gold, #D4AF37); text-shadow: 0 0 10px rgba(212,175,55,.7); }
.mb-status-txt--pausa   { color: #ffb74d; }

/* Linha do dono (switch Ativo/Inativo) — 1rem abaixo da linha abrir/fechar */
.mb-status-row--dono {
  margin-top: 1rem;
}

/* Estados aplicados por BarbeiroAtividadeStatus (dono e modo parceiro) —
   declarados DEPOIS de --aberta/--fechada para vencerem classe residual */
.mb-status-txt--barbeiro-ativo   { color: var(--gold, #D4AF37); text-shadow: 0 0 10px rgba(212,175,55,.7); }
.mb-status-txt--barbeiro-inativo { color: #e05252; }

/* Texto Ativo/Inativo acima do avatar do barbeiro
   (BarbeiroAtividadeStatus.criarParagrafo — Minha Barbearia e página pública) */
.barbeiro-atividade-status__valor--ativo   { color: var(--gold, #D4AF37); }
.barbeiro-atividade-status__valor--inativo { color: #e05252; }

/* Balão "barbeiro indisponível" acima da cadeira (CadeiraBloqueadaFeedback).
   position:fixed ancorado pelo getBoundingClientRect — não clipa no
   overflow do scroll horizontal das rows de barbeiros. */
.cdr-balao-indisponivel {
  position: fixed;
  transform: translate(-50%, calc(-100% - 8px));
  background: rgba(26, 8, 0, .94);
  color: #e05252;
  border: 1px solid rgba(224, 82, 82, .45);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
  z-index: 9500;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.cdr-balao-indisponivel--visivel { opacity: 1; }

/* ── Status no tela-topo (canto direito) ───────────────────── */
.mb-topo-status {
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  margin-left: auto;
  white-space: nowrap;
}
.mb-topo-status.status--aberta {
  background: rgba(212,175,55,.14);
  color: var(--gold, #D4AF37);
  border-color: rgba(212,175,55,.3);
  text-shadow: 0 0 6px rgba(212,175,55,.55);
}
.mb-topo-status.status--fechada {
  background: rgba(220,50,50,.15);
  color: #e57373;
  border-color: rgba(229,115,115,.3);
}
.mb-topo-status.status--pausa {
  background: rgba(255,160,0,.15);
  color: #ffb74d;
  border-color: rgba(255,183,77,.35);
}

/* ── StatusFechamentoModal ─────────────────────────────────── */
.sfm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  transition: opacity .2s ease;
}
.sfm-overlay--visivel { opacity: 1; }
.sfm-overlay--saindo  { opacity: 0; }
.sfm-card {
  background: var(--card-bg, #2a1206);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 14px;
  padding: 20px 18px 14px;
  width: min(90vw, 300px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(0);
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
}
.sfm-titulo {
  margin: 0 0 4px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-main, #f5e9dc);
  text-align: center;
}
.sfm-btn {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
  transition: background .18s, opacity .18s;
}
.sfm-btn:active { opacity: .75; }
.sfm-btn--almoco {
  background: rgba(255,160,0,.18);
  color: #ffb74d;
  border-color: rgba(255,183,77,.35);
}
.sfm-btn--janta {
  background: rgba(90,60,120,.25);
  color: #ce93d8;
  border-color: rgba(206,147,216,.3);
}
.sfm-btn--normal {
  background: rgba(220,50,50,.18);
  color: #e57373;
  border-color: rgba(229,115,115,.35);
}
.sfm-btn--cancelar {
  background: transparent;
  color: var(--text-muted, rgba(245,233,220,.5));
  font-size: .8rem;
  margin-top: 2px;
}

/* Traço — mesma linguagem do gi-barra */
.mb-status-barra {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #6b3a1f 0%, var(--gold, #D4AF37) 100%);
  border-radius: 2px;
}

/* ── Toggle Switch ─────────────────────────────────────────── */
.mb-status-toggle {
  all: unset;
  position: relative;
  width: 44px;
  height: 26px;
  background: #3d1a08;
  border-radius: 13px;
  border: 2px solid #7a3a14;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
  -webkit-tap-highlight-color: transparent;
  transition: background .3s, border-color .3s;
  box-sizing: border-box;
}
/* Estado "aberta" — mantém o mesmo marrom do OFF (toggle neutro) */
.mb-status-toggle[aria-checked="true"] {
  background: #3d1a08;
  border-color: #7a3a14;
}

/* Label OFF / ON dentro da trilha do toggle */
.mb-status-toggle::after {
  content: 'OFF';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .5rem;
  font-weight: 800;
  color: var(--text-muted, #8a6a50);
  letter-spacing: .3px;
  pointer-events: none;
  line-height: 1;
}
.mb-status-toggle[aria-checked="true"]::after {
  content: 'ON';
  right: auto;
  left: 5px;
  color: var(--gold, #D4AF37);
  text-shadow: 0 0 6px rgba(212,175,55,.7);
}

/* Bolinha (thumb) — ouro no off, ouro no on também mas se move */
.mb-status-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold, #D4AF37);
  box-shadow: 0 1px 4px rgba(0,0,0,.45);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.mb-status-toggle[aria-checked="true"] .mb-status-thumb {
  transform: translateX(18px);
}

/* ================================================================
   GUARDAITEN — Gaveta animada (esconde/revela elementos)
   Barra dourada/marrom com texto esq + botão dir + slide do conteúdo
================================================================ */
.gi-wrapper {
  margin: 0;
}

/* Linha com label esq + barra + toggle dir */
.gi-header {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  height: 26px;
}

/* Texto esquerdo */
.gi-txt-esq {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted, #8a6a50);
  white-space: nowrap;
  padding-right: 6px;
  flex-shrink: 0;
  letter-spacing: .2px;
}

/* A barra — começa pequena à direita, cresce para a esquerda */
.gi-barra {
  height: 2px;
  background: linear-gradient(90deg, #6b3a1f 0%, var(--gold, #D4AF37) 100%);
  border-radius: 2px;
  flex: 1;
  transform-origin: right center;
  transform: scaleX(0.18);
  transition: transform 520ms cubic-bezier(.4,0,.2,1);
}
.gi-barra--aberta {
  transform: scaleX(1);
}

/* Botão toggle (lado direito) */
.gi-toggle {
  all: unset;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold, #D4AF37);
  cursor: pointer;
  white-space: nowrap;
  padding-left: 6px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: .2px;
}
.gi-toggle:active { opacity: .7; }

/* Setinha acima do toggle (visível só quando aberto) */
.gi-seta {
  text-align: right;
  font-size: .62rem;
  color: var(--gold, #D4AF37);
  line-height: 1;
  margin-top: -2px;
}
.gi-seta::after { content: '↑'; }

/* Conteúdo oculto — slide de dentro da barra para baixo */
.gi-conteudo {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    max-height 340ms cubic-bezier(.4,0,.2,1),
    opacity    280ms ease,
    transform  300ms ease;
}
.gi-conteudo--aberto {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   TELA GPS / ENDEREÇO
================================================================ */
.gps-content { padding-bottom: 40px; }

.gps-hero    { text-align: center; margin-bottom: 28px; padding-top: 0; }
.gps-titulo  {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: .5px;
}
.gps-dig {
  background: transparent !important;
  border-left: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 4px;
  font-size: 1rem;
  font-family: 'Special Elite', 'Courier New', Courier, monospace;
  color: var(--text-muted);
  min-height: 1.5em;
  text-align: center;
}
.gps-sub {
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Campos */
.gps-campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.gps-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.gps-opcional { font-weight: 400; text-transform: none; font-size: .75rem; }

/* Row CEP + Buscar */
.gps-cep-row {
  display: flex;
  gap: 0;
  width: 100%;
}
.gps-cep-input {
  flex: 1;
  border-right: none !important;
  border-radius: var(--r-sm, 8px) 0 0 var(--r-sm, 8px) !important;
}
.gps-btn-buscar {
  padding: 0 18px;
  background: #5c2a0e;
  border: 1.5px solid #7a3a14;
  border-radius: 0 var(--r-sm, 8px) var(--r-sm, 8px) 0;
  color: #f5d9c0;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.gps-btn-buscar:active { background: #7a3a14; color: #fff; }
.gps-btn-buscar:disabled { opacity: .55; pointer-events: none; }

/* Input base */
.gps-input {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid #ccc;
  border-radius: var(--r-sm, 8px);
  color: #1a0800;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.gps-input:focus         { border-color: #7a3a14; }
.gps-input[readonly]     { background: #f5f0eb; color: #555; cursor: default; }
.gps-input-sm            { max-width: 130px; }

/* Linha GPS + Salvar */
.gps-gps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 6px;
}
.gps-btn-gps,
.gps-btn-salvar {
  flex: 1;
  padding: 11px 10px;
  border: 2px solid var(--gold-border);
  border-radius: var(--r-sm, 8px);
  color: var(--gold);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.gps-btn-gps    { background: var(--surface-2, #261508); }
.gps-btn-salvar { background: transparent; }
.gps-btn-gps:active,    .gps-btn-gps:hover,
.gps-btn-salvar:active, .gps-btn-salvar:hover  { background: var(--gold); color: #1a0800; }

/* =============================================================
   PORTFÓLIO DOS BARBEIROS — carrossel + viewer 3D
   Prefixo carrossel: .pbp-*   |   Prefixo viewer: .pbv-*
   ============================================================= */

/* ── Carrossel ─────────────────────────────────────────────── */
.pbp-wrap { overflow: hidden; }

.pbp-scroll {
  display: flex;
  gap: 8px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px 12px;
}
.pbp-scroll::-webkit-scrollbar { display: none; }

/* Card individual — proporção 3:4 */
.pbp-card {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  background: var(--surface-2, #261508);
  -webkit-tap-highlight-color: transparent;
}

.pbp-foto {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.pbp-card:active .pbp-foto { transform: scale(.97); }

/* Gradiente para legibilidade */
.pbp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.38) 0%,
    transparent 38%,
    transparent 52%,
    rgba(0,0,0,.68) 100%
  );
  pointer-events: none;
}

/* Avatar + nome no topo */
.pbp-barber-row {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 56px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
}
.pbp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 0;
  flex-shrink: 0;
}
.pbp-nome {
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

/* Botões flutuantes no topo */
.pbp-like-btn {
  position: absolute;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: .72rem;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, background .15s, border-color .15s;
}
.pbp-like-btn { right: 8px; }

.pbp-like-btn.curtido {
  color: var(--gold, #D4A017);
}
.pbp-like-btn:active { transform: scale(.88); }

/* Skeleton de carregamento */
.pbp-card--skel {
  background: var(--surface-2, #261508);
  animation: pbp-shimmer 1.4s ease-in-out infinite;
}
@keyframes pbp-shimmer {
  0%, 100% { opacity: .55; }
  50%       { opacity: 1; }
}

/* ── Viewer fullscreen 3D ──────────────────────────────────── */
.pbv-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  animation: pbv-fade-in .2s ease;
}
@keyframes pbv-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Botão fechar */
.pbv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.pbv-close:active { background: rgba(255,255,255,.28); }

/* Progress dots */
.pbv-progress {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 1;
  pointer-events: none;
}
.pbv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.32);
  transition: background .2s;
}
.pbv-dot.ativo { background: #fff; }

/* Info do barbeiro (topo) */
.pbv-barber-info {
  position: absolute;
  top: 56px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
  pointer-events: none;
}
.pbv-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.55);
  flex-shrink: 0;
}
.pbv-nome {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,.85);
}

/* Frame 3D — ocupa o espaço central */
.pbv-inner {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Foto principal */
.pbv-foto {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform, filter;
  cursor: grab;
}
.pbv-foto:active { cursor: grabbing; }

/* Botões de ação (rodapé) */
.pbv-actions {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  z-index: 1;
}
.pbv-like-btn,
.pbv-msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .9rem;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s, background .16s, border-color .16s;
}
.pbv-like-btn.curtido {
  background: rgba(212,160,23,.28);
  border-color: var(--gold, #D4A017);
}
.pbv-like-btn:active,
.pbv-msg-btn:active  { transform: scale(.91); }
.gps-btn-gps:disabled,  .gps-btn-salvar:disabled { opacity: .55; pointer-events: none; }

.gps-coords-txt {
  display: block;
  font-size: .72rem;
  color: var(--gold);
  word-break: break-all;
  line-height: 1.4;
  margin-bottom: 4px;
}

/* Mensagens */
.gps-msg       { font-size: .84rem; min-height: 1.4em; margin: 1rem 0 4px; text-align: center; color: var(--text-on-surface, #F5E9DC); }
.gps-msg--ok   { color: #4caf50; }
.gps-msg--erro { color: #e57373; }

/* ── GpsPanelMap — Mini-mapa do painel GPS ───────────────────── */
.gps-mapa-secao    { margin-top: 1.5rem; }
.gps-mapa-titulo   { font-size: .82rem; color: var(--text-muted, #999); text-align: center; margin-bottom: .5rem; }
.gps-mapa-container {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #1a1a1a);
}

/* Pins Leaflet customizados */
.gps-mapa-pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold, #D4AF37);
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0,0,0,.6);
}
.gps-mapa-pin--destaque {
  width: 22px;
  height: 22px;
  background: #e53935;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(229,57,53,.8);
  animation: gps-pin-pulse 1.6s ease-in-out infinite;
}
@keyframes gps-pin-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.3); }
}

.gaspar-ok {
  color: #1a0800 !important;
  font-weight: 700;
}

/* ================================================================
   SUB-PAINÉIS — deslizam por cima de tela-minha-barbearia
   (GPS + Configurações)
================================================================ */
.mb-sub-tela {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: var(--bg, #0f0500);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(0.4,0,0.2,1);
  scrollbar-width: none;
}
.mb-sub-tela::-webkit-scrollbar { display: none; }
.mb-sub-ativa { transform: translateX(0); }

.mb-sub-tela .tela-topo {
  position: static;
}
.mb-sub-tela .tela-topo + .content {
  margin-top: 1.5rem;
}

/* Título da página de configurações */
.mb-cfg-titulo-pg {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  padding: 0;
  letter-spacing: .3px;
}

/* Body de configurações */
.mb-config-body {
  padding: 0 0 calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mb-config-secao { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.mb-config-secao-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
}
#mb-config-panel .mb-config-secao-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  white-space: nowrap;
}
#mb-config-panel .mb-config-secao-label::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

/* ── Linha: capa + ícone lado a lado ── */
.mb-cfg-media-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  padding: 0 3.33% 0 3.33%;
  gap: 3.33%;
  box-sizing: border-box;
}

.mb-cfg-capa-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.mb-config-upload-wrap {
  position: relative;
  width: 100%;
  height: calc(45vw * 0.63);
  border-radius: var(--r-lg, 12px);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--gold-border);
}
.mb-config-upload-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mb-config-upload-wrap .mb-config-upload-btn--circulo {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gold, #D4AF37);
  border: 1px solid #1a0800;
  color: #1a0800;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
  transition: transform .15s, background .15s;
}
.mb-config-upload-wrap .mb-config-upload-btn--circulo:active,
.mb-config-upload-wrap .mb-config-upload-btn--circulo:hover {
  transform: scale(.9);
  background: #f0c040;
  border-color: #1a0800;
}

.mb-config-icone-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.mb-config-icone-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-lg, 12px);
  background: linear-gradient(135deg, #3d1e08 0%, #7a4a1a 45%, #c9872a 100%);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(212,175,55,.22);
  height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.mb-config-icone-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  opacity: 0.45;
  z-index: 0;
}
.mb-config-icone-wrap > * {
  position: relative;
  z-index: 1;
}
.mb-config-icone-circulo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--gold);
  flex-shrink: 0;
  background: var(--card);
}
.mb-config-icone-circulo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mb-config-icone-wrap .mb-config-upload-btn--logo {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gold, #D4AF37);
  border: 1px solid #1a0800;
  color: #1a0800;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
  transition: transform .15s, background .15s;
  flex: none;
  white-space: nowrap;
}
.mb-config-icone-wrap .mb-config-upload-btn--logo:active,
.mb-config-icone-wrap .mb-config-upload-btn--logo:hover {
  transform: scale(.9);
  background: #f0c040;
  border-color: #1a0800;
}

.mb-config-upload-btn {
  display: block;
  width: 100%;
  padding: 10px 10px;
  border-radius: var(--r-sm, 8px);
  background: var(--gold, #c9872a);
  border: 1px solid var(--gold, #c9872a);
  color: #1a0800;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, border-color .15s;
  box-sizing: border-box;
}
.mb-config-upload-btn:active,
.mb-config-upload-btn:hover {
  background: #d49534;
  border-color: #d49534;
}

/* ── Linha editável: valor + lápis ── */
.mb-cfg-editable-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.mb-cfg-display-val {
  flex: 1;
  font-size: .9rem;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mb-cfg-lapis-btn {
  all: unset;
  cursor: pointer;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.mb-cfg-lapis-btn:active,
.mb-cfg-lapis-btn:hover { background: rgba(212,175,55,.15); }

/* Input de texto (nome, whats, etc.) */
.mb-config-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--card);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--r-md, 10px);
  color: var(--text);
  font-size: .9rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s;
}
.mb-config-input:focus { border-color: var(--gold); }

/* Input transparente reutilizavel: use class="inpustyle" em input/textarea. */
.inpustyle {
  width: 100%;
  min-height: 42px;
  padding: 10px 2px 8px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--brown, #6f4529);
  border-radius: 0;
  color: var(--text, #2b1b12);
  font-size: .9rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s, color .18s, opacity .18s;
}

.inpustyle:focus,
.inpustyle:active {
  border-bottom-color: var(--gold, #D4AF37);
}

.inpustyle::placeholder {
  color: rgba(111, 69, 41, .62);
}

.inpustyle-btn {
  width: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  color: var(--brown, #6f4529);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.inpustyle-btn:hover,
.inpustyle-btn:focus-visible {
  color: var(--gold, #D4AF37);
  border-bottom-color: var(--gold, #D4AF37);
}

/* Lista dinâmica de produtos */
.mb-cfg-produtos-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* ── Card-view: item de serviço salvo (estilo CorteModal, tema escuro) ── */
.mb-cfg-produto-row {
  /* wrapper sem visual próprio — children controlam o estilo */
}

.mb-prod-card-view {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md, 10px);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.18);
  cursor: pointer;
  transition: background .15s;
}
.mb-prod-card-view:hover { background: rgba(212,175,55,.08); }

.mb-prod-card-img-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(212,175,55,.2);
}
.mb-prod-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mb-prod-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mb-prod-card-nome {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mb-prod-card-meta {
  font-size: .75rem;
  color: var(--gold, #D4AF37);
}
.mb-prod-card-btns {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.mb-prod-card-edit-btn {
  all: unset;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .82rem;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.mb-prod-card-edit-btn:active { background: rgba(255,255,255,.1); }

/* ── Form-view: painel de edição/criação do item ── */

/* ════════════════════════════════════════════════════════════════
   MB-ITEM-VIEW — Drawer "ver itens" (GuardaIten)
   ════════════════════════════════════════════════════════════════ */
.mb-cfg-itens-view {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 4px;
}

.mb-item-view-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md, 10px);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.15);
  min-height: 52px;
}

.mb-item-view-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(212,175,55,.18);
}

.mb-item-view-nome {
  flex: 1;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.mb-item-view-preco {
  font-size: .80rem;
  color: var(--gold, #D4AF37);
  white-space: nowrap;
  flex-shrink: 0;
}

.mb-item-view-acoes {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mb-item-trash-btn {
  all: unset;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .9rem;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.mb-item-trash-btn:active { background: rgba(255,80,80,.18); }

.mb-item-confirm {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mb-item-confirm-txt {
  font-size: .75rem;
  color: var(--text-soft, #aaa);
  white-space: nowrap;
}

.mb-item-confirm-sim,
.mb-item-confirm-nao {
  all: unset;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.mb-item-confirm-sim {
  color: #ff5050;
  border: 1px solid rgba(255,80,80,.4);
}
.mb-item-confirm-sim:active { background: rgba(255,80,80,.15); }
.mb-item-confirm-nao {
  color: var(--text-soft, #aaa);
  border: 1px solid rgba(255,255,255,.12);
}
.mb-item-confirm-nao:active { background: rgba(255,255,255,.08); }

/* ════════════════════════════════════════════════════════════════
   MSLM — MensalistaModal
   ════════════════════════════════════════════════════════════════ */
.mslm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9500;
  opacity: 0;
  transition: opacity .22s ease;
}
.mslm-overlay--visivel { opacity: 1; }
.mslm-overlay--saindo  { opacity: 0; }
.mslm-card {
  background: var(--card, #fff9f0);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(32px);
  transition: transform .22s ease;
}
.mslm-overlay--visivel .mslm-card { transform: translateY(0); }
.mslm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border-soft, rgba(212,175,55,.15));
  flex-shrink: 0;
}
.mslm-titulo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text, #2b1b12);
  margin: 0;
}
.mslm-fechar {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted, #8c7057);
  padding: 4px 8px;
}
.mslm-body {
  overflow-y: auto;
  flex: 1;
  padding: 0 0 8px;
}
.mslm-secao {
  padding: 14px 18px 6px;
}
.mslm-secao + .mslm-secao {
  border-top: 1px solid var(--border-soft, rgba(212,175,55,.12));
}
.mslm-secao-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted, #8c7057);
  margin: 0 0 10px;
}
.mslm-lista-ativos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mslm-lista-disponiveis {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mslm-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border-soft, rgba(212,175,55,.08));
  text-align: center;
  min-width: 80px;
  max-width: 100px;
}
.mslm-item:last-child { border-bottom: none; }
.mslm-item--ativo {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  min-width: unset;
  max-width: unset;
  text-align: left;
}
.mslm-item-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  flex-shrink: 0;
}
.mslm-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.mslm-item-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.mslm-avatar,
.mslm-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mslm-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold, #D4AF37);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}
.mslm-item-nome {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text, #2b1b12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}
.mslm-item-vence {
  font-size: .67rem;
  white-space: nowrap;
  color: var(--text-muted, #8c7057);
}
.mslm-vence-label {
  color: #e74c3c;
  font-weight: 700;
}
.mslm-item-mensalidade {
  font-size: .67rem;
  color: var(--text-muted, #8c7057);
  white-space: nowrap;
}
.mslm-btn-remover,
.mslm-btn-adicionar {
  all: unset;
  cursor: pointer;
  font-weight: 700;
  transition: background .15s, opacity .15s;
}
.mslm-btn-remover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .95rem;
  border: 1.5px solid #c0392b;
  color: #c0392b;
  margin-top: 2px;
}
.mslm-btn-remover:hover { background: rgba(192,57,43,.10); }
.mslm-btn-adicionar {
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  color: var(--gold, #D4AF37);
  border: 1.5px solid var(--gold, #D4AF37);
}
.mslm-btn-adicionar:hover { background: rgba(212,175,55,.08); }
.mslm-btn-remover:disabled,
.mslm-btn-adicionar:disabled { opacity: .45; cursor: default; }
.mslm-busca-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.mslm-busca-input {
  flex: 1;
  min-width: 0;
}
.mslm-btn-buscar {
  font-size: 1rem;
}
.mslm-mensalidade-input {
  max-width: 180px;
}
.mslm-busca-msg {
  font-size: .78rem;
  color: var(--text-muted, #8c7057);
  margin: 4px 0 0;
  min-height: 1.2em;
}
.mslm-loading {
  list-style: none;
  padding: 12px 0;
  font-size: .85rem;
  color: var(--text-muted, #8c7057);
  text-align: center;
}
.mslm-vazio {
  list-style: none;
  padding: 12px 0;
  font-size: .85rem;
  color: var(--text-muted, #8c7057);
  text-align: center;
  font-style: italic;
}
.mslm-footer {
  padding: 10px 18px 14px;
  flex-shrink: 0;
  border-top: 1px solid var(--border-soft, rgba(212,175,55,.15));
}
.mslm-btn--fechar {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--card2, #f0e8d8);
  color: var(--text, #2b1b12);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.mslm-btn--fechar:hover { background: var(--border-soft, rgba(212,175,55,.2)); }

/* ── CorteModal: card Plano Mensal ── */
.crtm-plano-mensal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin: 6px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,175,55,.18) 0%, rgba(212,175,55,.08) 100%);
  border: 1.5px solid var(--gold, #D4AF37);
  cursor: pointer;
  transition: background .15s, transform .1s;
  user-select: none;
}
.crtm-plano-mensal:hover  { background: linear-gradient(135deg, rgba(212,175,55,.28) 0%, rgba(212,175,55,.14) 100%); }
.crtm-plano-mensal:active { transform: scale(.98); }
.crtm-plano-mensal-icone {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.crtm-plano-mensal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.crtm-plano-mensal-titulo {
  font-size: .95rem;
  font-weight: 800;
  color: var(--gold-dark, #b8960c);
}
.crtm-plano-mensal-desc {
  font-size: .78rem;
  color: var(--text-muted, #8c7057);
  white-space: normal;
}
.crtm-plano-mensal-cortes {
  font-size: .74rem;
  color: var(--text-muted, #8c7057);
  margin-top: 1px;
}
.mb-prod-form-view {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(212,175,55,.18);
  border-radius: var(--r-md, 10px);
  background: rgba(255,255,255,.03);
}
.mb-prod-form-acoes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* Linha principal dentro do form: imagem + campos lado a lado */
.mb-prod-li--painel {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

/* Container dos campos (nome + preço) */
.mb-prod-li--painel .mb-cfg-prod-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.mb-prod-form-view .mb-prod-li--painel {
  flex: 1;
  align-items: center;
}
.mb-prod-form-view .mb-cfg-prod-fields {
  flex-direction: row;
  align-items: end;
}
.mb-serv-tipo-li[data-category="corte"] .mb-prod-li--painel,
.mb-serv-tipo-li[data-category="barba"] .mb-prod-li--painel {
  flex: 1;
  align-items: center;
}
.mb-serv-tipo-li[data-category="corte"] .mb-cfg-prod-fields,
.mb-serv-tipo-li[data-category="barba"] .mb-cfg-prod-fields {
  flex-direction: row;
  align-items: end;
}

/* Grupo label + input em coluna */
.mb-cfg-prod-field-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 0;
  min-width: 0;
}
/* Label dos campos do item */
.mb-prod-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted, rgba(255,255,255,.45));
  text-transform: uppercase;
  letter-spacing: .04em;
}
/* Linha preço: prefixo + input */
.mb-prod-preco-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mb-prod-preco-prefix {
  font-size: .82rem;
  color: var(--text-muted, rgba(255,255,255,.45));
}
/* Área de imagem do item */
.mb-cfg-prod-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--r-md, 10px);
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(212,175,55,.4);
}

@media (max-width: 560px) {
  .mb-prod-form-view {
    flex-direction: column;
    align-items: stretch;
  }
  .mb-prod-form-view .mb-cfg-prod-fields {
    flex-direction: column;
  }
}
.mb-cfg-prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mb-cfg-prod-img-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold, #D4AF37);
  border: 1px solid #1a0800;
  color: #1a0800;
  font-size: .9rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
/* Coluna de campos do item */
.mb-cfg-prod-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.mb-cfg-prod-nums-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.mb-cfg-prod-nome,
.mb-cfg-prod-preco,
.mb-cfg-prod-dur {
  padding: 6px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(212,175,55,.3);
  border-radius: 0;
  color: var(--text);
  font-size: .82rem;
  outline: none;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color .18s;
  width: 100%;
}
.mb-cfg-prod-nome:focus,
.mb-cfg-prod-preco:focus,
.mb-cfg-prod-dur:focus { border-bottom-color: var(--gold); }
.mb-cfg-prod-preco,
.mb-cfg-prod-dur { width: 70px; flex-shrink: 0; }
.mb-cfg-prod-remove {
  all: unset;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s;
}
.mb-cfg-prod-remove:active { color: #e44; }

/* Botão adicionar item */
.mb-config-add-btn {
  all: unset;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  padding: 6px 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── btn-flow ──────────────────────────────────────────────────────
   Botão padrão do sistema — gold preenchido (ação primária).
   Variante: .btn-flow--outline (contorno gold / ação secundária)
────────────────────────────────────────────────────────────────── */
.btn-flow {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-radius: var(--r-sm, 8px);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, border-color .15s;
  background: var(--gold, #c9872a);
  border: 2px solid var(--gold, #c9872a);
  color: #1a0800;
}
.btn-flow:active,
.btn-flow:hover  { background: #d49534; border-color: #d49534; }

.btn-flow--outline {
  background: transparent;
  border: 2px solid var(--gold, #c9872a);
  color: var(--gold, #c9872a);
}
.btn-flow--outline:active,
.btn-flow--outline:hover { background: var(--gold, #c9872a); color: #1a0800; }

/* Botão salvar */
.mb-config-salvar {
  margin-top: 4px;
}

/* Mensagem de status */
.mb-config-msg {
  font-size: .82rem;
  text-align: center;
  color: var(--text-on-surface, #F5E9DC);
  min-height: 1.2em;
}

/* ================================================================
   FONTESALAO — Picker de fonte para o nome da barbearia
================================================================ */
.fs-picker {
  margin: 8px 0 4px;
}

/* Botão toggle */
.fs-picker__toggle {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold, #D4AF37);
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 20px;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.fs-picker__toggle:active,
.fs-picker__toggle--aberto { background: rgba(212,175,55,.15); }

/* Painel dropdown (lista + botão confirmar) */
.fs-picker__painel {
  margin-top: 8px;
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card, #22110a);
}

/* Lista de fontes */
.fs-picker__lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Item */
.fs-picker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.fs-picker__item:active,
.fs-picker__item:hover { background: rgba(212,175,55,.12); }
.fs-picker__item--ativo { background: rgba(212,175,55,.22); }
.fs-picker__item--ativo .fs-picker__check { opacity: 1; }

/* Checkmark lateral */
.fs-picker__check {
  margin-left: auto;
  color: var(--gold, #D4AF37);
  font-size: 1rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity .15s;
  flex-shrink: 0;
}

/* Nome da fonte (preview na própria fonte) */
.fs-picker__nome {
  font-size: 1.35rem;
  color: #F5E9DC;
  line-height: 1.1;
}

/* Descrição */
.fs-picker__desc {
  font-size: .75rem;
  color: #b08060;
  display: block;
  margin-top: 2px;
}

/* Bloco texto do item */
.fs-picker__txt {
  display: flex;
  flex-direction: column;
}

/* Botão confirmar dentro do painel — herda layout de .btn-flow */
.fs-picker__confirmar {
  border-radius: 0;
  border-top: 1px solid rgba(212,175,55,.2);
  padding: 12px 0;
  font-size: .9rem;
}

/* ── PWA Install Banner ──────────────────────────────────── */
.pwa-banner {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card, #1a1209);
  border: 1px solid var(--gold-border, rgba(212,175,55,.3));
  border-radius: 16px;
  padding: 10px 14px 10px 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.pwa-banner--visivel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.pwa-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}
.pwa-banner__texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.pwa-banner__texto strong {
  font-size: .8rem;
  color: var(--text);
}
.pwa-banner__sub {
  font-size: .68rem;
  color: var(--text-muted, #8c7057);
}
.pwa-banner__btn {
  flex-shrink: 0;
  background: var(--gold, #D4AF37);
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.pwa-banner__btn:hover { opacity: .88; }
.pwa-banner__fechar {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted, #8c7057);
  font-size: .9rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

/* ── Card da barbearia na tela do barbeiro ── */
.beiro-workplace-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 14px;
  background-color: rgba(16,14,12,.72);
  background-image:
    linear-gradient(90deg, rgba(12,10,8,.9), rgba(12,10,8,.68) 58%, rgba(12,10,8,.36)),
    var(--beiro-workplace-bg, url('/shared/img/Logo01.png'));
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .14s;
  -webkit-tap-highlight-color: transparent;
}
.beiro-workplace-card:active { transform: scale(.98); background: rgba(212,175,55,.13); }
.beiro-workplace-card:active {
  background-image:
    linear-gradient(90deg, rgba(12,10,8,.86), rgba(12,10,8,.62) 58%, rgba(12,10,8,.3)),
    var(--beiro-workplace-bg, url('/shared/img/Logo01.png'));
  background-repeat: no-repeat, no-repeat;
}
.beiro-workplace-card__info { flex: 1; min-width: 0; text-align: left; }
.beiro-workplace-card__name {
  margin: 0 0 2px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.beiro-workplace-card__owner {
  margin: 0 0 2px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.beiro-workplace-card__addr {
  margin: 0;
  font-size: .76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.beiro-workplace-card__arrow {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Pulsacao do card do barbeiro de origem ── */
@keyframes cdr-highlight-pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px #D4AF37, 0 0 18px 4px rgba(212,175,55,.45);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(212,175,55,.5), 0 0 8px 2px rgba(212,175,55,.15);
  }
}
.cdr-row--highlight {
  border-radius: 12px;
  animation: cdr-highlight-pulse 1.1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cdr-row--highlight { animation: none; outline: 2px solid #D4AF37; }
}

/* ============================================================
   PortfolioPrismViewer -- prisma 3D hexagonal de 6 faces
   Compartilhado entre app cliente e app profissional
============================================================ */
[class*="pp-prism"] {
  margin: 0;
  padding: 0;
  border: none;
}

.pp-prism-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 6, 4, .94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0.5rem 0.2px 18px;
  overflow: hidden;
  --pp-radius: 200px;
}
.pp-prism-viewer[hidden] { display: none; }
.pp-prism-viewer[data-mode="story"] { padding-bottom: 74px; }

.pp-prism-close {
  display: none;
}

/* Botão fechar dentro da face — visível em todos os modos */
.pp-prism-face-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: background .2s;
}
.pp-prism-face-close:hover,
.pp-prism-face-close:focus-visible { background: rgba(255,255,255,.18); }

.pp-prism-meta {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  max-width: min(70vw, 320px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  pointer-events: none;
}
.pp-prism-meta[hidden] { display: none; }
.pp-prism-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  flex: 0 0 auto;
}
.pp-prism-meta-text {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pp-prism-name,
.pp-prism-likes {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-prism-name {
  font-size: .82rem;
  line-height: 1.1;
}
.pp-prism-likes {
  color: rgba(255,255,255,.74);
  font-size: .7rem;
  line-height: 1.1;
}

.pp-prism-stage {
  position: relative;
  width: min(90vw, 500px);
  height: min(85vh, calc(min(86vw, 500px) * 1.2 + 30vh - 50px));
  margin-top: 0;
  perspective: 2400px;
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.pp-prism-stage:active { cursor: grabbing; }

.pp-prism-reactions {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}
.portfolio-viewer__reactions {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

/* INÍCIO ALTERAÇÃO - Gap mínimo de 10px entre elementos animados */
.pp-prism-float {
  position: absolute;
  left: 50%;
  bottom: calc(18px + (var(--pp-prism-float-stack, 0) * 10px));
  max-width: min(82%, 340px);
  display: flex;
  align-items: center;
  gap: 10px;
/* FIM ALTERAÇÃO */
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  transform: translateX(-50%);
  animation: pp-prism-float-up 2.4s ease-out forwards;
  text-shadow: 0 1px 6px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.7);
  pointer-events: none;
}
.pp-prism-float--emoji {
  justify-content: center;
  max-width: 72px;
  font-size: 2rem;
  opacity: .38;
  animation: pp-prism-emoji-burst 3.2s ease-out forwards;
  filter: drop-shadow(0 0 12px rgba(255,214,102,.42));
}
.pp-prism-float--like {
  justify-content: center;
  max-width: 72px;
  font-size: 1.85rem;
  animation: pp-prism-like-rise 4.2s linear forwards;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
}
.pp-prism-float__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.7);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.7));
}
.pp-prism-float__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pp-prism-float__nome {
  font-size: .75rem;
  font-weight: 800;
  opacity: .9;
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
}
.pp-prism-float__texto {
  font-size: .9rem;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
}

.pp-prism-cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  will-change: transform;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pp-prism-cube--drag { transition: none; }

.pp-prism-face {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  backface-visibility: hidden;
  background: #0d0a08;
  box-shadow: 0 18px 38px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
  opacity: .92;
  filter: brightness(.86);
  transition: opacity .35s ease, filter .35s ease;
}
.pp-prism-face[data-face="0"] {
  opacity: 1;
  filter: brightness(1);
}

.pp-prism-media {
  position: absolute;
  inset: 0;
}
.pp-prism-media > img,
.pp-prism-media > video {
  width: 100%;
  height: 100%;
  display: block;
}
.pp-prism-media > img   { object-fit: cover; }
.pp-prism-media > video { object-fit: cover; }

/* Overlay transparente cobre toda a face — filhos são posicionados absolutamente */
.pp-prism-face-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
/* Identidade: 1rem do topo e 1rem da esquerda do pai (.pp-prism-face) */
.pp-prism-face-identity {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 2rem);
  pointer-events: none;
}
.pp-prism-face-id-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,.5);
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.7));
}
.pp-prism-face-id-name {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
/* Curtir — rodapé direito, sem nenhuma borda nem fundo */
.pp-prism-face-like-btn {
  all: unset;
  position: absolute;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
  transition: opacity .2s;
}
.pp-prism-face-like-btn:hover { opacity: .75; }
.pp-prism-face-like-btn.is-liked { color: rgba(212,175,55,.95); }
.pp-prism-face-like-btn[hidden] { display: none !important; }
.pp-prism-face-like-icon { font-size: 1.1rem; line-height: 1; }
.pp-prism-face-like-count { font-size: .7rem; font-weight: 700; line-height: 1; }

.pp-prism-title {
  color: #f5efe6;
  font-size: .92rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  max-width: 90vw;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
/* Barra de progresso dentro de cada face — gira/arrasta junto com a mídia */
.pp-prism-progress {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
  pointer-events: none;
}
.pp-prism-progress[hidden] { display: none; }
.pp-prism-progress-dash {
  flex: 0 1 1rem;
  min-width: 2px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.3s;
}
.pp-prism-progress-dash.is-active {
  background: rgba(255, 255, 255, 0.92);
}
.pp-prism-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.pp-prism-public-actions {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 5;
  transform: translateX(-50%);
  width: min(92vw, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}
.pp-prism-public-actions[hidden] { display: none; }
.pp-prism-public-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.pp-prism-message-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 200px;
  max-width: 54vw;
  flex-shrink: 0;
}
.pp-prism-message-input {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 0 36px 0 12px;
  outline: none;
}
.pp-prism-message-send {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.pp-prism-message-send:hover { background: rgba(255,255,255,.32); }
.pp-prism-message-send:disabled { opacity: .4; cursor: default; }
.pp-prism-public-like,
.pp-prism-public-emoji {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}
.pp-prism-public-like.is-liked {
  color: #ff6b8a;
}

/* Garante que [hidden] funcione dentro do painel (CSS não sobrescreve) */
.pp-prism-public-actions [hidden] { display: none !important; }

/* Dono do story: só 👍 + 💬, mais acima e maiores */
.pp-prism-public-actions.is-owner-actions {
  bottom: 60px;
  left: auto;
  right: 1rem;
  transform: none;
  width: auto;
  justify-content: flex-end;
  gap: 14px;
}
.pp-prism-public-actions .pp-prism-story-owner-actions {
  position: static; /* anula position:absolute do .portfolio-actions */
}
.pp-prism-public-actions.is-owner-actions .portfolio-action {
  min-width: 64px;
  height: 58px;
  font-size: 1.4rem;
  padding: 0 16px;
  gap: 6px;
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}
.pp-prism-public-actions.is-owner-actions .portfolio-action__icon { font-size: 1.5rem; }
.pp-prism-public-actions.is-owner-actions .portfolio-action__count { font-size: 1rem; font-weight: 700; }

@keyframes pp-prism-float-up {
  0% { opacity: 0; transform: translate(-50%, 12px) scale(.94); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -260px) scale(1.06); }
}
@keyframes pp-prism-emoji-burst {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.74) rotate(-4deg); }
  16% { opacity: .42; transform: translate(calc(-50% - 12px), -44px) scale(1.08) rotate(5deg); }
  38% { opacity: .34; transform: translate(calc(-50% + 16px), -112px) scale(.96) rotate(-6deg); }
  70% { opacity: .24; transform: translate(calc(-50% - 8px), -196px) scale(1.12) rotate(4deg); }
  100% { opacity: 0; transform: translate(-50%, -300px) scale(.82) rotate(-8deg); }
}
@keyframes pp-prism-like-rise {
  0% { opacity: 0; transform: translate(-50%, 18px) scale(.9); }
  12% { opacity: .95; }
  78% { opacity: .8; }
  100% { opacity: 0; transform: translate(-50%, -340px) scale(1.02); }
}


@media (max-width: 480px) {
  .pp-prism-stage { width: min(90vw, 500px); perspective: 2400px; }
  .pp-prism-face-id-name { max-width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-prism-cube {
    transition: opacity .25s ease;
    transform: none !important;
  }
  .pp-prism-face {
    transform: none !important;
    opacity: 0;
  }
  .pp-prism-face[data-face="0"] { opacity: 1; }
  .pp-prism-float {
    animation: none;
    opacity: 1;
  }
}

/* ── Modal de mensagens recebidas no portfólio (barbeiro) ──── */
.pf-msg-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom);
}
.pf-msg-modal[hidden] { display: none; }
.pf-msg-modal-open { overflow: hidden; }
.pf-msg-modal__box {
  background: var(--bf-bg-card, #1a1a2e);
  border-radius: 16px 16px 0 0;
  width: min(100%, 520px);
  max-height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}
.pf-msg-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  background: var(--bf-bg-card, #1a1a2e);
  z-index: 1;
}
.pf-msg-modal__title {
  font-size: 15px;
  color: var(--bf-text-primary, #fff);
}
.pf-msg-modal__close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-msg-modal__likes-badge {
  margin: 4px 16px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  min-height: 0;
}
.pf-msg-modal__likes-badge:empty { display: none; }
.pf-msg-modal__status {
  padding: 8px 16px;
  color: var(--bf-text-secondary, rgba(255,255,255,.6));
  font-size: 13px;
  min-height: 20px;
}
.pf-msg-modal__list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pf-msg-modal__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pf-msg-modal__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
}
.pf-msg-modal__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pf-msg-modal__nome {
  font-size: 13px;
  color: var(--bf-text-primary, #fff);
}
.pf-msg-modal__body {
  font-size: 14px;
  color: var(--bf-text-secondary, rgba(255,255,255,.82));
  word-break: break-word;
  margin: 0;
}
.pf-msg-modal__data {
  font-size: 11px;
  color: var(--bf-text-muted, rgba(255,255,255,.45));
}

/* ══════════════════════════════════════════════════════
   Chat Universal — adicionado em 20260601
   ══════════════════════════════════════════════════════ */

/* ── Favoritos strip ──────────────────────────────────── */
.msgs-favoritos-titulo {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 12px 0 6px;
}
.msgs-favoritos-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.msgs-favoritos-strip::-webkit-scrollbar { display: none; }
.msgs-fav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 64px;
  cursor: pointer;
  user-select: none;
}
.msgs-fav-card:active { opacity: .75; }
.msgs-fav-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-muted, rgba(212,160,23,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold, #D4A017);
  border: 2px solid var(--gold-border, rgba(212,160,23,.3));
  flex-shrink: 0;
  overflow: hidden;
}
.msgs-fav-card-nome {
  font-size: .68rem;
  text-align: center;
  color: var(--text-muted);
  max-width: 64px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Search ───────────────────────────────────────────── */
#msgs-search-wrap {
  position: relative;
  margin-bottom: 12px;
}
.msgs-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gold-border, rgba(212,160,23,.3));
  border-radius: var(--r-full, 9999px);
  background: var(--card, #fff);
  color: var(--text, #2A211B);
  font-size: .9rem;
  outline: none;
  box-sizing: border-box;
}
.msgs-search-input:focus { border-color: var(--gold, #D4A017); }
.msgs-search-results {
  position: absolute;
  left: 0; right: 0;
  background: var(--card, #fff);
  border: 1px solid var(--gold-border, rgba(212,160,23,.3));
  border-radius: var(--r-md, 16px);
  z-index: 200;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.msgs-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
}
.msgs-search-item:hover { background: var(--gold-muted, rgba(212,160,23,.08)); }
.msgs-search-item-nome { font-size: .9rem; font-weight: 600; color: var(--text, #2A211B); }
.msgs-search-item-sub  { font-size: .75rem; color: var(--text-muted); }

/* ── Chat bubble states ───────────────────────────────── */
.chat-balao--enviando { opacity: .6; }
.chat-balao--falhou   { opacity: .5; border: 1px solid #c0392b !important; }
.chat-status-bff      {
  font-size: .7rem;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0;
  opacity: .7;
}
#chat-mod-aviso {
  font-size: .8rem;
  color: #c0392b;
  padding: 4px 10px;
  text-align: center;
  background: rgba(192,57,43,.1);
  border-radius: 8px;
  margin: 0 12px 4px;
  display: none;
}
