/* Fontes hospedadas no próprio servidor (sem Google Fonts: mais rápido, funciona offline e respeita a LGPD) */
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-var.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("../fonts/Quicksand-var.woff") format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-var.woff") format("woff"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-var.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }

/* =============================================================================
   Barber SaaS — design system
   Todas as cores vêm de variáveis definidas pelo tema da barbearia.
   ========================================================================== */
:root {
  --bg: #0F0E0C; --surface: #171512; --surface-2: #201D19; --line: #2C2822;
  --text: #EFE9DF; --muted: #A39B8E; --accent: #C3A06A; --accent-ink: #17130D;
  --ok: #7FB894; --warn: #E0B15C; --bad: #E07A6F; --info: #86A8D4;
  color-scheme: dark;

  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 38%, transparent);
  --ok-soft: color-mix(in oklab, var(--ok) 16%, transparent);
  --warn-soft: color-mix(in oklab, var(--warn) 16%, transparent);
  --bad-soft: color-mix(in oklab, var(--bad) 16%, transparent);
  --info-soft: color-mix(in oklab, var(--info) 16%, transparent);
  --petal: color-mix(in oklab, var(--accent) 22%, var(--surface));
  --veil: color-mix(in oklab, var(--bg) 72%, transparent);
  --hair: color-mix(in oklab, var(--line) 70%, transparent);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 24px 60px -24px rgb(0 0 0 / .55);
  --gutter: 20px;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* -- Tipografia ---------------------------------------------------------- */
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; font-optical-sizing: auto; }
h1, .t-1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.08; }
h2, .t-2 { font-size: 22px; line-height: 1.2; }
h3, .t-3 { font-size: 17px; line-height: 1.3; }
p { margin: 0; }
.num { font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.tab { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; }
.accent { color: var(--accent); }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .bad-t { color: var(--bad); }
.label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.lede { color: var(--muted); max-width: 60ch; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono-id { font-variant-numeric: tabular-nums; letter-spacing: .06em; font-size: 12px; color: var(--muted); }

/* -- Ícones -------------------------------------------------------------- */
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }

/* -- Layout -------------------------------------------------------------- */
.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row-top { display: flex; align-items: flex-start; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.hr { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.center { text-align: center; }
.right { text-align: right; }

/* -- Superfícies --------------------------------------------------------- */
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 22px; position: relative; }
.panel-tight { padding: 16px; }
.panel-outline { background: transparent; border: 1px solid var(--line); }
.inset { background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2, .section-head h3 { flex: 1; }
.link { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* -- Botões -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  background: var(--surface-2); color: var(--text);
  transition: transform .15s var(--ease), background .2s, opacity .2s, box-shadow .2s;
  user-select: none;
}
.btn:hover { background: color-mix(in oklab, var(--surface-2) 80%, var(--text) 8%); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-loading { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, white 12%); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-ok { background: var(--ok-soft); color: var(--ok); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-lg { height: 56px; font-size: 16px; padding: 0 26px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-pill); color: var(--muted); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -- Formulários --------------------------------------------------------- */
.field { display: block; }
.field + .field { margin-top: 14px; }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid transparent; color: var(--text);
  transition: border-color .2s, background .2s; font-size: 16px;
}
.textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: color-mix(in oklab, var(--muted) 70%, transparent); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-line); background: color-mix(in oklab, var(--surface-2) 85%, var(--accent) 4%); }
.input-sm { height: 40px; font-size: 14px; padding: 0 12px; }
.input-lg { height: 60px; font-size: 22px; font-family: var(--serif); letter-spacing: .02em; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field-error { font-size: 13px; color: var(--bad); margin-top: 8px; min-height: 1em; }
.prefix-input { position: relative; }
.prefix-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }
.prefix-input .input { padding-left: 44px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--muted); }
.check input { appearance: none; width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--line); background: var(--surface-2); display: grid; place-items: center; margin: 0; transition: background .15s, border-color .15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; margin: 0; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); background: var(--accent-ink); }

.segmented { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: var(--r-pill); gap: 2px; flex-wrap: wrap; }
.segmented button, .segmented a { height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; transition: background .2s, color .2s; }
.segmented .is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--text); transition: background .15s, color .15s, box-shadow .15s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--accent-line); }
.chip.is-on { background: var(--accent); color: var(--accent-ink); }
.chip[disabled] { opacity: .35; pointer-events: none; }

/* -- Pílulas de status --------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.ok, .pill.available { background: var(--ok-soft); color: var(--ok); }
.pill.busy, .pill.in_service { background: var(--accent-soft); color: var(--accent); }
.pill.finishing, .pill.warn, .pill.arrived, .pill.next { background: var(--warn-soft); color: var(--warn); }
.pill.bad, .pill.no_show, .pill.cancelled, .pill.blocked { background: var(--bad-soft); color: var(--bad); }
.pill.info, .pill.confirmed { background: var(--info-soft); color: var(--info); }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.pause, .pill.off, .pill.scheduled { background: var(--surface-2); color: var(--muted); }
.pill.busy::before, .pill.in_service::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* -- Avatar com anel de status (elemento-assinatura) --------------------- */
.avatar { --size: 52px; --p: 0; position: relative; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: calc(var(--size) * .36); font-weight: 500; color: var(--text); background: var(--surface-2); }
.avatar::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--ring, transparent) calc(var(--p) * 1%), var(--line) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); transition: --p .6s; }
.avatar[data-status="available"] { --ring: var(--ok); --p: 100; }
.avatar[data-status="busy"], .avatar[data-status="finishing"] { --ring: var(--accent); }
.avatar[data-status="next"] { --ring: var(--warn); --p: 100; }
.avatar[data-status="pause"], .avatar[data-status="blocked"] { --ring: var(--muted); --p: 100; }
.avatar[data-status="off"] { --ring: transparent; opacity: .6; }
.avatar-sm { --size: 36px; }
.avatar-xs { --size: 28px; font-size: 11px; }
.avatar-lg { --size: 84px; }
.avatar-plain::before { display: none; }

