/* ==========================================================================
   Páginas públicas: Ateliê da manicure, agendamento, site e login
   ========================================================================== */

.pub, .site, .landing { background: var(--surface-2); }
.wrap-pub { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }
.wrap-lp { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding-top: 140px; }
.hero.has-cover { padding-top: 220px; }
.hero-media {
  position: absolute; inset: 0 0 auto; height: 200px;
  background:
    radial-gradient(120% 140% at 85% -10%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 60%),
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--brand) 22%, #fff), transparent 70%),
    var(--brand-soft);
}
.hero.has-cover .hero-media { height: 280px; background-size: cover; background-position: center; }
.hero.has-cover .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(251,248,245,.0) 70%, var(--surface-2)); }
.hero-inner { position: relative; text-align: center; }
.hero-logo {
  width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 5px var(--surface-2), 0 10px 30px -12px rgba(0,0,0,.35);
  display: grid; place-items: center;
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo span { font-family: var(--serif); font-size: 36px; color: var(--brand); }
.hero-name { font-family: var(--serif); font-weight: 800; font-size: 30px; letter-spacing: -.025em; margin-top: 16px; line-height: 1.08; }
.hero-tagline { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; font-family: var(--serif); font-style: italic; font-weight: 350; }
.hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta a:hover { color: var(--ink); }
.hero-cta { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

.pub-tabs {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: center; gap: 28px; margin-top: 30px;
  background: color-mix(in srgb, var(--surface-2) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.pub-tabs a { padding: 14px 2px 12px; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pub-tabs a.on { color: var(--ink); border-color: var(--ink); }

.pub-section { padding: 28px 0 8px; scroll-margin-top: 50px; }
.pub-head { margin-bottom: 18px; }
.pub-head .display { font-size: 28px; margin-top: 6px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 -16px; }
@media (min-width: 640px) { .gallery { margin: 0; gap: 6px; border-radius: var(--r); overflow: hidden; } }
.g-tile { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--line); cursor: zoom-in; overflow: hidden; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.g-tile:hover img { transform: scale(1.04); }
.g-tile .multi { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }

.ig-strip { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ig-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(45deg, #F2A65A, #D9466F 45%, #8A3AB9); }

.menu { border-top: 1px solid var(--line); }
.menu-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.menu-item:hover .menu-name { color: var(--brand); }
.menu-name { font-family: var(--serif); font-size: 19px; font-weight: 450; transition: color .15s; }
.menu-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.menu-dur { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 8px; }
.menu-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 3px; }

.bio { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; margin-bottom: 18px; }
.about-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.hours-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.hours-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.hours-list li + li { border-top: 1px dashed var(--line); }
.hours-list li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.hours-list li.off { color: var(--muted); }
.hours-list li.off span:last-child { font-weight: 500; }

.pub-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 40px; padding-bottom: calc(110px + var(--safe-b)); font-size: 12.5px; font-weight: 600; }

.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 20; max-width: 616px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.sticky-cta > div { min-width: 0; }
.sticky-cta.show { transform: none; }

/* ---------------------------------------------------------------- post (estilo Instagram) */
dialog.viewer {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #fff; color: var(--ink); overflow: hidden;
}
dialog.viewer:not([open]) { display: none; }
dialog.viewer[open] { display: flex; align-items: center; justify-content: center; animation: fadeIn .2s; }
dialog.viewer::backdrop { background: rgba(12, 8, 10, .82); }

.ig { width: 100%; height: 100%; display: flex; flex-direction: column; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.ig-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; padding-top: calc(12px + var(--safe-t)); border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 3; }
.ig-name { font-weight: 700; font-size: 14.5px; }
.ig-sub { font-size: 12.5px; color: var(--muted); }
.ig-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.ig-x:hover { background: var(--surface-2); }

.ig-media { position: relative; flex-shrink: 0; width: 100%; aspect-ratio: var(--ar, 4 / 5); max-height: 72vh; background: #F3EEF0; overflow: hidden; }
.ig-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.ig-track::-webkit-scrollbar { display: none; }
.ig-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; user-select: none; -webkit-user-drag: none; }
.ig-arrow { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: opacity .15s; }
.ig-arrow.prev { left: 10px; } .ig-arrow.next { right: 10px; }
.ig-arrow[hidden] { display: none; }
.ig-count { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(20,14,16,.62); color: #fff; font-size: 12px; font-weight: 700; }
.ig-count:empty { display: none; }

.ig-side { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ig-actions { position: relative; display: flex; align-items: center; gap: 4px; padding: 8px 8px 2px; }
.ig-act { width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ig-act:hover { color: var(--brand); }
.ig-dots { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: #D9CCD3; transition: background .15s, transform .15s; }
.ig-dots i.on { background: var(--brand); transform: scale(1.15); }
.ig-caption { display: flex; gap: 12px; padding: 6px 16px 14px; }
.ig-caption .v-logo { display: none; }
.ig-caption p { font-size: 14.5px; line-height: 1.55; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.ig-caption p strong { font-weight: 700; margin-right: 4px; }
.ig-caption .muted-caption { color: var(--muted); }
.ig-date { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ig-cta { position: sticky; bottom: 0; margin-top: auto; padding: 12px 16px calc(14px + var(--safe-b)); background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0)); }

.viewer-nav { position: fixed; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: none; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.viewer-nav.prev { left: 22px; } .viewer-nav.next { right: 22px; }

@media (min-width: 860px) {
  dialog.viewer { background: transparent; overflow: visible; }
  .ig {
    --h: min(88vh, 760px);
    display: grid; grid-template-columns: auto 380px; grid-template-rows: auto 1fr;
    width: auto; max-width: calc(100vw - 140px); height: var(--h); overflow: hidden;
    border-radius: 18px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6);
  }
  .ig-media { grid-column: 1; grid-row: 1 / 3; height: var(--h); width: auto; max-width: calc(100vw - 140px - 380px); max-height: none; background: #14100F; }
  .ig-head { grid-column: 2; grid-row: 1; padding: 14px 16px; position: static; }
  .ig-side { grid-column: 2; grid-row: 2; overflow: hidden; display: flex; flex-direction: column; }
  .ig-caption { order: -1; flex: 1; overflow-y: auto; padding: 16px; border-bottom: 1px solid var(--line); }
  .ig-caption .v-logo { display: grid; width: 34px; height: 34px; }
  .ig-actions { padding: 6px 8px 0; }
  .ig-dots { position: static; transform: none; margin-left: auto; margin-right: 10px; }
  .ig-cta { position: static; padding: 10px 16px 16px; background: none; margin-top: 0; }
  .viewer-nav { display: grid; }
  .ig-arrow { opacity: 0; }
  .ig-media:hover .ig-arrow { opacity: 1; }
}

.v-logo { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-family: var(--serif); font-size: 14px; flex-shrink: 0; border: 1px solid var(--line); }
.v-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- booking */
.bk-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: calc(10px + var(--safe-t)); }
.bk-head .row { padding-bottom: 10px; }
.bk-progress { height: 3px; background: var(--line); }
.bk-progress i { display: block; height: 100%; background: var(--brand); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.bk { padding-top: 26px; padding-bottom: calc(120px + var(--safe-b)); }
.bk-title { font-size: 30px; margin: 8px 0 20px; line-height: 1.1; }
.bk section { animation: stepIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.bk-month { text-transform: capitalize; margin: -6px 2px 10px; letter-spacing: .04em; }
.bk .day { cursor: pointer; border: 1px solid var(--line); font: inherit; color: inherit; }
.bk .day[disabled] { opacity: .35; cursor: default; background: transparent; }
.bk .day[disabled] .n { text-decoration: line-through; text-decoration-color: var(--line-2); }
.bk-loading { color: var(--muted); font-size: 14px; padding: 18px 2px; }
.bk-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px 0 calc(12px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.bk-foot .btn[disabled] { opacity: .4; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 18px; }
.summary .kv { grid-template-columns: 22px 1fr auto; }
.summary .edit { font-size: 13px; font-weight: 700; color: var(--brand); background: none; border: 0; cursor: pointer; padding: 0; }
.summary .total { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 700; }

/* ---------------------------------------------------------------- confirmation */
.done-page { padding-top: calc(48px + var(--safe-t)); padding-bottom: 60px; }
.done-mark { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--ok); color: #fff; box-shadow: 0 0 0 10px var(--ok-soft); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.done-mark.pending { background: var(--warn); box-shadow: 0 0 0 10px var(--warn-soft); }
.done-mark.canceled, .done-mark.no_show { background: var(--muted); box-shadow: 0 0 0 10px var(--line); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done-title { font-size: 34px; margin-top: 8px; }
.done-sub { margin: 10px auto 26px; max-width: 360px; }
.ticket { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.ticket-date { width: 66px; flex-shrink: 0; text-align: center; border-right: 1px dashed var(--line-2); padding-right: 16px; }
.ticket-date .m { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.ticket-date .d { font-family: var(--serif); font-size: 36px; line-height: 1; margin: 2px 0; }
.ticket-date .w { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- auth */
.auth-wrap { width: 100%; max-width: 420px; margin: 0 auto; padding: calc(48px + var(--safe-t)) 20px 60px; }
.brandmark { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.02em; font-style: italic; }
.auth-title { font-size: 34px; margin: 34px 0 8px; line-height: 1.08; }

/* ---------------------------------------------------------------- landing */
.lp-nav { display: flex; align-items: center; justify-content: space-between; padding-top: calc(18px + var(--safe-t)); padding-bottom: 18px; }
.lp-hero { position: relative; padding-top: 36px; padding-bottom: 60px; display: grid; gap: 0 40px; }
.lp-h1 { font-size: clamp(38px, 8vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin-top: 14px; max-width: 760px; }
.lp-h1 em { font-style: italic; color: var(--brand); }
.lp-lead { font-size: 17px; color: var(--ink-2); max-width: 560px; margin-top: 18px; line-height: 1.6; }
.lp-phone { position: relative; width: 270px; margin: 48px auto 0; }
.lp-screen { position: relative; border-radius: 34px; background: var(--surface-2); border: 8px solid var(--ink); overflow: hidden; padding: 0 14px 16px; box-shadow: var(--shadow-lg); text-align: center; }
.lp-cover { height: 90px; margin: 0 -14px; background: radial-gradient(120% 140% at 85% -10%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 60%), var(--brand-soft); }
.lp-logo { width: 62px; height: 62px; border-radius: 50%; margin: -31px auto 0; background: #fff; display: grid; place-items: center; font-family: var(--serif); color: var(--brand); font-size: 22px; box-shadow: 0 0 0 4px var(--surface-2); }
.lp-name { font-family: var(--serif); font-size: 19px; margin-top: 10px; }
.lp-tag { font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--muted); margin-top: 2px; }
.lp-btn { margin: 12px auto; height: 36px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; width: 70%; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 -14px -16px; }
.lp-grid i { aspect-ratio: 4/5; background: linear-gradient(160deg, #E9C9C2, #C98F8A); }
.lp-grid i:nth-child(2) { background: linear-gradient(160deg, #F1DCD2, #D8A99C); }
.lp-grid i:nth-child(3) { background: linear-gradient(160deg, #B95C6B, #7E2F3E); }
.lp-grid i:nth-child(4) { background: linear-gradient(160deg, #EEE3DA, #CDB8A8); }
.lp-grid i:nth-child(5) { background: linear-gradient(160deg, #A4475A, #5E2232); }
.lp-grid i:nth-child(6) { background: linear-gradient(160deg, #E8D2C9, #BE8B80); }
.lp-bubble { position: absolute; width: 220px; padding: 10px 12px; font-size: 12px; line-height: 1.45; border-radius: 14px 14px 14px 4px; background: #E7F6DC; color: #1d2a17; box-shadow: var(--shadow); }
.lp-bubble.b1 { left: -150px; top: 70px; }
.lp-bubble.b2 { right: -160px; bottom: 60px; }
@media (max-width: 720px) {
  .lp-bubble.b1 { left: -24px; top: auto; bottom: -30px; }
  .lp-bubble.b2 { display: none; }
}
@media (min-width: 960px) {
  .lp-hero { grid-template-columns: 1.3fr 1fr; align-items: center; padding-top: 50px; padding-bottom: 90px; }
  .lp-hero > :not(.lp-phone) { grid-column: 1; }
  .lp-phone { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
}
.lp-features { display: grid; gap: 14px; padding-top: 30px; padding-bottom: 50px; }
@media (min-width: 720px) { .lp-features { grid-template-columns: repeat(3, 1fr); } }
.lp-feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.lp-feature h3 { font-size: 21px; margin: 14px 0 6px; font-weight: 450; }
.lp-feature p { color: var(--ink-2); font-size: 14.5px; }
.lp-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.lp-steps { padding-top: 20px; padding-bottom: 40px; }
.lp-steps h2 { font-size: 40px; }
.lp-steps ol { list-style: none; counter-reset: l; padding: 0; margin: 24px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 720px) { .lp-steps ol { grid-template-columns: repeat(4, 1fr); } }
.lp-steps li { counter-increment: l; background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.lp-steps li::before { content: counter(l, decimal-leading-zero); font-family: var(--serif); font-size: 30px; color: var(--brand); line-height: 1; margin-bottom: 8px; }
.lp-steps li span { color: var(--ink-2); font-size: 14px; }

/* ==========================================================================
   Esmaltou · login e cadastro
   Celular: logo + formulário. Computador: painel da marca à esquerda.
   ========================================================================== */
.site { background: #FFF3F7; }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; background: radial-gradient(90% 50% at 50% 0%, #FDE3EC 0%, #FFF3F7 60%); }
.auth-side { display: none; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(32px + var(--safe-t)) 20px calc(24px + var(--safe-b)); }
.auth-box { width: 100%; max-width: 400px; }
.auth-logo { display: block; width: 190px; margin: 0 auto 28px; }
.auth-logo img { width: 100%; height: auto; }
.auth-box h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.auth-box .sub { color: var(--muted); text-align: center; margin: 6px 0 26px; font-size: 15px; }
.auth-form { background: #fff; border-radius: 24px; padding: 22px 18px; box-shadow: 0 20px 50px -28px rgba(156, 16, 72, .35); border: 1px solid var(--line); }
.icon-input { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 8px 0 6px; border-radius: 16px; background: #FFF8FA; border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s; }
.icon-input + .icon-input { margin-top: 12px; }
.icon-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: #fff; }
.icon-input .ii { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.icon-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 0 10px; outline: none; }
.icon-input input::placeholder { color: #9C8F97; }
.icon-input .reveal { border: 0; background: none; color: var(--muted); width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.forgot { display: block; text-align: right; margin: 12px 2px 18px; color: var(--brand); font-weight: 600; font-size: 14px; }
.btn-grad {
  width: 100%; height: 56px; border: 0; border-radius: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, #991044 0%, #D52E69 100%); color: #fff; font: inherit; font-size: 16.5px; font-weight: 700;
  box-shadow: 0 14px 28px -16px rgba(153, 16, 68, .7); transition: transform .08s, filter .15s;
}
.btn-grad:hover { filter: brightness(1.06); }
.btn-grad:active { transform: scale(.985); }
.btn-grad.is-loading { opacity: .7; pointer-events: none; }
.login-alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14.5px; }
.login-alt a { color: var(--brand); font-weight: 700; margin-left: 4px; }
.auth-foot { margin-top: 28px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--muted); font-weight: 600; }

@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(420px, 1.05fr) 1fr; background: #fff; }
  .auth-side {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
    margin: 16px 0 16px 16px; padding: 44px 48px; border-radius: 32px;
    background: radial-gradient(70% 60% at 100% 100%, rgba(233, 30, 99, .22), transparent 70%), linear-gradient(160deg, #FFF5F8 0%, #FBE1EB 100%);
  }
  .auth-side .side-logo { width: 200px; height: auto; position: relative; z-index: 1; }
  .auth-side .claim { position: relative; z-index: 1; font-size: 40px; font-weight: 800; line-height: 1.12; letter-spacing: -.03em; max-width: 420px; }
  .auth-side .claim em { font-style: normal; color: var(--brand); }
  .auth-side .claim-sub { position: relative; z-index: 1; color: var(--ink-2); font-size: 16px; margin-top: 14px; max-width: 360px; }
  .auth-side .hand {
    position: absolute; right: -24px; top: 34%; transform: translateY(-50%); width: min(50%, 400px); pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%);
  }
  .auth-side .claim { font-size: clamp(30px, 2.8vw, 40px); }
  .auth-main { background: #fff; padding: 40px; }
  .auth-logo { display: none; }
  .auth-box h1, .auth-box .sub { text-align: left; }
  .auth-form { box-shadow: none; border: 0; padding: 0; border-radius: 0; }
}

.lp-nav .logo-img, .pub-foot .logo-img { height: 40px; width: auto; }
.brandmark { font-family: var(--sans); font-style: normal; font-weight: 800; color: var(--wine); }
.lp-h1 em { color: var(--brand); }
.auth-logo { width: auto; text-align: center; }
.auth-side .side-logo { display: block; }

/* Capa em formato de banner de perfil: respeita o formato da imagem, logo sobreposta */
.hero, .hero.has-cover { padding-top: 0; }
.hero-media { display: none; }
.hero-cover {
  position: relative; width: 100%; aspect-ratio: var(--ar, 3); min-height: 150px; max-height: 340px; overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% -10%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 60%),
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--brand) 22%, #fff), transparent 70%),
    var(--brand-soft);
}
.hero-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-cover.empty { aspect-ratio: auto; height: 150px; }
.hero-inner { margin-top: -54px; }
@media (min-width: 720px) {
  .hero-cover { width: calc(100% - 40px); max-width: 1080px; margin: 18px auto 0; border-radius: 26px; max-height: 300px; box-shadow: 0 18px 40px -26px rgba(80, 10, 40, .4); }
  .hero-cover.empty { height: 190px; }
  .hero-inner { margin-top: -58px; }
}
@media (max-width: 719px) {
  .hero-cover { min-height: 112px; }
  .hero-logo { width: 92px; height: 92px; }
  .hero-inner { margin-top: -46px; }
}

/* Localização no catálogo */
.geo-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--brand-line, #F8C9DA); background: #fff; color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px -8px rgba(156,16,72,.35); }
.geo-chip.measured { background: var(--brand-soft); }
.where-card .btn.measured { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.geo-area { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11.5px; font-weight: 700; color: var(--ink-2); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.geo-area { top: 10px; bottom: auto; }
.where-card .geo-map { height: 230px; }

/* ==========================================================================
   Catálogo (página pública do ateliê) · versão 2
   ========================================================================== */
.wrap-cat { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.cat-hero { position: relative; }
.cat-profile { position: relative; z-index: 2; }
.cat-id { display: flex; align-items: flex-end; gap: 18px; margin-top: -44px; }
.cat-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--surface-2), 0 12px 28px -14px rgba(80,10,40,.45); }
.cat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cat-avatar b { font-size: 32px; font-weight: 800; color: var(--brand); }
.cat-avatar.sm { width: 48px; height: 48px; box-shadow: 0 0 0 1px var(--line); }
.cat-avatar.sm b { font-size: 17px; }
.cat-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding-bottom: 6px; }
.cat-stats > * { text-align: center; line-height: 1.15; }
.cat-stats strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.cat-stats span { font-size: 12px; color: var(--muted); font-weight: 500; }
.cat-name { font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin-top: 14px; line-height: 1.15; }
.cat-tagline { color: var(--ink-2); margin-top: 4px; font-size: 15px; }
.cat-chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.cat-chip .ic { color: var(--brand); }
.cat-chip.action { color: var(--brand); border-color: var(--brand-line); cursor: pointer; }
.cat-chip.action.measured { background: var(--brand-soft); }
.cat-chip.status i { width: 8px; height: 8px; border-radius: 50%; background: #C9BCC3; }
.cat-chip.status.open { color: var(--ok); border-color: #CDE9D9; background: var(--ok-soft); }
.cat-chip.status.open i { background: var(--ok); box-shadow: 0 0 0 3px rgba(25,135,84,.18); animation: pulse 1.8s infinite; }
.cat-chip.sm { height: 24px; padding: 0 9px; font-size: 11.5px; margin-top: 4px; }
.cat-actions { display: flex; gap: 10px; margin-top: 16px; }
.cat-actions .btn { --h: 50px; border-radius: 15px; }
.cat-book { flex: 1; }

.cat-layout { display: block; margin-top: 8px; }
.cat-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cat-sec-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.cat-sec-head a, .cat-sec-head span { font-size: 13px; font-weight: 600; color: var(--brand); }
.cat-sec-head span { color: var(--muted); }

.cat-featured { margin-top: 26px; }
.cat-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.feat-card { scroll-snap-align: start; flex: 0 0 156px; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px -16px rgba(156,16,72,.35); transition: transform .15s, border-color .15s; }
.feat-card:hover { transform: translateY(-2px); border-color: var(--brand-line); }
.feat-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.feat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.feat-foot strong { font-size: 15px; font-weight: 800; color: var(--wine); }
.feat-go { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }

.cat-tabs { position: sticky; top: 0; z-index: 10; display: flex; margin: 26px -16px 0; padding: 0 16px; background: color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cat-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 14px 4px 12px; font-size: 13.5px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.cat-tabs a.on { color: var(--ink); border-color: var(--brand); }
.cat-tabs a.on .ic { color: var(--brand); }
.cat-section { padding-top: 22px; scroll-margin-top: 56px; }
.cat-section + .cat-section { margin-top: 18px; }

.cat-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 -16px; }
.cat-gallery .g-tile { aspect-ratio: 4 / 5; }
.g-cap { position: absolute; inset: auto 0 0 0; padding: 26px 10px 10px; font-size: 12px; line-height: 1.35; color: #fff; text-align: left; background: linear-gradient(to top, rgba(20,8,14,.72), transparent); opacity: 0; transition: opacity .2s; display: none; }
.cat-empty { text-align: center; padding: 34px 16px; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: 18px; }
.cat-empty .ic { margin: 0 auto 8px; color: var(--line-2); }

.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.svc:hover { border-color: var(--brand-line); box-shadow: 0 10px 24px -18px rgba(156,16,72,.4); }
.svc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.svc-name { font-weight: 700; font-size: 15.5px; }
.svc-desc { font-size: 13px; color: var(--muted); }
.svc-dur { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.svc-dur .ic { color: var(--brand); }
.svc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.svc-price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.svc-btn { height: 32px; padding: 0 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.svc:hover .svc-btn { background: var(--brand); color: #fff; }

.how { display: grid; gap: 10px; margin: 6px 0 16px; }
.how-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.how-step > span { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; }
.how-step strong { font-size: 14px; }
.how-step p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.hours-list li.today { margin: 0 -10px; padding: 7px 10px; border-radius: 10px; background: var(--brand-soft); border-top-color: transparent !important; }
.hours-list li.today span { color: var(--wine); font-weight: 700; }
.hours-list li.today + li { border-top-color: transparent; }

.cat-aside { display: none; }

@media (min-width: 640px) {
  .cat-gallery { margin: 0; gap: 8px; }
  .cat-gallery .g-tile { border-radius: 14px; }
  .g-cap { display: block; }
  .g-tile:hover .g-cap { opacity: 1; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .cat-tabs { margin: 26px 0 0; padding: 0; border-radius: 0; }
}

@media (min-width: 980px) {
  .wrap-cat { padding: 0 24px; }
  .cat-profile { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "avatar name actions" "avatar tag actions" "avatar chips actions"; column-gap: 22px; align-items: center; margin-top: -54px; }
  .cat-id { display: contents; }
  .cat-avatar:not(.sm) { grid-area: avatar; width: 132px; height: 132px; align-self: start; }
  .cat-stats { display: none; }
  .cat-name { grid-area: name; font-size: 32px; margin-top: 66px; }
  .cat-tagline { grid-area: tag; }
  .cat-chips { grid-area: chips; margin-top: 10px; }
  .cat-actions { grid-area: actions; margin-top: 66px; align-self: start; }
  .cat-actions .cat-book { flex: none; padding: 0 26px; }
  .cat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; margin-top: 12px; }
  .cat-featured { display: none; }
  .cat-tabs { margin-top: 18px; top: 0; }
  .cat-tabs a { flex: none; padding: 16px 18px 14px; }
  .cat-aside { display: block; position: sticky; top: 24px; margin-top: 18px; }
  .book-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 24px 50px -32px rgba(80,10,40,.4); }
  .book-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 18px 0 10px; }
  .book-list { display: flex; flex-direction: column; margin-bottom: 14px; border-top: 1px solid var(--line); }
  .book-list a { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
  .book-list a:hover { color: var(--brand); }
  .book-list small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
  .book-list strong { font-size: 14px; white-space: nowrap; }
  .book-perks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; }
  .book-perks li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
  .book-perks .ic { color: var(--ok); }
  .book-wa { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--brand); }
  .sticky-cta { display: none; }
}
@media (min-width: 980px) and (max-width: 1100px) { .cat-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; } }
@media (min-width: 980px) { .cat-chips { flex-wrap: wrap; overflow: visible; } }

/* ==========================================================================
   Contratação do serviço (agendamento) · versão 2
   ========================================================================== */
.wrap-bk { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.bk-head { padding-top: calc(10px + var(--safe-t)); border-bottom: 1px solid var(--line); }
.bk-head-row { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.bk-steps { list-style: none; display: flex; gap: 6px; padding-bottom: 12px; margin: 0 auto; }
.bk-steps li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 700; color: #B3A6AE; }
.bk-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.bk-steps li.done::before, .bk-steps li.cur::before { background: var(--brand); }
.bk-steps li.cur { color: var(--ink); }
.bk-steps li.done { color: var(--brand); }
.bk-steps .n { display: none; }

.bk-layout { display: block; }
.bk { padding-top: 22px; padding-bottom: calc(110px + var(--safe-b)); }
.bk-title { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.bk-sub { color: var(--muted); font-size: 14.5px; margin: 6px 0 18px; }
.bk-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }

.bk-services { display: grid; gap: 10px; }
.bk-svc { position: relative; display: block; cursor: pointer; }
.bk-svc input { position: absolute; opacity: 0; pointer-events: none; }
.bk-svc-box { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .1s; }
.bk-svc:hover .bk-svc-box { border-color: var(--brand-line); }
.bk-svc:active .bk-svc-box { transform: scale(.99); }
.bk-svc-name { display: block; font-weight: 700; font-size: 15.5px; }
.bk-svc-desc { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.bk-svc-dur { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.bk-svc-dur .ic { color: var(--brand); }
.bk-svc-price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.bk-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex-shrink: 0; transition: all .15s; }
.bk-svc input:checked + .bk-svc-box { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.bk-svc input:checked + .bk-svc-box .bk-check { background: var(--brand); border-color: var(--brand); color: #fff; }

.bk-cal { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 0 6px; }
.bk-month { padding: 0 16px 10px; font-size: 14px; color: var(--ink-2); }
.bk-cal .days { margin: 0; padding: 2px 14px 10px; }
.bk-cal .day .c i { background: var(--ok); opacity: .9; }
.bk-cal .day.on .c i { background: #fff; }
.bk-slots { margin-top: 18px; }
.slot-group + .slot-group { margin-top: 18px; }
.slot-label { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 10px; font-weight: 800; font-size: 15px; }
.slot-label span { font-size: 12px; font-weight: 600; color: var(--muted); }
.bk-slots .slots { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.bk-slots .slot { height: 46px; border-radius: 14px; font-size: 15px; }

.bk-welcome { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-radius: 18px; background: linear-gradient(120deg, #fff, var(--brand-soft)); border: 1px solid var(--brand-line); }
.bk-welcome-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.bk-welcome-ic .ic { fill: currentColor; }
.bk-welcome .link { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; color: var(--brand); white-space: nowrap; }
.bk-grid { gap: 12px; }
@media (max-width: 560px) { .bk-grid { grid-template-columns: 1fr; } .bk-grid .field.mt-0 { margin-top: 14px !important; } }

.summary { border-radius: 20px; }
.bk-foot-row { display: flex; align-items: center; gap: 12px; }
.bk-prev { --h: 50px; width: 50px; padding: 0; flex-shrink: 0; }
.bk-foot .btn-brand { --h: 50px; }

.bk-aside { display: none; }

@media (min-width: 980px) {
  .bk-head { position: sticky; top: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .bk-head-row { padding-top: 6px; }
  .bk-steps { gap: 10px; }
  .bk-steps li { flex-direction: row; align-items: center; gap: 10px; font-size: 13px; }
  .bk-steps li::before { display: none; }
  .bk-steps .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--line-2); font-size: 12px; color: var(--muted); flex-shrink: 0; transition: all .2s; }
  .bk-steps li.cur .n { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
  .bk-steps li.done .n { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
  .bk-steps li + li { position: relative; }
  .bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
  .bk { padding-top: 32px; padding-bottom: 130px; }
  .bk-title { font-size: 30px; }
  .bk-services { grid-template-columns: 1fr 1fr; }
  .bk-aside { display: block; position: sticky; top: 140px; margin-top: 32px; }
  .bk-sum-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 24px 50px -32px rgba(80,10,40,.4); }
  .bk-sum-rows { margin-top: 14px; border-top: 1px solid var(--line); }
  .bk-sum-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .bk-sum-row .ic { color: var(--brand); margin-top: 2px; }
  .bk-sum-row span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
  .bk-sum-row strong { display: block; font-size: 14px; font-weight: 700; }
  .bk-sum-row.is-empty strong { color: #C2B5BC; font-weight: 600; }
  .bk-sum-row button { background: none; border: 0; color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
  .bk-sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-weight: 700; }
  .bk-sum-total strong { font-size: 22px; font-weight: 800; color: var(--wine); }
  .bk-foot { left: 0; right: 0; }
  .bk-foot-row { max-width: 1040px; }
  .bk-foot-row > .grow { visibility: hidden; }
}
.bk-month { text-transform: none; letter-spacing: 0; }

/* Cartão de perfil do catálogo */
.pf { position: relative; z-index: 3; margin-top: -42px; }
.pf-card { background: #fff; border: 1px solid #F3E1E8; border-radius: 26px; padding: 18px; box-shadow: 0 22px 44px -28px rgba(80, 10, 40, .38); }
.pf-top { display: flex; align-items: center; gap: 14px; }
.pf-ring { flex-shrink: 0; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, #F48FB1, #E91E63, #9C1048, #D52E69, #F48FB1); }
.pf-avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; border: 3px solid #fff; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar b { font-size: 26px; font-weight: 800; color: var(--brand); }
.pf-ident { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pf-name { font-size: 23px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
.pf-tagline { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.pf-ident .cat-chip.sm { margin-top: 4px; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pf-stats > * { text-align: center; line-height: 1.2; }
.pf-stats > * + * { border-left: 1px solid var(--line); }
.pf-stats strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.pf-stats span { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pf-stats a:hover strong { color: var(--brand); }
.pf-chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.pf-chips::-webkit-scrollbar { display: none; }
.pf-actions { display: flex; gap: 10px; margin-top: 16px; }
.pf-actions .btn { --h: 50px; border-radius: 15px; }
.pf-book { flex: 1; }

@media (min-width: 980px) {
  .pf { margin-top: -64px; }
  .pf-card {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top actions" "stats chips";
    align-items: center; gap: 18px 28px; padding: 22px 26px;
  }
  .pf-top { grid-area: top; gap: 20px; }
  .pf-avatar { width: 104px; height: 104px; }
  .pf-name { font-size: 30px; }
  .pf-tagline { font-size: 15px; }
  .pf-stats { grid-area: stats; margin: 0; padding: 0; border: 0; display: flex; gap: 0; }
  .pf-stats > * { padding: 0 22px; text-align: left; }
  .pf-stats > :first-child { padding-left: 0; }
  .pf-chips { grid-area: chips; margin: 0; justify-content: flex-end; flex-wrap: wrap; overflow: visible; }
  .pf-actions { grid-area: actions; margin: 0; }
  .pf-actions .pf-book { flex: none; padding: 0 26px; }
}
@media (min-width: 980px) {
  .pf-card { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "top top actions" "stats chips chips"; }
  .pf-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .pf-ident { min-width: 0; }
  .pf-top { min-width: 0; }
}
@media (min-width: 980px) { .book-card h3 { margin-top: 0; } }
/* Espaço no fim da página para a barra flutuante não cobrir o conteúdo */
.pub-foot.wrap-cat { padding-top: 32px; padding-bottom: calc(118px + var(--safe-b)); }
@media (min-width: 980px) { .pub-foot.wrap-cat { padding-bottom: 40px; } }

/* Mapa com rota (catálogo) */
.route { position: relative; margin-top: 14px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #EEF0F2; isolation: isolate; }
.route-map { height: 300px; width: 100%; }
@media (min-width: 980px) { .route-map { height: 340px; } }
.route .leaflet-control-zoom { border: 0 !important; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35) !important; border-radius: 12px !important; overflow: hidden; }
.route .leaflet-control-zoom a { width: 32px !important; height: 32px !important; line-height: 30px !important; color: var(--ink) !important; border-color: var(--line) !important; }
.route .leaflet-control-attribution { font-size: 9px; background: rgba(255,255,255,.7) !important; padding: 0 5px; border-radius: 6px 0 0 0; color: var(--muted); }
.route .leaflet-control-attribution a { color: var(--muted); }
.pin-wrap { background: none; border: 0; }
.pin-studio { position: relative; width: 54px; height: 54px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #F48FB1, #E91E63, #9C1048, #D52E69, #F48FB1); box-shadow: 0 10px 22px -8px rgba(80, 10, 40, .55); }
.pin-studio::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -8px; border: 8px solid transparent; border-top: 10px solid #9C1048; border-bottom: 0; }
.pin-studio img, .pin-studio b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; background: #fff; object-fit: cover; font-weight: 800; color: var(--brand); font-size: 17px; }
.pin-me { position: relative; width: 24px; height: 24px; }
.pin-me i { position: absolute; inset: 4px; border-radius: 50%; background: #1D1720; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pin-me::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: rgba(29, 23, 32, .18); animation: mePulse 1.8s ease-out infinite; }
@keyframes mePulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.pin-me-label { position: absolute; left: 50%; top: 28px; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: #1D1720; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.route-flow { animation: routeFlow .9s linear infinite; }
@keyframes routeFlow { to { stroke-dashoffset: -13; } }
.route-card { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 14px 34px -14px rgba(40, 10, 25, .45); }
.route-card strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.route-card small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.route-card .route-k { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.route-card.done strong { font-size: 20px; color: var(--wine); }
.route-ic { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.route-card.done .route-ic { background: var(--grad); color: #fff; }
.route-card .btn-sm { --h: 38px; flex-shrink: 0; border-radius: 12px; }
.route { margin-top: 16px; }
.route .leaflet-tile-pane { filter: saturate(.55) contrast(.92) brightness(1.04); }
.route-map { height: 340px; }
@media (min-width: 980px) { .route-map { height: 380px; } }
.route-card strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-card.done strong { font-size: 19px; }
@media (min-width: 980px) { .route-card { left: 16px; right: auto; bottom: 16px; width: 380px; } }
/* Cartão da rota: modos e linha principal */
.route-card { flex-direction: column; align-items: stretch; gap: 10px; }
.route-main { display: flex; align-items: center; gap: 12px; }
.route-modes { display: flex; gap: 6px; }
.route-modes button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.route-modes button.on { background: #1D1720; border-color: #1D1720; color: #fff; }
.route-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--brand); cursor: pointer; }
.route-card .btn-sm { gap: 6px; }
.done-page .route { margin-top: 14px; }
.done-page .route-map { height: 300px; }
.route { container-type: inline-size; }
@container (max-width: 400px) {
  .route-main { flex-wrap: wrap; }
  .route-main > .grow { flex: 1 1 0; }
  .route-main > .btn { flex: 1 0 100%; --h: 42px; }
}
.done-page .grid-2 .btn { min-width: 0; white-space: normal; padding: 8px 10px; height: auto; min-height: 46px; line-height: 1.2; font-size: 14px; }
.done-page .route-map { height: 380px; }
