/* Identidade visual Nayara Paulino: nude, bronze, Cinzel + Montserrat.
   Acabamento "boutique": linhas finas, muito respiro, sombras suaves, ícones de traço fino. */
:root {
  --bg: #fdf8f5; --primary: #8d6b59; --primary-esc: #775847; --accent: #c2956e; --text: #4a3f35; --card: #ffffff;
  --border: #f0e2d9; --hair: #ecdcd1; --light: #a99c94; --sand: #fbf3ed; --danger: #b5483f; --ok: #4a8a5c; --bloq: #3b332d;
  --sombra: 0 1px 2px rgba(74,63,53,.04), 0 10px 28px -8px rgba(141,107,89,.14);
  --sombra-forte: 0 14px 34px -10px rgba(141,107,89,.38);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; font-family: 'Montserrat', system-ui, sans-serif; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); min-height: 100vh; padding-bottom: 92px; font-weight: 400;
  background: radial-gradient(120% 60% at 50% -10%, #fff 0%, var(--bg) 55%) fixed, var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Cinzel', serif; font-weight: 500; margin: 0; }
button { cursor: pointer; font-family: inherit; }
.app { max-width: 520px; margin: 0 auto; padding: 0 18px 18px; animation: entra .45s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }
.ico { display: inline-block; vertical-align: -0.2em; flex: none; }

/* Topo: barra fixa com a logo recortada */
.topo { text-align: center; padding: 28px 0 8px; }
.topo img { width: 200px; height: auto; }
.topo.mini { position: sticky; top: 0; z-index: 40; margin: 0 -18px 10px; padding: 5px 0; background: rgba(253,248,245,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
/* Marca horizontal: NP + flor ocupam toda a altura da barra; o nome fica ao lado, bem legível */
.marca { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; }
.marca .mono { height: 48px; width: auto; display: block; }
.marca .txt { display: flex; flex-direction: column; justify-content: center; width: 142px; }
.marca .nome { width: 100%; height: auto; display: block; }
.marca .esp { font-family: 'Montserrat', sans-serif; font-size: 7px; font-weight: 600; letter-spacing: 2.1px; color: var(--text); text-transform: uppercase; margin-top: 6px; white-space: nowrap; width: 0; min-width: 100%; text-align-last: justify; text-align: justify; line-height: 1; }
.titulo { font-size: 19px; text-transform: uppercase; letter-spacing: 5px; margin: 20px 0 6px; text-align: center; font-weight: 500; color: var(--text); }
.sub { font-size: 10px; font-weight: 400; color: var(--light); letter-spacing: 3px; text-transform: uppercase; text-align: center; margin: 0 0 6px; }
.divisor { height: 10px; margin: 12px auto 14px; width: 120px; position: relative; }
.divisor::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent); opacity: .7; }
.divisor::after { content: ''; position: absolute; left: 50%; top: 1px; width: 7px; height: 7px; margin-left: -4px; background: var(--bg); border: 1px solid var(--accent); transform: rotate(45deg); }
.etiqueta { font-size: 9.5px; text-transform: uppercase; letter-spacing: 2.2px; color: var(--light); font-weight: 600; display: block; margin: 20px 0 8px; }

/* Cartões e botões */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px 18px; margin-bottom: 14px; box-shadow: var(--sombra); }
.card h3 { font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 2.4px; margin: 0 0 14px; padding-bottom: 11px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.btn { background: linear-gradient(180deg, #98776a 0%, var(--primary) 100%); color: #fff; border: 0; border-radius: 14px; padding: 16px 18px; font-size: 11px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; width: 100%; transition: transform .15s, box-shadow .2s, opacity .2s; box-shadow: var(--sombra-forte); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: scale(.985); box-shadow: 0 6px 14px -6px rgba(141,107,89,.4); }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn.sec { background: transparent; color: var(--primary); border: 1px solid #d9c2b4; box-shadow: none; }
.btn.cinza { background: linear-gradient(180deg, #55483f, #3f352e); box-shadow: 0 10px 24px -10px rgba(63,53,46,.55); }
.btn.verde { background: linear-gradient(180deg, #3fb467, #2e9a54); box-shadow: 0 10px 24px -10px rgba(46,154,84,.55); }
.btn.perigo { background: transparent; color: var(--danger); border: 1px solid #e3b9b4; box-shadow: none; }
.btn.peq { padding: 11px 12px; font-size: 9.5px; letter-spacing: 1.6px; width: auto; border-radius: 11px; }
.linha { display: flex; gap: 10px; } .linha > * { flex: 1; min-width: 0; }
input[type="date"].input, input[type="time"].input { min-width: 0; max-width: 100%; }
.link { background: none; border: 0; color: var(--light); font-size: 10px; text-transform: uppercase; letter-spacing: 2.4px; width: 100%; padding: 18px; font-weight: 500; }

/* Formulários */
.input, select.input, textarea.input { width: 100%; padding: 14px 15px; border-radius: 12px; border: 1px solid #eadbd0; background: #fffdfb; color: var(--text); font-size: 14px; margin-bottom: 12px; outline: none; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(141,107,89,.1); }
textarea.input { resize: vertical; min-height: 74px; }
.pergunta { background: var(--sand); border-radius: 14px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--border); }
.pq { font-size: 13px; font-weight: 500; display: block; line-height: 1.45; }
.opcoes { display: flex; gap: 10px; margin-top: 10px; font-size: 12px; font-weight: 500; }
.opcoes label { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1; padding: 9px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.opcoes input { accent-color: var(--primary); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; padding: 4px 9px; border-radius: 20px; background: var(--sand); color: var(--primary); border: 1px solid var(--border); }
.chip.ok { background: #e8f4ec; color: var(--ok); border-color: #cfe7d6; } .chip.cinza { background: #f3f0ee; color: #8a817b; border-color: #e8e3e0; } .chip.rosa { background: #fbe9e7; color: #9a4038; border-color: #f2cfca; }

/* Serviços (sanfona) */
.sanfona { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; overflow: hidden; box-shadow: var(--sombra); }
.sanfona > button { width: 100%; background: none; border: 0; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--primary); }
.sanfona > div { display: none; padding: 2px 12px 14px; } .sanfona.aberta > div { display: block; }
.sanfona.aberta > button .seta { transform: rotate(180deg); } .seta { transition: .25s; display: inline-flex; }
.servico { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; background: #fff; border: 1px solid var(--border); border-radius: 13px; margin-top: 9px; transition: .2s; }
.servico.sel { border-color: var(--primary); background: var(--sand); box-shadow: 0 0 0 3px rgba(141,107,89,.08); }
.servico b { font-size: 13.5px; font-weight: 600; } .servico small { display: block; font-size: 11px; color: var(--light); margin-top: 4px; letter-spacing: .3px; }
.ajuda { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #dcc9bc; color: var(--primary); font-size: 10px; align-items: center; justify-content: center; margin-left: 7px; background: #fff; font-weight: 700; vertical-align: 1px; }
.check { width: 22px; height: 22px; accent-color: var(--primary); }

/* Resumo fixo */
.resumo { position: sticky; bottom: 82px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin-top: 16px; box-shadow: 0 -6px 28px -6px rgba(141,107,89,.22); }
.resumo .lista { font-size: 10.5px; color: #8a7a71; text-align: center; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 10px; line-height: 1.6; }
.resumo .nums { display: flex; justify-content: space-around; border-top: 1px solid var(--border); padding-top: 12px; margin-bottom: 14px; text-align: center; }
.resumo small { display: block; font-size: 8.5px; color: var(--light); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 3px; } .resumo b { font-family: 'Cinzel', serif; font-size: 17px; color: var(--primary); font-weight: 600; }

/* Dias e horários */
.grade-dias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 18px; }
.dia { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 2px; text-align: center; position: relative; min-height: 62px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; transition: .2s; box-shadow: 0 1px 2px rgba(74,63,53,.03); }
.dia span { font-size: 8.5px; text-transform: uppercase; color: var(--light); letter-spacing: 1.6px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; } .dia b { font-family: 'Cinzel', serif; font-size: 19px; font-weight: 600; line-height: 1; }
.dia.sel { background: linear-gradient(180deg, #98776a, var(--primary)); border-color: var(--primary); color: #fff; box-shadow: var(--sombra-forte); } .dia.sel span { color: rgba(255,255,255,.85); }
.dia.fechado { background: #efe8e3; color: #a79b94; border-color: #e6dcd5; box-shadow: none; } .dia.fechado span { color: #b3a79f; }
.dia.fechado.sel { background: var(--bloq); color: #fff; border-color: #000; } .dia.fechado.sel span { color: #ccc; }
/* Dia com atendimento: mesma cor do horário ocupado */
.dia.atendimento { background: #faeceb; color: #9a4038; border-color: #f2d3cf; box-shadow: none; }
.dia.atendimento span { color: #b8645c; }
.dia.atendimento.sel { background: #f5dcd9; border-color: #9a4038; box-shadow: 0 0 0 2px rgba(154,64,56,.35); color: #7d2f28; }
.dia.atendimento.sel span { color: #9a4038; }
.dia .niver { position: absolute; top: 4px; right: 5px; color: #d9534f; }
.grade-horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.hora { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 13px 2px; text-align: center; font-size: 13px; font-weight: 500; letter-spacing: .5px; transition: .15s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 46px; }
.hora:active { transform: scale(.96); }
.hora.sel { background: linear-gradient(180deg, #98776a, var(--primary)); color: #fff; border-color: var(--primary); box-shadow: var(--sombra-forte); }
.hora.ocupado { background: #faeceb; color: #9a4038; border-color: #f2d3cf; cursor: not-allowed; font-size: 12px; }
.hora.bloq { background: var(--bloq); color: #e8dfd9; border-color: #000; font-size: 12px; }
.hora.google { background: #eaf1fb; color: #3d5f93; border-color: #cddcf2; font-size: 12px; cursor: pointer; }   /* ocupado por evento do Google Agenda: tom claro (o preto é só bloqueio da Nay) */
.hora.sem { opacity: .4; cursor: not-allowed; background: #f6f1ee; }
.vazio { text-align: center; color: var(--light); font-size: 12px; padding: 26px 10px; grid-column: 1 / -1; }

/* Navegação inferior */
.nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 4px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 50; }
.nav button { background: none; border: 0; color: #b9aea7; font-size: 8.5px; letter-spacing: 1.4px; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 6px; flex: 1; position: relative; font-weight: 600; transition: color .2s; }
.nav button .ic { display: flex; } .nav button.on { color: var(--primary); }
.nav button.on::before { content: ''; position: absolute; top: -5px; left: 30%; right: 30%; height: 2px; border-radius: 0 0 3px 3px; background: var(--primary); }
.nav .bolinha { position: absolute; top: 4px; left: 54%; background: var(--danger); color: #fff; font-size: 9px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; letter-spacing: 0; border: 2px solid #fff; box-sizing: content-box; }

/* Modal e toast */
.modal-bg { position: fixed; inset: 0; background: rgba(46,32,24,.5); backdrop-filter: blur(5px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 18px; animation: fundo .2s ease; }
@keyframes fundo { from { opacity: 0 } to { opacity: 1 } }
.modal { background: #fffdfb; border-radius: 22px; padding: 28px 22px 22px; width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto; position: relative; animation: sobe .3s cubic-bezier(.2,.8,.3,1); box-shadow: 0 30px 60px -20px rgba(46,32,24,.45); }
.modal.pequeno { max-width: 330px; }
.modal h3 { font-size: 15px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px; color: var(--primary); text-align: center; }
.modal .x { position: absolute; right: 12px; top: 12px; border: 0; background: var(--sand); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; color: #9b8d84; line-height: 1; }
@keyframes sobe { from { transform: translateY(18px) scale(.98); opacity: 0 } to { transform: none; opacity: 1 } }
#toast { position: fixed; left: 50%; bottom: 104px; transform: translate(-50%, 20px); background: #3b332d; color: #fff; padding: 12px 20px; border-radius: 30px; font-size: 12px; letter-spacing: .3px; opacity: 0; pointer-events: none; transition: .25s; z-index: 300; max-width: 88vw; text-align: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.4); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Estrelas */
.estrelas { display: flex; justify-content: center; gap: 8px; margin: 10px 0 18px; }
.estrelas button { background: none; border: 0; font-size: 38px; color: #e6dcd5; padding: 0; line-height: 1; transition: transform .15s, color .15s; } .estrelas button.on { color: var(--accent); transform: scale(1.08); }

.faixa-teste { background: #fbf0d4; color: #7a5b00; font-size: 9px; text-align: center; padding: 6px 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; }
.vazio-pagina { text-align: center; color: var(--light); font-size: 13px; padding: 44px 20px; line-height: 1.7; }

/* Faixa do modo "ver como cliente" (a Nay navegando no app da cliente) */
.faixa-painel { position: sticky; top: 0; z-index: 60; background: var(--primary); color: #fff; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; height: 34px; }
.faixa-painel a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
body.com-faixa-painel .topo.mini { top: 34px; }

/* Cabeçalho de saudação (início) */
.hero { text-align: center; padding: 8px 0 4px; }
.hero .ola { font-family: 'Cinzel', serif; font-size: 25px; letter-spacing: 4px; text-transform: uppercase; color: var(--text); }
.hero .sub { margin-top: 8px; }
.agenda-data { display: flex; align-items: baseline; gap: 10px; }
.destaque { background: linear-gradient(160deg, #fff 0%, var(--sand) 100%); border-color: #e8d3c5; }
.destaque .quando { font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 1.5px; white-space: nowrap; color: var(--primary); text-transform: uppercase; }
