:root {
  --bg: #0f1012;
  --surface: #18191d;
  --surface-2: #202127;
  --border: #2c2d34;
  --text: #efebe4;
  --muted: #9b978f;
  --accent: #e0a83e;
  --accent-ink: #1a1305;
  --accent-soft: rgba(224, 168, 62, 0.12);
  --red: #e0574a;
  --red-soft: rgba(224, 87, 74, 0.12);
  --green: #46b884;
  --green-soft: rgba(70, 184, 132, 0.12);
  --blue: #5b9be6;
  --blue-soft: rgba(91, 155, 230, 0.12);
  --radius: 14px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(15, 16, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); font-weight: 800; font-size: 22px;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; }
.brand-name b { color: var(--accent); }
.brand-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 2px 8px;
}
.mode-switch { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.mode-switch button {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted);
}
.mode-switch button.active { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset; }

main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 120px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface-2);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover { background: #292a31; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #ebb655; }
.btn.danger { color: var(--red); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Shop hero ---------- */
.url-bar {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 5px 12px; margin-bottom: 14px;
}
.url-bar b { color: var(--text); font-weight: 500; }
.hero {
  position: relative; overflow: hidden;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 22px; border-radius: 20px;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(224,168,62,0.18), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -20px; width: 26px; height: 220px; transform: rotate(25deg);
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #f4f1ea 12px 24px, var(--blue) 24px 36px, #f4f1ea 36px 48px);
  opacity: 0.25; border-radius: 99px;
}
.shop-logo {
  width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center;
  background: #f4f1ea; color: #111; font-family: var(--display); font-weight: 800; font-size: 28px;
}
.hero h1 { font-size: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.open-badge { color: var(--green); font-weight: 600; }
.closed-badge { color: var(--red); font-weight: 600; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; margin: 18px 0; overflow-x: auto; padding-bottom: 2px; }
.tabs button {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  padding: 9px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.tabs button.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Cards & lists ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 14px; }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.section-title:first-child { margin-top: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }

.pick {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pick:hover { border-color: #44454e; }
.pick.selected { border-color: var(--accent); background: var(--accent-soft); }
.pick .check {
  flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--accent-ink);
}
.pick.selected .check { background: var(--accent); border-color: var(--accent); }
.pick .grow { flex: 1; min-width: 0; }
.pick .price { font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.pick:disabled { opacity: 0.5; cursor: not-allowed; }

.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 17px; background: var(--surface-2); border: 1px solid var(--border);
}

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 6px; margin-bottom: 18px; }
.stepper div { flex: 1; }
.stepper .bar { height: 4px; border-radius: 99px; background: var(--border); }
.stepper .done .bar, .stepper .current .bar { background: var(--accent); }
.stepper span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.stepper .current span { color: var(--text); }

/* ---------- Dates & slots ---------- */
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.date-btn {
  flex: none; width: 64px; padding: 10px 0; border-radius: 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
}
.date-btn b { display: block; font-family: var(--display); font-size: 20px; }
.date-btn small { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.date-btn.selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.date-btn.selected small { color: var(--accent-ink); }
.date-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { padding: 10px 0; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.slot.selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Sticky summary ---------- */
.summary-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 12px 16px; background: rgba(24, 25, 29, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.summary-bar .inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary-bar .total { font-family: var(--display); font-weight: 700; font-size: 20px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap;
}
.badge.gold { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }

.notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; border: 1px solid transparent; }
.notice.gold { background: var(--accent-soft); border-color: rgba(224,168,62,0.3); }
.notice.red { background: var(--red-soft); border-color: rgba(224,87,74,0.3); }
.notice.green { background: var(--green-soft); border-color: rgba(70,184,132,0.3); }
.notice.blue { background: var(--blue-soft); border-color: rgba(91,155,230,0.3); }

/* ---------- Plans ---------- */
.plan-card { display: flex; flex-direction: column; gap: 12px; }
.plan-card.featured { border-color: var(--accent); }
.plan-price { font-family: var(--display); font-size: 32px; font-weight: 800; }
.plan-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.rules li { display: flex; gap: 10px; align-items: flex-start; }
.rules li span:first-child { flex: none; width: 22px; text-align: center; }

/* ---------- Loyalty ---------- */
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 320px; }
.stamp {
  aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--border);
  display: grid; place-items: center; font-size: 18px; color: var(--muted);
}
.stamp.on { border: 2px solid var(--accent); background: var(--accent-soft); }
.stamp.gift { border-style: solid; border-color: var(--green); }

/* ---------- Stars ---------- */
.stars { color: var(--accent); letter-spacing: 1px; }
.stars .off { color: #3a3b42; }
.star-input { display: flex; gap: 6px; font-size: 30px; }
.star-input button { background: none; border: 0; padding: 0; color: #3a3b42; }
.star-input button.on { color: var(--accent); }

/* ---------- Admin ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.kpi .label { font-size: 13px; color: var(--muted); }
.kpi .value { font-family: var(--display); font-size: 26px; font-weight: 700; margin-top: 4px; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.agenda { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.agenda-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.agenda-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.appt { border: 1px solid var(--border); background: var(--surface-2); border-radius: 12px; padding: 12px; }
.appt + .appt { margin-top: 8px; }
.appt .time { font-family: var(--display); font-weight: 700; font-size: 18px; }
.appt.st-concluido { opacity: 0.7; }
.appt.st-cancelado, .appt.st-faltou { opacity: 0.5; }
.appt.st-cancelado .time, .appt.st-faltou .time { text-decoration: line-through; }
.appt .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.block-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.block-chip button { border: 0; background: none; color: inherit; padding: 0; font-size: 15px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.settings-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; align-items: center; }
.settings-row + .settings-row { margin-top: 8px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.6); display: grid; place-items: center; padding: 16px; }
.modal-box {
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px;
  animation: pop 0.18s ease;
}
@keyframes pop { from { transform: translateY(10px) scale(0.98); opacity: 0; } }

.qr { display: grid; grid-template-columns: repeat(21, 1fr); width: 190px; aspect-ratio: 1; padding: 10px; background: #fff; border-radius: 12px; margin: 10px auto; }
.qr i { background: #fff; }
.qr i.on { background: #111; }
.copy-code { font-family: monospace; font-size: 12px; word-break: break-all; background: var(--surface-2); padding: 10px; border-radius: 10px; color: var(--muted); }

.wa { background: #0b141a; border-radius: 16px; padding: 16px; }
.wa-head { display: flex; align-items: center; gap: 10px; color: #e9edef; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid #1f2c33; margin-bottom: 12px; }
.wa-bubble { background: #005c4b; color: #e9edef; padding: 10px 12px; border-radius: 10px 10px 10px 2px; font-size: 14px; white-space: pre-line; max-width: 90%; }
.wa-bubble small { display: block; text-align: right; color: #a8c7bf; font-size: 11px; margin-top: 4px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; top: 74px; right: 16px; z-index: 60; display: grid; gap: 8px; max-width: 360px; }
.toast { background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 12px 14px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); animation: pop 0.2s ease; }

.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ---------- v2 ---------- */
.mode-switch { flex-wrap: wrap; align-items: center; }
.mode-link { padding: 8px 12px; font-weight: 600; font-size: 13px; color: var(--accent); text-decoration: none; }
.blocked-screen { max-width: 560px; margin: 40px auto; text-align: center; padding: 34px 24px; border-color: rgba(224,87,74,0.5); }
.blocked-screen .lock { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 40px; background: var(--red-soft); }
.btn.wa { background: #25d366; border-color: #25d366; color: #062e16; text-decoration: none; }
.lic-alert .big { font-family: var(--display); font-size: 64px; font-weight: 800; line-height: 1; }
.tabs button.locked { opacity: 0.6; }
.queue-pos { font-family: var(--display); font-size: 72px; font-weight: 800; color: var(--accent); line-height: 1; }
.upsell { text-align: center; padding: 36px 18px; }
.cmd-total { font-family: var(--display); font-size: 30px; font-weight: 800; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggles .btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.note { font-size: 13px; background: var(--blue-soft); color: #bcd6f5; border-radius: 8px; padding: 6px 8px; margin-top: 6px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 8px; }
.hbar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.hbar > div { height: 100%; background: var(--accent); border-radius: 99px; }

@media (max-width: 640px) {
  .topbar { padding: 10px 12px; }
  .brand-tag { display: none; }
  .mode-switch button { padding: 7px 10px; font-size: 13px; }
  .hero h1 { font-size: 22px; }
  .settings-row { grid-template-columns: 1fr 1fr; }
}


/* ---------- sistema ---------- */
a { color: var(--accent); }
a.btn { color: inherit; text-decoration: none; }
a.btn.primary { color: var(--accent-ink); }
.narrow { max-width: 420px; margin: 40px auto 0; }
.teste-bar { background: var(--blue-soft); color: var(--blue); padding: 8px 16px; font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }
.teste-bar a { color: inherit; }
.now-card { display: grid; gap: 12px; }
.now-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.now-big { font-family: var(--display); font-size: 24px; font-weight: 800; }
.now-barbers { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.now-barber { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.now-barber .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.free { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.dot.busy { background: var(--accent); }
.dot.none { background: var(--muted); }
.today-slots { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Personalização da empresa ---------- */
.btn.primary:hover { background: var(--accent); filter: brightness(1.08); }
.hero { background: radial-gradient(600px 200px at 100% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.shop-logo { overflow: hidden; flex-shrink: 0; }
.shop-logo img, .logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-box { width: 96px; height: 96px; border-radius: 20px; background: var(--surface-2); border: 1px dashed var(--border); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; flex-shrink: 0; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); padding: 0; }
.swatch.selected { outline: 3px solid var(--text); outline-offset: 2px; }
input[type="color"] { width: 44px; height: 36px; padding: 2px; cursor: pointer; }
textarea { resize: vertical; min-height: 84px; }
.face { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: inline-grid; place-items: center; font-family: var(--display); font-weight: 700; flex-shrink: 0; overflow: hidden; vertical-align: middle; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.lg { width: 76px; height: 76px; font-size: 26px; }
.face.xs { width: 24px; height: 24px; font-size: 11px; margin-right: 6px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.hours-head, .hours-row { display: grid; grid-template-columns: minmax(110px, 1fr) 1fr 1fr; gap: 10px; align-items: center; }
.hours-head { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 4px; }
.hours-row { padding: 6px 0; border-top: 1px solid var(--border); }
.hours-row.off input[type="time"] { opacity: 0.35; }
.team { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.team-card { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.week-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.week-table td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.week-table tr.today td { color: var(--accent); font-weight: 600; }
.hero .slogan { color: var(--text); opacity: 0.85; margin-top: 2px; }
.pick .desc { display: block; margin-top: 2px; }
.preview-box { border: 1px dashed var(--border); border-radius: 16px; padding: 10px; }
.preview-box .hero::after { display: none; }

/* ---------- Benefícios por plano ---------- */
.plan-lock { border-color: var(--accent); max-width: 640px; text-align: left; align-items: flex-start; }
.plan-lock-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.up { color: var(--green); } .down { color: var(--red); }
.bar-row { display: grid; grid-template-columns: 90px 1fr 36px; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row b { text-align: right; }
.bar { height: 10px; background: var(--accent-soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.loyalty-card { text-align: center; }
.stamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0; }
.stamp { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed var(--border); display: grid; place-items: center; font-size: 16px; }
.stamp.on { border: 2px solid var(--accent); background: var(--accent-soft); }

/* ================= v3 · visual renovado ================= */
body { background: radial-gradient(900px 420px at 50% -120px, var(--accent-soft), transparent 70%) no-repeat, var(--bg); min-height: 100vh; }
main { padding-top: 24px; }
h1 { font-size: 28px; letter-spacing: -0.02em; }
.topbar { padding: 12px max(20px, calc((100% - 1100px) / 2 + 16px)); background: rgba(15, 16, 18, 0.82); }
.brand-mark { box-shadow: 0 6px 18px var(--accent-soft); }
.card { border-radius: 18px; padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 60%), var(--surface); box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 12px 30px rgba(0,0,0,0.18); }
.btn { border-radius: 12px; min-height: 40px; }
.btn.sm { min-height: 32px; border-radius: 9px; }
.btn.primary { box-shadow: 0 6px 18px var(--accent-soft); }
.btn.ghost:hover { background: var(--surface-2); }
input, select, textarea { min-height: 44px; border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field label { font-weight: 600; }
.tabs { gap: 6px; padding: 5px; margin: 18px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; padding: 9px 15px; border-radius: 11px; }
.tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs button.active { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px var(--accent-soft); }
.tabs .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; font-size: 11px; background: rgba(0,0,0,0.2); }
.badge { padding: 4px 10px; }
.empty { padding: 34px 12px; }
.empty-icon { font-size: 34px; margin-bottom: 6px; }
.mt { margin-top: 18px !important; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.page-head p { margin: 4px 0 0; }
.modal { backdrop-filter: blur(4px); }
.modal-box { border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.modal-box.wide { max-width: 640px; }
.modal-box h3 { font-size: 16px; }
table tbody tr:hover td { background: rgba(255,255,255,0.015); }
#toasts .toast { border-left-color: var(--accent); }

/* KPIs */
.kpis { gap: 12px; margin-bottom: 4px; }
.kpi { display: flex; align-items: center; gap: 14px; border-radius: 18px; padding: 16px 18px; background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent), var(--surface); }
.kpi-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); flex: none; }
.kpi.gold .kpi-icon { background: var(--accent-soft); } .kpi.green .kpi-icon { background: var(--green-soft); } .kpi.blue .kpi-icon { background: var(--blue-soft); } .kpi.red .kpi-icon { background: var(--red-soft); }
.kpi .value { font-size: 24px; margin-top: 0; }

/* Gestor */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.search { display: flex; align-items: center; gap: 10px; margin: 14px 0; padding: 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.search input { border: 0; background: transparent; box-shadow: none !important; padding-left: 0; }
.shop-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.shop-grid > .card { grid-column: 1 / -1; }
.shop-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 60%), var(--surface); transition: border-color .15s ease, transform .15s ease; }
.shop-card:hover { border-color: #3c3d46; transform: translateY(-1px); }
.shop-card-head { display: flex; align-items: center; gap: 12px; }
.shop-card-head .face { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.shop-card-head .grow { flex: 1; min-width: 0; }
.shop-card-head b { font-family: var(--display); font-size: 17px; }
.shop-card-info { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.shop-card-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-card-info b { color: var(--text); }
.shop-card-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.info-list { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 14px 0; padding: 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.info-list dt { color: var(--muted); } .info-list dd { margin: 0; word-break: break-word; }
.log { max-height: 160px; overflow-y: auto; }

/* Painel: agenda */
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.day-nav { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 5px; }
.day-nav input { min-height: 36px; width: auto; border: 0; background: transparent; }
.day-nav .btn { min-height: 36px; border: 0; background: var(--surface-2); }
.day-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.day-stats span { background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px 12px; font-size: 13px; color: var(--muted); }
.day-stats b { color: var(--text); }
.appt-row { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: stretch; position: relative; }
.appt-time { text-align: right; padding-top: 16px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.appt-time small { display: block; font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted); }
.appt-card { border-left: 4px solid var(--blue); }
.appt-card.concluido { border-left-color: var(--green); }
.appt-card.cancelado { border-left-color: var(--border); opacity: .6; }
.appt-card.faltou { border-left-color: var(--red); opacity: .75; }
.appt-card.bloqueio { border-left-color: var(--red); background: var(--red-soft); }
.appt-row + .appt-row { margin-top: 10px; }
.appt-row .card + .card { margin: 0; }
.appt-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* Primeiros passos e tutorial */
.checklist { border-color: rgba(224,168,62,0.4); background: radial-gradient(500px 160px at 100% 0%, var(--accent-soft), transparent 70%), var(--surface); margin-bottom: 16px; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.check-item .ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--border); font-size: 13px; font-weight: 800; }
.check-item.done .ok { background: var(--green); border-color: var(--green); color: #062e16; }
.check-item.done .txt { color: var(--muted); text-decoration: line-through; }
.check-item .txt { flex: 1; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0 4px; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s ease; }
.tour { text-align: center; }
.tour-art { width: 96px; height: 96px; margin: 6px auto 14px; border-radius: 28px; display: grid; place-items: center; font-size: 46px; background: var(--accent-soft); }
.tour h2 { font-size: 24px; }
.tour p { color: var(--muted); margin: 8px 0 0; }
.tour ul { text-align: left; margin: 14px 0 0; padding: 14px 14px 14px 32px; background: var(--surface-2); border-radius: 14px; display: grid; gap: 6px; font-size: 14px; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 14px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--border); transition: width .2s ease; }
.tour-dots i.on { width: 22px; background: var(--accent); }
.help-btn { border-radius: 99px !important; }

/* Site do cliente */
.hero { padding: 26px; border-radius: 24px; }
.hero .shop-logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.hero h1 { font-size: 30px; }
.section-title h3 { display: flex; align-items: center; gap: 10px; }
.section-title h3 .n { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; background: var(--accent); color: var(--accent-ink); }
.pick { border-radius: 16px; padding: 16px; }
.slot { min-height: 44px; border-radius: 12px; transition: border-color .15s ease; }
.slot:hover, .date-btn:hover:not(:disabled) { border-color: var(--accent); }
.date-btn { border-radius: 14px; }
.now-card { padding: 22px; }
.now-big { font-size: 28px; }
.book-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(24, 25, 29, 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.book-bar .inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.book-bar .total { font-family: var(--display); font-weight: 700; font-size: 18px; }

@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .modal { place-items: end center; padding: 0; }
  .modal-box, .modal-box.wide { max-width: 100%; border-radius: 22px 22px 0 0; max-height: 92vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  #toasts { left: 12px; right: 12px; top: auto; bottom: 90px; max-width: none; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-card-info { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; gap: 2px; } .info-list dd { margin-bottom: 8px; }
  .appt-row { grid-template-columns: 56px 1fr; gap: 10px; }
  .appt-time { font-size: 15px; }
  .hero { padding: 18px; } .hero h1 { font-size: 24px; } .hero .shop-logo { width: 64px; height: 64px; }
  .kpi .value { font-size: 20px; }
}
