/* ============================================================
   ACELERA — App de agendamento (template)
   Design: tema claro, header/hero escuros, verde como cor de marca.
   Mobile-first. Em telas grandes, o app aparece como uma coluna
   central (formato "celular"), pra ficar igual à demonstração.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:          #e9ebef;
  --surface:     #ffffff;
  --surface-2:   #f5f6f8;
  --ink:         #0f1216;   /* header/hero escuros e texto forte */
  --ink-soft:    #1a1f26;
  --text:        #1c2128;
  --text-2:      #626b78;
  --line:        #e7e9ee;

  --brand:       #a87d16;   /* dourado da logo (cor da marca) */
  --brand-strong:#8a6510;
  --brand-ink:   #6b4e0b;
  --brand-soft:  #f8f1dd;
  --wa:          #25d366;
  --danger:      #ef4444;

  --r:   16px;
  --r-lg:22px;
  --r-xl:28px;
  --shadow:    0 8px 30px rgba(15, 18, 22, .08);
  --shadow-sm: 0 3px 12px rgba(15, 18, 22, .07);
  --shadow-up: 0 -6px 24px rgba(15, 18, 22, .08);

  --col: 540px;             /* largura máxima da "coluna app" */
  --appbar-h: 58px;
  --tabbar-h: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Poppins", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #20262e 0%, #12161b 45%, #0c0f13 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Coluna central "app" ---------- */
.app {
  position: relative;
  width: min(100%, var(--col));
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,.35);
}

/* ---------- App bar ---------- */
.appbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--col));
  height: calc(var(--appbar-h) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex; align-items: center; gap: 6px;
  padding-left: 8px; padding-right: 8px;
  background: transparent;
  color: #fff;
  z-index: 60;
  pointer-events: none;        /* deixa passar toque; só os botões capturam */
}
.appbar__btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0; color: #fff; border-radius: 50%;
  pointer-events: auto;
  background: rgba(16,19,23,.5);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
}
.appbar__btn:active { background: rgba(16,19,23,.78); }
/* ☰ sempre à direita; o botão "voltar" (fora da home) fica à esquerda */
#btn-menu { margin-left: auto; }

/* ---------- Drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 70; opacity: 0; transition: opacity .2s ease;
}
.drawer-backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; left: 50%;
  transform: translateX(calc(-1 * var(--col) / 2)) translateX(-105%);
  width: min(82%, 320px); height: 100vh;
  background: var(--ink); color: #fff;
  z-index: 80; padding: 18px 16px calc(18px + var(--safe-bottom));
  transition: transform .26s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 8px;
}
.drawer.is-open { transform: translateX(calc(-1 * var(--col) / 2)); }
@media (max-width: 560px) {
  .drawer { left: 0; transform: translateX(-105%); }
  .drawer.is-open { left: 0; transform: translateX(0); }
}
.drawer__head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer__head img { border-radius: 50%; }
.drawer__head strong { font-size: 1.05rem; }
.drawer__close { margin-left: auto; background: rgba(255,255,255,.08); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
.drawer__nav { display: flex; flex-direction: column; margin-top: 8px; }
.drawer__nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 10px; border-radius: 12px; font-weight: 500; color: #eef1f4;
}
.drawer__nav a:active { background: rgba(255,255,255,.08); }
.drawer__ic { width: 24px; text-align: center; }
.drawer__install {
  margin-top: auto; background: var(--brand); color: #fff; border: 0;
  border-radius: 12px; padding: 13px; font-weight: 600;
}
.drawer__install + .drawer__admin { margin-top: 8px; }
.drawer__admin {
  margin-top: auto; background: rgba(255,255,255,.06); color: #cfd6de;
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px; font-weight: 500;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 13px 18px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  transition: transform .06s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(91,102,115,.32); }
.btn--brand:disabled { background: #c8cdd4; color: #fff; box-shadow: none; cursor: not-allowed; }
.btn--whats { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.3); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--outline { background: transparent; color: var(--brand-ink); border: 1.5px solid var(--brand); }
.btn--danger { background: #fdeaea; color: var(--danger); border: 1px solid #f7cccc; }

/* ---------- Views + transições ---------- */
.view { display: none; animation: viewIn .28s ease both; }
.view.is-active { display: block; }
/* Agenda do profissional: em vez de reservar uma faixa vazia no topo, o próprio
   cabeçalho escuro sobe até lá e passa ATRÁS da appbar transparente — igual ao
   .ag-banner das outras telas. Quem afasta o conteúdo do botão de voltar é o
   padding do .agenda__head / .gate. */