/* -- Listas -------------------------------------------------------------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.list-item:last-child { border-bottom: 0; }
.list-item .meta { font-size: 13px; color: var(--muted); }
.list-button { width: 100%; text-align: left; border-radius: var(--r-sm); padding: 14px; margin: 0 -14px; width: calc(100% + 28px); transition: background .15s; }
.list-button:hover { background: var(--surface-2); }

.select-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: box-shadow .2s, background .2s; }
.select-row + .select-row { margin-top: 8px; }
.select-row:hover { background: color-mix(in oklab, var(--surface) 85%, var(--text) 4%); }
.select-row.is-on { box-shadow: inset 0 0 0 1.5px var(--accent); background: color-mix(in oklab, var(--surface) 92%, var(--accent) 8%); }
.select-row .tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.select-row.is-on .tick { background: var(--accent); border-color: var(--accent); }
.select-row.is-on .tick::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }

/* -- Tabelas ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table tr.is-dim td { opacity: .5; }

/* -- Faixa de números (sem cards idênticos) ------------------------------ */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.figure { padding: 20px 22px; position: relative; }
.figure + .figure::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.figure .value { font-family: var(--serif); font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; margin-top: 6px; }
.figure .value.big { font-size: 40px; }
.figure .foot { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.figure.lead { background: color-mix(in oklab, var(--surface) 88%, var(--accent) 7%); }
@media (max-width: 640px) {
  /* No celular: número principal em linha inteira e os demais em duas colunas */
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure { padding: 16px 18px; min-width: 0; }
  .figure.lead { grid-column: 1 / -1; }
  .figure + .figure::before { display: none; }
  .figure:not(.lead) { border-top: 1px solid var(--line); }
  .figures > .figure:not(.lead):nth-child(even of :not(.lead)) { border-left: 1px solid var(--line); }
  .figure .value { font-size: clamp(19px, 5.6vw, 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .figure .value.big { font-size: clamp(28px, 9vw, 36px); }
  .figure .foot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}


/* -- Barras simples ------------------------------------------------------ */
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s var(--ease); }
.bar.ok > span { background: var(--ok); }
.bar.muted > span { background: var(--muted); }
.stat-line { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr auto; align-items: center; gap: 14px; padding: 9px 0; font-size: 14px; }

/* -- Mapa de calor ------------------------------------------------------- */
.heat { display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
.heat .cell { aspect-ratio: 1.6; border-radius: 4px; background: color-mix(in oklab, var(--accent) calc(var(--v) * 1%), var(--surface-2)); }

/* -- Folha inferior (bottom sheet) e diálogo ------------------------------ */
.backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; z-index: 80; }
.backdrop.is-open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow);
  transform: translateY(105%); transition: transform .38s var(--ease); margin: 0 auto; max-width: 560px;
  border-top: 1px solid var(--line);
}
.sheet.is-open { transform: translateY(0); }
.sheet.is-dragging { transition: none; }
.sheet-full { height: 92dvh; }
.sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: var(--line); margin: 10px auto 4px; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 8px 20px 12px; flex: none; }
.sheet-head h2 { flex: 1; font-size: 21px; }
.sheet-body { padding: 4px 20px 24px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); flex: none; }
@media (min-width: 900px) {
  .sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: min(560px, 92vw); border-radius: var(--r-lg); border: 1px solid var(--line); transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .2s; max-height: 88vh; }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-full { height: min(760px, 88vh); }
  .sheet-grip { display: none; }
  .sheet-wide { width: min(820px, 94vw); max-width: none; }
}

.dialog { position: fixed; z-index: 120; left: 50%; top: 50%; width: min(400px, calc(100vw - 32px)); transform: translate(-50%, -46%); opacity: 0; transition: transform .25s var(--ease), opacity .2s; background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.dialog.is-open { opacity: 1; transform: translate(-50%, -50%); }
.dialog h3 { font-size: 20px; margin-bottom: 8px; }
.dialog .actions { display: flex; gap: 10px; margin-top: 22px; justify-content: flex-end; }

/* -- Avisos rápidos (toast) ---------------------------------------------- */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(440px, calc(100vw - 32px)); }
.toast { pointer-events: auto; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; animation: toast-in .3s var(--ease); max-width: 100%; }
.toast.bad { background: var(--bad); color: #160807; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* -- Etapas (cadastro e agendamento) ------------------------------------- */
.stepper { overflow: hidden; overflow: clip; position: relative; width: 100%; min-width: 0; }
.steps-track { display: flex; transition: transform .45s var(--ease); will-change: transform; }
.step { flex: 0 0 100%; min-width: 0; padding: 2px; overflow-x: clip; }
.step-dots { display: flex; gap: 6px; }
.step-dots span { width: 18px; height: 4px; border-radius: 99px; background: var(--line); transition: background .3s, width .3s; }
.step-dots span.is-done { background: var(--accent-line); }
.step-dots span.is-on { background: var(--accent); width: 30px; }

/* -- Linha de progresso do agendamento (estilo acompanhamento de pedido) -- */
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 18px 0 10px; }
.track span { height: 4px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.track span.is-done { background: var(--accent); }
.track span.is-now { background: var(--accent-line); }
.track span.is-now::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); border-radius: 99px; animation: sweep 1.8s var(--ease) infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.track-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 11.5px; color: var(--muted); }
.track-labels span.is-on { color: var(--text); font-weight: 600; }

/* -- Faixa de datas ------------------------------------------------------ */
.date-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-inline: var(--gutter); }
.date-strip::-webkit-scrollbar { display: none; }
.date-chip { scroll-snap-align: start; flex: none; width: 58px; height: 70px; border-radius: var(--r-md); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background .2s, color .2s, box-shadow .2s; }
.date-chip .wd { font-size: 12px; color: var(--muted); }
.date-chip .d { font-family: var(--serif); font-size: 22px; line-height: 1; }
.date-chip.is-on { background: var(--accent); color: var(--accent-ink); }
.date-chip.is-on .wd { color: inherit; opacity: .75; }
.date-chip.is-today:not(.is-on) { box-shadow: inset 0 0 0 1px var(--accent-line); }
.date-chip[disabled], .date-chip.is-off { opacity: .3; pointer-events: none; }

.slot-group + .slot-group { margin-top: 18px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 8px; }
.slot { height: 44px; border-radius: var(--r-sm); background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; transition: background .15s, color .15s, transform .1s; }
.slot:hover { box-shadow: inset 0 0 0 1px var(--accent-line); }
.slot.is-on { background: var(--accent); color: var(--accent-ink); }

