/* Identidade visual Mahalo Massoterapia */
:root {
  color-scheme: light;
  --bg: #ECE9E5;          /* fundo creme da logo */
  --card: #FAF8F5;
  --text: #3E3326;        /* marrom escuro para leitura */
  --muted: #72614B;
  --line: #E0D8CC;
  --gold: #F8BD62;        /* dourado do sol */
  --gold-soft: #FCEBCD;
  --brown: #A27C42;       /* marrom do "MASSOTERAPIA" */
  --brand: #8A6530;       /* marrom do botão (contraste com branco) */
  --brand-ink: #FFFFFF;
  --danger: #A8402F;
  --warn: #8F5E00;
  --radius: 18px;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 720px; margin: 0 auto; padding: 36px 16px 56px; }
.wrap.wide { max-width: 1100px; }

/* Cabeçalho com a logo */
.brand-header { text-align: center; margin-bottom: 28px; }
.brand-header img.logo { width: min(300px, 78vw); height: auto; display: block; margin: 0 auto; }
.brand-header p.sub { margin: 18px auto 0; max-width: 440px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
header.top img.logo { width: 170px; height: auto; display: block; }

h1 { font-size: 1.4rem; font-weight: 500; margin: 0; }
h2 { font-size: .82rem; font-weight: 600; margin: 0 0 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); display: flex; align-items: center; }
p.sub { margin: 4px 0 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: 0 1px 2px rgb(62 51 38 / .04); }
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--text); font-size: .78rem; font-weight: 700; letter-spacing: 0; margin-right: 10px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.opt { text-align: left; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 12px; padding: 13px 15px; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--gold); }
.opt.sel { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.opt strong { display: block; font-weight: 600; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 12px; }
.slots .opt { text-align: center; padding: 9px; font-weight: 500; }

label { display: block; font-size: .85rem; font-weight: 600; margin: 14px 0 5px; }
input, textarea, select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); font: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.btn { display: inline-block; border: 0; border-radius: 999px; padding: 12px 24px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; letter-spacing: .02em; cursor: pointer; text-decoration: none; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); filter: none; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: .8rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

.alert { padding: 12px 14px; border-radius: 12px; margin-top: 12px; }
.alert.err { background: #F6E1DC; color: var(--danger); }
.alert.ok { background: var(--gold-soft); color: var(--text); }

.done { text-align: center; padding: 36px 22px; }
.done h2 { justify-content: center; }
.done img.sol { width: 72px; height: 72px; display: block; margin: 0 auto 14px; }

footer.brand-footer { text-align: center; margin-top: 36px; color: var(--muted); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; }
footer.brand-footer img { width: 34px; height: 34px; display: block; margin: 0 auto 8px; opacity: .9; }

/* Painel */
nav.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
nav.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; color: var(--muted); cursor: pointer; white-space: nowrap; }
nav.tabs button.sel { color: var(--text); border-color: var(--gold); font-weight: 600; }
.toolbar { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar > div { min-width: 140px; }
.toolbar label { margin-top: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--brown); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
td a { color: var(--brand); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--line); }
.badge.confirmado { background: var(--gold-soft); color: var(--brand); }
.badge.cancelado { color: var(--danger); }
.badge.warn { color: var(--warn); }
.pill-status { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 6px; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); width: min(480px, calc(100vw - 32px)); padding: 22px; }
dialog::backdrop { background: rgb(62 51 38 / .35); }

/* ===== Site do cliente (telas) ===== */
.view { animation: aparecer .25s ease; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.brand-header.compacto { margin-bottom: 20px; }
.brand-header.compacto img.logo { width: min(190px, 52vw); }
.brand-header a { display: inline-block; }
.saudacao { text-align: center; color: var(--muted); margin: -10px 0 22px; font-size: .92rem; }
.saudacao button { background: none; border: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; padding: 0 2px; }
.titulo-tela { justify-content: center; text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); margin: 0 0 18px; }
.voltar { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; padding: 6px 0; margin-bottom: 10px; }
.voltar:hover { color: var(--text); }

