/* ============================================================
   style.css — Estilos globais do site Ju Rosa Salão
   ============================================================ */

/* ─── Variáveis de design ─── */
:root {
  /* Paleta de cores — Rosa sofisticado */
  --bg:            #F5E8F0;      /* Fundo principal — blush suave */
  --bg-alt:        #EDD8E6;      /* Fundo alternativo — blush médio */
  --surface:       #FFFFFF;      /* Superfície de cards — branco puro */
  --primary:       #C05275;      /* Rosa principal (dusty rose) */
  --primary-dark:  #9C4063;      /* Rosa escuro (hover) */
  --primary-light: #F2CCDC;      /* Rosa claro — chips, highlights */
  --primary-mid:   #D8A0BA;      /* Rosa médio — gradientes, acentos */
  --primary-xlight:#FAF2F6;      /* Rosa muito claro — hover surfaces */
  --footer-bg:     #C47898;      /* Fundo do footer */
  --footer-text:   #FAF0F5;      /* Texto do footer */
  --text:          #1C191A;      /* Texto principal */
  --text-muted:    #6A4E59;      /* Texto secundário */
  --border:        #D8BACA;      /* Bordas */
  --success:       #6E9B72;      /* Verde suave */
  --success-bg:    #EEF5EE;
  --error:         #B85C6B;      /* Rosa escuro (erro) */
  --error-bg:      #FAE8EC;
  --warning:       #C4945A;      /* Âmbar */
  --warning-bg:    #FBF2E0;

  /* Tipografia */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Espaçamentos */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Bordas arredondadas */
  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   18px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 1px 4px rgba(160,80,100,0.12), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(160,80,100,0.16), 0 2px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 36px rgba(160,80,100,0.20), 0 4px 10px rgba(0,0,0,0.08);

  /* Transição padrão */
  --transition: all 0.25s ease;
}

/* ─── Modo escuro ─── */
[data-theme="dark"] {
  --bg:            #1C1118;
  --bg-alt:        #251620;
  --surface:       #2E1A26;
  --primary:       #D4728A;
  --primary-dark:  #E899AE;
  --primary-light: #3D1F2E;
  --text:          #F2E8EC;
  --text-muted:    #B08898;
  --border:        #4A2538;
  --success:       #7AAD7E;
  --success-bg:    #162018;
  --error:         #D4728A;
  --error-bg:      #2E1A26;
  --warning:       #C4945A;
  --warning-bg:    #281E0E;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.6);
}

[data-theme="dark"] .hero,
[data-theme="dark"] .meus-ags-hero {
  background: linear-gradient(145deg, #2A1520 0%, #1C1118 55%, #241528 100%);
}

[data-theme="dark"] .site-footer {
  background: #1A0E14;
  color: #D4A0B8;
}
[data-theme="dark"] .footer-logo { color: var(--primary); }
[data-theme="dark"] .footer-instagram a { color: var(--primary); border-color: var(--primary); }
[data-theme="dark"] .footer-instagram a:hover { background: var(--primary); color: #1C1118; }
[data-theme="dark"] .footer-copy { opacity: 0.5; }

[data-theme="dark"] .site-header {
  background: rgba(28, 17, 24, 0.92);
  border-bottom-color: #4A2538;
}

[data-theme="dark"] .calendario-inline,
[data-theme="dark"] .btn-servico,
[data-theme="dark"] .form-agendamento-card,
[data-theme="dark"] .login-card,
[data-theme="dark"] .modal-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 6px 16px rgba(0,0,0,0.3);
}
[data-theme="dark"] .modal-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 100%);
}
[data-theme="dark"] .modal-servico-banner {
  background: linear-gradient(140deg, #C06080 0%, #9C4063 65%, #7A2E4A 100%);
}
[data-theme="dark"] .modal-servico-meta-item {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--border);
}

[data-theme="dark"] .cal-mes-label,
[data-theme="dark"] .cal-btn-nav { color: var(--primary); }
[data-theme="dark"] .cal-btn-nav:hover:not(:disabled) { background: var(--primary-light); }
[data-theme="dark"] .cal-dia-label { color: var(--primary); opacity: 0.6; }
[data-theme="dark"] .cal-dia.hoje { border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .cal-dia.selecionado { background: var(--primary) !important; color: #fff !important; }
[data-theme="dark"] .cal-dia:not(.passado):not(.vazio):hover { background: var(--primary-light); color: var(--primary); }

[data-theme="dark"] .btn-servico { color: var(--text); }
[data-theme="dark"] .btn-servico-nome { color: var(--primary); }
[data-theme="dark"] .btn-servico-duracao { color: var(--text-muted); }
[data-theme="dark"] .btn-servico:hover { background: var(--primary-light); border-color: var(--primary); }
[data-theme="dark"] .btn-servico.selecionado { background: var(--primary-light); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,114,138,0.2); }

[data-theme="dark"] .user-dropdown-menu { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .user-dropdown-header { background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 100%); border-color: var(--border); }
[data-theme="dark"] .user-dropdown-btn { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .user-dropdown-btn.aberto { border-color: var(--primary); }
[data-theme="dark"] .user-dropdown-item:hover { background: var(--bg); color: var(--text); }
[data-theme="dark"] .user-dropdown-item.sair:hover { background: var(--bg); color: var(--text); }

[data-theme="dark"] .card-meu-ag,
[data-theme="dark"] .card-servico { background: var(--surface); border-color: var(--border); }

[data-theme="dark"] .resumo-servicos-texto { background: var(--primary-light); color: var(--primary-dark); }

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--bg-alt) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* ─── Fix global: previne scroll horizontal em qualquer viewport ─── */
html, body { overflow-x: hidden; max-width: 100%; }

/* ─── Reset e Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.hidden { display: none !important; }

/* ─── Tipografia ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.divisor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}
.divisor::before,
.divisor::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--primary);
  opacity: 0.5;
}

/* ─── Botões ─── */
.btn-primario {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(196, 120, 143, 0.3);
}
.btn-primario:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 120, 143, 0.4);
  color: #fff;
}
.btn-primario:active { transform: translateY(0); }
.btn-primario:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secundario {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}
.btn-secundario:hover {
  background: var(--primary);
  color: #fff;
}

