:root {
  --nails-dark: #591c31;
  --nails-primary: #7c334c;
  --nails-secondary: #934761;
  --nails-medium: #a8617b;
  --nails-soft: #f0c1d1;
  --nails-light: #ffd9e7;

  --nails-card: #fffafb;
  --nails-card-soft: #fff0f5;

  --nails-text: #591c31;
  --nails-text-muted: #8a5a6a;
  --nails-white: #ffffff;

  --nails-border: rgba(89, 28, 49, 0.1);
  --nails-border-light: rgba(255, 255, 255, 0.2);

  --nails-shadow: 0 14px 32px rgba(89, 28, 49, 0.16);

  --nails-shadow-soft: 0 8px 20px rgba(89, 28, 49, 0.1);
}

/* Página */

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--nails-text);
  background: var(--nails-dark);
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;

  background: linear-gradient(180deg, #591c31 0%, #a8617b 100%);
}

/* Cabeçalho */

.principal-header {
  width: 100%;
  padding: max(16px, env(safe-area-inset-top)) 16px 0;
}

.principal-nav {
  width: 100%;
  min-height: 44px;

  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px 44px;
  align-items: center;
  gap: 12px;
}

.nav-link {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);

  box-shadow: 0 5px 14px rgba(45, 8, 21, 0.12);

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.15);
}

.nav-link svg {
  width: 20px;
  height: 20px;
}

.principal-title {
  margin: 0;

  font-size: 16px;
  font-weight: 600;
  text-align: center;

  color: #ffffff;
}

/* Perfil */

.profile-card {
  width: 100%;
  margin-top: 16px;
  padding: 15px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.09);

  box-shadow: 0 8px 20px rgba(45, 8, 21, 0.11);
}

.profile-info {
  min-width: 0;
  flex: 1;
}

.profile-info .profile-greeting {
  margin: 0 0 3px;

  font-size: 10px;
  font-weight: 500;

  color: rgba(255, 255, 255, 0.7);
}

.profile-info .profile-name {
  margin: 0;

  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;

  color: #ffffff;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  flex-shrink: 0;

  overflow: hidden;

  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;

  background: #ffffff;

  box-shadow: 0 7px 16px rgba(45, 8, 21, 0.16);
}

.profile-avatar img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
}

/* Pesquisa */

.header-actions {
  width: 100%;
  margin-top: 12px;
}

.search-form {
  position: relative;

  width: 100%;

  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  min-width: 0;
  min-height: 48px;

  padding: 0 54px 0 15px;

  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 15px;
  outline: none;

  font-size: 12px;

  color: #591c31;
  background: rgba(255, 255, 255, 0.94);

  box-shadow: 0 7px 18px rgba(45, 8, 21, 0.12);
}

.search-input::placeholder {
  color: rgba(89, 28, 49, 0.52);
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.9);

  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.14),
    0 7px 18px rgba(45, 8, 21, 0.14);
}

.search-btn {
  position: absolute;
  top: 50%;
  right: 5px;

  width: 38px;
  height: 38px;
  padding: 0;

  display: grid;
  place-items: center;

  border-radius: 11px;

  color: #ffffff;
  background: #7c334c;

  transform: translateY(-50%);
}

.search-btn svg {
  width: 17px;
  height: 17px;
}

.search-btn svg path,
.search-btn svg circle {
  stroke: currentColor;
}

/* Conteúdo */

