/*
 * Radar Hora Beauty — Fundação Mobile V28.2.51.15
 * Camada exclusivamente visual e de ergonomia. Não altera dados, permissões,
 * financeiro, agenda, Supabase ou regras dos módulos.
 */

:root {
  --hb-safe-top: env(safe-area-inset-top, 0px);
  --hb-safe-right: env(safe-area-inset-right, 0px);
  --hb-safe-bottom: env(safe-area-inset-bottom, 0px);
  --hb-safe-left: env(safe-area-inset-left, 0px);
  --hb-app-height: 100dvh;
  --hb-app-width: 100vw;
  --hb-mobile-nav-height: 72px;
  --hb-touch-size: 44px;
}

html {
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.hb-mobile-runtime,
body.hb-mobile-runtime #root {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.hb-mobile-runtime #root {
  height: var(--hb-app-height) !important;
  max-height: var(--hb-app-height) !important;
  overflow-x: hidden !important;
}

body.hb-mobile-runtime,
body.hb-mobile-runtime button,
body.hb-mobile-runtime input,
body.hb-mobile-runtime select,
body.hb-mobile-runtime textarea {
  -webkit-tap-highlight-color: transparent;
}

.hb-mobile-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--hb-app-height) !important;
  overflow-x: clip;
}

.hb-app-header {
  padding-top: calc(12px + var(--hb-safe-top)) !important;
  padding-right: max(16px, var(--hb-safe-right)) !important;
  padding-left: max(16px, var(--hb-safe-left)) !important;
}

.hb-header-leading,
.hb-header-actions {
  min-width: 0;
}

