﻿/* =========================================================
   BarberSaaS - Design System Global
   Responsabilidade: centralizar toda a estética premium
   (dark mode, glassmorphism e UI inspirada em iPhone)
   em um único arquivo global.

  PROCESSO DE ESTILIZACAO DO PROJETO:
  1) Tokens em :root definem a identidade visual central.
  2) Componentes base (cards, botoes, inputs) padronizam UI.
  3) Blocos do calendario e slots sustentam o agendamento.
  4) Blocos do dashboard sustentam o monitoramento operacional.
  5) Toasts e estados visuais melhoram feedback e confianca.
  6) Portfolio grid e logo container da barbearia.
========================================================= */

:root {
  --gold: #d4af37;
  --gold-strong: #b8942a;
  --bg: #050505;
  --bg-soft: #111111;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.14);
  --text-main: #f6f6f6;
  --text-soft: #b7b7b7;
  --danger: #e55555;
  --ok: #30b878;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Sora', sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1200px 700px at 10% -20%, rgba(212, 175, 55, 0.14), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(165deg, #020202 0%, #070707 45%, #0c0c0c 100%);
}

main {
  width: 100%;
}

.premium-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.glass-panel {
  display: block;
  align-items: center;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 30px 50px rgba(0, 0, 0, 0.45);
}

.feature-card {
  display: block;
  border-radius: 1.25rem;
  padding: 1.2rem;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.section-label {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
}

.input-premium {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 0.95rem;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-main);
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.input-premium:focus {
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.btn-gold {
  border: 0;
  border-radius: 0.95rem;
  padding: 0.82rem 1rem;
  font-weight: 700;
  color: #1d1708;
  background: linear-gradient(145deg, #e5c25c, #d4af37);
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-gold:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
  opacity: 0.7;
}

.btn-outline {
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 0.95rem;
  padding: 0.72rem 1rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
  font-weight: 600;
}

.icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.calendar-week,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.calendar-week {
  margin-bottom: 0.5rem;
}

.calendar-week span {
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.day-btn {
  border: 1px solid transparent;
  border-radius: 0.75rem;
  min-height: 2.2rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 0.78rem;
}

.day-btn:hover {
  border-color: rgba(212, 175, 55, 0.34);
}

.day-btn.is-selected {
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(212, 175, 55, 0.16);
  color: #fff4cf;
}

.day-btn.is-disabled {
  opacity: 0.32;
  pointer-events: none;
}

.slot-btn {
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  padding: 0.6rem 0.2rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
}

.slot-btn:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.slot-btn.is-selected {
  border-color: rgba(212, 175, 55, 0.82);
  background: rgba(212, 175, 55, 0.18);
}

/* Slot ocupado (confirmado ou bloqueado): indisponível para o cliente */
.slot-btn.status-indisponivel {
  background-color: #222;
  color: rgba(229, 85, 85, 0.6);
  border-color: rgba(229, 85, 85, 0.2);
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  font-size: 0.65rem;
  letter-spacing: 0.01em;
}

/* Slot disponível para o cliente selecionar */
.slot-btn.horario-disponivel {
  border-color: var(--panel-border);
}

/* Slot ocupado (agendamento confirmado) ou bloqueado manualmente pelo barbeiro.
   O front-end aplica esta classe quando o horario consta no retorno do Supabase
   com status IN ('confirmado', 'bloqueado'). O botão fica desativado via [disabled]. */
.slot-btn.horario-inativo {
  background-color: #333;
  color: #666;
  cursor: not-allowed;
  text-decoration: line-through;
  pointer-events: none;
}

.service-card {
  border: 1px solid var(--panel-border);
  border-radius: 0.95rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.service-card.is-selected {
  border-color: rgba(212, 175, 55, 0.75);
  background: rgba(212, 175, 55, 0.13);
}

.metric-card {
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--panel);
}

.metric-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.metric-value {
  margin: 0.3rem 0 0;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 800;
}

.appt-item,
.block-item {
  border: 1px solid var(--panel-border);
  border-radius: 0.95rem;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
}

.appt-item-blocked {
  border-color: rgba(229, 85, 85, 0.38);
  background: rgba(229, 85, 85, 0.1);
}

.appt-item p,
.block-item p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translate(-50%, 120%);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.58rem 1rem;
  background: #141414;
  color: var(--text-main);
  font-size: 0.8rem;
  transition: transform 220ms ease;
  z-index: 100;
}

.toast.show {
  transform: translate(-50%, 0);
}

.text-danger {
  color: var(--danger);
}

.text-ok {
  color: var(--ok);
}

@media (max-width: 768px) {
  .metric-value {
    font-size: 1.5rem;
  }

  .day-btn {
    min-height: 2rem;
  }
}

/* ── Overlay do modal ─────────────────────────────────
   Estado inicial: invisível e não-interativo.
   '.is-open' ativa a transição de entrada.
────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Caixa do modal ───────────────────────────────────
   Slide + scale de entrada junto com a transição do overlay.
────────────────────────────────────────────────────── */
.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 1.5rem;
  border: 1px solid var(--panel-border);
  padding: 2rem;
  background: linear-gradient(
    140deg,
    rgba(20, 20, 20, 0.98),
    rgba(10, 10, 10, 0.97)
  );
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(22px) scale(0.97);
  transition: transform 300ms cubic-bezier(0.34, 1.3, 0.64, 1);
}

.modal-overlay.is-open .modal-box {
  transform: translateY(0) scale(1);
}

/* ── Telas do modal ───────────────────────────────────
   Cada tela aparece com fade + leve deslize lateral.
   O atributo `hidden` remove instantaneamente e a
   animação CSS cuida da entrada suave quando `hidden` é removido.
────────────────────────────────────────────────────── */
.modal-screen {
  animation: screenFadeIn 230ms ease forwards;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Botão fechar (×) ─────────────────────────────── */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-main);
}

/* ── Botão voltar ─────────────────────────────────── */
.modal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
  border: 0;
  background: none;
  padding: 0;
  color: var(--gold);
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.modal-back:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ── Labels e erros de formulário ─────────────────── */
.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.form-error {
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════
   PORTFÓLIO GRID — Seção "Nossos Trabalhos"

   Layout:
     Desktop  → 3 colunas
     Tablet   → 2 colunas
     Mobile   → 2 colunas (compacto)

   Cada item é quadrado (aspect-ratio: 1/1) com bordas
   arredondadas de 24px, alinhado com o design premium.
   O efeito hover faz zoom suave na imagem sem mover o card.
══════════════════════════════════════════════════ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

/* Card individual do portfólio — o overflow:hidden garante
   que o zoom da imagem não vaze para fora do card. */
.portfolio-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;           /* 24px arredondado */
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  cursor: pointer;
}

/* Imagem dentro do card:
   - object-fit: cover  → preenche sem distorcer
   - transition         → zoom suave no hover  */
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 380ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efeito zoom ao passar o mouse */
.portfolio-item:hover img {
  transform: scale(1.08);
}

/* Camada de descrição — aparece no hover com fade */
.portfolio-item-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 280ms ease;
}