/* ─── Badges de status ─── */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}
.status-pendente   { background: var(--warning-bg);  color: var(--warning); }
.status-confirmado { background: var(--success-bg);  color: var(--success); }
.status-cancelado  { background: var(--error-bg);    color: var(--error); }
.status-reagendado { background: #FFF3E0;             color: #E67E22; }

/* ─── Formulários ─── */
.form-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
  font-family: 'Nunito', var(--font-body), sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.97rem;
  color: #c9a0b0;
  letter-spacing: 0.01em;
  opacity: 1;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C4788F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Placeholder state — opção vazia selecionada */
.form-group select:invalid,
.form-group select.vazio {
  color: #c9a0b0;
  font-family: 'Nunito', var(--font-body), sans-serif;
  font-style: italic;
  font-weight: 400;
}
.form-group select option {
  color: var(--text);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
}

/* Input de data com ícone de calendário */
.form-group input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C4788F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.8rem;
}
/* Esconde o ícone nativo do browser (Chrome/Edge) e usa o nosso */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.01;
  width: 100%;
  position: absolute;
  left: 0;
  cursor: pointer;
}
.form-group input[type="date"]::-webkit-inner-spin-button { display: none; }

/* Foco colorido com rosa */
.form-group input:focus,
.form-group input[type="date"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,82,117,0.12);
}

/* ─── Calendário customizado ─── */
#calendario { padding: 10px 12px 12px; }
.cal-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-mes-label { font-size: 13px; font-weight: 600; color: var(--primary); }
.cal-btn-nav { background: none; border: none; cursor: pointer; color: var(--primary); font-size: 18px; padding: 2px 8px; border-radius: 6px; line-height: 1; transition: background .15s; }
.cal-btn-nav:hover:not(:disabled) { background: var(--primary-light); }
.cal-btn-nav:disabled { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dia-label { text-align: center; font-size: 10px; font-weight: 600; color: var(--primary-mid); padding: 4px 0; }
.cal-dia { text-align: center; font-size: 13px; padding: 6px 2px; border-radius: 6px; cursor: pointer; transition: background .15s, color .15s; }
.cal-dia:not(.passado):not(.vazio):hover { background: var(--primary-light); color: var(--primary); }
.cal-dia.hoje { border: 1.5px solid var(--border); color: var(--primary); font-weight: 600; }
.cal-dia.selecionado { background: var(--primary) !important; color: #fff !important; font-weight: 600; }
.cal-dia.passado { color: var(--border); cursor: default; }
.cal-dia.vazio { cursor: default; }

/* ─── Resumo de serviços selecionados ─── */
.resumo-servicos {
  margin-top: 10px;
  min-height: 24px;
}
.resumo-servicos-texto {
  font-size: 13px;
  color: var(--primary-dark);
  font-family: var(--font-body);
  background: var(--primary-light);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
}

/* ─── Botões de seleção de serviço ─── */
.servico-botoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
}
.btn-servico {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 4px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: all 0.22s ease;
}
.btn-servico:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 6px 20px rgba(192,82,117,0.14);
  transform: translateY(-2px);
}
.btn-servico.selecionado {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--primary-light) 100%);
  box-shadow: 0 6px 20px rgba(192,82,117,0.2), 0 0 0 3px rgba(192,82,117,0.12);
}
.btn-servico.selecionado::after {
  content: '✓';
  position: absolute;
  top: 9px;
  right: 9px;
  width: 19px;
  height: 19px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-servico-nome {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.3;
}
.btn-servico-duracao {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* ─── Calendário inline ─── */
.calendario-inline {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 4px 4px 8px;
}

.cal-dia {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}
.cal-dia:not(.passado):not(.vazio):hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: scale(1.1);
}
.cal-dia.hoje {
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}
.cal-dia.selecionado {
  background: linear-gradient(135deg, var(--primary), #d4889e);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(192,82,117,0.4);
  transform: scale(1.05);
}
.cal-dia.passado {
  color: #ddd;
  cursor: default;
}
.cal-dia.vazio { pointer-events: none; }

/* ─── Mensagens de estado ─── */
.carregando, .sem-dados, .erro-carregamento {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.alerta-sucesso {
  background: var(--success-bg);
  color: var(--success);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--success);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

.alerta-erro {
  background: var(--error-bg);
  color: var(--error);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--error);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease;
}

/* ─── Toast notifications ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(2rem);
  background: var(--text);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast-visivel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-sucesso { background: var(--success); }
.toast-erro    { background: var(--error); }
.toast-aviso   { background: var(--warning); }

/* ─── Animações ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes modalEntrar {
  from { opacity: 0; transform: translateY(36px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.8); }
  70%  { transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animar { animation: fadeUp 0.5s ease both; }


/* ─── Abas de autenticação (auth.html) ─── */
.auth-tabs {
  display: flex;
  background: var(--primary-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  padding: 3px;
  gap: 3px;
}

.auth-tab {
  flex: 1;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.auth-tab.ativo {
  background: linear-gradient(135deg, var(--primary) 0%, #d4889e 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(192,82,117,0.3);
}

.auth-campos { animation: fadeIn 0.25s ease both; }

.input-dica {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.input-senha-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-senha-wrapper input {
  flex: 1;
  padding-right: 2.8rem;
}
.btn-ver-senha {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.btn-ver-senha:hover { color: var(--primary); }

.auth-esqueci-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.auth-trocar {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.auth-trocar-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-trocar-link:hover { color: var(--primary-dark); }

.auth-sucesso {
  background: var(--success-bg) !important;
  color: var(--success) !important;
  border-left-color: var(--success) !important;
}

/* ─── Header auth-aware ─── */
.header-auth { display: flex; align-items: center; }

/* ─── Dropdown do usuário ─── */
.user-dropdown { position: relative; }

.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.15rem 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-dark);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(192,82,117,0.12);
}
.user-dropdown-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(192,82,117,0.22);
  transform: translateY(-1px);
}
.user-dropdown-btn.aberto {
  background: #fff;
  border-color: var(--primary);
}

.user-dropdown-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #e8a0b4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
}

.user-dropdown-arrow {
  font-size: 0.6rem;
  color: var(--primary);
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s ease;
  margin-left: 0.1rem;
}
.user-dropdown-btn.aberto .user-dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(160,80,100,0.2), 0 4px 16px rgba(0,0,0,0.08);
  min-width: 285px;
  overflow: hidden;
  z-index: 500;
  animation: dropdownOpen 0.2s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes dropdownOpen {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}
@keyframes dropdownOpenMobile {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.user-dropdown-header {
  padding: 1.4rem 1.3rem 1.1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}
.user-dropdown-header::after {
  content: '✦';
  position: absolute;
  right: 0.8rem;
  bottom: -0.6rem;
  font-size: 4.5rem;
  color: var(--primary);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.user-dropdown-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #e8a0b4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(192,82,117,0.35);
  border: 2px solid rgba(255,255,255,0.7);
}

.user-dropdown-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.user-dropdown-header-nome {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.01em;
}

.user-dropdown-header-sub {
  font-size: 0.73rem;
  color: var(--primary);
  opacity: 0.75;
  margin-top: 0.15rem;
}

.user-dropdown-fechar {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: calc(1rem + 3px);
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  line-height: 1;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: calc(-0.2rem + 5px);
}
.user-dropdown-fechar:hover { color: var(--primary-dark); }

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.user-dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.user-dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding-left: 1.6rem;
}
.user-dropdown-item:hover .user-dropdown-item-icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(192,82,117,0.3);
}
.user-dropdown-item.sair {
  color: var(--error);
}
.user-dropdown-item.sair .user-dropdown-item-icon {
  background: var(--error-bg);
  color: var(--error);
}
.user-dropdown-item.sair:hover {
  background: var(--error-bg);
  color: var(--error);
  padding-left: 1.6rem;
}
.user-dropdown-item.sair:hover .user-dropdown-item-icon {
  background: var(--error);
  color: #fff;
  box-shadow: 0 3px 10px rgba(184,92,107,0.3);
}

.user-dropdown-tema {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  cursor: default;
}
.user-dropdown-tema > span:not(.user-dropdown-item-icon) { flex: 1; }
.user-dropdown-tema:hover { background: none !important; color: var(--text) !important; padding-left: 1.3rem !important; }
.user-dropdown-tema:hover .user-dropdown-item-icon { background: var(--primary-light) !important; color: var(--primary-dark) !important; box-shadow: none !important; }

.toggle-tema {
  width: 36px;
  height: 20px;
  background: var(--border);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
  padding: 0;
}
.toggle-tema.ativo { background: var(--primary); }
.toggle-tema-bolinha {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  display: block;
}
.toggle-tema.ativo .toggle-tema-bolinha { transform: translateX(16px); }

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0 1rem;
}

/* ─── Prompt de login (no lugar do formulário) ─── */
.login-prompt-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeUp 0.4s ease both;
}

.login-prompt-icone {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.login-prompt-titulo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.login-prompt-texto {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================================================
   PÁGINA PÚBLICA (index.html)
   ============================================================== */

/* ─── Header ─── */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--border);
  padding: var(--space-lg) 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  max-width: 100%;
  padding: 0;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-inner nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-nome {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
}
.logo-nome span { color: var(--primary); }

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: -2px;
}

.header-nav {
  display: flex;
  gap: 5rem;
  list-style: none;
}

.header-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition);
}
.header-nav a:hover { color: var(--primary); }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(145deg, var(--primary-mid) 0%, var(--bg) 55%, var(--primary) 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '✦';
  position: absolute;
  top: 2rem;
  left: 5%;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.07;
}
.hero::after {
  content: '✦';
  position: absolute;
  bottom: 2rem;
  right: 5%;
  font-size: 6rem;
  color: var(--primary);
  opacity: 0.07;
}