.hb-header-actions {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hb-header-actions::-webkit-scrollbar,
.hb-bottom-scroll::-webkit-scrollbar {
  display: none;
}

.hb-app-content {
  min-width: 0;
  max-width: 100%;
  padding-bottom: calc(96px + var(--hb-safe-bottom)) !important;
}

.hb-app-content > *,
.hb-app-content section,
.hb-app-content article,
.hb-app-content form,
.hb-app-content .hb-card {
  min-width: 0;
  max-width: 100%;
}

.hb-app-content img,
.hb-app-content video,
.hb-app-content canvas,
.hb-app-content iframe,
.hb-dialog-overlay img,
.hb-dialog-overlay video,
.hb-dialog-overlay canvas {
  max-width: 100%;
}

.hb-bottom-nav {
  height: calc(var(--hb-mobile-nav-height) + var(--hb-safe-bottom)) !important;
  padding-bottom: var(--hb-safe-bottom) !important;
  box-sizing: border-box !important;
  transition: transform .2s ease, opacity .2s ease;
}

.hb-bottom-nav-item {
  touch-action: manipulation;
}

.hb-bottom-nav-item:active {
  transform: scale(.94);
}

.hb-bottom-nav-item.hb-nav-featured:active {
  transform: translateY(-25px) scale(.94) !important;
}

.hb-bottom-nav-label {
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hb-mobile-drawer {
  padding-top: calc(16px + var(--hb-safe-top)) !important;
  padding-bottom: calc(16px + var(--hb-safe-bottom)) !important;
}

body.hb-keyboard-open .hb-bottom-nav {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

body.hb-keyboard-open .hb-app-content {
  padding-bottom: 18px !important;
}

/* Celulares */
@media (max-width: 767px) {
  :root {
    --hb-mobile-nav-height: 70px;
  }

  body.hb-mobile-runtime {
    overscroll-behavior-y: none;
  }

  .hb-app-header {
    min-height: calc(66px + var(--hb-safe-top));
    gap: 8px !important;
    padding-right: max(10px, var(--hb-safe-right)) !important;
    padding-bottom: 10px !important;
    padding-left: max(10px, var(--hb-safe-left)) !important;
  }

  .hb-header-leading {
    flex: 0 0 auto;
  }

  .hb-header-actions {
    flex: 1 1 auto;
    justify-content: flex-end !important;
    gap: 8px !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 0;
    scroll-snap-type: x proximity;
  }

  .hb-header-actions > * {
    flex: 0 0 auto;
    scroll-snap-align: end;
  }

  .hb-role-switcher {
    width: min(43vw, 180px) !important;
    min-width: 112px !important;
    max-width: 180px !important;
    height: 34px !important;
    padding: 4px 28px 4px 10px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px !important;
  }

  .hb-app-logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }

  .hb-app-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px max(10px, var(--hb-safe-right)) calc(94px + var(--hb-safe-bottom)) max(10px, var(--hb-safe-left)) !important;
    overflow-x: hidden;
  }

  .hb-app-content h1 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere;
  }

  .hb-app-content h2 {
    font-size: clamp(21px, 6vw, 28px) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
  }

  .hb-app-content h3 {
    font-size: clamp(17px, 5vw, 22px);
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .hb-app-content p,
  .hb-app-content small,
  .hb-app-content label,
  .hb-app-content span {
    overflow-wrap: anywhere;
  }

  .hb-app-content .hb-card {
    border-radius: 15px !important;
  }

  .hb-app-content .hb-in,
  .hb-dialog-input,
  .hb-app-content input:not([type="checkbox"]):not([type="radio"]),
  .hb-app-content select,
  .hb-app-content textarea {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    font-size: 16px !important;
  }

  .hb-app-content textarea {
    min-height: 104px;
    resize: vertical;
  }

  .hb-app-content .hb-btn {
    min-height: var(--hb-touch-size);
    touch-action: manipulation;
  }

  .hb-app-content [style*="display: flex"][style*="justify-content: space-between"] {
    flex-wrap: wrap !important;
  }

  .hb-app-content [style*="display: flex"][style*="gap:"] > * {
    min-width: 0;
  }

  /* Formulários e painéis largos passam a uma coluna no celular. */
  .hb-app-content [style*="display: grid"]:not(.hb-products-grid):not(.hb-totem-pacotes-grid):not(.hb-mural-grid):not(.hb-mobile-menu-grid):not(.hb-agenda-day-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hb-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hb-mural-grid,
  .hb-totem-pacotes-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Tabelas permanecem utilizáveis por rolagem, sem quebrar toda a tela. */
  .hb-app-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .hb-app-content table th,
  .hb-app-content table td {
    min-width: 112px;
  }

  .hb-mobile-drawer {
    width: min(92vw, 390px) !important;
    max-width: 92vw !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .hb-dialog-overlay {
    align-items: flex-end !important;
    padding: 10px max(8px, var(--hb-safe-right)) max(8px, var(--hb-safe-bottom)) max(8px, var(--hb-safe-left)) !important;
  }

  .hb-dialog-box {
    width: 100% !important;
    max-height: min(86dvh, calc(var(--hb-app-height) - 18px));
    overflow-y: auto;
    border-radius: 22px 22px 14px 14px !important;
    padding: 18px 16px calc(16px + var(--hb-safe-bottom)) !important;
  }

  .hb-dialog-btn {
    min-height: 46px;
    flex: 1 1 130px;
  }

  .hb-install-banner {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .hb-install-banner .hb-btn {
    width: 100%;
  }

  .hb-bottom-nav {
    background: color-mix(in srgb, var(--bg-surface) 94%, transparent) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .hb-bottom-scroll {
    padding-top: 7px !important;
    scroll-snap-type: x proximity;
  }

  .hb-bottom-nav-item {
    flex-basis: 72px !important;
    min-width: 72px !important;
    scroll-snap-align: center;
    font-size: 9px !important;
  }

  .hb-bottom-nav-label {
    max-width: 68px;
  }
}

/* Celulares pequenos */
@media (max-width: 390px) {
  .hb-header-actions {
    gap: 6px !important;
  }

  .hb-header-actions button:not(.hb-header-menu),
  .hb-header-actions .hb-app-logo {
    transform: scale(.94);
  }

  .hb-role-switcher {
    width: 124px !important;
    min-width: 106px !important;
  }

  .hb-products-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Tablets: evita painéis espremidos, mantendo boa densidade. */
@media (min-width: 768px) and (max-width: 1180px) {
  .hb-app-content {
    padding-right: max(18px, var(--hb-safe-right)) !important;
    padding-left: max(18px, var(--hb-safe-left)) !important;
  }

  .hb-app-content [style*="display: grid"][style*="repeat(4"]:not(.hb-products-grid):not(.hb-totem-pacotes-grid):not(.hb-mobile-menu-grid):not(.hb-agenda-day-grid),
  .hb-app-content [style*="display: grid"][style*="repeat(5"]:not(.hb-products-grid):not(.hb-totem-pacotes-grid):not(.hb-mobile-menu-grid):not(.hb-agenda-day-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Paisagem em celular: preserva espaço útil sem cobrir o conteúdo. */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --hb-mobile-nav-height: 58px; }

  .hb-app-header {
    min-height: calc(54px + var(--hb-safe-top));
    padding-top: calc(6px + var(--hb-safe-top)) !important;
    padding-bottom: 6px !important;
  }

  .hb-bottom-nav-label {
    display: none !important;
  }

  .hb-bottom-nav-item.hb-nav-featured {
    transform: translateY(-18px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-mobile-shell *,
  .hb-dialog-overlay *,
  .hb-bottom-nav * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ========================================================================== 
   EXPERIÊNCIA MOBILE REAL — V28.2.51.16
   Splash de marca + tela inicial própria do aplicativo.
   ========================================================================== */

.hb-mobile-brand {
  flex: 0 0 auto;
  position: relative;
  border: 1px solid;
  border-radius: 28%;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025));
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hb-mobile-brand::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}

.hb-mobile-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hb-mobile-brand span {
  font-size: 34%;
  font-weight: 950;
  letter-spacing: -.04em;
}

.hb-mobile-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100%;
  min-height: var(--hb-app-height, 100dvh);
  padding: calc(24px + var(--hb-safe-top)) max(22px, var(--hb-safe-right)) calc(24px + var(--hb-safe-bottom)) max(22px, var(--hb-safe-left));
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hb-mobile-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--hb-splash-accent) 15%, transparent), transparent 38%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.12));
  pointer-events: none;
}

.hb-mobile-splash-light {
  color: #14211d;
}

.hb-mobile-splash-dark {
  color: #fff;
}

.hb-mobile-splash-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .28;
  background: var(--hb-splash-accent);
  animation: hb-mobile-orb 7s ease-in-out infinite alternate;
}

.hb-mobile-splash-orb-a {
  width: 230px;
  height: 230px;
  top: -86px;
  right: -92px;
}

.hb-mobile-splash-orb-b {
  width: 170px;
  height: 170px;
  bottom: -70px;
  left: -58px;
  animation-delay: -2.4s;
}

.hb-mobile-splash-content {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hb-mobile-splash-logo-wrap {
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 26px;
}

.hb-mobile-splash-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--hb-splash-accent) 58%, transparent);
  animation: hb-mobile-splash-pulse 2.2s ease-out infinite;
}

