/* Frizzy · experiência do cliente 2026-08-26
   Camada visual aditiva: preserva regras, endpoints e componentes legados. */

:root {
  --client-shell: 1180px;
  --client-espresso: #301d14;
  --client-espresso-soft: #4a2d1f;
  --client-copper: #c66e31;
  --client-copper-hot: #df8645;
  --client-cream: #f6efe7;
  --client-surface: #fffaf5;
  --client-line: rgba(70, 42, 28, .12);
  --client-shadow: 0 24px 70px rgba(54, 31, 19, .12);
  /* Android e navegador comum não precisam de reserva adicional no dock. */
  --client-nav-safe-b: 0px;
}

/* No PWA instalado do iPhone o viewport cobre a região do indicador de início.
   A reserva fica restrita ao dock e aos elementos que se apoiam nele. */
html.fr-ios.fr-standalone {
  --client-nav-safe-b: env(safe-area-inset-bottom, 0px);
}

body.app-body {
  background:
    radial-gradient(circle at 8% 4%, rgba(198,110,49,.12), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(65,39,26,.08), transparent 28%),
    linear-gradient(180deg, #f9f3ec 0%, #f2e9de 100%);
}

.client-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d99667;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.client-kicker .fa-circle { font-size: 6px; }

.client-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(115deg, rgba(41,24,16,.98) 0%, rgba(65,37,23,.95) 58%, rgba(117,58,28,.88) 100%),
    url('../images/salao-wide.jpg') center/cover no-repeat;
  box-shadow: var(--client-shadow);
}

.client-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255,255,255,.025), 0 0 0 92px rgba(255,255,255,.018);
  pointer-events: none;
}

body.booking-page,
.booking-page .app-shell {
  min-height: 100%;
  max-height: none;
  height: auto;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.booking-page .app-shell { padding-bottom: calc(94px + var(--safe-b)); }

.booking-page .booking-main.app-stack {
  width: min(100%, var(--client-shell));
  height: auto;
  min-height: calc(100dvh - 104px);
  margin: 0 auto;
  padding: max(22px, calc(14px + var(--safe-t))) 24px 34px;
  gap: 22px;
  overflow: visible;
}

.booking-command-hero {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr) 230px;
  align-items: center;
  gap: 28px;
  min-height: 228px;
  padding: 28px 32px;
  border-radius: 30px;
}

