/* =============================================
   LavaSync — style.css  ·  visual estilo Apple
   Paleta: cinza-galeria + azul de marca + quase-preto
   (os IDs/classes são os mesmos que o script.js usa)
   ============================================= */

:root {
  --brand:        #0071e3;
  --brand-hover:  #0077ed;
  --logo-color:   #0071e3;   /* fixo — nunca muda com a cor escolhida */
  --brand-soft:   color-mix(in srgb, var(--brand) 10%, white);
  --brand-tint:   color-mix(in srgb, var(--brand) 6%, white);
  --brand-shadow: color-mix(in srgb, var(--brand) 15%, transparent);
  --page:         #f5f5f7;
  --card:         #ffffff;
  --border:       #e3e3e6;
  --border-strong:#d2d2d7;
  --text:         #1d1d1f;
  --muted:        #6e6e73;
  --faint:        #86868b;
  --gold:         #b26a00;
  --green:        #137a45;
  --red:          #ff3b30;
  --radius:       14px;
  --radius-sm:    12px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-text:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

/* Garante que o atributo hidden sempre esconda, mesmo em flex/grid */
[hidden] { display: none !important; }

/* Garante que o atributo hidden sempre esconda, mesmo em blocos com display:flex */
[hidden] { display: none !important; }

body {
  font-family: var(--font-text);
  background: var(--page);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ─────────────────────────────────── */
.layout { display: flex; height: 100vh; }

/* ── SIDEBAR ────────────────────────────────── */
.sidebar {
  width: 264px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: left 0.3s ease;
}

.sidebar-logo {
  padding: 26px 24px 22px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.logo-icon { display: inline-flex; }
.logo-icon svg { width: 26px; height: 26px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-text span { color: var(--brand); }

.sidebar-nav {
  flex: 1;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: #f0f0f3; }
/* cor fixa em azul 
.nav-item.active { background: rgba(0,113,227,0.10); color: var(--brand); font-weight: 600; } /*
 /* para alterar as cores*/
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; flex-shrink: 0; }
.nav-icon svg { width: 19px; height: 19px; }

.nav-badge {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
}

.sidebar-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sidebar-footer #nome-lavajato {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-logout {
  flex-shrink: 0;
  background: #f0f0f3;
  color: var(--text);
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-logout:hover { background: #e8e8ed; }

/* ── MAIN ───────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 44px 52px;
}

.page { display: none; animation: ls-fade 0.3s ease both; }
.page.active { display: block; }

.page-header { margin-bottom: 32px; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
.page-header p { font-size: 17px; color: var(--muted); margin-top: 4px; }

/* ── CARD ───────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
}

/* ── FORM ───────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

input, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
/* MANTER A COR AZUL SEMPRE
input:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}*/ 

/* TER COR VARIADA CONFORME A ESCOLHJA*/
input:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-shadow);
}

select:disabled { background: var(--page); color: var(--faint); cursor: not-allowed; }
input[readonly] { background: var(--page); color: var(--muted); cursor: not-allowed; }

/* ── BOTÃO SUBMIT ───────────────────────────── */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s;
  margin-top: 30px;
}
.btn-submit:hover { filter: brightness(1.05); }

/* ── STATS ──────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-card.highlight { background: var(--brand); border-color: var(--brand); }
.stat-card.highlight .stat-value { color: #fff; }
.stat-card.highlight .stat-label { color: rgba(255,255,255,0.85); }
.stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.1;
  white-space: nowrap;
}
.stat-label { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; }

/* ── BUSCA ──────────────────────────────────── */
.search-bar { margin-bottom: 22px; }
.search-bar input { max-width: 440px; }

/* ── RESUMO POR PLACA ───────────────────────── */
.resumo-placa {
  background: #fff8ec;
  border: 1px solid #f0e0bd;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}
.resumo-placa[hidden] { display: none; }
.resumo-placa b { color: var(--brand); }

/* ── CARD DE LAVAGEM ────────────────────────── */
.wash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.wash-info { flex: 1; min-width: 240px; }
.wash-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.wash-cliente { font-size: 18px; font-weight: 600; color: var(--text); }
.wash-veiculo { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.wash-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 13px; color: var(--faint); align-items: center;
}
.wash-meta b { color: var(--text); font-weight: 600; }

.badge-placa {
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.15s;
}
.badge-placa:hover { filter: brightness(1.35); }

/* MANTER A COR AZUL SEMPRE
.badge-servico {
  background: #f0f5ff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
}*/

/*CORE VARIAVEL CONFORME A ESCOLHA*/
.badge-servico {
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
}

.badge-agendado {
  background: #fff4e0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.wash-valor {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.wash-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

.btn-action {
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.15s;
}
.btn-action:hover { filter: brightness(1.05); text-decoration: none; }
.btn-concluir { background: var(--brand); color: #fff; }
.btn-whats    { background: #e9f9ef; color: var(--green); }
.btn-editar   { background: #f0f0f3; color: var(--text); }
.btn-remover  { background: transparent; color: var(--faint); border: 1px solid var(--border); }
.btn-remover:hover { color: var(--red); border-color: #ffc9c6; filter: none; }

/* ── ESTADO VAZIO ───────────────────────────── */
.empty-state { text-align: center; padding: 64px 32px; }
.empty-state .empty-icon { font-size: 44px; display: block; margin-bottom: 14px; opacity: 0.5; }
.empty-state h3 { font-size: 17px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.empty-state p { font-size: 15px; color: var(--faint); }

/* ── DICA DE PLACA (recorrência) ────────────── */
/*COR AZUL FIXA
.placa-hint {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--brand);
  background: #f0f5ff;
  border-radius: 8px;
  padding: 8px 11px;
}*/

/*COR VARIAVEL CONFORME A ESCOLHA*/
.placa-hint {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 8px;
  padding: 8px 11px;
}


.placa-hint[hidden] { display: none; }
.placa-hint b { font-weight: 600; }

/* ── TOAST ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: #fff;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── OPÇÕES: serviços/preços ────────────────── */
.card-titulo { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text); }
.card-desc { font-size: 15px; color: var(--muted); margin: 6px 0 22px; line-height: 1.5; }

.servico-form { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.servico-form .form-group { flex: 1; min-width: 160px; }
.servico-form .form-group:first-child { flex: 2; min-width: 220px; }
.servico-form-acoes { display: flex; gap: 10px; }
.servico-form-acoes .btn-submit { width: auto; margin-top: 0; padding: 12px 22px; font-size: 16px; }

.cor-picker-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cor-picker-row input[type="color"] {
  width: 56px; height: 46px; padding: 4px; cursor: pointer; border-radius: var(--radius-sm);
}
.cor-presets { display: flex; gap: 8px; }
.cor-preset {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border-strong);
  cursor: pointer; padding: 0;
}
.cor-picker-row .btn-submit { width: auto; margin-top: 0; padding: 12px 22px; }

#servicos-lista { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.servico-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.servico-info { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.servico-nome { font-size: 16px; font-weight: 500; color: var(--text); }
.servico-preco { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--brand); }
.servico-acoes { display: flex; gap: 8px; }
.servico-acoes .btn-action { padding: 7px 13px; font-size: 13px; }

/* ── LOGIN ──────────────────────────────────── */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-screen[hidden] { display: none; }

.auth-box { width: 100%; max-width: 400px; animation: ls-fade 0.4s ease both; }

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}
.auth-logo svg { width: 46px; height: 46px; }
.auth-logo span { color: var(--brand); }

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 30px;
}
.auth-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; font-size: 15px; color: var(--muted); margin: 0 0 26px; }
.auth-field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.auth-card .btn-submit { margin-top: 8px; }

.auth-erro { margin-top: 14px; text-align: center; font-size: 14px; color: var(--red); font-weight: 500; }
.auth-erro[hidden] { display: none; }

.btn-link {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.btn-link:hover { text-decoration: underline; }

.auth-aviso {
  margin-top: 16px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.auth-aviso[hidden] { display: none; }
.auth-aviso b { color: var(--text); }
.auth-aviso p { margin-top: 6px; }
.auth-contato { margin-top: 10px; font-weight: 600; color: var(--brand); }
.auth-contato[hidden] { display: none; }

.auth-rodape { text-align: center; font-size: 12px; color: var(--faint); margin-top: 22px; }
.auth-rodape b { color: var(--muted); font-weight: 600; }

/* ── MODAIS ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--card);
  width: 100%;
  max-width: 480px;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: ls-pop 0.25s ease both;
}
.modal h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 20px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-grid .fg { display: flex; flex-direction: column; gap: 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.btn-modal {
  border: none;
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s, background 0.15s;
}
.btn-modal.save { background: var(--brand); color: #fff; }
.btn-modal.save:hover { filter: brightness(1.05); }
.btn-modal.cancel { background: #f0f0f3; color: var(--text); }
.btn-modal.cancel:hover { background: #e8e8ed; }

.modal.onboarding, .modal.senha-modal { max-width: 440px; text-align: center; }
.onb-icon { display: inline-flex; margin-bottom: 6px; }
.onb-icon svg { width: 46px; height: 46px; }
.onb-texto { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.onb-texto b { color: var(--text); }
.onb-acoes { display: flex; flex-direction: column; gap: 10px; }
.onb-acoes .btn-submit { width: 100%; margin-top: 0; }
.onb-rodape { font-size: 12px; color: var(--faint); margin-top: 16px; }
.onb-rodape b { color: var(--muted); }
.btn-ghost {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-ghost:hover { background: var(--page); }

/* ── TOUR GUIADO COM HOLOFOTE ────────────────── */
#coach[hidden] { display: none; }
#coach { position: fixed; inset: 0; z-index: 1400; }
#coach-block { position: fixed; inset: 0; z-index: 1400; }   /* segura os cliques */

#coach-hole {
  position: fixed; z-index: 1401;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 3px var(--brand), 0 0 0 9999px rgba(15, 20, 30, 0.66);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#coach-hole::after {
  content: ""; position: absolute; inset: -5px;
  border: 2px solid var(--brand); border-radius: 16px;
  animation: coach-pulse 1.7s ease-out infinite;
}
#coach-hole.sem-alvo { box-shadow: 0 0 0 9999px rgba(15, 20, 30, 0.72); }
#coach-hole.sem-alvo::after { display: none; }
@keyframes coach-pulse {
  0%   { transform: scale(1);    opacity: 0.9; }
  70%  { transform: scale(1.16); opacity: 0; }
  100% { opacity: 0; }
}

#coach-pop {
  position: fixed; z-index: 1402;
  width: 300px; max-width: calc(100vw - 28px);
  background: var(--card); border-radius: 16px; padding: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: ls-pop 0.25s ease both;
}
#coach-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.coach-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: width 0.25s, background 0.25s, border-radius 0.25s; }
.coach-dot.ativo { width: 20px; border-radius: 3px; background: var(--brand); }
#coach-icone { font-size: 34px; margin-bottom: 8px; display: none; }
#coach-pop h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
#coach-pop p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
#coach-pop p b { color: var(--text); }
.coach-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.coach-nav-dir { display: flex; gap: 8px; }
.coach-btn { border: none; border-radius: 10px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: filter 0.15s, background 0.15s; }
.coach-btn.primary { background: var(--brand); color: #fff; }
.coach-btn.primary:hover { filter: brightness(1.06); }
.coach-btn.ghost { background: #f0f0f3; color: var(--text); }
.coach-btn.ghost:hover { background: #e8e8ed; }
.coach-pular { background: none; border: none; color: var(--faint); font-size: 13px; cursor: pointer; font-family: inherit; padding: 6px; }
.coach-pular:hover { color: var(--muted); }

.senha-campos { display: flex; flex-direction: column; gap: 14px; text-align: left; margin-bottom: 6px; }
.senha-campos .fg { display: flex; flex-direction: column; gap: 6px; }
.senha-modal .btn-submit { margin-top: 16px; }
#senha-overlay { z-index: 600; }

/* ── MOBILE HEADER ──────────────────────────── */
.mobile-header { display: none; }
.overlay { display: none; }

/* ── INTRO / SPLASH ─────────────────────────── */
#intro-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--page);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  cursor: pointer;
}
#intro-splash.hide { animation: ls-splash-out 0.7s cubic-bezier(0.4,0,0.2,1) forwards; }
#intro-splash .logo { width: 92px; height: 92px; animation: ls-drop-in 0.8s cubic-bezier(0.2,0,0,1) both; }
#intro-splash .intro-water { transform-box: fill-box; animation: ls-water 1.15s cubic-bezier(0.4,0,0.2,1) 0.4s both; }
#intro-splash .intro-word-svg {
  width: 250px;
  height: auto;
  overflow: visible;
  /* a escrita: revela da esquerda para a direita, já na cor sólida */
  clip-path: inset(0 100% 0 0);
  animation: ls-escrever 1.5s cubic-bezier(0.55, 0, 0.2, 1) 0.4s forwards;
}
#intro-splash .intro-word-svg text {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
#intro-splash .intro-word-svg tspan { stroke: none; }
#intro-splash .intro-word-svg .tw-lava { fill: var(--text); }
#intro-splash .intro-word-svg .tw-sync { fill: var(--brand); }
@keyframes ls-escrever {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 -6% 0 0); }
}

@keyframes ls-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ls-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes ls-drop-in { from { opacity: 0; transform: translateY(12px) scale(0.86); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ls-water { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ls-word { from { opacity: 0; transform: translateY(14px); letter-spacing: 0.06em; } to { opacity: 1; transform: translateY(0); letter-spacing: -0.01em; } }
@keyframes ls-splash-out { to { opacity: 0; visibility: hidden; transform: scale(1.03); } }

/* ── CELULAR ────────────────────────────────── */
@media (max-width: 768px) {
  body { overflow: auto; height: auto; }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .mobile-logo { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text); }
  .mobile-logo span { color: var(--brand); }
  .hamburger { background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; padding: 4px 8px; line-height: 1; }

  .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 90; }
  .overlay.open { display: block; }

  .layout { flex-direction: column; height: auto; min-height: 100vh; }
  .sidebar { position: fixed; top: 0; left: -100%; height: 100vh; width: 264px; z-index: 200; transition: left 0.28s ease; }
  .sidebar.open { left: 0; }

  .main-content { padding: 22px 16px; min-height: calc(100vh - 56px); }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-group.full { grid-column: 1; }
  .card { padding: 22px 18px; }
  .page-header { margin-bottom: 22px; }
  .page-header h1 { font-size: 26px; }
  .wash-card { flex-direction: column; }
  .wash-actions { flex-direction: row; width: 100%; flex-wrap: wrap; }
  .wash-actions .btn-action { flex: 1; }
  .modal-grid { grid-template-columns: 1fr; }
  .servico-form { flex-direction: column; align-items: stretch; }
}

  .chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 22px; margin-top: 22px; }
  .chart-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 22px;
}
.chart-stack .chart-card canvas { max-height: 260px; }
  .chart-card canvas { max-height: 260px; }
  .top3-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .top3-item:last-child { border-bottom: none; }
  .top3-pos { font-weight: 700; color: var(--brand); width: 24px; }
  .top3-nome { flex: 1; }
  .top3-qtd { font-weight: 600; color: var(--muted); }

  
/* ── TELA INÍCIO (HOME) ─────────────────────── */

/* Faixa de crédito / vencimento */
.credito-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  background: var(--brand-tint);
}

/* ── TARJA DE ATENÇÃO (créditos acabando) — visível em todas as telas ── */
.tarja-credito {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff7ed;
  border: 1px solid #f5c583;
  color: #9a6a1a;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 14.5px;
  font-weight: 500;
}
.tarja-credito.critico {
  background: #fff1f0;
  border-color: #f5a9a4;
  color: #b23b34;
}
.tarja-credito[hidden] { display: none; }
.tarja-icone { font-size: 18px; flex-shrink: 0; }
.tarja-credito span:not(.tarja-icone) { flex: 1; }
.tarja-renovar {
  flex-shrink: 0;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  background: var(--gold);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s;
}
.tarja-credito.critico .tarja-renovar { background: var(--red); }
.tarja-renovar:hover { filter: brightness(1.05); }

@media (max-width: 680px) {
  .tarja-credito { flex-wrap: wrap; }
  .tarja-renovar { width: 100%; }
}

.credito-banner .credito-icon { font-size: 22px; line-height: 1; }
.credito-texto { display: flex; flex-direction: column; gap: 2px; }
.credito-texto strong { font-size: 16px; color: var(--text); font-weight: 600; }
.credito-texto span { font-size: 14px; color: var(--muted); }

/* Estado de alerta (<= 7 dias) */
.credito-banner.alerta {
  background: #fff7ed;
  border-color: #f5c583;
  animation: creditoPulse 2s ease-in-out infinite;
}
.credito-banner.alerta strong { color: var(--gold); }
.credito-banner.alerta .credito-texto span { color: #9a6a1a; }

/* Estado crítico (vencido) */
.credito-banner.critico {
  background: #fff1f0;
  border-color: #f5a9a4;
}
.credito-banner.critico strong { color: var(--red); }
.credito-banner.critico .credito-texto span { color: #b23b34; }

@keyframes creditoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(178,106,0,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(178,106,0,0); }
}

/* Setinha de comparação hoje x ontem */
.trend { font-weight: 600; font-size: 13px; }
.trend.up   { color: var(--green); }
.trend.down { color: var(--red); }
.trend.flat { color: var(--muted); }

/* Atalhos rápidos */
.home-atalhos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.atalho-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.atalho-btn:hover { border-color: var(--brand); background: var(--brand-tint); }
.atalho-ico { font-size: 18px; line-height: 1; }

/* Card de dica */
.dica-card { display: flex; flex-direction: column; gap: 12px; padding: 26px 30px; }
.dica-badge {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.dica-texto { font-size: 16px; color: var(--text); line-height: 1.5; }

/* ── INÍCIO: NOVOS BLOCOS ───────────────────── */

/* Botão renovar plano (dentro da faixa de crédito) */
.credito-banner .btn-renovar {
  margin-left: auto;
  white-space: nowrap;
  padding: 9px 16px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s;
}
.credito-banner .btn-renovar:hover { filter: brightness(1.05); }
.credito-banner.alerta .btn-renovar,
.credito-banner.critico .btn-renovar { background: var(--gold); }
.credito-banner.critico .btn-renovar { background: var(--red); }

/* Card de clima (layout rico) */
.clima-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.clima-topo { display: flex; flex-direction: column; gap: 2px; }
.clima-cidade { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.2; }
.clima-agora { font-size: 14px; color: var(--muted); }
.clima-atual { display: flex; align-items: center; gap: 14px; }
.clima-ico { font-size: 40px; line-height: 1; }
.clima-temp { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -0.02em; }
.clima-cond-box { display: flex; flex-direction: column; gap: 3px; }
.clima-cond { font-size: 15px; color: var(--brand); font-weight: 600; }
.clima-minmax { font-size: 13px; color: var(--muted); }
.clima-stats { display: flex; gap: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.clima-stat { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cs-label { font-size: 13px; color: var(--muted); }
.cs-valor { font-size: 16px; font-weight: 700; color: var(--text); }
.clima-card.chuva { background: #eef4ff; border-color: #b9d0f5; }

/* Alerta de carro parado na fila */
.fila-alerta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  margin-bottom: 28px;
  background: #fff7ed;
  border: 1px solid #f5c583;
  color: #9a6a1a;
  font-size: 15px;
  font-weight: 500;
}
.fila-alerta-ico { font-size: 20px; }

/* Meta do mês */
.meta-card { margin-bottom: 28px; padding: 26px 30px; }
.meta-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.meta-head .card-titulo { margin: 0; }
.meta-barra {
  width: 100%;
  height: 14px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.meta-preenchida {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.meta-preenchida.batida { background: var(--green); }
.meta-texto { font-size: 15px; color: var(--muted); margin-top: 12px; }
.meta-editor { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.meta-editor input { max-width: 200px; }

/* Cards de destaque (fechamento ontem / cliente fiel / semana) */
.destaques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.destaque-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; }
.destaque-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.destaque-valor { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); line-height: 1.2; }
.destaque-sub { font-size: 14px; color: var(--muted); }

/* Botão pequeno reutilizado na Início */
.meta-head .btn-x, .meta-editor .btn-x {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.meta-head .btn-x:hover, .meta-editor .btn-x:hover { border-color: var(--brand); color: var(--brand); }

/* ── INÍCIO: PLANO + CLIMA LADO A LADO ──────── */
.home-topo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  align-items: stretch;
}
.home-topo .credito-banner {
  margin-bottom: 0;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: 130px;
}
.home-topo .clima-card { margin-bottom: 0; height: 100%; }
.home-topo .btn-renovar { margin-left: 0; width: 100%; }
.home-topo .credito-icon { font-size: 30px; }

/* Em telas estreitas, empilha (o clima fica legível) */
@media (max-width: 680px) {
  .home-topo { grid-template-columns: 1fr; }
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.stat-trend .trend-icon {
  flex-shrink: 0;
}
.stat-trend.up { color: #137a45; }
.stat-trend.down { color: #d92d20; }
.stat-trend.flat { color: var(--muted); }

.trend-icon {
  vertical-align: middle;
  display: inline-block;
}
/* ── Card de link de agendamento (tela inicial do dono) ── */
.link-agendar-card { margin-top: 16px; }
.link-agendar-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.link-agendar-ico { font-size: 24px; line-height: 1; }
.link-agendar-head strong { font-size: 16px; font-weight: 600; display: block; }
.link-agendar-head p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.link-agendar-row { display: flex; gap: 8px; }
.link-agendar-row input {
  flex: 1; padding: 11px 13px; border: 1px solid var(--border-strong);
  border-radius: 10px; font-size: 14px; font-family: inherit; color: var(--text);
  background: var(--page); outline: none; min-width: 0;
}
.btn-copiar {
  border: none; border-radius: 10px; padding: 11px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; background: var(--brand); color: #fff;
  white-space: nowrap; transition: filter .15s, background .15s;
}
.btn-copiar:hover { filter: brightness(1.05); }
.btn-copiar.copiado { background: var(--green); }
.link-agendar-acoes { margin-top: 12px; }
.btn-qr {
  border: 1px solid var(--border-strong); background: #fff; color: var(--text);
  border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.btn-qr:hover { background: var(--page); }
.qr-box { margin-top: 16px; text-align: center; padding: 20px; background: var(--page); border-radius: 12px; }
.qr-box[hidden] { display: none; }
.qr-box #qr-code { display: inline-block; background: #fff; padding: 12px; border-radius: 10px; }
.qr-box #qr-code canvas, .qr-box #qr-code img { display: block; }
.qr-dica { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ── Notificação de novo agendamento (toast na tela) ── */
.agend-notif {
  position: fixed; top: 68px; right: 20px; z-index: 200; max-width: 340px;
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.16);
  animation: agend-in 0.35s cubic-bezier(0.2,0,0,1) both; cursor: pointer;
}
.agend-notif[hidden] { display: none; }
.agend-notif .an-topo { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.agend-notif .an-ico { font-size: 18px; }
.agend-notif .an-titulo { font-size: 15px; font-weight: 600; }
.agend-notif .an-corpo { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.agend-notif .an-dica { font-size: 12px; color: var(--brand); font-weight: 600; margin-top: 8px; }
@keyframes agend-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.agend-notif.saindo { animation: agend-out 0.3s ease forwards; }
@keyframes agend-out { to { opacity: 0; transform: translateX(20px); } }