.hb-mobile-splash-ring-a { inset: 12px; }
.hb-mobile-splash-ring-b { inset: -4px; animation-delay: .72s; }

.hb-mobile-splash-logo {
  z-index: 2;
  animation: hb-mobile-logo-float 2.8s ease-in-out infinite;
}

.hb-mobile-splash-copy small {
  display: block;
  margin-bottom: 10px;
  color: var(--hb-splash-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .19em;
}

.hb-mobile-splash-copy h1 {
  margin: 0;
  font-size: clamp(33px, 10vw, 48px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 950;
}

.hb-mobile-splash-copy p {
  margin: 14px 0 0;
  max-width: 310px;
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: 14px;
  line-height: 1.55;
}

.hb-mobile-splash-progress {
  width: min(230px, 68vw);
  height: 5px;
  margin-top: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.hb-mobile-splash-progress span {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--hb-splash-accent), transparent);
  animation: hb-mobile-progress 1.25s ease-in-out infinite;
}

.hb-mobile-splash-status {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: color-mix(in srgb, currentColor 56%, transparent);
  font-size: 11px;
  font-weight: 700;
}

.hb-mobile-home {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: var(--hb-app-height, 100dvh);
  overflow-x: hidden;
  padding: calc(14px + var(--hb-safe-top)) max(16px, var(--hb-safe-right)) calc(104px + var(--hb-safe-bottom)) max(16px, var(--hb-safe-left));
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hb-mobile-home-dark {
  color: #f5faf7;
  background:
    radial-gradient(circle at 84% 3%, color-mix(in srgb, var(--hb-mobile-accent) 18%, transparent), transparent 29%),
    linear-gradient(180deg, #0a0d0c 0%, #0d1210 46%, #090b0a 100%);
}

.hb-mobile-home-light {
  color: #18231f;
  background:
    radial-gradient(circle at 84% 3%, color-mix(in srgb, var(--hb-mobile-accent) 22%, transparent), transparent 31%),
    linear-gradient(180deg, #f7fbf9 0%, #eff6f2 55%, #f8faf9 100%);
}

.hb-mobile-home-glow {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(30px);
  background: var(--hb-mobile-accent);
  pointer-events: none;
  opacity: .13;
}

.hb-mobile-home-glow-a {
  width: 210px;
  height: 210px;
  right: -120px;
  top: 220px;
}

.hb-mobile-home-glow-b {
  width: 150px;
  height: 150px;
  left: -100px;
  top: 560px;
}

.hb-mobile-home-header {
  position: relative;
  z-index: 3;
  min-height: 54px;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
}

.hb-mobile-home-brandline {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hb-mobile-home-brandline > div:last-child {
  min-width: 0;
}

.hb-mobile-home-brandline small,
.hb-mobile-home-brandline strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hb-mobile-home-brandline small {
  color: color-mix(in srgb, currentColor 55%, transparent);
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850;
}

.hb-mobile-home-brandline strong {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.025em;
}

.hb-mobile-home-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hb-mobile-icon-btn,
.hb-mobile-avatar {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
}

.hb-mobile-avatar {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--hb-mobile-accent) 56%, transparent);
}

.hb-mobile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hb-mobile-icon-btn:active,
.hb-mobile-avatar:active,
.hb-mobile-action-card:active,
.hb-mobile-primary-card:active,
.hb-mobile-home-dock button:active {
  transform: scale(.96);
}

.hb-mobile-home-main {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  margin: 0 auto;
}

.hb-mobile-welcome {
  margin: 31px 1px 21px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hb-mobile-welcome > div {
  min-width: 0;
}

.hb-mobile-welcome span:first-child {
  display: block;
  color: var(--hb-mobile-accent);
  font-size: 13px;
  font-weight: 850;
}

.hb-mobile-welcome h1 {
  margin: 6px 0 6px;
  max-width: 300px;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.05;
  letter-spacing: -.055em;
  font-weight: 950;
}

.hb-mobile-welcome p {
  margin: 0;
  max-width: 310px;
  color: color-mix(in srgb, currentColor 58%, transparent);
  font-size: 12px;
  line-height: 1.5;
}

.hb-mobile-status-pill {
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--hb-mobile-accent) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--hb-mobile-accent) 9%, transparent);
  color: var(--hb-mobile-accent);
  font-size: 9px !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex !important;
  align-items: center;
  gap: 5px;
}

.hb-mobile-status-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hb-mobile-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-mobile-accent) 18%, transparent);
}