/* -- Estado vazio e esqueletos ------------------------------------------- */
.empty { padding: 28px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .ic { margin: 0 auto 10px; width: 28px; height: 28px; opacity: .6; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* -- Banner de campanha -------------------------------------------------- */
.campaign { display: flex; gap: 12px; align-items: center; padding: 12px var(--gutter); background: color-mix(in oklab, var(--accent) 16%, var(--bg)); color: var(--text); font-size: 14px; line-height: 1.4; }
.campaign .ic { color: var(--accent); }

/* =============================================================================
   APP DO CLIENTE
   ========================================================================== */
.client-shell { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter) calc(120px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 0 8px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.monogram { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; border: 1px solid var(--accent-line); color: var(--accent); flex: none; }
.brand-name { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.hello { padding: 22px 0 6px; }
.hello h1 { font-size: clamp(30px, 8vw, 40px); }
.hello p { margin-top: 8px; }

.track-card { background: var(--surface); border-radius: var(--r-lg); padding: 22px; margin-top: 18px; position: relative; overflow: hidden; }
.track-card .eta { font-family: var(--serif); font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.track-card .headline { font-family: var(--serif); font-size: 22px; line-height: 1.2; }

.barbers-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.barbers-row::-webkit-scrollbar { display: none; }
.barber-card { scroll-snap-align: start; flex: none; width: 168px; background: var(--surface); border-radius: var(--r-lg); padding: 18px 16px; text-align: left; transition: transform .2s var(--ease), background .2s; }
.barber-card:active { transform: scale(.98); }
.barber-card .name { font-family: var(--serif); font-size: 18px; margin-top: 14px; }
.barber-card .status { font-size: 13px; margin-top: 4px; font-weight: 600; }
.barber-card .detail { font-size: 12.5px; color: var(--muted); margin-top: 2px; min-height: 2.6em; }
.status-available { color: var(--ok); } .status-busy, .status-finishing { color: var(--accent); }
.status-next { color: var(--warn); } .status-pause, .status-off, .status-blocked { color: var(--muted); }

.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 60%, transparent); }
.cta-bar .btn { max-width: 520px; margin: 0 auto; display: flex; }

.club-card { border-radius: var(--r-lg); padding: 22px; background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--accent) 22%, var(--surface)) 0%, var(--surface) 55%); position: relative; }
.club-card .plan-name { font-family: var(--serif); font-size: 26px; }
.plan-option { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-md); background: var(--surface-2); }
.plan-option + .plan-option { margin-top: 8px; }

.lounge-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.lounge-row:last-child { border-bottom: 0; }
.lounge-icon { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex: none; }

.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.summary-line.total { font-family: var(--serif); font-size: 22px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 6px; }

