.container-principal {
  width: 100%;
  max-width: 820px;
  min-height: 100vh;
  padding: 20px 12px 132px;
  background-color: var(--bg-site);
}

body.profile-is-inactive .perfil-header,
body.profile-is-inactive .card-secao {
  border-color: rgba(148, 163, 184, 0.34);
}

body.profile-is-inactive .perfil-header {
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.03)),
    var(--surface);
}

body.profile-is-inactive .nome-perfil,
body.profile-is-inactive .profissao-perfil {
  opacity: 0.88;
}

body.profile-is-inactive .box-foto-perfil img {
  filter: grayscale(0.55) saturate(0.72);
}

.card-secao {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card-secao > *:first-child {
  margin-top: 0;
}

.card-secao > *:last-child {
  margin-bottom: 0;
}

.card-secao:hover {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

body.profile-is-inactive .card-secao:hover {
  transform: none;
}

.profile-inactive-banner {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 52%),
    var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.profile-expiry-reminder {
  border-color: rgba(59, 130, 246, 0.24);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 54%),
    var(--surface);
}

.profile-expiry-reminder-badge {
  display: inline-flex;
  padding: 5px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.profile-expiry-reminder-text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.profile-inactive-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-inactive-text {
  margin: 0 0 10px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.profile-inactive-text strong {
  color: var(--text-primary);
}

.profile-renewal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 10px 0 8px;
}

#renewal-pix-copy {
  grid-column: 1 / -1;
  min-height: 46px;
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.15px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

#renewal-pix-copy:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.profile-renewal-status {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

.profile-renewal-checking {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.profile-renewal-checking.is-hidden {
  display: none;
}

.profile-renewal-checking .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-primary, #2563eb);
  opacity: 0.25;
  animation: renewalDotPulse 1.2s infinite ease-in-out;
}

.profile-renewal-checking .dot:nth-child(2) {
  animation-delay: 0.15s;
}

.profile-renewal-checking .dot:nth-child(3) {
  animation-delay: 0.3s;
}

.profile-renewal-checking-countdown {
  margin-left: 2px;
  color: var(--text-secondary);
  opacity: 0.9;
}

@keyframes renewalDotPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}

.profile-renewal-status.is-error {
  color: #b91c1c;
}

.profile-renewal-status.is-success {
  color: #047857;
}

.profile-renewal-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
}

.profile-renewal-qr-wrap.is-hidden {
  display: none;
}

.profile-renewal-qr-wrap img {
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.profile-renewal-label {
  display: block;
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.profile-renewal-code {
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.45;
  resize: none;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-renewal-helper-text {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

#renewal-pix-copy:disabled {
  opacity: 0.6;
  border-color: #93c5fd;
  background: #93c5fd;
  color: rgba(255, 255, 255, 0.95);
  cursor: not-allowed;
  box-shadow: none;
}

.perfil-top-notice-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

.card-new-features {
  position: relative;
  margin: 10px 10px 8px;
  padding: 10px 12px;
  background: #fef3c7;
  border-color: #fde68a;
  box-shadow: none;
}

.card-new-features:hover {
  background: #fef3c7;
  border-color: #fde68a;
  transform: none;
  box-shadow: none;
}

.card-new-features .titulo-moderno {
  color: #92400e;
  margin-bottom: 6px;
  font-size: 11px;
}

.card-new-features-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(120, 53, 15, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
  color: #78350f;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.card-new-features-list {
  margin: 0 0 0 2px;
  padding-left: 18px;
}

.card-new-features-list li {
  color: #78350f;
  margin: 6px 0;
}

.card-new-features-list strong {
  display: inline-block;
  font-size: 12px;
  color: #713f12;
}

.card-new-features-list p {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #78350f;
}

.perfil-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  text-align: center;
  padding: 22px 18px 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 56%),
    var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.perfil-header::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -95px;
  right: -75px;
  border-radius: 999px;
  background: transparent;
  pointer-events: none;
}

.box-foto-perfil {
  width: 128px;
  height: 128px;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 2px solid rgba(37, 99, 235, 0.18);
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  
  transition: width 0.22s ease, height 0.22s ease, border-radius 0.22s ease;
}

.box-foto-perfil.is-portrait {
  width: 124px;
  height: 146px;
  border-radius: 20px;
}

.box-foto-perfil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.box-foto-perfil:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 4px;
}