.hb-mobile-primary-card {
  position: relative;
  width: 100%;
  min-height: 154px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--hb-mobile-accent) 40%, transparent);
  border-radius: 25px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hb-mobile-accent) 21%, transparent), color-mix(in srgb, var(--hb-mobile-accent) 5%, transparent)),
    color-mix(in srgb, currentColor 5%, transparent);
  color: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) 32px;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,.14);
  cursor: pointer;
  touch-action: manipulation;
}

.hb-mobile-primary-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -48px;
  top: -64px;
  border-radius: 50%;
  border: 28px solid color-mix(in srgb, var(--hb-mobile-accent) 12%, transparent);
}

.hb-mobile-primary-icon {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--hb-mobile-accent);
  color: #06120d;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--hb-mobile-accent) 30%, transparent);
}

.hb-mobile-primary-copy {
  min-width: 0;
}

.hb-mobile-primary-copy small {
  display: block;
  color: var(--hb-mobile-accent);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .15em;
}

.hb-mobile-primary-copy h2 {
  margin: 7px 0 6px;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 950;
}

.hb-mobile-primary-copy p {
  margin: 0;
  color: color-mix(in srgb, currentColor 61%, transparent);
  font-size: 11px;
  line-height: 1.5;
}

.hb-mobile-primary-arrow {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, currentColor 9%, transparent);
  color: var(--hb-mobile-accent);
}

.hb-mobile-section-title {
  margin: 27px 2px 13px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.hb-mobile-section-title small {
  display: block;
  color: var(--hb-mobile-accent);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .15em;
}

.hb-mobile-section-title h2 {
  margin: 4px 0 0;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 900;
}

.hb-mobile-section-title > span {
  color: color-mix(in srgb, currentColor 48%, transparent);
  font-size: 10px;
  font-weight: 750;
}

.hb-mobile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 11px;
}

.hb-mobile-action-card {
  position: relative;
  min-height: 143px;
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, currentColor 4.5%, transparent);
  color: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  overflow: hidden;
  touch-action: manipulation;
  box-shadow: 0 9px 25px rgba(0,0,0,.06);
}

.hb-mobile-home-light .hb-mobile-action-card,
.hb-mobile-home-light .hb-mobile-icon-btn,
.hb-mobile-home-light .hb-mobile-avatar,
.hb-mobile-home-light .hb-mobile-info-card {
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 30px rgba(26,50,39,.07);
}

.hb-mobile-action-card::before {
  content: "";
  position: absolute;
  inset: auto -35px -42px auto;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hb-mobile-accent) 8%, transparent);
}

.hb-mobile-action-icon {
  width: 43px;
  height: 43px;
  margin-bottom: 15px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--hb-mobile-accent) 13%, transparent);
  color: var(--hb-mobile-accent);
}

.hb-mobile-action-card strong {
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.hb-mobile-action-card small {
  display: block;
  max-width: calc(100% - 10px);
  margin-top: 4px;
  color: color-mix(in srgb, currentColor 50%, transparent);
  font-size: 9.5px;
  line-height: 1.35;
}

.hb-mobile-action-chevron {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: color-mix(in srgb, var(--hb-mobile-accent) 78%, transparent);
}

.hb-mobile-action-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d62;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 950;
  box-shadow: 0 5px 13px rgba(255,77,98,.28);
}

.hb-mobile-info-card {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, currentColor 9%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, currentColor 4%, transparent);
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
}

.hb-mobile-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--hb-mobile-accent) 12%, transparent);
  color: var(--hb-mobile-accent);
}

.hb-mobile-info-card strong {
  display: block;
  font-size: 11px;
  font-weight: 900;
}

.hb-mobile-info-card p {
  margin: 4px 0 0;
  color: color-mix(in srgb, currentColor 50%, transparent);
  font-size: 9px;
  line-height: 1.4;
}