.app-content {
  width: 100%;
  min-width: 0;
  flex: 1;

  margin: 0;
  padding: 22px 16px max(28px, env(safe-area-inset-bottom));

  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.principal-main {
  width: 100%;
  min-width: 0;

  display: grid;
  gap: 20px;
}
.cliente-principal {
  width: 100%;
  min-width: 0;

  display: grid;
  gap: 18px;
}
/* Serviços sem card externo */

.principal-services {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;
  box-shadow: none;
}

.section-heading {
  margin-bottom: 13px;
}

.section-heading--inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-eyebrow {
  display: block;
  margin-bottom: 3px;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-heading h3 {
  margin: 0;

  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.section-heading p {
  margin: 5px 0 0;

  font-size: 10.5px;
  line-height: 1.45;
}

.principal-services .section-eyebrow {
  color: #f0c1d1;
}

.principal-services .section-heading h3 {
  color: #ffffff;
}

.principal-services .section-heading p {
  max-width: 300px;
  color: rgba(255, 255, 255, 0.7);
}

/* Cards de serviços */

.services-list {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;

  display: grid;
  gap: 10px;

  list-style: none;
}

.services-list li {
  width: 100%;
  min-width: 0;
}

.service-row {
  width: 100%;
  min-width: 0;
  min-height: 72px;
  padding: 11px 12px;

  display: flex;
  align-items: center;
  gap: 12px;

  border: 1px solid rgba(89, 28, 49, 0.08);
  border-radius: 16px;

  color: #591c31;
  background: rgba(255, 250, 252, 0.97);

  box-shadow: 0 7px 17px rgba(66, 18, 35, 0.11);

  -webkit-tap-highlight-color: transparent;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

button.service-row {
  border-width: 1px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.principal-catalog-back {
  min-height: 34px;
  padding: 0 3px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.principal-catalog-empty {
  margin: 0;
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  line-height: 1.5;
}

.principal-catalog-empty strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 12px;
}

.principal-catalog-empty p {
  margin: 0;
}

.service-row:hover,
.service-row:focus-visible {
  transform: translateY(-2px);

  box-shadow: 0 10px 22px rgba(66, 18, 35, 0.15);
}

.service-row:active {
  transform: scale(0.99);
}

.service-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  overflow: hidden;

  border: 1px solid rgba(168, 97, 123, 0.2);
  border-radius: 14px;

  color: #7c334c;
  background: rgba(240, 193, 209, 0.36);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Impede que imagens antigas reapareçam dentro dos ícones */

.service-icon img,
.categoria-img {
  display: none !important;
}

.service-content {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.service-label {
  display: block;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;

  color: #591c31;
}

.service-description {
  display: block;

  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.4;

  color: rgba(89, 28, 49, 0.66);
}

.service-chevron {
  width: 28px;
  height: 28px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: #7c334c;
  background: rgba(240, 193, 209, 0.34);
}

.service-chevron svg {
  width: 14px;
  height: 14px;
}

/* Vitrine */

.principal-gallery {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 16px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;

  background: rgba(255, 250, 252, 0.96);

  box-shadow: 0 10px 24px rgba(66, 18, 35, 0.13);
}

.principal-gallery .section-heading {
  margin-bottom: 13px;
}

.principal-gallery .section-eyebrow {
  color: #a8617b;
}

.principal-gallery .section-heading h3 {
  color: #591c31;
}

.section-link {
  flex-shrink: 0;

  padding: 6px 8px;

  border-radius: 9px;

  font-size: 9px;
  font-weight: 600;

  color: #7c334c;
  background: rgba(240, 193, 209, 0.32);
}

.gallery-row {
  width: 100%;
  min-width: 0;
  max-width: 100%;

  display: flex;
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 2px 2px 5px;

  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.gallery-row::-webkit-scrollbar {
  display: none;
}

.gallery-row img,
.foto-vitrine,
.vitrine-img {
  width: 128px;
  height: 164px;
  flex: 0 0 128px;

  display: block;
  object-fit: cover;

  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;

  box-shadow: 0 7px 18px rgba(89, 28, 49, 0.14);

  cursor: pointer;
  scroll-snap-align: start;

  -webkit-tap-highlight-color: transparent;
}

.vitrine-empty {
  width: 100%;
  min-height: 120px;
  padding: 18px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(89, 28, 49, 0.2);
  border-radius: 16px;
  color: #591c31;
  background: rgba(255, 240, 245, 0.7);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* Lightbox */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  background: rgba(20, 5, 11, 0.94);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#lightbox.active {
  display: flex;
}

#lightbox.hidden {
  display: none;
}

#lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1010;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  font-size: 34px;
  line-height: 1;

  color: var(--nails-white);
  background: rgba(255, 255, 255, 0.12);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 1010;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  font-size: 32px;

  color: var(--nails-white);
  background: rgba(255, 255, 255, 0.14);

  transform: translateY(-50%);
}

#lightbox-prev {
  left: 10px;
}

#lightbox-next {
  right: 10px;
}

#lightbox-content {
  width: 100%;
  height: 100%;

  overflow: hidden;

  display: flex;
  align-items: center;
}

#lightbox-carousel {
  width: 100%;
  height: 80vh;

  display: flex;

  overflow-x: auto;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

#lightbox-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-img {
  min-width: 100%;
  height: 100%;

  object-fit: contain;

  scroll-snap-align: center;
  pointer-events: none;
}

.lightbox-gallery-btn {
  position: absolute;
  bottom: 24px;
  z-index: 1010;

  min-height: 46px;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  font-size: 13px;
  font-weight: 600;

  color: var(--nails-dark);
  background: var(--nails-soft);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Telas menores */

@media (max-width: 380px) {
  .principal-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .app-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .profile-card {
    padding: 14px;
  }

  .profile-avatar {
    width: 54px;
    height: 54px;
  }

  .profile-info .profile-name {
    font-size: 17px;
  }

  .service-row {
    padding: 10px;
    gap: 10px;
  }

  .service-icon {
    width: 45px;
    height: 45px;
  }

  .service-description {
    font-size: 9px;
  }

  .principal-gallery {
    padding: 14px;
  }

  .gallery-row img,
  .foto-vitrine,
  .vitrine-img {
    width: 116px;
    height: 150px;
    flex-basis: 116px;
  }
  /* Resultado da busca */

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .services-list > li[hidden] {
    display: none !important;
  }

  .search-btn {
    color: #7c334c;
  }

  /* Termo encontrado dentro da categoria */

  .service-match {
    width: fit-content;
    margin-top: 6px;
    padding: 4px 7px;

    display: inline-flex;
    align-items: center;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 600;
    line-height: 1;

    color: #7c334c;
    background: rgba(240, 193, 209, 0.5);
  }

  .service-match[hidden] {
    display: none !important;
  }
  /* Correção definitiva do retorno da busca */

  body[data-page="principal"] .header-actions {
    width: 100%;
    min-width: 0;
  }

  body[data-page="principal"] .search-box {
    width: 100%;
    min-width: 0;

    display: grid;
    gap: 8px;
  }
}
/* ============================================================
   CONTROLE DE VISIBILIDADE POR PERFIL
   ============================================================ */

body[data-page="principal"] [hidden] {
  display: none !important;
}

.principal-nav-placeholder {
  width: 42px;
  height: 42px;

  display: block;
}

/* ============================================================
   COMPLEMENTOS DO CARD DE PERFIL
   ============================================================ */

.profile-heading-row {
  width: 100%;
  margin-bottom: 4px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-heading-row .profile-greeting {
  margin: 0;
}

.profile-description {
  max-width: 280px;
  margin: 6px 0 0;

  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.45;

  color: rgba(255, 255, 255, 0.68);
}

.profile-role-badge {
  min-height: 21px;
  padding: 0 8px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;

  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
}

/* Alternância local de contexto da demonstração. */
.demo-role-switch {
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 3px;
  display: inline-flex;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.demo-role-switch button {
  min-height: 27px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}

.demo-role-switch button[aria-pressed="true"] {
  color: #591c31;
  background: #f0c1d1;
}

.demo-role-switch button:focus-visible,
.demo-unavailable-notice button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.demo-unavailable-notice {
  position: fixed;
  z-index: 130;
  left: 50%;
  bottom: max(94px, calc(82px + env(safe-area-inset-bottom)));
  width: min(456px, calc(100% - 24px));
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(89, 28, 49, 0.12);
  border-radius: 15px;
  color: #591c31;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(45, 8, 21, 0.2);
  font-size: 12px;
  line-height: 1.45;
  transform: translateX(-50%);
}

.demo-unavailable-notice[hidden] {
  display: none;
}

.demo-unavailable-notice span {
  flex: 1;
}

.demo-unavailable-notice button {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: #fff0f5;
  font-size: 20px;
  cursor: pointer;
}

/* ============================================================
   ESTADO DE CARREGAMENTO E ERRO
   ============================================================ */

.principal-access-loading {
  width: 100%;
  min-height: 118px;
  padding: 18px;

  display: flex;
  align-items: center;
  gap: 14px;

  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);

  box-shadow: 0 8px 20px rgba(45, 8, 21, 0.11);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.principal-access-loading strong {
  display: block;

  font-size: 13px;
  font-weight: 700;
}

.principal-access-loading p {
  margin: 4px 0 0;

  font-size: 9.5px;
  line-height: 1.45;

  color: rgba(255, 255, 255, 0.68);
}

.principal-loading-spinner {
  width: 34px;
  height: 34px;
  flex-shrink: 0;

  display: block;

  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;

  animation: principal-loading-spin 0.8s linear infinite;
}

.principal-access-loading--error {
  border-color: rgba(255, 217, 231, 0.34);

  background: rgba(89, 28, 49, 0.42);
}

@keyframes principal-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   ÁREA ADMINISTRATIVA
   ============================================================ */

.admin-principal {
  width: 100%;
  min-width: 0;
}

.admin-section-heading {
  margin-bottom: 16px;
}

.admin-section-heading .section-eyebrow {
  color: #f0c1d1;
}

.admin-section-heading h2 {
  margin: 0;

  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;

  color: #ffffff;
}

.admin-section-heading p {
  max-width: 335px;
  margin: 6px 0 0;

  font-size: 10.5px;
  line-height: 1.5;

  color: rgba(255, 255, 255, 0.7);
}

/* Card de apresentação administrativa */

.admin-welcome-card {
  width: 100%;
  min-width: 0;
  padding: 15px;

  display: flex;
  align-items: center;
  gap: 13px;

  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);

  box-shadow: 0 8px 20px rgba(45, 8, 21, 0.11);

  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.admin-welcome-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;

  color: #591c31;
  background: #f0c1d1;

  box-shadow: 0 7px 16px rgba(45, 8, 21, 0.15);
}

.admin-welcome-icon svg {
  width: 24px;
  height: 24px;
}

.admin-welcome-card > div {
  min-width: 0;
}

.admin-welcome-eyebrow {
  display: block;
  margin-bottom: 3px;

  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: #f0c1d1;
}

.admin-welcome-card strong {
  display: block;

  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-welcome-card p {
  margin: 4px 0 0;

  font-size: 9px;
  line-height: 1.45;

  color: rgba(255, 255, 255, 0.66);
}

/* Cards de navegação administrativa */

.admin-actions-grid {
  width: 100%;
  margin-top: 14px;

  display: grid;
  gap: 10px;
}

.admin-action-card {
  width: 100%;
  min-width: 0;
  min-height: 92px;
  padding: 13px;

  display: flex;
  align-items: center;
  gap: 12px;

  border: 1px solid rgba(89, 28, 49, 0.08);
  border-radius: 18px;

  text-decoration: none;

  color: #591c31;
  background: rgba(255, 250, 252, 0.97);

  box-shadow: 0 8px 19px rgba(66, 18, 35, 0.12);

  -webkit-tap-highlight-color: transparent;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.admin-action-card:hover,
.admin-action-card:focus-visible {
  transform: translateY(-2px);

  border-color: rgba(124, 51, 76, 0.17);

  box-shadow: 0 12px 25px rgba(66, 18, 35, 0.16);
}

.admin-action-card:active {
  transform: scale(0.99);
}

.admin-action-card--featured {
  color: #ffffff;

  border-color: rgba(255, 255, 255, 0.15);

  background:
    radial-gradient(
      circle at 92% 5%,
      rgba(240, 193, 209, 0.2),
      transparent 34%
    ),
    linear-gradient(135deg, #591c31 0%, #7c334c 55%, #934761 100%);

  box-shadow: 0 10px 24px rgba(45, 8, 21, 0.2);
}

.admin-action-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgba(168, 97, 123, 0.19);
  border-radius: 15px;

  color: #7c334c;
  background: rgba(240, 193, 209, 0.4);
}

.admin-action-card--featured .admin-action-icon {
  border-color: rgba(255, 255, 255, 0.16);

  color: #591c31;
  background: #f0c1d1;
}

.admin-action-icon svg {
  width: 25px;
  height: 25px;
}

.admin-action-content {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
}

.admin-action-eyebrow {
  margin-bottom: 2px;

  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: #a8617b;
}

.admin-action-card--featured .admin-action-eyebrow {
  color: #f0c1d1;
}

.admin-action-content strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.admin-action-content small {
  margin-top: 4px;

  font-size: 8.8px;
  font-weight: 400;
  line-height: 1.4;

  color: rgba(89, 28, 49, 0.64);
}

.admin-action-card--featured .admin-action-content small {
  color: rgba(255, 255, 255, 0.68);
}

.admin-action-arrow {
  width: 30px;
  height: 30px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: #7c334c;
  background: rgba(240, 193, 209, 0.36);
}

.admin-action-card--featured .admin-action-arrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.admin-action-arrow svg {
  width: 15px;
  height: 15px;
}

/* ============================================================
   AJUSTES DE PERFIL POR FUNÇÃO
   ============================================================ */

body[data-user-role="admin"] .profile-card {
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(240, 193, 209, 0.13),
      transparent 40%
    ),
    rgba(255, 255, 255, 0.09);
}

body[data-user-role="admin"] .profile-role-badge {
  color: #591c31;
  background: #f0c1d1;
}

body[data-user-role="cliente"] .profile-role-badge {
  color: rgba(255, 255, 255, 0.88);
}

/* ============================================================
   TELAS MENORES
   ============================================================ */

@media (max-width: 380px) {
  .profile-description {
    max-width: 230px;

    font-size: 9px;
  }

  .profile-role-badge {
    padding: 0 6px;

    font-size: 7px;
  }

  .admin-section-heading h2 {
    font-size: 19px;
  }

  .admin-welcome-card {
    padding: 13px;
    gap: 11px;
  }

  .admin-welcome-icon {
    width: 44px;
    height: 44px;
  }

  .admin-action-card {
    min-height: 86px;
    padding: 11px;
    gap: 10px;
  }

  .admin-action-icon {
    width: 46px;
    height: 46px;
  }

  .admin-action-content strong {
    font-size: 13px;
  }

  .admin-action-content small {
    font-size: 8.3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .principal-loading-spinner {
    animation-duration: 1.5s;
  }
}
/* ============================================================
   CARDS ADMINISTRATIVOS — ESTADO PADRÃO E CLIQUE
   ============================================================ */

body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"],
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"],
body[data-page="principal"] #admin-principal-content a[href="dashboard.html"] {
  width: 100%;
  min-width: 0;

  color: #591c31 !important;
  background: #fffafb !important;

  border: 1px solid rgba(89, 28, 49, 0.08) !important;

  box-shadow: 0 10px 24px rgba(66, 18, 35, 0.13);

  transform: none;

  transition:
    transform 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

/* Ícone e seta no estado normal */

body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"]
  [class*="icon"],
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"]
  [class*="icon"],
body[data-page="principal"]
  #admin-principal-content
  a[href="dashboard.html"]
  [class*="icon"],
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"]
  [class*="arrow"],
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"]
  [class*="arrow"],
body[data-page="principal"]
  #admin-principal-content
  a[href="dashboard.html"]
  [class*="arrow"] {
  color: #7c334c !important;
  background: #fbe5ed !important;
}

/* Textos no estado normal */

body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"]
  [class*="eyebrow"],
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"]
  [class*="eyebrow"],
body[data-page="principal"]
  #admin-principal-content
  a[href="dashboard.html"]
  [class*="eyebrow"] {
  color: #a8617b !important;
}

body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"]
  strong,
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"]
  strong,
body[data-page="principal"]
  #admin-principal-content
  a[href="dashboard.html"]
  strong,
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"]
  h3,
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"]
  h3,
body[data-page="principal"]
  #admin-principal-content
  a[href="dashboard.html"]
  h3 {
  color: #591c31 !important;
}

body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"]
  p,
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"]
  p,
body[data-page="principal"]
  #admin-principal-content
  a[href="dashboard.html"]
  p {
  color: rgba(89, 28, 49, 0.66) !important;
}

/* Hover somente em dispositivos com mouse */

@media (hover: hover) and (pointer: fine) {
  body[data-page="principal"]
    #admin-principal-content
    a[href="admin-agendamentos.html"]:hover,
  body[data-page="principal"]
    #admin-principal-content
    a[href="admin-servicos.html"]:hover,
  body[data-page="principal"]
    #admin-principal-content
    a[href="dashboard.html"]:hover {
    transform: translateY(-2px);

    border-color: rgba(124, 51, 76, 0.24) !important;

    box-shadow: 0 14px 30px rgba(66, 18, 35, 0.17);
  }
}

/* Feedback visual durante o clique */

body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"]:active,
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"]:active,
body[data-page="principal"]
  #admin-principal-content
  a[href="dashboard.html"]:active {
  color: #ffffff !important;
  background: #7c334c !important;

  border-color: #7c334c !important;

  transform: scale(0.985);

  box-shadow: 0 7px 18px rgba(45, 8, 21, 0.22);
}

body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"]:active
  *,
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"]:active
  *,
body[data-page="principal"]
  #admin-principal-content
  a[href="dashboard.html"]:active
  * {
  color: #ffffff !important;
}

body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"]:active
  [class*="icon"],
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"]:active
  [class*="icon"],
body[data-page="principal"]
  #admin-principal-content
  a[href="dashboard.html"]:active
  [class*="icon"],
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"]:active
  [class*="arrow"],
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"]:active
  [class*="arrow"],
body[data-page="principal"]
  #admin-principal-content
  a[href="dashboard.html"]:active
  [class*="arrow"] {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

/* Foco pelo teclado sem deixar o card escuro */

body[data-page="principal"]
  #admin-principal-content
  a[href="admin-agendamentos.html"]:focus-visible,
body[data-page="principal"]
  #admin-principal-content
  a[href="admin-servicos.html"]:focus-visible,
body[data-page="principal"]
  #admin-principal-content
  a[href="dashboard.html"]:focus-visible {
  outline: 3px solid rgba(255, 217, 231, 0.72);
  outline-offset: 3px;
}
/* ============================================================
   BOTÃO DE LOGOUT ADMINISTRATIVO
   ============================================================ */

.principal-logout-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);

  box-shadow: 0 6px 16px rgba(45, 8, 21, 0.13);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.principal-logout-button svg {
  width: 20px;
  height: 20px;

  display: block;

  margin: 0;
}

.principal-logout-button:hover,
.principal-logout-button:focus-visible {
  transform: translateY(-1px);

  background: rgba(255, 255, 255, 0.15);

  box-shadow: 0 8px 20px rgba(45, 8, 21, 0.17);
}

.principal-logout-button:active {
  transform: scale(0.97);
}

.principal-logout-button:disabled {
  cursor: wait;
  opacity: 0.55;
}
/* ============================================================
   NAVEGAÇÃO INFERIOR — CLIENTE
   ============================================================ */

.client-navigation {
  position: fixed;
  z-index: 120;

  left: 50%;
  bottom: 12px;

  width: calc(100% - 24px);
  max-width: 456px;
  min-height: 68px;

  display: none;
  grid-template-columns: repeat(4, 1fr);

  padding: 7px;

  border: 1px solid rgba(89, 28, 49, 0.09);
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.92);

  box-shadow: 0 14px 36px rgba(89, 28, 49, 0.16);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transform: translateX(-50%);
}

body[data-user-role="cliente"] .client-navigation {
  display: grid;
}

body[data-user-role="cliente"] .app-content {
  padding-bottom: max(112px, env(safe-area-inset-bottom));
}

.client-navigation-item {
  min-width: 0;
  min-height: 54px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 4px;

  border-radius: 16px;

  color: rgba(89, 28, 49, 0.58);

  font-size: 9px;
  font-weight: 700;
  line-height: 1;

  text-decoration: none;

  -webkit-tap-highlight-color: transparent;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.client-navigation-item:hover,
.client-navigation-item:focus-visible {
  color: var(--nails-primary);

  background: rgba(240, 193, 209, 0.26);
}

.client-navigation-item:active {
  transform: scale(0.96);
}

.client-navigation-item svg {
  width: 21px;
  height: 21px;

  display: block;
}

.client-navigation-item--active {
  color: #ffffff;

  background: linear-gradient(135deg, var(--nails-dark), var(--nails-primary));

  box-shadow: 0 7px 17px rgba(89, 28, 49, 0.2);
}

.client-navigation-item--active:hover,
.client-navigation-item--active:focus-visible {
  color: #ffffff;

  background: linear-gradient(135deg, var(--nails-dark), var(--nails-primary));
}

@media (max-width: 380px) {
  .client-navigation {
    width: calc(100% - 18px);

    bottom: 9px;

    min-height: 64px;

    padding: 6px;

    border-radius: 20px;
  }

  .client-navigation-item {
    min-height: 52px;

    font-size: 8.5px;
  }

  .client-navigation-item svg {
    width: 20px;
    height: 20px;
  }
}
/* ============================================================
   CARD DE ATIVAÇÃO DAS NOTIFICAÇÕES
   ============================================================ */

.principal-push-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(89, 28, 49, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #fff6f9);
  box-shadow: 0 4px 18px rgba(89, 28, 49, 0.05);
}

.principal-push-card[hidden],
.principal-push-button[hidden] {
  display: none !important;
}

.principal-push-icon {
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(89, 28, 49, 0.09);
  color: #591c31;
}

.principal-push-icon svg {
  width: 24px;
  height: 24px;
}

.principal-push-content {
  flex: 1;
  min-width: 0;
}

.principal-push-content strong {
  display: block;
  margin-bottom: 4px;
  color: #591c31;
  font-size: 14px;
  font-weight: 600;
}

.principal-push-content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #6b5960;
}

.principal-push-content .principal-push-status {
  margin-top: 5px;
  font-size: 11px;
}

.principal-push-status:empty {
  display: none;
}

.principal-push-button {
  flex-shrink: 0;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: #591c31;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.principal-push-button:hover {
  background: #762742;
}

.principal-push-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 640px) {
  .principal-push-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .principal-push-icon {
    align-self: start;
  }

  .principal-push-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
  }
}
/* ============================================================
   CENTRAL DE NOTIFICAÇÕES - NUVÉ DEMO STUDIOS
   ============================================================ */

.principal-notification-bell {
  position: relative;
  padding: 0;
  cursor: pointer;
}

.principal-notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #591c31;
  border-radius: 99px;
  background: #ffdae6;
  color: #591c31;
  font-size: 10px;
  font-weight: 700;
}

.principal-notification-overlay {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(72px, calc(env(safe-area-inset-top) + 60px)) 12px 20px;
  background: rgba(34, 8, 19, 0.62);
  backdrop-filter: blur(4px);
}

.principal-notification-panel {
  width: 100%;
  max-width: 456px;
  max-height: 75vh;
  max-height: 75dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(89, 28, 49, 0.12);
  border-radius: 22px;
  background: #fffafb;
  box-shadow: 0 20px 55px rgba(30, 5, 15, 0.28);
  color: #591c31;
}

.principal-notification-header {
  padding: 19px 20px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f0dce3;
}

.principal-notification-eyebrow {
  display: block;
  color: #a8617b;
  font-size: 10px;
  font-weight: 600;
}

.principal-notification-header h2 {
  margin: 4px 0 0;
  color: #591c31;
  font-size: 19px;
  font-weight: 700;
}

.principal-notification-close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: #fff0f5;
  color: #591c31;
  font-size: 25px;
  cursor: pointer;
}

