/* Tesoura de Ouro — design system enxuto */
:root {
  --red: #E0352B; --red-d: #B8261E; --red-soft: #FDECEA;
  --gold: #C9A14A; --gold-soft: #F7EFDC;
  --ink: #1E1A18; --ink-2: #4A4340; --muted: #8C837E;
  --bg: #FAF7F4; --card: #FFFFFF; --line: #EEE7E2;
  --ok: #1F9D62; --ok-soft: #E3F5EC; --warn: #C98A12; --warn-soft: #FCF2DD;
  --radius: 18px; --radius-s: 12px;
  --shadow: 0 1px 2px rgba(30,26,24,.04), 0 8px 24px rgba(30,26,24,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.45; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.script { font-family: var(--script); font-weight: 400; }
.hidden { display: none !important; }

/* Controles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 999px; padding: .8rem 1.3rem; font: 600 .95rem var(--font); cursor: pointer; transition: transform .1s, background .2s, opacity .2s; background: var(--line); color: var(--ink); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(224,53,43,.28); }
.btn.primary:hover { background: var(--red-d); }
.btn.gold { background: var(--gold); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn.sm { padding: .45rem .85rem; font-size: .82rem; }
.btn.block { width: 100%; margin-top: .6rem; }
.btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin: .8rem 0 0; }
input, select, textarea { width: 100%; margin-top: .35rem; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); font: 1rem var(--font); background: #fff; color: var(--ink); transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); }
input.invalid { border-color: var(--red); background: #FFF8F7; }
.field-err { color: var(--red-d); font-size: .78rem; font-weight: 600; margin-top: .3rem; }
input[type=checkbox] { width: auto; margin: 0 .4rem 0 0; accent-color: var(--red); }
.err { background: var(--red-soft); color: var(--red-d); padding: .7rem .9rem; border-radius: var(--radius-s); font-size: .9rem; }
.ok { background: var(--ok-soft); color: var(--ok); padding: .7rem .9rem; border-radius: var(--radius-s); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.narrow { max-width: 420px; width: 100%; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.logo-banner { border-radius: var(--radius-s); margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--line); color: var(--ink-2); }
.st-confirmed { background: var(--ok-soft); color: var(--ok); }
.st-pending { background: var(--warn-soft); color: var(--warn); }
.st-done { background: #E8EEF9; color: #3558A8; }
.st-cancelled { background: #F1EEEC; color: var(--muted); text-decoration: line-through; }
.st-no_show { background: var(--red-soft); color: var(--red-d); }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ APP DO CLIENTE ============ */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 90px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: .75rem 16px; background: rgba(250,247,244,.88); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--red) url(../img/icon-192.png) center/cover; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.avatar-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--gold-soft); color: var(--gold); font-weight: 700; cursor: pointer; }
.view { padding: 0 16px; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Hero com a foto da Odete */
.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; background: linear-gradient(160deg, #E8392E 0%, #B8261E 100%); color: #fff; padding: 1.4rem 1.3rem; margin-top: .25rem; min-height: 270px; display: flex; align-items: center; }
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #D32F25 0%, rgba(211,47,37,.92) 38%, rgba(184,38,30,.15) 70%, transparent 100%); pointer-events: none; }
.hero-text { position: relative; z-index: 2; max-width: 58%; }
.hero-text .script { font-size: 2.3rem; line-height: 1; display: block; color: #fff; }
.hero-text p { margin: .5rem 0 1rem; opacity: .9; font-size: .92rem; }
/* Foto ocupa toda a lateral direita e se funde ao vermelho pela esquerda (sem "quadro") */
.hero-photo { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 62%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 18%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); filter: saturate(1.05); }
.hero .btn { background: #fff; color: var(--red); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.gold-line { height: 3px; width: 46px; background: var(--gold); border-radius: 3px; margin: .4rem 0 .2rem; }

.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 1.6rem 0 .7rem; }
.next-card { margin-top: 1rem; display: flex; gap: .9rem; align-items: center; border-left: 4px solid var(--gold); }
.date-badge { flex: none; width: 56px; text-align: center; border-radius: 14px; background: var(--red-soft); color: var(--red); padding: .45rem 0; }
.date-badge b { display: block; font-size: 1.35rem; line-height: 1; }
.date-badge span { font-size: .7rem; text-transform: uppercase; font-weight: 700; }

.svc-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.svc-quick button { text-align: left; border: 0; background: var(--card); border-radius: var(--radius-s); padding: .9rem; box-shadow: var(--shadow); cursor: pointer; font: inherit; color: inherit; }
.svc-quick b { display: block; font-size: .92rem; }
.info-row { display: flex; gap: .75rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border: 0; }
.ico { width: 38px; height: 38px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.ico svg { width: 20px; height: 20px; }

/* Wizard */
.steps { display: flex; gap: .4rem; margin: .4rem 0 1.1rem; }
.steps div { flex: 1; }
.steps i { display: block; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.steps div.on i { background: var(--red); }
.steps span { display: block; font-size: .72rem; margin-top: .35rem; color: var(--muted); font-weight: 600; }
.steps div.on span { color: var(--ink); }
.cat-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 1.1rem 0 .5rem; }
.svc { display: flex; align-items: center; gap: .8rem; background: var(--card); border: 1.5px solid transparent; border-radius: var(--radius-s); padding: .9rem; margin-bottom: .55rem; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, background .15s; }
.svc.sel { border-color: var(--red); background: #FFF9F8; }
.svc .check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; transition: .15s; }
.svc.sel .check { background: var(--red); border-color: var(--red); }
.svc.sel .check::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }
.svc .meta { flex: 1; min-width: 0; }
.svc .meta b { display: block; }
.svc .price { font-weight: 700; white-space: nowrap; }

.pros { display: flex; gap: .7rem; overflow-x: auto; padding: .2rem 0 .6rem; scrollbar-width: none; }
.pros::-webkit-scrollbar, .days::-webkit-scrollbar { display: none; }
.pro { flex: none; width: 82px; text-align: center; cursor: pointer; border: 0; background: none; font: inherit; color: inherit; padding: 0; }
.pro .ph { width: 64px; height: 64px; margin: 0 auto .35rem; border-radius: 50%; background: var(--gold-soft) center 15%/cover; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; font-weight: 700; color: var(--gold); transition: .15s; }
.pro.sel .ph { border-color: var(--red); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.pro span { font-size: .8rem; font-weight: 600; }
.days { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .7rem; scroll-snap-type: x mandatory; }
.day { flex: none; width: 58px; scroll-snap-align: start; border: 1.5px solid var(--line); background: var(--card); border-radius: 16px; padding: .55rem 0; text-align: center; cursor: pointer; font: inherit; color: inherit; position: relative; }
.day small { display: block; font-size: .68rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.day b { font-size: 1.2rem; }
.day em { display: block; font-style: normal; font-size: .62rem; color: var(--ok); font-weight: 600; }
.day.off { opacity: .4; cursor: default; }
.day.off em { color: var(--muted); }
.day.sel { background: var(--red); border-color: var(--red); color: #fff; }
.day.sel small, .day.sel em { color: rgba(255,255,255,.85); }
.period { font-size: .8rem; font-weight: 700; color: var(--ink-2); margin: .9rem 0 .45rem; display: flex; align-items: center; gap: .4rem; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.slot { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: .65rem 0; font: 600 .92rem var(--font); cursor: pointer; color: var(--ink); }
.slot.sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--line) 25%, #f7f2ef 50%, var(--line) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; height: 44px; }
@keyframes sk { to { background-position: -200% 0; } }

.summary { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; }
.summary .row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; }
.summary .total { border-top: 1px dashed var(--line); margin-top: .4rem; padding-top: .7rem; font-weight: 700; font-size: 1.05rem; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .75rem 16px calc(.75rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.bar-in { max-width: 528px; margin: 0 auto; display: flex; align-items: center; gap: .8rem; }
.bar-in .info { flex: 1; min-width: 0; font-size: .85rem; }
.bar-in .info b { display: block; font-size: 1rem; }
.back-link { background: none; border: 0; color: var(--ink-2); font: 600 .9rem var(--font); cursor: pointer; padding: .3rem 0; display: inline-flex; align-items: center; gap: .3rem; }

.success { text-align: center; padding-top: 1.5rem; }
.success .tick { width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%; background: var(--ok-soft); display: grid; place-items: center; animation: pop .45s cubic-bezier(.3,1.6,.6,1); }
.success .tick svg { width: 42px; height: 42px; color: var(--ok); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar-in { max-width: 560px; margin: 0 auto; display: flex; }
.tabbar button { flex: 1; border: 0; background: none; padding: .55rem 0 .5rem; font: 600 .7rem var(--font); color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.on { color: var(--red); }
.tabbar .cta { margin-top: -18px; }
.tabbar .cta span.circle { width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(224,53,43,.35); }

.install { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; background: var(--ink); color: #fff; border-radius: var(--radius); padding: .9rem 1rem; }
.install img { width: 44px; height: 44px; border-radius: 12px; }
.install div { flex: 1; font-size: .85rem; }
.install .btn { background: var(--gold); color: #fff; }
.sheet-bg { position: fixed; inset: 0; background: rgba(20,16,14,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fadebg .2s; }
@keyframes fadebg { from { opacity: 0; } }
.sheet { background: var(--card); width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; padding: 1.3rem 16px calc(1.3rem + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; animation: up .25s ease; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: -0.4rem auto 1rem; }

/* ============ PAINEL ============ */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 1.2rem .9rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { padding: 0 .5rem 1.2rem; }
.side nav button { width: 100%; display: flex; align-items: center; gap: .7rem; border: 0; background: none; padding: .7rem .8rem; border-radius: 12px; font: 600 .9rem var(--font); color: var(--ink-2); cursor: pointer; text-align: left; }
.side nav button svg { width: 19px; height: 19px; }
.side nav button:hover { background: var(--bg); }
.side nav button.on { background: var(--red-soft); color: var(--red); }
.side .me { margin-top: auto; font-size: .82rem; padding: .8rem; border-top: 1px solid var(--line); }
.main { padding: 1.5rem 2rem 3rem; min-width: 0; }
.main-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; }
.kpi span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 1.55rem; margin-top: .3rem; letter-spacing: -.02em; }
.kpi small { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
td { padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--bg); }
.table-wrap { overflow-x: auto; }
.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; margin: 0; padding: .55rem .8rem; }
.bars { display: flex; align-items: flex-end; gap: .5rem; height: 140px; padding-top: .5rem; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; justify-content: flex-end; font-size: .72rem; color: var(--muted); }
.bars i { width: 100%; max-width: 34px; background: var(--red); border-radius: 8px 8px 4px 4px; min-height: 4px; }
.list-item { display: flex; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* Agenda em colunas por profissional */
.cal { display: grid; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
.cal-head { position: sticky; top: 0; background: #fff; z-index: 3; padding: .7rem; font-weight: 700; font-size: .85rem; border-bottom: 1px solid var(--line); text-align: center; }
.cal-times { position: relative; border-right: 1px solid var(--line); }
.cal-times span { position: absolute; right: 6px; font-size: .7rem; color: var(--muted); transform: translateY(-50%); }
.cal-col { position: relative; border-right: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 60px); }
.cal-col .closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, #F6F2EF 0 6px, #FBF8F6 6px 12px); }
.cal-col .appt { position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: .35rem .5rem; font-size: .75rem; color: #fff; overflow: hidden; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.12); line-height: 1.25; }
.cal-col .appt.cancelled { opacity: .35; }
.cal-col .appt.pending { outline: 2px dashed rgba(255,255,255,.8); outline-offset: -4px; }
.cal-col .now { position: absolute; left: 0; right: 0; height: 2px; background: var(--gold); z-index: 2; }
.cal-col .free { position: absolute; left: 0; right: 0; cursor: copy; }
.cal-col .free:hover { background: rgba(224,53,43,.06); }
.modal-bg { position: fixed; inset: 0; background: rgba(20,16,14,.45); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fadebg .2s; }
.modal { background: #fff; border-radius: var(--radius); padding: 1.4rem; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.2rem; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.hours-row { display: grid; grid-template-columns: 90px repeat(4, 1fr); gap: .4rem; align-items: center; margin-top: .4rem; }
.hours-row input { margin: 0; padding: .45rem; font-size: .85rem; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .5rem; }
.checks label { display: flex; align-items: center; margin: 0; font-weight: 500; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 1rem 16px 90px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; overflow-x: auto; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav button { flex: 1 0 auto; min-width: 68px; border: 0; background: none; padding: .55rem .3rem; font: 600 .68rem var(--font); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .2rem; }
  .mobile-nav button svg { width: 20px; height: 20px; }
  .mobile-nav button.on { color: var(--red); }
  .form-grid { grid-template-columns: 1fr; }
  .hours-row { grid-template-columns: 70px repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .slots { grid-template-columns: repeat(3, 1fr); }
  .hero-text { max-width: 64%; }
  .hero-text .script { font-size: 1.9rem; }
}

/* ===== v2: navegação, fidelidade, perfil, mobile ===== */
.top-r { display: flex; gap: .5rem; align-items: center; }
.round-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.round-btn svg { width: 19px; height: 19px; }
.dot-count { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font: 700 .62rem/17px var(--font); }
.avatar-btn { display: grid; place-items: center; font: 700 .95rem var(--font); }
.tabbar a { flex: 1; padding: .5rem 0 .45rem; font: 600 .66rem var(--font); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .18rem; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--red); }
.tabbar a.cta { margin-top: -20px; }
.tabbar a.cta .circle { width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(224,53,43,.35); border: 4px solid var(--bg); }
.app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.has-bar .app { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.topbar { padding-top: calc(.75rem + env(safe-area-inset-top)); }
.hero-hi { opacity: .9; display: block; margin-bottom: .2rem; }
.hero .btn { display: inline-flex; }
.promo { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; color: inherit; background: linear-gradient(120deg, #fff 60%, var(--gold-soft)); }
.chev { margin-left: auto; color: var(--muted); font-size: 1.4rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-gold { background: var(--gold-soft); color: #8A6A20; border-radius: 6px; padding: 0 .3rem; font-weight: 700; }
.ico-dark { background: rgba(201,161,74,.2); }
.cat-tabs { display: flex; gap: .4rem; overflow-x: auto; margin: .8rem -16px 0; padding: 0 16px .2rem; scrollbar-width: none; position: sticky; top: 62px; z-index: 5; background: var(--bg); }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem .9rem; font: 600 .82rem var(--font); color: var(--ink-2); }
.cat-title { scroll-margin-top: 120px; }
.pts { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--gold); vertical-align: -3px; }
.pts svg { width: 14px; height: 14px; }
.pro-one { display: flex; gap: .8rem; align-items: center; padding: .8rem; margin: .6rem 0; }
.pro-one .ph { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft) center 15%/cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); flex: none; display: grid; place-items: center; font-weight: 700; color: var(--gold); }
.mo-label { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .62rem; text-transform: uppercase; font-weight: 700; color: var(--muted); letter-spacing: .1em; align-self: center; }
.date-head { font-weight: 700; margin: 1rem 0 .2rem; }
.slot { min-height: 44px; }
.summary .disc { color: #8A6A20; font-weight: 600; }
.rw-pick { display: grid; gap: .5rem; }
.rw { text-align: left; border: 1.5px dashed var(--gold); background: var(--gold-soft); border-radius: 14px; padding: .75rem .9rem; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: .1rem; }
.rw.sel { border-style: solid; background: #fff; box-shadow: 0 0 0 3px rgba(201,161,74,.3); }
.rw:disabled { opacity: .5; }
.who-card { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; }
.card-actions { display: flex; justify-content: flex-end; gap: .4rem; margin: -.3rem 0 .9rem; }
.loy-card { position: relative; overflow: hidden; border-radius: 22px; padding: 1.2rem; margin-bottom: .9rem; color: #fff; background: linear-gradient(140deg, #E0352B, #9E1F18); box-shadow: 0 12px 30px rgba(184,38,30,.25); }
.loy-card.alt { background: linear-gradient(140deg, #2A2320, #1E1A18); }
.loy-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(201,161,74,.5), transparent 70%); }
.loy-top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: .9; }
.loy-top svg { width: 22px; height: 22px; color: var(--gold); }
.loy-card .big { display: block; font-size: 2rem; margin: .5rem 0 .3rem; letter-spacing: -.02em; }
.loy-card .big small { font-size: .95rem; opacity: .8; font-weight: 500; }
.loy-card p { margin: .5rem 0 0; font-size: .88rem; opacity: .92; position: relative; z-index: 1; }
.bar-prog { height: 10px; border-radius: 10px; background: rgba(255,255,255,.22); overflow: hidden; }
.bar-prog i { display: block; height: 100%; background: linear-gradient(90deg, #F3D58A, var(--gold)); border-radius: 10px; transition: width .6s ease; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin: .8rem 0 .2rem; position: relative; z-index: 1; }
.stamps i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); display: grid; place-items: center; font-style: normal; font-size: .8rem; color: rgba(255,255,255,.5); }
.stamps i.on { border: 0; background: var(--gold); color: #1E1A18; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.reward { display: flex; gap: .8rem; align-items: center; background: #fff; border: 1.5px dashed var(--gold); border-radius: 16px; padding: .8rem .9rem; margin-bottom: .55rem; }
.reward > span { font-size: 1.5rem; }
.reward div { flex: 1; }
.reward.reserved { opacity: .7; }
.warn-card { display: block; background: var(--warn-soft); color: #6E4B07; margin-bottom: 1rem; }
.pos { color: var(--ok); } .neg { color: var(--red-d); }
.form-card h3 { margin: 0 0 .2rem; }
.form-card label.full { grid-column: 1 / -1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .7rem; align-items: end; }
.grid-3 { display: grid; grid-template-columns: 1fr 80px; gap: 0 .7rem; }
.cep-hint { padding-bottom: .9rem; }
.acc-head { display: flex; gap: .9rem; align-items: center; margin-bottom: .9rem; }
.avatar-lg { width: 54px; height: 54px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; }
.menu-list { padding: .3rem 1rem; }
.menu-list a, .menu-row { display: flex; align-items: center; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.menu-list > :last-child { border: 0; }
.menu-row > :last-child { margin-left: auto; }
.notif-row { display: flex; gap: .8rem; padding: .8rem .4rem; border-radius: 12px; }
.notif-row.unread { background: #FFF7F6; }
.notif-row .nd { font-size: 1.2rem; }
.switch { position: relative; width: 46px; height: 27px; flex: none; display: inline-block; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; margin: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 27px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(19px); }
@media (max-width: 380px) { .grid-2 { grid-template-columns: 1fr; } .stamps { gap: .35rem; } }
input, select, textarea { font-size: 16px; }

/* ===== Hero configurável (tema) ===== */
.hero2 { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; background: var(--h-bg); min-height: var(--h-h); margin-top: .25rem; padding: 1.4rem 1.3rem; display: flex; align-items: center; color: #fff; }
.hero2 .h-bgimg { position: absolute; inset: 0; background-size: cover; z-index: 0; }
.hero2 .h-shade { position: absolute; inset: 0; background: #000; z-index: 0; }
.hero2 .h-glow { position: absolute; z-index: 1; right: -40px; bottom: -70px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--h-accent) 55%, transparent), transparent 70%); pointer-events: none; }
.hero2 .h-photo { position: absolute; z-index: 0; top: 0; bottom: 0; width: var(--ph-w); overflow: hidden; }
.hero2.s-right .h-photo { right: 0; } .hero2.s-left .h-photo { left: 0; }
.hero2 .h-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero2 .h-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero2 .h-text { position: relative; z-index: 2; max-width: 60%; }
.hero2.s-left .h-text { margin-left: auto; text-align: right; }
.hero2.s-left .h-line { margin-left: auto; }
.hero2.s-none .h-text { max-width: 100%; }
.hero2.a-center .h-text { margin: 0 auto; text-align: center; max-width: 100%; }
.hero2.a-center .h-line { margin-left: auto; margin-right: auto; }
.hero2.a-center:not(.s-none) .h-veil { background: rgba(0,0,0,.35) !important; }
.hero2 .h-hi { display: block; font-size: .85rem; opacity: .9; margin-bottom: .2rem; }
.hero2 .h-title { display: block; font-size: 2.3rem; line-height: 1.05; }
.hero2.f-script .h-title { font-family: var(--script); font-weight: 400; }
.hero2.f-serif .h-title { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.85rem; }
.hero2.f-sans .h-title { font-family: var(--font); font-weight: 800; font-size: 1.75rem; letter-spacing: -.02em; }
.hero2 .h-line { height: 3px; width: 46px; background: var(--h-accent); border-radius: 3px; margin: .5rem 0 .2rem; }
.hero2 p { margin: .5rem 0 1rem; opacity: .92; font-size: .92rem; }
.hero2 .h-btn { background: #fff; color: var(--h-btn); box-shadow: 0 8px 20px rgba(0,0,0,.18); display: inline-flex; }
.hero2 .h-badge { display: inline-block; background: var(--h-accent); color: #1E1A18; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.hero2.t-dark { color: var(--ink); }
.hero2.t-dark .h-btn { background: var(--h-btn); color: #fff; }
@media (max-width: 380px) { .hero2 .h-text { max-width: 66%; } .hero2 .h-title { font-size: 1.9rem; } .hero2.f-serif .h-title, .hero2.f-sans .h-title { font-size: 1.5rem; } }

/* ===== Instalador ===== */
.inst { max-width: 480px; min-width: 0; overflow: hidden; }
.inst h3 { margin: .8rem 0 0; font-size: .95rem; }
.inst .steps { margin-top: 0; }
.chk-row { display: flex; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.chk-row span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .75rem; flex: none; }
.chk-row.c-ok span { background: var(--ok-soft); color: var(--ok); }
.chk-row.c-bad span { background: var(--red-soft); color: var(--red-d); }
.chk-row.c-warn span { background: var(--warn-soft); color: var(--warn); }
.warn-box { background: var(--warn-soft); color: #6E4B07; border-radius: 12px; padding: .8rem .9rem; font-size: .88rem; margin-bottom: 1rem; }
.inst .chk { display: flex; align-items: center; margin-top: 1rem; font-weight: 500; }
.inst code { background: var(--bg); padding: .1rem .3rem; border-radius: 4px; }
.inst code.cmd { display: block; background: var(--ink); color: #F7EFDC; padding: .7rem .9rem; border-radius: 10px; font-size: .74rem; white-space: pre-wrap; word-break: break-all; margin-top: .4rem; }
ol.next li { margin-bottom: .7rem; }

/* ===== 1.0.1 — sem borda de foco ao tocar/clicar ===== */
/* contêineres que recebem foco por programação (troca de tela) nunca mostram contorno */
#view:focus, #main:focus, [tabindex="-1"]:focus { outline: none !important; box-shadow: none; }
/* toque/mouse: sem contorno; teclado: contorno discreto na cor do app (acessibilidade) */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
html { -webkit-tap-highlight-color: transparent; }

/* ===== 1.0.2 — refinamentos mobile ===== */
/* respiro entre o cabeçalho fixo e o título de cada tela */
.view { padding-top: .5rem; }
.view > h1:first-child, .view > .back-link + h1 { margin-top: .2rem; }
.view h1 { font-size: 1.55rem; }
/* barra inferior: rótulos na mesma linha; botão central flutua acima sem empurrar o texto */
.tabbar-in { align-items: flex-end; }
.tabbar a { position: relative; min-height: 56px; justify-content: flex-end; padding-bottom: .5rem; }
.tabbar a.cta { margin-top: 0; }
.tabbar a.cta .circle { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); }
.tabbar a:active svg, .tabbar a.cta:active .circle { transform: scale(.92); }
.tabbar a.cta:active .circle { transform: translateX(-50%) scale(.92); }
/* card de horário */
.appt-card { padding: .9rem; margin-bottom: .7rem; border: 1px solid transparent; }
.appt-card.up { border-color: var(--gold-soft); box-shadow: inset 4px 0 0 var(--gold), var(--shadow); }
.ac-top { display: flex; gap: .8rem; align-items: flex-start; }
.ac-main { flex: 1; min-width: 0; }
.ac-main b { font-size: 1rem; }
.ac-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); margin-bottom: .1rem; }
.ac-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .7rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
.ac-price { white-space: nowrap; font-size: .92rem; }
.ac-actions { display: flex; gap: .4rem; margin-top: .6rem; }
.ac-actions .btn { flex: 1; }
.appt-card .date-badge { width: 50px; padding: .4rem 0; }
.appt-card:not(.up) .date-badge { background: var(--bg); color: var(--ink-2); }
.chip.st-cancelled { text-decoration: none; }
#nextSlot .appt-card { margin-top: 1rem; }
/* serviços: descrição em até 2 linhas + duração em selo */
.svc { padding: .85rem .9rem; align-items: flex-start; }
.svc .check { margin-top: .15rem; }
.svc .meta b { display: flex; align-items: center; gap: .25rem; }
.svc .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .82rem; margin-top: .1rem; }
.svc .dur { display: inline-block; margin-top: .35rem; font-size: .72rem; font-weight: 600; color: var(--ink-2); background: var(--bg); border-radius: 6px; padding: .1rem .4rem; }
.svc .price { margin-top: .1rem; }
.cat-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* atalhos "Mais procurados" com sinal de ação */
.svc-quick button { position: relative; padding-right: 2.4rem; min-height: 72px; }
.svc-quick .muted.small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.svc-quick button::after { content: "+"; position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; line-height: 26px; text-align: center; }
.svc-quick button:active { transform: scale(.98); }
/* resumo do agendamento */
.summary .when { display: flex; gap: .7rem; align-items: center; padding-bottom: .7rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); }
.summary .when b { display: block; }
/* ícones de menu consistentes */
.mi { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.mi svg { width: 18px; height: 18px; }
.reward > .mi { width: 40px; height: 40px; }
.menu-list a, .menu-row { min-height: 56px; }
/* dias fechados mais discretos que os lotados */
.day.off em { color: var(--muted); }
/* telas pequenas */
@media (max-width: 380px) {
  .hero2 { padding: 1.2rem 1.1rem; }
  .hero2 p { font-size: .86rem; }
  .view h1 { font-size: 1.4rem; }
  .svc-quick { gap: .5rem; }
}

/* ===== 1.0.3 — redes sociais e compartilhamento ===== */
.social-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: .5rem; margin-top: .8rem; }
.soc { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .3rem; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); color: var(--ink-2); font-size: .72rem; font-weight: 600; text-decoration: none; }
.soc svg { width: 24px; height: 24px; }
.soc-instagram svg { color: #D62976; } .soc-facebook svg { color: #1877F2; } .soc-tiktok svg { color: #111; } .soc-maps svg { color: var(--red); }
.soc:active { transform: scale(.96); }
.share-card { display: flex; gap: .8rem; align-items: center; width: 100%; margin-top: .8rem; padding: .9rem 1rem; border: 1.5px dashed var(--gold); border-radius: var(--radius); background: linear-gradient(120deg, #fff 55%, var(--gold-soft)); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.share-card .ico { background: var(--gold); color: #fff; }
.share-card:active { transform: scale(.98); }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .6rem; }
.sh { display: flex; flex-direction: column; align-items: center; gap: .35rem; border: 0; background: none; font: 600 .74rem var(--font); color: var(--ink-2); cursor: pointer; text-decoration: none; padding: 0; }
.sh svg { width: 26px; height: 26px; padding: 14px; box-sizing: content-box; border-radius: 50%; color: #fff; }
.sh-wa svg { background: #25D366; } .sh-fb svg { background: #1877F2; } .sh-tg svg { background: #2AABEE; } .sh-copy svg { background: var(--ink); }