#view-agenda { padding-top: 0; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   HOME
   ============================================================ */
/* Hero carrossel — sobe pro topo, atrás da appbar transparente */
/* Home já começa no topo (hero sob a appbar transparente). */
.hero { position: relative; height: 320px; overflow: hidden; background: #0c0f13; }
.hero__logo { position: absolute; top: calc(var(--safe-top) + 10px); left: 16px; z-index: 2; }
.hero__logo img {
  width: 58px; height: 58px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.9); background: #14171b; padding: 4px;
  object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.hero__carousel { display: flex; height: 100%; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.hero__slide { flex: 0 0 100%; height: 100%; background-size: cover; background-position: center; }
.hero__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 22px; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,10,13,.72) 0%, rgba(8,10,13,.25) 60%, transparent 100%);
}
.hero__kicker { color: #cfd6de; font-weight: 500; margin: 0 0 4px; font-size: .95rem; letter-spacing: .5px; }
.hero__title {
  margin: 0; color: #fff; font-weight: 800; font-style: italic;
  font-size: 2.35rem; line-height: .95; letter-spacing: -.5px; text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.hero__title span { color: #c3cad3; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; }
.hero__dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); padding: 0; }
.hero__dots button.is-active { background: #fff; width: 20px; border-radius: 4px; }

/* Bloco CTA */
.home-cta {
  background: var(--surface); margin: -18px 12px 0; position: relative;
  border-radius: var(--r-xl); padding: 20px 16px 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.home-cta__text { margin: 0; text-align: center; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.home-cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-cta__link { background: none; border: 0; color: var(--brand-ink); font-weight: 600; padding: 4px; }
/* WhatsApp da home: sem fundo verde (mesmo estilo neutro do botão ao lado) */
.home-cta__row .btn--whats {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}

/* Blocos de conteúdo (serviços/galeria/sobre) */
.block { padding: 26px 16px 8px; }
.block--soft { background: var(--surface-2); margin-top: 12px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.block__kicker { color: var(--brand-ink); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .74rem; margin: 0 0 4px; }
.block__title { margin: 0 0 16px; font-size: 1.4rem; font-weight: 700; color: var(--ink-soft); }
.block__note { color: var(--text-2); font-size: .9rem; margin: 14px 0 0; }
.center { text-align: center; margin-top: 16px; }

/* Serviços (grid de cards) */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px;
}
.svc-card__ic { font-size: 1.5rem; }
.svc-card__nome { font-weight: 600; color: var(--ink-soft); font-size: .98rem; }
.svc-card__meta { color: var(--text-2); font-size: .85rem; }
.svc-card__preco { color: var(--brand-ink); font-weight: 700; margin-top: 2px; }

/* Serviços (lista vertical, sem valores) */
.svc-vlist { display: flex; flex-direction: column; gap: 8px; }
.svc-vitem {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 15px; box-shadow: var(--shadow-sm);
}
.svc-vitem__ic { font-size: 1.35rem; width: 28px; text-align: center; flex: 0 0 auto; }
.svc-vitem__nome { font-weight: 600; color: var(--ink-soft); font-size: 1rem; }

/* Galeria */
.gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.gallery img { aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; width: 100%; }

/* Sobre */
.about img { width: 100%; border-radius: var(--r); margin-bottom: 14px; aspect-ratio: 16/10; object-fit: cover; }
.about p { color: var(--text-2); line-height: 1.55; margin: 0 0 12px; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { position: relative; padding-left: 26px; color: var(--text); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }

.home-foot { text-align: center; padding: 26px 16px; color: var(--text-2); font-size: .82rem; }
.home-foot__admin { background: none; border: 0; color: var(--text-2); font-size: .85rem; margin-bottom: 8px; }

/* ============================================================
   AGENDAR (wizard horizontal)
   ============================================================ */
.ag-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff; padding: calc(var(--appbar-h) + var(--safe-top)) 18px 26px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  text-align: center; box-shadow: 0 10px 26px rgba(54,61,71,.25);
}
.ag-banner--sm { padding-bottom: 20px; }
.ag-banner__tag { font-weight: 800; letter-spacing: 2px; font-size: .74rem; opacity: .92; }
.ag-banner__title { margin: 8px 0 0; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.ag-progress { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.ag-progress span { height: 5px; width: 22px; border-radius: 3px; background: rgba(255,255,255,.35); transition: background .2s; }
.ag-progress span.is-done { background: #fff; }
.ag-progress span.is-current { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

.ag-demo { margin: 12px 12px 0; background: #fff7e6; border: 1px solid #ffe2a8; color: #7a5b12; border-radius: 12px; padding: 10px 12px; font-size: .85rem; }

.wizard { padding: 16px 14px; position: relative; }
.step { display: none; }
.step.is-active { display: block; }
.step.slide-next { animation: slideNext .3s cubic-bezier(.4,0,.2,1) both; }
.step.slide-prev { animation: slidePrev .3s cubic-bezier(.4,0,.2,1) both; }
@keyframes slideNext { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slidePrev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.step__title { margin: 4px 0 4px; font-size: 1.25rem; font-weight: 700; color: var(--ink-soft); }
.step__hint { margin: 0 0 16px; color: var(--text-2); font-size: .9rem; }
.step__next { margin-top: 18px; }

/* Cards de barbeiro (linhas, com seta) */
.barbers { display: flex; flex-direction: column; gap: 12px; }
.barber {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px 14px; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .06s;
}
.barber:active { transform: scale(.99); }
.barber.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft), var(--shadow-sm); }
.barber__foto { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.barber__body { flex: 1; min-width: 0; }
.barber__nome { display: block; font-weight: 700; color: var(--ink-soft); font-size: 1.05rem; }
.barber__sub { display: block; color: var(--text-2); font-size: .85rem; }
.barber__go {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.2rem;
}

/* Serviços (lista selecionável) */
.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; box-shadow: var(--shadow-sm); transition: border-color .15s;
}
.svc-item.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.svc-item__ic { font-size: 1.4rem; width: 34px; text-align: center; }
.svc-item__body { flex: 1; min-width: 0; }
.svc-item__nome { display: block; font-weight: 600; color: var(--ink-soft); }
.svc-item__meta { display: block; color: var(--text-2); font-size: .84rem; }
.svc-item__check {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none;
  display: grid; place-items: center; color: #fff; font-size: .8rem;
}
.svc-item.is-active .svc-item__check { background: var(--brand); border-color: var(--brand); }

/* Calendário */
.cal__mes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-sm); }
.cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__seta { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); font-size: 1.3rem; line-height: 1; }
.cal__seta:disabled { opacity: .35; }
.cal__titulo { font-weight: 700; color: var(--ink-soft); }
.cal__grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__wd { text-align: center; font-size: .72rem; color: var(--text-2); padding: 4px 0; text-transform: lowercase; }
.cal__vazio { aspect-ratio: 1; }
.cal__dia {
  aspect-ratio: 1; border: 0; background: var(--surface-2); border-radius: 12px;
  color: var(--text); font-weight: 600; font-size: .95rem; display: grid; place-items: center;
}
.cal__dia--hoje { box-shadow: inset 0 0 0 2px var(--brand); }
.cal__dia.is-active { background: var(--brand); color: #fff; }
.cal__dia.is-disabled { opacity: .32; }

/* Horários */
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.time {
  padding: 14px 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px;
  font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.time.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.time.is-ocupado { background: var(--surface-2); color: var(--text-2); }
.time.is-disabled { opacity: .35; }
.time__lock { font-size: .75rem; margin-left: 4px; }

/* Formulário */
.ag-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: .85rem; color: var(--text-2); font-weight: 500; padding-left: 2px; }
.field input {
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px;
  padding: 14px; font-size: 1rem; color: var(--text); outline: none;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ag-summary {
  background: var(--brand-soft); border: 1px solid #d5d9df; border-radius: 14px;
  padding: 14px; color: var(--brand-ink); font-size: .95rem; line-height: 1.5;
}
.ag-summary[hidden] { display: none; }
.ag-msg { text-align: center; margin: 0; font-size: .9rem; min-height: 1.2em; }
.ag-msg--erro { color: var(--danger); }
.ag-msg--info { color: var(--brand-ink); }

.step__hint[hidden] { display: none; }

/* ============================================================
   CONTATO
   ============================================================ */
.contato { padding: 16px 14px; display: flex; flex-direction: column; gap: 14px; }
.contato__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.contato__card p { margin: 0 0 14px; color: var(--text); line-height: 1.55; }
.contato__card p:last-child { margin-bottom: 0; }
.contato__card a { color: var(--brand-ink); font-weight: 600; }
.contato__map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.contato__actions { display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   AGENDA DO PROFISSIONAL (admin)
   ============================================================ */
.gate { padding: calc(var(--appbar-h) + var(--safe-top) + 30px) 20px 40px; text-align: center; }
.gate__ic { font-size: 2.4rem; }
.gate h3 { margin: 12px 0 4px; color: var(--ink-soft); }
.gate p { color: var(--text-2); margin: 0 0 18px; }
.gate input {
  width: 100%; max-width: 260px; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; font-size: 1.1rem; text-align: center; letter-spacing: 4px; margin-bottom: 12px; outline: none;
}
.gate input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.agenda__head {
  background: var(--ink); color: #fff;
  /* o topo passa por baixo da appbar: sobe a faixa escura até a borda da tela.
     A data ocupa a MESMA linha do botão de voltar (ver .agenda__data), então
     aqui não se reserva a altura da appbar — é o que devolve espaço de tela. */
  padding: calc(var(--safe-top) + 8px) 16px 20px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
/* Data ao lado da setinha: mesma altura do botão (42px) e recuo suficiente pra
   não passar por baixo dele — o botão vai de 8px a 50px da borda e o conteúdo
   do head já começa em 16px. */
.agenda__data {
  display: flex; align-items: center; min-height: 42px;
  padding-left: 44px;
  font-size: 1.15rem; font-weight: 700; margin: 0 0 12px;
}
.agenda__resumo {
  display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08);
  border-radius: var(--r); padding: 10px 12px;
}
.agenda__resumo img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.agenda__resumo b { display: block; font-size: 1.05rem; }
.agenda__resumo small { color: #b9c0c8; }

.agenda__barbeiros { display: flex; gap: 8px; overflow-x: auto; padding: 14px 14px 4px; }
.agenda__barb {
  display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none;
  background: transparent; border: 0; width: 66px;
}
.agenda__barb img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; background: var(--surface-2); }
.agenda__barb.is-active img { border-color: var(--brand); }
.agenda__barb span { font-size: .74rem; color: var(--text-2); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda__barb.is-active span { color: var(--brand-ink); font-weight: 600; }

.agenda__daynav { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 10px; }
.agenda__daynav button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 1.2rem; }
.agenda__daynav .agenda__cont { font-weight: 600; color: var(--text-2); font-size: .9rem; }

.agenda__list { list-style: none; margin: 0; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.agenda__item {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r);
  padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.agenda__item-info { flex: 1; min-width: 0; }
.agenda__hora { font-weight: 700; color: var(--ink-soft); }
.agenda__nome { font-weight: 600; color: var(--ink-soft); }
.agenda__sub { display: block; color: var(--text-2); font-size: .84rem; }
.agenda__acoes { display: flex; gap: 8px; }
.agenda__wa, .agenda__del { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 0; font-size: 1.2rem; }
.agenda__wa { background: var(--wa); color: #fff; }
.agenda__del { background: #fdeaea; color: var(--danger); }
.agenda__vazio { text-align: center; color: var(--text-2); padding: 40px 16px; }
.agenda__dica { text-align: center; color: var(--text-2); font-size: .8rem; margin: 4px 0 0; }

/* ============================================================
   NAV INFERIOR
   ============================================================ */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, var(--col));
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: var(--shadow-up); z-index: 55;
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
}
.tabbar__item {
  background: none; border: 0; color: var(--text-2);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: .72rem; font-weight: 500; height: 100%; justify-content: center;
}
.tabbar__item.is-active { color: var(--brand-ink); }
.tabbar__item--fab { position: relative; }
.tabbar__fab {
  width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; margin-top: -26px; box-shadow: 0 8px 20px rgba(91,102,115,.4);
  border: 4px solid var(--bg);
}
.tabbar__item--fab.is-active .tabbar__fab { background: var(--brand-strong); }

/* Flutuantes */
.whats-float {
  position: fixed; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px);
  left: 50%; transform: translateX(calc(var(--col) / 2 - 40px));
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); z-index: 54;
}
@media (max-width: 560px) { .whats-float { transform: none; right: 16px; left: auto; } }

/* ============================================================
   MODAIS
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; background: rgba(8,10,13,.6); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal__sheet {
  width: min(100%, var(--col)); background: var(--surface); color: var(--text);
  border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 24px 20px calc(24px + var(--safe-bottom));
  box-shadow: 0 -10px 40px rgba(0,0,0,.3); animation: sheetUp .3s cubic-bezier(.4,0,.2,1);
  max-height: 90vh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.modal__sheet h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--ink-soft); }
.modal__acoes { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* Sucesso — folha escura (como na demonstração) */
.modal__sheet--ok { background: var(--ink); color: #fff; text-align: center; }
.ok-check {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--brand); display: grid; place-items: center; color: #fff; font-size: 2.2rem;
  box-shadow: 0 0 0 8px rgba(91,102,115,.18);
}
.ok-title { margin: 0 0 16px; font-size: 1.45rem; font-weight: 700; }
.ok-linha {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: rgba(255,255,255,.06); border-radius: 14px; padding: 13px 14px; margin-bottom: 8px;
}
.ok-linha__ic { font-size: 1.2rem; width: 24px; text-align: center; }
.ok-linha b { display: block; font-size: .98rem; }
.ok-linha small { color: #b9c0c8; }
.ok-nota { color: #b9c0c8; font-size: .88rem; margin: 12px 0 0; }

/* Detalhe reservado */
.det-linhas { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; }
.det-linha { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.det-linha span { color: var(--text-2); }
.det-linha strong, .det-linha a { color: var(--ink-soft); }
.det-linha a { color: var(--brand-ink); font-weight: 600; }

/* Assinatura / planos (Ana e Jhon) */
.plan-head { text-align: center; margin-bottom: 6px; }
.plan-head__tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  color: var(--brand-ink); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px;
}
.plan-head h3 { margin: 12px 0 4px; }
.plan-head__sub { color: var(--text-2); font-size: .92rem; margin: 0; }
.plans { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 4px; }
.plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  background: var(--surface-2); transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.plan:hover { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.plan:active { transform: scale(.99); }
.plan__body { min-width: 0; }
.plan__nome { display: block; font-weight: 700; color: var(--ink-soft); }
.plan__det { display: block; font-size: .8rem; color: var(--text-2); }
.plan__preco { font-weight: 800; color: var(--brand-ink); font-size: 1.15rem; white-space: nowrap; text-align: right; }
.plan__preco small { display: block; font-weight: 500; font-size: .72rem; color: var(--text-2); }
.plan__go { color: var(--text-2); font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }

/* Folga (dia bloqueado) */
.cal__dia--folga { position: relative; }
.cal__dia--folga::after {
  content: "🌴"; position: absolute; top: 1px; right: 2px; font-size: .6rem;
}
.agenda__folga {
  margin: 0 14px 12px; padding: 14px 16px; border-radius: var(--r);
  background: #fff7e6; border: 1px solid #ffe0a3; color: #8a5a00;
}
.agenda__folga b { display: block; font-size: 1rem; }
.agenda__folga span { display: block; font-size: .85rem; margin-top: 2px; }
.agenda__folga-acao { padding: 0 14px 14px; }

/* Bloqueio de horários específicos (admin) */
.agenda__slots-wrap { padding: 4px 14px 8px; }
.agenda__slots-tit { font-weight: 700; color: var(--ink-soft); margin: 0 0 10px; font-size: .98rem; }
.agenda__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.slotchip {
  padding: 11px 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink-soft); font: inherit; font-weight: 600;
  font-size: .92rem; cursor: pointer; transition: transform .1s ease, border-color .15s ease;
}
.slotchip:not(.is-taken):active { transform: scale(.96); }
.slotchip.is-blocked { background: #fdeaea; border-color: #f7cccc; color: var(--danger); }
.slotchip.is-taken { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.agenda__slots-hint { color: var(--text-2); font-size: .8rem; margin: 10px 0 4px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utilidades ---------- */
[hidden] { display: none !important; }
