/* ═══════════════════════════════════════════════════════
   SalãoApp PRO V2 — Design System
   Paleta: Verde-claro pastel, cards brancos, mobile-first
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── TOKENS ── */
:root {
  /* Verde pastel principal */
  --p:         #34C57A;
  --p2:        #28A865;
  --p3:        #1E8A52;
  --p-light:   #F0FBF5;
  --p-mid:     #C8F0DC;
  --p-dark:    #0D5C35;

  /* Neutros */
  --bg:        #F2FBF6;
  --surface:   #FFFFFF;
  --surface2:  #F7FEFA;
  --t1:        #0F2419;
  --t2:        #3D6052;
  --t3:        #7EA899;
  --border:    #DCF0E6;
  --border2:   #EDF7F1;

  /* Status */
  --green:     #16A34A;
  --green-l:   #DCFCE7;
  --amber:     #D97706;
  --amber-l:   #FEF9C3;
  --red:       #DC2626;
  --red-l:     #FEE2E2;
  --blue:      #2563EB;
  --blue-l:    #DBEAFE;

  /* Shape */
  --r:         20px;
  --r-sm:      14px;
  --r-xs:      10px;
  --r-pill:    999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(52,197,122,.06);
  --shadow:    0 2px 8px rgba(52,197,122,.10), 0 1px 2px rgba(15,36,25,.05);
  --shadow-md: 0 6px 24px rgba(52,197,122,.16), 0 2px 6px rgba(15,36,25,.08);
  --shadow-lg: 0 16px 48px rgba(15,36,25,.12), 0 4px 12px rgba(15,36,25,.06);

  /* Layout */
  --app-max:   430px;
  --nav-h:     72px;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: #C8EDDA;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  max-width: var(--app-max);
  margin: 0 auto;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
  position: relative;
  box-shadow: 0 0 0 1px rgba(52,197,122,.08), var(--shadow-lg);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--p-mid); border-radius: 99px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'DM Serif Display', serif; letter-spacing: -0.3px; }
.serif { font-family: 'DM Serif Display', serif; }

/* ── ANIMATIONS ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes scaleIn { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:scale(1); } }
@keyframes pop { 0%{transform:scale(1)} 50%{transform:scale(1.06)} 100%{transform:scale(1)} }

/* ── SPLASH ── */
#splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(150deg, #0D5C35 0%, #1E8A52 40%, #34C57A 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: opacity .6s ease, transform .6s ease;
}
#splash.hide { opacity: 0; transform: scale(1.04); pointer-events: none; }

.splash-icon {
  width: 88px;
  height: 88px;
  background: rgba(255,255,255,.15);
  border-radius: 28px;
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.splash-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.splash-sub {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  letter-spacing: 0.3px;
}
.splash-loader {
  margin-top: 48px;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ── OFFLINE BANNER ── */
#offline-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max);
  background: var(--t1);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#offline-banner.show { display: flex; }

/* ── HEADER ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242,251,246,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border2);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--p2), var(--p));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(52,197,122,.3);
}
.header-salao {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--t1);
  letter-spacing: -0.3px;
}
.header-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--p);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.5px;
}
.header-avatar {
  width: 36px;
  height: 36px;
  background: var(--p-light);
  border: 2px solid var(--p-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s;
}
.header-avatar:active { transform: scale(.92); }

/* ── BOTTOM NAV ── */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
  z-index: 200;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 4px;
  transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-icon {
  width: 40px;
  height: 34px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all .2s;
}
.nav-item.active .nav-icon {
  background: var(--p-light);
  transform: translateY(-2px);
}
.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--t3);
  transition: color .2s;
}
.nav-item.active .nav-label { color: var(--p2); }
.nav-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.nav-item { position: relative; }

/* ── SCREENS ── */
.screen {
  display: none;
  animation: fadeIn .3s ease;
  min-height: calc(100vh - var(--nav-h));
}
.screen.active { display: block; }