/* Início: duas opções */
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .home-actions { grid-template-columns: 1fr; } }
.action-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.action-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgb(62 51 38 / .08); border-color: var(--gold); }
.action-card .icone { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--brand); }
.action-card.destaque { background: var(--brand); border-color: var(--brand); color: #fff; }
.action-card.destaque .icone { background: rgb(255 255 255 / .16); color: #fff; }
.action-card.destaque .desc { color: rgb(255 255 255 / .85); }
.action-card strong { font-size: 1.12rem; font-weight: 600; }
.action-card .desc { font-size: .88rem; color: var(--muted); }

/* Lista de serviços */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.service-card { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px 18px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgb(62 51 38 / .09); border-color: var(--gold); }
.service-card::after { content: ""; position: absolute; right: -38px; top: -38px; width: 120px; height: 120px; background: url(/img/sol.svg) center / contain no-repeat; opacity: .22; pointer-events: none; }
.service-card h3 { margin: 0 0 6px; font-size: 1.06rem; font-weight: 600; line-height: 1.3; padding-right: 46px; }
.service-card .desc { color: var(--muted); font-size: .87rem; margin: 0 0 10px; }
.service-card .meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; margin-top: auto; padding-top: 8px; }
.service-card .preco { font-size: 1.5rem; font-weight: 600; color: var(--brand); margin: 6px 0 14px; letter-spacing: -.01em; }
.service-card .preco small { font-size: .8rem; font-weight: 500; color: var(--muted); margin-right: 2px; }
.service-card .btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Resumo do serviço escolhido */
.resumo-servico { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--gold-soft); border-radius: 16px; padding: 14px 18px; margin-bottom: 14px; }
.resumo-servico strong { font-weight: 600; }
.resumo-servico span { color: var(--muted); font-size: .88rem; }

/* Semana */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.week-nav .rotulo { font-weight: 600; text-align: center; flex: 1; }
.week-nav .rotulo small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.week-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.week-nav button:hover:not(:disabled) { border-color: var(--gold); }
.week-nav button:disabled { opacity: .35; cursor: default; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; }
.day-head { text-align: center; margin-bottom: 10px; }
.day-head .sem { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); font-weight: 600; }
.day-head .data { font-size: 1.05rem; font-weight: 600; }
.day.hoje .day-head .data::after { content: " · hoje"; font-size: .72rem; color: var(--muted); font-weight: 500; }
.day .chips { display: flex; flex-direction: column; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 8px 6px; font: inherit; font-weight: 500; font-size: .92rem; cursor: pointer; transition: background .12s, border-color .12s; }
.chip:hover { border-color: var(--gold); background: var(--gold-soft); }
.day .vazio { text-align: center; color: var(--muted); font-size: .8rem; padding: 8px 0; }
@media (max-width: 560px) {
  .days { grid-template-columns: 1fr; }
  .day { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
  .day-head { margin: 4px 0 0; }
  .day .chips { flex-direction: row; flex-wrap: wrap; }
  .chip { padding: 8px 14px; }
  .day.hoje .day-head .data::after { content: ""; }
}
.carregando { text-align: center; color: var(--muted); padding: 30px 0; }

/* Identificação */
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.segmented button { border: 0; background: transparent; border-radius: 999px; padding: 10px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; }
.segmented button.sel { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgb(62 51 38 / .12); }
.codigo-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 600; padding: 12px; }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; padding: 0; }
.link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.btn.full { width: 100%; }

/* Confirmação e reservas */
.detalhes { display: grid; gap: 10px; margin: 4px 0 6px; }
.detalhes div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.detalhes dt, .detalhes span:first-child { color: var(--muted); }
.detalhes strong { text-align: right; font-weight: 600; }
.reserva { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.date-badge { flex: none; width: 56px; text-align: center; border-radius: 12px; background: var(--gold-soft); padding: 6px 0; line-height: 1.1; }
.date-badge b { display: block; font-size: 1.3rem; font-weight: 600; color: var(--brand); }
.date-badge small { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brown); font-weight: 600; }
.reserva .info { flex: 1; min-width: 0; }
.reserva .info strong { display: block; font-weight: 600; }
.reserva .info span { color: var(--muted); font-size: .85rem; }
.reserva.passada { opacity: .65; }
.reserva.passada .date-badge { background: var(--line); }

