/* ======================================================
   AGENDAMENTO ONLINE — style.css
   Mobile-first | Poppins | Tema claro
====================================================== */

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --accent-light: rgba(233, 69, 96, 0.1);
  --accent-dark: #c73652;
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface2: #f1f3f8;
  --border: #e8eaf0;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 2px 16px rgba(26, 26, 46, 0.08);
  --shadow-md: 0 4px 24px rgba(26, 26, 46, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Poppins', sans-serif;
  --max-width: 480px;
}

/* ======================================================
   DARK MODE
====================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #0d0d1a;
  --surface:       #161625;
  --surface2:      #1e1e32;
  --border:        #2a2a44;
  --text:          #f0f0f5;
  --text-secondary:#9ca3af;
  --text-muted:    #8b95a8;
  --shadow:        0 2px 16px rgba(0,0,0,0.4);
  --shadow-md:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.6);
}
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
[data-theme="dark"] .form-select {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .btn-outline,
[data-theme="dark"] a.btn-outline {
  color: var(--text-secondary) !important;
  border-color: var(--border);
}
[data-theme="dark"] .btn-outline:hover,
[data-theme="dark"] a.btn-outline:hover {
  color: var(--text) !important;
  border-color: var(--text-muted);
  background: var(--surface2);
}
[data-theme="dark"] .footer-logo-text            { opacity: 0.9; }
[data-theme="dark"] .footer-logo-text .logo-ph   { color: #a78bfa; }
[data-theme="dark"] .footer-logo-text .logo-booking { color: #38bdf8; }
[data-theme="dark"] .icon-moon { display: none !important; }
[data-theme="dark"] .icon-sun  { display: block !important; }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea { font-family: var(--font); }

/* ======================================================
   LAYOUT WRAPPER
====================================================== */
#app-client, #app-admin {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* ======================================================
   PROGRESS BAR
====================================================== */
.progress-bar-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  padding: 12px 20px 10px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(26,26,46,0.06);
}

.progress-bar {
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
  transition: width var(--transition);
  margin-bottom: 10px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 4px;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 0;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
  border: 2px solid var(--border);
}

.step-dot.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.step-dot.done {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ======================================================
   SCREENS (animação entre steps)
====================================================== */
.screen {
  display: none;
  opacity: 0;
  transform: translateX(24px);
  animation: none;
  padding-bottom: 100px;
}

.screen.active {
  display: block;
  animation: slideIn var(--transition) forwards;
}

.screen.slide-out {
  animation: slideOut var(--transition) forwards;
}

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

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-24px); }
}

/* ======================================================
   HERO (Home)
====================================================== */
.hero {
  position: relative;
  height: 60vh;
  min-height: 320px;
  max-height: 480px;
  overflow: hidden;
  background: var(--primary);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,46,0.2) 0%, rgba(26,26,46,0.85) 100%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 22px;
  font-weight: 300;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  padding: 14px 28px;
}

.home-info {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Modal de vídeo promo */
.modal-video {
  max-width: 480px;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: #000;
}
.btn-video-sound {
  width: 100%;
  padding: 10px 16px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  border: none;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}
.btn-video-sound:hover { background: rgba(0,0,0,0.9); }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Card de sessão do cliente na home */
.session-card-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 4px;
  box-shadow: var(--shadow);
}
.session-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.session-card-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color .2s;
}
.session-card-close:hover { color: var(--text); }
.session-greeting { font-size: 14px; display: block; margin-bottom: 8px; color: var(--text); }
.session-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.session-maps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 0;
  margin-bottom: 8px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.session-maps-btn:hover { background: var(--accent); color: #fff; }

.session-new-btn {
  width: 100%;
  padding: 9px 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.session-new-btn:hover { background: var(--surface-2, rgba(255,255,255,.06)); color: var(--text); }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
}

.info-card svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.info-card-emoji {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.maps-hint {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  opacity: 0.7;
}
#info-card-address:hover .maps-hint {
  opacity: 1;
  color: var(--accent);
}

.info-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.info-card span {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: pre-line;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 0 8px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.payment-method-option:hover {
  border-color: var(--accent);
  background: var(--bg);
}

.payment-method-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.client-suggestion-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 0 2px;
}

.client-suggestion-label {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.client-chip {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  color: var(--text);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.client-chip:hover {
  background: var(--accent);
  color: #fff;
}

/* ======================================================
   STEP HEADER
====================================================== */
.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 16px;
}

.step-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.step-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.btn-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
  color: var(--text);
}

.btn-back:hover { background: var(--border); }

/* ======================================================
   CARDS (Serviços e Profissionais)
====================================================== */
.cards-grid {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.service-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.service-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.service-duration {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

/* Profissionais */
.professionals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.professional-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  text-align: center;
}

.professional-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.professional-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.professional-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  transition: border-color var(--transition);
}

.professional-card.selected .professional-avatar {
  border-color: var(--accent);
}

.professional-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  border: 3px solid var(--border);
  transition: border-color var(--transition);
  flex-shrink: 0;
}

