:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-2: #faf8f5;
  --text: #1f1b16;
  --muted: #6f675d;
  --border: #e4ded4;
  --accent: #9a5b1e;
  --accent-strong: #7c4714;
  --accent-soft: #f6ead9;
  --ok: #1f7a4d;
  --ok-soft: #e3f3ea;
  --warn: #9a6a00;
  --warn-soft: #fbf0d4;
  --bad: #b3261e;
  --bad-soft: #fbe4e2;
  --info-soft: #e7eef8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 27, 22, .06), 0 4px 16px rgba(31, 27, 22, .06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; font-size: 15px; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.boot { padding: 3rem; text-align: center; color: var(--muted); }

/* ── Layout ── */
.topbar { background: #1f1b16; color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; }
.brand { font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.brand small { display: block; font-weight: 400; font-size: .75rem; color: #c9bfb2; letter-spacing: 0; }
.nav { display: flex; gap: .25rem; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav a { color: #e9e2d8; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; white-space: nowrap; font-size: .92rem; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a.active { background: var(--accent); color: #fff; }
.userbox { display: flex; align-items: center; gap: .6rem; white-space: nowrap; font-size: .88rem; color: #d8cfc3; margin-left: auto; }
.page { max-width: 1180px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head p { margin: 0; }
.footer-note { max-width: 1180px; margin: 0 auto; padding: 0 1rem 2rem; font-size: .8rem; color: var(--muted); }

.mobile-only { display: none !important; }
.menu-button { background: transparent; border: 1px solid #5a5048; color: #fff; border-radius: 8px; width: 44px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu { border-top: 1px solid #3a332c; padding: .5rem 1rem 1rem; display: flex; flex-direction: column; }
.mobile-menu a { color: #e9e2d8; text-decoration: none; padding: .8rem .75rem; border-radius: 8px; font-size: 1rem; }
.mobile-menu a.active { background: var(--accent); color: #fff; }
.mobile-menu-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; padding: .75rem .75rem 0; border-top: 1px solid #3a332c; color: #d8cfc3; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--border);
  display: flex; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(31, 27, 22, .06); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem 0 .45rem;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; min-height: 56px; justify-content: center; }
.bottom-nav a.active { color: var(--accent); }

/* ── Cards / grids ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 1rem; }
.grid-plans { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: .75rem; }

/* ── Plan cards ── */
.plan { border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; text-align: left; font: inherit; color: inherit; }
button.plan { cursor: pointer; }
button.plan:hover { border-color: #cdb89c; }
.plan.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-name { font-weight: 700; font-size: 1.1rem; }
.plan-price { font-size: 1.5rem; font-weight: 700; color: var(--accent-strong); }
.plan-price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .1rem .55rem; font-size: .8rem; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; padding: .5rem .6rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }
.table .num { text-align: right; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }

/* ── Badges ── */
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--info-soft); color: #2c5282; border-color: transparent; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; }
.field > span { font-size: .85rem; font-weight: 600; }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .5rem; }
/* 16px: evita o zoom automático do iPhone ao tocar num campo. */
.input, select.input, textarea.input { font: inherit; font-size: 16px; padding: .55rem .7rem; border: 1px solid #cfc7bb; border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
.input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea.input { min-height: 70px; resize: vertical; }
.check { display: flex; align-items: center; gap: .45rem; margin-bottom: .45rem; cursor: pointer; }
.check input { width: 1rem; height: 1rem; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.segmented { display: inline-flex; border: 1px solid #cfc7bb; border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
.segmented button { font: inherit; border: 0; background: #fff; padding: .5rem .9rem; cursor: pointer; border-right: 1px solid #cfc7bb; }
.segmented button:last-child { border-right: 0; }
.segmented button.on { background: var(--accent); color: #fff; }

/* ── Buttons ── */
.btn { font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: .5rem .95rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-strong); }
.btn.secondary { background: #fff; border-color: #cfc7bb; color: var(--text); }
.btn.secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn.danger { background: #fff; border-color: #e3b3ae; color: var(--bad); }
.btn.danger:hover:not(:disabled) { background: var(--bad-soft); }
.btn.ghost { background: transparent; color: var(--accent); padding: .35rem .5rem; }
.btn.ghost:hover:not(:disabled) { background: var(--accent-soft); }
.btn.small { padding: .3rem .6rem; font-size: .85rem; }
.btn.block { width: 100%; }
.topbar .btn.secondary { background: transparent; color: #fff; border-color: #5a5048; }

/* ── Alerts ── */
.alert { border-radius: 8px; padding: .7rem .9rem; margin-bottom: .8rem; font-size: .92rem; }
.alert.error { background: var(--bad-soft); color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: #6b4a00; }
.alert.info { background: var(--info-soft); color: #23466f; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.devbox { border: 1px dashed #b98b54; background: #fffaf2; border-radius: 8px; padding: .7rem .9rem; margin-top: .75rem; }
.devbox strong { color: var(--accent-strong); }

/* ── Modal ── */
.overlay { position: fixed; inset: 0; background: rgba(31, 27, 22, .45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 1rem; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 12px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 780px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem .5rem; }
.modal-head h2 { margin: 0; }
.modal-body { padding: .5rem 1.1rem 1rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .75rem 1.1rem 1rem; border-top: 1px solid var(--border); }
.close { font-size: 1.4rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--muted); }

/* ── Toasts ── */
.toasts { position: fixed; bottom: 1rem; right: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 100; max-width: min(380px, calc(100vw - 2rem)); }
.toast { background: #1f1b16; color: #fff; padding: .7rem .95rem; border-radius: 8px; box-shadow: var(--shadow); font-size: .92rem; }
.toast.error { background: var(--bad); }
.toast.ok { background: var(--ok); }

/* ── Auth ── */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 1.6rem; width: 100%; max-width: 420px; }
.auth-card.wide { max-width: 980px; }
.portal-divider { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0; color: var(--muted); font-size: .85rem; }
.portal-divider::before, .portal-divider::after { content: ""; flex: 1; border-top: 1px solid #e3ddd3; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; font-size: .9rem; }
.demo { margin-top: 1.2rem; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .7rem .9rem; }
.demo button { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }

.divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1.1rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }
.setup-card { border-left: 4px solid var(--accent); }
.setup-steps { list-style: none; margin: 0 0 .75rem; padding: 0; }
.setup-steps li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; }
.setup-steps li.done span:last-child { color: var(--muted); text-decoration: line-through; }
.setup-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.setup-steps li.done .setup-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.terms-check { align-items: flex-start; font-size: .9rem; margin: .25rem 0 .9rem; }
.terms-check input { margin-top: .2rem; flex-shrink: 0; }
.legal-links a { color: var(--muted); }

/* ── Timeline / misc ── */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: .45rem 0 .45rem 1rem; border-left: 2px solid var(--border); position: relative; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .75rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.hours-row { display: grid; grid-template-columns: 80px 1fr; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); align-items: start; }
.interval { display: flex; gap: .4rem; align-items: center; margin-bottom: .35rem; }
.interval .input { width: auto; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; margin-top: .75rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.filters .input { width: auto; min-width: 160px; }
.filters .grow { flex: 1; min-width: 220px; }
.big-number { font-size: 1.6rem; font-weight: 700; }

/* ── Agenda ── */
.label { font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.appointment { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.appointment:last-child { border-bottom: 0; }
.day-strip { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.day-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: .45rem .5rem; border: 1px solid #cfc7bb; border-radius: 10px; background: #fff; font: inherit; font-size: .82rem; cursor: pointer; }
.day-chip span:first-child { text-transform: capitalize; font-weight: 600; }
.day-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.day-chip:disabled { opacity: .35; cursor: not-allowed; }
.barber-times { margin-bottom: .75rem; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .4rem; margin-top: .35rem; }
.time-chip { font: inherit; padding: .55rem 0; border: 1px solid #cfc7bb; border-radius: 8px; background: #fff; cursor: pointer; }
.time-chip:hover { border-color: var(--accent); color: var(--accent); }
.time-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.time-chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.calendar-help { margin: 1rem 0; }
.calendar-steps { margin: 1rem 0; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.calendar-steps ol { padding-left: 1.2rem; margin: .5rem 0 0; }
.calendar-steps li + li { margin-top: .35rem; }
/* Navegação de dias da agenda */
.day-bar { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .5rem; margin-bottom: 1rem; }
.day-arrow { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #cfc7bb; background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text); }
.day-arrow:hover { border-color: var(--accent); color: var(--accent); }
.day-title { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; padding: .15rem 0; border-radius: 8px; }
.day-title:hover { background: var(--surface-2); }
.day-weekday { font-weight: 700; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .4rem; }
.day-date { color: var(--muted); font-size: .92rem; }
.day-title input[type="date"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; }
.day-title input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.day-back { text-align: center; font-size: .9rem; margin: -.5rem 0 1rem; }
.agenda-tools { display: flex; justify-content: flex-end; margin-bottom: .6rem; }
.calendar-help summary { cursor: pointer; color: var(--accent); font-size: .9rem; }
.calendar-help ol { padding-left: 1.2rem; }
.calendar-help .row { gap: .5rem; }
.reschedule-choice { margin: .9rem 0 0; padding: .6rem .8rem; border-radius: 8px; background: var(--accent-soft); }
.day-nav { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.day-nav strong { text-transform: capitalize; min-width: 150px; text-align: center; }

/* ── Painel ── */
.hero-card { padding: 1.25rem 1.3rem; }
.hero-number { font-size: 3rem; font-weight: 700; line-height: 1.1; margin: .2rem 0 .35rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem .9rem; }
.stat-label { font-size: .82rem; color: var(--muted); }
.stat-value { font-size: 1.5rem; font-weight: 600; margin: .15rem 0; }
.stat.warn { border-left: 4px solid var(--warn); }
.stat.bad { border-left: 4px solid var(--bad); }
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--border); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .value { fill: var(--text); font-size: 12px; font-weight: 600; }
.chart .bar { fill: var(--accent); }
.chart .bar.on { fill: var(--accent-strong); }
.chart-tip { position: absolute; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); padding: .35rem .6rem; pointer-events: none; white-space: nowrap; text-align: center; }
.hbars { display: flex; flex-direction: column; gap: .7rem; }
.hbar { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: .6rem; }
.hbar-label { font-size: .9rem; }
.hbar-track { height: 18px; }
.hbar-fill { height: 100%; min-width: 4px; background: var(--accent); border-radius: 0 4px 4px 0; }
.hbar-value { font-size: .9rem; white-space: nowrap; }

/* ── Check-in ── */
.checkin-card { text-align: center; max-width: 420px; margin: 0 auto 1rem; }
.checkin-qr { width: 260px; max-width: 100%; aspect-ratio: 1; display: block; margin: .5rem auto; border-radius: 10px; }
.checkin-qr.placeholder { background: var(--surface-2); }
.checkin-name { font-size: 1.25rem; font-weight: 700; }
.verdict { border-radius: 10px; padding: .8rem 1rem; font-weight: 700; font-size: 1.1rem; text-align: center; }
.verdict.ok { background: var(--ok-soft); color: var(--ok); }
.verdict.bad { background: var(--bad-soft); color: var(--bad); }
.scanner { position: relative; }
.scanner video { width: 100%; max-height: 60vh; object-fit: cover; border-radius: 10px; background: #000; display: block; margin-bottom: .6rem; }
.scanner-frame { position: absolute; top: 12%; left: 20%; right: 20%; aspect-ratio: 1; max-height: 70%; border: 3px solid rgba(255,255,255,.85); border-radius: 14px; pointer-events: none; }

/* ── Pagamento ── */
.pix { text-align: center; }
.pix-qr { width: 220px; max-width: 100%; aspect-ratio: 1; image-rendering: pixelated; border: 1px solid var(--border); border-radius: 8px; background: #fff; margin: 0 auto; display: block; }
.pix-code { font-family: ui-monospace, Consolas, monospace; font-size: .75rem; word-break: break-all; background: var(--surface-2); border: 1px dashed var(--border); border-radius: 8px; padding: .5rem; max-height: 4.5rem; overflow: hidden; text-align: left; }
.pix .row { justify-content: center; }
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.mp-field { height: 44px; padding: .45rem .7rem; }

/* ── Celular (fica no fim para prevalecer sobre as regras base) ── */
/* Sininho de avisos */
.bell { position: relative; background: transparent; border: 1px solid #5a5048; color: #fff; border-radius: 8px; width: 40px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bell:hover { background: rgba(255,255,255,.08); }
.bell-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #d64533; color: #fff; font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #1f1b16; }
.notice-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.notice { text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .65rem .8rem; cursor: pointer; display: flex; flex-direction: column; gap: .2rem; }
.notice:hover { background: var(--surface-2); }
.notice.unread { border-left: 4px solid var(--accent); background: var(--accent-soft); }
.notice-title { font-weight: 600; }
.push-status { margin: 0 0 .5rem; }
/* Link da barbearia (painel do dono) */
.btn.danger-text { color: var(--bad); }
/* Aprovação de barbearias */
.approval-wrap { padding-bottom: 0; }
.approval-banner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .85rem 1rem; border-radius: 10px; background: var(--warn-soft); border: 1px solid #ecd28f; }
.approval-banner.rejected { background: var(--bad-soft); border-color: #eab0a8; }
.pending-card { border: 2px solid #ecd28f; }
.pending-row { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.pending-row:last-child { border-bottom: 0; }
.review-actions { border: 2px solid var(--accent); }
.review-barber + .review-barber { margin-top: .6rem; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li + li { margin-top: .35rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--accent); text-decoration: underline; cursor: pointer; }
.coupon-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.coupon-form { display: flex; gap: .5rem; }
.coupon-form .input { flex: 1; min-width: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .2rem .75rem; margin-bottom: .75rem; }
.share-body { display: flex; gap: 1.1rem; align-items: center; }
.share-qr { width: 132px; height: 132px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.share-info { flex: 1; min-width: 0; }
.share-info p { margin-top: 0; }
.share-url .input { width: 100%; font-size: .9rem; }
.share-actions { margin-top: .6rem; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 760px) {
  .btn.danger-text { color: var(--bad); }
/* Aprovação de barbearias */
.approval-wrap { padding-bottom: 0; }
.approval-banner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .85rem 1rem; border-radius: 10px; background: var(--warn-soft); border: 1px solid #ecd28f; }
.approval-banner.rejected { background: var(--bad-soft); border-color: #eab0a8; }
.pending-card { border: 2px solid #ecd28f; }
.pending-row { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.pending-row:last-child { border-bottom: 0; }
.review-actions { border: 2px solid var(--accent); }
.review-barber + .review-barber { margin-top: .6rem; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li + li { margin-top: .35rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--accent); text-decoration: underline; cursor: pointer; }
.coupon-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.coupon-form { display: flex; gap: .5rem; }
.coupon-form .input { flex: 1; min-width: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .2rem .75rem; margin-bottom: .75rem; }
.share-body { flex-direction: column; align-items: stretch; }
  .share-qr { align-self: center; width: 180px; height: 180px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: revert !important; }
  .mobile-menu.mobile-only, .bottom-nav.mobile-only { display: flex !important; }
  .menu-button.mobile-only { display: inline-flex !important; }
  .userbox .who { display: none; }
  .topbar-inner { padding: .55rem 1rem; }
  .page { padding: 1rem .85rem 2.5rem; }
  body.has-bottom-nav .footer-note { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.3rem; }
  .page-head > .btn { width: 100%; }
  .card { padding: .85rem; }
  .card-head { align-items: flex-start; }
  .filters { flex-direction: column; }
  .filters .input, .filters label { width: 100%; min-width: 0; }
  .filters label .input { flex: 1; }
  .segmented { display: flex; width: 100%; }
  .segmented button { flex: 1; padding: .7rem .5rem; }
  .btn { min-height: 42px; }
  .btn.small { min-height: 38px; padding: .4rem .75rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .stat-value { font-size: 1.2rem; }
  .hero-number { font-size: 2.6rem; }
  .hbar { grid-template-columns: 70px 1fr auto; }
  .check { min-height: 40px; margin-bottom: .1rem; }
  .check input { width: 1.25rem; height: 1.25rem; }
  .kv { grid-template-columns: minmax(110px, auto) 1fr; }
  .hours-row { grid-template-columns: 1fr; gap: .35rem; }
  .interval { flex-wrap: wrap; }
  .interval .input { flex: 1; min-width: 0; }
  .toasts { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; }
  body.has-bottom-nav .toasts { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .auth { align-items: flex-start; padding: 1rem .75rem; }
  .auth-card { padding: 1.25rem; }

  /* Tabelas viram cartões */
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr { display: block; width: 100%; }
  .table.responsive tr { border: 1px solid var(--border); border-radius: 10px; padding: .65rem .8rem; margin-bottom: .65rem; background: var(--surface); }
  .table.responsive tr.clickable:active { background: var(--surface-2); }
  .table.responsive tr.clickable:hover td { background: transparent; }
  .table.responsive td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border: 0; padding: .22rem 0; text-align: right; }
  .table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; text-align: left; flex-shrink: 0; }
  .table.responsive td[data-label=""]::before { display: none; }
  .table.responsive td.primary { display: block; text-align: left; font-size: 1rem; padding-bottom: .45rem; margin-bottom: .3rem; border-bottom: 1px solid var(--border); }
  .table.responsive td.primary::before { display: none; }
  .table.responsive td.actions { justify-content: flex-end; flex-wrap: wrap; padding-top: .55rem; }
  .table.responsive td.actions:empty { display: none; }
  .table-wrap { overflow-x: visible; }
  /* Cartão que só embrulha a lista: sem moldura, para não ficar cartão dentro de cartão. */
  .card:has(> .table-wrap .table.responsive), .card:has(> .empty) { background: transparent; border: 0; box-shadow: none; padding: 0; }

  /* Janelas abrem de baixo, como no app */
  .overlay { align-items: flex-end; padding: 0; }
  .modal, .modal.wide { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
  .form-actions { position: sticky; bottom: 0; background: var(--surface); padding: .75rem 0 .5rem; }
  .form-actions .btn { flex: 1; }
}