/* Pagamento */
.prazo { text-align: center; background: var(--gold-soft); border-radius: 12px; padding: 10px; margin-bottom: 14px; font-size: .92rem; }
.pix-box { text-align: center; margin-top: 16px; }
.pix-box img { display: block; margin: 0 auto 10px; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.copia { display: flex; gap: 8px; margin: 10px 0; }
.copia input { font-size: .78rem; font-family: ui-monospace, monospace; }
.arquivo { display: block; border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer; background: #fff; font-weight: 500; margin: 0; }
.arquivo:hover { border-color: var(--gold); }
.arquivo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.acoes-reserva { display: flex; flex-direction: column; gap: 6px; }

/* ===== Cartão fidelidade (inspirado no cartão impresso) ===== */
.fid-wrap { margin: 0 0 22px; }
.fid-card { position: relative; display: grid; grid-template-columns: 40% 60%; aspect-ratio: 1.85; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 28px rgb(62 51 38 / .14); border: 1px solid #F1E3C8; }
.fid-esq { position: relative; background: linear-gradient(150deg, #F7C066 0%, #EFAE4C 100%); border-radius: 0 50% 50% 0 / 0 62% 62% 0; margin-right: -14%; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 9% 10%; overflow: hidden; }
.fid-esq .sol-grande { position: absolute; width: 74%; left: 6%; top: 9%; opacity: .95; }
.fid-esq .marca { width: 62%; position: relative; }
.fid-esq .fid-titulo { font-family: "Gloock", Georgia, serif; color: #fff; font-size: clamp(.8rem, 3.4vw, 1.15rem); line-height: 1; margin-top: 2px; position: relative; }
.fid-dir { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr auto; align-items: center; justify-items: center; padding: 6% 5% 3% 18%; gap: 2px 4px; }
.selo { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.selo b { font-family: "Gloock", Georgia, serif; font-weight: 400; color: var(--brown); font-size: clamp(.68rem, 2.6vw, .95rem); }
.selo img { width: clamp(34px, 11vw, 56px); height: auto; opacity: .28; filter: saturate(.6); transition: opacity .3s; }
.selo.feito img { opacity: 1; filter: none; }
.selo.feito::after { content: "✓"; position: absolute; right: -2px; bottom: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .68rem; display: grid; place-items: center; font-weight: 700; }
.selo.proximo img { opacity: .6; animation: pulsar 1.8s ease-in-out infinite; }
@keyframes pulsar { 50% { transform: scale(1.08); opacity: .9; } }
.fid-nota { grid-column: 1 / -1; font-family: "Gloock", Georgia, serif; font-style: italic; font-size: clamp(.5rem, 1.9vw, .66rem); color: var(--brown); text-align: right; justify-self: end; }
.fid-status { text-align: center; font-size: .9rem; margin: 12px 4px 0; color: var(--text); }
.fid-status strong { color: var(--brand); }
.desconto-tag { display: inline-block; background: var(--gold); color: var(--text); border-radius: 999px; padding: 1px 8px; font-size: .74rem; font-weight: 700; margin-left: 6px; }
.riscado { text-decoration: line-through; color: var(--muted); font-weight: 500; margin-right: 6px; }

/* Instruções para a massagem (após confirmar) */
.instrucoes { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px 20px; margin-top: 16px; box-shadow: 0 10px 26px rgb(62 51 38 / .07); }
.instrucoes::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, #F7C066, #EFAE4C); }
.instrucoes header { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; text-align: center; }
.instrucoes header img { width: 46px; height: 46px; }
.instrucoes header span { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); }
.instrucoes-texto { color: var(--text); font-size: .95rem; line-height: 1.65; }
.instrucoes-texto h3 { font-size: .95rem; font-weight: 700; color: var(--brand); margin: 18px 0 6px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.instrucoes-texto p { margin: 0 0 10px; }
.instrucoes-texto ul { list-style: none; padding: 0; margin: 4px 0 12px; }
.instrucoes-texto li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.instrucoes-texto li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; background: url(/img/sol.svg) center / contain no-repeat; }
.instrucoes-texto strong { color: var(--brand); }
.instrucoes-rodape { text-align: center; font-size: .78rem; color: var(--muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* Painel no celular: cada linha da tabela vira um cartão */
.acoes-cel { white-space: nowrap; }
.acoes-cel .btn { margin: 2px 0; }
@media (max-width: 760px) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgb(62 51 38 / .05); }
  .table-wrap td { border: 0; padding: 6px 0; display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
  .table-wrap td > * { grid-column: 2; }
  .table-wrap td > .btn { justify-self: start; margin-top: 4px; }
  .table-wrap td::before { grid-column: 1; grid-row: 1; content: attr(data-label); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); padding-top: 3px; }
  .table-wrap td[data-label=""]::before, .table-wrap td[colspan]::before { display: none; }
  .table-wrap td[data-label=""], .table-wrap td[colspan] { grid-template-columns: 1fr; }
  .table-wrap td:first-child { font-size: 1.02rem; border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 4px; }
  .acoes-cel > * { grid-column: auto; }
  .acoes-cel { white-space: normal; display: flex !important; flex-wrap: wrap; gap: 6px; padding-top: 10px !important; border-top: 1px dashed var(--line) !important; margin-top: 4px; }
  .acoes-cel .btn { flex: 1 1 auto; text-align: center; padding: 9px 12px; font-size: .84rem; }
  .toolbar > div { flex: 1 1 140px; }
  header.top img.logo { width: 140px; }
}
.instrucoes-texto h2 { font-size: .86rem; font-weight: 700; letter-spacing: .14em; color: var(--brown); text-align: center; margin: 26px 0 12px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.instrucoes-texto h2:first-child { margin-top: 0; }
.instrucoes-texto em { color: var(--muted); }

/* Painel: horários de atendimento */
.expediente { display: grid; gap: 8px; }
.dia-linha { display: grid; grid-template-columns: 130px 110px auto 110px 1fr; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.dia-linha .dia-nome { margin: 0; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.dia-linha .dia-nome input { width: auto; }
.dia-linha input[type=time] { padding: 7px 8px; }
.dia-linha .fechado-txt { display: none; }
.dia-linha.fechado { background: var(--bg); }
.dia-linha.fechado input[type=time], .dia-linha.fechado .ate { display: none; }
.dia-linha.fechado .fechado-txt { display: inline; }
.excecao { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.excecao.fechada { border-left-color: var(--danger); }
.excecao span { flex: 1 1 200px; }
.nova-excecao { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; background: var(--bg); border-radius: 14px; padding: 12px; margin-top: 10px; }
.nova-excecao > div { flex: 1 1 130px; }
.nova-excecao label { margin-top: 0; }
@media (max-width: 560px) {
  .dia-linha { grid-template-columns: 1fr 1fr; }
  .dia-linha .dia-nome { grid-column: 1 / -1; }
  .dia-linha .ate { display: none; }
}
.nova-excecao > div:nth-child(2) { flex: 1 1 210px; }

/* Escolha da forma de pagamento */
.formas-pagamento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.forma { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 14px; padding: 14px 10px; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.forma:hover { border-color: var(--gold); }
.forma.sel { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.forma .forma-icone { font-size: 1.3rem; color: var(--brand); line-height: 1.2; }
.forma .small { color: var(--muted); font-size: .78rem; }

/* Painel: cartela fidelidade do cliente */
.cartela-mini .sois { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.sol-mini { width: 18px; height: 18px; background: url(/img/sol.svg) center / contain no-repeat; opacity: .25; filter: saturate(.5); }
.sol-mini.on { opacity: 1; filter: none; }
.cartela-acoes { display: flex; gap: 6px; margin-top: 6px; }
.cartela-campos { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 16px 0 0; }
.cartela-campos legend { font-weight: 600; font-size: .85rem; color: var(--brown); padding: 0 6px; }

/* Turnos por dia */
.dia-linha { grid-template-columns: 130px 1fr auto; }
.dia-linha .turnos { display: grid; gap: 6px; }
.dia-linha .turno { display: flex; align-items: center; gap: 8px; }
.dia-linha .turno input[type=time] { width: 110px; }
.remover-turno { border: 0; background: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 0 6px; }
.remover-turno:hover { color: var(--danger); }
.dia-linha .add-turno { white-space: nowrap; }
.dia-linha.fechado .turnos, .dia-linha.fechado .add-turno { display: none; }
@media (max-width: 560px) {
  .dia-linha { grid-template-columns: 1fr auto; }
  .dia-linha .turnos { grid-column: 1 / -1; grid-row: 2; }
  .dia-linha .add-turno { grid-column: 2; grid-row: 1; justify-self: end; }
  .dia-linha .ate { display: inline; }
}

/* Painel: semana com atendimentos e bloqueios */
.semana-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.semana-topo strong { font-size: 1.1rem; min-width: 120px; text-align: center; }
.semana-topo #novo-bloqueio { margin-left: auto; }
.nav-semana { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--text); }
.sem-dias { display: grid; gap: 0; }
.dia-sem { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.dia-sem.fechado { opacity: .75; }
.dia-sem-rotulo { display: flex; flex-direction: column; align-items: flex-start; padding-top: 4px; }
.dia-sem-rotulo span { font-weight: 600; font-size: 1.05rem; text-transform: capitalize; }
.dia-sem-rotulo small { color: var(--muted); }
.dia-sem-rotulo em { font-style: normal; font-size: .7rem; background: var(--muted); color: #fff; border-radius: 4px; padding: 0 5px; margin-top: 2px; }
.dia-sem.hoje .dia-sem-rotulo span, .dia-sem.hoje .dia-sem-rotulo small { color: var(--brand); }
.dia-sem-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; align-content: start; }
.exp-dia { grid-column: 1 / -1; }
.vazio-sem { grid-column: 1 / -1; }
.item-sem { display: flex; flex-direction: column; text-align: left; gap: 1px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 8px 10px; font: inherit; color: var(--text); box-shadow: 0 1px 2px rgb(62 51 38 / .05); }
.item-sem .hora { font-size: .82rem; color: var(--muted); }
.item-sem strong { font-weight: 600; }
.item-sem .sub { font-size: .85rem; color: var(--muted); }
.item-sem .tag { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--brown); margin-top: 2px; }
.item-sem.bloqueio { border-left-color: #8c8c8c; background: #f4f2ef; cursor: pointer; }
.item-sem.bloqueio:hover { border-color: var(--gold); border-left-color: #8c8c8c; }
.item-sem.bloqueio .tag { color: #6b6b6b; }
.item-sem.st-aguardando_pagamento { border-left-color: var(--warn); }
.item-sem.st-falta, .item-sem.st-cancelado { border-left-color: var(--danger); opacity: .8; }
@media (max-width: 560px) {
  .semana-topo #novo-bloqueio { margin-left: 0; width: 100%; }
  .dia-sem-itens { grid-template-columns: 1fr; }
}
/* Diálogos de bloqueio */
.dlg-acoes .lista-acoes { display: grid; gap: 8px; }
.dlg-acoes .lista-acoes .btn { text-align: left; }
.interruptor { display: flex; justify-content: space-between; align-items: center; font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--line); }
.interruptor input { width: auto; transform: scale(1.3); }
.data-hora { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.data-hora input.hidden { display: none; }
.sugestoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.chip-sug { border: 1px solid var(--gold); background: #fff; color: var(--brand); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.chip-sug:hover { background: var(--gold-soft); }
.repete { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) {
  .dia-linha .dia-nome { grid-column: 1; grid-row: 1; }
  .dia-linha .fechado-txt { grid-column: 1 / -1; grid-row: 2; }
}

/* Editar horário */
.rem-horarios { display: flex; flex-wrap: wrap; gap: 6px; }
.rem-horarios .chip { padding: 6px 12px; }
.rem-horarios .chip.sel { background: var(--gold-soft); border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.item-sem.agendamento { cursor: pointer; }
.item-sem.agendamento:hover { border-color: var(--gold); }

/* Sem conseguir anexar o comprovante */
.sem-anexo { display: grid; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; }
.sem-anexo p { margin: 0; }
.sem-anexo .btn { box-sizing: border-box; text-align: center; }
#btn-whatsapp-comprovante.hidden { display: none; }

/* =====================================================================
   Site institucional (página inicial) — visual profissional
   ===================================================================== */
:root {
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --creme-claro: #F7F3EE;
  --marrom-escuro: #3E3326;
  --marrom-medio: #6E5434;
}
body { background: var(--creme-claro); }
body[data-tela="inicio"] main.wrap { display: none; }
main.wrap { padding-top: 104px; }
.brand-footer { display: none; }

/* Topo fixo */
.topo { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgb(247 243 238 / .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .2s, background .2s; }
.topo.rolou { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgb(62 51 38 / .06); background: rgb(247 243 238 / .95); }
.topo-in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.topo-logo img { width: 128px; height: auto; display: block; }
.topo-nav { display: flex; gap: 4px; margin-left: auto; }
.topo-nav button { background: none; border: 0; font: inherit; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--marrom-medio); padding: 10px 12px; cursor: pointer; border-radius: 999px; }
.topo-nav button:hover { color: var(--text); background: rgb(248 189 98 / .14); }
.topo-cta { padding: 10px 22px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 820px) {
  .topo-nav { display: none; }
  .topo-cta { margin-left: auto; }
  .topo-logo img { width: 108px; }
}

/* Estrutura das seções */
.home { color: var(--text); }
.home h1, .home h2 { font-family: var(--serif); font-weight: 500; color: var(--marrom-escuro); letter-spacing: -.01em; text-transform: none; display: block; margin: 0; }
.home h1 em, .home h2 em { font-style: italic; color: var(--brown); }
.sobretitulo { display: inline-flex; align-items: center; gap: 12px; font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--brown); margin: 0 0 18px; }
.sobretitulo::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.bloco { max-width: 1120px; margin: 0 auto; padding: 96px 20px; }
.bloco-cabeca { max-width: 620px; margin-bottom: 44px; }
.bloco-cabeca h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.08; margin-bottom: 14px; }
.bloco-cabeca p { color: var(--muted); font-size: 1rem; margin: 0; }
.btn-grande { padding: 15px 30px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.btn.ghost.btn-grande { border-color: var(--brown); color: var(--marrom-escuro); }

/* Abertura */
.hero { max-width: 1120px; margin: 0 auto; padding: 150px 20px 90px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 -50vw; z-index: -1; background: radial-gradient(60% 70% at 78% 45%, rgb(248 189 98 / .22), transparent 70%), linear-gradient(180deg, var(--creme-claro), var(--bg)); }
.hero h1 { font-size: clamp(2.9rem, 7vw, 5rem); line-height: 1; margin-bottom: 22px; }
.hero-lead { font-size: 1.08rem; line-height: 1.7; color: var(--muted); max-width: 470px; margin: 0 0 30px; }
.hero-acoes { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .saudacao { text-align: left; margin: -12px 0 22px; }
.hero-foto { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: center; width: 100%; }
.hero-foto .raios { position: absolute; inset: -9%; width: 118%; height: 118%; opacity: .55; animation: girar 120s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.moldura { position: absolute; inset: 13%; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #f3e3c6, #e9d6b6); box-shadow: 0 30px 60px rgb(62 51 38 / .18), 0 0 0 8px rgb(255 255 255 / .55); }
.moldura #foto-leticia { width: 100%; height: 100%; object-fit: cover; display: block; }
.moldura .foto-reserva { display: none; }
.moldura.sem-foto { display: grid; place-items: center; }
.moldura.sem-foto .foto-reserva { display: block; width: 46%; opacity: .7; }
.selo-hero { position: absolute; left: -2%; bottom: 8%; background: var(--marrom-escuro); color: #fff; border-radius: 18px; padding: 14px 18px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; box-shadow: 0 14px 30px rgb(62 51 38 / .25); }
.selo-hero span { font-family: "Montserrat", sans-serif; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .hero-foto .raios { animation: none !important; } }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 112px; text-align: left; gap: 36px; }
  .hero-foto { max-width: 340px; order: -1; }
  .bloco { padding: 72px 20px; }
}

/* Sobre */
.sobre { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.sobre h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.08; margin-bottom: 20px; }
.sobre p { font-size: 1.04rem; line-height: 1.8; color: var(--muted); max-width: 620px; }
.sobre-sol { aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgb(62 51 38 / .08); }
.sobre-sol img { width: 62%; }
@media (max-width: 820px) { .sobre { grid-template-columns: 1fr; gap: 32px; } .sobre-sol { max-width: 180px; } }

/* Massagens */
.massagens { max-width: none; background: #fff; }
.massagens > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.cartoes-massagem { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.cartao-massagem { background: #fff; padding: 30px 28px 24px; display: flex; flex-direction: column; gap: 8px; transition: background .2s; }
.cartao-massagem:hover { background: var(--creme-claro); }
.cartao-massagem .numero { font-family: var(--serif); font-size: 1rem; color: var(--gold); font-weight: 600; letter-spacing: .1em; }
.cartao-massagem h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.15; margin: 0; color: var(--marrom-escuro); }
.cartao-massagem p { color: var(--muted); font-size: .92rem; margin: 0; }
.rodape-cartao { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); }
.link-agendar { background: none; border: 0; font: inherit; color: var(--brand); cursor: pointer; padding: 6px 0; letter-spacing: .12em; }
.link-agendar:hover { color: var(--marrom-escuro); text-decoration: underline; text-underline-offset: 4px; }

/* Como funciona */
.lista-passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.lista-passos li { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.lista-passos b { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: var(--gold); line-height: 1; }
.lista-passos strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--marrom-escuro); line-height: 1.2; }
.lista-passos span { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .lista-passos { grid-template-columns: 1fr; } }

/* Fidelidade */
.fidelidade { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.fidelidade .bloco-cabeca { margin-bottom: 0; }
.fidelidade .fid-wrap { margin: 0; }
@media (max-width: 820px) { .fidelidade { grid-template-columns: 1fr; } }

/* Chamada final */
.chamada { max-width: none; background: var(--marrom-escuro); color: #f3e8d6; text-align: center; position: relative; overflow: hidden; }
.chamada h2 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 12px; }
.chamada p { color: #e6d6bd; margin: 0 0 30px; }
.chamada-sol { position: absolute; width: 520px; right: -150px; top: -170px; opacity: .08; }
.btn-claro { background: var(--gold); color: var(--marrom-escuro); }
.btn-contorno { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .5); }

/* Rodapé */
.rodape { background: #2f271d; color: #cdbfa8; }
.rodape-in { max-width: 1120px; margin: 0 auto; padding: 34px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.rodape-logo { width: 120px; height: auto; filter: brightness(1.1); }
.rodape-links { display: flex; gap: 18px; flex-wrap: wrap; }
.rodape-links button, .rodape-links a { background: none; border: 0; font: inherit; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #f3e8d6; cursor: pointer; text-decoration: none; }
.rodape-links button:hover, .rodape-links a:hover { color: var(--gold); }
.rodape .small { margin: 0; color: #a99a82; }

/* Telas do agendamento com o mesmo acabamento */
main.wrap .titulo-tela { font-family: var(--serif); font-size: 2rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--marrom-escuro); }
main.wrap .card { background: #fff; border-color: var(--line); border-radius: 22px; box-shadow: 0 10px 30px rgb(62 51 38 / .05); }
main.wrap .service-card h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
main.wrap .done h2 { font-family: var(--serif); font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--marrom-escuro); font-weight: 500; }
.home { overflow-x: clip; }
.cartoes-massagem { background: none; border: 0; border-radius: 0; overflow: visible; gap: 16px; }
.cartao-massagem { border: 1px solid var(--line); border-radius: 20px; }
.cartao-massagem:hover { border-color: var(--gold); box-shadow: 0 14px 30px rgb(62 51 38 / .07); }

/* Separação por cor: abertura creme × "Sobre" claro */
.sobre { position: relative; }
.sobre::before { content: ""; position: absolute; inset: 0 -50vw; z-index: -1; background: #EFE4D3; }
.sobre .sobre-sol { background: #FBF7F1; }

/* ===== Cartão presente (página aberta pelo QR Code) ===== */
body[data-tela=presente] main.wrap { max-width: 980px; }
.presente-topo { text-align: center; position: relative; padding: 18px 8px 26px; }
.presente-topo .sobretitulo { justify-content: center; }
.presente-topo .sobretitulo::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.presente-topo h1 { font-family: var(--serif); font-weight: 500; color: var(--marrom-escuro); font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.05; margin: 0 0 14px; text-transform: none; letter-spacing: -.01em; }
.presente-topo h1 em { color: var(--brown); }
.presente-de { color: var(--muted); font-size: 1.05rem; margin: 0; }
.presente-msg { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--brown); max-width: 560px; margin: 20px auto 0; padding: 18px 22px; background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.presente-passos { display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; margin: 4px 0 30px; font-size: .82rem; color: var(--muted); }
.presente-passos b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font-size: .72rem; margin-right: 6px; }
.presente-h2 { font-family: var(--serif); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 1.7rem; color: var(--marrom-escuro); text-align: center; margin: 0 0 18px; }
.presente-validade { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 22px; }
.presente-aviso, .presente-codigo { max-width: 480px; margin: 0 auto; text-align: center; }
.presente-codigo input { text-align: center; letter-spacing: .12em; text-transform: uppercase; font-size: 1.1rem; }

/* Cena: caixa de presente que se abre + árvores e estrela de Belém */
.cena { display: block; width: 100%; max-width: 520px; margin: 0 auto 6px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.cena svg { width: 100%; height: auto; display: block; overflow: visible; }
.cena-dica { display: block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brown); opacity: .7; margin-top: 4px; transition: opacity .4s; }
.aberto .cena-dica, .fechado .cena-dica { opacity: 0; }
.cena .tampa { transform-box: fill-box; transform-origin: 0% 100%; transition: transform 1s cubic-bezier(.3,1.4,.5,1); }
.aberto .cena .tampa { transform: translate(-34px, -46px) rotate(-24deg); }
.cena .sol-sobe { transform-box: fill-box; transform-origin: center; opacity: 0; transform: translateY(30px) scale(.6); transition: transform 1.2s .35s cubic-bezier(.2,1.2,.4,1), opacity .6s .35s; }
.aberto .cena .sol-sobe { opacity: 1; transform: translateY(-62px) scale(1); }
.aberto .cena .sol-sobe { animation: girar 40s linear 1.6s infinite; }
.cena .luz { opacity: 0; transition: opacity 1.2s .3s; }
.aberto .cena .luz { opacity: 1; }
.cena .faisca { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0); }
.aberto .cena .faisca { animation: faisca 2.6s ease-in-out .9s infinite; }
@keyframes faisca { 0%, 100% { opacity: 0; transform: scale(0); } 40% { opacity: 1; transform: scale(1); } 70% { opacity: .4; transform: scale(.6); } }
.cena .estrela { transform-box: fill-box; transform-origin: 50% 40%; animation: cintilar 4s ease-in-out infinite; }
@keyframes cintilar { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.cena .bola { animation: bola 3s ease-in-out infinite; }
@keyframes bola { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.presente-topo .revela, .revela-depois { transition: opacity .8s, transform .8s; }
.presente-topo:not(.aberto):not(.fechado) .revela { opacity: 0; transform: translateY(14px); }
.presente-topo.aberto .revela { transition-delay: .9s; }
.presente-topo:not(.aberto) ~ .revela-depois { opacity: 0; transform: translateY(14px); pointer-events: none; }
.presente-topo.aberto ~ .revela-depois { transition-delay: 1.3s; }
@media (prefers-reduced-motion: reduce) {
  .cena *, .presente-topo .revela, .revela-depois { animation: none !important; transition: none !important; }
}
.presente-massagem { max-width: 520px; margin: 0 auto 26px; text-align: center; }
.presente-massagem h2 { font-family: var(--serif); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 1.9rem; color: var(--marrom-escuro); margin: 0 0 8px; display: block; }
.presente-massagem .meta { display: inline-flex; gap: 6px; align-items: center; color: var(--brown); font-size: .9rem; margin-bottom: 10px; }
.presente-massagem .desc { color: var(--muted); line-height: 1.7; margin: 0 0 18px; }
.presente-massagem .btn { margin-top: 8px; }

/* Painel: novo agendamento (busca de cliente) */
.busca-resultados { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 260px; overflow-y: auto; }
.busca-resultados .resultado { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; cursor: pointer; color: var(--text); }
.busca-resultados .resultado span { font-size: .82rem; color: var(--muted); }
.busca-resultados .resultado:hover, .busca-resultados .resultado:focus { border-color: var(--gold); background: var(--gold-soft); outline: none; }
.busca-resultados .resultado.novo { color: var(--brown); font-weight: 600; border-style: dashed; }
.cliente-escolhido { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--gold); margin-top: 6px; }
.formas-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .formas-4 { grid-template-columns: repeat(4, 1fr); } }