/* ── SECTION HEADER ── */
.section-header {
  padding: 20px 20px 0;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--t1);
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.section-sub {
  font-size: 13px;
  color: var(--t3);
  margin-top: 3px;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--border2);
  overflow: hidden;
}
.card-pad { padding: 16px; }
.card-pad-lg { padding: 20px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: linear-gradient(135deg, var(--p2) 0%, var(--p) 100%);
  color: #fff;
  padding: 14px 24px;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(52,197,122,.35);
}
.btn-primary:active { box-shadow: 0 2px 8px rgba(52,197,122,.2); }
.btn-secondary {
  background: var(--p-light);
  color: var(--p2);
  padding: 12px 20px;
  font-size: 14px;
  border: 1.5px solid var(--p-mid);
}
.btn-ghost {
  background: transparent;
  color: var(--t2);
  padding: 10px 16px;
  font-size: 14px;
}
.btn-danger {
  background: var(--red-l);
  color: var(--red);
  padding: 12px 20px;
  font-size: 14px;
  border: 1.5px solid rgba(220,38,38,.15);
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-sm);
  font-size: 18px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── INPUTS ── */
.input-group { margin-bottom: 16px; }
.input-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 7px;
}
.input-field {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--t1);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.input-field:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(52,197,122,.12);
  background: #fff;
}
.input-field::placeholder { color: var(--t3); }
.input-error .input-field { border-color: var(--red); }
.input-hint { font-size: 12px; color: var(--t3); margin-top: 5px; }
.input-err-msg { font-size: 12px; color: var(--red); margin-top: 5px; display: none; }
.input-error .input-err-msg { display: block; }

/* ── TOGGLE/CHECKBOX ── */
.toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--p); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── CHIPS ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
}
.chip-green { background: var(--green-l); color: var(--green); }
.chip-amber { background: var(--amber-l); color: var(--amber); }
.chip-red   { background: var(--red-l);   color: var(--red); }
.chip-blue  { background: var(--blue-l);  color: var(--blue); }
.chip-gray  { background: var(--border2); color: var(--t3); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border2);
  margin: 16px 0;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--t3);
  font-size: 12px;
  font-weight: 600;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── TOAST ── */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(var(--app-max) - 32px);
}
.toast {
  background: var(--t1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  animation: slideUp .3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
.toast.warning { background: var(--amber); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,36,25,.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-sheet {
  background: var(--surface);
  border-radius: var(--r) var(--r) 0 0;
  width: 100%;
  max-width: var(--app-max);
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp .35s cubic-bezier(.22,1,.36,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
}
.modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border2);
}
.modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--t1);
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-xs);
  background: var(--surface2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--t2);
}
.modal-body { padding: 20px; }

/* ── LOGIN / PORTAL ── */
#portal-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(150deg, #0D5C35 0%, #1E8A52 50%, #34C57A 100%);
  z-index: 1100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 24px 32px;
  overflow-y: auto;
}
#portal-screen.show { display: flex; }

.portal-logo {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.15);
  border-radius: 24px;
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.portal-salao-name {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
  text-align: center;
}
.portal-tagline {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  text-align: center;
  margin-bottom: 32px;
}
.portal-card {
  background: #fff;
  border-radius: var(--r);
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.portal-step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--p2);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
}
.portal-step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--t1);
  margin-bottom: 4px;
}
.portal-step-sub {
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 20px;
  line-height: 1.5;
}
.portal-footer {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  text-align: center;
  margin-top: 24px;
  line-height: 1.6;
}
.portal-link {
  color: rgba(255,255,255,.7);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  margin-top: 16px;
  display: block;
}

/* ── ADMIN LOGIN ── */
#admin-login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(150deg, #0D5C35 0%, #1E8A52 50%, #34C57A 100%);
  z-index: 1100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  overflow-y: auto;
}
#admin-login-screen.show { display: flex; }

/* ── HOME / AGENDA ── */
.agenda-date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.agenda-date-strip::-webkit-scrollbar { display: none; }

