:root {
  --bg: #faf6ef;
  --card: #ffffff;
  --ink: #3b3027;
  --muted: #8a7c6c;
  --rose: #9e8462;
  --rose-dark: #7d6650;
  --rose-soft: #f2e9dc;
  --line: #e8dfd1;
  --ok: #5f8d6c;
  --warn: #c19a4a;
  --bad: #b8605a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(90, 70, 45, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.5;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Hero ---------- */
.hero {
  text-align: center; padding: 56px 16px 40px;
  background: linear-gradient(180deg, var(--rose-soft), var(--bg));
}
.hero .tag { letter-spacing: .25em; text-transform: uppercase; font-size: 12px; color: var(--rose-dark); }
.hero h1 { font-size: clamp(36px, 6vw, 56px); margin: 8px 0; }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto; }

.container { max-width: 960px; margin: 0 auto; padding: 0 16px 64px; }

/* ---------- Steps ---------- */
.steps { display: flex; gap: 8px; justify-content: center; margin: 8px 0 28px; flex-wrap: wrap; }
.steps span {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: var(--card); border: 1px solid var(--line);
}
.steps span.active { background: var(--rose); color: #fff; border-color: var(--rose); }
.steps span.done { color: var(--rose-dark); border-color: var(--rose); }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; border: 1px solid var(--line);
}
.card h2 { font-size: 28px; margin-bottom: 4px; }
.card .sub { color: var(--muted); margin: 0 0 20px; }
.hidden { display: none !important; }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.service {
  text-align: left; padding: 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); transition: .15s;
}
.service:hover { border-color: var(--rose); transform: translateY(-2px); }
.service.selected { border-color: var(--rose); background: var(--rose-soft); }
.service strong { display: block; font-size: 16px; margin-bottom: 6px; }
.service .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.service .price { color: var(--rose-dark); font-weight: 600; }

/* ---------- Calendário ---------- */
.booking-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
@media (max-width: 760px) { .booking-grid { grid-template-columns: 1fr; } .card { padding: 20px; } }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { font-size: 24px; text-transform: capitalize; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 18px;
}
.icon-btn:disabled { opacity: .3; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 4px; text-transform: uppercase; }
.day {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 15px;
  color: #c9bfb2; cursor: default; position: relative;
}
.day.available { color: var(--ink); background: var(--bg); border-color: var(--line); cursor: pointer; }
.day.available::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); position: absolute; bottom: 7px;
}
.day.available:hover { border-color: var(--rose); }
.day.selected { background: var(--rose); color: #fff; border-color: var(--rose); }
.day.selected::after { background: #fff; }
.day.today { font-weight: 700; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.time {
  padding: 10px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.time:hover { border-color: var(--rose); }
.time.selected { background: var(--rose); color: #fff; border-color: var(--rose); }
.empty { color: var(--muted); font-size: 14px; padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- Formulário ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--rose); }
.summary { background: var(--rose-soft); border-radius: 12px; padding: 16px; margin-bottom: 18px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.summary b { font-weight: 600; text-align: right; }

.btn {
  border: none; border-radius: 999px; padding: 13px 26px; background: var(--rose); color: #fff; font-weight: 600;
  transition: .15s;
}
.btn:hover { background: var(--rose-dark); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--rose); background: none; }
.actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; flex-wrap: wrap; }
.error { color: var(--bad); font-size: 14px; margin-top: 8px; min-height: 1em; }

.success { text-align: center; padding: 20px 0; }
.success .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--rose-soft); color: var(--rose-dark);
  display: grid; place-items: center; font-size: 30px; margin: 0 auto 16px;
}
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; }
footer a { color: var(--rose-dark); }

/* ---------- Painel ---------- */
.admin-top {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 24px;
  background: var(--card); border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap;
}
.admin-top h1 { font-size: 26px; }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 64px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat .label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat .value { font-size: 28px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }

.admin-grid { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-cal .day { font-size: 14px; color: var(--ink); cursor: pointer; background: var(--bg); border-color: var(--line); }
.admin-cal .day.closed { color: #c9bfb2; background: none; border-color: transparent; }
.admin-cal .day.blocked { background: repeating-linear-gradient(45deg, #f3eee6, #f3eee6 4px, #fff 4px, #fff 8px); color: var(--muted); }
.admin-cal .day .count {
  position: absolute; top: 3px; right: 4px; font-size: 10px; background: var(--rose); color: #fff;
  border-radius: 999px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; padding: 0 4px;
}
.admin-cal .day.selected .count { background: #fff; color: var(--rose-dark); }
.admin-cal .day::after { display: none; }

.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar h2 { font-size: 26px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink);
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.booking {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
}
.booking .when { text-align: center; border-right: 1px solid var(--line); padding-right: 12px; }
.booking .when .h { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.booking .when .d { font-size: 12px; color: var(--muted); }
.booking .who strong { font-size: 16px; }
.booking .who .svc { color: var(--rose-dark); font-size: 14px; }
.booking .who .tel { color: var(--muted); font-size: 13px; }
.booking .who .tel a { color: inherit; }
.booking .who .obs { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 4px; }
.booking .side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.booking select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; }
.badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.badge.pendente { background: #fbf2de; color: #8d6a1f; }
.badge.confirmado { background: #e3efe6; color: #3f6b4c; }
.badge.concluido { background: #ece8f3; color: #5b4f78; }
.badge.cancelado { background: #f3e4dc; color: #9a4741; }
.booking.cancelado { opacity: .55; }
.link-btn { background: none; border: none; color: var(--bad); font-size: 12px; padding: 0; }
@media (max-width: 600px) {
  .booking { grid-template-columns: 64px 1fr; }
  .booking .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

.login { max-width: 380px; margin: 12vh auto; }

/* ---------- Painel v2 ---------- */
.btn.small { padding: 8px 16px; font-size: 13px; text-decoration: none; display: inline-block; }
.tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.tab { border: none; background: none; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.tab.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); font-weight: 600; }
.narrow { max-width: 640px; margin: 0 auto; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row input[type=time], .row input[type=text], .week-row input[type=time] {
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 14px;
}
.row span { color: var(--muted); font-size: 13px; }
.day-manager { margin-top: 16px; padding: 20px; }
.day-manager h3 { font-size: 22px; text-transform: none; }
.day-manager .sub { margin-bottom: 8px; font-size: 13px; }
.dm-section { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.dm-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.block-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: #f2ede5; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 6px;
}
.block-item button { background: none; border: none; color: var(--bad); font-size: 16px; line-height: 1; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 5px; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.lg.open { background: var(--bg); }
.lg.special { background: #fff; border: 2px solid var(--warn); }
.lg.closed { background: repeating-linear-gradient(45deg, #f3eee6, #f3eee6 3px, #fff 3px, #fff 6px); }
.admin-cal .day.special { border: 2px solid var(--warn); }
.admin-cal .day.closed { color: #b9ae9f; background: repeating-linear-gradient(45deg, #f3eee6, #f3eee6 4px, #fff 4px, #fff 8px); border-color: transparent; }
.admin-cal .day.closed.selected, .admin-cal .day.selected { background: var(--rose); color: #fff; border-color: var(--rose); }
.booking.bloqueio { background: #f6f2ea; border-style: dashed; }
.booking.bloqueio .who strong { color: var(--muted); }
.week-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.week-row:last-child { border-bottom: none; }
.week-row .times-in { display: flex; gap: 8px; align-items: center; }
.week-row .times-in.off { opacity: .35; pointer-events: none; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 6px 0 4px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--rose); }
.ok-msg { color: var(--ok); font-size: 14px; align-self: center; }
.steps-box { background: var(--rose-soft); border-radius: 12px; padding: 14px 18px; font-size: 14px; margin-bottom: 18px; }
.steps-box ol { margin: 8px 0 0; padding-left: 20px; }
.steps-box li { margin-bottom: 6px; }
.steps-box a { color: var(--rose-dark); }
.steps-box code { background: #fff; padding: 2px 6px; border-radius: 6px; font-size: 13px; }
@media (max-width: 700px) { .admin-top { justify-content: center; } }

/* ---------- WhatsApp QR ---------- */
.wa-box { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--bg); }
.wa-status { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.wa-dot { width: 10px; height: 10px; border-radius: 50%; background: #c9bfb2; flex: none; }
.wa-dot.on { background: #3fae5a; box-shadow: 0 0 0 4px #3fae5a22; }
.wa-dot.wait { background: var(--warn); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.wa-qr { display: flex; gap: 20px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.wa-qr img { width: 220px; height: 220px; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.wa-qr ol { margin: 0; padding-left: 18px; font-size: 14px; flex: 1; min-width: 200px; }
.wa-qr li { margin-bottom: 6px; }
.wa-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- Procedimentos ---------- */
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sv-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--rose-dark); font-weight: 600; margin: 18px 0 8px; }
.sv-item {
  display: grid; grid-template-columns: 28px 1fr auto auto; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: var(--bg);
}
.sv-item.off { opacity: .55; }
.sv-ord { display: flex; flex-direction: column; gap: 2px; }
.sv-ord button { background: none; border: none; color: var(--muted); font-size: 10px; padding: 2px; line-height: 1; }
.sv-ord button:hover { color: var(--rose-dark); }
.sv-info strong { font-size: 15px; }
.sv-meta { font-size: 13px; color: var(--muted); }
.sv-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.sv-price s { color: var(--muted); font-size: 12px; }
.sv-price b { font-size: 16px; color: var(--ink); }
.sv-off { font-size: 11px; color: #fff; background: var(--rose); border-radius: 999px; padding: 1px 7px; margin: 2px 0; }
@media (max-width: 600px) {
  .sv-item { grid-template-columns: 24px 1fr auto; }
  .sv-item > .btn { grid-column: 2 / -1; justify-self: start; }
}
.sv-dialog {
  border: none; border-radius: var(--radius); padding: 28px; width: min(560px, calc(100vw - 32px));
  box-shadow: 0 20px 60px rgba(60, 45, 30, .25); color: var(--ink); background: var(--card);
}
.sv-dialog::backdrop { background: rgba(59, 48, 39, .35); }
.sv-dialog h2 { font-size: 28px; margin-bottom: 16px; }
.sv-dialog select { padding: 12px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .grid2 { grid-template-columns: 1fr; } }
.sv-preview { background: var(--rose-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 10px; }
.sv-preview s { color: var(--muted); margin-right: 4px; }

/* ---------- Site: categorias e promoções ---------- */
.svc-cat { grid-column: 1 / -1; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; margin: 10px 0 -2px; color: var(--rose-dark); }
.svc-cat:first-child { margin-top: 0; }
.service .desc { font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
.service .price s { color: var(--muted); font-weight: 400; font-size: 12px; margin-right: 4px; }
.service .promo { display: inline-block; font-size: 11px; background: var(--rose); color: #fff; border-radius: 999px; padding: 1px 8px; margin-bottom: 6px; font-weight: 600; }
.grid2 > * { min-width: 0; }
.sv-dialog select { flex: none; width: 70px; }

/* ---------- Despesas & Relatórios ---------- */
.tabs { flex-wrap: wrap; justify-content: center; }
.month-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.month-bar h2 { font-size: 30px; min-width: 200px; text-align: center; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dp-head h2 { font-size: 24px; }
.dp-item { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: var(--bg); }
.dp-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); margin-top: 4px; }
.dp-meta .tag { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; font-size: 12px; color: var(--ink); }
.dp-valor { text-align: right; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.dp-valor b { font-size: 16px; }
.dp-valor small { font-size: 11px; color: var(--muted); }
.dp-todas { margin-top: 16px; }
.dp-todas summary { cursor: pointer; color: var(--rose-dark); font-size: 14px; margin-bottom: 10px; }
@media (max-width: 600px) { .dp-item { grid-template-columns: 1fr auto; } .dp-item > .btn { grid-column: 1 / -1; justify-self: start; } }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.seg button { flex: 1; border: none; background: none; padding: 10px 6px; font-size: 13px; color: var(--muted); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--rose); color: #fff; font-weight: 600; }
.field input:disabled { opacity: .6; }

.rl-aviso { background: #fbf2de; color: #6d5418; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.stat .value.neg, .neg { color: var(--bad); }
.rl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .rl-grid { grid-template-columns: 1fr; } }
.pie-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.pie-box { position: relative; width: 220px; max-width: 100%; flex: none; }
.pie-box svg { width: 100%; height: auto; display: block; }
.slice { transition: opacity .15s; cursor: default; }
.slice.dim { opacity: .35; }
.pie-empty { font-size: 13px; fill: var(--muted); font-family: Inter, sans-serif; }
.pie-tip { position: absolute; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; z-index: 2; }
.pie-legend { flex: 1; min-width: 210px; font-size: 14px; }
.lg-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.lg-row b { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.lg-row small { color: var(--muted); font-weight: 400; margin-left: 4px; font-size: 12px; }
.lg-row span { color: var(--muted); }
.lg-strong span { color: var(--ink); font-weight: 600; }
.lg-strong b { font-size: 16px; }
.lg-sep { border-bottom: 1px solid var(--ink); }
.lg-sep span { color: var(--ink); }
.rl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rl-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rl-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rl-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-table tfoot td { font-weight: 600; border-bottom: none; }
.rl-table .bar { height: 6px; background: #efe9df; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.rl-table .bar span { display: block; height: 100%; background: var(--rose); border-radius: 3px; }

/* ---------- Reordenar procedimentos ---------- */
.sv-item { grid-template-columns: auto 1fr auto auto; }
.sv-handle { display: none; font-size: 20px; color: var(--muted); line-height: 1; padding: 4px 2px; }
.reordering .sv-handle { display: block; }
.reordering .sv-item { cursor: grab; touch-action: none; user-select: none; background: var(--card); border-style: dashed; border-color: var(--rose); }
.reordering .sv-item:hover { box-shadow: 0 4px 14px rgba(90, 70, 45, .08); }
.reordering .sv-item [data-edit] { display: none; }
.sv-item.dragging { cursor: grabbing; position: relative; z-index: 5; box-shadow: 0 14px 34px rgba(90, 70, 45, .22); border-style: solid; transition: none; }
.sv-group .sv-item { transition: box-shadow .15s; }
.sv-dica { background: var(--rose-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-top: 12px; }
@media (max-width: 600px) { .sv-item { grid-template-columns: auto 1fr auto; } }

/* ---------- PWA ---------- */
html { -webkit-text-size-adjust: 100%; }
body { padding-bottom: env(safe-area-inset-bottom); -webkit-tap-highlight-color: transparent; }
.admin-top { padding-top: max(18px, env(safe-area-inset-top)); }
.hero { padding-top: max(56px, calc(env(safe-area-inset-top) + 32px)); }
.pwa-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 12px 34px rgba(60, 45, 30, .2); font-size: 14px; animation: subir .3s ease-out;
}
@keyframes subir { from { transform: translateY(30px); opacity: 0; } }
.pwa-banner img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.pwa-txt { flex: 1; line-height: 1.35; }
.pwa-x { background: none; border: none; font-size: 22px; color: var(--muted); padding: 0 4px; line-height: 1; }
.ios-share { display: inline-block; transform: rotate(-90deg); }

/* ---------- Painel no celular (cara de app) ---------- */
@media (max-width: 700px) {
  .admin-top {
    position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto;
    gap: 10px 8px; padding: max(12px, env(safe-area-inset-top)) 12px 10px; justify-content: stretch;
  }
  .admin-top h1 { font-size: 22px; align-self: center; }
  .admin-top > div:last-child { grid-column: 2; grid-row: 1; }
  .admin-top .btn.small { padding: 7px 12px; }
  .tabs {
    grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    scrollbar-width: none; border-radius: 12px; -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: none; padding: 8px 14px; }
  .admin-wrap { padding: 14px 12px 64px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px; }
  .stat .label { font-size: 10px; }
  .stat .value { font-size: 20px; }
  .month-bar h2 { font-size: 24px; min-width: 0; flex: 1; }
  .month-bar .btn, .month-bar .check { width: 100%; justify-content: center; margin-left: 0 !important; }
  .card { padding: 16px; }
  .pie-box { margin: 0 auto; }
}

/* ---------- Botão Instalar em destaque ---------- */
.pwa-fab {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 6px; width: min(420px, calc(100vw - 24px));
  animation: pwaEntra .45s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pwaEntra { from { transform: translate(-50%, 120%); opacity: 0; } }
.pwa-fab-btn {
  flex: 1; display: flex; align-items: center; gap: 12px; text-align: left;
  border: none; border-radius: 18px; padding: 14px 18px; color: #fff;
  background: linear-gradient(135deg, #d4b07a 0%, #b8925a 55%, #8f744f 100%);
  box-shadow: 0 10px 28px rgba(160, 130, 90, .45), 0 0 0 0 rgba(212, 176, 122, .6);
  animation: pwaPulso 2.2s ease-out 1s infinite;
}
.pwa-fab-btn:active { transform: scale(.98); }
@keyframes pwaPulso {
  0% { box-shadow: 0 10px 28px rgba(160, 130, 90, .45), 0 0 0 0 rgba(212, 176, 122, .55); }
  70% { box-shadow: 0 10px 28px rgba(160, 130, 90, .45), 0 0 0 14px rgba(212, 176, 122, 0); }
  100% { box-shadow: 0 10px 28px rgba(160, 130, 90, .45), 0 0 0 0 rgba(212, 176, 122, 0); }
}
.pwa-fab-ico { font-size: 26px; line-height: 1; background: rgba(255, 255, 255, .22); border-radius: 12px; padding: 8px; }
.pwa-fab-btn b { display: block; font-size: 16px; letter-spacing: .01em; }
.pwa-fab-btn small { display: block; font-size: 12px; opacity: .92; }
.pwa-fab-x {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: 20px; line-height: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
body.com-pwa-fab { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.pwa-passos { padding-left: 22px; font-size: 15px; line-height: 1.5; }
.pwa-passos li { margin-bottom: 10px; }
.pwa-share { display: inline-block; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .pwa-fab, .pwa-fab-btn { animation: none; } }

/* ---------- Combos e Mais pedidos (painel) ---------- */
.destaque-card { border: 1.5px solid #e3cfa8; background: linear-gradient(180deg, #fbf6ec, var(--card) 60%); }
.ds-lista { margin-top: 12px; }
.ds-item { grid-template-columns: auto 1fr auto; cursor: grab; touch-action: none; user-select: none; background: var(--card); }
.ds-item .sv-handle { display: block; }
.ds-pos { display: inline-block; min-width: 26px; color: #a07d45; font-weight: 700; }
.ds-x { background: none; border: 1px solid var(--line); border-radius: 50%; width: 30px; height: 30px; color: var(--bad); font-size: 18px; line-height: 1; cursor: pointer; }
.ds-add { margin-top: 10px; }
.ds-add select { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.badge-star { font-size: 13px; }
.combo-meta { color: var(--rose-dark); }
.economia { color: var(--ok); font-weight: 600; }
.combo-itens { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--bg); }
.combo-op { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.combo-op:hover { background: var(--card); }
.combo-op input { width: 18px; height: 18px; accent-color: var(--rose); }
.combo-op small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.combo-op:has(input:checked) { background: var(--rose-soft); }
.field input[readonly] { background: #efe9df; color: var(--muted); }

/* ---------- Mais pedidos e combos (site) ---------- */
.svc-cat.svc-top { color: #9c7a3c; display: flex; align-items: center; gap: 8px; }
.service.top {
  border: 1.5px solid #e3cfa8; background: linear-gradient(160deg, #fbf6ec 0%, #f8f1e6 100%); position: relative;
}
.service.top:hover { border-color: #c9a36a; }
.service .rank {
  display: inline-block; font-size: 11px; font-weight: 700; color: #fff; border-radius: 999px; padding: 2px 9px; margin-bottom: 6px;
  background: linear-gradient(135deg, #d4b07a, #b8925a);
}
.service .itens { font-size: 13px; color: var(--rose-dark); margin: -2px 0 6px; }
.service .eco { display: block; font-size: 12px; color: var(--ok); font-weight: 600; margin-top: 4px; text-align: right; }

/* ---------- Cards com foto + carrossel Mais pedidos ---------- */
.service { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service .corpo { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.service .corpo .meta { margin-top: auto; }
.service .foto { aspect-ratio: 4 / 3; overflow: hidden; background: var(--rose-soft); }
.service .foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; transition: transform .4s; }
.service:hover .foto img { transform: scale(1.04); }

.carrossel { grid-column: 1 / -1; position: relative; margin: 0 -28px; }
.carrossel-trilho {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 28px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.carrossel-trilho::-webkit-scrollbar { display: none; }
.carrossel .slide { flex: 0 0 min(300px, 78%); scroll-snap-align: center; }
.carrossel .slide .foto { aspect-ratio: 4 / 5; position: relative; }
.carrossel .slide .foto::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(40, 30, 20, .35));
}
.carrossel .slide .rank { position: absolute; top: 12px; left: 12px; z-index: 2; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.carrossel .slide.com-foto { position: relative; }
.carrossel .slide:not(.com-foto) .rank { position: static; }
.carrossel-pontos { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
.carrossel-pontos button { width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0; background: #e2d5c2; transition: width .3s, background .3s; }
.carrossel-pontos button.on { width: 22px; background: linear-gradient(135deg, #d4b07a, #b8925a); }
.carrossel-seta {
  position: absolute; top: 40%; width: 38px; height: 38px; border-radius: 50%; border: none; z-index: 3;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 22px; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}
.carrossel-seta.esq { left: 10px; }
.carrossel-seta.dir { right: 10px; }
@media (max-width: 760px) {
  .carrossel { margin: 0 -20px; }
  .carrossel-trilho { padding: 6px 20px 10px; }
  .carrossel-seta { display: none; }
}

/* painel: miniaturas clicáveis e campo de foto */
.sv-item { grid-template-columns: auto 1fr auto auto; }
.reordering .sv-item { grid-template-columns: auto auto 1fr auto; }
.ds-item { grid-template-columns: auto auto 1fr auto; }
@media (max-width: 600px) {
  .sv-item { grid-template-columns: auto 1fr auto; }
  .reordering .sv-item { grid-template-columns: auto auto 1fr auto; }
}
.mini-foto {
  width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); padding: 0; flex: none;
  background: var(--rose-soft); display: grid; place-items: center; cursor: pointer; position: relative;
}
.mini-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.mini-foto.vazia { border-style: dashed; border-color: var(--rose); font-size: 18px; }
.mini-foto::after {
  content: '📷'; position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; font-size: 16px;
  background: rgba(59, 48, 39, .45); opacity: 0; transition: opacity .15s;
}
.mini-foto:hover::after { opacity: 1; }
.mini-foto.vazia::after { display: none; }
.mini-foto.enviando { opacity: .5; pointer-events: none; }
.foto-campo { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.foto-prev {
  width: 96px; height: 120px; border-radius: 12px; overflow: hidden; flex: none; background: var(--rose-soft);
  display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--muted); border: 1px dashed var(--rose);
}
.foto-prev img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.foto-acoes { display: flex; flex-direction: column; gap: 6px; }
.service .corpo > .rank, .service .corpo > .promo { align-self: flex-start; }
.carrossel .slide .rank { position: absolute; }
.carrossel .slide:not(.com-foto) .rank { position: absolute; }
.carrossel .slide { position: relative; }
.service .foto-vazia { display: grid; place-items: center; background: linear-gradient(160deg, #eadfcd, #f2e9dc 50%, #f6ecdc); }
.service .foto-vazia span { font-size: 54px; opacity: .55; }

/* ---------- Texto abaixo de Mais pedidos + pesquisa ---------- */
.ds-texto { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e3cfa8; margin-bottom: 0; }
.field textarea { resize: vertical; min-height: 70px; line-height: 1.45; }
.mp-texto {
  grid-column: 1 / -1; margin: 2px 0 6px; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.55;
  background: #fbf6ec; border-left: 3px solid #d4b07a; color: var(--ink); white-space: pre-line;
}
.busca { position: relative; margin: 0 0 18px; }
.busca input {
  width: 100%; padding: 14px 44px 14px 46px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.busca input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); background: #fff; }
.busca .lupa { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font-size: 17px; opacity: .55; pointer-events: none; }
.busca .limpar {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--rose-soft); color: var(--rose-dark); font-size: 16px; line-height: 1;
}
.busca-info { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin-bottom: -4px; }
.service mark { background: #ffe6a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.service .desc { white-space: pre-line; }
.busca input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* ---------- Mensagem de confirmação ---------- */
.booking .who .tel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-confirmar {
  border: none; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  background: #25d366; color: #fff; box-shadow: 0 2px 8px rgba(37, 211, 102, .3); white-space: nowrap;
}
.btn-confirmar:hover { background: #1ebe5b; }
.btn-confirmar.enviada { background: #e3efe6; color: #3f6b4c; box-shadow: none; }
.btn-confirmar:disabled { opacity: .6; cursor: wait; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: subir .25s ease-out;
}
.chips-var { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chips-var button { border: 1px dashed var(--rose); background: var(--rose-soft); color: var(--rose-dark); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.cf-previa {
  background: #e7f8dc; border-radius: 12px 12px 12px 2px; padding: 12px 14px; font-size: 14px; line-height: 1.5;
  white-space: pre-line; max-width: 420px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); margin-bottom: 8px;
}
.ds-acoes { display: flex; align-items: center; gap: 8px; }
@media (max-width: 600px) { .ds-acoes .btn.small { padding: 7px 10px; font-size: 12px; } }

/* ---------- Manutenção e opções (painel) ---------- */
.extra-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 10px 0; background: var(--bg); }
.extra-box .check { margin: 2px 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid3 > * { min-width: 0; }
.grid3 .field { margin-bottom: 4px; }
@media (max-width: 500px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.var-cab, .var-linha { display: grid; grid-template-columns: 1fr 90px 90px 30px; gap: 6px; align-items: center; }
.var-cab { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 4px 0; }
.var-linha { margin-bottom: 6px; }
.var-linha input { padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; min-width: 0; font-size: 14px; }

/* ---------- Escolha colocação/manutenção/opções (site) ---------- */
.escolha-dlg { position: relative; }
.escolha-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 20px; color: var(--muted); line-height: 1; }
.esc-cab { margin-bottom: 14px; padding-right: 36px; }
.esc-tag { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--rose-dark); margin-bottom: 4px; }
.esc-cab h2 { font-size: 28px; margin: 0; }
.esc-opcoes { display: grid; gap: 10px; margin: 6px 0 14px; }
.esc-op {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; text-align: left;
  border: 1.5px solid var(--line); background: var(--bg); border-radius: 14px; padding: 14px 16px; transition: .15s; color: var(--ink);
}
.esc-op:hover { border-color: var(--rose); background: var(--rose-soft); }
.esc-op b { font-size: 17px; }
.esc-op span { grid-column: 1; font-size: 13px; color: var(--muted); }
.esc-op em { grid-column: 2; grid-row: 1 / 3; font-style: normal; font-weight: 700; color: var(--rose-dark); font-size: 17px; }
.regra-manut { background: #fbf2de; color: #6d5418; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.regra-manut.forte { background: #f3e4dc; color: #8a3d37; }
.regra-manut.ok { background: #e3efe6; color: #2f5a3b; }
.manut-linha { font-size: 12px; color: var(--rose-dark); margin-top: 6px; background: var(--rose-soft); border-radius: 8px; padding: 5px 8px; }
.manut-linha small { color: var(--muted); }
.opc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.opc-chips span { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--muted); background: #fff; }
.service .price small { font-weight: 400; color: var(--muted); font-size: 11px; }
.day.fora-prazo { color: #d8cfc2; text-decoration: line-through; }
.manut-info { font-size: 12px; margin-top: 4px; color: var(--ok); }
.manut-info.alerta { color: #8d6a1f; background: #fbf2de; border-radius: 6px; padding: 3px 8px; display: inline-block; }
.extra-box .check { display: block; line-height: 1.5; }
.extra-box .check input { vertical-align: -3px; margin-right: 6px; }

/* ---------- Enquadramento das fotos (posição + zoom definidos no painel) ---------- */
img.enq {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: var(--x, 50%) var(--y, 35%);
  transform: scale(var(--z, 1)); transform-origin: var(--x, 50%) var(--y, 35%);
}
.service .foto img.enq { transition: transform .4s; }
.service:hover .foto img.enq { transform: scale(calc(var(--z, 1) * 1.04)); }
.foto-prev { cursor: pointer; }

.ajuste-dlg { width: min(620px, calc(100vw - 24px)); }
.ajuste-dlg h2 { font-size: 26px; }
.ajuste-previas { display: flex; gap: 18px; justify-content: center; align-items: flex-start; flex-wrap: wrap; margin: 8px 0 14px; }
.ajuste-previas figure { margin: 0; text-align: center; }
.ajuste-previas figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.ajuste-quadro {
  overflow: hidden; border-radius: 14px; background: var(--rose-soft); cursor: grab; touch-action: none; user-select: none;
  box-shadow: 0 0 0 2px var(--rose), 0 8px 22px rgba(60, 45, 30, .15); position: relative;
}
.ajuste-quadro.arrastando { cursor: grabbing; }
.ajuste-quadro img { pointer-events: none; -webkit-user-drag: none; }
.ajuste-quadro::after { content: '✥'; position: absolute; right: 8px; bottom: 6px; color: #fff; font-size: 18px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); pointer-events: none; }
.q-carrossel { width: 200px; aspect-ratio: 4 / 5; }
.q-lista { width: 240px; aspect-ratio: 4 / 3; }
@media (max-width: 520px) { .q-carrossel { width: 150px; } .q-lista { width: 180px; } }
.ajuste-zoom { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 0 auto 6px; font-size: 14px; }
.ajuste-zoom input { flex: 1; accent-color: var(--rose); height: 28px; }
.service .foto img.enq, .mini-foto img.enq, .foto-prev img.enq, .ajuste-quadro img.enq {
  object-position: var(--x, 50%) var(--y, 35%); transform-origin: var(--x, 50%) var(--y, 35%);
}
.service .foto img.enq, .mini-foto img.enq, .foto-prev img.enq, .ajuste-quadro img.enq { transform: scale(var(--z, 1)); }
.service:hover .foto img.enq { transform: scale(calc(var(--z, 1) * 1.04)); }

/* ---------- Marca: logo no topo + marca d'água ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { position: relative; z-index: 1; padding-top: max(32px, calc(env(safe-area-inset-top) + 20px)); }
.hero-logo {
  display: block; width: min(300px, 70vw); height: auto; margin: 0 auto 10px;
  filter: drop-shadow(0 4px 14px rgba(150, 110, 20, .18));
  animation: logoEntra .7s ease-out both;
}
@keyframes logoEntra { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.hero .tag { margin-top: 4px; }
/* marca d'água: monograma grande, bem suave, fixo atrás de tudo */
.marca-dagua {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none;
  background: url('/marca/logo-monograma.png') no-repeat center 55% / min(70vw, 520px) auto;
  opacity: .07;
}
body.site > header, body.site > main, body.site > footer { position: relative; z-index: 1; }
/* cartões levemente translúcidos para a marca d'água aparecer por trás */
body.site .card { background: rgba(255, 255, 255, .84); backdrop-filter: blur(2px); }
body.site .service { background: rgba(250, 246, 242, .9); }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
.hero .hero-logo + .sr-only + .tag { margin-top: 14px; display: block; }
@keyframes logoEntra2 { from { transform: translateY(-6px); } } .hero-logo { animation: logoEntra2 .6s ease-out; opacity: 1; }
/* topo: logo → Studio Sabrina Edde → Cílios & Sobrancelhas → frase */
.hero .hero-logo + .tag { margin-top: 14px; display: block; }
.hero h1#studioName { margin: 4px 0 8px; }
.hero .hero-destaque { display: block; color: var(--rose-dark); font-weight: 500; margin-bottom: 2px; }

/* ---------- Galeria de fotos do procedimento (painel) ---------- */
.galeria-campo { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 16px; background: var(--bg); }
.galeria-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.galeria-lista { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gal-item { flex: none; width: 104px; }
.gal-img {
  position: relative; display: block; width: 104px; height: 130px; border-radius: 10px; overflow: hidden; padding: 0;
  border: 1px solid var(--line); background: var(--rose-soft); cursor: pointer;
}
.gal-capa { position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 700; color: #fff; background: var(--rose); border-radius: 999px; padding: 2px 7px; }
.gal-acoes { display: flex; justify-content: space-between; margin-top: 4px; }
.gal-acoes button { border: none; background: none; font-size: 13px; padding: 4px; cursor: pointer; color: var(--ink); border-radius: 6px; }
.gal-acoes button:hover:not(:disabled) { background: var(--rose-soft); }
.gal-acoes button:disabled { opacity: .25; cursor: default; }
.galeria-vazia {
  width: 100%; padding: 22px; border: 1.5px dashed var(--rose); border-radius: 10px; background: #fff;
  color: var(--muted); font-size: 13px; line-height: 1.5; cursor: pointer;
}
.mini-qtd {
  position: absolute; right: 3px; bottom: 3px; z-index: 2; min-width: 18px; height: 18px; border-radius: 999px;
  background: rgba(59, 48, 39, .8); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px;
}

/* ---------- Fotos passando dentro do card (site) ---------- */
.service .foto.galeria { position: relative; }
.service .foto.galeria img.enq {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0;
  transition: opacity .9s ease, transform 4s ease-out;
}
.service .foto.galeria img.enq.ativa { opacity: 1; transform: scale(calc(var(--z, 1) * 1.05)); } /* leve aproximação enquanto aparece */
.gal-pontos { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; z-index: 2; pointer-events: none; }
.gal-pontos i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.gal-pontos i.on { width: 16px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .service .foto.galeria img.enq { transition: none; } }
.gal-tempo { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; flex-wrap: wrap; }
.gal-tempo label { color: var(--ink); font-weight: 500; }
.gal-tempo input { flex: 1; min-width: 140px; accent-color: var(--rose); }
.gal-tempo output { min-width: 44px; text-align: right; font-weight: 600; color: var(--rose-dark); font-variant-numeric: tabular-nums; }

/* =====================================================================
   VISUAL "CLEAN BEGE" — fundo areia, cartões off-white, botões café,
   detalhes dourados do logo. (Backup do visual anterior em backups/)
   ===================================================================== */
:root {
  --bg: #f3ece2;          /* bege areia do fundo */
  --card: #fbf8f3;        /* off-white dos cartões */
  --ink: #2e2520;         /* café: textos e botões principais */
  --muted: #776b60;
  --rose: #2e2520;        /* cor de ação (botões, selecionados) */
  --rose-dark: #8a6a3e;   /* dourado escuro para preços e detalhes */
  --rose-soft: #ece3d6;   /* bege suave para realces */
  --line: #e2d7c8;
  --gold: #b89a64;        /* dourado do logo (só decorativo) */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(46, 37, 32, .04), 0 10px 30px rgba(46, 37, 32, .05);
}
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 500; letter-spacing: .005em; }

/* topo: sem degradê, mais respiro */
.hero { background: none; padding-bottom: 28px; }
.hero-logo { width: min(250px, 62vw); filter: none; }
.hero h1#studioName { font-size: clamp(34px, 5.4vw, 48px); font-weight: 500; }
.hero p { color: var(--muted); font-size: 15px; }
.hero .hero-destaque { color: var(--rose-dark); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-style: italic; font-weight: 500; }
.marca-dagua { opacity: .05; }

/* cartões: off-white, borda fina, sombra quase invisível */
.card, body.site .card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: none; }
.card h2 { font-size: 30px; }

/* passos: discretos, só o atual em café */
.steps span { background: transparent; border-color: var(--line); color: var(--muted); }
.steps span.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps span.done { color: var(--ink); border-color: var(--ink); }

/* botões */
.btn { background: var(--ink); letter-spacing: .02em; }
.btn:hover { background: #4a3d34; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }

/* busca */
.busca input { background: #fff; border: 1px solid var(--line); }
.busca input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(46, 37, 32, .06); }

/* cards de procedimento */
.service, body.site .service { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.service:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(46, 37, 32, .07); }
.service .price { color: var(--ink); }
.service .promo { background: var(--gold); }
.manut-linha { background: var(--bg); color: var(--ink); }
.svc-cat { color: var(--ink); font-size: 24px; }
.svc-cat.svc-top { color: var(--rose-dark); }
.service.top { background: #fff; border: 1px solid #dccaa6; }
.service .rank { background: rgba(46, 37, 32, .82); color: #f1e2c2; backdrop-filter: blur(4px); font-weight: 600; letter-spacing: .02em; }
.carrossel-pontos button { background: #d9ccb9; }
.carrossel-pontos button.on { background: var(--ink); }
.mp-texto { background: #fff; border-left-color: var(--gold); }

/* calendário e horários */
.day.available { background: #fff; }
.day.available::after { background: var(--gold); }
.day.selected, .time.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.time { background: #fff; }
.summary { background: var(--bg); }

/* escolha colocação/manutenção */
.esc-op { background: #fff; }
.esc-op:hover { border-color: var(--ink); background: #fff; }
.esc-op em { color: var(--ink); }

/* botão instalar: café com detalhe dourado (destaca no fundo bege) */
.pwa-fab-btn { background: linear-gradient(135deg, #2e2520, #4b3a2e); box-shadow: 0 10px 28px rgba(46, 37, 32, .35); border: 1px solid rgba(184, 154, 100, .5); }
.pwa-fab-ico { background: rgba(184, 154, 100, .25); }
@keyframes pwaPulso {
  0% { box-shadow: 0 10px 28px rgba(46, 37, 32, .35), 0 0 0 0 rgba(184, 154, 100, .5); }
  70% { box-shadow: 0 10px 28px rgba(46, 37, 32, .35), 0 0 0 14px rgba(184, 154, 100, 0); }
  100% { box-shadow: 0 10px 28px rgba(46, 37, 32, .35), 0 0 0 0 rgba(184, 154, 100, 0); }
}

/* painel acompanha o mesmo estilo */
.admin-top { background: var(--card); }
.stat { background: var(--card); }
.tab.active { background: var(--ink); color: #fff; }
.destaque-card { background: var(--card); border-color: #dccaa6; }
.booking { background: var(--card); }
footer a { color: var(--ink); }

/* ---------- Categorias em carrossel + dica de arrastar ---------- */
.svc-cat { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.arraste-dica {
  font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 400; font-style: normal; color: var(--muted);
  letter-spacing: .01em; white-space: nowrap;
}
.arraste-dica b { display: inline-block; color: var(--rose-dark); animation: dicaSeta 1.6s ease-in-out infinite; }
@keyframes dicaSeta { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .arraste-dica b { animation: none; } }
@media (max-width: 420px) { .arraste-dica { font-size: 11px; white-space: normal; } }
.carrossel { margin-bottom: 8px; }
.carrossel.sem-sobra .carrossel-seta, .carrossel.sem-sobra .carrossel-pontos { display: none; }
/* cards das categorias com a mesma altura dentro do carrossel */
.carrossel-trilho { align-items: stretch; }
.carrossel .slide { display: flex; flex-direction: column; }

/* ---------- Selo "Mais pedidos" (dourado com brilho passando) ---------- */
.service .rank {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px 5px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3a2a14;
  background: linear-gradient(135deg, #fbefcf 0%, #e9cd8d 38%, #c99b4e 70%, #e8c983 100%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 4px 14px rgba(120, 85, 25, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
  backdrop-filter: none;
}
.service .rank .rank-ico {
  font-style: normal; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); font-size: 10px; color: #8a6424;
}
/* brilho que atravessa o selo de tempos em tempos */
.service .rank::after {
  content: ''; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: skewX(-20deg); animation: rankBrilho 3.2s ease-in-out infinite;
}
@keyframes rankBrilho { 0%, 60% { left: -60%; } 100% { left: 140%; } }
/* o 1º lugar ganha versão café com letras douradas e um brilho a mais */
.service .rank.rank-1 {
  color: #f6e2b0; background: linear-gradient(135deg, #2e2520 0%, #4a3a2c 55%, #2e2520 100%);
  border: 1px solid #c9a35a; box-shadow: 0 0 0 3px rgba(201, 163, 90, .25), 0 6px 18px rgba(46, 37, 32, .45);
  font-size: 11px; padding: 6px 13px 6px 8px;
}
.service .rank.rank-1 .rank-ico { background: linear-gradient(135deg, #f6e2b0, #c99b4e); color: #2e2520; width: 19px; height: 19px; font-size: 11px; }
.service .rank.rank-1::after { background: linear-gradient(100deg, transparent, rgba(246, 226, 176, .55), transparent); }
@media (prefers-reduced-motion: reduce) { .service .rank::after { animation: none; display: none; } }
.hero h1#studioName { color: #5c4b3f; } /* título um pouco mais claro que o café dos textos */

/* ---------- Rodapé (links de termos e privacidade) ---------- */
footer.rodape {
  position: relative; z-index: 1; margin-top: 24px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  background: #1f1a17; color: #8f8478; text-align: center; font-size: 13px;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
footer.rodape nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
footer.rodape a { color: #b9aea1; text-decoration: none; }
footer.rodape a:hover { color: #f1e2c2; text-decoration: underline; }
footer.rodape span { font-size: 11px; color: #6f665d; }
body.com-pwa-fab footer.rodape { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

/* ---------- Páginas de texto (termos / privacidade) ---------- */
body.doc { display: flex; flex-direction: column; min-height: 100vh; }
.doc-topo { max-width: 820px; width: 100%; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 1; }
.doc-voltar { align-self: flex-start; font-size: 14px; color: var(--ink); text-decoration: none; }
.doc-voltar:hover { text-decoration: underline; }
.doc-logo { width: 150px; height: auto; }
.doc-conteudo { max-width: 820px; width: calc(100% - 32px); margin: 8px auto 24px; padding: 32px; line-height: 1.7; font-size: 15px; position: relative; z-index: 1; flex: 1; }
.doc-conteudo h1 { font-size: 36px; margin-bottom: 4px; }
.doc-conteudo h2 { font-size: 22px; margin: 28px 0 6px; }
.doc-conteudo .doc-data { color: var(--muted); font-size: 13px; margin-top: 0; }
.doc-conteudo ul { padding-left: 20px; }
.doc-conteudo li { margin-bottom: 6px; }
.doc-conteudo a { color: var(--rose-dark); }
@media (max-width: 600px) { .doc-conteudo { padding: 20px; font-size: 14.5px; } .doc-conteudo h1 { font-size: 30px; } }

/* ---------- Localização ---------- */
.localizacao { position: relative; z-index: 1; max-width: 960px; margin: 8px auto 32px; padding: 0 16px; }
.localizacao h2 { font-size: 34px; text-align: center; margin-bottom: 18px; color: #5c4b3f; }
.loc-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.loc-info h3 { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; color: var(--rose-dark); margin-bottom: 8px; }
.loc-info p { line-height: 1.6; margin: 0 0 16px; }
.loc-info .btn { text-decoration: none; display: inline-block; padding: 11px 20px; font-size: 14px; }
.loc-mapa { border-radius: 12px; overflow: hidden; min-height: 280px; border: 1px solid var(--line); }
.loc-mapa iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }
@media (max-width: 700px) { .loc-grid { grid-template-columns: 1fr; padding: 16px; } .localizacao h2 { font-size: 28px; } }

/* ---------- Redes no rodapé ---------- */
.rodape-social { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
footer.rodape .rodape-social a { display: inline-flex; align-items: center; gap: 6px; color: #e3d3b3; font-weight: 500; }

/* Planos mensais */
.plano-linha { font-size: 12px; margin-top: 6px; background: var(--bg); color: var(--ink); border-radius: 8px; padding: 5px 8px; }
.price small { font-size: .7em; font-weight: 500; opacity: .75; margin-left: 2px; }
#agDialog select { width: 100%; }

/* Celulares mais antigos (iPhone com iOS < 15) não entendem aspect-ratio: a caixa da foto ficava com altura 0 */
@supports not (aspect-ratio: 1 / 1) {
  .service .foto { position: relative; height: 0; padding-top: 75%; }
  .carrossel .slide .foto { padding-top: 125%; }
  .service .foto > img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
}

/* iPhones antigos: caixa de foto com altura fixa (sem aspect-ratio) e texto do card sem o azul padrão de botão */
.service { color: var(--ink); -webkit-appearance: none; appearance: none; }
.service strong, .service h3 { color: var(--ink); }
.service .price, .service .meta { color: var(--ink); }
.service .foto { flex-shrink: 0; }


/* Altura da foto sem depender de aspect-ratio: o Safari do iPhone zerava a altura dos cards com galeria (fotos sobrepostas) */
.service .foto { position: relative; width: 100%; height: 0 !important; padding-top: 75%; aspect-ratio: auto !important; }
.carrossel .slide .foto { padding-top: 125%; }
.service .foto > img { position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; }
.service .foto-vazia > span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* ---------- Sinal via Pix ---------- */
.sinal-linha { border-top: 1px dashed var(--line); padding-top: 8px; }
.sinal-aviso { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.pix-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pix-valor { font-size: 18px; }
.pix-valor b { font-size: 24px; color: var(--ink); }
#pixQr { width: 220px; height: 220px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.pix-dica { font-size: 14px; color: var(--muted); margin: 0; }
.pix-copia { display: flex; gap: 8px; width: 100%; max-width: 460px; }
.pix-copia input { flex: 1; min-width: 0; font-size: 12px; }
.pix-status { font-weight: 600; color: var(--ink); background: var(--bg); border-radius: 10px; padding: 8px 14px; }
.pix-status::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold, #c9a227); margin-right: 8px; animation: pixPisca 1.2s infinite; }
.pix-status.erro { color: #9b2c2c; background: #fbeaea; }
.pix-status.erro::before { display: none; }
@keyframes pixPisca { 50% { opacity: .25; } }
.pix-tempo { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 520px) { .pix-copia { flex-direction: column; } }

/* Painel: sinal */
.badge.aguardando_pagamento { background: #e6eefb; color: #2f5590; }
.pg-tag { display: inline-block; font-size: 12px; margin-top: 6px; padding: 3px 9px; border-radius: 8px; background: #fbf2de; color: #8d6a1f; }
.pg-tag.pago { background: #e3efe6; color: #3f6b4c; }
.pg-conta { margin-bottom: 10px; font-size: 14px; }
.pg-teste { background: #fbf2de; color: #8d6a1f; border-radius: 6px; padding: 1px 6px; font-size: 12px; }
.pg-ajuda { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pg-ajuda summary { cursor: pointer; color: var(--ink); }
.pg-ajuda ol { padding-left: 18px; margin: 8px 0; }

/* ---------- Minha conta ---------- */
.conta-link { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(6px); }
.conta-link:hover { background: #fff; }
.conta .card { margin-bottom: 16px; }
.conta-abas { display: flex; gap: 8px; margin: 6px 0 16px; }
.conta-seguro { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.conta-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.conta-regra { font-size: 13.5px; background: #fbeaea; color: #9b2c2c; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.conta-item { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.conta-item:first-child { border-top: 0; }
.conta-item.cancelado { opacity: .6; }
.ci-quando b { display: block; font-size: 14px; text-transform: capitalize; }
.ci-quando span { font-size: 13px; color: var(--muted); }
.ci-oque { font-size: 14px; }
.ci-oque small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ci-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.ci-cancelar { color: #9b2c2c; font-weight: 600; }
.ci-aviso { font-size: 11.5px; color: var(--muted); max-width: 150px; }
@media (max-width: 560px) { .conta-item { grid-template-columns: 1fr; gap: 6px; } .ci-lado { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } }
/* aviso das 24h na tela do Pix: vermelho e em destaque */
.pix-24h { width: 100%; max-width: 460px; text-align: left; font-size: 14.5px; line-height: 1.45; color: #fff; background: #c53030; border-radius: 12px; padding: 12px 14px; box-shadow: 0 4px 14px rgba(197, 48, 48, .28); }
.pix-24h b { color: #fff; }

/* ---------- Popup de conta por cima do site ---------- */
body.com-popup { overflow: hidden; }
.conta-pop-fundo { position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(40, 30, 22, .38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: popFundo .25s ease-out; }
.conta-pop { width: 100%; max-width: 440px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .28); animation: popEntra .3s ease-out; }
.conta-pop iframe { display: block; width: 100%; height: 560px; max-height: 90vh; border: 0; }
@keyframes popFundo { from { opacity: 0; } }
@keyframes popEntra { from { opacity: 0; transform: translateY(12px) scale(.98); } }
/* a própria página de conta quando aberta dentro do popup */
body.popup { background: #fff !important; min-height: 0; }
body.popup .doc-topo, body.popup .rodape, body.popup .marca-dagua { display: none !important; }
body.popup .doc-conteudo { margin: 0; padding: 0; max-width: none; }
body.popup .card { border: 0; box-shadow: none; margin: 0; padding: 22px 20px 20px; }

/* popup mais compacto e, no celular, encostado embaixo para as fotos aparecerem em cima */
.conta-pop-fundo { background: rgba(40, 30, 22, .22); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.popup .card { padding: 18px 18px 16px; }
body.popup h1 { font-size: 28px; margin-bottom: 2px; }
body.popup .conta-abas { margin: 4px 0 10px; }
body.popup .field { margin-bottom: 10px; }
body.popup .conta-seguro { font-size: 11.5px; }
@media (max-width: 560px) {
  .conta-pop-fundo { align-items: flex-end; padding: 0; }
  .conta-pop { max-width: none; border-radius: 20px 20px 0 0; animation: popSobe .3s ease-out; }
  .conta-pop iframe { max-height: 72vh; }
}
@keyframes popSobe { from { transform: translateY(40px); opacity: 0; } }