.nome-perfil {
  margin-bottom: 5px;
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.verify-badge {
  margin-left: 6px;
  font-size: 18px;
  color: var(--brand-primary);
}

.profissao-perfil {
  margin: 6px 0 13px;
  font-size: 19px;
  font-weight: 500;
  color: var(--text-secondary);
}

.profile-header-indication {
  margin: 20px 0 10px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.profile-header-indication i {
  color: #0f766e;
  font-size: 15px;
}

.profile-header-indication strong {
  font-size: 13px;
  color: var(--text-primary);
}

.test-profile-ribbon {
  position: absolute;
  top: 16px;
  left: -78px;
  z-index: 4;
  width: 300px;
  padding: 7px 0 7px 70px;
  box-sizing: border-box;
  transform: rotate(-45deg);
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-transform: uppercase;
  color: #1f2937;
  background: #fbbf24;
  border-top: 1px solid #d97706;
  border-bottom: 1px solid #d97706;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
  pointer-events: none;
}

.lista-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 10px;
}

.tag {
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  box-shadow: none;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tag:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: #f8fbff;
}

.chips-secundarios {
  margin-top: 4px;
  margin-bottom: 2px;
}

.tag-secundaria {
  border: 1px solid rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.16);
  color: #1e3a8a;
  font-weight: 600;
}

.tag-secundaria:hover {
  border-color: rgba(37, 99, 235, 0.44);
  background: rgba(37, 99, 235, 0.22);
}