.success-mark { width: 84px; height: 84px; border-radius: 50%; margin: 24px auto 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.success-mark svg { width: 38px; height: 38px; stroke-width: 2.2; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =============================================================================
   AUTENTICAÇÃO
   ========================================================================== */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-side { display: none; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 32px var(--gutter) 48px; max-width: 460px; width: 100%; min-width: 0; margin: 0 auto; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.auth h1 { font-size: clamp(30px, 7vw, 38px); }
.auth .lede { margin-top: 10px; margin-bottom: 28px; }
.id-ticket { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px dashed var(--accent-line); }
.id-ticket .code { font-family: var(--serif); font-size: 20px; letter-spacing: .06em; color: var(--accent); }
.demo-box { margin-top: 28px; padding: 16px; border-radius: var(--r-md); background: var(--surface); font-size: 13px; color: var(--muted); }
.demo-box .row { justify-content: space-between; padding: 4px 0; }
@media (min-width: 960px) {
  .auth { grid-template-columns: 1.05fr 1fr; }
  .auth-side { display: flex; flex-direction: column; justify-content: space-between; padding: 48px; background: var(--surface); position: relative; overflow: hidden; }
  .auth-side .big { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -.02em; max-width: 9ch; }
  .auth-side .pole { position: absolute; right: -60px; top: -40px; bottom: -40px; width: 180px; background: repeating-linear-gradient(-28deg, var(--accent-soft) 0 22px, transparent 22px 56px); opacity: .9; border-left: 1px solid var(--line); }
}

/* =============================================================================
   ESTAÇÃO DO BARBEIRO / PAINEL ADMIN
   ========================================================================== */
.station { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) calc(110px + env(safe-area-inset-bottom)); }
.station-head { display: flex; align-items: center; gap: 14px; padding: 18px 0 14px; }
.station-head .who { flex: 1; min-width: 0; }
.station-head .name { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 6px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { padding: 12px 0; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s, border-color .2s; }
.tabs .is-on { color: var(--text); border-color: var(--accent); }

.timeline { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; position: relative; }
.tl-time { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); padding-top: 18px; text-align: right; }
.tl-row::before { content: ""; position: absolute; left: 66px; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.tl-card { min-width: 0; background: var(--surface); border-radius: var(--r-md); padding: 16px; margin: 6px 0 6px 12px; position: relative; }
.tl-card::before { content: ""; position: absolute; left: -16px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 4px var(--bg); }
.tl-card.s-in_service { box-shadow: inset 0 0 0 1.5px var(--accent); }
.tl-card.s-in_service::before, .tl-card.s-arrived::before { background: var(--accent); }
.tl-card.s-done, .tl-card.s-cancelled, .tl-card.s-no_show { opacity: .58; }
.tl-card.is-block { background: repeating-linear-gradient(-45deg, var(--surface) 0 10px, color-mix(in oklab, var(--surface) 80%, var(--line)) 10px 20px); }
.tl-gap { margin: 6px 0 6px 12px; padding: 12px 16px; border-radius: var(--r-md); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.tl-card > .row-top { flex-wrap: wrap-reverse; row-gap: 8px; }
.tl-card > .row-top > .grow { flex: 1 1 170px; }
.tl-card .client { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.tl-card .svc { font-size: 14px; color: var(--muted); margin-top: 2px; }
.tl-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tl-actions .btn { flex: 1 1 auto; }

.fab { position: fixed; right: max(20px, calc(50% - 360px)); bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 50; height: 56px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.fab:active { transform: scale(.96); }

.menu-list { display: flex; flex-direction: column; gap: 4px; }
.menu-list button, .menu-list a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-sm); text-align: left; font-weight: 500; transition: background .15s; }
.menu-list button:hover, .menu-list a:hover { background: var(--surface); }
.menu-list .ic { color: var(--accent); }
.menu-list small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }

.ring-meter { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; flex: none; }
.ring-meter > span { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--serif); font-size: 15px; font-variant-numeric: tabular-nums; }

/* Comanda */
.comanda-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.comanda-line:last-child { border-bottom: 0; }
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay-method { height: 64px; border-radius: var(--r-md); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; transition: box-shadow .15s, background .15s; }
.pay-method.is-on { box-shadow: inset 0 0 0 1.5px var(--accent); background: color-mix(in oklab, var(--surface) 90%, var(--accent) 10%); }
.pay-split { display: grid; grid-template-columns: 1fr 140px 36px; gap: 8px; align-items: center; margin-top: 8px; }
.picker { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.picker button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); text-align: left; font-size: 14px; transition: background .15s; }
.picker button:hover { background: var(--surface); }

/* Admin */
.admin { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
.side { position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 70; background: var(--surface); padding: 22px 14px; display: flex; flex-direction: column; transform: translateX(-102%); transition: transform .3s var(--ease); overflow-y: auto; }
.side.is-open { transform: none; box-shadow: var(--shadow); }
.side-brand { display: flex; gap: 12px; align-items: center; padding: 4px 10px 22px; }
.side-brand .name { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.is-on { background: var(--surface-2); color: var(--text); }
.nav a.is-on .ic { color: var(--accent); }
.nav-sep { height: 1px; background: var(--line); margin: 14px 12px; }
.side-foot { margin-top: auto; padding-top: 16px; }
.main { min-width: 0; padding: 0 var(--gutter) 60px; }
.main-head { display: flex; align-items: center; gap: 14px; padding: 18px 0 22px; position: sticky; top: 0; z-index: 30; background: var(--veil); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.main-head h1 { font-size: clamp(26px, 4vw, 34px); flex: 1; }
.main-inner { max-width: 1180px; margin: 0 auto; }
@media (min-width: 1080px) {
  .admin { grid-template-columns: 268px 1fr; }
  .side { position: sticky; top: 0; height: 100dvh; transform: none; }
  .menu-toggle { display: none; }
  .main { padding: 0 40px 60px; }
}

.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 12px; }
.kanban > section { min-width: 0; }
.kanban .col-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; position: sticky; top: 0; }

/* Lounge */
.lounge-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.station-card { background: var(--surface); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; min-height: 280px; }
.station-card.is-busy { box-shadow: inset 0 0 0 1px var(--accent-line); }
.station-card.is-over { box-shadow: inset 0 0 0 1.5px var(--bad); }
.timer-ring { --p: 0; --c: var(--accent); width: 148px; height: 148px; border-radius: 50%; margin: 0 auto; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; transition: --p 1s linear; }
.timer-ring > div { width: 130px; height: 130px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer-ring .left { font-family: var(--serif); font-size: 32px; font-variant-numeric: tabular-nums lining-nums; line-height: 1; }
.timer-ring.is-soon { --c: var(--warn); }
.timer-ring.is-over { --c: var(--bad); }
.timer-ring.is-free > div .left { font-size: 22px; color: var(--ok); }

/* Temas */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.theme-card { border-radius: var(--r-md); overflow: hidden; text-align: left; background: var(--surface); transition: box-shadow .2s, transform .2s var(--ease); }
.theme-card:hover { transform: translateY(-2px); }
.theme-card.is-on { box-shadow: 0 0 0 2px var(--accent); }
.theme-swatch { height: 104px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.theme-swatch .sw-title { font-family: var(--serif); font-size: 18px; }
.theme-swatch .sw-pill { align-self: flex-start; height: 24px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.theme-swatch .sw-dots { display: flex; gap: 6px; }
.theme-swatch .sw-dots i { width: 14px; height: 14px; border-radius: 50%; }
.theme-card .meta { padding: 12px 14px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.preview-bar { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-weight: 500; width: max-content; max-width: calc(100vw - 32px); }
.preview-bar .btn { height: 38px; }
.preview-bar .btn-ghost { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bg) 40%, transparent); color: var(--bg); }

/* Impressão da placa de QR */
.plate { max-width: 520px; margin: 40px auto; text-align: center; padding: 48px 40px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.plate img { width: 280px; height: 280px; margin: 28px auto; background: #fff; padding: 12px; border-radius: 16px; }
@media print {
  body { background: #fff; color: #111; }
  .no-print { display: none !important; }
  .plate { border: 0; margin: 0 auto; }
}

/* Landing / erro */
.simple-page { min-height: 100dvh; display: grid; place-items: center; padding: 32px var(--gutter); text-align: center; }
.simple-page .code { font-family: var(--serif); font-size: 72px; color: var(--accent); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

/* Ajustes finos */
.theme-anim, .theme-anim * { transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease !important; }
.tl-card button.client { text-align: left; display: block; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary .ic { transform: rotate(45deg); }
summary .ic { transition: transform .2s var(--ease); }
code { font-size: 13px; background: var(--surface-2); padding: 4px 8px; border-radius: 6px; }
.is-dim { opacity: .55; }
.label.mt-16, .label.mt-24 { display: block; }
.btn-xs + .btn-xs { margin-left: 4px; }


/* =============================================================================
   v6.1 — celular, notificações, promoções, WhatsApp e app instalável
   ========================================================================== */
input[type="date"].input, input[type="time"].input { display: block; min-height: 50px; line-height: 50px; -webkit-appearance: none; appearance: none; }
input[type="date"].input-sm, input[type="time"].input-sm { min-height: 40px; line-height: 40px; }

/* Cabeçalho do admin: título + sino na primeira linha; ações em linha própria no celular */
.head-actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) {
  .main-head { flex-wrap: wrap; row-gap: 12px; padding: 14px 0 16px; }
  .main-head h1 { flex: 1 1 0; min-width: 0; font-size: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .head-actions { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .head-actions::-webkit-scrollbar { display: none; }
  .head-actions:empty { display: none; }
  .main { padding: 0 16px 60px; }
  .panel { padding: 18px; border-radius: var(--r-md); }
  .grid-2, .grid-3 { gap: 12px; }
}
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }

/* Sino */
.bell { position: relative; }
.bell .badge { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--bg); }
.bell.has-new .ic { animation: ring 1s var(--ease) 2; transform-origin: 50% 10%; }
@keyframes ring { 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.notif { display: flex; gap: 12px; padding: 14px 12px; border-radius: var(--r-sm); text-align: left; width: 100%; transition: background .15s; }
.notif:hover { background: var(--surface); }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 7px; flex: none; }
.notif.is-unread .dot { background: var(--accent); }
.notif.is-unread .t { font-weight: 700; }
.notif .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); flex: none; }

/* Cartões da equipe no celular */
.staff-head { display: flex; align-items: center; gap: 14px; }
.staff-head .grow { min-width: 0; }
.staff-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.staff-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14px; }

/* Promoções no app do cliente */
.promo-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.promo-row::-webkit-scrollbar { display: none; }
.promo-card { scroll-snap-align: start; flex: 0 0 min(86%, 420px); border-radius: var(--r-lg); padding: 20px; position: relative; overflow: hidden; text-align: left;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 24%, var(--surface)) 0%, var(--surface) 70%); }
.promo-card:only-child { flex-basis: 100%; }
.promo-card .value { font-family: var(--serif); font-size: 30px; line-height: 1.05; color: var(--accent); }
.promo-card .title { font-family: var(--serif); font-size: 20px; margin-top: 6px; }
.promo-card::after { content: ""; position: absolute; right: -50px; bottom: -60px; pointer-events: none; width: 140px; height: 140px; border-radius: 50%; border: 1px solid var(--accent-line); }
.promo-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 99px; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 13px; margin-right: 6px; font-weight: 400; }

/* Mensagens do WhatsApp */
.wa-list { display: flex; flex-direction: column; gap: 8px; }
.wa-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-md); background: var(--surface); transition: background .15s; }
.wa-item:hover { background: color-mix(in oklab, var(--surface) 85%, var(--text) 5%); }
.wa-item .ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, #25D366 18%, transparent); color: #3ccf74; flex: none; }
.wa-item small { display: block; color: var(--muted); font-size: 13px; }