.principal-notification-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #f0dce3;
  font-size: 11px;
  color: #8a5a6a;
}

#principal-notification-read-all {
  border: 0;
  background: transparent;
  color: #7c334c;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.principal-notification-list {
  min-height: 110px;
  overflow-y: auto;
  padding: 12px;
  font-size: 12px;
}

.principal-notification-item {
  width: 100%;
  margin-bottom: 8px;
  padding: 13px;
  display: block;
  text-align: left;
  border: 1px solid #f0dce3;
  border-radius: 14px;
  background: #ffffff;
  color: #591c31;
  cursor: pointer;
}

.principal-notification-item.is-unread {
  border-color: #e9b0c4;
  background: #fff0f5;
}

.principal-notification-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.principal-notification-item p {
  margin: 0 0 6px;
  line-height: 1.5;
  color: #805568;
}

.principal-notification-item small {
  color: #a8617b;
  font-size: 10px;
}

.principal-notification-empty {
  padding: 30px 12px;
  text-align: center;
  color: #8a5a6a;
}

/* Controle de visibilidade da central */
.principal-notification-overlay[hidden],
.principal-notification-bell[hidden],
.principal-notification-count[hidden],
#principal-notification-read-all[hidden] {
  display: none !important;
}
/* EDIÇÃO DA FOTO DE PERFIL */