.portfolio-item:hover .portfolio-item-caption {
  opacity: 1;
}

.portfolio-item-caption p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;

/* ────────────────────────────────────────────────────────────
   SEÇÃO BLOQUEADA
   Calendário e slots ficam desativados visualmente até que o
   cliente selecione pelo menos um serviço do barbeiro.
   JS alterna a classe 'section-locked' via updateCalendarLock().
──────────────────────────────────────────────────────────── */
.section-locked {
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

/* Aviso exibido dentro da seção bloqueada */
.calendar-lock-notice {
  margin-bottom: 0.8rem;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 0.9rem;
  padding: 0.65rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

/* ── Botões de bloqueio rápido do colaborador ──────── */
.collab-block-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.collab-block-actions-or {
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* ── Modal de conflito de agenda ───────────────────── */
.conflict-modal-box {
  max-width: 520px;
}

.conflict-whatsapp-list {
  margin-top: 0.85rem;
}

.conflict-whatsapp-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.conflict-client-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.conflict-client-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.conflict-whatsapp-link {
  flex-shrink: 0;
  border: 1px solid #1ea84e;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #25d366;
  text-decoration: none;
  transition: background 160ms ease;
}

.conflict-whatsapp-link:hover {
  background: rgba(37, 211, 102, 0.12);
}
}

/* Estado vazio do grid */
.portfolio-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--panel-border);
  border-radius: 1.5rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* ── Logo da Barbearia ───────────────────────────────
   Exibido no header do dashboard e da página do cliente.
   O container mantém proporção circular fixa.
────────────────────────────────────────────────────── */

/* Área clicável de upload no dashboard */
.logo-upload-area {
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  border: 2px dashed var(--panel-border);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 200ms ease;
  flex-shrink: 0;
}

.logo-upload-area:hover {
  border-color: rgba(212, 175, 55, 0.6);
}

.logo-upload-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-upload-hint {
  font-size: 0.62rem;
  color: var(--text-soft);
  text-align: center;
  padding: 0.4rem;
  line-height: 1.35;
}

/* ── Upload de portfólio no dashboard ──────────────── */
.portfolio-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px dashed rgba(212, 175, 55, 0.45);
  border-radius: 1rem;
  padding: 0.75rem 1.2rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.portfolio-upload-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.7);
}