/* Instalar app */
.install-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); margin-top: 18px; }
.install-card img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.install-steps { counter-reset: s; display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.install-steps li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
.install-steps li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.install-steps .ic { display: inline; vertical-align: -4px; color: var(--accent); }
.app-icon-preview { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
@media (display-mode: standalone) { .hide-standalone { display: none !important; } }
@media (max-width: 640px) {
  .figures > .figure:first-child:not(.lead), .figures > .figure:first-child:not(.lead) + .figure { border-top: 0; }
}
.main-head .bell { order: 5; }
@media (max-width: 760px) { .main-head .bell { order: 2; } }
@media (max-width: 640px) {
  .figures > .figure:not(.lead):last-child:nth-child(odd of :not(.lead)) { grid-column: 1 / -1; border-left: 0; }
  .segmented { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .segmented::-webkit-scrollbar { display: none; }
  .segmented > * { flex: none; }
  .report-range { flex-wrap: wrap; width: 100%; }
  .report-range .input { flex: 1 1 130px; }
}
.heat span { min-width: 0; overflow: hidden; }
@media (max-width: 640px) { .heat { font-size: 9.5px; gap: 2px; } }

/* =============================================================================
   v6.2 — recursos, fidelidade, Pix, avaliações
   ========================================================================== */
.feature-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.feature-card { transition: box-shadow .2s; }
.feature-card.is-on { box-shadow: inset 0 0 0 1px var(--accent-line); }
.feature-card .switch { flex: none; }
.feature-config { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.stamp.is-on { border: 0; background: var(--accent); color: var(--accent-ink); }
.stamp.is-on .ic { width: 18px; height: 18px; }

.pix-box { text-align: center; }
.pix-qr { width: 220px; height: 220px; margin: 16px auto; background: #fff; padding: 10px; border-radius: 16px; }
.pix-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; text-align: left; background: var(--surface-2); padding: 12px; border-radius: var(--r-sm); max-height: 88px; overflow: auto; }
.pix-timer { font-variant-numeric: tabular-nums; }

.stars { display: flex; gap: 6px; justify-content: center; }
.stars button { width: 46px; height: 46px; display: grid; place-items: center; color: var(--line); transition: transform .15s var(--ease), color .15s; }
.stars button .ic { width: 34px; height: 34px; }
.stars button.is-on { color: var(--accent); }
.stars button.is-on .ic { fill: currentColor; }
.stars button:active { transform: scale(.9); }
.stars-sm .ic { width: 14px; height: 14px; }

.gift-card-visual { border-radius: var(--r-lg); padding: 24px; aspect-ratio: 1.6; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  background: radial-gradient(140% 120% at 100% 0%, color-mix(in oklab, var(--accent) 38%, var(--surface)) 0%, var(--surface) 60%); box-shadow: var(--shadow); max-width: 420px; margin: 0 auto; }
.gift-card-visual .amount { font-family: var(--serif); font-size: 44px; line-height: 1; }
.gift-card-visual .code { letter-spacing: .12em; font-weight: 700; color: var(--accent); }
.gift-card-visual::after { content: ""; position: absolute; left: -40px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid var(--accent-line); }
.amount-chips .chip { min-width: 84px; justify-content: center; }

.pill.awaiting_payment { background: var(--warn-soft); color: var(--warn); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.birthday-card { flex-basis: 100%; }
.benefits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s var(--ease); }
.gift-cta { text-align: left; width: 100%; }
.rate-card { text-align: center; }
.rate-card textarea { margin-top: 16px; min-height: 76px; resize: vertical; }
.pix-done { display: grid; place-items: center; gap: 8px; padding: 24px 0; text-align: center; }
.dist-row { display: grid; grid-template-columns: 34px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.summary-line > span:last-child { white-space: nowrap; text-align: right; }

/* ==========================================================================
   v6.3 — segmentos, especialidades, ficha técnica, financeiro mensal
   ========================================================================== */
.segment-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.segment-option input { position: absolute; opacity: 0; pointer-events: none; }
.segment-card { display: grid; gap: 6px; padding: 18px; border-radius: var(--r-md, 16px); background: var(--surface-2); border: 1.5px solid transparent; cursor: pointer; transition: border-color .2s, background .2s; }
.segment-card .ic { color: var(--accent); width: 26px; height: 26px; }
.segment-option input:checked + .segment-card { border-color: var(--accent); background: var(--accent-soft); }
.segment-option input:focus-visible + .segment-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips .chip { flex: none; }
.pro-step { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pro-step:last-of-type { border-bottom: 0; }
.pro-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding-bottom: 2px; }
.pro-row::-webkit-scrollbar { display: none; }
.pro-chip { flex: none; display: grid; justify-items: center; gap: 6px; width: 76px; padding: 10px 4px; border-radius: var(--r-md); background: var(--surface-2); border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.pro-chip .name { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-chip.is-on { border-color: var(--accent); background: var(--accent-soft); }
.plan-line { display: grid; gap: 0; position: relative; }
.plan-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; position: relative; }
.plan-step + .plan-step::before { content: ""; position: absolute; left: 62px; top: -10px; height: 20px; border-left: 1.5px dashed var(--accent-line); }
.plan-time { width: 44px; font-size: 13px; color: var(--accent); font-weight: 700; flex: none; }
.maint-card { display: flex; align-items: center; gap: 14px; }
.maint-card .eyebrow { margin: 0; }
.homecare-card .value { color: var(--text); }
.month-nav { display: inline-flex; align-items: center; gap: 4px; }
.month-title { min-width: 150px; text-align: center; }
.close-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); flex-wrap: wrap; }
.close-banner > .ic { color: var(--muted); flex: none; }
.close-banner.is-draft { box-shadow: inset 0 0 0 1px var(--warn); }
.close-banner.is-draft > .ic { color: var(--warn); }
.close-banner.is-closed > .ic { color: var(--ok); }
.close-banner .grow { min-width: 200px; }
.day-bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); }
.day-bar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; position: relative; min-width: 0; cursor: default; }
.day-bar > span { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; opacity: .85; transition: opacity .15s; }
.day-bar:hover > span, .day-bar:focus > span { opacity: 1; }
.day-bar:hover::after, .day-bar:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 2; pointer-events: none; }
.day-bar:first-child:hover::after, .day-bar:first-child:focus::after { left: 0; transform: none; }
.day-bar:last-child:hover::after, .day-bar:last-child:focus::after { left: auto; right: 0; transform: none; }
.day-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.together-switch { margin-top: 8px; font-size: 14px; }
.pro-step.is-together { border-left: 2px solid var(--accent); padding-left: 12px; margin-left: -14px; }
.plan-step.is-together::before { border-left-style: solid !important; border-color: var(--accent) !important; }
.avatar-xl { --size: 76px; }
.solo-hero { background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 16%, var(--surface)) 0%, var(--surface) 65%); border-radius: var(--r-lg); padding: 22px; }
.solo-hero h2 { font-size: 26px; }
.solo-hero .row-top { gap: 16px; }
.chip-static { cursor: default; }
.wait-card { display: flex; align-items: center; gap: 14px; }
.wait-card.is-open { box-shadow: inset 0 0 0 1.5px var(--accent); }
.wait-card .eyebrow { margin: 0; }
.meu-dia .next-card { display: flex; gap: 14px; align-items: flex-start; }
#bookMeta { white-space: nowrap; }
.club-card.is-featured { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* =============================================================================
   Site público da plataforma (início, localizador, planos, cadastro)
   ========================================================================== */
.site { display: flex; flex-direction: column; }
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--gutter); max-width: 1120px; width: 100%; margin: 0 auto; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: var(--r-pill); font-size: 14px; color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.site-nav a.is-on { color: var(--text); background: var(--surface-2); }
.site-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 8px var(--gutter) 48px; flex: 1; }
.site-hero { padding: clamp(24px, 7vw, 72px) 0 24px; }
.site-title { font-size: clamp(38px, 8.5vw, 72px); line-height: 1.02; letter-spacing: -.025em; margin-top: 14px; max-width: 14ch; }
.site-title em { font-style: italic; color: var(--accent); }
.site-hero .lede { font-size: 17px; }
.choice-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 860px; }
.choice { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.choice:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.choice-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.choice.is-pro .choice-ic { background: var(--accent); color: var(--accent-ink); }
.choice-title { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.15; margin-bottom: 4px; }
.site-strip { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.site-strip .ic { color: var(--accent); }
.site-foot { border-top: 1px solid var(--line); padding: 24px var(--gutter) 40px; font-size: 13px; color: var(--muted); text-align: center; }
.site .panel .select-row { background: var(--surface-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ic.inline { display: inline-block; vertical-align: -3px; }

/* Localizador */
.finder-head { padding-top: clamp(16px, 5vw, 48px); }
.finder-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.place-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.place { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--surface); align-items: flex-start; }
.place-logo { width: 56px; height: 56px; border-radius: 16px; flex: none; background: var(--surface-2); object-fit: cover; }
.place-name { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.place-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.place-ig { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.place-dist { font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.place-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* Planos */
.plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 26px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.plan-card.is-featured { background: radial-gradient(120% 120% at 100% 0%, color-mix(in oklab, var(--accent) 20%, var(--surface)) 0%, var(--surface) 60%); box-shadow: inset 0 0 0 1.5px var(--accent); }
.plan-card h2 { font-size: 28px; }
.plan-flag { position: absolute; top: -12px; left: 22px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; }
.plan-price .num { font-size: 36px; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; flex: 1; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; }
.plan-feats .ic { color: var(--accent); margin-top: 3px; flex: none; }

/* Texto longo (termos) */
.prose h2 { margin-top: 32px; font-size: 22px; }
.prose p { margin-top: 12px; color: color-mix(in oklab, var(--text) 86%, var(--muted)); max-width: 68ch; }

/* Banner de plano no painel do negócio */
.plan-banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--text); margin-bottom: 16px; font-size: 14px; }
.plan-banner.bad { background: var(--bad-soft); }
.plan-banner.info { background: var(--info-soft); }
.plan-banner .ic { flex: none; }
.input.is-bad { box-shadow: inset 0 0 0 1.5px var(--bad); }
.site-brand, .site-nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .site-top { padding-top: 12px; padding-bottom: 12px; gap: 8px; }
  .site-brand { font-size: 16px; gap: 8px; }
  .site-brand .monogram { width: 34px; height: 34px; font-size: 14px; }
  .site-nav a { padding: 0 10px; font-size: 13px; }
}
.pix-claim { padding: 14px 0; border-top: 1px solid var(--hair); }
.pix-claim:first-child { border-top: 0; }
.pix-claim .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Recursos bloqueados pelo plano */
.feature-card.is-locked { opacity: .78; }
.feature-card.is-locked .lounge-icon { opacity: .6; }
.lock-note { color: var(--accent); display: flex; gap: 6px; align-items: flex-start; }
.lock-note .ic { margin-top: 2px; }
.unlock-card { position: relative; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg);
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in oklab, var(--accent) 18%, var(--surface)) 0%, var(--surface) 60%);
  box-shadow: inset 0 0 0 1px var(--accent-line); }