.hb-mobile-info-card > span {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ff4d62;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 950;
}

.hb-mobile-home-dock {
  position: fixed;
  z-index: 100;
  left: max(10px, var(--hb-safe-left));
  right: max(10px, var(--hb-safe-right));
  bottom: max(9px, var(--hb-safe-bottom));
  height: 72px;
  padding: 8px 8px 7px;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 25px;
  background: color-mix(in srgb, #111713 91%, transparent);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  align-items: end;
}

.hb-mobile-home-light .hb-mobile-home-dock {
  color: #25342d;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 42px rgba(38,72,55,.16);
}

.hb-mobile-home-dock button {
  position: relative;
  height: 52px;
  min-width: 0;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, currentColor 48%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  touch-action: manipulation;
}

.hb-mobile-home-dock button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 800;
}

.hb-mobile-home-dock button.active {
  color: var(--hb-mobile-accent);
}

.hb-mobile-home-dock button.featured {
  width: 59px;
  height: 59px;
  margin: 0 auto 10px;
  border-radius: 20px;
  background: var(--hb-mobile-accent);
  color: #07110c;
  box-shadow: 0 11px 25px color-mix(in srgb, var(--hb-mobile-accent) 33%, transparent);
}

.hb-mobile-home-dock button.featured span {
  color: #07110c;
  font-weight: 950;
}

.hb-mobile-home-dock button i {
  position: absolute;
  top: 5px;
  right: calc(50% - 15px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d62;
  box-shadow: 0 0 0 3px color-mix(in srgb, #ff4d62 18%, transparent);
}

.hb-mobile-return-home {
  display: none;
}

@media (max-width: 767px) {
  .hb-mobile-return-home {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--primary-neon) 40%, transparent);
    background: color-mix(in srgb, var(--primary-neon) 10%, transparent);
    color: var(--primary-neon);
  }

  body.hb-mobile-launcher-open {
    position: static !important;
    overflow: hidden !important;
  }

  body.hb-mobile-launcher-open #root {
    overflow: hidden !important;
  }
}

@media (min-width: 768px) {
  .hb-mobile-home,
  .hb-mobile-splash-content {
    max-width: 680px;
  }

  .hb-mobile-home {
    margin: 0 auto;
  }
}

@media (max-width: 370px) {
  .hb-mobile-home {
    padding-right: max(11px, var(--hb-safe-right));
    padding-left: max(11px, var(--hb-safe-left));
  }

  .hb-mobile-home-header {
    grid-template-columns: 40px minmax(0,1fr) auto;
    gap: 8px;
  }

  .hb-mobile-icon-btn,
  .hb-mobile-avatar {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .hb-mobile-home-brandline .hb-mobile-brand {
    width: 40px !important;
    height: 40px !important;
  }

  .hb-mobile-welcome h1 {
    font-size: 27px;
  }

  .hb-mobile-action-grid {
    gap: 8px;
  }

  .hb-mobile-action-card {
    min-height: 136px;
    padding: 12px;
  }
}

@keyframes hb-mobile-splash-pulse {
  0% { transform: scale(.72); opacity: .72; }
  82%, 100% { transform: scale(1.18); opacity: 0; }
}

@keyframes hb-mobile-logo-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.025); }
}

@keyframes hb-mobile-progress {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(300%); }
}

@keyframes hb-mobile-orb {
  from { transform: translate3d(-8px, -6px, 0) scale(.96); }
  to { transform: translate3d(10px, 12px, 0) scale(1.08); }
}

/* V28.2.51.17 — Tela inicial mobile orientada a ações rápidas */
.hb-mobile-welcome-compact {
  margin-top: 24px;
  margin-bottom: 17px;
  align-items: center;
}

.hb-mobile-welcome-compact h1 {
  max-width: none;
  font-size: clamp(27px, 7.5vw, 38px);
}

.hb-mobile-theme-mini {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hb-mobile-notification-button {
  position: relative;
}

.hb-mobile-notification-button i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff4d62;
  box-shadow: 0 0 0 3px color-mix(in srgb, #ff4d62 19%, transparent);
}

.hb-mobile-search {
  position: relative;
  min-height: 54px;
  margin-bottom: 15px;
  padding: 0 12px 0 15px;
  border: 1px solid color-mix(in srgb, currentColor 11%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, currentColor 4.5%, transparent);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.hb-mobile-home-light .hb-mobile-search {
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 28px rgba(26,50,39,.06);
}

.hb-mobile-search.is-active,
.hb-mobile-search:focus-within {
  border-color: color-mix(in srgb, var(--hb-mobile-accent) 62%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-mobile-accent) 10%, transparent);
}

.hb-mobile-search > svg {
  color: var(--hb-mobile-accent);
}

.hb-mobile-search input {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
}

.hb-mobile-search input::placeholder {
  color: color-mix(in srgb, currentColor 43%, transparent);
}

.hb-mobile-search button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: color-mix(in srgb, currentColor 7%, transparent);
  color: color-mix(in srgb, currentColor 63%, transparent);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hb-mobile-primary-card-compact {
  min-height: 128px;
  padding: 17px;
  border-radius: 22px;
}

.hb-mobile-primary-card-compact .hb-mobile-primary-copy h2 {
  font-size: 19px;
}

.hb-mobile-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
}

