/*!
 * GeoBarber — Design System
 * Inspiração: barbearias inglesas clássicas. Carvão, grafite, marfim e bronze envelhecido.
 */
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant.woff") format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --charcoal: #171717;
  --graphite: #252525;
  --graphite-2: #2f2f2f;
  --ivory: #F5F1E9;
  --ivory-2: #EDE7DB;
  --bronze: #A88B62;
  --bronze-light: #C4A87E;
  --bronze-dark: #7E6542;
  --white: #FFFFFF;
  --ink: #1d1d1d;
  --ink-2: #4a463f;
  --muted: #7b756b;
  --line: #e2dbcd;
  --line-dark: rgba(245, 241, 233, .09);
  --success: #3f7a52;
  --success-bg: #e6f0e8;
  --warn: #9a6a12;
  --warn-bg: #f7ecd4;
  --danger: #a3392f;
  --danger-bg: #f6e1de;
  --info: #3d5f86;
  --info-bg: #e2eaf3;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(23, 23, 23, .06), 0 2px 8px rgba(23, 23, 23, .04);
  --shadow-2: 0 2px 4px rgba(23, 23, 23, .05), 0 12px 32px -8px rgba(23, 23, 23, .14);
  --shadow-3: 0 30px 60px -20px rgba(0, 0, 0, .45);
  --font-display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sidebar-w: 268px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-ui); font-size: 15px; line-height: 1.55; color: var(--ink);
  background: var(--ivory); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.serif { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(168, 139, 98, .3); }