.unlock-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none; }
.unlock-card .grow { min-width: 220px; }
.demo-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.demo-card { padding: 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.demo-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-roles .btn { flex: 1 1 auto; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-chips span { font-size: 11px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); opacity: .55; text-decoration: line-through; }
.mini-chips span.on { opacity: 1; text-decoration: none; color: var(--text); background: var(--accent-soft); }
/* Master: gerenciar negócio */
.manage { max-width: 760px; margin: 0 auto; }
.manage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.res-list { display: grid; gap: 6px; }
.res-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); }
.res-row.is-included { opacity: .8; }
.res-price { max-width: 130px; }
.danger-zone { padding: 18px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bad) 40%, transparent); }
.plan-feats li.is-off { color: var(--muted); } .plan-feats li.is-off .ic { color: var(--muted); }

/* =============================================================================
   ACABAMENTO PREMIUM (opcional: Aparência → Acabamento)
   Ideia: materiais de barbearia clássica — latão polido, couro e espelho.
   O que muda: relevo nos botões (latão batido), filete metálico nas bordas,
   superfícies com profundidade e grão sutil, campos rebaixados e tipografia
   mais fina. As cores continuam vindo do tema; nada muda no funcionamento.
   ========================================================================== */
html[data-finish="premium"] {
  --depth: rgb(0 0 0 / .5);
  --hi: rgb(255 255 255 / .07);
  --brass: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 60%, white 40%) 30%, var(--accent) 50%, color-mix(in oklab, var(--accent) 60%, white 40%) 70%, transparent);
  --metal: linear-gradient(180deg, color-mix(in oklab, var(--accent) 72%, white 28%) 0%, var(--accent) 46%, color-mix(in oklab, var(--accent) 82%, black 18%) 100%);
}
html[data-finish="premium"][data-mode="light"] { --depth: rgb(60 40 20 / .16); --hi: rgb(255 255 255 / .7); }