.profile-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-edit {
  position: relative;
  display: block;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-avatar-edit:hover {
  transform: scale(1.05);
}

.profile-avatar-edit:focus-visible {
  outline: 3px solid #f0c1d1;
  outline-offset: 3px;
}

.profile-avatar-camera {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(89, 28, 49, 0.9);
  color: #fff;
  font-size: 12px;
}
/* BOTÃO EDITAR ABAIXO DA FOTO */

.profile-avatar-container {
  padding-bottom: 18px;
}

.profile-avatar-edit {
  overflow: visible;
}

.profile-avatar-edit img {
  border-radius: 50%;
}

.profile-avatar-camera {
  position: absolute;
  top: calc(100% + 5px);
  bottom: auto;
  left: 50%;
  right: auto;

  transform: translateX(-50%);

  width: auto;
  height: auto;
  padding: 3px 9px;

  border-radius: 20px;

  background: #f0c1d1;
  color: #591c31;

  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;

  box-shadow: 0 3px 8px rgba(45, 8, 21, 0.15);
}

/* ==========================================
   EDITOR DE FOTO DE PERFIL — NUVÉ
========================================== */

.editor-foto-perfil {
  width: min(92vw, 410px);
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  overflow-y: auto;

  border: 1px solid #eadde2;
  border-radius: 24px;

  background: #fff9fb;
  color: #591c31;
  font-family: "Poppins", sans-serif;

  box-shadow: 0 20px 60px rgba(30, 5, 15, 0.3);
}

.editor-foto-perfil::backdrop {
  background: rgba(30, 5, 15, 0.72);
  backdrop-filter: blur(5px);
}

.editor-foto-conteudo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px;
}

