/* =========================================================
   Premium Barber Shop — tokens compartilhados (site, painel, barbeiro)
   Ardósia preta + cobre envelhecido. A marca é SEMPRE escura.
   Fonte: brand-kit/design/tokens.css
   ========================================================= */
:root {
  /* ---- marca (brand-kit) ---- */
  --pb-black: #0E0D0D;
  --pb-coal: #141414;
  --pb-slate: #1B1919;
  --pb-surface: #232020;
  --pb-surface-2: #2C2826;
  --pb-line: #3A3330;
  --pb-copper: #BB7839;
  --pb-gold: #DB944D;
  --pb-gold-light: #E2A463;
  --pb-bronze: #725944;
  --pb-amber-glow: #F4B56A;
  --pb-cream: #F2E8DA;
  --pb-sand: #C9BBA8;
  --pb-muted: #8F8478;
  --pb-success: #6E9F6A;
  --pb-danger: #B5523B;
  --pb-gradient-gold: linear-gradient(135deg, #E2A463 0%, #BB7839 45%, #8A5A2E 100%);
  --pb-gradient-halo: radial-gradient(circle at 50% 35%, rgba(244,181,106,.35) 0%, rgba(187,120,57,.12) 30%, rgba(20,20,20,0) 60%);
  --pb-gradient-fade: linear-gradient(180deg, rgba(14,13,13,0) 0%, #0E0D0D 100%);
  --pb-font-display: "Rye", Georgia, serif;          /* só "PREMIUM" e assinaturas curtas */
  --pb-font-heading: "Oswald", "Arial Narrow", sans-serif; /* títulos, menus, botões — caixa alta */
  --pb-font-body: "Manrope", system-ui, sans-serif;
  --pb-tracking-wide: .18em;
  --pb-tracking-mid: .08em;
  --pb-radius-sm: 4px;
  --pb-radius: 8px;
  --pb-shadow-card: 0 10px 30px rgba(0,0,0,.45);
  --pb-shadow-gold: 0 0 0 1px rgba(187,120,57,.35), 0 12px 40px rgba(187,120,57,.18);
  --pb-ease: cubic-bezier(.22,.61,.36,1);

  /* ---- nomes usados pelo painel e pela área do barbeiro ---- */
  --ink: var(--pb-black);       /* faixa mais escura (login, barra lateral) */
  --ink-2: var(--pb-coal);
  --ink-3: var(--pb-surface-2);
  --paper: var(--pb-coal);      /* fundo de leitura */
  --surface: var(--pb-surface); /* cartões */
  --line: var(--pb-line);
  --text: var(--pb-cream);
  --muted: #A89C8E;             /* entre sand e muted: passa AA sobre os cartões */
  --brass: var(--pb-copper);
  --brass-strong: var(--pb-gold);
  --brass-soft: #33261A;
  --on-ink: var(--pb-cream);
  --on-ink-muted: var(--pb-sand);
  --ok: #8CC487; --ok-soft: #1C2A1B;
  --warn: #E2A463; --warn-soft: #33261A;
  --bad: #E58A72; --bad-soft: #351B15;
  --info: #A9BED6; --info-soft: #1E2530;
  --radius: var(--pb-radius);
  --radius-sm: var(--pb-radius-sm);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35);
  --f-display: var(--pb-font-heading);
  --f-body: var(--pb-font-body);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 15px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; letter-spacing: .04em; text-wrap: balance; margin: 0; text-transform: uppercase; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pb-gold-light); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- utilitários da marca ---------- */
.pb-slate-texture {
  background-color: var(--pb-slate);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.035), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(0,0,0,.35), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.012) 0 2px, transparent 2px 7px);
}
.pb-gold-text { background: var(--pb-gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* filete duplo, como as linhas do logo */
.pb-rule { height: 6px; border: 0; margin: 0; border-top: 1px solid var(--pb-copper); border-bottom: 1px solid var(--pb-copper); opacity: .6; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid transparent; font-family: var(--pb-font-heading); font-weight: 500; font-size: 14px; letter-spacing: var(--pb-tracking-mid); text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background .2s var(--pb-ease), border-color .2s, color .2s, box-shadow .2s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pb-copper); color: var(--pb-black); border-color: var(--pb-gold); }
.btn-primary:hover { background: var(--pb-gold); box-shadow: var(--pb-shadow-gold); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost:hover { background: rgba(187,120,57,.12); }
.btn-quiet { background: var(--pb-surface-2); border-color: var(--line); color: var(--text); }
.btn-quiet:hover { border-color: var(--pb-copper); color: var(--pb-gold-light); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.confirmado { color: var(--info); background: var(--info-soft); }
.pill.concluido { color: var(--ok); background: var(--ok-soft); }
.pill.cancelado { color: var(--bad); background: var(--bad-soft); }
.pill.faltou { color: var(--warn); background: var(--warn-soft); }
.pill.block { color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent); }

.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.input { height: 46px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--pb-surface-2); width: 100%; min-width: 0; }
textarea.input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--pb-gold-light); box-shadow: 0 0 0 3px rgba(226,164,99,.22); }
select.input option { background: var(--pb-surface); }
input[type="date"].input, input[type="time"].input { color-scheme: dark; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--pb-cream); color: var(--pb-black); padding: 12px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: calc(100% - 32px); font-weight: 600; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--pb-danger); color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- selos de pagamento, aviso de reserva nova, ativar avisos ---------- */
.pill.aguardando_pagamento { color: var(--warn); background: var(--warn-soft); }
.selo { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 2px 8px; border-radius: 4px; white-space: nowrap; vertical-align: 1px; }
.selo.pago { color: var(--ok); background: var(--ok-soft); }
.selo.aguardando { color: var(--warn); background: var(--warn-soft); }
.selo.local { color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); }
.selo.reemb { color: var(--info); background: var(--info-soft); }
.selo.expirado { color: var(--bad); background: var(--bad-soft); }
.selo.apartir { color: var(--pb-gold-light); background: var(--brass-soft); }
.alerta-novo { position: fixed; z-index: 200; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translate(-50%, -140%); transition: transform .3s ease; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px); background: var(--pb-copper); color: var(--pb-black); padding: 12px 14px 12px 18px; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: 14px; }
.alerta-novo.show { transform: translate(-50%, 0); }
.alerta-novo b { font-weight: 800; white-space: nowrap; }
.alerta-novo span { min-width: 0; }
.alerta-novo button { border: 0; background: rgba(0,0,0,.14); width: 28px; height: 28px; border-radius: 50%; font-size: 18px; cursor: pointer; color: inherit; flex: none; }
.push-card { display: grid; gap: 8px; }
.push-estado { font-size: 13px; color: var(--muted); }
.push-estado.ok { color: var(--ok); font-weight: 700; }
.formas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.formas .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .alerta-novo { transition: none; } }

/* marca nos painéis (login, barra lateral): logo recortado sobre ardósia */
.brand-logo { display: block; width: 150px; height: auto; margin: 0 auto; filter: drop-shadow(0 6px 18px rgba(187,120,57,.18)); }