.client-hero__brand,
.client-hero__brand > div { display: flex; min-width: 0; }
.client-hero__brand { align-items: center; gap: 12px; }
.client-hero__brand > div { flex-direction: column; gap: 3px; }
.client-hero__brand > div > span { color: #e8a77c; font-size: .61rem; font-weight: 850; letter-spacing: .16em; }
.client-hero__brand > div > strong { color: #f4e8df; font-size: .72rem; line-height: 1.4; }
.client-hero__logo {
  display: grid;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 22px;
  background: rgba(255,250,245,.94);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.client-hero__logo img { width: 56px; height: 58px; object-fit: contain; }

.client-hero__copy { position: relative; z-index: 1; min-width: 0; }
.client-hero__copy h1 {
  max-width: 650px;
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: .98;
}
.client-hero__copy > p { max-width: 610px; margin: 0; color: #decfc5; font-size: .92rem; line-height: 1.6; }
.client-hero__signals { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.client-hero__signals span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #f3e8df;
  font-size: .67rem;
  font-weight: 700;
}
.client-hero__signals i { color: #e69a65; }

.client-hero__account {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(12px);
}
.client-hero__account > span { margin-bottom: 12px; color: #d9bda9; font-size: .7rem; font-weight: 700; }
.client-hero__account strong { color: #fff; font-size: .82rem; }
.client-hero__account b { margin-top: 4px; color: #efaa76; font-size: 1.22rem; }
.client-hero__account small { margin-top: 5px; color: #dccbc0; font-size: .69rem; line-height: 1.45; }

.booking-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 20px;
  padding-bottom: 74px;
}
.booking-workspace__main { min-width: 0; }
.booking-workspace .booking-intro { margin: 2px 0 14px; }
.booking-workspace .booking-intro h2 { margin: 4px 0 0; font-size: 1.45rem; letter-spacing: -.04em; }
.booking-workspace .booking-intro p { margin-top: 4px; }
.booking-workspace .booking-mode { margin-bottom: 12px; }
.booking-workspace .booking-route { min-height: 430px; }
.booking-workspace .booking-route-schedule { padding: 20px; }
.booking-workspace .booking-flow { grid-template-rows: repeat(3, minmax(82px, auto)); }

.booking-assurance {
  position: sticky;
  top: 22px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--client-line);
  border-radius: 24px;
  background: rgba(255,250,245,.82);
  box-shadow: 0 18px 48px rgba(54,31,19,.08);
  backdrop-filter: blur(16px);
}
.booking-assurance__head h2 { margin: 7px 0 7px; font-size: 1.35rem; letter-spacing: -.04em; }
.booking-assurance__head p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.booking-assurance__list { display: grid; gap: 8px; margin-top: 18px; }
.booking-assurance__list > div { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--client-line); }
.booking-assurance__list > div > i { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #f3dfcf; color: var(--brand); }
.booking-assurance__list strong,
.booking-assurance__list small { display: block; }
.booking-assurance__list strong { font-size: .75rem; }
.booking-assurance__list small { margin-top: 2px; color: var(--muted); font-size: .64rem; line-height: 1.4; }
.booking-assurance__link { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--client-line); color: var(--brand); font-size: .72rem; font-weight: 800; text-decoration: none; }

/* Navegação: dock discreto, consistente em todas as telas. */
.app-nav {
  right: 50%;
  bottom: 14px;
  left: auto;
  width: min(520px, calc(100% - 32px));
  height: 68px;
  padding: 6px;
  border: 1px solid rgba(70,42,28,.12);
  border-radius: 22px;
  background: rgba(255,250,245,.88);
  box-shadow: 0 18px 55px rgba(47,27,17,.15);
  backdrop-filter: blur(20px);
  transform: translateX(50%);
}
.app-nav a { min-height: 54px; border-radius: 17px; }
.app-nav a.is-active { background: #f4e2d4; color: #9f5428; }
.app-nav .nav-ico { width: 22px; height: 22px; }

/* Sheets */
.app-overlay { padding: 26px; background: rgba(31,22,17,.54); backdrop-filter: blur(7px); }
.app-sheet { width: min(100%, 600px); max-width: 600px; max-height: min(820px, 92dvh); padding: 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; box-shadow: 0 28px 90px rgba(29,17,11,.26); }
#sheet-servico .app-sheet { max-width: 780px; }
#sheet-servico .pick-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#sheet-servico .pick-item { margin: 0; }
.app-sheet-head { margin-bottom: 18px; }
.app-sheet-head h2 { font-size: 1.2rem; }
.app-sheet-close { width: 44px; height: 44px; }
.pick-item { border-color: var(--client-line); box-shadow: 0 5px 14px rgba(54,31,19,.045); }
.pick-item:hover { border-color: rgba(198,110,49,.45); transform: translateY(-1px); }
.cal-grid .day { min-height: 43px; }
.slot-btn { min-height: 46px; }

/* Histórico */
.history-page .app-shell,
.profile-page .app-shell { width: min(100%, var(--client-shell)); margin: 0 auto; padding: 22px 24px 116px; }

.client-page-hero {
  display: grid;
  grid-template-columns: 62px minmax(0,1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 190px;
  padding: 28px 30px;
  border-radius: 28px;
}
.client-page-hero__icon { position: relative; z-index: 1; display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.08); color: #e49a68; font-size: 1.25rem; }
.client-page-hero__copy { position: relative; z-index: 1; min-width: 0; }
.client-page-hero__copy h1 { margin: 7px 0 5px; color: #fff; font-size: clamp(1.65rem,3vw,2.5rem); letter-spacing: -.05em; line-height: 1.05; }
.client-page-hero__copy p { max-width: 590px; margin: 0; color: #ddcec4; font-size: .82rem; }
.client-page-hero__stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,90px); gap: 8px; }
.client-page-hero__stats > div { padding: 13px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.065); text-align: center; }
.client-page-hero__stats strong,
.client-page-hero__stats span { display: block; }
.client-page-hero__stats strong { color: #fff; font-size: 1.3rem; }
.client-page-hero__stats span { margin-top: 2px; color: #d8c5b8; font-size: .58rem; font-weight: 700; }

.history-main { padding: 22px 0 0; }
.history-page .hist-scroll { width: 100%; max-width: none; padding: 0; }
.history-page .hist-block { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.history-page .hist-block > h2,
.history-page .hist-block > .hist-month { grid-column: 1 / -1; margin: 0 0 2px; }
.history-page .hist-card { height: 100%; margin: 0; padding: 20px; border: 1px solid var(--client-line); border-radius: 22px; background: rgba(255,250,245,.88); box-shadow: 0 14px 40px rgba(52,31,20,.07); }
.history-page .hist-card.open { grid-column: 1 / -1; border-color: rgba(198,110,49,.3); background: linear-gradient(135deg,#fffaf5,#f8e8db); }
.history-page .hist-grid { gap: 9px; }
.history-page .hist-grid .box { min-width: 0; background: #f5ede4; }
.history-page .hist-grid .box span { overflow-wrap: anywhere; }

/* Perfil */
.profile-hero {
  display: grid;
  grid-template-columns: 132px minmax(0,1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 220px;
  padding: 30px 34px;
  border-radius: 28px;
}
.profile-hero .profile-avatar-control { position: relative; z-index: 1; margin: 0; }
.profile-hero .profile-avatar { width: 112px; height: 112px; border: 4px solid rgba(255,255,255,.22); box-shadow: 0 18px 35px rgba(0,0,0,.24); }
.profile-hero .profile-avatar-edit { color: #fff; background: var(--client-copper); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.profile-hero__copy { position: relative; z-index: 1; min-width: 0; }
.profile-hero__copy h1 { margin: 8px 0 2px; color: #fff; font-size: clamp(1.7rem,3vw,2.5rem); letter-spacing: -.05em; }
.profile-hero__copy > p { margin: 0; color: #d9c8bd; }
.profile-hero__action { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(255,255,255,.09); color: #fff; font-size: .72rem; font-weight: 800; text-decoration: none; }

.profile-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); align-items: start; gap: 20px; padding-top: 22px; }
.profile-page .client-plans { width: 100%; max-width: none; margin: 0; padding: 20px; border: 1px solid var(--client-line); border-radius: 24px; background: rgba(255,250,245,.82); box-shadow: 0 14px 40px rgba(52,31,20,.07); }
.profile-page .client-plan-empty { min-height: 110px; }
.profile-form-card { padding: 22px; border: 1px solid var(--client-line); border-radius: 24px; background: rgba(255,250,245,.88); box-shadow: 0 14px 40px rgba(52,31,20,.07); }
.profile-form-card__head { margin-bottom: 18px; }
.profile-form-card__head h2 { margin: 6px 0 5px; font-size: 1.25rem; letter-spacing: -.035em; }
.profile-form-card__head p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.profile-page .form-app { width: 100%; max-width: none; margin: 0; padding: 0; background: transparent; box-shadow: none; }
.profile-page .form-app input { background: #fffdf9; }

/* Login: painel editorial em desktop, fluxo compacto no celular. */
.auth-page { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; }
.auth-brand-copy { display: none; }

@media (min-width: 820px) {
  body.auth-page { display: grid; place-items: center; padding: 28px; }
  .auth-page .auth-shell { display: grid; grid-template-columns: minmax(330px,.88fr) minmax(420px,1.12fr); align-items: stretch; gap: 0; width: min(100%, 980px); max-width: 980px; min-height: 640px; padding: 0; }
  .auth-page .auth-brand { position: relative; display: flex; overflow: hidden; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 640px; margin: 0; padding: 42px; border-radius: 30px 0 0 30px; color: #fff; text-align: left; background: linear-gradient(155deg,rgba(42,25,17,.96),rgba(86,44,23,.9)),url('../images/salao-wide.jpg') center/cover; box-shadow: var(--client-shadow); }
  .auth-page .auth-brand::after { content:""; position:absolute; right:-120px; bottom:-140px; width:360px; height:360px; border:1px solid rgba(255,255,255,.08); border-radius:50%; box-shadow:0 0 0 46px rgba(255,255,255,.025); }
  .auth-page .auth-logo-wrap { position: relative; z-index: 1; width: 112px; height: 112px; margin: 0; padding: 10px; border-radius: 24px; background: rgba(255,250,245,.94); box-shadow: 0 18px 42px rgba(0,0,0,.25); }
  .auth-page .auth-logo { width: 88px; max-width: 88px; filter: none; }
  .auth-page .auth-tagline { position: absolute; z-index: 1; top: 164px; left: 42px; color: #dba27d; }
  .auth-brand-copy { position: relative; z-index: 1; display: block; }
  .auth-brand-copy > span { color: #dfa174; font-size: .65rem; font-weight: 800; letter-spacing: .16em; }
  .auth-brand-copy h1 { max-width: 360px; margin: 10px 0; color: #fff; font-size: 2.55rem; letter-spacing: -.055em; line-height: 1; }
  .auth-brand-copy > p { margin: 0; color: #dccdc2; font-size: .83rem; line-height: 1.6; }
  .auth-brand-copy > div { display: grid; gap: 8px; margin-top: 22px; }
  .auth-brand-copy b { display: flex; align-items: center; gap: 8px; color: #f3e7df; font-size: .7rem; }
  .auth-brand-copy .auth-icon { color: #e69a65; }
  .auth-page .auth-card { align-self: center; width: calc(100% + 28px); margin-left: -28px; padding: 30px; border-radius: 26px; background: rgba(255,252,248,.96); box-shadow: 0 25px 70px rgba(39,23,15,.16); }
  .auth-page .auth-foot { grid-column: 2; margin: -56px 28px 0; z-index: 2; }
}

@media (max-width: 900px) {
  .booking-command-hero { grid-template-columns: 108px minmax(0,1fr); }
  .client-hero__brand > div,
  .client-hero__account { display: none; }
  .booking-workspace { grid-template-columns: 1fr; }
  .booking-assurance { display: none; }
  .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.booking-page {
    height: auto !important;
    max-height: none !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .booking-page .app-shell {
    height: auto !important;
    max-height: none !important;
    min-height: var(--frizzy-mobile-viewport, 100dvh);
    overflow: visible !important;
  }
  .booking-page .app-shell { padding-bottom: calc(72px + var(--client-nav-safe-b)); }
  .booking-page .booking-main.app-stack {
    width: 100%;
    height: auto !important;
    min-height: calc(var(--frizzy-mobile-viewport, 100dvh) - 72px);
    padding: calc(8px + var(--safe-t)) 14px 8px;
    gap: 10px;
    overflow: visible;
  }
  .booking-command-hero { display: grid; grid-template-columns: 72px minmax(0,1fr); min-height: 118px; padding: 14px 16px; border-radius: 22px; }
  .client-hero__brand { grid-row: 1; }
  .client-hero__logo { width: 62px; height: 62px; flex-basis: 62px; border-radius: 18px; }
  .client-hero__logo img { width: 48px; height: 50px; }
  .client-hero__copy .client-kicker,
  .client-hero__copy > p,
  .client-hero__signals { display: none; }
  .client-hero__copy h1 { margin: 0; font-size: 1.34rem; line-height: 1.06; }
  .booking-workspace { display: flex; flex: 1 1 auto; min-height: 0; align-items: stretch; }
  .booking-workspace { padding-bottom: 0; }
  .booking-workspace__main { display: flex; width: 100%; min-height: 0; flex-direction: column; }
  .booking-workspace .booking-intro { margin: 0 2px 7px; }
  .booking-workspace .booking-intro .client-kicker { display: none; }
  .booking-workspace .booking-intro h2 { font-size: 1.16rem; }
  .booking-workspace .booking-intro p { display: none; }
  .booking-workspace .booking-mode { margin-bottom: 8px; }
  .booking-workspace .booking-mode button { min-height: 52px; padding: 7px 9px; }
  .booking-workspace .booking-route { flex: 1 1 auto; min-height: 0; }
  .booking-workspace .booking-route-schedule { padding: 11px; }
  .booking-workspace .booking-flow { gap: 7px; grid-template-rows: repeat(3,minmax(58px,1fr)); }
  .booking-page .booking-step { min-height: 58px; padding: 8px 10px; grid-template-columns: 36px minmax(0,1fr) auto; }
  .booking-step-number { width: 36px; height: 36px; }
  .booking-page .booking-action-area { padding-top: 8px; }
  .booking-page .booking-action-area .btn-app { min-height: 48px; }
  .booking-page .booking-route-plan { padding: 12px; }
  .booking-plan-callout { padding: 13px; }
  .booking-plan-benefits > div { padding: 6px 4px; }

  .app-nav { right: 0; bottom: 0; left: 0; width: 100%; height: calc(68px + var(--client-nav-safe-b)); padding: 5px 10px var(--client-nav-safe-b); border-width: 1px 0 0; border-radius: 0; transform: none; }
  .app-nav a { min-height: 56px; }

  /* A barra de status continua sendo controlada pelo iOS, mas recebe o fundo
     da marca para o modo instalado parecer uma unica interface. */
  body.app-body::before {
    content: "";
    position: fixed;
    z-index: 45;
    top: 0;
    right: 0;
    left: 0;
    height: var(--safe-t);
    background: var(--client-espresso);
    pointer-events: none;
  }

  /* PWA iOS: preserva o desenho compacto e transfere o espaco livre para
     cima do cabecalho. Nenhum passo cresce para preencher a tela. */
  html.fr-ios.fr-standalone .booking-page .booking-main.app-stack {
    justify-content: flex-start;
    padding-top: clamp(128px, 19vh, 168px);
  }
  html.fr-ios.fr-standalone .booking-page .booking-command-hero,
  html.fr-ios.fr-standalone .booking-page .booking-workspace,
  html.fr-ios.fr-standalone .booking-page .booking-workspace__main,
  html.fr-ios.fr-standalone .booking-page .booking-route,
  html.fr-ios.fr-standalone .booking-page .booking-route-schedule {
    flex: 0 0 auto;
  }
  html.fr-ios.fr-standalone .booking-page .booking-workspace {
    min-height: 0;
  }
  html.fr-ios.fr-standalone .booking-page .booking-workspace__main {
    align-self: auto;
  }
  html.fr-ios.fr-standalone .booking-page .booking-flow {
    flex: 0 0 auto;
    grid-template-rows: repeat(3, 58px);
  }
  html.fr-ios.fr-standalone .booking-page .booking-step {
    height: 58px;
    min-height: 58px;
  }

  .app-overlay { align-items: flex-end; padding: 0; }
  .app-sheet { width: 100%; max-width: none; max-height: 91dvh; padding: 20px 20px calc(22px + var(--safe-b)); border-radius: 26px 26px 0 0; }
  #sheet-datahora .app-sheet { scroll-padding-bottom: calc(78px + var(--safe-b)); }
  #sheet-datahora #btn-confirmar-data {
    position: sticky;
    z-index: 6;
    bottom: 0;
    min-height: 52px;
    margin-top: 14px;
    box-shadow: 0 -10px 0 var(--bg), 0 10px 24px rgba(181,106,53,.24);
  }

	/* Android instalado: usa somente a viewport realmente visível. O calendário
	   rola por dentro, enquanto título, fechar e confirmação permanecem estáveis. */
	html.fr-android.fr-standalone .booking-page .booking-main.app-stack {
		padding-top: max(12px, calc(8px + var(--safe-t)));
	}
	html.fr-android #sheet-datahora .app-sheet {
		display: flex;
		height: min(820px, 91dvh);
		max-height: calc(var(--frizzy-mobile-viewport, 100dvh) - 8px);
		flex-direction: column;
		overflow: hidden;
		overscroll-behavior: contain;
	}
	html.fr-android #sheet-datahora .app-sheet-handle,
	html.fr-android #sheet-datahora .app-sheet-head,
	html.fr-android #sheet-datahora #btn-confirmar-data { flex: 0 0 auto; }
	html.fr-android #sheet-datahora .date-time-scroll {
		flex: 1 1 auto;
		min-height: 0;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior-y: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
	html.fr-android #sheet-datahora #btn-confirmar-data {
		position: static;
		bottom: auto;
		margin: 12px 0 0;
		box-shadow: 0 10px 24px rgba(181,106,53,.24);
	}
  #sheet-servico .app-sheet { max-width: none; }
  #sheet-servico .pick-list { grid-template-columns: 1fr; }
  .cal-grid .day { min-height: 40px; }

  .history-page .app-shell,
  .profile-page .app-shell { width: 100%; padding: calc(10px + var(--safe-t)) 14px calc(92px + var(--client-nav-safe-b)); }
  .client-page-hero { grid-template-columns: 46px minmax(0,1fr); min-height: 142px; padding: 18px; border-radius: 22px; }
  .client-page-hero__icon { width: 44px; height: 44px; border-radius: 14px; }
  .client-page-hero__copy h1 { margin-top: 5px; font-size: 1.45rem; }
  .client-page-hero__copy p { font-size: .7rem; }
  .client-page-hero__stats { grid-column: 1 / -1; grid-template-columns: repeat(3,1fr); width: 100%; }
  .client-page-hero__stats > div { padding: 8px 6px; }
  .client-page-hero__stats strong { font-size: 1rem; }
  .history-main { padding-top: 14px; }
  .history-page .hist-block { grid-template-columns: 1fr; gap: 10px; }
  .history-page .hist-card.open { grid-column: auto; }
  .history-page .hist-card { padding: 16px; border-radius: 19px; }
  .history-page .hist-grid { grid-template-columns: 1fr; }
  .history-page .hist-grid .box { min-height: 0; padding: 11px 12px; }
  .history-page .hist-grid .box span { font-size: .8rem; }

  .profile-hero { grid-template-columns: 88px minmax(0,1fr); min-height: 160px; padding: 20px; border-radius: 22px; }
  .profile-hero .profile-avatar { width: 82px; height: 82px; }
  .profile-hero .profile-avatar-edit { padding: 4px 7px; font-size: .55rem; }
  .profile-hero__copy h1 { margin-top: 6px; font-size: 1.32rem; }
  .profile-hero__copy > p { font-size: .74rem; }
  .profile-hero__copy .client-hero__signals { display: none; }
  .profile-hero__action { grid-column: 1 / -1; justify-content: center; width: 100%; min-height: 40px; }
  .profile-layout { gap: 12px; padding-top: 14px; }
  .profile-page .client-plans,
  .profile-form-card { padding: 16px; border-radius: 20px; }
}

/* O CTA principal permanece visivel nos celulares baixos e em WebViews/PWAs.
   O modal fica acima dele (z-index 50), sem receber qualquer sobreposicao. */
@media (max-width: 480px) {
  .booking-page .booking-route-schedule {
    padding-bottom: 72px;
  }
  .booking-page #btn-agendar {
    position: fixed;
    z-index: 44;
    right: 14px;
    bottom: calc(68px + var(--client-nav-safe-b) + 8px);
    left: 14px;
    width: auto;
    min-height: 52px;
    box-shadow: 0 12px 30px rgba(87,45,21,.3);
  }
  .booking-page .booking-action-area {
    min-height: 56px;
  }
}

@media (max-height: 520px) and (max-width: 900px) {
  .booking-page .booking-route-schedule { padding-bottom: 72px; }
  .booking-page #btn-agendar {
    position: fixed;
    z-index: 44;
    bottom: calc(var(--nav-h) + var(--safe-b) + 8px);
    left: 50%;
    width: min(480px, calc(100% - 28px));
    min-height: 48px;
    transform: translateX(-50%);
    box-shadow: 0 12px 30px rgba(87,45,21,.3);
  }
}

@media (max-width: 640px) and (min-height: 760px) {
  .booking-command-hero { grid-template-rows: auto auto; }
  .booking-command-hero .client-hero__account {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 2px 12px;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 13px;
  }
  .booking-command-hero .client-hero__account > span { display: none; }
  .booking-command-hero .client-hero__account strong { font-size: .67rem; }
  .booking-command-hero .client-hero__account b { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: .83rem; }
  .booking-command-hero .client-hero__account small { margin: 0; font-size: .58rem; }
}

@media (max-width: 390px), (max-height: 720px) and (max-width: 640px) {
  .booking-command-hero { min-height: 96px; padding: 10px 13px; }
  .client-hero__logo { width: 52px; height: 52px; flex-basis: 52px; }
  .client-hero__logo img { width: 40px; height: 42px; }
  .client-hero__copy h1 { font-size: 1.18rem; }
  .booking-workspace .booking-mode button small { display: none; }
  .booking-workspace .booking-mode button { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .pick-item { transition: none !important; }
}