/* Transições entre páginas (navegadores com suporte) + fallback */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
.page-enter { animation: page-in .45s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 24px; height: 24px; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--bronze), transparent); opacity: .55; border: 0; margin: 0; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ---------- Layout utilitário ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 18px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.span-2 { grid-column: 1 / -1; }
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.list-item .badge { flex: none; }
[data-row] .input { min-width: 0; flex: 1 1 0; padding-left: 10px; padding-right: 8px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.hide-mobile { display: none !important; }
@media (min-width: 760px) { .hide-mobile { display: revert !important; } .only-mobile { display: none !important; } }

/* ---------- Botões ---------- */
.btn {
  --b-bg: var(--charcoal); --b-fg: var(--ivory); --b-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 14px; letter-spacing: .01em;
  cursor: pointer; user-select: none; white-space: nowrap; text-align: center;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 14px -8px rgba(0,0,0,.45);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 12px 22px -10px rgba(0,0,0,.5); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { --b-bg: linear-gradient(180deg, var(--bronze-light), var(--bronze) 55%, var(--bronze-dark)); --b-fg: #1a140c; }
.btn-primary { background: linear-gradient(180deg, #c4a87e 0%, #a88b62 60%, #93774f 100%); }
.btn-primary:hover { background: linear-gradient(180deg, #cdb38b 0%, #b0936a 60%, #987b53 100%); }
.btn-light { --b-bg: var(--white); --b-fg: var(--ink); --b-bd: var(--line); box-shadow: var(--shadow-1); }
.btn-ghost { --b-bg: transparent; --b-fg: currentColor; --b-bd: transparent; box-shadow: none; }
.btn-ghost:hover { background: rgba(168, 139, 98, .12); box-shadow: none; }
.btn-outline { --b-bg: transparent; --b-fg: currentColor; --b-bd: rgba(168, 139, 98, .55); box-shadow: none; }
.btn-outline:hover { --b-bd: var(--bronze); background: rgba(168,139,98,.08); }
.btn-danger { --b-bg: var(--danger); --b-fg: #fff; }
.btn-success { --b-bg: var(--success); --b-fg: #fff; }
.btn-whatsapp { --b-bg: #1f7a4d; --b-fg: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-xs { min-height: 30px; padding: 0 11px; font-size: 12px; gap: 6px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; border-radius: 12px; }
.btn .spinner { display: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading .spinner { display: block; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--b-fg) transparent var(--b-fg) transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--bronze-dark); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(168,139,98,.4); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--bronze); }

/* ---------- Cartões ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 20px; transition: box-shadow .25s var(--ease), transform .25s var(--ease); min-width: 0; }
.card-lift:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.card-sub { color: var(--muted); font-size: 13px; }
.card-flush { padding: 0; overflow-x: auto; overflow-y: hidden; }
.card-dark { background: linear-gradient(160deg, var(--graphite), var(--charcoal)); color: var(--ivory); border-color: #000; }
.card-dark .muted { color: #a9a296; }
@media (min-width: 760px) { .card { padding: 24px; } }

.stat { position: relative; overflow: hidden; }
.stat .stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .stat-value { font-family: var(--font-display); font-size: 38px; font-weight: 600; line-height: 1.05; margin-top: 8px; font-variant-numeric: lining-nums tabular-nums; }
.stat .stat-foot { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(168,139,98,.16), transparent 70%); pointer-events: none; }
.stat-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(168,139,98,.14); color: var(--bronze-dark); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--ivory-2); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-plain::before { display: none; }
.badge-success, .st-completed, .st-paid, .st-active, .st-approved { background: var(--success-bg); color: var(--success); }
.badge-warn, .st-pending_payment, .st-pending, .st-processing, .st-sending, .st-new { background: var(--warn-bg); color: var(--warn); }
.badge-danger, .st-cancelled, .st-declined, .st-failed, .st-suspended, .st-rejected, .st-expired, .st-error, .st-no_show { background: var(--danger-bg); color: var(--danger); }
.badge-info, .st-scheduled, .st-contacted, .st-refunded { background: var(--info-bg); color: var(--info); }
.st-confirmed { background: #ece3d3; color: var(--bronze-dark); }
.badge-bronze { background: rgba(168,139,98,.16); color: var(--bronze-dark); }
.badge-dark { background: var(--charcoal); color: var(--ivory); }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--muted); }
.error { font-size: 12.5px; color: var(--danger); font-weight: 500; animation: shake .35s var(--ease); }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b756b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #cfc5b2; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(168, 139, 98, .16); }
.input[readonly] { background: var(--ivory); }
.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 4px rgba(163, 57, 47, .1) !important; }
.input-group { position: relative; }
.input-group .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-group .input { padding-left: 42px; }
.input-group .toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; padding: 8px; color: var(--muted); cursor: pointer; border-radius: 8px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid #c9bfab; border-radius: 6px; background: #fff; display: grid; place-items: center; transition: all .18s var(--ease); cursor: pointer; }
.check input:checked { background: var(--charcoal); border-color: var(--charcoal); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--bronze-light); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type=radio] { border-radius: 50%; }
.check input[type=radio]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--bronze-light); transform: none; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #d8cfbf; position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--bronze); }
.switch input:checked::after { transform: translateX(18px); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; transition: all .2s var(--ease); min-height: 52px; }
.choice input:checked + span { border-color: var(--bronze); background: rgba(168,139,98,.08); box-shadow: 0 0 0 3px rgba(168,139,98,.15); }
.choice input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }

/* ---------- Alertas e toasts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid transparent; }
.alert .icon { margin-top: 2px; }
.alert-success { background: var(--success-bg); color: #24502f; border-color: #cfe2d3; }
.alert-error { background: var(--danger-bg); color: #6f241d; border-color: #eccac5; }
.alert-warn { background: var(--warn-bg); color: #6a4708; border-color: #ecdbb5; }
.alert-info { background: var(--info-bg); color: #2b4766; border-color: #cbd8e8; }
.toasts { position: fixed; z-index: 90; right: 16px; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; align-items: flex-end; }
@media (min-width: 640px) { .toasts { left: auto; top: 18px; bottom: auto; width: 400px; } }
.toast { pointer-events: auto; width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--charcoal); color: var(--ivory); box-shadow: var(--shadow-3); border: 1px solid rgba(255,255,255,.06); animation: toast-in .45s var(--ease) both; font-size: 14px; }
.toast .icon { color: var(--bronze-light); margin-top: 1px; }
.toast.toast-error .icon { color: #f0a59c; }
.toast.toast-warning .icon { color: #f0cf8a; }
.toast .toast-close { margin-left: auto; background: none; border: 0; color: #9b958a; cursor: pointer; padding: 2px; }
.toast.is-leaving { animation: toast-out .3s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ---------- Tabelas (viram cartões no celular) ---------- */
.table-wrap { width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbf9f5; white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid #f0ebe1; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fcfaf6; }
@media (max-width: 759px) {
  .table-responsive thead { display: none; }
  .table-responsive, .table-responsive tbody, .table-responsive tr, .table-responsive td { display: block; width: 100%; }
  .table-responsive tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table-responsive td { padding: 4px 0; border: 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .table-responsive td::before { content: attr(data-label); font-size: 12px; color: var(--muted); font-weight: 600; text-align: left; flex: none; }
  .table-responsive td[data-label=""]::before { display: none; }
  .table-responsive td.td-actions { justify-content: flex-end; padding-top: 10px; }
}
.td-actions { white-space: nowrap; text-align: right; }
.td-actions .row { justify-content: flex-end; flex-wrap: nowrap; }

/* ---------- Avatares ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: linear-gradient(145deg, #3a3a3a, #1d1d1d); color: var(--bronze-light); overflow: hidden; border: 2px solid rgba(168,139,98,.35); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.avatar-sm { width: 30px; height: 30px; font-size: 11px; border-width: 1.5px; }

/* ---------- Vazio / skeleton ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: rgba(168,139,98,.12); color: var(--bronze-dark); }
.empty h3 { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.skeleton { position: relative; overflow: hidden; background: #ece6da; border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; margin: 8px 0; }
.sk-block { height: 44px; }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--ivory-2); border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; border: 0; background: transparent; transition: all .2s var(--ease); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--ink); }
.tab.is-active, .tab[aria-selected=true] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-1); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: page-in .35s var(--ease) both; }

/* ---------- Modal ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--white); color: var(--ink); box-shadow: var(--shadow-3); overflow: auto; }
dialog.modal::backdrop { background: rgba(15, 15, 15, .55); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: modal-in .35s var(--ease) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-head h3 { font-family: var(--font-display); font-size: 24px; }
.modal-body { padding: 18px 22px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; flex-wrap: wrap; }
@media (max-width: 640px) { dialog.modal { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 22px 22px 0 0; } }

/* ---------- Paginação ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; }
.pagination .is-active { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.pagination .is-disabled { opacity: .45; }

/* =====================================================================
   Painéis (admin / barbearia / barbeiro / cliente)
   ===================================================================== */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60; background: var(--charcoal); color: #d9d3c7;
  display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .35s var(--ease);
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(168,139,98,.13), transparent 60%);
  border-right: 1px solid #000;
}
.sidebar.is-open { transform: none; box-shadow: var(--shadow-3); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; }
.sidebar-brand img { width: 40px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.sidebar-brand .t { font-family: var(--font-display); font-size: 22px; color: var(--ivory); line-height: 1; }
.sidebar-brand .s { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin-top: 4px; }
.sidebar-context { margin: 0 14px 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); display: flex; align-items: center; gap: 10px; }
.sidebar-context .avatar { width: 34px; height: 34px; font-size: 12px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.nav-group { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #77716a; padding: 16px 10px 8px; font-weight: 600; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #c9c2b5; font-size: 14px; font-weight: 500; transition: background .2s, color .2s, transform .2s var(--ease); }
.nav-link:hover { background: rgba(255,255,255,.05); color: var(--ivory); transform: translateX(2px); }
.nav-link.is-active { background: linear-gradient(90deg, rgba(168,139,98,.22), rgba(168,139,98,.06)); color: var(--ivory); }
.nav-link.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bronze); }
.nav-link .icon { color: #8f887c; }
.nav-link.is-active .icon, .nav-link:hover .icon { color: var(--bronze-light); }
.nav-link .count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--bronze); color: #1a140c; }
.sidebar-foot { padding: 14px; border-top: 1px solid var(--line-dark); }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(245, 241, 233, .86); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(226, 219, 205, .8); }
.topbar .page-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 18px 16px 48px; width: 100%; max-width: 1320px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-family: var(--font-display); font-size: 32px; font-weight: 600; }
.page-head p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.user-menu { position: relative; margin-left: auto; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 4px; border-radius: 999px; transition: background .2s; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: rgba(168,139,98,.12); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); padding: 8px; z-index: 50; animation: page-in .25s var(--ease) both; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); }
.dropdown a:hover, .dropdown button:hover { background: var(--ivory); }
.dropdown .sep { height: 1px; background: var(--line); margin: 6px 4px; }
@media (min-width: 1024px) {
  .sidebar { transform: none; }
  .main { margin-left: var(--sidebar-w); }
  .menu-toggle { display: none !important; }
  .content { padding: 28px 32px 64px; }
  .topbar { padding: 14px 32px; }
  .scrim { display: none; }
}

/* Lista de itens (agenda do dia, próximos) */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0ebe1; min-width: 0; }
.list-item:last-child { border-bottom: 0; }
.time-pill { flex: none; min-width: 62px; text-align: center; padding: 8px 6px; border-radius: 12px; background: var(--charcoal); color: var(--ivory); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.time-pill small { display: block; font-size: 10.5px; color: var(--bronze-light); font-weight: 500; }

/* Gráficos */
.chart { position: relative; width: 100%; height: 240px; }
.chart canvas { width: 100% !important; height: 100% !important; }
.chart-tip { position: absolute; pointer-events: none; background: var(--charcoal); color: var(--ivory); font-size: 12px; padding: 7px 10px; border-radius: 9px; box-shadow: var(--shadow-2); white-space: nowrap; transform: translate(-50%, -115%); opacity: 0; transition: opacity .15s; z-index: 2; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-list .bl-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.bar-list .bl-track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--ivory-2); overflow: hidden; }
.bar-list .bl-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--bronze-dark), var(--bronze-light)); transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- Agenda ---------- */
.agenda-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.agenda-nav { display: flex; align-items: center; gap: 6px; }
.agenda-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; min-width: 0; }
.agenda-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.agenda-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(63,122,82,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63,122,82,0); } 100% { box-shadow: 0 0 0 0 rgba(63,122,82,0); } }
.agenda-body { position: relative; transition: opacity .25s; }
.agenda-body.is-loading { opacity: .55; }
.tg { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: auto; max-height: 72vh; position: relative; }
.tg-head { position: sticky; top: 0; z-index: 3; background: #fbf9f5; border-bottom: 1px solid var(--line); padding: 10px 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
.tg-corner { position: sticky; left: 0; top: 0; z-index: 4; background: #fbf9f5; border-bottom: 1px solid var(--line); }
.tg-times { position: sticky; left: 0; z-index: 2; background: #fff; border-right: 1px solid var(--line); }
.tg-time { height: 64px; font-size: 11px; color: var(--muted); text-align: right; padding: 0 8px; transform: translateY(-7px); font-variant-numeric: tabular-nums; }
.tg-col { position: relative; border-right: 1px solid #f2ede4; background-image: linear-gradient(#f2ede4 1px, transparent 1px); background-size: 100% 64px; }
.tg-col:last-child { border-right: 0; }
.ev { position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 6px 8px; font-size: 12px; line-height: 1.3; overflow: hidden; color: var(--ink); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--bronze)); box-shadow: 0 4px 12px -6px rgba(0,0,0,.25); transition: transform .2s var(--ease), box-shadow .2s; cursor: pointer; animation: ev-in .4s var(--ease) both; }
.ev:hover { transform: translateY(-1px) scale(1.01); box-shadow: 0 10px 22px -10px rgba(0,0,0,.35); z-index: 2; }
.ev strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .ev-meta { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.st-completed { opacity: .7; }
.ev.st-pending_payment { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #faf3e4 6px, #faf3e4 12px); }
.ev.st-no_show, .ev.st-cancelled { opacity: .55; text-decoration: line-through; }
@keyframes ev-in { from { opacity: 0; transform: translateY(4px); } }
.blk { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(23,23,23,.05), rgba(23,23,23,.05) 6px, rgba(23,23,23,.09) 6px, rgba(23,23,23,.09) 12px); border-top: 1px dashed #bdb3a1; border-bottom: 1px dashed #bdb3a1; font-size: 11px; color: var(--muted); padding: 4px 8px; overflow: hidden; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 1; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.week-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .week-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.week-day { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 120px; min-width: 0; }
.week-day.is-today { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(168,139,98,.15); }
.week-day h4 { font-size: 13px; text-transform: capitalize; display: flex; justify-content: space-between; margin-bottom: 10px; }
.week-item { display: block; padding: 8px 10px; border-radius: 9px; background: var(--ivory); border-left: 3px solid var(--c, var(--bronze)); margin-bottom: 6px; font-size: 12.5px; transition: transform .2s var(--ease); min-width: 0; }
.week-item:hover { transform: translateX(2px); }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month-grid .mh { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: center; padding: 4px 0; font-weight: 600; }
.month-cell { min-height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: 6px; font-size: 12px; cursor: pointer; transition: all .2s var(--ease); display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: left; }
.month-cell:hover { border-color: var(--bronze); transform: translateY(-1px); }
.month-cell.is-out { opacity: .4; }
.month-cell.is-today { border-color: var(--bronze); background: #fcf8f1; }
.month-cell .d { font-weight: 700; font-size: 13px; }
.month-cell .n { margin-top: auto; font-size: 11px; font-weight: 700; color: var(--bronze-dark); }
.month-cell .dots { display: flex; gap: 3px; flex-wrap: wrap; }
.month-cell .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--bronze)); }
@media (min-width: 760px) { .month-cell { min-height: 96px; padding: 8px; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* =====================================================================
   Autenticação
   ===================================================================== */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; background: var(--ivory); }
.auth-art { position: relative; display: none; background: radial-gradient(90% 70% at 50% 35%, #2a2723 0%, #171717 60%, #0f0f0f 100%); overflow: hidden; color: var(--ivory); }
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(168,139,98,.05) 0 2px, transparent 2px 22px); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
.auth-art-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; text-align: center; gap: 28px; }
.auth-art blockquote { margin: 0; max-width: 420px; font-family: var(--font-display); font-size: 26px; line-height: 1.3; color: #e9e2d4; }
.auth-art cite { display: block; margin-top: 12px; font-style: normal; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); font-family: var(--font-ui); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 28px 20px 40px; min-width: 0; }
.auth-box { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-box h1 { font-family: var(--font-display); font-size: 36px; font-weight: 600; }
.auth-mobile-logo { display: flex; justify-content: center; margin: 4px 0 18px; padding: 20px; border-radius: 22px; background: radial-gradient(90% 90% at 50% 30%, #2a2723, #141414); }
@media (min-width: 980px) {
  .auth { grid-template-columns: 1.05fr 1fr; }
  .auth-art { display: block; }
  .auth-mobile-logo { display: none; }
  .auth-panel { padding: 48px; }
}
/* Logo flutuante com sombra dinâmica */
.float-logo { position: relative; display: flex; flex-direction: column; align-items: center; }
.float-logo img { width: min(340px, 70vw); height: auto; animation: float 6s ease-in-out infinite; will-change: transform; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.float-logo .shadow { width: 46%; height: 18px; margin-top: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); animation: float-shadow 6s ease-in-out infinite; }
.auth-mobile-logo .float-logo img { width: 170px; }
.auth-mobile-logo .float-logo .shadow { height: 12px; margin-top: 10px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-shadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.78); opacity: .5; } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-btns { display: grid; gap: 10px; }
.btn-social { --b-bg: #fff; --b-fg: var(--ink); --b-bd: var(--line); box-shadow: var(--shadow-1); justify-content: center; }
.btn-social svg { width: 18px; height: 18px; }
.btn-social.apple { --b-bg: #000; --b-fg: #fff; --b-bd: #000; }
.btn-social.facebook { --b-bg: #1877F2; --b-fg: #fff; --b-bd: #1877F2; }

/* =====================================================================
   Site institucional
   ===================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.is-scrolled { background: rgba(23, 23, 23, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px -15px rgba(0,0,0,.6); }
.site-header .bar { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand-mini { display: flex; align-items: center; gap: 10px; color: var(--ivory); }
.brand-mini img { width: 34px; }
.brand-mini span { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.brand-mini b { color: var(--bronze-light); font-weight: 600; }
.site-nav { display: none; gap: 4px; margin-left: auto; }
.site-nav a { color: #d8d1c4; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.site-nav a:hover { color: var(--ivory); background: rgba(255,255,255,.06); }
.site-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.site-actions .btn-outline { color: var(--ivory); }
@media (min-width: 900px) { .site-nav { display: flex; } .site-actions { margin-left: 12px; } }
.mobile-nav { position: fixed; inset: 72px 0 auto; background: rgba(23,23,23,.97); padding: 12px 20px 22px; display: none; flex-direction: column; gap: 4px; z-index: 49; border-bottom: 1px solid #000; }
.mobile-nav.is-open { display: flex; animation: page-in .3s var(--ease); }
.mobile-nav a { color: var(--ivory); padding: 12px 6px; border-bottom: 1px solid var(--line-dark); font-size: 16px; }
.hero { position: relative; color: var(--ivory); background: radial-gradient(70% 70% at 70% 30%, #2b2723 0%, var(--charcoal) 55%, #0f0f0f 100%); padding: 120px 0 80px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(168,139,98,.045) 0 2px, transparent 2px 26px); }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-grid > * { min-width: 0; }
@media (min-width: 980px) { .hero { padding: 150px 0 110px; } .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 9vw, 76px); overflow-wrap: break-word; line-height: 1.02; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--bronze-light); font-weight: 500; }
.hero p.lead { margin-top: 22px; font-size: clamp(16px, 2vw, 19px); color: #cfc8bb; max-width: 560px; line-height: 1.6; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.reveal-title span { display: inline-block; }
.js .reveal-title span { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; color: #a49d90; font-size: 13px; }
.hero-meta b { display: block; font-family: var(--font-display); color: var(--ivory); font-size: 28px; font-weight: 600; }
.mock { position: relative; perspective: 1400px; }
.mock-window { position: relative; border-radius: 18px; background: #1f1f1f; border: 1px solid #2f2f2f; box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(168,139,98,.15); transform: rotateY(-10deg) rotateX(6deg); transition: transform .8s var(--ease); overflow: hidden; }
.mock:hover .mock-window { transform: rotateY(-4deg) rotateX(2deg); }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #2c2c2c; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.mock-body { display: grid; grid-template-columns: 56px minmax(0, 1fr); min-height: 340px; }
.mock-side { background: #171717; border-right: 1px solid #2a2a2a; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.mock-side i { width: 34px; height: 8px; border-radius: 4px; background: #2e2e2e; }
.mock-side i:first-child { background: var(--bronze); }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; background: #f5f1e9; }
.mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-stat { background: #fff; border-radius: 10px; padding: 10px; border: 1px solid #e6dfd2; }
.mock-stat small { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #8a8378; }
.mock-stat b { font-family: var(--font-display); font-size: 24px; color: #1d1d1d; }
.mock-row { display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; background: #fff; border-radius: 10px; padding: 9px 10px; border: 1px solid #e6dfd2; font-size: 11px; color: #3b3b3b; animation: ev-in .6s var(--ease) both; }
.mock-row .t { background: #171717; color: #f5f1e9; font-weight: 700; padding: 4px 7px; border-radius: 7px; }
.mock-row .b { margin-left: auto; font-size: 9px; padding: 2px 7px; border-radius: 99px; background: #e6f0e8; color: #3f7a52; font-weight: 700; }
.mock-float { position: absolute; right: -6px; bottom: -22px; width: 190px; background: #fff; color: var(--ink); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-3); animation: float 7s ease-in-out infinite; }
@media (max-width: 600px) { .mock-float { display: none; } .mock-window { transform: none; } }
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 110px 0; } }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); font-weight: 600; margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.section-dark { background: var(--charcoal); color: var(--ivory); }
.section-dark .section-head p { color: #b6afa2; }
.feature { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature .fi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--charcoal); color: var(--bronze-light); margin-bottom: 18px; box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }
.feature h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.section-dark .feature { background: var(--graphite); border-color: #303030; }
.section-dark .feature p { color: #aba496; }
.steps { counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); border: 1px solid #303030; background: rgba(255,255,255,.02); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 44px; color: var(--bronze); line-height: 1; display: block; margin-bottom: 12px; }
.step h3 { font-size: 17px; }
.step p { color: #aba496; font-size: 14px; margin-top: 6px; }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--bronze); margin-top: 3px; }
.cta-band { position: relative; border-radius: 28px; padding: 44px 26px; background: radial-gradient(80% 120% at 0% 0%, #3a3127, #171717 60%); color: var(--ivory); overflow: hidden; }
@media (min-width: 900px) { .cta-band { padding: 64px; } }
.site-footer { background: #0f0f0f; color: #9d978b; padding: 56px 0 28px; font-size: 14px; }
.site-footer a:hover { color: var(--ivory); }
.site-footer .stack a { display: block; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.legal { max-width: 820px; }
.legal h2 { font-family: var(--font-display); font-size: 28px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; }
.legal ul { padding-left: 20px; }

/* =====================================================================
   Página pública da barbearia
   ===================================================================== */
.shop-page { --t-bg: #171717; --t-surface: #252525; --t-accent: #A88B62; --t-text: #F5F1E9; background: var(--ivory); }
.shop-cover { position: relative; min-height: 300px; color: var(--t-text); background: var(--t-bg); overflow: hidden; display: flex; align-items: flex-end; }
.shop-cover-img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: cover-in 1.6s var(--ease) forwards; }
@keyframes cover-in { to { transform: scale(1); } }
.shop-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 40%, rgba(10,10,10,.92) 100%); }
.shop-cover.no-img::after { background: radial-gradient(70% 90% at 70% 10%, rgba(168,139,98,.22), transparent 60%); }
.shop-cover .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 28px; }
.shop-id { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.shop-logo { width: 96px; height: 96px; border-radius: 24px; background: var(--t-surface); border: 2px solid rgba(255,255,255,.12); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); overflow: hidden; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-size: 40px; color: var(--t-accent); }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-id h1 { font-family: var(--font-display); font-size: clamp(34px, 6vw, 54px); font-weight: 600; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.4); }
.shop-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); transition: background .2s; }
a.chip:hover { background: rgba(255,255,255,.18); }
.chip-open { background: rgba(63,122,82,.35); }
.chip-closed { background: rgba(163,57,47,.35); }
.shop-layout { display: grid; gap: 22px; padding-top: 22px; padding-bottom: 60px; }
@media (max-width: 999px) { .shop-aside { order: -1; } }
@media (min-width: 1000px) { .shop-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .shop-aside { position: sticky; top: 20px; } }
.booking { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; }
.booking-head { padding: 20px 22px; background: var(--t-bg); color: var(--t-text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.booking-head h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.booking-steps { display: flex; gap: 6px; }
.booking-steps i { width: 26px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.2); transition: background .3s; }
.booking-steps i.is-done { background: var(--t-accent); }
.booking-body { padding: 20px 22px 24px; }
.bk-step { display: none; }
.bk-step.is-active { display: block; animation: page-in .4s var(--ease) both; }
.bk-label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.svc-list { display: grid; gap: 10px; }
.svc { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: all .2s var(--ease); }
.svc:hover { border-color: #cdbfa6; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.svc.is-selected { border-color: var(--t-accent, var(--bronze)); background: rgba(168,139,98,.06); box-shadow: 0 0 0 3px rgba(168,139,98,.16); }
.svc-thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; background: var(--ivory-2) center / cover; display: grid; place-items: center; color: var(--bronze-dark); }
.svc-name { font-weight: 600; font-size: 15px; }
.svc-meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.svc-price { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pro-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pro { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: center; transition: all .2s var(--ease); font-size: 14px; font-weight: 600; }
.pro:hover { border-color: #cdbfa6; transform: translateY(-1px); }
.pro.is-selected { border-color: var(--t-accent, var(--bronze)); box-shadow: 0 0 0 3px rgba(168,139,98,.16); }
.pro .avatar { width: 56px; height: 56px; font-size: 18px; }
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; transition: opacity .25s, transform .3s var(--ease); }
.cal-grid.is-switching { opacity: 0; transform: translateX(var(--dir, 8px)); }
.cal-dow { font-size: 11px; text-align: center; color: var(--muted); font-weight: 600; padding: 6px 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; min-height: 40px; border-radius: 12px; border: 0; background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; position: relative; transition: all .18s var(--ease); font-variant-numeric: tabular-nums; }
.cal-day:not([disabled]):hover { background: var(--ivory); }
.cal-day[disabled] { color: #c9c1b3; cursor: default; }
.cal-day.has-slots::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--t-accent, var(--bronze)); transform: translateX(-50%); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--line); }
.cal-day.is-selected { background: var(--charcoal); color: var(--ivory); }
.cal-day.is-selected::after { background: var(--bronze-light); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .18s var(--ease); font-variant-numeric: tabular-nums; animation: ev-in .35s var(--ease) both; }
.slot:hover { border-color: var(--bronze); transform: translateY(-1px); }
.slot.is-selected { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.summary { border-radius: 14px; background: var(--ivory); padding: 14px 16px; font-size: 14px; display: grid; gap: 6px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary span { color: var(--muted); }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--ivory-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.hours { width: 100%; font-size: 14px; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours tr.is-today td { font-weight: 700; color: var(--bronze-dark); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; animation: page-in .3s var(--ease); }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 16px; }
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; }
@media (min-width: 1000px) { .sticky-cta { display: none; } }

/* PIX */
.pix-box { display: grid; gap: 18px; justify-items: center; text-align: center; }
.pix-qr { width: 240px; height: 240px; padding: 14px; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.pix-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.pix-code { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; padding: 12px; border-radius: 12px; background: var(--ivory); border: 1px dashed #cdbfa6; max-height: 96px; overflow: auto; text-align: left; }
.countdown { font-family: var(--font-display); font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status-orb { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--success); animation: pop .6s var(--ease) both; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.waiting-dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); margin: 0 2px; animation: blink 1.4s infinite both; }
.waiting-dots span:nth-child(2) { animation-delay: .2s; }
.waiting-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* Erros */
.error-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 32px 20px; color: var(--ivory); background: radial-gradient(70% 70% at 50% 30%, #2a2622, #171717 60%, #0d0d0d); }
.error-page .code { font-family: var(--font-display); font-size: clamp(90px, 18vw, 170px); line-height: .9; background: linear-gradient(180deg, #d9c19a, #8c6f45); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-family: var(--font-display); font-size: 34px; margin-top: 10px; }
.error-page p { color: #b5aea1; margin: 12px auto 26px; max-width: 460px; }

/* Instalador */
.install { min-height: 100vh; background: radial-gradient(80% 50% at 50% 0%, #2a2622, #171717 70%); padding: 32px 16px 60px; }
.install .card { max-width: 860px; margin: 0 auto; }
.req { display: grid; gap: 6px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .req { grid-template-columns: 1fr 1fr; } }
.req div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 8px 10px; border-radius: 9px; background: var(--ivory); }
.req .ok { color: var(--success); } .req .bad { color: var(--danger); } .req .opt { color: var(--warn); }
.code-block { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; padding: 14px; border-radius: 12px; background: var(--charcoal); color: #e7dfd0; word-break: break-all; position: relative; }

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-title span { opacity: 1; transform: none; animation: none; }
  .mock-window { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media print { .sidebar, .topbar, .toasts, .btn { display: none !important; } .main { margin: 0 !important; } }