/* ── Identidade por papel (RBAC visual) ───────────── */
.role-owner .glass-panel {
  border-color: rgba(212, 175, 55, 0.28);
}

.role-collab .glass-panel {
  border-color: rgba(90, 194, 255, 0.24);
}

.role-chip {
  border-width: 1px;
}

.owner-chip {
  color: #e8c772;
  border-color: rgba(232, 199, 114, 0.58);
  background: rgba(232, 199, 114, 0.15);
}

.collab-chip {
  color: #7bc9ff;
  border-color: rgba(123, 201, 255, 0.54);
  background: rgba(123, 201, 255, 0.15);
}

/* ── Controle de permissões da equipe ─────────────── */
.team-item-role {
  align-items: flex-start;
}

.team-active {
  border-color: rgba(48, 184, 120, 0.42);
}

.team-inactive {
  border-color: rgba(229, 85, 85, 0.42);
}

.permission-toggle {
  margin-top: 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.42rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.toggle-on {
  color: #ffddd7;
  border-color: rgba(229, 85, 85, 0.52);
  background: rgba(229, 85, 85, 0.2);
}

.toggle-off {
  color: #cdf4df;
  border-color: rgba(48, 184, 120, 0.52);
  background: rgba(48, 184, 120, 0.2);
}

.collab-slot-open {
  border-color: rgba(123, 201, 255, 0.42);
  color: #d7efff;
  background: rgba(123, 201, 255, 0.12);
}

.collab-slot-blocked {
  border-color: rgba(229, 85, 85, 0.45);
  color: #ffd9d9;
  background: rgba(229, 85, 85, 0.18);
}

.collab-slot-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.9rem;
  padding: 0.65rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  min-width: 0;
}