.date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  min-width: 52px;
  border: 1.5px solid transparent;
}
.date-chip .day-name { font-size: 10px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: .3px; }
.date-chip .day-num  { font-size: 20px; font-weight: 800; color: var(--t2); font-variant-numeric: tabular-nums; }
.date-chip .dot-row  { display: flex; gap: 3px; height: 5px; align-items: center; }
.date-chip .dot      { width: 4px; height: 4px; border-radius: 2px; background: var(--t3); opacity: .4; }
.date-chip.selected  { background: var(--p); border-color: var(--p); }
.date-chip.selected .day-name { color: rgba(255,255,255,.7); }
.date-chip.selected .day-num  { color: #fff; }
.date-chip.selected .dot      { background: rgba(255,255,255,.8); opacity: 1; }
.date-chip.today     { border-color: var(--p-mid); background: var(--p-light); }
.date-chip.has-appts .dot     { background: var(--p2); opacity: 1; }

/* ── TIMELINE ── */
.timeline { padding: 0 20px 20px; }
.timeline-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--t3);
}
.timeline-empty .empty-icon { font-size: 48px; margin-bottom: 12px; }
.timeline-empty p { font-size: 14px; line-height: 1.6; }

.appt-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--border2);
  margin-bottom: 10px;
  transition: transform .15s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.appt-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--p);
  border-radius: 0;
}
.appt-card.status-pendente::before  { background: var(--amber); }
.appt-card.status-concluido::before { background: var(--green); }
.appt-card.status-cancelado::before { background: var(--red); opacity: .4; }
.appt-card:active { transform: scale(.985); }

.appt-time {
  text-align: center;
  flex-shrink: 0;
  min-width: 48px;
}
.appt-time .hora { font-size: 16px; font-weight: 800; color: var(--t1); font-variant-numeric: tabular-nums; }
.appt-time .duracao { font-size: 10px; color: var(--t3); font-weight: 600; }

.appt-info { flex: 1; min-width: 0; }
.appt-nome { font-size: 15px; font-weight: 700; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-servico { font-size: 13px; color: var(--t2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-preco { font-size: 13px; font-weight: 700; color: var(--p2); margin-top: 5px; }

.btn-concluir {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--r-xs);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .18s;
  flex-shrink: 0;
  align-self: center;
}
.btn-concluir:active { transform: scale(.94); }

.faturamento-banner {
  background: linear-gradient(135deg, var(--amber-l), #FEF3C7);
  border: 1.5px solid rgba(217,119,6,.2);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fat-icon { font-size: 28px; }
.fat-label { font-size: 12px; font-weight: 600; color: var(--amber); text-transform: uppercase; letter-spacing: .4px; }
.fat-valor { font-family: 'DM Serif Display', serif; font-size: 24px; color: var(--t1); line-height: 1; }

/* ── SERVIÇOS CARD ── */
.servico-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--border2);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .15s;
}
.servico-emoji {
  width: 48px;
  height: 48px;
  background: var(--p-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.servico-info { flex: 1; min-width: 0; }
.servico-nome { font-size: 15px; font-weight: 700; color: var(--t1); }
.servico-meta { font-size: 12px; color: var(--t3); margin-top: 3px; }
.servico-preco { font-size: 17px; font-weight: 800; color: var(--p2); }
.servico-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── CLIENTES ── */
.cliente-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--border2);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform .15s;
}
.cliente-card:active { transform: scale(.985); }
.cliente-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-mid), var(--p-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--p2);
  flex-shrink: 0;
}
.cliente-nome { font-size: 15px; font-weight: 700; color: var(--t1); }
.cliente-tel  { font-size: 12px; color: var(--t3); margin-top: 2px; }
.cliente-stats { font-size: 12px; color: var(--t2); margin-top: 4px; }

/* ── CAIXA / FINANCEIRO ── */
.caixa-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--border2);
  padding: 20px;
  margin-bottom: 10px;
}
.caixinha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.caixinha-item {
  background: var(--p-light);
  border-radius: var(--r-sm);
  padding: 14px;
  border: 1.5px solid var(--p-mid);
}
.caixinha-nome { font-size: 11px; font-weight: 700; color: var(--p2); text-transform: uppercase; letter-spacing: .4px; }
.caixinha-valor { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--t1); margin-top: 4px; }
.caixinha-pct { font-size: 12px; color: var(--t3); }

.lancamento-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border2);
}
.lancamento-row:last-child { border-bottom: none; }
.lancamento-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--green-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.lancamento-desc { flex: 1; min-width: 0; }
.lancamento-nome { font-size: 14px; font-weight: 600; color: var(--t1); }
.lancamento-hora { font-size: 12px; color: var(--t3); }
.lancamento-val  { font-size: 15px; font-weight: 800; color: var(--green); }