/* Fundo com grão e luz vinda de cima */
html[data-finish="premium"] body {
  background:
    radial-gradient(1200px 520px at 50% -180px, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--bg);
  background-attachment: fixed, scroll, scroll;
}

/* Tipografia: títulos mais finos e com curvas suaves (eixo SOFT da Fraunces) */
html[data-finish="premium"] :is(h1, h2, .display, .t-1, .site-title, .plan-name, .choice-title) {
  font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 400; letter-spacing: -.022em;
}
html[data-finish="premium"] .figure .value, html[data-finish="premium"] .num { font-variation-settings: "SOFT" 100; font-weight: 400; }

/* Superfícies: profundidade + filete de luz no topo */
html[data-finish="premium"] :is(.panel, .figures, .club-card, .plan-card, .choice, .place, .demo-card, .feature-card, .track-card, .barber-card, .unlock-card) {
  box-shadow: inset 0 1px 0 var(--hi), 0 1px 0 rgb(0 0 0 / .25), 0 22px 44px -26px var(--depth);
}
html[data-finish="premium"] :is(.panel, .figures) { background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 96%, white 4%), var(--surface) 38%); }
html[data-finish="premium"] .figures { position: relative; }
html[data-finish="premium"] :is(.figures, .club-card.is-featured, .plan-card.is-featured, .unlock-card)::after {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; background: var(--brass); opacity: .9; pointer-events: none;
}
html[data-finish="premium"] .figure.lead .value { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botões: latão batido, com relevo e clique que afunda */
html[data-finish="premium"] .btn { box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px rgb(0 0 0 / .25); }
html[data-finish="premium"] .btn-primary {
  background: var(--metal); color: var(--accent-ink); text-shadow: 0 1px 0 rgb(255 255 255 / .18);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -1px 0 rgb(0 0 0 / .22),
              0 8px 22px -10px color-mix(in oklab, var(--accent) 70%, transparent), 0 1px 2px rgb(0 0 0 / .35);
}
html[data-finish="premium"] .btn-primary:hover { background: var(--metal); filter: brightness(1.07) saturate(1.05); }
html[data-finish="premium"] .btn:active { transform: translateY(1px); box-shadow: inset 0 2px 6px rgb(0 0 0 / .35); }
html[data-finish="premium"] .btn-ghost { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 30%, var(--line)); }
html[data-finish="premium"] .icon-btn:hover { box-shadow: inset 0 1px 0 var(--hi); }

/* Campos rebaixados, foco com brilho do tema */
html[data-finish="premium"] :is(.input, .select, .textarea) {
  box-shadow: inset 0 2px 4px rgb(0 0 0 / .28), inset 0 -1px 0 var(--hi);
}
html[data-finish="premium"] :is(.input, .select, .textarea):focus {
  border-color: color-mix(in oklab, var(--accent) 70%, transparent);
  box-shadow: inset 0 2px 4px rgb(0 0 0 / .22), 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
html[data-finish="premium"] .switch input:checked { background: var(--metal); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35); }

/* Cabeçalho e menu */
html[data-finish="premium"] .main-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); opacity: .35; }
html[data-finish="premium"] .side { background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 94%, white 6%), var(--surface) 30%); box-shadow: 1px 0 0 var(--hi); }
html[data-finish="premium"] .nav a.is-on { position: relative; background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 14%, var(--surface-2)), var(--surface-2)); }
html[data-finish="premium"] .nav a.is-on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--metal); }

/* Folhas e listas */
html[data-finish="premium"] .sheet { box-shadow: inset 0 1px 0 var(--hi), 0 -30px 60px -20px var(--depth); }
html[data-finish="premium"] .sheet::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: var(--brass); opacity: .7; }
html[data-finish="premium"] .select-row { box-shadow: inset 0 1px 0 var(--hi); }
html[data-finish="premium"] .select-row.is-on { box-shadow: inset 0 0 0 1.5px var(--accent), 0 10px 24px -14px color-mix(in oklab, var(--accent) 60%, transparent); }
html[data-finish="premium"] .avatar { box-shadow: inset 0 1px 0 var(--hi), 0 0 0 1px color-mix(in oklab, var(--accent) 25%, transparent); }
html[data-finish="premium"] .pill { box-shadow: inset 0 1px 0 var(--hi); }

@media (prefers-reduced-motion: reduce) {
  html[data-finish="premium"] .btn:active { transform: none; }
}

/* Escolha do acabamento (Aparência) */
.finish-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.finish-option { display: block; cursor: pointer; }
.finish-option input { position: absolute; opacity: 0; }
.finish-card { display: block; padding: 18px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.finish-option input:checked + .finish-card { box-shadow: inset 0 0 0 1.5px var(--accent); }
.finish-option input:focus-visible + .finish-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.finish-demo { display: flex; gap: 8px; margin-top: 14px; }
.finish-demo span { height: 34px; padding: 0 14px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; }
.finish-demo .a { background: var(--accent); color: var(--accent-ink); }
.finish-demo .b { background: var(--surface); }
.finish-demo.premium .a { background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 72%, white 28%), var(--accent) 46%, color-mix(in oklab, var(--accent) 82%, black 18%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -1px 0 rgb(0 0 0 / .22), 0 8px 18px -10px var(--accent); }
.finish-demo.premium .b { box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 1px 2px rgb(0 0 0 / .3); }


/* =============================================================================
   ACABAMENTO DELICADO (Aparência → Acabamento). Feito para nails, lash, sobrancelha
   e estúdios femininos: letras arredondadas (Quicksand + Nunito), cantos bem
   redondos, sombras em tom de pétala, botões que “afundam” com um leve pulo e
   pequenos brilhos. Funciona com qualquer tema; os temas “Fofos e meigos” trazem
   o tom pétala próprio.
   ========================================================================== */
html[data-finish="delicado"] {
  --serif: "Quicksand", "Nunito", system-ui, sans-serif;
  --sans: "Nunito", "Quicksand", system-ui, sans-serif;
  --r-sm: 16px; --r-md: 22px; --r-lg: 30px;
  --glow: 0 14px 30px -18px color-mix(in oklab, var(--accent) 55%, transparent);
  --soft: 0 10px 28px -18px color-mix(in oklab, var(--accent) 40%, rgb(0 0 0 / .4));
}
html[data-finish="delicado"] body {
  background:
    radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--petal) 70%, transparent) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    radial-gradient(900px 420px at 100% -120px, color-mix(in oklab, var(--petal) 55%, transparent), transparent 70%),
    var(--bg);
}
html[data-finish="delicado"] :is(h1, h2, h3, .display, .num, .brand-name, .plan-name, .site-title, .choice-title, .place-name) {
  font-weight: 650; letter-spacing: -.01em; font-variation-settings: normal;
}
html[data-finish="delicado"] :is(h1, .site-title) { font-weight: 700; }
html[data-finish="delicado"] .figure .value, html[data-finish="delicado"] .promo-card .value { font-weight: 700; }
html[data-finish="delicado"] .site-title em { font-style: normal; }