.hb-mobile-quick-action {
  position: relative;
  min-width: 0;
  min-height: 105px;
  padding: 11px 7px 9px;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, currentColor 4.5%, transparent);
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

.hb-mobile-home-light .hb-mobile-quick-action,
.hb-mobile-home-light .hb-mobile-function-row {
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 28px rgba(26,50,39,.06);
}

.hb-mobile-quick-action:active,
.hb-mobile-function-row:active,
.hb-mobile-theme-mini:active {
  transform: scale(.97);
}

.hb-mobile-quick-icon {
  width: 43px;
  height: 43px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--hb-mobile-accent) 14%, transparent);
  color: var(--hb-mobile-accent);
}

.hb-mobile-quick-action strong {
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10px;
  line-height: 1.22;
  font-weight: 900;
}

.hb-mobile-premium-label {
  margin-top: -3px;
  color: #e3b54a;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 7.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hb-mobile-function-group {
  margin-top: 24px;
}

.hb-mobile-section-title-list,
.hb-mobile-section-title-search {
  margin-top: 0;
  margin-bottom: 10px;
}

.hb-mobile-function-list {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, currentColor 9%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, currentColor 3.5%, transparent);
}

.hb-mobile-home-light .hb-mobile-function-list {
  background: rgba(255,255,255,.46);
}

.hb-mobile-function-row {
  position: relative;
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto 20px;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.hb-mobile-function-row:last-child {
  border-bottom: 0;
}

.hb-mobile-function-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--hb-mobile-accent) 12%, transparent);
  color: var(--hb-mobile-accent);
}

.hb-mobile-function-copy {
  min-width: 0;
}

.hb-mobile-function-copy strong,
.hb-mobile-function-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hb-mobile-function-copy strong {
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.25;
}

.hb-mobile-function-copy small {
  margin-top: 4px;
  color: color-mix(in srgb, currentColor 49%, transparent);
  font-size: 9.5px;
  line-height: 1.3;
}

.hb-mobile-function-premium {
  padding: 5px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #e3b54a 45%, transparent);
  background: color-mix(in srgb, #e3b54a 10%, transparent);
  color: #e3b54a;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 7.5px;
  font-weight: 950;
  text-transform: uppercase;
}

.hb-mobile-function-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4d62;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 950;
}

.hb-mobile-function-arrow {
  color: color-mix(in srgb, currentColor 35%, transparent);
}

.hb-mobile-search-results {
  animation: hb-mobile-results-in .18s ease-out;
}