/* ── CONFIGURAÇÕES ── */
.config-section { padding: 20px 20px 0; }
.config-group {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--border2);
  margin-bottom: 16px;
  overflow: hidden;
}
.config-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 14px 16px 8px;
}
.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--border2);
  cursor: pointer;
  transition: background .15s;
}
.config-row:first-of-type { border-top: none; }
.config-row:active { background: var(--surface2); }
.config-row-info { flex: 1; min-width: 0; }
.config-row-label { font-size: 14px; font-weight: 600; color: var(--t1); }
.config-row-sub   { font-size: 12px; color: var(--t3); margin-top: 2px; }
.config-row-right { display: flex; align-items: center; gap: 8px; color: var(--t3); font-size: 13px; }
.config-chevron::after { content: '›'; font-size: 20px; color: var(--t3); }

/* ── AGENDAMENTO PORTAL ── */
.booking-steps {
  display: flex;
  gap: 6px;
  padding: 16px 20px 0;
}
.booking-step-dot {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  transition: background .3s;
}
.booking-step-dot.done { background: var(--p); }
.booking-step-dot.active { background: var(--p-mid); }

.booking-section { padding: 20px; }
.booking-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--t1);
  margin-bottom: 16px;
}

.servico-pick-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.servico-pick-card:active { transform: scale(.98); }
.servico-pick-card.selected {
  border-color: var(--p);
  background: var(--p-light);
}
.servico-pick-card.selected .servico-nome { color: var(--p2); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}
.cal-head { font-size: 10px; font-weight: 700; color: var(--t3); text-align: center; padding: 4px 0; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: all .15s;
  color: var(--t1);
}
.cal-day:hover { background: var(--p-light); }
.cal-day.disabled { color: var(--t3); opacity: .4; cursor: not-allowed; pointer-events: none; }
.cal-day.today { font-weight: 800; color: var(--p2); }
.cal-day.selected { background: var(--p); color: #fff; }
.cal-day.has-slots { position: relative; }
.cal-day.has-slots::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: var(--p);
}
.cal-day.selected.has-slots::after { background: rgba(255,255,255,.7); }

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.time-slot {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
}
.time-slot:hover { border-color: var(--p); background: var(--p-light); }
.time-slot.selected { background: var(--p); border-color: var(--p); color: #fff; }
.time-slot.busy { background: var(--border2); color: var(--t3); cursor: not-allowed; text-decoration: line-through; opacity: .6; }

/* ── COMPROVANTE ── */
#comprovante-card {
  background: linear-gradient(135deg, #0D5C35 0%, #1E8A52 100%);
  border-radius: var(--r);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
#comprovante-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
#comprovante-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.comp-icon { font-size: 40px; margin-bottom: 12px; }
.comp-status { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.comp-title { font-family: 'DM Serif Display', serif; font-size: 26px; margin-bottom: 20px; }
.comp-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.comp-row:last-child { border-bottom: none; }
.comp-key { opacity: .65; }
.comp-val { font-weight: 700; }
.comp-footer { margin-top: 16px; text-align: center; font-size: 12px; opacity: .5; }

/* ── SKELETON LOADER ── */
.skeleton {
  background: linear-gradient(90deg, var(--border2) 25%, var(--border) 37%, var(--border2) 63%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-xs);
}
.skel-card { height: 80px; margin-bottom: 10px; border-radius: var(--r); }
.skel-text-sm { height: 12px; width: 60%; margin-bottom: 8px; }
.skel-text-lg { height: 20px; width: 80%; margin-bottom: 12px; }

/* ── FAB ── */
.fab {
  position: fixed;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
  right: 20px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--p2), var(--p));
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(52,197,122,.45);
  z-index: 150;
  transition: all .2s;
}
.fab:active { transform: scale(.92); box-shadow: 0 3px 10px rgba(52,197,122,.3); }

/* ── UTILITY ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.p-20 { padding: 20px; }
.pb-20 { padding-bottom: 20px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.color-t3 { color: var(--t3); }
.color-p { color: var(--p2); }
.w-full { width: 100%; }
.hidden { display: none !important; }