/* Um brilho na saudação: “Boa tarde, Ana. ✦” */
html[data-finish="delicado"] .hello h1::after { content: " ✦"; color: var(--accent); font-size: .6em; vertical-align: .55em; }

/* Cartões macios, sem borda dura, com sombra cor de pétala */
html[data-finish="delicado"] :is(.panel, .figures, .track-card, .barber-card, .club-card, .plan-card, .choice, .place,
  .demo-card, .feature-card, .select-row, .promo-card, .unlock-card, .theme-card, .date-chip, .slot) {
  box-shadow: var(--soft), inset 0 0 0 1px color-mix(in oklab, var(--petal) 55%, transparent);
}
html[data-finish="delicado"] .select-row.is-on { box-shadow: var(--glow), inset 0 0 0 2px var(--accent); }

/* Bolhas de pétala no canto dos cartões de destaque */
html[data-finish="delicado"] :is(.club-card, .track-card, .solo-hero, .promo-card, .unlock-card) { position: relative; overflow: hidden; }
html[data-finish="delicado"] :is(.club-card, .track-card, .solo-hero, .promo-card, .unlock-card)::before {
  content: ""; position: absolute; width: 150px; height: 150px; right: -48px; top: -58px; border-radius: 50%;
  background: radial-gradient(circle at 30% 70%, var(--petal), transparent 68%);
  opacity: .85; pointer-events: none;
}
html[data-finish="delicado"] :is(.club-card, .track-card, .solo-hero, .promo-card, .unlock-card) > * { position: relative; }

/* Botões arredondados, com brilho e um pulinho ao tocar */
html[data-finish="delicado"] .btn { font-weight: 700; letter-spacing: 0; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, background .2s; }
html[data-finish="delicado"] .btn-primary {
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 82%, white 18%), var(--accent));
  box-shadow: var(--glow), inset 0 1px 0 rgb(255 255 255 / .35);
}
html[data-finish="delicado"] .btn-primary:hover { background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 72%, white 28%), var(--accent)); }
html[data-finish="delicado"] .btn:active { transform: scale(.94); }
html[data-finish="delicado"] .btn:not(.btn-primary):not(.btn-ghost):not(.btn-ok):not(.btn-danger) { background: var(--petal); color: var(--text); }
html[data-finish="delicado"] .btn-ghost { box-shadow: inset 0 0 0 1.5px var(--petal); }

/* Campos e escolhas em formato de pílula */
html[data-finish="delicado"] :is(.input, .select) { border-radius: var(--r-pill); padding-left: 20px; background-color: var(--surface); box-shadow: inset 0 0 0 1.5px var(--petal); }
html[data-finish="delicado"] .textarea, html[data-finish="delicado"] textarea.input { border-radius: var(--r-md); }
html[data-finish="delicado"] :is(.input, .select, .textarea):focus { border-color: transparent; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px color-mix(in oklab, var(--accent) 14%, transparent); }
html[data-finish="delicado"] .chip { background: var(--petal); font-weight: 600; }
html[data-finish="delicado"] .chip.is-on { background: var(--accent); box-shadow: var(--glow); }
html[data-finish="delicado"] .date-chip.is-on, html[data-finish="delicado"] .slot.is-on { box-shadow: var(--glow); }
html[data-finish="delicado"] .switch input:checked { background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 75%, white 25%), var(--accent)); }
html[data-finish="delicado"] .pill { font-weight: 700; }
html[data-finish="delicado"] .avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--petal); }
html[data-finish="delicado"] .lounge-icon, html[data-finish="delicado"] .choice-ic, html[data-finish="delicado"] .unlock-ic { border-radius: 50%; background: var(--petal); color: var(--accent); }

/* Barra “Agendar horário” flutuando como pílula */
html[data-finish="delicado"] .cta-bar { background: none; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
html[data-finish="delicado"] .cta-bar .btn { height: 58px; box-shadow: var(--glow), 0 20px 40px -20px rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .35); }

/* Folhas, menu e cabeçalho */
html[data-finish="delicado"] .sheet { border-top: 0; border-radius: 34px 34px 0 0; box-shadow: 0 -24px 60px -24px color-mix(in oklab, var(--accent) 35%, rgb(0 0 0 / .4)); }
html[data-finish="delicado"] .sheet-grip { background: var(--petal); width: 48px; }
html[data-finish="delicado"] .nav a { border-radius: var(--r-pill); }
html[data-finish="delicado"] .nav a.is-on { background: var(--petal); color: var(--text); font-weight: 700; }
html[data-finish="delicado"] .figure + .figure::before { background: var(--petal); }
html[data-finish="delicado"] .section-head h2::after, html[data-finish="delicado"] .section-head h3::after {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: .2em; opacity: .7;
}

@media (prefers-reduced-motion: reduce) {
  html[data-finish="delicado"] .btn { transition: none; }
  html[data-finish="delicado"] .btn:active { transform: none; }
}

/* Amostra do acabamento Delicado na tela Aparência */
.finish-demo.delicado span { font-family: "Quicksand", sans-serif; font-weight: 700; }
.finish-demo.delicado .a { background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 80%, white 20%), var(--accent));
  box-shadow: 0 10px 20px -12px var(--accent); }
.finish-demo.delicado .b { background: var(--petal); color: var(--text); }
.theme-card .sw-tag { font-size: 11px; font-weight: 700; color: var(--accent); }
.theme-swatch.is-cute { position: relative; overflow: hidden; }
.theme-swatch.is-cute > * { position: relative; z-index: 1; }
.theme-swatch.is-cute::after { content: ""; position: absolute; width: 96px; height: 96px; right: -26px; top: -34px; border-radius: 50%; background: var(--sw-petal); }
.theme-swatch.is-cute::before { content: ""; position: absolute; width: 26px; height: 26px; right: 62px; top: 54px; border-radius: 50%; background: var(--sw-petal); opacity: .7; }
.theme-swatch.is-cute .sw-title { font-family: "Quicksand", sans-serif; font-weight: 700; }
.theme-swatch.is-cute .sw-pill { border-radius: 99px; box-shadow: 0 6px 14px -8px currentColor; }
html[data-finish="delicado"] .date-strip { padding-top: 6px; padding-bottom: 22px; margin-bottom: -12px; }
