/* ============ Barbearia Exemplo · tokens (tema Urbano) ============ */
:root {
  --paper: #efe8dc;
  --paper-2: #e5dccd;
  --sheet: #f8f4ee;
  --ink: #171313;
  --ink-2: #463c38;
  --ink-3: #6b5e57;
  --blood: #7d1416;
  --blood-2: #9b2b25;
  --blood-soft: #f1dcd6;
  --on-blood: #f8efe6;
  --line: rgba(23, 19, 19, .14);
  --line-2: rgba(23, 19, 19, .26);
  --ok: #2d6a3a;
  --ok-soft: #dcebdc;
  --warn: #9a5d12;
  --warn-soft: #f4e5cc;
  --r: 4px;
  --shadow: 0 1px 2px rgba(23, 19, 19, .08), 0 8px 24px -10px rgba(23, 19, 19, .28);
  --shadow-photo: 0 2px 4px rgba(23, 19, 19, .12), 0 18px 40px -18px rgba(23, 19, 19, .5);
  --font: 'Archivo', system-ui, sans-serif;
  --gothic: 'Grenze Gotisch', 'Archivo', serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--font); font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
::selection { background: var(--blood); color: var(--on-blood); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 2px; border-radius: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbbfae; border-radius: 10px; border: 2px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
svg.lucide { width: 1.15em; height: 1.15em; stroke-width: 1.9; flex: none; }

/* ============ base controls ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.25rem; border: 1px solid transparent; border-radius: var(--r);
  font-weight: 650; font-size: 1rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blood); color: var(--on-blood); }
.btn-primary:hover { background: var(--blood-2); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2d2523; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(23, 19, 19, .04); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 .75rem; }
.btn-quiet:hover { color: var(--ink); background: rgba(23, 19, 19, .05); }
.btn-danger { background: transparent; color: var(--blood); border-color: rgba(125, 20, 22, .35); }
.btn-danger:hover { background: var(--blood-soft); }
.btn-sm { min-height: 36px; padding: 0 .8rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r);
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
}
.icon-btn:hover { background: rgba(23, 19, 19, .06); color: var(--ink); }

.field { display: grid; gap: .35rem; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: .8rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--sheet); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 84px; resize: vertical; }
.input::placeholder { color: #8a7d75; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blood); box-shadow: 0 0 0 3px rgba(125, 20, 22, .14); }
.input.err { border-color: var(--blood); }
.err-msg { color: var(--blood); font-size: .85rem; font-weight: 550; }
.row { display: flex; gap: .75rem; align-items: center; }
.grid2 { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }

.chip {
  display: inline-flex; align-items: center; gap: .4em; min-height: 36px; padding: 0 .85rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: .9rem; font-weight: 550; color: var(--ink-2);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.tag {
  display: inline-flex; align-items: center; gap: .3em; padding: .12rem .5rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.tag-cacheado { background: var(--blood-soft); color: var(--blood); }
.tag-liso { background: #e2e0dc; color: #3c3633; }
.tag-todos { background: transparent; color: var(--ink-3); border: 1px solid var(--line); }
.tag-ex { background: var(--warn-soft); color: var(--warn); }

.toggle { position: relative; width: 44px; height: 26px; flex: none; }
.toggle input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: relative; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: #cfc5b7; transition: background .2s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.toggle input:checked + span { background: var(--ok); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { outline: 2px solid var(--blood); outline-offset: 2px; }

#toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: .8rem 1.1rem; border-radius: var(--r); font-weight: 550; font-size: .95rem;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); z-index: 100; max-width: calc(100vw - 32px);
  box-shadow: var(--shadow);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* demo ribbon */
.demo-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--ink); color: #d9cfc2; font-size: .8rem; padding: .45rem 16px;
}
.demo-bar b { color: var(--paper); font-weight: 650; }
.demo-bar a, .demo-bar button { color: var(--paper); background: none; border: 0; padding: 0; font-size: .8rem; font-weight: 600; text-decoration: underline; }