.titulo-moderno {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.card-secao .titulo-moderno {
  display: block;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.titulo-moderno .title-icon {
  margin-left: 7px;
  color: #6b7280;
  font-size: 0.95em;
}

.item-certificado {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #fff;
}

.item-certificado i {
  font-size: 18px;
  color: var(--brand-primary);
}

.item-certificado div {
  display: flex;
  flex-direction: column;
}

.item-certificado small {
  font-size: 12px;
  color: var(--text-secondary);
}

.mosaico-jaumo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.item-mosaico {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  
}

.item-mosaico img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.item-mosaico:hover img {
  transform: scale(1.03);
}

.overlay-contador {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  pointer-events: none;
}

.msg-vazia {
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

.grade-pagamentos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.item-pagamento {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background-color: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.price-list-public {
  display: grid;
  gap: 10px;
}

.price-list-public-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #fff;
}

.price-list-public-name {
  color: var(--text-primary);
  font-size: 14px;
}

.price-list-public-value {
  color: var(--primary-2);
  font-size: 14px;
  white-space: nowrap;
}

.lista-endereco-fixo {
  display: grid;
  gap: 10px;
}

.item-endereco-fixo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #fff;
}

.item-endereco-fixo span {
  color: var(--text-secondary);
  font-size: 13px;
}

.item-endereco-fixo strong {
  color: var(--text-primary);
  font-size: 14px;
}

.lista-horarios {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lista-horarios li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 14px;
}

.horario-faixa {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.horario-dias {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.horario-fechado-resumo span {
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
}

.card-indication {
  text-align: left;
}

.card-indication .titulo-moderno {
  text-align: left;
}

.profile-indication-intro {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-secundario.profile-indication-btn {
  width: auto;
  max-width: none;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 7px;
  text-align: center;
}

.btn-secundario.profile-indication-btn i {
  font-size: 16px;
  color: inherit;
}

.btn-secundario.profile-indication-btn:hover,
.btn-secundario.profile-indication-btn:focus-visible {
  transform: none;
}

.btn-secundario.profile-indication-btn:active {
  transform: scale(0.98);
}

.btn-secundario.profile-indication-btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.profile-indication-status {
  min-height: 0;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
}

.profile-indication-status:empty {
  display: none;
}

.profile-indication-status.is-error {
  color: #b91c1c;
}

.card-indication-thanks p {
  margin: 0;
  text-align: center;
  color: var(--text-primary);
  font-weight: 600;
}

.is-hidden {
  display: none !important;
}

.status-fechado {
  color: #ef4444;
}

.cta-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.cta-avatar {
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

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

.cta-nome {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.cta-profissao {
  margin-top: 3px;
  font-size: 14px;
  color: var(--text-secondary);
}

.cta-texto {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 11px;
  background: #fff;
}

.btn-principal-whats {
  position: sticky;
  bottom: 14px;
  z-index: 999;
  display: flex;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 16px;
  border-radius: 7px;
  border: 1px solid #22c55e;
  background: #22c55e;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.34);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-principal-whats:hover {
  background: #16a34a;
  border-color: #16a34a;
}

.btn-principal-whats:active {
  transform: scale(0.98);
}

.btn-principal-whats:focus-visible,
.btn-secundario:focus-visible,
.item-mosaico:focus-visible,
.card-new-features-close:focus-visible,
.share-close:focus-visible,
.gallery-close:focus-visible,
.gallery-nav:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.38);
  outline-offset: 2px;
}


.buttons-finais{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 14px 0;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.share-actions-inline{
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  max-width: 100%;
  gap: 8px;
}

.share-actions-inline .btn-secundario{
  padding: 10px 8px;
  font-size: 13px;
  gap: 6px;
  white-space: normal;
  border-radius: 7px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.share-actions-inline .btn-secundario i{
  display: block;
  font-size: 18px;
  line-height: 1;
}

.share-actions-inline .share-btn-green i{
  color: inherit;
}

.share-card-subtitle{
  margin: -4px 0 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.share-btn-label{
  display: inline-block;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.label-visualizacoes{
  width: 100%;
  max-width: 520px;
  margin: 2px auto 18px;
  padding: 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.label-visualizacoes strong{
  color: var(--text-primary);
}

.btn-secundario{
    width: 100%;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn-secundario:hover{
    background: #f8fbff;
    border-color: rgba(37, 99, 235, 0.3);
}

.btn-secundario:active{
    transform: scale(0.98);
}

.btn-secundario:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

#btn-copiar-numero{
  padding: 14px 16px;
  min-height: 50px;
  font-size: 15px;
  border-radius: 7px;
}

.share-link-texto{
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.share-link-texto span{
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-all;
}

.btn-denunciar{
  border-color: #f3c5c5;
  color: #b91c1c;
  background: #fff8f8;
}

.btn-denunciar:hover{
  background: #ffecec;
}

.card-criar-perfil p{
  margin: 0 0 8px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-criar-perfil p strong{
  color: var(--text-primary);
}

.criar-perfil-acoes{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn-criar-perfil{
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.btn-criar-perfil:hover{
  background: var(--brand-primary-hover);
}

@media (max-width: 620px){
  .container-principal{
    padding: 12px 8px 126px;
  }

  .perfil-header{
    padding: 18px 14px 14px;
  }

  .nome-perfil{
    font-size: 26px;
  }

  .box-foto-perfil {
    width: 122px;
    height: 122px;
  }

  .box-foto-perfil.is-portrait {
    width: 118px;
    height: 138px;
  }

  .profissao-perfil{
    font-size: 16px;
    margin-bottom: 10px;
  }

  .card-secao{
    padding: 14px;
  }

  .buttons-finais{
    grid-template-columns: 1fr;
  }

  .share-actions-inline{
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
  }

  .share-actions-inline .btn-secundario{
    padding: 9px 6px;
    font-size: 11px;
    gap: 4px;
  }

  .label-visualizacoes{
    margin-bottom: 14px;
  }

  .test-profile-ribbon {
    top: 13px;
    left: -70px;
    width: 270px;
    font-size: 9px;
    letter-spacing: 0.15px;
  }

}

@media (prefers-reduced-motion: reduce){
  .card-secao,
  .btn-secundario,
  .btn-principal-whats,
  .item-mosaico img,
  .gallery-nav {
    transition: none !important;
  }

  .card-secao:hover {
    transform: none;
  }
}

.share-overlay{
  position: fixed;
  inset: 0;
  z-index: 1350;
  background: rgba(15, 23, 42, 0.42);
  display: none;
}

.share-overlay.is-open{
  display: block;
}

.share-modal{
  position: fixed;
  z-index: 1360;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 460px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
  padding: 16px;
  display: none;
}

.share-modal.is-open{
  display: block;
}

.share-modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.share-modal-header h3{
  margin: 0;
  font-size: 17px;
  color: var(--text-primary);
}

.share-close{
  width: 30px;
  height: 30px;
  border: 1px solid #dbe2ea;
  border-radius: 9px;
  background: #fff;
  color: var(--text-primary);
  
}

.share-helper{
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

.share-qr-wrap{
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.share-qr-wrap img{
  width: min(74vw, 360px);
  max-width: 100%;
  height: auto;
}

.share-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.share-btn-green{
  background: #fff;
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--text-primary);
  text-decoration: none;
}

.share-btn-green:hover{
  background: #f8fbff;
  border-color: rgba(37, 99, 235, 0.3);
}

.share-btn-green i{
  color: #22c55e;
}

.gallery-overlay{
  position: fixed;
  inset: 0;
  z-index: 1450;
  background: #1e293b;
  display: none;
}

.gallery-overlay.is-open{
  display: block;
}

.gallery-modal{
  position: fixed;
  z-index: 1460;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: none;
}

.gallery-modal.is-open{
  display: flex;
  flex-direction: column;
}

.gallery-modal-header{
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0 12px;
  color: var(--text-primary);
}

.gallery-modal-header h3{
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.85);
  padding: 6px 10px;
}

.gallery-modal-header h3,
.gallery-close,
.gallery-nav,
.gallery-counter{
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.24);
  box-shadow: 0 6px 14px rgba(2, 8, 20, 0.22);
}

.gallery-close{
  width: 36px;
  height: 36px;
  color: #f8fafc;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-close:hover{
  border-color: rgba(191, 219, 254, 0.7);
  background: rgba(15, 23, 42, 0.34);
}

.gallery-image-wrap{
  position: relative;
  width: 100%;
  height: 100dvh;
  padding: max(54px, calc(env(safe-area-inset-top) + 44px)) 10px max(44px, calc(env(safe-area-inset-bottom) + 34px));
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-wrap img{
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: none;
  border-radius: 7px;
  background: transparent;
  touch-action: none;
}

.gallery-nav{
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  color: #f8fafc;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.gallery-nav:hover{
  border-color: rgba(191, 219, 254, 0.72);
  background: rgba(15, 23, 42, 0.34);
}

.gallery-nav:active{
  transform: translateY(-50%) scale(0.96);
}

.gallery-prev{
  left: max(8px, env(safe-area-inset-left));
}

.gallery-next{
  right: max(8px, env(safe-area-inset-right));
}

.gallery-tap-zone{
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  border: none;
  background: transparent;
  z-index: 2;
  
}

.gallery-tap-zone-prev{
  left: 0;
}

.gallery-tap-zone-next{
  right: 0;
}

.gallery-counter{
  position: absolute;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 3;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(241, 245, 249, 0.9);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
}

.report-overlay{
  position: fixed;
  inset: 0;
  z-index: 1470;
  background: rgba(15, 23, 42, 0.48);
  display: none;
}

.report-overlay.is-open{
  display: block;
}

.report-modal{
  position: fixed;
  z-index: 1480;
  top: 72px;
  right: 14px;
  width: min(94vw, 420px);
  max-height: calc(100vh - 90px);
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
  padding: 14px;
  display: none;
}

.report-modal.is-open{
  display: block;
}

.report-modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.report-modal-header h3{
  margin: 0;
  font-size: 17px;
  color: var(--text-primary);
}

.report-close{
  width: 30px;
  height: 30px;
  border: 1px solid #dbe2ea;
  border-radius: 9px;
  background: #fff;
  color: var(--text-primary);
  
}

.report-helper{
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

.report-label{
  display: block;
  margin: 10px 0 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.report-input{
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
}

.report-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.report-submit{
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.report-submit:hover{
  background: #a31616;
  border-color: #a31616;
}

@media (prefers-color-scheme: dark){
  .share-overlay{
    background: rgba(2, 6, 12, 0.8);
  }

  .gallery-overlay{
    background: rgba(5, 10, 18, 0.94);
  }

  .report-overlay{
    background: rgba(2, 6, 12, 0.8);
  }

  .card-secao{
    border-color: var(--surface);
  }

  .card-secao:hover{
    border-color: var(--surface);
  }

  .perfil-header{
    border-color: var(--surface);
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(2, 8, 20, 0.42);
  }

  .tag,
  .item-certificado,
  .item-pagamento,
  .item-endereco-fixo,
  .cta-texto,
  .btn-secundario,
  .profile-indication-btn{
    background: #21262d;
    border-color: #21262d;
    color: var(--text-primary);
  }

  .tag:hover,
  .btn-secundario:hover{
    background: #2a313c;
    border-color: #2a313c;
  }

  .lista-horarios li{
    border-bottom-color: rgba(99, 128, 166, 0.1);
  }

  .btn-denunciar{
    border-color: rgba(248, 113, 113, 0.38);
    background: rgba(185, 28, 28, 0.16);
    color: #fecaca;
  }

  .btn-denunciar:hover{
    background: rgba(185, 28, 28, 0.26);
  }

  .share-modal,
  .report-modal{
    border-color: var(--surface);
    background: var(--surface);
    box-shadow: 0 20px 42px rgba(2, 8, 20, 0.52);
  }

  .share-close,
  .gallery-close,
  .gallery-nav,
  .report-close{
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(148, 163, 184, 0.36);
    color: #e6edf3;
  }

  .gallery-close:hover,
  .gallery-nav:hover{
    background: rgba(15, 23, 42, 0.58);
    border-color: rgba(191, 219, 254, 0.74);
  }

  .share-qr-wrap,
  .profile-renewal-qr-wrap,
  .report-input{
    background: var(--surface);
    border-color: var(--surface);
    color: var(--text-primary);
  }

  .share-qr-wrap img,
  .profile-renewal-qr-wrap img{
    filter: invert(1) grayscale(1) contrast(1.45);
    mix-blend-mode: screen;
  }

  .gallery-image-wrap img{
    background: transparent;
    border: none;
  }

  .share-btn-green{
    background: #21262d;
    border-color: #21262d;
    color: var(--text-primary);
  }

  .share-btn-green:hover{
    background: #2a313c;
    border-color: #2a313c;
  }

  .profile-indication-btn:hover,
  .profile-indication-btn:focus-visible{
    background: #2a313c;
    border-color: #2a313c;
  }

  .tag-secundaria{
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(59, 130, 246, 0.24);
    color: #dbeafe;
  }

  .tag-secundaria:hover{
    border-color: rgba(125, 183, 255, 0.5);
    background: rgba(59, 130, 246, 0.32);
  }
}

@media (max-width: 560px){
  .share-modal{
    width: min(94vw, 420px);
    padding: 14px;
  }

  .gallery-image-wrap{
    height: 100dvh;
  }

  .gallery-nav{
    width: 34px;
    height: 34px;
  }
}

:root[data-theme="light"] .gallery-overlay{
  background: #1e293b;
}

:root[data-theme="light"] .gallery-modal-header h3{
  color: #0f172a;
}

:root[data-theme="light"] .gallery-modal-header h3,
:root[data-theme="light"] .gallery-close,
:root[data-theme="light"] .gallery-nav,
:root[data-theme="light"] .gallery-counter{
  background: rgba(241, 245, 249, 0.28);
  border-color: rgba(100, 116, 139, 0.34);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

:root[data-theme="light"] .gallery-close:hover,
:root[data-theme="light"] .gallery-nav:hover{
  background: rgba(241, 245, 249, 0.42);
  border-color: rgba(71, 85, 105, 0.44);
}

:root[data-theme="light"] .share-qr-wrap img,
:root[data-theme="light"] .profile-renewal-qr-wrap img{
  filter: none;
  mix-blend-mode: normal;
}

:root[data-theme="dark"] .gallery-overlay{
  background: #050a12;
}

:root[data-theme="dark"] .gallery-modal-header h3,
:root[data-theme="dark"] .gallery-close,
:root[data-theme="dark"] .gallery-nav,
:root[data-theme="dark"] .gallery-counter{
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(148, 163, 184, 0.36);
  color: #e6edf3;
}

:root[data-theme="dark"] .gallery-nav:hover{
  background: rgba(15, 23, 42, 0.44);
  border-color: rgba(191, 219, 254, 0.74);
}

:root[data-theme="dark"] .share-qr-wrap,
:root[data-theme="dark"] .profile-renewal-qr-wrap{
  background: var(--surface);
  border-color: var(--surface);
}

:root[data-theme="dark"] .share-qr-wrap img,
:root[data-theme="dark"] .profile-renewal-qr-wrap img{
  filter: invert(1) grayscale(1) contrast(1.45);
  mix-blend-mode: screen;
}

:root[data-theme="light"] .item-pagamento {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--text-primary);
}

:root[data-theme="light"] .item-pagamento:hover,
:root[data-theme="light"] .item-pagamento:active {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--text-primary);
}

:root[data-theme="dark"] .price-list-public-item {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .price-list-public-name {
  color: #e5e7eb;
}

:root[data-theme="dark"] .price-list-public-value {
  color: #93c5fd;
}

:root[data-theme="light"] .chips-secundarios .tag-secundaria {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.44);
  color: #1d4ed8;
}

:root[data-theme="light"] .chips-secundarios .tag-secundaria:hover {
  background: rgba(37, 99, 235, 0.24);
  border-color: rgba(37, 99, 235, 0.58);
  color: #1e40af;
}

:root[data-theme="dark"] .chips-secundarios .tag-secundaria {
  background: rgba(59, 130, 246, 0.24);
  border-color: rgba(96, 165, 250, 0.5);
  color: #dbeafe;
}

:root[data-theme="dark"] .chips-secundarios .tag-secundaria:hover {
  background: rgba(59, 130, 246, 0.32);
  border-color: rgba(125, 183, 255, 0.62);
  color: #eff6ff;
}

:root[data-theme="dark"] .menu-overlay {
  background: rgba(2, 6, 12, 0.8);
}

:root[data-theme="light"] .share-modal {
  background: #fff;
  background-image: none;
  border-color: rgba(148, 163, 184, 0.24);
}

:root[data-theme="dark"] .card-new-features {
  background: #fef3c7;
  border-color: #fde68a;
}