@keyframes hb-mobile-results-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 380px) {
  .hb-mobile-quick-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .hb-mobile-quick-action {
    min-height: 96px;
  }

  .hb-mobile-function-row {
    grid-template-columns: 42px minmax(0,1fr) auto 18px;
  }

  .hb-mobile-function-premium {
    display: none;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .hb-mobile-quick-grid {
    gap: 12px;
  }

  .hb-mobile-quick-action {
    min-height: 116px;
  }
}

/* ========================================================================== 
   RADAR HORA BEAUTY — CASCO PERMANENTE DE APLICATIVO V28.2.51.18
   Cabeçalho e navegação persistentes, histórico mobile e conteúdo sem cortes.
   ========================================================================== */

@media (max-width: 767px) {
  body.hb-mobile-runtime,
  body.hb-mobile-runtime #root {
    width: var(--hb-app-width, 100vw) !important;
    height: var(--hb-app-height, 100dvh) !important;
    max-width: var(--hb-app-width, 100vw) !important;
    max-height: var(--hb-app-height, 100dvh) !important;
    overflow: hidden !important;
  }

  body.hb-mobile-runtime #root {
    position: relative;
  }

  .hb-mobile-shell,
  .hb-mobile-shell *,
  .hb-mobile-home,
  .hb-mobile-home * {
    box-sizing: border-box;
  }

  .hb-app-root.hb-mobile-shell.hb-native-shell-active {
    width: var(--hb-app-width, 100vw) !important;
    height: var(--hb-app-height, 100dvh) !important;
    min-height: 0 !important;
    max-width: var(--hb-app-width, 100vw) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
  }

  /* O cabeçalho desktop não aparece dentro do aplicativo mobile. */
  .hb-app-root.hb-mobile-shell.hb-native-shell-active > .hb-app-header {
    display: none !important;
  }

  .hb-mobile-app-header {
    position: relative;
    z-index: 1200;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    min-height: calc(64px + var(--hb-safe-top));
    padding: calc(9px + var(--hb-safe-top)) max(11px, var(--hb-safe-right)) 9px max(11px, var(--hb-safe-left));
    border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .hb-mobile-app-header-dark {
    color: #f5faf7;
    background: rgba(9, 14, 11, .94);
  }

  .hb-mobile-app-header-light {
    color: #18231f;
    background: rgba(248, 252, 250, .94);
  }

  .hb-mobile-app-header-back,
  .hb-mobile-app-header-action,
  .hb-mobile-app-header-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, currentColor 5%, transparent);
    color: inherit;
    display: grid;
    place-items: center;
    cursor: pointer;
    touch-action: manipulation;
  }

  .hb-mobile-app-header-back {
    color: var(--hb-mobile-accent);
    border-color: color-mix(in srgb, var(--hb-mobile-accent) 38%, transparent);
    background: color-mix(in srgb, var(--hb-mobile-accent) 9%, transparent);
  }

  .hb-mobile-app-header-brand {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
    cursor: pointer;
  }

  .hb-mobile-app-header-brand > span {
    min-width: 0;
  }

  .hb-mobile-app-header-brand small,
  .hb-mobile-app-header-brand strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hb-mobile-app-header-brand small {
    color: color-mix(in srgb, currentColor 52%, transparent);
    font-size: 8px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .hb-mobile-app-header-brand strong {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 950;
  }

  .hb-mobile-app-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .hb-mobile-app-header-avatar {
    overflow: hidden;
    border-color: color-mix(in srgb, var(--hb-mobile-accent) 45%, transparent);
  }

  .hb-mobile-app-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hb-mobile-app-header-action i {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ff4d62;
    box-shadow: 0 0 0 3px color-mix(in srgb, #ff4d62 18%, transparent);
  }

  /* A área central rola como uma tela nativa; cabeçalho e dock permanecem. */
  .hb-app-root.hb-mobile-shell.hb-native-shell-active > .hb-app-content {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-top: 12px !important;
    padding-bottom: calc(var(--hb-mobile-nav-height) + 34px + var(--hb-safe-bottom)) !important;
    scroll-padding-top: 12px;
    scroll-padding-bottom: calc(var(--hb-mobile-nav-height) + 34px + var(--hb-safe-bottom));
  }

  .hb-app-content > * {
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .hb-mobile-app-dock {
    position: fixed;
    z-index: 1250;
    left: max(9px, var(--hb-safe-left));
    right: max(9px, var(--hb-safe-right));
    bottom: max(8px, var(--hb-safe-bottom));
    width: auto;
    height: 72px;
    padding: 8px 7px 7px;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: 24px;
    background: rgba(16, 23, 19, .94);
    color: #eff8f3;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
  }

  .hb-theme-light .hb-mobile-app-dock {
    color: #24342c;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 42px rgba(34, 67, 50, .16);
  }

  .hb-mobile-app-dock button {
    position: relative;
    min-width: 0;
    height: 52px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: color-mix(in srgb, currentColor 50%, transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    touch-action: manipulation;
  }

  .hb-mobile-app-dock button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 8px;
    line-height: 1;
    font-weight: 850;
  }

  .hb-mobile-app-dock button.active {
    color: var(--primary-neon, #7fd3a7);
  }

  .hb-mobile-app-dock button.featured {
    width: 59px;
    height: 59px;
    margin: 0 auto 10px;
    border-radius: 20px;
    background: var(--primary-neon, #7fd3a7);
    color: #06110c;
    box-shadow: 0 11px 27px color-mix(in srgb, var(--primary-neon, #7fd3a7) 34%, transparent);
  }

  .hb-mobile-app-dock button.featured span {
    color: #06110c;
    font-weight: 950;
  }

  .hb-mobile-app-dock button i {
    position: absolute;
    top: 5px;
    right: calc(50% - 16px);
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ff4d62;
  }

  /* A home também vira uma tela permanente: só o conteúdo central rola. */
  .hb-mobile-home {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: 100vw !important;
    height: var(--hb-app-height, 100dvh);
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
  }

  .hb-mobile-home-header {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    padding: calc(12px + var(--hb-safe-top)) max(14px, var(--hb-safe-right)) 10px max(14px, var(--hb-safe-left));
  }

  .hb-mobile-home-main {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
    min-height: 0;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 max(14px, var(--hb-safe-right)) calc(var(--hb-mobile-nav-height) + 38px + var(--hb-safe-bottom)) max(14px, var(--hb-safe-left));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* O aplicativo usa o mesmo rodapé configurável do sistema.
     Os docks mobile paralelos ficam desativados para não duplicar a navegação. */
  .hb-mobile-home-dock,
  .hb-mobile-app-dock {
    display: none !important;
  }

  .hb-bottom-nav {
    display: block !important;
    z-index: 1250 !important;
  }

  body.hb-keyboard-open .hb-bottom-nav {
    transform: translateY(130%);
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 430px) {
  .hb-mobile-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .hb-mobile-quick-action {
    min-height: 96px;
  }

  .hb-mobile-function-row {
    grid-template-columns: 44px minmax(0, 1fr) auto 18px;
  }

  .hb-mobile-function-premium {
    display: none;
  }

  .hb-mobile-app-header-actions {
    gap: 5px;
  }

  .hb-mobile-app-header-action,
  .hb-mobile-app-header-avatar {
    width: 39px;
    height: 39px;
    min-width: 39px;
  }
}

/* ========================================================================== 
   RADAR HORA BEAUTY — NAVEGAÇÃO MOBILE V28.2.51.21
   Menu em colunas e agenda diária preservada por profissional.
   ========================================================================== */

@media (max-width: 767px) {
  /* O menu do aplicativo deve ser uma grade de atalhos, nunca uma lista. */
  .hb-app-content .hb-mobile-menu-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
  }

  .hb-app-content .hb-mobile-menu-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 82px !important;
    padding: 9px 4px 8px !important;
    border-radius: 14px !important;
    white-space: normal !important;
  }

  .hb-app-content .hb-mobile-menu-button > span:last-of-type {
    white-space: normal !important;
    line-height: 1.2;
    text-align: center;
  }

  .hb-app-content .hb-mobile-menu-button > span:first-of-type {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
  }

  .hb-app-content .hb-mobile-menu-button > span:first-of-type svg {
    width: 18px !important;
    height: 18px !important;
  }

  .hb-app-content .hb-mobile-menu-button > span:last-of-type {
    font-size: 8.5px !important;
    line-height: 1.15 !important;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* O atalho principal (Agenda/Buscar/Painel) deve ter ícone maior que os demais. */
  .hb-mobile-app-dock button.featured svg {
    width: 29px !important;
    height: 29px !important;
    stroke-width: 2.25 !important;
    flex: 0 0 auto;
  }

  /* Mantém a agenda original: horário fixo e um profissional por coluna. */
  .hb-agenda-day-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-left: 52px;
    touch-action: pan-x pan-y;
    scrollbar-width: thin;
  }

  .hb-app-content .hb-agenda-day-grid {
    --hb-agenda-mobile-col: clamp(240px, 78vw, 360px);
    display: grid !important;
    grid-template-columns: 52px repeat(var(--hb-agenda-cols), var(--hb-agenda-mobile-col)) !important;
    width: max-content !important;
    min-width: max-content !important;
    align-items: stretch;
  }

  .hb-agenda-prof-header {
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .hb-agenda-time-cell {
    width: 52px;
    min-width: 52px;
    z-index: 3 !important;
  }

  .hb-agenda-slot-cell {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .hb-app-content .hb-mobile-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .hb-app-content .hb-mobile-menu-button {
    min-height: 78px !important;
  }

  .hb-app-content .hb-agenda-day-grid {
    --hb-agenda-mobile-col: calc(100vw - 88px);
  }
}



/* ==========================================================================
   RADAR HORA BEAUTY — RODAPÉ PADRÃO CONFIGURÁVEL V28.2.51.22
   O app reutiliza o mesmo BottomNav controlado em Admin → Módulos.
   ========================================================================== */


/* ========================================================================== 
   RADAR HORA BEAUTY — ACABAMENTO VISUAL MOBILE V28.2.51.23
   Remove bordas externas claras e suaviza a apresentação da tela inicial.
   ========================================================================== */

@media (max-width: 767px) {
  html,
  body.hb-mobile-runtime,
  body.hb-mobile-runtime #root {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background-color: var(--bg-body, #090d0b) !important;
  }

  body.hb-mobile-runtime {
    inset: 0;
  }

  body.hb-mobile-runtime #root,
  .hb-app-root.hb-mobile-shell,
  .hb-app-root.hb-mobile-shell.hb-native-shell-active,
  .hb-app-root.hb-mobile-shell.hb-native-home-active {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-color: var(--bg-body, #090d0b) !important;
  }

  .hb-mobile-welcome-compact {
    margin-top: 22px;
    margin-bottom: 16px;
  }

  .hb-mobile-welcome-compact span:first-child {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .01em;
  }

  .hb-mobile-welcome-compact h1 {
    max-width: 290px;
    margin-top: 7px;
    margin-bottom: 7px;
    font-size: clamp(23px, 6.3vw, 31px);
    line-height: 1.14;
    letter-spacing: -.035em;
    font-weight: 800;
    text-wrap: balance;
  }

  .hb-mobile-welcome-compact p {
    max-width: 285px;
    font-size: 12px;
    line-height: 1.45;
    color: color-mix(in srgb, currentColor 54%, transparent);
  }
}