.professional-card.selected .professional-avatar-placeholder {
  border-color: var(--accent);
}

.professional-name {
  font-size: 14px;
  font-weight: 600;
}

.professional-specialty {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ======================================================
   CALENDÁRIO
====================================================== */
.calendar-container {
  margin: 0 16px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar-nav span {
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
}

.btn-cal-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--text);
}

.btn-cal-nav:hover { background: var(--border); }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  border: 2px solid transparent;
}

.cal-day:hover:not(.disabled):not(.empty) {
  background: var(--accent-light);
  color: var(--accent);
}

.cal-day.today {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.cal-day.selected {
  background: var(--accent);
  color: white !important;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

.cal-day.disabled {
  color: var(--text-muted);
  cursor: default;
  opacity: 0.4;
}

.cal-day.empty { cursor: default; }

/* ======================================================
   HORÁRIOS
====================================================== */
.time-slots-container {
  margin: 0 16px 16px;
  animation: fadeIn 0.3s ease;
}

.slots-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.time-slot {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.time-slot:hover:not(.occupied) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.time-slot.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
}

.time-slot.occupied {
  background: var(--surface2);
  color: var(--text-muted);
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.5;
}

.no-slots {
  grid-column: 1/-1;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ======================================================
   FORMULÁRIO
====================================================== */
.booking-summary-compact {
  margin: 0 16px 16px;
  background: var(--accent-light);
  border: 1px solid rgba(233, 69, 96, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
}

.booking-summary-compact .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}

.booking-summary-compact .summary-label {
  color: var(--text-secondary);
}

.booking-summary-compact .summary-value {
  font-weight: 600;
  text-align: right;
}

.booking-form {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Campos de endereço estruturado (busca por CEP) */
.address-cep-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.address-cep-row input { flex: 1; }
.cep-status {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 70px;
}
.cep-status.loading { color: var(--accent); }
.cep-status.error   { color: #ef4444; }
.cep-status.ok      { color: #22c55e; }
.address-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.address-fields input[readonly] {
  background: var(--surface-2, rgba(0,0,0,.03));
  color: var(--text-muted);
}
.address-row-2 {
  display: flex;
  gap: 8px;
}
.address-row-2 input { flex: 1; }

/* Grid 2 colunas para botões do card de sessão */
.session-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.session-actions > :only-child {
  grid-column: 1 / -1;
}

/* ======================================================
   CONFIRMAÇÃO
====================================================== */
.confirmation-container {
  padding: 32px 20px 24px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--success);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.confirmation-container h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.confirmation-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.confirmation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.conf-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.conf-row:last-child { border-bottom: none; }

.conf-row svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

.conf-row-content strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1px;
}

.conf-row-content span {
  font-size: 13px;
  color: var(--text-secondary);
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ======================================================
   BOTÕES
====================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
  border: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.45);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: none;
  font-family: var(--font);
  cursor: pointer;
  width: 100%;
}

.btn-secondary:hover { opacity: 0.9; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  transition: all var(--transition);
  font-family: var(--font);
  cursor: pointer;
  width: 100%;
}

.btn-outline:hover { border-color: var(--primary); background: var(--surface2); }

.btn-ghost {
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
  font-family: var(--font);
  transition: color var(--transition);
  cursor: pointer;
}

.btn-ghost:hover { color: var(--accent); }

.btn-full { width: 100%; }

/* ======================================================
   RODAPÉ
====================================================== */
.app-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.demo-notice {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-text {
  font-family: Arial Black, Impact, sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  color: var(--text);
  opacity: 0.75;
}
.footer-logo-text .logo-ph      { color: #7c3aed; }
.footer-logo-text .logo-booking { color: #0284c7; }

.theme-toggle-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.theme-toggle-btn:hover {
  background: var(--border);
  color: var(--text);
}

.btn-admin-access {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.btn-admin-access:hover {
  color: var(--text-secondary);
  border-color: var(--border);
}

/* ======================================================
   MODAIS
====================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 28px 24px 32px;
  width: 100%;
  max-width: var(--max-width);
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition);
}

.modal-close:hover { background: var(--border); }

.modal h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.admin-error {
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 12px;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.modal-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.modal-detail-row:last-child { border-bottom: none; }

.modal-detail-label {
  color: var(--text-muted);
  min-width: 90px;
  font-weight: 500;
  font-size: 13px;
}

.modal-detail-value { font-weight: 600; }

/* ======================================================
   ADMIN PANEL
====================================================== */
#app-admin {
  padding-bottom: 40px;
}

.admin-header {
  background: var(--primary);
  color: white;
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header h1 {
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-header p {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

.btn-admin-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background var(--transition);
}

.btn-admin-logout:hover { background: rgba(255,255,255,0.2); }

.admin-tabs {
  display: flex;
  padding: 16px 16px 0;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 76px;
  z-index: 40;
}

.admin-tab {
  flex: 1;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-stats {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
}

.stat-number.accent { color: var(--accent); }
.stat-number.success { color: var(--success); }
.stat-number.warning { color: var(--warning); }

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  display: block;
}

.admin-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.admin-empty svg {
  margin: 0 auto 12px;
  opacity: 0.3;
}

.booking-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 4px solid var(--border);
}

.booking-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.booking-item.status-pending  { border-left-color: var(--warning); }
.booking-item.status-confirmed { border-left-color: var(--success); }
.booking-item.status-cancelled { border-left-color: var(--danger); opacity: 0.65; }

.booking-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.booking-item-time {
  font-size: 15px;
  font-weight: 700;
}

.booking-item-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 6px;
}

.booking-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-pending   { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.badge-confirmed { background: var(--success-light); color: var(--success); }
.badge-cancelled { background: var(--danger-light); color: var(--danger); }

.booking-item-client {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.booking-item-details {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-item-details span { display: flex; align-items: center; gap: 3px; }

.admin-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  width: 100%;
}

.btn-confirm-booking {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-confirm-booking:hover { background: var(--success); color: white; }

.btn-cancel-booking {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-cancel-booking:hover { background: var(--danger); color: white; }

.btn-whatsapp {
  background: #25D366;
  color: white;
  border: none;
}
.btn-whatsapp:hover { background: #1da851; }
.btn-reminder {
  background: #0ea5e9 !important;
  color: white !important;
  border: none !important;
}
.btn-reminder:hover { background: #0284c7 !important; }

.admin-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 6px 0 8px;
}

/* ======================================================
   UTILITÁRIOS
====================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hidden { display: none !important; }

/* ======================================================
   RESPONSIVO — telas maiores
====================================================== */
@media (min-width: 480px) {
  .hero { max-height: 520px; }
  .hero-content h1 { font-size: 2.4rem; }
  .time-slots { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  #app-client, #app-admin, #app-professional, .app-footer {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  body { background: var(--surface2); }
}

/* ======================================================
   NOVOS ESTILOS — Admin expandido, Profissional, Config
====================================================== */

/* Rodapé — dois botões */
.footer-access-btns { display: flex; gap: 6px; }

/* Admin Main Tabs */
.admin-main-tabs {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 40;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-main-tabs::-webkit-scrollbar { display: none; }

.admin-main-tab {
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.admin-main-tab svg { opacity: 0.5; transition: opacity var(--transition); }
.admin-main-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-main-tab.active svg { opacity: 1; }

/* Config sub-abas */
.cfg-subtabs-wrap {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cfg-subtabs {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.cfg-subtabs::-webkit-scrollbar { display: none; }
.cfg-tab-btn {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.cfg-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.cfg-tab-panel { padding: 0; }

/* Setas de scroll — só aparecem em dispositivos com mouse */
.cfg-scroll-btn {
  display: none;
  flex-shrink: 0;
  width: 32px;
  background: var(--surface);
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--transition);
  margin-bottom: -1px;
}
.cfg-scroll-btn:hover { background: var(--surface2); color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .cfg-scroll-btn { display: flex; }
  /* Fade indicando mais conteúdo à direita */
  .cfg-subtabs-wrap::after {
    content: '';
    position: absolute;
    right: 32px;
    top: 0;
    height: calc(100% - 1px);
    width: 24px;
    background: linear-gradient(to right, transparent, var(--surface));
    pointer-events: none;
  }
}

/* Zona de perigo */
.danger-zone {
  border: 1px solid rgba(239,68,68,0.4) !important;
  background: rgba(239,68,68,0.04) !important;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 84px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 900;
  text-decoration: none;
  animation: wpp-pulse 2.5s infinite;
}
@keyframes wpp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.7); }
}

/* Admin sub-tabs (Agenda: Hoje/Semana/Todos) */
.admin-sub-tabs {
  display: flex;
  padding: 12px 16px 0;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.btn-export-tab {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.btn-export-tab:hover { color: var(--accent); }

/* Admin panel header (Ausências, Equipe) */
.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.admin-panel-count {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.btn-add-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.btn-add-item:hover { background: var(--accent-dark); }

/* ====== Toggle Switch ====== */
.toggle-label-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 99px;
  transition: background var(--transition);
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ====== Day Picker ====== */
.day-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.day-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--surface2);
  color: var(--text-muted);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.day-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}
.day-btn:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

/* ====== Form Row (2 columns) ====== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ====== Form extras ====== */
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
  line-height: 1.4;
}
.form-error {
  font-size: 13px;
  color: var(--danger);
  font-weight: 500;
  margin-bottom: 12px;
}

/* ====== Radio Group ====== */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  flex: 1;
  min-width: 120px;
}
.radio-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}
.radio-option input { accent-color: var(--accent); }

/* ====== Checkbox Group (Serviços por profissional) ====== */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.checkbox-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}
.checkbox-option input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ====== Ausência Item ====== */
.ausencia-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow);
}
.ausencia-item.past { opacity: 0.5; border-left-color: var(--text-muted); }
.ausencia-info { flex: 1; min-width: 0; }
.ausencia-date { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.ausencia-detail { font-size: 12px; color: var(--text-secondary); }
.ausencia-pro-tag {
  display: inline-block;
  background: var(--surface2);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 4px;
}
.btn-delete-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--danger-light);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  flex-shrink: 0;
}
.btn-delete-item:hover { background: var(--danger); color: white; }

/* ====== Equipe Item ====== */
.equipe-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.equipe-item.inactive { opacity: 0.5; }
.equipe-avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.equipe-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.equipe-info { flex: 1; min-width: 0; }
.equipe-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.equipe-specialty { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.equipe-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--surface2);
  color: var(--text-secondary);
}
.tag-active { background: var(--success-light); color: var(--success); }
.tag-inactive { background: var(--danger-light); color: var(--danger); }
.equipe-actions { display: flex; gap: 6px; }
.btn-edit-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-edit-item:hover { background: var(--primary); color: white; }

/* ====== Config Sections ====== */
.config-sections { padding: 0 0 40px; }
.config-section {
  padding: 20px 16px 24px;
  border-bottom: 1px solid var(--border);
}
.config-section form > .btn-primary,
.config-section form > .btn-outline,
.config-section > .btn-primary,
.config-section > .btn-outline,
.config-section > .btn-ghost {
  margin-top: 8px;
}
.config-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.config-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ====== Danger button ====== */
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-danger:hover { background: var(--danger); color: white; }

/* ====== Professional Panel ====== */
.pro-header { background: #1b3a4b; }

/* ====== Modal large ====== */
.modal-large { max-height: 92vh; }

/* ====== WhatsApp botão notificação cliente ====== */
.btn-notify-biz {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
  text-decoration: none;
}
.btn-notify-biz:hover { background: #1da851; }

/* ====== WhatsApp button (admin modal) ====== */
.btn-whatsapp-confirm {
  background: #25D366;
  color: white;
  border: none;
}
.btn-whatsapp-confirm:hover { background: #1da851; }

/* ====== Toast notification ====== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: var(--bg);
  z-index: 9999;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }

/* ======================================================
   UPLOAD DE CAPA + TEMAS
====================================================== */
.cover-upload-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-upload-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface2);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
  width: 100%;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  font-family: var(--font);
}
.btn-upload-cover:hover { border-color: var(--accent); color: var(--text); }
.cover-upload-sep { text-align: center; font-size: 12px; color: var(--text-muted); }
.cover-upload-status {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  background: var(--success-light);
  color: var(--success);
}
.cover-upload-status.error { background: var(--danger-light); color: var(--danger); }

.theme-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.theme-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color var(--transition);
  font-family: var(--font);
}
.theme-preset:hover { border-color: var(--accent); }
.theme-preset span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.theme-preset span:first-child { margin-bottom: -8px; margin-right: -8px; }
.theme-preset > div { display: flex; gap: 2px; }
.theme-preset small { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* Emoji picker */
.emoji-picker-grid {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  width: 240px;
}
.emoji-picker-grid button {
  font-size: 20px;
  padding: 4px;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition);
}
.emoji-picker-grid button:hover { background: var(--surface2); }

/* ======================================================
   SERVIÇOS NO ADMIN
====================================================== */
.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.service-item-emoji { font-size: 20px; line-height: 1; flex-shrink: 0; }
.service-item-info  { flex: 1; min-width: 0; }
.service-item-name  { font-weight: 600; font-size: 14px; color: var(--text); }
.service-item-meta  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.service-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.service-item-actions button {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px; line-height: 0;
  transition: color var(--transition);
}
.service-item-actions button:hover { color: var(--text); }
.service-item-actions .btn-delete-svc:hover { color: var(--danger); }

/* Color picker */
.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-input-wrap input[type="color"] {
  width: 40px; height: 40px; padding: 2px; border-radius: 8px;
  border: 2px solid var(--border); cursor: pointer; background: none;
  flex-shrink: 0;
}
.color-input-wrap input[type="text"] {
  flex: 1;
}

/* ======================================================
   BADGE DE PENDENTES NA ABA AGENDA
====================================================== */
.admin-tab-pending {
  color: var(--warning) !important;
  border-bottom-color: transparent;
}
.admin-tab-pending.active {
  color: var(--warning) !important;
  border-bottom-color: var(--warning) !important;
}
.pending-badge-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--warning);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  padding: 0 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--warning);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  margin-left: 5px;
  vertical-align: middle;
}

/* Ícone de confirmação pendente (relógio) */
.confirmation-icon.pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}
.confirmation-icon.pending svg { stroke: var(--warning); }

/* ======================================================
   TOGGLE MOSTRAR/OCULTAR SENHA
====================================================== */
.pwd-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.pwd-wrapper input[type="password"],
.pwd-wrapper input[type="text"] {
  flex: 1;
  padding-right: 44px;
}
.pwd-toggle {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  padding: 4px;
  line-height: 0;
  transition: color var(--transition);
}
.pwd-toggle:hover { color: var(--text-secondary); }

/* ======================================================
   DEMO BANNER
====================================================== */
#demo-banner {
  background: linear-gradient(135deg, #1e1b4b, #2d1b69);
  border-bottom: 1px solid #a78bfa44;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  gap: 12px;
}
#demo-banner a {
  color: #a78bfa;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

/* ======================================================
   iOS INSTALL BANNER
====================================================== */
#ios-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 0 12px 12px;
  animation: slideUpBanner 0.35s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.ios-banner-content {
  background: #1c1c2e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.4);
}
.ios-banner-icon {
  flex-shrink: 0;
  color: var(--primary, #e63946);
}
.ios-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ios-banner-text strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.ios-banner-text span {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.ios-banner-text em {
  font-style: normal;
  color: rgba(255,255,255,0.9);
}
.ios-banner-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
.ios-banner-arrow {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #1c1c2e;
  margin: 0 auto;
  position: relative;
  top: -1px;
}

/* ======================================================
   SETUP WIZARD
====================================================== */
/* Espaçamento entre último campo e botão em modais e wizard */
.modal .form-group + .btn-primary,
.modal .form-group + .btn-outline,
.modal form > .btn-primary,
.modal form > .btn-outline,
#setup-step-0 > .btn-primary,
#setup-step-1 > .btn-primary,
#setup-step-2 > .btn-primary,
#setup-step-3 > .btn-primary,
#setup-step-4 > .btn-primary {
  margin-top: 16px;
}

.modal-wizard {
  border-radius: var(--radius);
  max-width: 420px;
  width: calc(100% - 32px);
  margin: auto;
  padding: 32px 24px;
}
.wizard-header {
  text-align: center;
  margin-bottom: 24px;
}
.wizard-logo {
  font-size: 40px;
  margin-bottom: 8px;
}
.wizard-header h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.wizard-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}
.wizard-step-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  margin-bottom: 16px;
}
.wizard-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.wizard-done-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
}
#setup-step-4 h4 {
  text-align: center;
  font-size: 18px;
  margin: 0 0 10px;
}
#setup-step-4 p {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.setup-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.setup-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  background: var(--surface);
}
.setup-type-card:hover { border-color: var(--accent); }
.setup-type-card.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.setup-type-icon { font-size: 26px; line-height: 1; }

/* Admin header com múltiplos botões */
.admin-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ── Resumo Executivo Admin ── */
.admin-resumo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.resumo-card {
  background: var(--surface);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.resumo-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.resumo-valor {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.resumo-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}
.resumo-valor.accent { color: var(--accent); }
.resumo-valor.success { color: var(--success); }