.editor-foto-conteudo h2 {
  margin: 0;
  color: #591c31;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.editor-foto-conteudo p {
  margin: 0;
  color: #8a5a6a;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}

/* Área de recorte */

.editor-foto-visualizacao {
  width: min(100%, 290px);
  aspect-ratio: 1;
  margin: 8px auto;

  overflow: hidden;
  border: 4px solid #f0c1d1;
  border-radius: 50%;

  background: #f0e7eb;

  box-shadow: 0 8px 24px rgba(89, 28, 49, 0.15);
}

#editor-foto-canvas {
  display: block;
  width: 100%;
  height: 100%;

  cursor: grab;
  touch-action: none;
}

#editor-foto-canvas:active {
  cursor: grabbing;
}

/* Controle de zoom */

.editor-foto-conteudo label {
  color: #591c31;
  font-size: 12px;
  font-weight: 600;
}

#editor-foto-zoom {
  width: 100%;
  height: 7px;
  accent-color: #7c334c;
  cursor: pointer;
}

/* Botões */

.editor-foto-acoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.editor-foto-acoes button {
  min-height: 46px;
  padding: 10px;

  border: 0;
  border-radius: 12px;

  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#editor-foto-cancelar {
  background: #f3e5eb;
  color: #591c31;
}

#editor-foto-aplicar {
  background: #591c31;
  color: #ffffff;
}

.editor-foto-acoes button:focus-visible {
  outline: 3px solid #a8617b;
  outline-offset: 3px;
}

.editor-foto-conteudo small {
  color: #8a5a6a;
  font-size: 10px;
  text-align: center;
}

/* Celulares pequenos */

@media (max-width: 380px) {
  .editor-foto-conteudo {
    padding: 18px 14px;
  }

  .editor-foto-visualizacao {
    width: min(100%, 240px);
  }
}
/* SALVAR FOTO PERSONALIZADA */

.profile-photo-save {
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #f0c1d1;
  border-radius: 10px;
  background: #f0c1d1;
  color: #591c31;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.profile-photo-save[hidden] {
  display: none;
}

.profile-photo-save:disabled {
  opacity: 0.65;
  cursor: wait;
}
.profile-photo-remove {
  display: block;
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.profile-photo-remove[hidden] {
  display: none;
}


/* Imagens locais de categoria e serviço; o ícone original permanece como fallback. */
.service-icon--image {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.service-icon-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.service-icon-image[hidden] {
  display: none !important;
}

.service-icon--image img.service-icon-image {
  display: block !important;
}

.service-icon--image img.service-icon-image[hidden] {
  display: none !important;
}