.hero-pre {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.hero-titulo {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.hero-acoes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-ou {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.hero-subtitulo {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

/* ─── Offset do scroll para compensar o header sticky ─── */
#servicos, #agendar, #sobre {
  scroll-margin-top: 90px;
}

/* ─── Seção de serviços ─── */
.secao-servicos {
  padding: var(--space-3xl) 0;
  background: var(--surface);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.card-servico {
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--primary-light) 55%, var(--primary-mid) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: var(--transition);
  animation: fadeUp 0.5s ease both;
  cursor: pointer;
}

.card-servico:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-servico-icone {
  font-size: 1.2rem;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: var(--space-md);
}

.card-servico-nome {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.card-servico-duracao {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.card-servico-preco {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
}

/* ─── Seção de agendamento ─── */
.secao-agendamento {
  padding: var(--space-3xl) 0;
  background: var(--bg-alt);
}

/* ─── Seção Sobre ─── */
.secao-sobre {
  padding: var(--space-xl) 0 var(--space-3xl);
  background: var(--bg);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-top: var(--space-2xl);
}

.sobre-foto-wrap {
  position: relative;
}

.sobre-foto {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 17%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.sobre-foto-wrap::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 2px solid var(--primary);
  border-radius: 28px;
  opacity: 0.25;
  pointer-events: none;
}

.sobre-pre {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.sobre-nome {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.sobre-texto {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.sobre-diferenciais {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.sobre-diferenciais li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.95rem;
  color: var(--text);
}

.sobre-diff-icone {
  color: var(--primary);
  font-size: 0.7rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .sobre-foto {
    aspect-ratio: 4 / 3;
    max-width: 400px;
    margin: 0 auto;
  }
}

.form-agendamento-card {
  background: linear-gradient(160deg, #fff 0%, #FAF0F4 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
  box-shadow: 0 24px 64px rgba(160,80,100,0.11), 0 4px 16px rgba(0,0,0,0.04);
  max-width: 620px;
  margin: 0 auto;
  animation: fadeUp 0.5s ease both;
}

/* ─── Passos de agendamento ─── */
.passo-ag {
  margin-bottom: var(--space-lg);
}
#passo-data {
  position: relative;
  z-index: 200;
}
.passo-ag.oculto-passo {
  display: none;
}
.passo-ag.entrando {
  animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) both;
}

.passo-ag-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
}
.passo-ag-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.passo-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(192,82,117,0.32);
}
.passo-texto {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
}
/* Remove margem inferior do form-group dentro dos passos */
.passo-ag .form-group { margin-bottom: 0; }

/* Seletor de horários */
.horarios-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.horarios-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: var(--space-md);
}

.btn-horario {
  padding: 0.65rem 0.4rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-horario.disponivel:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192,82,117,0.18);
}

.btn-horario.selecionado {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(192,82,117,0.42);
  transform: scale(1.05);
}

.btn-horario.indisponivel {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: line-through;
  background: var(--bg);
}

.aviso-dia-fechado {
  background: var(--warning-bg);
  color: var(--warning);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--warning);
  font-size: 0.9rem;
  line-height: 1.6;
}
.aviso-dia-fechado span {
  display: block;
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.carregando-horarios {
  text-align: center;
  padding: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── Tela de confirmação ─── */
.confirmacao-wrap {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.5s ease both;
}

.confirmacao-icone {
  width: 72px;
  height: 72px;
  background: var(--success);
  color: #fff;
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 8px 24px rgba(110, 155, 114, 0.30);
}

.confirmacao-titulo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.confirmacao-subtitulo {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.confirmacao-detalhes {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  text-align: left;
}

.detalhe-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.detalhe-item:last-child { border-bottom: none; }

.detalhe-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detalhe-valor {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  text-align: right;
  max-width: 65%;
}

.confirmacao-aviso {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: var(--warning-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--warning);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--space-2xl) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--footer-text);
  letter-spacing: 0.08em;
}

.footer-info {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.footer-instagram {
  display: flex;
  gap: var(--space-md);
}
.footer-instagram a {
  font-size: 0.85rem;
  color: var(--footer-text);
  letter-spacing: 0.06em;
  border: 1.5px solid rgba(250,240,245,0.5);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-instagram a:hover {
  background: var(--footer-text);
  color: var(--footer-bg);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: var(--space-sm);
}


/* ==============================================================
   MEUS AGENDAMENTOS (meus-agendamentos.html)
   ============================================================== */



.meus-ags-hero {
  background: linear-gradient(145deg, var(--primary-light) 0%, var(--bg) 55%, var(--primary-mid) 100%);
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.meus-ags-titulo {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.meus-ags-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.meus-ags-main {
  padding: var(--space-2xl) 0 var(--space-3xl);
  min-height: 60vh;
}

.meus-ags-container {
  max-width: 680px;
}

.card-meu-ag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: var(--transition);
  animation: fadeUp 0.4s ease both;
  border-left: 4px solid var(--primary);
}
.card-meu-ag:hover { box-shadow: var(--shadow-md); }

.meu-ag-data-bloco {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  min-width: 64px;
  text-align: center;
  flex-shrink: 0;
}

.meu-ag-dia-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.meu-ag-mes {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-top: 2px;
}

.meu-ag-info { flex: 1; }

.meu-ag-servico {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.meu-ag-detalhes {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.meu-ag-acoes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.sem-agendamentos {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--text-muted);
}

.sem-agendamentos-icone {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.sem-agendamentos h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.sem-agendamentos p {
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

/* ==============================================================
   PAINEL ADMINISTRATIVO (painel.html)
   ============================================================== */

/* ─── Tela de login ─── */
.tela-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--bg) 0%, var(--bg-alt) 55%, var(--primary-mid) 100%);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.tela-login::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,82,117,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.tela-login::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,82,117,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.login-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: 0 20px 60px rgba(160,80,100,0.13), 0 4px 16px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 390px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-card::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-mid));
  border-radius: 2px;
  margin: 0 auto var(--space-xl);
}

.login-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
}
.login-logo span { color: var(--primary); }

.login-sub {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}

.login-card .form-group { text-align: left; }

.erro-login {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(184,92,107,0.2);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-bottom: var(--space-md);
  display: none;
}

/* ─── Painel principal ─── */
.painel-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.painel-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.painel-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.painel-logo-nome {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
}

.painel-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.btn-logout {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-logout:hover {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}

/* ─── Navegação por abas (painel) ─── */
.painel-tabs {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  gap: 0;
}

.tab-btn {
  flex: 1;
  white-space: nowrap;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: var(--space-md) var(--space-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.ativo {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: linear-gradient(180deg, transparent 60%, var(--primary-light) 100%);
}

/* ─── Conteúdo das abas ─── */
#painel-principal {
  background: var(--bg);
  min-height: 100vh;
}

.painel-conteudo {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

.aba-titulo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

/* ─── Navegação de data ─── */
.nav-data {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.nav-data-titulo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary-dark);
  font-weight: 500;
}

.btn-nav-data {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.btn-nav-data:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-hoje-wrapper {
  position: relative;
}

.btn-hoje {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.btn-hoje:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.hoje-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  overflow: hidden;
  z-index: 200;
  animation: dropdownOpen 0.18s cubic-bezier(0.34,1.56,0.64,1) both;
}
.hoje-dropdown.hidden { display: none; }

.hoje-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.hoje-dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ─── Agrupamento por dia (visão semana/mês/ano) ─── */
.grupo-dia {
  margin-bottom: var(--space-xl);
}
.grupo-dia-header {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border-left: 3px solid var(--primary);
}

/* ─── Banner: dia inteiro bloqueado ─── */
.banner-dia-bloqueado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: var(--warning-bg);
  border: 1.5px solid var(--warning);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--warning);
}
.banner-desfazer {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid var(--warning);
  border-radius: var(--radius-full);
  color: var(--warning);
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.banner-desfazer:hover { background: var(--warning); color: #fff; }

/* ─── Aba Dados ─── */
.dados-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}
.dados-hero-pre {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.3rem;
}
.dados-hero-titulo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
}
.dados-hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.dados-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dados-hero-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}
.dados-hero-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}
.dados-hero-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* Semana strip */
.dados-semana-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
  flex-wrap: wrap;
}
.dados-semana-esq {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.dados-semana-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.dados-semana-periodo {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.dados-semana-dir {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.dados-semana-sep { color: var(--border); }

/* Mês título */
.dados-mes-titulo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}
.dados-mes-titulo--grande {
  font-size: 1.6rem;
}

.dados-grid--destaques .dado-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  margin-bottom: 0.25rem;
}
.dados-grid--destaques .dado-valor--sm {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Grupos passado / futuro */
.dados-mes-grupos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.dados-grupo { display: flex; flex-direction: column; gap: var(--space-sm); }
.dados-grupo-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 0.25rem;
}
.dados-grupo--historico .dados-grupo-header {
  background: var(--bg-alt);
  color: var(--text-muted);
}
.dados-grupo--futuro .dados-grupo-header {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Receita banner */
.receita-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.receita-banner-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}
.receita-banner-valor {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}

/* Clicável */
.dados-hero--clicavel { cursor: pointer; transition: filter 0.2s ease, transform 0.2s ease; }
.dados-hero--clicavel:hover { filter: brightness(0.96); transform: translateY(-1px); }
.dados-hero-hint {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.3rem;
  letter-spacing: 0.06em;
}

.dados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}
.dados-grid--destaques {
  grid-template-columns: 1fr 1fr;
}

.dado-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.dado-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.dado-card--destaque {
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--primary-light) 100%);
  border-color: var(--primary-light);
}
.dado-card--horizontal {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.dado-card-icone {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  line-height: 1;
}
.dado-card--horizontal .dado-card-icone {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dado-card-body { flex: 1; }
.dado-valor {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.dado-valor--sm {
  font-size: 0.98rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.4;
}
.dado-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.dados-aviso {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: var(--space-xl);
  opacity: 0.6;
  text-align: center;
}

/* Card de agendamento em destaque (mais próximo) */
.card-ag-destaque {
  padding: var(--space-xl);
  border-left-width: 6px !important;
}
.card-ag-destaque .ag-horario {
  font-size: 1.9rem;
  padding: 0.65rem 1rem;
  min-width: 88px;
}
.card-ag-destaque .ag-nome {
  font-size: 1.05rem;
}
.card-ag-destaque .ag-servico {
  font-size: 0.92rem;
}

/* Horário já bloqueado no grid de bloqueio */
/* Painel de bloqueio: branco = não selecionado, rosa escuro = selecionado */
#horarios-bloquear .btn-horario.disponivel {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  transform: none;
  box-shadow: none;
}

#horarios-bloquear .btn-horario.disponivel:active {
  background: var(--primary-light);
  border-color: var(--primary-mid);
  transform: scale(0.96);
}

#horarios-bloquear .btn-horario.selecionado {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.btn-horario-bloqueado {
  padding: 0.65rem 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--error);
  background: var(--error-bg);
  color: var(--error);
  cursor: not-allowed;
  opacity: 0.7;
}

