:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f1f7;
  --text: #171c2c;
  --muted: #5d6579;
  --border: #e2e5ee;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef0ff;
  --success: #067647;
  --success-bg: #e8f8ee;
  --danger: #b42318;
  --danger-bg: #fdeeec;
  --warn: #a15c07;
  --warn-bg: #fff6e0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--link, var(--primary)); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; margin: 0 0 6px; }
h2 { font-size: 1.15rem; margin: 0 0 14px; }
h3 { font-size: 1rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; }
.brand span { color: var(--primary); }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-weight: 500; }

.container { max-width: 1080px; margin: 0 auto; padding: 32px 16px 64px; }
.narrow { max-width: 460px; }
.medium { max-width: 720px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--primary); color: #fff; font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.danger { background: var(--danger); }
.btn.success { background: var(--success); }
.btn.small { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 22px; font-size: 1.05rem; }
.link { background: none; border: none; color: var(--link, var(--primary)); cursor: pointer; font: inherit; font-weight: 500; padding: 0; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--danger); }
form.inline { display: inline; margin: 0; }

/* Forms */
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; background: #fff; color: var(--text);
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--primary-soft); border-color: var(--primary); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); vertical-align: middle; }
.field-error { color: var(--danger); font-size: .85rem; margin-top: 4px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.code-input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }

.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* Alerts & badges */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid transparent; }
.alert.success { background: var(--success-bg); color: var(--success); border-color: #c6ecd6; }
.alert.error { background: var(--danger-bg); color: var(--danger); border-color: #f6cfca; }
.alert.warn { background: var(--warn-bg); color: var(--warn); border-color: #f5e0b0; }
.alert.info { background: var(--primary-soft); color: var(--primary-hover); border-color: #dcdffd; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--primary-soft); color: var(--primary); white-space: nowrap;
}
.badge.success { background: var(--success-bg); color: var(--success); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.muted { background: var(--surface-2); color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); font-size: .93rem; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: none; }
tr.inactive td { color: var(--muted); }

/* Panel nav */
.subnav { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.subnav a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; margin-bottom: -1px; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.active { color: var(--primary); border-color: var(--primary); }

/* Stats */
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }

/* Landing */
.hero { text-align: center; padding: 64px 16px 32px; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: 2.6rem; letter-spacing: -0.03em; margin-bottom: 14px; }
.hero p { font-size: 1.15rem; color: var(--muted); }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.feature .icon { font-size: 1.6rem; margin-bottom: 8px; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan { display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; }
.plan.current { border-color: var(--primary); outline: 2px solid var(--primary-soft); }

/* Public booking */
.biz-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.biz-avatar {
  width: 56px; height: 56px; border-radius: 14px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; flex-shrink: 0;
}
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: .85rem; flex-shrink: 0;
}
.option {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface);
}
.option:hover { border-color: var(--primary); text-decoration: none; }
.option.selected { border-color: var(--primary); background: var(--primary-soft); }
.option .meta { color: var(--muted); font-size: .88rem; }
.option .value { font-weight: 700; white-space: nowrap; }
.options { display: grid; gap: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text);
  background: var(--surface); font-size: .9rem; font-weight: 500; text-align: center;
}
.chip:hover { border-color: var(--primary); text-decoration: none; }
.chip.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip .dow { display: block; font-size: .72rem; text-transform: uppercase; opacity: .75; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; position: relative; }
.slots input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; }
.slots label {
  margin: 0; text-align: center; padding: 10px 4px; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface);
}
.slots label:hover { border-color: var(--primary); }
.slots input:checked + label { background: var(--primary); color: #fff; border-color: var(--primary); }
.slots input:focus-visible + label { outline: 3px solid var(--primary-soft); }
.summary { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.summary .row { padding: 4px 0; }

.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.status-icon { font-size: 3rem; text-align: center; margin-bottom: 8px; }
.qr { display: block; margin: 12px auto; width: 220px; height: 220px; image-rendering: pixelated; border-radius: 8px; border: 1px solid var(--border); }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .88em; }
.secret { display: block; text-align: center; background: var(--surface-2); padding: 10px; border-radius: 8px; word-break: break-all; letter-spacing: .05em; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
footer.site { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px 40px; }

@media (max-width: 640px) {
  .topbar { padding: 10px 16px; }
  .topbar nav { gap: 12px; font-size: .92rem; }
  .container { padding: 20px 16px 48px; }
  .card { padding: 18px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 1.9rem; }
  h1 { font-size: 1.45rem; }
  .hide-sm { display: none; }
}


/* Página inicial do cliente: busca e vitrine */
.search-hero { padding-bottom: 16px; }
.search-bar { display: flex; gap: 8px; max-width: 560px; margin: 24px auto 0; }
.search-bar input { margin: 0; flex: 1; min-width: 0; }
.search-chips { justify-content: center; margin-top: 16px; }
.results-title { font-size: 1.2rem; margin: 24px 0 12px; }
.biz-grid { align-items: stretch; }
.biz-card { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; transition: border-color .15s; }
.biz-card:hover { border-color: var(--primary); text-decoration: none; }
.biz-card .biz-avatar { flex-shrink: 0; }
.biz-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.biz-info strong { line-height: 1.3; }
.biz-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.business-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; background: var(--primary-soft); border-color: transparent; }
.brand-tag { font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* Explorar por categoria */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
a.category-card:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.category-card.disabled { opacity: .55; box-shadow: none; }
.category-icon { font-size: 2rem; line-height: 1; margin-bottom: 6px; }

/* Convite para criar conta (agendar exige conta) */
.signup-cta { background: var(--primary-soft); border-radius: var(--radius); padding: 18px; text-align: center; }
.signup-cta .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.slots.preview { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-preview { padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-weight: 600; color: var(--muted); }

/* Login social do cliente */
.social-buttons { margin: 8px 0 4px; }
.btn.social { background: var(--surface); color: var(--text); border-color: var(--border); margin-top: 10px; }
.btn.social:hover { background: var(--surface-2); }
.btn.social.facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.btn.social.facebook:hover { background: #166fe5; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Meus agendamentos */
.appt-list .option { align-items: flex-start; }
.appt-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

@media (max-width: 640px) {
  .search-bar { flex-direction: column; }
  .business-cta .btn { width: 100%; white-space: normal; }
}

/* ===== Página inicial em estilo propaganda ===== */
.promo {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.18) 0, transparent 35%),
    radial-gradient(circle at 10% 90%, rgba(255,214,102,.25) 0, transparent 40%),
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
}
.promo-inner { max-width: 1120px; margin: 0 auto; padding: 64px 24px 72px; display: grid;
  grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.promo-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.18);
  font-size: .85rem; font-weight: 600; backdrop-filter: blur(4px); }
.promo h1 { color: #fff; font-size: 3rem; line-height: 1.08; letter-spacing: -.035em; margin: 18px 0 16px; }
.promo-highlight { background: linear-gradient(90deg, #fde68a, #fca5a5); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.promo-text p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 560px; }
.promo-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn.promo-btn { background: #fff; color: #4338ca; box-shadow: 0 10px 30px rgba(17, 12, 60, .25); }
.btn.promo-btn:hover { background: #f1f0ff; }
.btn.promo-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.promo-btn-outline:hover { background: rgba(255,255,255,.12); }
.promo-perks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: .95rem; color: rgba(255,255,255,.92); }

.promo-phone { position: relative; display: flex; justify-content: center; }
.phone { width: 270px; background: #0f1222; border-radius: 36px; padding: 14px; box-shadow: 0 30px 60px rgba(17,12,60,.45);
  transform: rotate(3deg); }
.phone-notch { width: 90px; height: 18px; background: #0f1222; border-radius: 0 0 12px 12px; margin: -14px auto 10px; }
.phone-card { background: #fff; color: var(--text); border-radius: 22px; padding: 22px 18px; text-align: center; }
.phone-ok { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; background: var(--success-bg);
  color: var(--success); font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.phone-row { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; padding: 8px 0;
  border-top: 1px solid var(--border); margin-top: 10px; }
.phone-row span { color: var(--muted); }
.phone-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.phone-slots span { background: #1d2135; color: #c7cbe0; border-radius: 10px; padding: 8px 0; text-align: center;
  font-size: .8rem; font-weight: 600; }
.phone-slots span.taken { background: #22c55e; color: #fff; }
.float-chip { position: absolute; background: #fff; color: var(--text); font-size: .85rem; font-weight: 700;
  padding: 10px 14px; border-radius: 14px; box-shadow: 0 12px 30px rgba(17,12,60,.25); white-space: nowrap; }
.chip-a { top: -26px; left: -30px; transform: rotate(-4deg); }
.chip-b { bottom: 14%; right: 0; transform: rotate(5deg); }

.home-section { margin-top: 48px; }
.section-title { font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 4px; }
.section-sub { margin-top: 0; margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.step-badge { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); margin-bottom: 6px; }

.promo-banner { margin-top: 48px; border-radius: 20px; padding: 32px; color: #fff; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 60%, #db2777 100%); box-shadow: 0 16px 40px rgba(79,70,229,.25); }
.promo-banner h3 { color: #fff; font-size: 1.4rem; margin: 0 0 6px; }
.promo-banner p { color: rgba(255,255,255,.9); margin: 0; }
.promo-banner .promo-actions { margin-top: 0; }

@media (max-width: 860px) {
  .promo-inner { grid-template-columns: 1fr; padding: 40px 20px 48px; text-align: center; }
  .promo-text p { margin-left: auto; margin-right: auto; }
  .promo-actions, .promo-perks { justify-content: center; }
  .promo h1 { font-size: 2.1rem; }
  .phone { transform: none; width: 250px; }
  .promo-phone { display: none; }
  .float-chip { display: none; }
  .steps { grid-template-columns: 1fr; }
  .promo-banner { text-align: center; justify-content: center; padding: 24px 20px; }
  .promo-banner .promo-actions { justify-content: center; }
}

/* Selo de reembolso 100% (cliente final) */
.refund-seal { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px;
  border-radius: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); font-size: .98rem; }
.refund-seal-icon { width: 28px; height: 28px; border-radius: 50%; background: #22c55e; color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phone-refund { margin-top: 10px; padding: 6px 8px; border-radius: 10px; background: var(--success-bg); color: var(--success);
  font-size: .75rem; font-weight: 700; }
.guarantee { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 20px; border-radius: var(--radius);
  background: var(--success-bg); border: 1px solid #b7e4c7; }
.guarantee-icon { font-size: 1.8rem; line-height: 1; }
.refund-note { padding: 10px 14px; border-radius: 12px; background: var(--success-bg); color: var(--success); font-size: .92rem; }
@media (max-width: 860px) { .refund-seal { text-align: left; } }

/* ===== Página para negócios ===== */
.feature-grid .feature h3 { margin-top: 4px; }
.feature.highlight { border-color: #b7e4c7; background: linear-gradient(180deg, #f2fbf5, var(--surface)); }
.phone-row b.ok { color: var(--success); }
.phone-total { margin-top: 10px; background: #22c55e; color: #fff; border-radius: 14px; padding: 10px 12px;
  font-size: .85rem; text-align: center; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.timeline .step-badge { flex-shrink: 0; margin-bottom: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--success-bg); color: var(--success); font-weight: 800; font-size: .8rem;
  display: flex; align-items: center; justify-content: center; }
.requirements { display: grid; gap: 16px; }
.req { display: flex; gap: 14px; align-items: flex-start; }
.req-icon { font-size: 1.6rem; line-height: 1; width: 40px; text-align: center; flex-shrink: 0; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--primary); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }


/* Filtro de localização do Explorar */
.location-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.location-filter select { width: auto; min-width: 180px; margin: 0; flex: 1 1 180px; }
.location-pin { font-size: 1.2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Endereço da página (Configurações) */
.slug-field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slug-prefix { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.slug-field input { flex: 1 1 160px; width: auto; margin: 0; }
.slug-status { font-size: .88rem; min-height: 1.3em; margin-top: 4px; color: var(--muted); }
.slug-status.ok { color: var(--success); }
.slug-status.bad { color: var(--danger); }
.empty-location { margin-bottom: 16px; text-align: center; color: var(--muted); }

/* Mapa do Explorar */
.map-card { margin-bottom: 16px; }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.explore-map { height: 380px; border-radius: 12px; border: 1px solid var(--border); z-index: 0; }
.map-pin span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary); box-shadow: 0 4px 10px rgba(16,24,40,.25); font-size: 17px; line-height: 1; }
.map-me span { display: block; width: 20px; height: 20px; border-radius: 50%; background: #2563eb; border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(37,99,235,.25); }
.biz-distance { color: var(--primary); font-weight: 700; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
label.check input { width: auto; margin-top: 3px; }
@media (max-width: 640px) { .explore-map { height: 300px; } }

/* App no celular (PWA) */
[hidden] { display: none !important; }
.app-link { font-weight: 600; }
/* Já aberto como app: some tudo de "baixar o app". */
@media (display-mode: standalone) { .app-link, .install-banner { display: none !important; } }
.page-app .install-banner { display: none !important; }
.topbar nav { flex-wrap: nowrap; white-space: nowrap; }
.install-banner {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: linear-gradient(90deg, #eef0ff, #f5ecff); border-bottom: 1px solid var(--border);
}
.install-banner img { border-radius: 11px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(79, 70, 229, .25); }
.install-text { flex: 1; min-width: 0; line-height: 1.3; }
.install-text strong { display: block; font-size: .95rem; }
.install-text span { color: var(--muted); font-size: .85rem; }
.install-banner .btn { flex-shrink: 0; }
.install-close {
  background: none; border: none; color: var(--muted); font-size: 1.4rem; line-height: 1;
  cursor: pointer; padding: 4px; flex-shrink: 0;
}
/* No computador fica só o link discreto no topo; no celular, a faixa em destaque. */
@media (min-width: 761px) { .install-banner { display: none !important; } }
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .topbar nav { gap: 10px; }
  .topbar .btn.small { padding: 6px 10px; }
}

/* Página /app (baixar o app) */
.app-hero { text-align: center; padding: 8px 0 24px; }
.app-hero img { border-radius: 22px; box-shadow: 0 10px 30px rgba(79, 70, 229, .3); }
.app-hero h1 { margin: 18px 0 8px; }
.app-hero > p { max-width: 520px; margin: 0 auto 20px; }
.app-install { max-width: 520px; margin: 0 auto; text-align: left; }
.app-install[data-app-state="prompt"] { text-align: center; }
.app-install-btn { font-size: 1.1rem; padding: 14px 28px; }
.app-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.app-key { display: inline-block; padding: 0 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.app-installed { text-align: center; }
.app-url { color: var(--primary); }
.app-benefits { margin: 8px 0 20px; }

/* =====================================================================
   BookAqui Negócios: tema PRETO (cadastro, login e painel do estabelecimento,
   área do funcionário e o app BookAqui Business). Ativado por <html class="theme-business">.
   ===================================================================== */
.theme-business {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #141417;
  --surface-2: #1d1d22;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --border: #2a2a31;
  --primary: #fafafa;
  --primary-hover: #d4d4d8;
  --primary-soft: #26262c;
  --accent: #a5b4fc;
  --link: #a5b4fc;
  --success: #4ade80;
  --success-bg: #0d2a18;
  --danger: #f87171;
  --danger-bg: #2c1212;
  --warn: #fbbf24;
  --warn-bg: #2b2108;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .35);
}
.theme-business .brand { color: var(--text); }
.theme-business .brand span { color: var(--accent); }
.theme-business .topbar { background: rgba(10, 10, 11, .92); backdrop-filter: blur(8px); }
/* Botões: brancos com texto preto (o "roxo" do site de clientes vira preto e branco) */
.theme-business .btn { color: #0a0a0b; }
.theme-business .btn.secondary { color: var(--text); }
.theme-business .btn.danger { background: #dc2626; color: #fff; }
.theme-business .btn.success { background: #16a34a; color: #fff; }
.theme-business input, .theme-business select, .theme-business textarea { background: var(--surface-2); }
.theme-business input:focus, .theme-business select:focus, .theme-business textarea:focus { outline-color: #3f3f46; border-color: var(--accent); }
.theme-business input[type="checkbox"] { accent-color: var(--accent); }
.theme-business .alert.success { border-color: #14532d; }
.theme-business .alert.error { border-color: #5b1d1d; }
.theme-business .alert.warn { border-color: #5a430d; }
.theme-business .alert.info { color: var(--text); border-color: #34343c; }
.theme-business .badge { color: var(--text); }
.theme-business .chip.selected, .theme-business .slots input:checked + label,
.theme-business .biz-avatar, .theme-business .step-num { color: #0a0a0b; }
.theme-business .subnav a.active { color: var(--text); border-color: var(--text); }
.theme-business .feature.highlight { border-color: #14532d; background: linear-gradient(180deg, #0f2417, var(--surface)); }
.theme-business .faq summary::after { color: var(--accent); }
/* Página /negocios */
.theme-business .promo {
  background:
    radial-gradient(circle at 85% 15%, rgba(165, 180, 252, .16) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .06) 0, transparent 40%),
    linear-gradient(135deg, #18181b 0%, #0a0a0b 60%, #000 100%);
  border-bottom: 1px solid var(--border);
}
.theme-business .promo-highlight { background: linear-gradient(90deg, #c7d2fe, #a5b4fc); -webkit-background-clip: text; background-clip: text; }
.theme-business .btn.promo-btn { background: #fff; color: #0a0a0b; }
.theme-business .btn.promo-btn:hover { background: #e4e4e7; }
.theme-business .btn.promo-btn-outline { color: #fff; }
.theme-business .promo-banner { background: linear-gradient(120deg, #18181b 0%, #27272a 60%, #312e81 100%); border: 1px solid var(--border); box-shadow: none; }
.theme-business .step-badge { background: linear-gradient(135deg, #3f3f46, #18181b); border: 1px solid #3f3f46; }
.theme-business .install-banner { background: linear-gradient(90deg, #18181b, #1e1b3a); }
.theme-business .install-banner img, .theme-business .app-hero img { box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.theme-business .app-key { background: var(--surface-2); }
.theme-business .app-url { color: var(--accent); }

/* Botão "📲 Instalar app" no topo (clientes e Business) */
.install-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--link, var(--primary)); border: 1px solid currentColor;
  font-size: .85rem; font-weight: 700; white-space: nowrap;
}
.install-btn:hover { text-decoration: none; filter: brightness(.97); }
.theme-business .install-btn { background: #1e1b3a; }
@media (min-width: 421px) { .cap-xs::first-letter { text-transform: none; } }
@media (max-width: 420px) {
  .cap-xs { display: inline-block; }
  .cap-xs::first-letter { text-transform: uppercase; }
  .install-btn { padding: 5px 9px; font-size: .8rem; }
}

/* Login: "Manter conectado" e "Salvar meu e-mail" */
.login-options { display: grid; gap: 8px; margin-top: 14px; }
.login-options label.check { margin: 0; font-size: .92rem; }

/* Janela "Instalar o app" (abre pelo botão Instalar; espera o navegador liberar a instalação) */
.install-sheet {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .5); padding: 16px;
}
.install-sheet[hidden] { display: none !important; }
.install-sheet-box {
  position: relative; width: 100%; max-width: 420px; background: var(--surface); color: var(--text);
  border-radius: 20px; padding: 28px 22px 22px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.install-sheet-box img { border-radius: 16px; }
.install-sheet-box h2 { margin: 12px 0 8px; }
.install-sheet-box .install-close { position: absolute; top: 10px; right: 12px; }
.install-sheet-box .app-steps { text-align: left; }
.install-sheet-box .app-install-btn { margin-top: 6px; }
.install-wait { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.install-ok { font-weight: 600; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--link, var(--primary));
  animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 641px) { .install-sheet { align-items: center; } }

/* Funcionários: status do acesso (convite enviado / acesso ativo) */
.staff-access { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }

/* Cadastro: escolha do plano */
.plan-choice { border: 0; padding: 0; margin: 18px 0 0; }
.plan-choice legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; padding: 0; }
.mt-0 { margin-top: 0; }
.plan-option {
  display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 0; padding: 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-weight: 400;
}
.plan-option input { width: auto; margin-top: 4px; accent-color: var(--link, var(--primary)); }
.plan-option:has(input:checked) { border-color: var(--link, var(--primary)); box-shadow: 0 0 0 1px var(--link, var(--primary)); }
.plan-option-body { display: grid; gap: 2px; }
.plan-option-price { font-weight: 700; }

/* Categoria "Outro": tipo escrito pelo dono e filtros no Explorar */
.custom-category-field[hidden] { display: none; }
.type-chips { margin: 4px 0 16px; }

/* Explorar > Outro: busca por texto */
.explore-search { max-width: none; margin: 0 0 12px; }
.explore-search input[type=search] { font-size: 1rem; }
.search-summary { margin: 0 0 12px; }

/* Palavras-chave no cartão do Explorar */
.biz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.biz-info .biz-tag {
  font-size: .78rem; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.biz-info .biz-tag.hit { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* Celular da propaganda: cartões brancos sempre com letra escura (inclusive no tema preto do Negócios) */
.phone-card, .float-chip { color: #0f1222; }
.phone-card .phone-row { border-color: #e5e7eb; }
.phone-card .phone-row span { color: #4b5563; }
.phone-card .phone-row b.ok { color: #16a34a; }

/* Mapa: o Leaflet pinta links de azul; o botão "Agendar" do balão fica com letra branca */
.leaflet-container .leaflet-popup-content a.btn,
.leaflet-container .leaflet-popup-content a.btn:hover { color: #fff; text-decoration: none; }

/* Termos de uso e Política de privacidade */
.legal h2 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal h3 { font-size: .98rem; margin: 16px 0 6px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.terms-check { margin-top: 16px; font-size: .92rem; }
.social-terms { margin: 4px 0 0; text-align: center; }

/* Foto do estabelecimento */
img.biz-photo { object-fit: cover; background: #fff; padding: 0; border: 1px solid var(--border); }
img.biz-photo-lg { width: 88px; height: 88px; border-radius: 18px; }
.photo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo-preview { width: 88px; height: 88px; border-radius: 18px; font-size: 2rem; }
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.photo-actions form { margin: 0; }
.photo-actions label.btn { cursor: pointer; margin: 0; }

/* Admin usando o painel do estabelecimento */
.impersonation-banner {
  flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 10px 14px; margin-bottom: 8px; border-radius: 12px; background: #fef3c7; color: #78350f; font-size: .9rem;
}
.impersonation-banner form { margin: 0; }
.subnav:has(.impersonation-banner) { flex-wrap: wrap; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-actions form { margin: 0; }

/* ===== Dúvidas frequentes (/negocios/duvidas) ===== */
.faq-page h1 { margin-bottom: 6px; }
.faq-page h2 { margin: 32px 0 12px; font-size: 1.2rem; scroll-margin-top: 80px; }
.faq-page .faq ul { margin: 10px 0 0; padding-left: 20px; }
.faq-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.faq-index a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: .9rem;
    text-decoration: none; color: var(--text); background: var(--surface); }
.faq-index a:hover { border-color: var(--accent, var(--primary)); }