.collab-slot-card button {
  width: 100%;
  padding: 0.3rem 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collab-slot-time {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.collab-slot-state {
  margin-top: 0.15rem;
  font-size: 0.62rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collab-slot-card-open {
  border-color: rgba(123, 201, 255, 0.18);
}

.collab-slot-card-blocked {
  border-color: rgba(229, 85, 85, 0.32);
  background: rgba(229, 85, 85, 0.08);
}

/* ── Suporte WhatsApp no cliente ───────────────────── */
.btn-support-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #1ea84e;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: linear-gradient(140deg, #25d366, #1ea84e);
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.btn-support-whatsapp::before {
  content: '\260E';
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  line-height: 1;
}

.btn-support-whatsapp:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ── Selecao de barbeiro (cliente) ─────────────────── */
.barber-picker {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.barber-card {
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem;
  color: var(--text-main);
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.barber-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.5);
}

.barber-card.is-selected {
  border-color: rgba(212, 175, 55, 0.8);
  background: rgba(212, 175, 55, 0.12);
}

.barber-avatar {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.6rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.barber-name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ── Equipe no dashboard/portal ────────────────────── */
.team-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-item {
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.team-item img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.team-item strong {
  display: block;
  font-size: 0.8rem;
}

.team-item span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-soft);
}

.team-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.team-delete-btn {
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(229, 85, 85, 0.5);
  border-radius: 999px;
  background: rgba(229, 85, 85, 0.18);
  color: #ffd9d9;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.team-delete-btn:hover {
  transform: scale(1.08);
  background: rgba(229, 85, 85, 0.28);
  border-color: rgba(229, 85, 85, 0.8);
}

.owner-delete-modal-box {
  max-width: 500px;
}

.owner-danger-chip {
  color: #ffb8b8;
  border-color: rgba(229, 85, 85, 0.55);
  background: rgba(229, 85, 85, 0.16);
}

.btn-danger {
  border: 1px solid rgba(229, 85, 85, 0.7);
  border-radius: 0.95rem;
  padding: 0.72rem 1rem;
  color: #ffe6e6;
  background: linear-gradient(145deg, #d75050, #b33a3a);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.btn-danger:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-danger:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

@media (max-width: 768px) {
  .barber-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Dashboard colaborador: foto + servicos ───────── */
.profile-photo-panel {
  display: grid;
  gap: 0.9rem;
}

.profile-photo-preview-wrap {
  width: 8rem;
  height: 8rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.05);
}

.profile-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-photo-remove {
  color: #ffd2d2;
  border-color: rgba(229, 85, 85, 0.45);
  background: rgba(229, 85, 85, 0.12);
}

.services-editor-panel {
  display: grid;
  gap: 1rem;
}

.services-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.services-editor-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.services-editor-text {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.services-editor-list {
  display: grid;
  gap: 0.8rem;
}

.service-editor-item {
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem;
}

.service-editor-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: center;
}

.price-input-wrap {
  position: relative;
}

.price-prefix {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  pointer-events: none;
}

.price-input {
  padding-left: 2.8rem;
}

.service-editor-actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}

.service-icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.service-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.12);
}

.service-icon-btn.is-danger:hover {
  border-color: rgba(229, 85, 85, 0.65);
  background: rgba(229, 85, 85, 0.16);
}

.service-editor-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-editor-name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.service-editor-price {
  margin: 0.28rem 0 0;
  font-size: 0.84rem;
  color: var(--gold);
  font-weight: 700;
}

.service-editor-hint {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.cropper-modal-box {
  max-width: 680px;
}

.cropper-stage {
  border: 1px solid var(--panel-border);
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  min-height: 320px;
}

.cropper-stage img {
  display: block;
  max-width: 100%;
}

@media (max-width: 768px) {
  .services-editor-header,
  .service-editor-summary,
  .service-editor-grid {
    grid-template-columns: 1fr;
  }

  .service-editor-actions,
  .profile-photo-actions {
    justify-content: flex-start;
  }

  .cropper-stage {
    min-height: 240px;
  }
}


/* ══════════════════════════════════════════════════
   PORTFÓLIO GRID — Seção "Nossos Trabalhos"

   Layout:
     Desktop  → 3 colunas
     Tablet   → 2 colunas
     Mobile   → 2 colunas (compacto)

   Cada item é quadrado (aspect-ratio: 1/1) com bordas
   arredondadas de 24px, alinhado com o design premium.
   O efeito hover faz zoom suave na imagem sem mover o card.
══════════════════════════════════════════════════ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

/* Card individual do portfólio — o overflow:hidden garante
   que o zoom da imagem não vaze para fora do card. */
.portfolio-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;           /* 24px arredondado */
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  cursor: pointer;
}

/* Imagem dentro do card:
   - object-fit: cover  → preenche sem distorcer
   - transition         → zoom suave no hover  */
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 380ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efeito zoom ao passar o mouse */
.portfolio-item:hover img {
  transform: scale(1.08);
}

/* Camada de descrição — aparece no hover com fade */
.portfolio-item-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 280ms ease;
}

.portfolio-item:hover .portfolio-item-caption {
  opacity: 1;
}

.portfolio-item-caption p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* Estado vazio do grid */
.portfolio-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--panel-border);
  border-radius: 1.5rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* ── Logo da Barbearia ───────────────────────────────
   Exibido no header do dashboard e da página do cliente.
   O container mantém proporção circular fixa.
────────────────────────────────────────────────────── */

/* Área clicável de upload no dashboard */
.logo-upload-area {
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  border: 2px dashed var(--panel-border);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 200ms ease;
  flex-shrink: 0;
}

.logo-upload-area:hover {
  border-color: rgba(212, 175, 55, 0.6);
}

.logo-upload-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-upload-hint {
  font-size: 0.62rem;
  color: var(--text-soft);
  text-align: center;
  padding: 0.4rem;
  line-height: 1.35;
}

/* ── Upload de portfólio no dashboard ──────────────── */
.portfolio-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px dashed rgba(212, 175, 55, 0.45);
  border-radius: 1rem;
  padding: 0.75rem 1.2rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.portfolio-upload-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.7);
}