/* ─── Data no item de bloqueio ─── */
.bloqueio-data {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}

/* ─── Cards de agendamento ─── */
.card-agendamento {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all 0.22s ease;
  animation: fadeIn 0.3s ease both;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.card-agendamento::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
}
.card-agendamento:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-agendamento.ag-confirmado::before  { background: var(--success); }
.card-agendamento.ag-pendente::before    { background: var(--warning); }
.card-agendamento.ag-reagendado::before  { background: #E67E22; }
.card-agendamento.ag-cancelado {
  opacity: 0.55;
}
.card-agendamento.ag-cancelado::before   { background: var(--error); }

.ag-horario {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  min-width: 72px;
  text-align: center;
  flex-shrink: 0;
}

.ag-info { flex: 1; }

.ag-nome {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 3px;
}

.ag-servico {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ag-whatsapp a {
  font-size: 0.85rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.ag-whatsapp a:hover { color: var(--primary-dark); }

.ag-acoes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.btn-cancelar, .btn-remover {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cancelar, .btn-remover {
  color: #fff;
  border-color: var(--error);
  background: var(--error);
}
.btn-cancelar:hover, .btn-remover:hover { background: #9a3a48; border-color: #9a3a48; }

.btn-excluir {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1.5px solid var(--error);
  color: var(--error);
  background: var(--error-bg);
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.btn-excluir:hover {
  background: var(--error);
  color: #fff;
}

.btn-reagendar {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  background: var(--surface);
}
.btn-reagendar:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); }

/* ─── Modal de reagendamento ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 15, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.modal-overlay.hidden { display: none; }

.modal-card {
  background: var(--surface);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(160,80,100,0.18), 0 6px 16px rgba(0,0,0,0.08);
  animation: modalEntrar 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 100%);
}

.modal-titulo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
}

.modal-fechar {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.modal-fechar:hover { background: var(--bg-alt); color: var(--text); }

.modal-servico-label {
  padding: var(--space-md) var(--space-xl);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
}

.modal-corpo { padding: var(--space-lg) var(--space-xl); }

/* ─── Modal de serviço — banner ─── */
.modal-card--servico {
  border-top: none;
}

.modal-servico-banner {
  position: relative;
  background: linear-gradient(140deg, #E899AE 0%, var(--primary) 65%, var(--primary-dark) 100%);
  padding: 2.75rem var(--space-xl) 2rem;
  text-align: center;
  overflow: hidden;
}
.modal-servico-banner::before {
  content: '';
  position: absolute;
  top: -55px; right: -55px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  pointer-events: none;
}
.modal-servico-banner::after {
  content: '';
  position: absolute;
  bottom: -45px; left: -45px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.modal-servico-banner-orns {
  position: absolute;
  top: var(--space-md);
  left: var(--space-xl);
  display: flex;
  gap: 0.45rem;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.1em;
}

.modal-servico-banner-icone {
  font-size: 2.2rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.5em;
  margin-bottom: 0.65rem;
  position: relative;
}

.modal-servico-banner-titulo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.18);
  position: relative;
  margin: 0;
  line-height: 1.25;
}

.modal-fechar--banner {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: rgba(255,255,255,0.75) !important;
  background: rgba(255,255,255,0.13) !important;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.95rem;
  z-index: 1;
  transition: var(--transition);
}
.modal-fechar--banner:hover {
  background: rgba(255,255,255,0.24) !important;
  color: #fff !important;
}

/* ─── Modal de serviço — corpo ─── */
.modal-servico-meta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.modal-servico-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.modal-servico-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.modal-secao-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.modal-horarios { margin-top: var(--space-md); }

.modal-cancelar-aviso {
  font-size: 0.9rem;
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid var(--error);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.modal-confirmar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.modal-confirmar-itens {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal-confirmar-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}
.modal-confirmar-item:last-child { border-bottom: none; }

.modal-confirmar-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-confirmar-valor {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.modal-acoes {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

/* ─── Seção de bloqueio de horários ─── */
.bloquear-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
}

.bloquear-form-card,
.bloquear-lista-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.card-titulo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-dark);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.item-bloqueio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: var(--space-sm);
  animation: fadeIn 0.3s ease both;
}

.bloqueio-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bloqueio-horario {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.bloqueio-motivo {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sem-dados-pequeno {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: var(--space-md);
}

/* ─── Header da lista de bloqueios (título + botão remover todos) ─── */
.bloquear-lista-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.btn-remover-todos {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--error);
  background: var(--error-bg);
  border: 1.5px solid var(--error);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-remover-todos:hover {
  background: var(--error);
  color: #fff;
}


/* ==============================================================
   RESPONSIVIDADE
   ============================================================== */

/* ── Nav: comprime e deixa de ser absolute a partir de 1100px ── */
@media (max-width: 1100px) {
  .header-inner nav { position: static; transform: none; }
  .header-nav { gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
  .header-nav a { font-size: 0.82rem; letter-spacing: 0.04em; }
}
@media (max-width: 960px) {
  /* Header passa a empilhar verticalmente a partir daqui */
  .site-header { padding: var(--space-md) var(--space-lg); }
  .header-inner { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .header-inner nav { position: static; transform: none; }
  .header-nav { gap: 2rem; flex-wrap: wrap; justify-content: center; }
  .header-nav a { font-size: 0.8rem; letter-spacing: 0.06em; }
  .header-auth { justify-content: center; }
  /* Botões de serviço: 2 colunas já em 960px */
  .servico-botoes-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-servico { padding: 11px 12px; }
  .btn-servico-nome { font-size: 0.83rem; }
  .btn-servico-duracao { font-size: 0.71rem; }
  /* Dropdown do usuário */
  .user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 0;
    width: 220px;
    max-width: 88vw;
    animation: dropdownOpenMobile 0.2s ease both;
  }
  .user-dropdown-header { padding: 0.9rem 1rem 0.75rem; gap: 0.6rem; }
  .user-dropdown-header-avatar { width: 34px; height: 34px; font-size: 0.8rem; }
  .user-dropdown-header-nome { font-size: 0.95rem; }
  .user-dropdown-header-sub { font-size: 0.65rem; }
  .user-dropdown-fechar { font-size: 0.85rem; }
  .user-dropdown-item { padding: 0.6rem 1rem; font-size: 0.82rem; gap: 0.55rem; }
  .user-dropdown-item-icon { width: 24px; height: 24px; font-size: 0.85rem; }
}

@media (max-width: 768px) {
  /* ── Layout geral ── */
  .container { padding: 0 var(--space-lg); }

  /* ── Header já empilhado desde 960px — ajustes adicionais ── */
  .header-nav { gap: var(--space-xl); }

  /* ── Logo ── */
  .logo-nome { font-size: 1.5rem; }
  .logo-sub { font-size: 0.68rem; }

  /* ── Hero ── */
  .hero { padding: var(--space-2xl) 0; }
  .hero-acoes { flex-direction: column; align-items: stretch; gap: var(--space-md); padding: 0 var(--space-xl); }
  .hero-acoes .btn-primario { text-align: center; }
  .hero-ou { text-align: center; }

  /* ── Seção Sobre ── */
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .sobre-foto {
    aspect-ratio: 4 / 3;
    max-width: 400px;
    margin: 0 auto;
  }

  /* ── Serviços ── */
  .servicos-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .card-servico { padding: var(--space-md) var(--space-sm); }
  .card-servico-icone { font-size: 0.95rem; margin-bottom: var(--space-sm); }
  .card-servico-nome { font-size: 1.1rem; margin-bottom: 4px; }
  .card-servico-duracao { font-size: 0.7rem; margin-bottom: 4px; }
  .card-servico-preco { font-size: 0.75rem; }

  /* ── Formulário de agendamento ── */
  .form-agendamento-card { padding: var(--space-lg); }
  .servico-botoes-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .btn-servico { padding: 9px 8px; min-height: 44px; }
  .btn-servico-nome { font-size: 0.76rem; }
  .btn-servico-duracao { font-size: 0.66rem; }
  .btn-servico-nome { font-size: 0.78rem; }
  .btn-servico-duracao { font-size: 0.68rem; }
  .horarios-grid { grid-template-columns: repeat(3, 1fr); }

  /* Inputs com fonte mínima 16px para evitar zoom no iOS */
  .form-group input[type="text"],
  .form-group input[type="tel"],
  .form-group input[type="date"],
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  /* Botão confirmar agendamento: largura total e altura mínima */
  #btn-agendar,
  .form-agendamento-card .btn-primario[type="submit"] {
    width: 100%;
    min-height: 48px;
  }

  /* ── Painel — abas ── */
  .tab-btn { font-size: 0.76rem; }
  .painel-conteudo { padding: var(--space-lg) var(--space-md); }

  /* ── Painel — navegação de data ── */
  .nav-data { flex-wrap: wrap; justify-content: center; gap: var(--space-sm); padding: var(--space-md); }
  .nav-data-titulo { font-size: 1.1rem; text-align: center; }
  .btn-hoje { font-size: 0.7rem; padding: 0.35rem 0.75rem; }
  .btn-hoje[data-periodo="semana"] { font-size: 0.62rem; letter-spacing: 0.03em; }
  .hoje-dropdown-item { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
  .hoje-dropdown-item:nth-child(2) { font-size: 0.74rem; padding: 0.5rem 0.9rem; }

  /* ── Painel — cards de agendamento ── */
  .card-agendamento { flex-wrap: wrap; gap: var(--space-sm); padding: var(--space-md); }
  .ag-horario { font-size: 1.2rem; padding: 0.4rem 0.7rem; min-width: 60px; flex-shrink: 0; }
  .ag-info { flex: 1 1 calc(100% - 80px); min-width: 0; }
  .ag-acoes { flex: 1 1 100%; flex-direction: row; justify-content: flex-end; align-items: center; gap: var(--space-sm); border-top: 1px solid var(--border); padding-top: var(--space-sm); margin-top: 2px; }
  .btn-cancelar, .btn-remover, .btn-excluir { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.8rem; }
  .ag-nome { font-size: 0.97rem; }
  .ag-servico { font-size: 0.85rem; }
  .ag-whatsapp a { font-size: 0.82rem; }
  .ag-acoes { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; justify-content: flex-end; }
  .card-ag-destaque { padding: var(--space-lg); }
  .card-ag-destaque .ag-horario { font-size: 1.5rem; min-width: 72px; }

  /* ── Painel — bloqueio de horários ── */
  .bloquear-layout { grid-template-columns: 1fr; }
  .bloquear-lista-header { flex-wrap: wrap; gap: var(--space-sm); }
  .btn-remover-todos { width: 100%; justify-content: center; }

  /* ── Dados ── */
  .dados-hero { flex-direction: column; align-items: flex-start; padding: var(--space-lg); }
  .dados-hero-stats { width: 100%; justify-content: space-around; }
  .dados-grid--destaques { grid-template-columns: 1fr; }
  .dados-mes-grupos { grid-template-columns: 1fr; }
  .receita-banner { flex-direction: column; align-items: flex-start; }

  /* ── Modal ── */
  .modal-overlay { padding: var(--space-sm); }
  .modal-card {
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    width: 100%;
  }
  .modal-titulo { font-size: 1.35rem; }
  .modal-corpo { padding: var(--space-md) var(--space-lg); font-size: 0.92rem; }
  .modal-acoes {
    padding: var(--space-md) var(--space-lg);
    flex-wrap: wrap;
    justify-content: stretch;
    flex-direction: column;
    gap: var(--space-sm);
  }
  .modal-acoes .btn-secundario,
  .modal-acoes .btn-primario,
  .modal-acoes .btn-cancelar {
    flex: 1;
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    text-align: center;
  }

  /* ── Meus Agendamentos ── */
  .card-meu-ag { flex-wrap: wrap; padding: var(--space-md); gap: var(--space-md); }
  .meu-ag-acoes { flex-direction: row; flex-wrap: wrap; width: 100%; justify-content: flex-end; }

  /* ── Login ── */
  .login-card { padding: var(--space-xl) var(--space-lg); }

  /* ── Footer ── */
  .site-footer { padding: var(--space-xl) 0; }
}

/* ── Telas muito pequenas (480px e abaixo) ── */
@media (max-width: 480px) {
  /* Layout */
  .container { padding: 0 var(--space-md); }

  /* Header */
  .header-nav { gap: var(--space-lg); }
  .header-nav a { font-size: 0.78rem; letter-spacing: 0.05em; }

  /* Serviços */
  .servicos-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
  .card-servico { padding: 10px 8px; }
  .card-servico-icone { font-size: 0.85rem; margin-bottom: 6px; }
  .card-servico-nome { font-size: 0.95rem; margin-bottom: 2px; }
  .card-servico-duracao { font-size: 0.65rem; margin-bottom: 2px; }
  .card-servico-preco { font-size: 0.7rem; }

  /* Serviços botões no agendamento */
  .servico-botoes-grid { grid-template-columns: 1fr 1fr; gap: 5px; }
  .btn-servico { padding: 7px 6px; min-height: 44px; }
  .btn-servico-nome { font-size: 0.68rem; }
  .btn-servico-duracao { font-size: 0.58rem; }

  /* Horários: 4 colunas no mobile pequeno */
  .horarios-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .btn-horario { font-size: 0.78rem; padding: 0.55rem 0.2rem; }

  /* Botão confirmar agendamento */
  #btn-agendar,
  .form-agendamento-card .btn-primario[type="submit"] {
    width: 100%;
    min-height: 52px;
    font-size: 0.85rem;
  }

  /* Navegação de data */
  .nav-data { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; padding: var(--space-md); }
  .nav-data-titulo { font-size: 1rem; }

  /* Painel tabs */
  .tab-btn { font-size: 0.7rem; letter-spacing: 0.04em; }

  /* Cards agendamento */
  .card-agendamento { padding: var(--space-sm) var(--space-md); gap: 8px; }
  .ag-horario { font-size: 1.1rem; padding: 0.35rem 0.6rem; min-width: 54px; }
  .ag-nome { font-size: 0.9rem; }
  .ag-servico { font-size: 0.8rem; }
  .ag-acoes { gap: 6px; }
  .btn-cancelar, .btn-remover, .btn-excluir { padding: 0.4rem 0.85rem; font-size: 0.76rem; }
  .card-ag-destaque { padding: var(--space-md); }
  .card-ag-destaque .ag-horario { font-size: 1.3rem; min-width: 64px; }
  .grupo-dia-header { font-size: 0.95rem; padding: var(--space-sm) var(--space-md); }

  /* Modal */
  .modal-card {
    max-width: 96vw;
    max-height: 88vh;
    overflow-y: auto;
    width: 100%;
  }
  .modal-titulo { font-size: 1.2rem; }
  .modal-corpo { padding: var(--space-sm) var(--space-md); font-size: 0.88rem; }
  .modal-header { padding: var(--space-sm) var(--space-md); }
  .modal-acoes {
    padding: var(--space-sm) var(--space-md);
    flex-direction: column;
    gap: var(--space-sm);
  }
  .modal-acoes .btn-secundario,
  .modal-acoes .btn-primario,
  .modal-acoes .btn-cancelar {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  /* Dados hero */
  .dados-hero-num { font-size: 1.5rem; }
  .dados-hero-titulo { font-size: 1.2rem; }
  .receita-banner-valor { font-size: 1.4rem; }
}

/* ── iPhone 11 e telas similares (414px) ── */
@media (max-width: 414px) {

  /* Safe area: notch e barra home */
  .painel-header { padding-top: max(1rem, env(safe-area-inset-top)); }
  #painel-principal { padding-bottom: env(safe-area-inset-bottom); }

  /* Header: altura mínima, padding interno garantido */
  .painel-header-inner { min-height: 56px; padding: 0 16px; }
  .painel-logo-nome { font-size: 1.2rem; }
  .btn-logout { min-height: 44px; font-size: 0.78rem; padding: 0 0.9rem; display: inline-flex; align-items: center; }

  /* Abas: legível e altura de toque */
  .tab-btn { font-size: 0.8rem; min-height: 48px; letter-spacing: 0.02em; }

  /* Conteúdo: padding lateral fixo */
  .painel-conteudo { padding: var(--space-md) 16px; }

  /* Navegação de data: setas com área de toque 44×44 */
  .nav-data { padding: 10px 12px; margin-bottom: var(--space-lg); }
  .btn-nav-data { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 1.1rem; }
  .nav-data-titulo { font-size: 0.95rem; }

  /* Dropdown hoje: não transborda e fácil de tocar */
  .hoje-dropdown { max-width: 90vw; right: 0; left: auto; }
  .hoje-dropdown-item { font-size: 0.875rem; padding: 0.7rem 1rem; min-height: 44px; }

  /* Cards de agendamento: textos mínimo 14px */
  .ag-servico { font-size: 0.875rem; }
  .ag-whatsapp a { font-size: 0.875rem; }
  .btn-cancelar, .btn-remover, .btn-excluir { min-height: 48px; font-size: 0.875rem; padding: 0.5rem 1rem; }
  .ag-acoes { gap: 8px; }

  /* Título das abas Bloquear/Dados */
  .aba-titulo { font-size: 1.5rem; margin-bottom: var(--space-lg); }

  /* Modal: tamanho controlado, botões 48px */
  .modal-card { max-width: 94vw; max-height: 82vh; }
  .modal-acoes .btn-secundario,
  .modal-acoes .btn-primario,
  .modal-acoes .btn-cancelar,
  .modal-acoes .btn-excluir { min-height: 48px; font-size: 0.875rem; }
}

/* ── Telas muito estreitas (360px e abaixo) ── */
@media (max-width: 360px) {
  .servico-botoes-grid { gap: 4px; }
  .btn-servico { padding: 6px 5px; min-height: 42px; }
  .btn-servico-nome { font-size: 0.62rem; }
  .btn-servico-duracao { font-size: 0.54rem; }
}

/* ════════════════════════════════════════════════════════════════
   ANIMAÇÕES
   ════════════════════════════════════════════════════════════════ */

/* ── Títulos de seção — animam quando a seção entra na tela ── */
.secao-visivel .section-title {
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0s both;
}
.secao-visivel .section-subtitle {
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.12s both;
}
.secao-visivel .divisor {
  animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.22s both;
}

/* ── Botão Entrar e dropdown — animação ao carregar a página ── */
.header-auth .btn-secundario {
  animation: slideInRight 0.5s cubic-bezier(0.22,1,0.36,1) 0.45s both;
}
.header-auth .user-dropdown {
  animation: slideInRight 0.5s cubic-bezier(0.22,1,0.36,1) 0.45s both;
}

/* ── Hero — entrada escalonada ── */
.hero-pre       { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.hero-titulo    { animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s  both; }
.hero-subtitulo { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.35s both; }
.hero-acoes { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.5s both; }

/* ── Scroll reveal — estado inicial ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}
/* Cancela a animação CSS que disparava imediatamente */
.card-servico.reveal { animation: none; }

/* ── Header — sombra ao rolar ── */
.site-header { transition: box-shadow 0.35s ease; }
.site-header.header-scrolled {
  box-shadow: 0 6px 32px rgba(160,80,100,0.15);
}

/* ── Nav — entrada escalonada ── */
.header-nav li {
  animation: navItemEntrada 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.header-nav li:nth-child(1) { animation-delay: 0.1s; }
.header-nav li:nth-child(2) { animation-delay: 0.2s; }
.header-nav li:nth-child(3) { animation-delay: 0.3s; }
.header-nav li:nth-child(4) { animation-delay: 0.4s; }

@keyframes navItemEntrada {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Nav — sublinhado deslizante ── */
.header-nav a { position: relative; }
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1);
}
.header-nav a:hover::after { width: 100%; }

/* ── Logo — entrada + hover ── */
.logo {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover { transform: translateY(-4px); }

.logo-nome {
  animation: logoNomeEntrada 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.logo-sub {
  animation: logoSubEntrada 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

@keyframes logoEntrada {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes logoNomeEntrada {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes logoSubEntrada {
  from { opacity: 0; letter-spacing: 0.05em; }
  to   { opacity: 1; letter-spacing: 0.18em; }
}

/* ── Botão primário — shimmer ── */
.btn-primario { position: relative; overflow: hidden; }
.btn-primario::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primario:hover::after { left: 160%; }

/* ── Cards de serviço — hover aprimorado ── */
.card-servico {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.card-servico:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(160,80,100,0.13);
  border-color: var(--primary);
}