/* ============ SITE DO CLIENTE ============ */
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.site-head {
  position: sticky; top: 0; z-index: 20; background: rgba(239, 232, 220, .92);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-head.scrolled { border-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.wordmark { display: block; width: 168px; }
.wordmark img { width: 100%; height: auto; }
.wordmark-text { width: auto !important; font-family: var(--gothic); font-weight: 800; font-size: 1.9rem; line-height: .9; color: var(--blood); text-decoration: none; display: flex; flex-direction: column; }
.wordmark-text small { font-family: var(--font); font-weight: 750; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
.book-head .wordmark-text { font-size: 1.4rem; margin-left: auto; }
.login-card .wordmark-text { align-items: center; font-size: 2.6rem; }

.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 32px; }
.hero-grid > * { min-width: 0; }
.hero h1 {
  margin: 0; font-weight: 850; font-variation-settings: 'wdth' 72; text-transform: uppercase;
  font-size: clamp(2.6rem, 10.5vw, 5.2rem); line-height: .9; letter-spacing: -.01em; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--blood); }
.hero-lede { margin: 18px 0 0; font-size: 1.08rem; color: var(--ink-2); max-width: 34ch; }
.hero-lede b { color: var(--ink); font-weight: 650; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 24px; align-items: center; }
.hero-cta .btn-primary { min-height: 56px; padding: 0 1.6rem; font-size: 1.05rem; }
.hero-note { display: flex; align-items: center; gap: .45rem; color: var(--ink-3); font-size: .88rem; margin-top: 12px; }

.collage { position: relative; aspect-ratio: 4 / 4.4; max-width: 520px; margin-inline: auto; width: 100%; }
.photo {
  position: absolute; background: #fff; padding: 8px; box-shadow: var(--shadow-photo);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.collage .p1 { inset: 0 18% 8% 0; transform: rotate(-1.6deg); }
.collage .p2 { width: 46%; aspect-ratio: 4/5; right: 0; bottom: 0; transform: rotate(2.4deg); }
.collage .p1 img { object-position: 50% 52%; }
.collage .p2 img { object-position: 50% 30%; }
.collage .stamp {
  position: absolute; left: -6px; bottom: 14%; background: var(--blood); color: var(--on-blood);
  font-family: var(--gothic); font-weight: 700; font-size: 1.25rem; line-height: 1; padding: .55rem .8rem .6rem;
  transform: rotate(-4deg); box-shadow: var(--shadow);
}

/* próximos horários: o mecanismo logo de cara */
.next-slots { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.next-slots h2 { margin: 0 0 12px; font-size: .95rem; font-weight: 650; display: flex; align-items: center; gap: .5rem; }
.next-slots h2 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(45, 106, 58, .18); }
.slot-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.slot-strip::-webkit-scrollbar { display: none; }
.slot-pill {
  flex: none; display: grid; gap: 1px; text-align: left; padding: .55rem .85rem; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--sheet); min-width: 92px; transition: border-color .2s, background .2s;
}
.slot-pill:hover { border-color: var(--blood); background: #fff; }
.slot-pill small { font-size: .74rem; color: var(--ink-3); text-transform: capitalize; }
.slot-pill b { font-size: 1.05rem; font-weight: 700; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.quick a, .quick button {
  display: grid; justify-items: center; gap: 6px; padding: 16px 4px; background: var(--paper); border: 0;
  font-size: .82rem; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s;
}
.quick a:hover, .quick button:hover { background: var(--sheet); color: var(--blood); }
.quick svg.lucide { width: 22px; height: 22px; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 22px; }
.section h2.g { margin: 0; font-family: var(--gothic); font-weight: 700; font-size: clamp(2.1rem, 7vw, 3.2rem); line-height: 1; color: var(--blood); }
.section-sub { margin: 8px 0 0; color: var(--ink-2); max-width: 46ch; }

.svc-preview { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.svc-line { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.svc-line h3 { margin: 0; font-size: 1.05rem; font-weight: 650; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.svc-line p { margin: 0; color: var(--ink-3); font-size: .9rem; grid-column: 1; }
.svc-line .price { text-align: right; font-weight: 700; }
.svc-line .price small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.svc-cols { display: grid; gap: 36px; }
.svc-cols h3.col-t { margin: 0 0 10px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; }
.gallery .photo { position: relative; padding: 6px; }
.gallery .photo img { aspect-ratio: 4/5; }
.gallery figure:nth-child(odd) .photo { transform: rotate(-1deg); }
.gallery figure:nth-child(even) .photo { transform: rotate(1.2deg); margin-top: 18px; }
.gallery figcaption { margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--ink-2); display: flex; gap: .4rem; align-items: center; }

.dark-band { background: var(--ink); color: var(--paper); }
.dark-band .section h2.g { color: #e7c9bf; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid rgba(239, 232, 220, .14); }
.hours-table td:last-child { text-align: right; color: #d6cbbd; }
.hours-table tr.today td { color: var(--paper); font-weight: 700; }
.hours-table tr.today td:first-child::after { content: ' · hoje'; color: #e7a99b; font-weight: 600; }
.visit { display: grid; gap: 40px; }
.visit p { color: #d6cbbd; margin: 0 0 1rem; }
.policy { display: grid; gap: 14px; margin-top: 8px; }
.policy div { display: grid; grid-template-columns: 28px 1fr; gap: .25rem; color: #d6cbbd; font-size: .95rem; }
.policy svg.lucide { color: #e7a99b; margin-top: 2px; }
.policy b { color: var(--paper); font-weight: 650; }
.site-foot { padding: 28px 0 40px; color: #a99c8f; font-size: .85rem; border-top: 1px solid rgba(239, 232, 220, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot a { color: var(--paper); }

/* sheet (horários / detalhes) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(23, 19, 19, .45); z-index: 60; opacity: 0; transition: opacity .25s; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow: auto;
  background: var(--sheet); border-radius: 14px 14px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .4s var(--ease); box-shadow: 0 -10px 40px rgba(0,0,0,.2);
}
.sheet.open { transform: translateY(0); }
.sheet h3 { margin: 0 0 4px; font-size: 1.25rem; }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 14px; }
@media (min-width: 760px) {
  .sheet { left: auto; top: 0; right: 0; bottom: 0; width: 440px; max-height: none; border-radius: 0; transform: translateX(100%); }
  .sheet.open { transform: translateX(0); }
}

/* ============ FLUXO DE AGENDAMENTO ============ */
.book { min-height: 100dvh; display: flex; flex-direction: column; }
.book-head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.book-head .wrap { display: flex; align-items: center; gap: .5rem; height: 60px; }
.book-head .wordmark { width: 120px; margin-left: auto; }
.progress { display: flex; gap: 4px; padding: 0 16px 10px; max-width: 1120px; margin: 0 auto; }
.progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--paper-2); transition: background .3s; }
.progress i.on { background: var(--blood); }
.book-body { flex: 1; padding: 24px 0 140px; }
.book-body .wrap { max-width: 720px; }
.step-t { margin: 0; font-weight: 850; font-variation-settings: 'wdth' 75; text-transform: uppercase; font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: .95; }
.step-sub { margin: 8px 0 22px; color: var(--ink-2); }
.step-count { font-size: .8rem; font-weight: 650; color: var(--ink-3); margin-bottom: 6px; letter-spacing: .02em; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; margin-bottom: 14px; }
.tabs button { min-height: 48px; border: 0; background: transparent; font-weight: 700; font-size: 1rem; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.filters .lbl { font-size: .85rem; color: var(--ink-3); margin-right: .25rem; }

.svc-list { display: grid; gap: 10px; }
.svc {
  position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: .2rem .85rem; align-items: start; width: 100%; text-align: left;
  padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sheet);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.svc:hover { border-color: var(--ink); }
.svc[aria-pressed="true"] { border-color: var(--blood); background: #fff; box-shadow: inset 0 0 0 1px var(--blood); }
.svc .box { width: 22px; height: 22px; border-radius: 4px; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin-top: 2px; transition: background .2s, border-color .2s; }
.svc[aria-pressed="true"] .box { background: var(--blood); border-color: var(--blood); color: #fff; }
.svc .box svg { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.svc[aria-pressed="true"] .box svg { opacity: 1; }
.svc h3 { margin: 0; font-size: 1.02rem; font-weight: 650; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.svc p { margin: 2px 0 0; color: var(--ink-3); font-size: .88rem; grid-column: 2; }
.svc .meta { text-align: right; font-weight: 700; white-space: nowrap; }
.svc .meta small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8rem; }

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--sheet); border-top: 1px solid var(--line);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px -12px rgba(23, 19, 19, .25);
}
.bottom-bar .wrap { max-width: 720px; display: flex; align-items: center; gap: 1rem; }
.bottom-bar .sum { flex: 1; min-width: 0; }
.bottom-bar .sum b { display: block; font-size: 1.1rem; }
.bottom-bar .sum small { color: var(--ink-3); font-size: .85rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottom-bar .btn { min-width: 150px; }

.pro-list { display: grid; gap: 10px; }
.pro-opt { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sheet); text-align: left; width: 100%; }
.pro-opt[aria-pressed="true"] { border-color: var(--blood); box-shadow: inset 0 0 0 1px var(--blood); background: #fff; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--paper-2); display: grid; place-items: center; font-weight: 750; color: var(--blood); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.pro-opt b { display: block; font-size: 1.02rem; }
.pro-opt small { color: var(--ink-3); }

/* calendário */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day {
  flex: none; scroll-snap-align: start; width: 64px; padding: 10px 0 9px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sheet);
  display: grid; justify-items: center; gap: 1px; transition: border-color .2s, background .2s;
}
.day small { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.day b { font-size: 1.35rem; font-weight: 750; line-height: 1.1; }
.day span { font-size: .7rem; color: var(--ink-3); }
.day:hover:not([disabled]) { border-color: var(--ink); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] span { color: #cfc4b6; }
.day[disabled] { opacity: .4; cursor: not-allowed; background: transparent; }
.month-label { font-weight: 700; text-transform: capitalize; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.slot-group { margin-bottom: 18px; }
.slot-group h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.slot {
  min-height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sheet); font-weight: 650; font-size: 1rem;
  transition: border-color .15s, background .15s;
}
.slot:hover { border-color: var(--blood); }
.slot[aria-pressed="true"] { background: var(--blood); border-color: var(--blood); color: var(--on-blood); }
.empty { padding: 28px 18px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }

.summary { border: 1px solid var(--ink); border-radius: var(--r); background: var(--sheet); margin-bottom: 22px; }
.summary .s-row { display: flex; justify-content: space-between; gap: 1rem; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary .s-row:last-child { border-bottom: 0; }
.summary .s-row span:first-child { color: var(--ink-3); }
.summary .s-row b { text-align: right; }
.summary .s-total { background: var(--ink); color: var(--paper); }
.summary .s-total span:first-child { color: #cfc4b6; }

.hold {
  display: flex; align-items: center; gap: .75rem; padding: 12px 14px; border-radius: var(--r); background: var(--warn-soft); color: #5c3a0b; font-size: .92rem; margin-bottom: 18px;
}
.hold b { font-size: 1.05rem; }
.hold.expired { background: var(--blood-soft); color: var(--blood); }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.pay-tab { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 54px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sheet); font-weight: 700; }
.pay-tab[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.pix-box { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.pix-box svg.qr { width: 196px; height: 196px; }
.copy-row { display: flex; gap: 8px; width: 100%; }
.copy-row .input { font-size: .8rem; min-height: 44px; color: var(--ink-3); }
.fineprint { font-size: .82rem; color: var(--ink-3); }
.policy-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); font-size: .9rem; color: var(--ink-2); margin: 18px 0; display: grid; gap: 6px; }
.policy-box b { color: var(--ink); }
.check { display: flex; gap: .65rem; align-items: start; font-size: .92rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--blood); margin: 1px 0 0; flex: none; }

/* ticket de confirmação */
.ticket { background: #fff; border-radius: 6px; box-shadow: var(--shadow-photo); overflow: hidden; margin: 6px 0 24px; }
.ticket-top { background: var(--blood); color: var(--on-blood); padding: 22px 20px 20px; position: relative; }
.ticket-top .gt { font-family: var(--gothic); font-size: 1.6rem; line-height: 1; font-weight: 700; }
.ticket-top .when { font-weight: 850; font-variation-settings: 'wdth' 75; text-transform: uppercase; font-size: 2.2rem; line-height: .95; margin-top: 12px; }
.ticket-top .when small { display: block; font-size: 1rem; font-variation-settings: 'wdth' 100; font-weight: 600; text-transform: none; margin-top: 6px; color: #f0d6cf; }
.ticket-perf { height: 0; border-top: 2px dashed var(--line-2); margin: 0 14px; position: relative; }
.ticket-perf::before, .ticket-perf::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); }
.ticket-perf::before { left: -26px; } .ticket-perf::after { right: -26px; }
.ticket-body { padding: 8px 20px 18px; }
.ticket-body .s-row { display: flex; justify-content: space-between; gap: 1rem; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.ticket-body .s-row:last-child { border-bottom: 0; }
.ticket-body .s-row span:first-child { color: var(--ink-3); }
.ticket-body .s-row b { text-align: right; }
.success-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: 14px; animation: pop .6s var(--ease) both; }
.success-mark svg { width: 30px; height: 30px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.st-confirmado { background: var(--ok-soft); color: var(--ok); }
.st-aguardando { background: var(--warn-soft); color: var(--warn); }
.st-cancelado { background: #e6e1da; color: #5a504a; text-decoration: line-through; }
.st-concluido { background: #e3ddd4; color: var(--ink-2); }
.st-faltou { background: var(--blood-soft); color: var(--blood); }

/* ============ SITE: desktop ============ */
@media (min-width: 760px) {
  .wordmark { width: 210px; }
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
  .collage { max-width: none; }
  .hero h1 { font-size: clamp(2.8rem, 5.4vw, 5.2rem); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .gallery figure:nth-child(3n+2) .photo { margin-top: 36px; }
  .svc-cols { grid-template-columns: 1fr 1fr; gap: 56px; }
  .visit { grid-template-columns: 1fr 1fr; gap: 64px; }
  .section { padding: 80px 0; }
}

/* ============ PAINEL (ADMIN) ============ */
.admin { --paper: #f4efe7; min-height: 100dvh; background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.admin-top { display: flex; align-items: center; gap: .75rem; height: 58px; padding: 0 16px; background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 25; }
.admin-top .brand { display: flex; align-items: baseline; gap: .6rem; }
.admin-top .brand .gt { font-family: var(--gothic); font-weight: 700; font-size: 1.45rem; color: #e7c9bf; line-height: 1; white-space: nowrap; }
@media (max-width: 420px) { .admin-top .brand .gt { font-size: 1.2rem; } .admin-top .brand small { display: none; } }
.admin-top .brand small { color: #a99c8f; font-size: .8rem; }
.admin-top .sp { flex: 1; }
.admin-top .icon-btn { color: #d6cbbd; }
.admin-top .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-top .me { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: #d6cbbd; }
.admin-top .me .avatar { width: 32px; height: 32px; }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 0; }
.side-nav { display: none; }
.admin-main { padding: 20px 16px 110px; min-width: 0; }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--sheet); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a { display: grid; justify-items: center; gap: 3px; padding: 9px 0 8px; font-size: .7rem; font-weight: 650; color: var(--ink-3); text-decoration: none; }
.bottom-nav a svg.lucide { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--blood); }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 1.6rem; font-weight: 800; font-variation-settings: 'wdth' 85; letter-spacing: -.01em; }
.page-head p { margin: 2px 0 0; color: var(--ink-3); font-size: .92rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

@media (min-width: 960px) {
  .admin-shell { grid-template-columns: 228px 1fr; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; border-right: 1px solid var(--line); position: sticky; top: 58px; height: calc(100dvh - 58px); }
  .side-nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: var(--r); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
  .side-nav a:hover { background: rgba(23,19,19,.05); color: var(--ink); }
  .side-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
  .side-nav .sep { flex: 1; }
  .side-nav .foot { font-size: .8rem; color: var(--ink-3); padding: .5rem .8rem; }
  .bottom-nav { display: none; }
  .admin-main { padding: 28px 32px 48px; }
}

/* agenda */
.agenda-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 14px; }
.date-nav { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--sheet); }
.date-nav .icon-btn { border-radius: 0; }
.date-nav .lbl { min-width: 170px; text-align: center; font-weight: 700; font-size: .95rem; text-transform: capitalize; padding: 0 .25rem; }
.day-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-3); margin-bottom: 14px; }
.day-stats b { color: var(--ink); font-size: 1rem; }
.agenda-wrap { display: grid; gap: 20px; }
.timeline { position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tl-row { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.tl-row.half { border-top-style: dashed; border-top-color: rgba(23,19,19,.07); }
.tl-row span { position: absolute; left: 10px; top: -1px; transform: translateY(-50%); background: var(--sheet); padding: 0 4px; font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.tl-row:first-child span { transform: none; top: 4px; }
.tl-free { position: absolute; left: 62px; right: 8px; border: 0; background: transparent; border-radius: var(--r); color: transparent; font-size: .82rem; font-weight: 600; text-align: left; padding: 0 10px; transition: background .15s, color .15s; }
.tl-free:hover, .tl-free:focus-visible { background: rgba(45,106,58,.08); color: var(--ok); }
.tl-item {
  position: absolute; left: 62px; right: 8px; border-radius: var(--r); padding: 6px 10px; text-align: left; border: 0;
  display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; font-size: .85rem; line-height: 1.25;
  transition: transform .15s var(--ease), box-shadow .15s;
}
.tl-item:hover { box-shadow: var(--shadow); z-index: 2; }
.tl-item .t { font-weight: 700; display: flex; gap: .4rem; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-item .d { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-appt { background: var(--ink); color: var(--paper); }
.tl-appt.fem { background: var(--blood); color: var(--on-blood); }
.tl-appt.done { background: #d9d1c5; color: var(--ink-2); }
.tl-appt.wait { background: var(--warn-soft); color: #5c3a0b; outline: 1px dashed var(--warn); }
.tl-appt.noshow { background: var(--blood-soft); color: var(--blood); }
.tl-block { background: repeating-linear-gradient(-45deg, #e9e2d6, #e9e2d6 6px, #e1d9cb 6px, #e1d9cb 12px); color: var(--ink-2); }
.tl-now { position: absolute; left: 56px; right: 0; height: 2px; background: var(--blood-2); z-index: 3; pointer-events: none; }
.tl-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--blood-2); }
.tl-closed { padding: 48px 20px; text-align: center; color: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--ink-3); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.side-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.side-card h3 { margin: 0 0 10px; font-size: .95rem; }
.cancel-list { display: grid; gap: 8px; font-size: .88rem; }
.cancel-list div { display: flex; justify-content: space-between; gap: .5rem; color: var(--ink-3); }
@media (min-width: 1200px) { .agenda-wrap { grid-template-columns: 1fr 300px; align-items: start; } }

/* detalhe */
.detail-rows { display: grid; border-top: 1px solid var(--line); margin: 6px 0 18px; }
.detail-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.detail-rows span { color: var(--ink-3); }
.detail-rows b { text-align: right; }
.stack { display: grid; gap: 10px; }
.radio-cards { display: grid; gap: 8px; }
.radio-cards label { display: flex; gap: .7rem; align-items: start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; cursor: pointer; font-size: .92rem; }
.radio-cards input { accent-color: var(--blood); width: 18px; height: 18px; margin: 2px 0 0; }
.radio-cards label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-cards small { display: block; color: var(--ink-3); }

/* tabelas de CRUD */
.list { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); }
.list-group-t { padding: 14px 16px 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 750; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.list-item { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item.off { opacity: .55; }
.list-item h3 { margin: 0; font-size: 1rem; font-weight: 650; display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.list-item p { margin: 3px 0 0; font-size: .86rem; color: var(--ink-3); }
.list-item .right { display: flex; align-items: center; gap: .75rem; }
.list-item .price { font-weight: 750; font-size: 1.05rem; min-width: 86px; text-align: right; }
.inline-price { display: flex; align-items: center; gap: 4px; }
.inline-price .input { width: 96px; min-height: 38px; padding: .35rem .5rem; text-align: right; font-weight: 700; }
.settings-grid { display: grid; gap: 18px; max-width: 760px; }
.set-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; }
.set-card h2 { margin: 0; font-size: 1.05rem; }
.set-card > p { margin: -8px 0 0; color: var(--ink-3); font-size: .9rem; }
.hours-edit { display: grid; gap: 8px; }
.hours-edit .hr { display: grid; grid-template-columns: 90px 44px 1fr; gap: .6rem; align-items: center; font-size: .92rem; }
.hours-edit .times { display: flex; align-items: center; gap: .4rem; }
.hours-edit .times .input { min-height: 40px; padding: .3rem .5rem; width: 100%; max-width: 120px; }
.hours-edit .closed { color: var(--ink-3); font-size: .88rem; }
.pct-row { display: flex; align-items: center; gap: 12px; }
.pct-row input[type=range] { flex: 1; accent-color: var(--blood); }
.pct-row output { font-weight: 800; font-size: 1.3rem; min-width: 60px; text-align: right; }

/* dashboard */
.period { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--sheet); }
.period button { border: 0; background: transparent; padding: 0 14px; min-height: 40px; font-weight: 650; font-size: .9rem; color: var(--ink-2); }
.period button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.kpi { background: var(--sheet); padding: 16px; }
.kpi span { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.kpi b { display: block; font-size: 1.9rem; font-weight: 800; font-variation-settings: 'wdth' 85; line-height: 1.1; margin-top: 4px; }
.kpi small { font-size: .8rem; color: var(--ink-3); }
.kpi small.up { color: var(--ok); font-weight: 650; }
.kpi small.down { color: var(--blood); font-weight: 650; }
.dash-grid { display: grid; gap: 20px; }
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.panel h2 { margin: 0 0 4px; font-size: 1.02rem; }
.panel > p { margin: 0 0 16px; color: var(--ink-3); font-size: .86rem; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--ink); transition: fill .15s; }
.chart .bar.hi { fill: var(--blood); }
.chart .bar:hover { fill: var(--blood-2); }
.chart .grid { stroke: var(--line); }
.rank { display: grid; gap: 12px; }
.rank-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .9rem; }
.rank-row .name { display: flex; gap: .45rem; align-items: center; font-weight: 600; min-width: 0; }
.rank-row .name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .val { font-weight: 750; }
.rank-row .track { grid-column: 1 / -1; height: 8px; background: var(--paper-2); border-radius: 8px; overflow: hidden; }
.rank-row .track i { display: block; height: 100%; background: var(--ink); border-radius: 8px; transform-origin: left; animation: grow .8s var(--ease) both; }
.rank-row.top .track i { background: var(--blood); }
@keyframes grow { from { transform: scaleX(0); } }
.split { display: flex; height: 14px; border-radius: 14px; overflow: hidden; margin-bottom: 14px; gap: 2px; }
.split i { display: block; height: 100%; }
.split-legend { display: grid; gap: 8px; font-size: .9rem; }
.split-legend div { display: flex; justify-content: space-between; gap: 1rem; }
.split-legend span { display: flex; align-items: center; gap: .5rem; }
.split-legend em { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.synthetic { font-size: .8rem; color: var(--warn); display: flex; gap: .4rem; align-items: center; margin-bottom: 16px; }
@media (min-width: 760px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .dash-grid { grid-template-columns: 1.4fr 1fr; }
  .dash-grid .wide { grid-column: 1 / -1; }
}

/* login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--ink); }
.login-card { width: min(400px, 100%); background: var(--paper); border-radius: 6px; padding: 28px 24px; box-shadow: var(--shadow-photo); }
.login-card .wordmark { width: 220px; margin: 0 auto 6px; }
.login-card h1 { text-align: center; font-size: 1rem; font-weight: 650; color: var(--ink-2); margin: 0 0 22px; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
