/* BluBarber — design system (baseado no protótipo: navy + vermelho + azul claro, Manrope) */
:root {
  /* Paleta da marca */
  --navy: #141B2D;
  --navy-2: #0F1524;
  --navy-3: #1E2840;
  --navy-4: #283453;
  --navy-line: #34416A;
  --red: #D7263D;
  --red-hover: #B81E33;
  --coral: #FF6B78;
  --sky: #8FB4E8;
  --blue: #2C5FA8;
  --mint: #5BD19A;

  /* Tema claro (painel e admin) */
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #EBEFF6;
  --ink: #141B2D;
  --ink-2: #4A5573;
  --ink-3: #6B7690;
  --line: #D3DAE6;
  --outline: #7C88A3;
  --brand: #D7263D;
  --brand-ink: #FFFFFF;
  --brand-soft: #E3EBF7;
  --accent: #2C5FA8;
  --chip-on-bg: #141B2D;
  --chip-on-ink: #FFFFFF;
  --ok: #1B7A4E;
  --ok-soft: #DDF1E7;
  --warn: #8A5A00;
  --warn-soft: #FBF0DC;
  --bad: #B3401A;
  --bad-soft: #FBE5DD;
  --info: #2C5FA8;
  --info-soft: #E3EBF7;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(20, 27, 45, .14);
  --font: Manrope, "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* Tema escuro do site do cliente */
body.site {
  --bg: #141B2D;
  --surface: #1E2840;
  --surface-2: #283453;
  --ink: #FFFFFF;
  --ink-2: #AEB8CF;
  --ink-3: #AEB8CF;
  --line: #34416A;
  --outline: #6F7FA8;
  --brand-soft: rgba(143, 180, 232, .16);
  --accent: #8FB4E8;
  --chip-on-bg: #FFFFFF;
  --chip-on-ink: #141B2D;
  --ok: #5BD19A;
  --ok-soft: rgba(91, 209, 154, .16);
  --warn: #F3C46B;
  --warn-soft: rgba(243, 196, 107, .14);
  --bad: #FF8A8A;
  --bad-soft: rgba(255, 107, 120, .14);
  --info: #8FB4E8;
  --info-soft: rgba(143, 180, 232, .16);
  --shadow: 0 12px 32px rgba(8, 12, 24, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 500 16px/24px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; letter-spacing: -.03em; margin: 0 0 .4em; line-height: 1.15; }
h1 { font-size: clamp(30px, 5vw, 40px); }
h2 { font-size: 24px; letter-spacing: -.02em; }
h3 { font-size: 18px; letter-spacing: -.02em; }
p { margin: 0 0 .8em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
small, .muted { color: var(--ink-3); }
small { font-size: 13px; }
.ink2 { color: var(--ink-2); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Layout util */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrapx { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.mt { margin-top: 16px; } .mt2 { margin-top: 32px; } .mb { margin-bottom: 16px; }
.hide { display: none !important; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
body.site .eyebrow { color: var(--coral); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 16px; border: none;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; background: var(--red); color: #fff;
  transition: background-color 150ms ease-out, border-color 150ms ease-out; }
.btn:hover { background: var(--red-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
body.site .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
body.site .btn.ghost:hover { background: var(--navy-3); }
.btn.white { background: #fff; color: var(--navy); }
.btn.white:hover { background: #E4E9F2; color: var(--navy); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-3); }
.btn.soft { background: var(--brand-soft); color: var(--accent); }
.btn.soft:hover { background: var(--brand-soft); filter: brightness(.97); color: var(--accent); }
.btn.ok { background: var(--navy); color: #fff; }
body.site .btn.ok { background: var(--sky); color: var(--navy); }
.btn.ok:hover { background: var(--navy-3); color: #fff; }
.btn.bad { background: transparent; color: var(--bad); border: 1.5px solid var(--bad-soft); }
.btn.bad:hover { background: var(--bad-soft); color: var(--bad); }
.btn.text { background: transparent; color: var(--accent); padding: 0 10px; }
.btn.text:hover { background: transparent; text-decoration: underline; color: var(--accent); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.icon { width: 44px; padding: 0; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 700; }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--outline); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; flex: none; }
.iconbtn:hover { border-color: var(--ink); }
.ico-svg { width: 20px; height: 20px; flex: none; }

/* Formulários */
label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-sm); padding: 0 12px; height: 44px; font-size: 15px; font-weight: 500; outline: none; }
textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; }
select { padding-right: 32px; cursor: pointer; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--brand-soft); }
input:disabled { opacity: .6; }
body.site input[type=text], body.site input[type=email], body.site input[type=tel], body.site input[type=search], body.site input[type=date], body.site select, body.site textarea { background: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
body.site .check input { accent-color: var(--sky); }

/* Cartões, tags, KPIs */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
body.site .card { border-color: transparent; }
.card.flat { box-shadow: none; }
.card.pad0 { padding: 0; overflow: hidden; }
.card.raised { box-shadow: var(--shadow); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; line-height: 16px; padding: 3px 10px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.brand, .tag.info { background: var(--info-soft); color: var(--info); }
.tag.red { background: var(--red); color: #fff; }
.tag.sky { background: var(--sky); color: var(--navy); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); background: var(--surface); padding: 6px 12px; border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.kpi small { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.kpi b { font-size: 30px; line-height: 38px; font-weight: 800; letter-spacing: -.03em; }
.kpi .hint { font-size: 13px; color: var(--ink-2); font-weight: 500; }

/* Chips, segmentos, slots, dias */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
body.site .chip { background: transparent; height: 40px; padding: 0 16px; }
.chip:hover { border-color: var(--ink); }
.chip.on, body.site .chip.on { background: var(--chip-on-bg); color: var(--chip-on-ink); border-color: var(--chip-on-bg); font-weight: 700; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.chip .x { font-size: 16px; line-height: 1; opacity: .7; }
.seg-group { display: inline-flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 16px; flex-wrap: wrap; border: 1px solid var(--line); }
body.site .seg-group { border: 0; }
.seg { height: 38px; padding: 0 14px; border-radius: 12px; border: none; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.seg.on { background: var(--navy); color: #fff; }
body.site .seg.on { background: var(--navy-4); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--outline); background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.slot:hover { border-color: var(--ink); }
.slot.on { background: var(--sky); border-color: var(--sky); color: var(--navy); font-weight: 700; }
body:not(.site) .slot.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 64px; border-radius: 14px; border: 1px solid var(--outline);
  background: transparent; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.day small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .8; color: inherit; }
.day b { font-size: 18px; font-weight: 800; line-height: 22px; }
.day:hover { border-color: var(--ink); }
.day.on { background: var(--chip-on-bg); color: var(--chip-on-ink); border-color: var(--chip-on-bg); }
.day.off, .day:disabled { opacity: .35; cursor: not-allowed; }
.toggle { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.toggle.on { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.mini { height: 34px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--outline); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.mini:hover { border-color: var(--ink); color: var(--ink); }
.mini.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.mini.bad { color: var(--bad); }

/* Opções (serviços selecionáveis em listas) */
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; margin: 0; font-weight: 600; color: var(--ink); font-size: 15px; }
.opt.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--brand-soft); }
.opt input { accent-color: var(--navy); width: 18px; height: 18px; }

/* Avatares */
.av { width: 44px; height: 44px; border-radius: 22px; background: var(--navy) center/cover; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.av.sq { border-radius: 14px; }
.av.lg { width: 56px; height: 56px; border-radius: 28px; }
.av.xl { width: 64px; height: 64px; border-radius: 20px; }
body.site .av { background-color: var(--navy-4); }

/* Modal e toast */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 12, 22, .6); z-index: 100; display: grid; place-items: end center; animation: fade .15s; }
@media (min-width: 640px) { .modal-bg { place-items: center; padding: 16px; } }
.modal { background: var(--surface); color: var(--ink); width: 100%; max-width: 540px; max-height: 92vh; overflow: auto; border-radius: 26px 26px 0 0; padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); animation: up .2s ease-out; box-shadow: var(--shadow); }
@media (min-width: 640px) { .modal { border-radius: 26px; } }
.modal.wide { max-width: 760px; }
.modal > .x { float: right; background: var(--surface-2); color: var(--ink); border: 0; width: 36px; height: 36px; border-radius: 18px; cursor: pointer; font-size: 18px; margin: -4px -4px 0 8px; }
.modal h2 { font-size: 22px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 16px; box-shadow: 0 12px 32px rgba(8, 12, 24, .35); font-weight: 600; animation: up .2s; }
.toast.erro { background: var(--red); }
.toast.ok { background: #1B7A4E; }
body.site .toast { background: #fff; color: var(--navy); }
body.site .toast.erro { background: var(--red); color: #fff; }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.empty .ico { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.loader { width: 24px; height: 24px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .7s linear infinite; margin: 32px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.notice.info { background: var(--info-soft); color: var(--info); }
.code-box { font: 800 28px/1 var(--font); letter-spacing: .2em; text-align: center; background: var(--surface-2); padding: 16px; border-radius: 14px; }
.stars { color: #F3B23A; font-weight: 800; }
body.site .stars { color: #fff; }

/* Tabelas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr[data-c]:hover, tbody tr[data-s]:hover, tbody tr[data-p]:hover, tbody tr[style*="cursor:pointer"]:hover { background: var(--bg); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo .mark { width: 34px; height: 34px; flex: none; }
.logo .word { font-size: 22px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.logo .word i { font-style: normal; font-weight: 400; }
.side .logo, .login-wrap .logo, body.site .logo { color: #fff; }

/* =================== PAINEL =================== */
.app { display: flex; min-height: 100vh; }
.side { width: 264px; flex: none; background: var(--navy); color: #fff; padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.side .logo { padding: 0 6px; }
.side-shop { display: flex; gap: 12px; align-items: center; background: var(--navy-3); border-radius: 16px; padding: 12px; }
.side-shop .av { background: #fff center/cover; color: var(--navy); border-radius: 12px; }
.side-shop b { display: block; font-size: 15px; line-height: 20px; }
.side-shop small { color: #AEB8CF; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 14px; color: #AEB8CF; font-size: 15px; font-weight: 700; text-decoration: none; }
.side a:hover { background: var(--navy-3); color: #fff; }
.side a.on, .side a.on:hover { background: #fff; color: var(--navy); }
.side a .lbl { flex: 1; }
.side .foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--navy-line); }
.side :focus-visible { outline-color: var(--sky); }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.main { flex: 1; min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 64px; }
.main-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.main-head h1 { font-size: 32px; line-height: 38px; margin: 0; }
.main-head p, .main-head .sub { margin: 2px 0 0; color: var(--ink-2); font-size: 16px; }
.tabbar { display: none; }
.mob-head { display: none; align-items: center; justify-content: space-between; margin: -12px -16px 16px; padding: 12px 16px; background: var(--navy); }
@media (max-width: 900px) {
  .side { display: none; }
  .main { padding: 12px 16px 100px; }
  .mob-head { display: flex; }
  .mob-head .logo { color: #fff; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--navy); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); overflow-x: auto; gap: 2px; }
  .tabbar a { flex: 1 0 68px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: #AEB8CF; padding: 6px 2px; border-radius: 12px; text-decoration: none; }
  .tabbar a.on { color: var(--navy); background: #fff; }
  .main-head h1 { font-size: 26px; line-height: 32px; }
}

/* Agenda em colunas */
.datenav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.datepill { height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--outline); background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 700; min-width: 170px; position: relative; cursor: pointer; }
.datepill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: 100%; }
.ag-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.ag-col { display: flex; flex-direction: column; gap: 10px; }
.ag-col-head { display: flex; align-items: center; gap: 10px; }
.ag-col-head .av { width: 36px; height: 36px; font-size: 13px; }
.ag-col-head h2 { margin: 0; font-size: 17px; flex: 1; }
.ag-col-head small { color: var(--ink-2); }
.ag-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.ag-card:hover { border-color: var(--outline); }
.ag-card.next { border: 2px solid var(--blue); }
.ag-card .h { font-size: 16px; font-weight: 800; }
.ag-card .cli { font-size: 16px; font-weight: 700; }
.ag-card .cli small { font-weight: 500; color: var(--ink-2); }
.ag-card .det { font-size: 14px; color: var(--ink-2); }
.ag-card .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-card.bloq { background: repeating-linear-gradient(135deg, var(--bg) 0 8px, var(--surface) 8px 16px); cursor: default; }
.ag-card.cancelado { opacity: .6; }
.st { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 10px; white-space: nowrap; }
.st-agendado { background: #FBF0DC; color: #8A5A00; }
.st-confirmado { background: #E3EBF7; color: #2C5FA8; }
.st-atendido { background: #DDF1E7; color: #1B7A4E; }
.st-faltou { background: #FBE5DD; color: #B3401A; }
.st-cancelado, .st-bloqueado { background: #EBEFF6; color: #4A5573; }
.ag-empty { padding: 24px; text-align: center; color: var(--ink-2); font-size: 15px; }

/* Galeria do painel */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gal { aspect-ratio: 1/1; border-radius: 16px; background: var(--surface-2) center/cover; color: var(--ink-2); font-size: 12px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.gal .rm { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 15px; border: none; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.gal .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: 12px; font-weight: 700; }
.gal-add { border: 1.5px dashed var(--outline); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; width: 100%; }
.gal-add:disabled { opacity: .4; cursor: not-allowed; }

/* Semana (horários) */
.week { display: grid; gap: 8px; }
.week .d { display: grid; grid-template-columns: 150px 1fr 1fr auto; gap: 10px; align-items: center; }
@media (max-width: 560px) { .week .d { grid-template-columns: 1fr 1fr; } .week .d > :first-child { grid-column: 1 / -1; } }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--navy); }
.login-card { width: 100%; max-width: 420px; }
.login-card .card { border: 0; padding: 28px; border-radius: 26px; }
.login-card .logo { justify-content: center; display: flex; margin-bottom: 22px; }

/* =================== SITE =================== */
.s-header { border-bottom: 1px solid var(--navy-line); position: sticky; top: 0; z-index: 20; background: rgba(20, 27, 45, .92); backdrop-filter: blur(10px); }
.s-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.s-header nav { display: flex; gap: 4px; flex-wrap: wrap; flex-grow: 1; }
.s-header .acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.navlink { color: #AEB8CF; text-decoration: none; font-size: 15px; font-weight: 700; padding: 10px 12px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; }
.navlink:hover, .navlink.on { color: #fff; background: var(--navy-3); }
@media (max-width: 720px) {
  .s-header .wrap { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .s-header nav { display: none; }
  .s-header .acts { margin-left: auto; }
  .s-header .hide-sm { display: none; }
}
.band { background: var(--navy-2); }
.section { padding: 72px 0; }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 36px); line-height: 1.17; margin: 0; letter-spacing: -.03em; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 26px; }

/* Hero */
.hero { max-width: 1240px; margin: 0 auto; padding: 72px 24px 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center; }
.hero-txt { display: flex; flex-direction: column; gap: 24px; }
.hero-kicker { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #AEB8CF; background: var(--navy-3); padding: 6px 12px; border-radius: 999px; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--red); }
.hero h1 { margin: 0; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.035em; }
.hero-txt > p { margin: 0; font-size: 19px; line-height: 30px; color: #AEB8CF; max-width: 540px; }
.searchbox { background: var(--navy-3); border-radius: 26px; padding: 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.searchbox .inp { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 16px; background: var(--navy); }
.searchbox .inp input { border: none; background: transparent; color: #fff; font-size: 16px; flex-grow: 1; outline: none; min-width: 0; height: 100%; padding: 0; box-shadow: none; }
.searchbox .btn { height: 52px; font-size: 16px; padding: 0 24px; }
.hero-art { position: relative; min-height: 440px; }
.hero-art .a1 { position: absolute; left: 0; top: 0; width: 56%; height: 300px; background: var(--red); border-radius: 26px; display: flex; align-items: center; justify-content: center; }
.hero-art .a2 { position: absolute; right: 0; top: 0; width: 40%; height: 180px; border-radius: 26px; background: repeating-linear-gradient(135deg, var(--red) 0 18px, #fff 18px 36px); }
.hero-art .a3 { position: absolute; right: 0; top: 204px; width: 40%; height: 96px; border-radius: 48px; background: var(--sky); }
.hero-art .next { position: absolute; left: 8%; right: 6%; top: 268px; background: #fff; color: var(--navy); border-radius: 22px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow); text-decoration: none; }
.hero-art .next .av { width: 52px; height: 52px; border-radius: 16px; background-color: var(--navy); }
.hero-art .next .k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red-hover); }
.hero-art .next b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.hero-art .next small { color: #4A5573; }
.hero-art .next .t { height: 40px; padding: 0 14px; border-radius: 12px; background: var(--blue); color: #fff; display: flex; align-items: center; font-weight: 700; font-size: 14px; flex: none; }
.hero-art .facts { position: absolute; left: 0; bottom: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art .facts div { background: var(--navy-3); border-radius: 16px; padding: 12px 16px; font-size: 14px; color: #AEB8CF; }
.hero-art .facts strong { color: #fff; font-size: 16px; }
@media (max-width: 720px) { .hero { padding: 40px 20px 48px; gap: 32px; } .hero-art { min-height: 380px; } .hero-art .next { top: 230px; left: 0; right: 0; } .hero-art .a1 { height: 260px; } }

/* Motivos */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.reason { text-align: left; background: var(--navy-3); border: 2px solid transparent; border-radius: 20px; padding: 24px; color: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 14px; transition: border-color 150ms ease-out; }
.reason:hover { border-color: var(--sky); }
.reason .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--navy-4); display: flex; align-items: center; justify-content: center; color: var(--sky); }
.reason .q { font-size: 18px; line-height: 25px; font-weight: 800; letter-spacing: -.02em; }
.reason .d { font-size: 14px; line-height: 20px; color: #AEB8CF; }
.reason .go { font-size: 15px; font-weight: 800; color: var(--sky); display: inline-flex; align-items: center; gap: 6px; }

/* Resultados */
.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.res-head h2 { margin: 0; font-size: clamp(28px, 3.5vw, 36px); line-height: 42px; }
.res-head p { margin: 0; color: #AEB8CF; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.filters .bairro { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.filters .bairro span { font-size: 14px; color: #AEB8CF; }
.filters .bairro select { height: 40px; width: auto; font-weight: 700; font-size: 14px; }
@media (max-width: 720px) { .filters .bairro { margin-left: 0; } }
.shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.shop-card { background: var(--navy-3); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.shop-card .cover { position: relative; height: 170px; background: var(--navy-4) center/cover; display: block; text-decoration: none; }
.shop-card .cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #AEB8CF; }
.shop-card .cover .av { position: absolute; left: 16px; top: 16px; width: 48px; height: 48px; border-radius: 14px; background-color: var(--navy); }
.shop-card .cover .tag { position: absolute; right: 16px; top: 16px; padding: 4px 10px; }
.shop-card .body { padding: 18px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.shop-card .nm { color: #fff; font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.shop-card .meta { font-size: 14px; color: #AEB8CF; }
.shop-card .rate { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.shop-card .rate span { color: #AEB8CF; font-weight: 500; }
.shop-card .svc { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--navy); font-size: 14px; }
.shop-card .lbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #AEB8CF; }
.shop-card .slot { height: 38px; }
.shop-card .foot { display: flex; gap: 10px; margin-top: auto; }
.shop-card .foot .btn { height: 52px; font-size: 16px; }

/* Passos e destaques */
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.step-card { background: var(--navy-3); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-card .n { width: 44px; height: 44px; border-radius: 22px; background: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.step-card h3 { margin: 0; font-size: 20px; line-height: 26px; }
.step-card p { margin: 0; color: #AEB8CF; font-size: 15px; line-height: 23px; }
.light-card { background: #fff; color: var(--navy); border-radius: 26px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; align-items: center; }
.light-card h2 { margin: 0; font-size: clamp(28px, 3.5vw, 36px); line-height: 1.17; }
.light-card p { margin: 0; color: #4A5573; font-size: 17px; line-height: 26px; }
.light-card .eyebrow { color: var(--red-hover); }
.light-card .btn.dark { height: 60px; }
.light-card .btn.outline-dark { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); height: 60px; }
.light-card .btn.outline-dark:hover { background: #EBEFF6; }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .feat-grid { grid-template-columns: 1fr; } }
.feat { background: var(--navy-3); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.feat strong { font-size: 17px; }
.feat span { color: #AEB8CF; font-size: 14px; line-height: 20px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: center; }

/* Rodapé */
.s-footer { border-top: 1px solid var(--navy-line); }
.s-footer .cols { padding: 48px 24px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.s-footer nav { display: flex; flex-direction: column; gap: 10px; }
.s-footer nav strong { font-size: 14px; }
.s-footer .flink { color: #AEB8CF; text-decoration: none; font-size: 14px; }
.s-footer .flink:hover { color: #fff; }
.s-footer .copy { padding: 20px 24px 32px; border-top: 1px solid var(--navy-line); color: #AEB8CF; font-size: 13px; }

/* Página da barbearia */
.shop-top { background: var(--navy-2); position: relative; overflow: hidden; }
.shop-top .stripes { position: absolute; right: -40px; top: -40px; width: 360px; height: 260px; border-radius: 26px; background: repeating-linear-gradient(135deg, var(--navy-3) 0 18px, var(--navy-2) 18px 36px); }
.shop-top.capa { background: var(--navy-2) center/cover; }
.shop-top.capa::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,21,36,.55), rgba(15,21,36,.92)); }
.shop-top .in { position: relative; max-width: 1240px; margin: 0 auto; padding: 48px 24px 40px; display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.shop-top .logo-big { width: 112px; height: 112px; border-radius: 28px; background: #fff center/cover; color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; letter-spacing: -.04em; flex-shrink: 0; }
.shop-top .info { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shop-top h1 { margin: 0; font-size: clamp(36px, 4.5vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.shop-top .addr { margin: 0; color: #AEB8CF; display: flex; align-items: flex-start; gap: 8px; }
.shop-top .addr svg { margin-top: 3px; }
.shop-top .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-top .acts .btn { height: 52px; font-size: 16px; }
.shop-tabs { position: relative; border-top: 1px solid var(--navy-line); }
.shop-tabs .tabs-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.tab { color: #AEB8CF; text-decoration: none; font-size: 15px; font-weight: 700; padding: 16px 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: #fff; border-bottom-color: var(--red); }
.shop-body { max-width: 1240px; margin: 0 auto; padding: 40px 24px 72px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.shop-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.shop-main section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.shop-main h2 { margin: 0; font-size: 28px; line-height: 34px; }
.shop-main .sub { margin: 4px 0 0; color: #AEB8CF; font-size: 15px; }
.amen { display: flex; gap: 8px; flex-wrap: wrap; }
.amen span { font-size: 13px; color: #AEB8CF; background: var(--navy-3); padding: 6px 12px; border-radius: 999px; }
.svc-list { background: var(--navy-3); border-radius: 20px; overflow: hidden; }
.svc-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--navy-line); flex-wrap: wrap; }
.svc-row:first-child { border-top: 0; }
.svc-row .nm { font-size: 17px; font-weight: 700; }
.svc-row .ds { font-size: 14px; color: #AEB8CF; }
.svc-row .pr { text-align: right; }
.svc-row .pr b { display: block; font-size: 17px; font-weight: 800; }
.svc-row .pr small { color: #AEB8CF; }
.add { height: 44px; padding: 0 16px; border-radius: 16px; border: 1.5px solid #fff; background: transparent; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.add.on { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.add:disabled { opacity: .4; cursor: not-allowed; }
.combos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.combo { text-align: left; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; border: 2px solid transparent; width: 100%; background: var(--navy-3); color: #fff; }
.combo.hi { background: #fff; color: var(--navy); }
.combo.on { border-color: var(--sky); box-shadow: 0 0 0 2px var(--sky); }
.combo .tg { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--red); color: #fff; padding: 2px 8px; border-radius: 10px; }
.combo .nm { font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -.02em; }
.combo .it { font-size: 14px; line-height: 20px; opacity: .8; }
.combo .pr { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.combo .pr strong { font-size: 20px; }
.combo .pr s { font-size: 14px; opacity: .7; }
.combo .pr span { font-size: 14px; opacity: .8; margin-left: auto; }
.pros-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.pro-card { text-align: left; background: var(--navy-3); border: 2px solid transparent; border-radius: 20px; padding: 16px; display: flex; gap: 14px; align-items: center; color: #fff; cursor: pointer; width: 100%; }
.pro-card:hover { border-color: var(--outline); }
.pro-card.on { border-color: var(--sky); }
.pro-card .nm { font-size: 17px; font-weight: 800; display: block; }
.pro-card .sp { font-size: 14px; color: #AEB8CF; display: block; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.prod { background: var(--navy-3); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.prod .im { aspect-ratio: 1/1; background: var(--navy-4) center/cover; display: flex; align-items: center; justify-content: center; color: #AEB8CF; font-size: 12px; }
.prod .tx { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.prod .tx span { font-size: 15px; font-weight: 700; line-height: 21px; }
.prod .tx small { color: #AEB8CF; }
.prod .tx strong { margin-top: 6px; }
.gallery-main { aspect-ratio: 16/9; max-height: 440px; width: 100%; border-radius: 26px; background: var(--navy-4) center/cover no-repeat; position: relative; overflow: hidden; }
.gallery-main .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.65)); font-weight: 800; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumb { aspect-ratio: 1/1; border-radius: 16px; border: 2px solid transparent; background: var(--navy-4) center/cover; cursor: pointer; padding: 0; }
.thumb:hover { border-color: var(--outline); }
.thumb.on { border-color: var(--sky); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.info-card { background: var(--navy-3); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.info-card h2 { font-size: 20px !important; line-height: 26px !important; }
.hours div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--navy-line); font-size: 15px; color: #AEB8CF; }
.hours div.today { color: #fff; font-weight: 800; }
.map { height: 160px; border-radius: 16px; background: var(--navy-4); overflow: hidden; border: 0; width: 100%; display: block; }
.review { background: var(--navy-3); border-radius: 20px; padding: 18px 20px; }

/* Painel de agendamento (lateral) */
.book { flex: 1 1 380px; min-width: 0; background: var(--navy-3); border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow); position: sticky; top: 84px; }
@media (max-width: 1000px) { .book { position: static; } }
.book h2 { margin: 2px 0 0; font-size: 24px; line-height: 30px; letter-spacing: -.02em; }
.book .st { font-size: 14px; font-weight: 700; padding: 0; background: none; color: #fff; }
.book .grp { display: flex; flex-direction: column; gap: 10px; }
.book .chosen { display: flex; flex-direction: column; gap: 6px; background: var(--navy); border-radius: 14px; padding: 12px 14px; }
.book .chosen div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.book .chosen span:last-child { color: #AEB8CF; }
.book .chosen button { background: none; border: 0; color: #AEB8CF; cursor: pointer; padding: 0 0 0 6px; font-size: 16px; }
.book .placeholder { display: block; background: var(--navy); border: 1.5px dashed var(--outline); border-radius: 14px; padding: 14px; font-size: 14px; color: #AEB8CF; text-decoration: none; }
.book .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.book .total { border-top: 1px solid var(--navy-line); padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.book .total .sum { display: flex; justify-content: space-between; align-items: baseline; }
.book .total .sum b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.book .total .btn { height: 52px; font-size: 16px; }
.book .fine { margin: 0; font-size: 13px; line-height: 18px; color: #AEB8CF; text-align: center; }
.book .done-ic { width: 56px; height: 56px; border-radius: 28px; background: var(--mint); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.book .recap { width: 100%; background: var(--navy); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.book .recap div { display: flex; justify-content: space-between; gap: 12px; }
.book .recap span { color: #AEB8CF; }
.book .recap strong { text-align: right; }
.mob-cta { display: none; }
@media (max-width: 1000px) {
  .mob-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; background: #fff; color: var(--navy); border-radius: 18px; padding: 10px 10px 10px 18px;
    align-items: center; gap: 12px; box-shadow: 0 12px 32px rgba(8, 12, 24, .5); }
  .mob-cta b { display: block; font-size: 17px; }
  .mob-cta small { color: #4A5573; }
  .mob-cta .btn { margin-left: auto; }
}

/* Páginas simples do site (meus horários, conta, cadastro) */
.page { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.page h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; letter-spacing: -.035em; }
.page .card { padding: 24px; }
.appt { background: var(--navy-3); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.appt .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.appt h3 { margin: 0; font-size: 19px; }
.appt .when { font-size: 17px; }

@media (max-width: 480px) { .hide-sm { display: none !important; } .wrap { padding: 0 16px; } .section { padding: 48px 0; } }
.ico-box { width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; flex: none; }
.empty .ico { width: 52px; height: 52px; }
@media (min-width: 901px) { .app { background: linear-gradient(90deg, var(--navy) 264px, var(--bg) 264px); } }
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px 16px; }
  .kpi b { font-size: 22px; line-height: 30px; }
  .main-head { gap: 12px; }
}
