/* ============================================================
   Perfil Público
   - Estilos da página de perfil e estados (ativo/inativo).
   - Tokens base de tema centralizados em theme.css.
   ============================================================ */
@import url('./components/perfil-tags.css');

/* Tokens locais de renovação (tema claro/escuro) */
:root {
  --renewal-check-bg: #2563eb;
  --renewal-check-border: #2563eb;
  --renewal-check-hover-bg: #1d4ed8;
  --renewal-check-hover-border: #1d4ed8;
  --renewal-check-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
  --profile-surface: rgba(255, 255, 255, 0.84);
  --profile-surface-strong: rgba(255, 255, 255, 0.94);
  --profile-line: rgba(109, 90, 72, 0.12);
  --profile-shadow: 0 18px 36px rgba(55, 34, 18, 0.08);
  --profile-shadow-soft: 0 12px 26px rgba(55, 34, 18, 0.06);
  --profile-warm: #fff0e1;
  --profile-warm-text: #a55300;
}

:root[data-theme="dark"] {
  --renewal-check-bg: #2563eb;
  --renewal-check-border: #2563eb;
  --renewal-check-hover-bg: #1d4ed8;
  --renewal-check-hover-border: #1d4ed8;
  --renewal-check-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
  --profile-surface: rgba(22, 27, 34, 0.88);
  --profile-surface-strong: rgba(22, 27, 34, 0.96);
  --profile-line: rgba(148, 163, 184, 0.14);
  --profile-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  --profile-shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.18);
  --profile-warm: rgba(255, 122, 0, 0.14);
  --profile-warm-text: #ffd7b0;
}

.container-principal {
  width: 100%;
  max-width: 820px;
  min-height: 100vh;
  padding: 8px 12px 124px;
  background: transparent;
}

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 {
  opacity: 0.88;
}

body.profile-is-inactive .profissao-perfil {
  display: none;
}

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

body.profile-is-inactive .secao-fotos,
body.profile-is-inactive .card-secao:not(.profile-inactive-banner),
body.profile-is-inactive .label-visualizacoes {
  filter: blur(6px);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.card-secao {
  position: relative;
  margin-bottom: 12px;
  padding: 18px 16px;
  border: 1px solid var(--profile-line);
  border-radius: 7px;
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow);
  backdrop-filter: blur(10px);
  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(255, 122, 0, 0.2);
  box-shadow: 0 22px 42px rgba(55, 34, 18, 0.1);
  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-inactive-banner--flat {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.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-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.profile-inactive-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.24);
  background: #fff7ed;
  flex-shrink: 0;
}

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

.profile-inactive-avatar.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-inactive-avatar-fallback {
  color: #c2410c;
  font-size: 24px;
}

.profile-inactive-identity-copy {
  display: grid;
  gap: 4px;
}

.profile-inactive-identity-copy strong {
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.1;
}

.profile-inactive-identity-copy span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

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

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

body.profile-is-inactive .profile-inactive-banner {
  padding: 0 13px 12px;
}

body.profile-is-inactive .profile-inactive-badge {
  margin-top: 0;
  margin-bottom: 6px;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.05em;
}

body.profile-is-inactive .profile-inactive-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
}

body.profile-is-inactive .profile-plan-cards {
  grid-template-columns: 1fr;
  margin: 0 0 8px;
}

body.profile-is-inactive .profile-plan-card {
  padding: 8px;
}

body.profile-is-inactive .profile-plan-card-price {
  font-size: 20px;
}

body.profile-is-inactive .profile-plan-card-meta {
  margin: 3px 0 5px;
  font-size: 11px;
}

body.profile-is-inactive .profile-renewal-actions-row {
  margin: 0 0 6px;
}

body.profile-is-inactive #renewal-check-now {
  min-height: 40px;
  padding: 8px 11px;
  font-size: 13px;
  justify-content: center;
}

.profile-renewal-details--minimal {
  margin: 0;
}

.profile-renewal-details--minimal > summary {
  font-size: 12px;
}

.profile-renewal-details--minimal .profile-renewal-steps {
  margin: 7px 0 0;
}

.profile-results-block {
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 7px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.06);
}

.profile-results-block h4 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 14px;
}

.profile-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.profile-result-item {
  padding: 7px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  text-align: center;
}

.profile-result-item span {
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
}

.profile-result-item strong {
  display: block;
  margin-top: 2px;
  color: var(--text-primary);
  font-size: 16px;
}

.profile-results-note {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

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

.profile-plan-card {
  padding: 11px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
}

.profile-plan-card h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text-primary);
}

.profile-plan-card-price {
  margin: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--text-primary);
  font-weight: 800;
}

.profile-plan-card-price small {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.profile-plan-card-meta {
  margin: 5px 0 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.profile-renewal-copy-row {
  margin: 7px 0 8px;
}

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

.profile-renewal-copy-row .renewal-plan-copy {
  width: 100%;
}


.coupon-open-link--renewal {
  width: fit-content;
  display: block;
  margin: 0 0 6px auto;
  border: none;
  background: transparent;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  text-decoration: underline;
  white-space: nowrap;
}

.profile-renewal-details {
  margin: 4px 0 8px;
  border: 1px dashed rgba(148, 163, 184, 0.36);
  border-radius: 7px;
  background: rgba(248, 250, 252, 0.65);
  padding: 8px 9px;
}

.profile-renewal-details > summary {
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.profile-renewal-details > summary::-webkit-details-marker {
  display: none;
}

.profile-renewal-details > summary::after {
  content: " +";
  color: var(--text-secondary);
  font-weight: 700;
}

.profile-renewal-details[open] > summary::after {
  content: " -";
}

.profile-renewal-details .coupon-open-link--renewal {
  margin-top: 8px;
}

.profile-renewal-steps {
  display: grid;
  gap: 4px;
  margin: 0 0 6px;
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px dashed rgba(148, 163, 184, 0.36);
  background: rgba(248, 250, 252, 0.85);
}

.profile-renewal-steps span {
  color: var(--text-secondary);
  font-size: 11px;
}

.profile-plan-card .profile-renewal-status {
  margin-bottom: 0;
}

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

#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 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

.profile-renewal-checking {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  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: flex-start;
  align-items: center;
  margin: 5px 0 6px;
  padding: 7px;
  border-radius: 7px;
  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%, 118px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

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

.profile-renewal-code {
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  border-radius: 7px;
  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-actions-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin: 0 0 6px;
}

#renewal-check-now {
  width: 100%;
  min-height: 40px;
  background: var(--renewal-check-bg);
  border-color: var(--renewal-check-border);
  color: #fff;
  box-shadow: var(--renewal-check-shadow);
}

#renewal-check-now:hover {
  background: var(--renewal-check-hover-bg);
  border-color: var(--renewal-check-hover-border);
}

.profile-renewal-state-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(241, 245, 249, 0.9);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.profile-renewal-state-chip i {
  font-size: 12px;
}

.profile-renewal-state-chip.is-success {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.16);
  color: #166534;
}

.profile-inactive-urgent {
  margin: 0 0 10px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.profile-renewal-trust {
  display: grid;
  gap: 3px;
}

.profile-renewal-trust span {
  color: var(--text-secondary);
  font-size: 12px;
}

.coupon-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.56);
}

.coupon-modal {
  width: min(92vw, 420px);
  border-radius: var(--radius-ui);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 15px;
  display: grid;
  gap: 9px;
}

.coupon-modal h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text-primary);
}

.coupon-modal p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.coupon-modal label {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.coupon-modal input {
  width: 100%;
  border: 1px solid #dbe4ee;
  border-radius: 7px;
  padding: 10px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text-primary);
}

.coupon-modal-error {
  margin: 0;
  font-size: 12px;
  color: #dc2626;
}

.coupon-modal-actions {
  margin-top: 2px;
}

#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: 100%;
  margin: 0;
  padding: 0;
}

.card-new-features {
  position: relative;
  margin: 0 0 12px;
  padding: 16px 15px;
  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: 16px;
}

.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;
}

.card-new-features-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #78350f;
}

.card-example-profile {
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 8px 12px;
}

.card-example-profile .titulo-moderno {
  margin: 0;
  font-size: 12px;
  color: #92400e;
  letter-spacing: 0.02em;
}

.example-hint {
  position: relative;
  width: 70%;
  max-width: 520px;
  margin: 0 auto 10px;
  padding: 10px 34px 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fef9c3;
  color: #854d0e;
  font-size: 12px;
  line-height: 1.4;
}

.example-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fef9c3;
  filter: drop-shadow(0 1px 0 #fde68a);
}

.example-hint-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(133, 77, 14, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  color: #854d0e;
  font-size: 12px;
  line-height: 1;
}

.example-hint-close:hover {
  background: rgba(255, 255, 255, 0.78);
}

.perfil-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  text-align: center;
  padding: 26px 18px 20px;
  border: 1px solid var(--profile-line);
  border-radius: 7px;
  background:
    radial-gradient(circle at top right, rgba(255, 163, 79, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 240, 0.9));
  box-shadow: var(--profile-shadow);
  backdrop-filter: blur(10px);
}

.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: 132px;
  height: 132px;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid rgba(109, 90, 72, 0.14);
  border-radius: 7px;
  box-shadow: 0 18px 34px rgba(55, 34, 18, 0.12);
  
  transition: width 0.22s ease, height 0.22s ease, border-radius 0.22s ease;
}

.box-foto-perfil.is-portrait {
  width: 126px;
  height: 150px;
  border-radius: 7px;
}

.box-foto-perfil.is-landscape {
  width: 156px;
  height: 122px;
  border-radius: 7px;
}

.box-foto-perfil img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
}

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

.nome-perfil {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.verify-badge {
  margin-left: 8px;
  font-size: 18px;
  color: #0095f6;
  filter: drop-shadow(0 2px 6px rgba(0, 149, 246, 0.18));
  vertical-align: 0.04em;
}

.profissao-perfil {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.28;
}

.perfil-header-copy {
  max-width: 620px;
  margin: 0 auto;
}

.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;
}

.titulo-moderno {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-primary);
}

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

.titulo-moderno .title-icon {
  margin-left: 7px;
  color: var(--text-secondary);
  font-size: 0.9em;
}

.item-certificado {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  padding: 10px 11px;
  border: 1px solid var(--profile-line);
  border-radius: 7px;
  background: var(--profile-surface-strong);
}

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

.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: 8px;
}

.secao-fotos {
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.item-mosaico {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid var(--profile-line);
  box-shadow: var(--profile-shadow-soft);
  background: var(--profile-surface-strong);
}

.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 var(--profile-line);
  border-radius: 7px;
  background-color: var(--profile-surface-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

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

.price-list-public-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--profile-line);
  border-radius: 7px;
  background: var(--profile-surface-strong);
}

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

.price-list-public-value {
  color: #b35e09;
  font-size: 14px;
  white-space: nowrap;
}

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

.item-endereco-fixo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--profile-line);
  border-radius: 7px;
  background: var(--profile-surface-strong);
}

.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: 2px;
  padding: 8px 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;
}

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

.hidden {
  display: none !important;
}

.status-fechado {
  color: #ef4444;
}

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

.cta-avatar {
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid var(--profile-line);
}

.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: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  padding: 12px 13px;
  border: 1px solid var(--profile-line);
  border-radius: 7px;
  background: var(--profile-surface-strong);
}

.btn-principal-whats {
  position: sticky;
  bottom: 14px;
  z-index: 999;
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 62px;
  padding: 13px 16px;
  border-radius: 7px;
  border: 1px solid #22c55e;
  background: #22c55e;
  color: #fff;
  font-size: 14px;
  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: 10px;
    margin: 12px 0;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

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

.share-actions-inline{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
  gap: 9px;
}

.address-map-actions{
  margin-top: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-qr-secondary{
  --profile-qr-size: min(46vw, 160px);
  margin-top: 8px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
}

.profile-qr-secondary .share-helper{
  margin: 0;
  font-size: 12px;
  display: block;
  width: var(--profile-qr-size);
  max-width: 100%;
  line-height: 1.3;
}

.profile-qr-secondary .share-helper i{
  font-size: 12px;
  color: inherit;
}

.profile-qr-secondary .share-helper .qr-helper-icon{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  margin-left: 6px;
}

.profile-qr-secondary .share-qr-wrap{
  padding: 8px;
  width: fit-content;
  margin-bottom: 0;
  border: 1px solid var(--profile-line);
  border-radius: 7px;
  background: var(--profile-surface-strong);
  box-shadow: var(--profile-shadow-soft);
}

.profile-qr-secondary .share-qr-wrap img{
  width: var(--profile-qr-size);
}

.address-map-actions .btn-secundario{
  min-height: 54px;
  padding: 9px 12px;
  border-radius: 7px;
  flex-direction: row;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
}

.address-map-actions .btn-secundario i{
  font-size: 15px;
  text-decoration: none;
}

.address-map-actions .share-btn-copy{
  gap: 2px;
  text-decoration: none;
}

.address-map-actions .share-btn-title{
  font-size: 13px;
  line-height: 1.08;
  text-decoration: none;
}

.address-map-actions .share-btn-description{
  font-size: 11px;
  line-height: 1.12;
  text-decoration: none;
}

.address-map-actions .btn-secundario:hover,
.address-map-actions .btn-secundario:focus-visible,
.address-map-actions .btn-secundario:active{
  text-decoration: none;
}

.share-actions-inline .btn-secundario{
  min-height: 54px;
  padding: 9px 12px;
  font-size: 13px;
  gap: 9px;
  white-space: normal;
  border-radius: 7px;
  border-color: var(--profile-line);
  background: var(--profile-surface-strong);
  box-shadow: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.share-actions-inline .btn-secundario i{
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.share-actions-inline .share-btn-green i{
  color: var(--brand-primary);
}

.share-actions-inline .btn-secundario:hover{
  transform: translateY(-1px);
  box-shadow: none;
  text-decoration: none;
}

.share-actions-inline .btn-secundario:focus-visible,
.share-actions-inline .btn-secundario:active{
  text-decoration: none;
}

.share-card-subtitle{
  margin: -3px 0 9px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.share-btn-label{
  display: inline-block;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  font-size: 12px;
  font-weight: 700;
}

.share-btn-copy{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.share-btn-title{
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.08;
}

.share-btn-description{
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.12;
}

.profile-stat-number{
  color: var(--text-primary);
  font-size: 22px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-stat-label{
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.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: var(--profile-surface-strong);
    border: 1px solid var(--profile-line);
    padding: 13px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.btn-secundario:hover{
    background: #fff7ef;
    border-color: rgba(255, 122, 0, 0.22);
}

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

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

#btn-copiar-numero,
#btn-salvar-contato{
  justify-content: center;
  padding: 13px 16px;
  min-height: 62px;
  font-size: 14px;
  border-radius: 7px;
  gap: 9px;
}

#btn-copiar-numero i,
#btn-salvar-contato i,
.btn-principal-whats > i{
  width: 24px;
  min-width: 24px;
  text-align: center;
  font-size: 18px;
}

#btn-copiar-numero i,
#btn-salvar-contato i{
  color: var(--text-secondary);
}

.btn-principal-whats > i{
  color: #fff;
}

.profile-action-copy{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-action-title{
  display: inline-block;
  line-height: 1.1;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.profile-action-subtitle{
  display: block;
  line-height: 1.2;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

#btn-copiar-numero .profile-action-title,
#btn-salvar-contato .profile-action-title,
.btn-principal-whats .profile-action-title{
  text-align: center;
}

.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);
}

.temp-preview-intro,
.temp-preview-timer-card,
.temp-preview-expired-note {
  display: grid;
  gap: 10px;
}

.temp-preview-badge,
.temp-preview-label {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 7px;
  background: var(--profile-warm);
  color: var(--profile-warm-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.temp-preview-countdown {
  font-size: clamp(40px, 10vw, 72px);
  line-height: 0.95;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.temp-preview-help {
  font-size: 15px;
  line-height: 1.6;
}

.temp-preview-expired-note.hidden,
.temp-preview-payment-wrap.hidden {
  display: none;
}

.temp-preview-payment-wrap {
  width: 100%;
}

.temp-preview-payment-cta {
  display: grid;
  gap: 14px;
}

.temp-preview-payment-copy {
  display: grid;
  gap: 10px;
}

.temp-preview-payment-btn {
  justify-content: center;
}

body.temporary-preview-expired .btn-principal-whats,
body.temporary-preview-expired .btn-secundario.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

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

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

  .nome-perfil{
    margin-bottom: 5px;
    font-size: 27px;
    line-height: 1.08;
  }

  .box-foto-perfil {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
  }

  .box-foto-perfil.is-portrait {
    width: 114px;
    height: 136px;
  }

  .box-foto-perfil.is-landscape {
    width: 146px;
    height: 112px;
  }

  .profissao-perfil{
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.28;
  }

  .verify-badge{
    margin-left: 5px;
    font-size: 16px;
  }

  .lista-tags{
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 8px;
  }

  .tag{
    min-height: 36px;
    padding: 7px 14px;
    font-size: 12px;
  }

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

  .chips-metricas{
    margin-top: 10px;
    gap: 10px;
  }

  .tag-metrica{
    min-width: 0;
    width: auto;
    flex: 0 0 auto;
    min-height: 36px;
    gap: 7px;
  }

  .card-secao{
    padding: 14px;
  }

  .profile-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .profile-stat-number{
    font-size: 20px;
  }

  .profile-stat-subtitle,
  .profile-stat-label{
    font-size: 9px;
  }

  .share-card-subtitle{
    font-size: 11px;
    margin-bottom: 8px;
  }

  .share-btn-title{
    font-size: 12px;
  }

  .share-btn-description{
    font-size: 10px;
  }

  .secao-fotos{
    margin-bottom: 12px;
  }

  .mosaico-jaumo{
    gap: 7px;
  }

  #btn-copiar-numero,
  #btn-salvar-contato,
  .btn-principal-whats{
    min-height: 60px;
  }

  .share-actions-inline{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .address-map-actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .address-map-actions .btn-secundario{
    min-height: 50px;
    padding: 8px 9px;
    gap: 7px;
  }

  .address-map-actions .btn-secundario i{
    font-size: 13px;
  }

  .address-map-actions .share-btn-title{
    font-size: 12px;
  }

  .address-map-actions .share-btn-description{
    font-size: 10px;
  }

  .share-actions-inline .btn-secundario{
    min-height: 50px;
    padding: 8px 9px;
    font-size: 12px;
    gap: 7px;
  }

  .share-actions-inline .btn-secundario i{
    font-size: 13px;
  }

  .profile-qr-secondary .share-helper{
    font-size: 11px;
    margin: 0;
  }

  .profile-qr-secondary .share-qr-wrap{
    padding: 7px;
  }

  .profile-qr-secondary{
    --profile-qr-size: min(58vw, 140px);
  }

  .profile-qr-secondary .share-qr-wrap img{
    width: var(--profile-qr-size);
  }

  .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: 7px;
  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: 7px;
  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: 7px;
  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;
}

.image-loading-shell{
  position: relative;
  isolation: isolate;
  background: transparent;
}

.image-loading-shell::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-top-color: #e2e8f0;
  border-radius: 50%;
  animation: lc-spin 0.75s linear infinite;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.image-loading-shell.is-loading::after{
  opacity: 1;
}

.image-loading-shell img{
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-loading-shell.is-ready img{
  opacity: 1;
}

.image-loading-shell.is-error img{
  opacity: 0;
}

.gallery-current-shell{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.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(59, 54, 102, 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(59, 54, 102, 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(--profile-line);
    background: var(--profile-surface);
  }

  .card-secao:hover{
    border-color: rgba(255, 122, 0, 0.16);
  }

  .perfil-header{
    border-color: var(--profile-line);
    background:
      radial-gradient(circle at top right, rgba(255, 122, 0, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(22, 27, 34, 0.96), rgba(13, 17, 23, 0.94));
    box-shadow: var(--profile-shadow);
  }

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

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

  .tag-top3{
    background: rgba(245, 158, 11, 0.28);
    border-color: rgba(251, 191, 36, 0.52);
    color: #fef3c7;
  }

  .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(--profile-line);
    background: var(--profile-surface-strong);
    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(59, 54, 102, 0.74);
  }

  .share-qr-wrap,
  .profile-renewal-qr-wrap,
  .report-input{
    background: var(--profile-surface-strong);
    border-color: var(--profile-line);
    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;
  }

  .tag-secundaria{
    border-color: rgba(59, 54, 102, 0.42);
    background: rgba(59, 54, 102, 0.24);
    color: #e9e7f7;
  }

  .tag-secundaria:hover{
    border-color: rgba(75, 70, 126, 0.5);
    background: rgba(59, 54, 102, 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: rgba(241, 245, 249, 0.94);
}

: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,
:root[data-theme="light"] .gallery-nav,
:root[data-theme="light"] .gallery-counter{
  color: #0f172a;
}

: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="light"] .profile-inactive-banner{
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(255, 251, 235, 0.75), rgba(248, 250, 252, 1));
  border-color: rgba(245, 158, 11, 0.34);
}

:root[data-theme="light"] .profile-result-item{
  border-color: rgba(59, 130, 246, 0.2);
  background: #f8fbff;
}

:root[data-theme="light"] .profile-renewal-steps{
  border-color: rgba(59, 130, 246, 0.34);
  background: #f1f5f9;
}

:root[data-theme="light"] .profile-plan-card{
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-color: rgba(59, 130, 246, 0.2);
}

:root[data-theme="light"] .profile-plan-card h4,
:root[data-theme="light"] .profile-plan-card-price{
  color: #0f172a;
}

:root[data-theme="light"] .profile-plan-card .btn-secundario{
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.26);
  color: var(--text-primary);
}

:root[data-theme="light"] .profile-plan-card .btn-secundario:hover{
  background: #eef2f7;
  border-color: rgba(59, 130, 246, 0.36);
}

:root[data-theme="light"] .profile-renewal-code{
  background: #f1f5f9;
  border-color: rgba(59, 130, 246, 0.24);
  color: #0f172a;
}

:root[data-theme="light"] .profile-renewal-qr-wrap{
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.24);
}

:root[data-theme="light"] .profile-inactive-badge{
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.44);
  color: #9a3412;
}

:root[data-theme="light"] .profile-renewal-copy-row .renewal-plan-copy{
  background: #ecfdf3;
  border-color: rgba(22, 163, 74, 0.35);
  color: #166534;
}

:root[data-theme="light"] .profile-renewal-copy-row .renewal-plan-copy:hover{
  background: #dcfce7;
  border-color: rgba(22, 163, 74, 0.5);
}

:root[data-theme="light"] .profile-renewal-label,
:root[data-theme="light"] .profile-renewal-status,
:root[data-theme="light"] .profile-plan-card-meta{
  color: #475569;
}

:root[data-theme="light"] .profile-plan-card .renewal-plan-code::placeholder{
  color: #94a3b8;
}

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

:root[data-theme="dark"] .titulo-moderno .title-icon,
:root[data-theme="dark"] .item-certificado i,
:root[data-theme="dark"] .share-actions-inline .btn-secundario i,
:root[data-theme="dark"] .address-map-actions .btn-secundario i,
:root[data-theme="dark"] .share-actions-inline .share-btn-green i,
:root[data-theme="dark"] #btn-copiar-numero i,
:root[data-theme="dark"] #btn-salvar-contato i {
  color: #cbd5e1;
}

: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(59, 54, 102, 0.74);
}

:root[data-theme="dark"] .share-qr-wrap,
:root[data-theme="dark"] .profile-renewal-qr-wrap{
  background: #161b22;
  border-color: rgba(148, 163, 184, 0.14);
}

:root[data-theme="dark"] .box-foto-perfil,
:root[data-theme="dark"] .item-mosaico,
:root[data-theme="dark"] .cta-avatar {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .profile-plan-card{
  background: var(--profile-surface-strong);
  border-color: rgba(99, 128, 166, 0.24);
}

:root[data-theme="dark"] .profile-inactive-banner{
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.96));
  border-color: rgba(245, 158, 11, 0.4);
}

:root[data-theme="dark"] .profile-inactive-banner--flat{
  background: transparent;
  border: none;
  box-shadow: none;
}

:root[data-theme="dark"] .profile-inactive-avatar{
  background: rgba(120, 53, 15, 0.28);
  border-color: rgba(245, 158, 11, 0.45);
}

:root[data-theme="dark"] .profile-inactive-avatar-fallback{
  color: #fdba74;
}

:root[data-theme="dark"] .profile-inactive-badge{
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fed7aa;
}

:root[data-theme="dark"] .profile-results-block{
  border-color: rgba(59, 130, 246, 0.36);
  background: rgba(30, 64, 175, 0.16);
}

:root[data-theme="dark"] .profile-result-item{
  border-color: rgba(59, 130, 246, 0.32);
  background: rgba(15, 23, 42, 0.74);
}

:root[data-theme="dark"] .profile-renewal-steps{
  border-color: rgba(59, 130, 246, 0.44);
  background: rgba(30, 58, 138, 0.18);
}

:root[data-theme="dark"] .profile-renewal-details{
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(30, 41, 59, 0.62);
}

:root[data-theme="dark"] .profile-renewal-details > summary{
  color: #e2e8f0;
}

:root[data-theme="dark"] .profile-renewal-code{
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(59, 130, 246, 0.32);
  color: #e2e8f0;
}

:root[data-theme="dark"] .profile-renewal-state-chip {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(30, 41, 59, 0.74);
  color: #cbd5e1;
}

:root[data-theme="dark"] .profile-renewal-state-chip.is-success {
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(22, 163, 74, 0.22);
  color: #bbf7d0;
}

:root[data-theme="dark"] .profile-plan-card .renewal-plan-code::placeholder{
  color: #94a3b8;
}

:root[data-theme="dark"] .profile-renewal-label,
:root[data-theme="dark"] .profile-renewal-status,
:root[data-theme="dark"] .profile-plan-card-meta{
  color: #cbd5e1;
}

:root[data-theme="dark"] .profile-renewal-copy-row .renewal-plan-copy{
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.44);
  color: #d1fae5;
}

:root[data-theme="dark"] .profile-renewal-copy-row .renewal-plan-copy:hover{
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(52, 211, 153, 0.56);
}

:root[data-theme="dark"] .coupon-open-link--renewal{
  color: #93c5fd;
}

:root[data-theme="dark"] .coupon-open-link--renewal:hover{
  color: #bfdbfe;
}


: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: var(--profile-surface-strong);
  border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .perfil-header {
  border-color: var(--profile-line);
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(22, 27, 34, 0.96), rgba(13, 17, 23, 0.94));
  box-shadow: var(--profile-shadow);
}

:root[data-theme="dark"] .card-secao {
  border-color: var(--profile-line);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow);
}

:root[data-theme="dark"] .card-secao:hover {
  border-color: rgba(255, 122, 0, 0.16);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .profile-result-item,
:root[data-theme="dark"] .profile-renewal-qr-wrap,
:root[data-theme="dark"] .profile-renewal-code,
:root[data-theme="dark"] .coupon-modal,
:root[data-theme="dark"] .item-certificado,
:root[data-theme="dark"] .item-pagamento,
:root[data-theme="dark"] .item-endereco-fixo,
:root[data-theme="dark"] .item-mosaico,
:root[data-theme="dark"] .price-list-public-item,
:root[data-theme="dark"] .btn-secundario {
  border-color: var(--profile-line);
  background: var(--profile-surface-strong);
}

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

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

: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="light"] .chips-secundarios .tag-cidade,
:root[data-theme="light"] .lista-tags .tag-cidade {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.46);
  color: #065f46;
}

:root[data-theme="light"] .chips-secundarios .tag-cidade:hover,
:root[data-theme="light"] .lista-tags .tag-cidade:hover {
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(16, 185, 129, 0.58);
  color: #064e3b;
}

:root[data-theme="light"] .chips-secundarios .tag-top3,
:root[data-theme="light"] .lista-tags .tag-top3 {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(245, 158, 11, 0.46);
  color: #92400e;
}

:root[data-theme="light"] .chips-secundarios .tag-top3:hover,
:root[data-theme="light"] .lista-tags .tag-top3:hover {
  background: rgba(251, 191, 36, 0.26);
  border-color: rgba(217, 119, 6, 0.58);
  color: #78350f;
}

:root[data-theme="dark"] .chips-secundarios .tag-secundaria {
  background: rgba(59, 54, 102, 0.24);
  border-color: rgba(59, 54, 102, 0.5);
  color: #e9e7f7;
}

:root[data-theme="dark"] .chips-secundarios .tag-secundaria:hover {
  background: rgba(59, 54, 102, 0.32);
  border-color: rgba(75, 70, 126, 0.62);
  color: #f5f3ff;
}

:root[data-theme="dark"] .chips-secundarios .tag-cidade,
:root[data-theme="dark"] .lista-tags .tag-cidade {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(52, 211, 153, 0.54);
  color: #d1fae5;
}

:root[data-theme="dark"] .chips-secundarios .tag-cidade:hover,
:root[data-theme="dark"] .lista-tags .tag-cidade:hover {
  background: rgba(16, 185, 129, 0.36);
  border-color: rgba(74, 222, 171, 0.64);
  color: #ecfdf5;
}

:root[data-theme="dark"] .chips-secundarios .tag-top3,
:root[data-theme="dark"] .lista-tags .tag-top3 {
  background: rgba(245, 158, 11, 0.28);
  border-color: rgba(251, 191, 36, 0.52);
  color: #fef3c7;
}

:root[data-theme="dark"] .chips-secundarios .tag-top3:hover,
:root[data-theme="dark"] .lista-tags .tag-top3:hover {
  background: rgba(245, 158, 11, 0.36);
  border-color: rgba(252, 211, 77, 0.64);
  color: #fffbeb;
}

.top3-celebration-toast{
  position: fixed;
  z-index: 1710;
  top: 6px;
  left: 50%;
  right: auto;
  width: min(640px, calc(100vw - 16px));
  min-height: 84px;
  padding: 16px 18px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.96));
  color: #78350f;
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -14px) scale(0.96);
  transition: opacity .32s ease, transform .32s ease;
}

.top3-celebration-toast.is-show{
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.top3-celebration-toast.is-hide{
  opacity: 0;
  transform: translate(-50%, -10px) scale(0.98);
}

.top3-toast-icon{
  font-size: 20px;
  line-height: 1;
  margin-top: 0;
  flex: 0 0 auto;
}

.top3-toast-text{
  display: -webkit-box;
  max-width: min(100%, 460px);
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.top3-confetti{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.top3-confetti-piece{
  position: absolute;
  top: -10px;
  width: 6px;
  height: 10px;
  border-radius: 999px;
  opacity: 0;
  animation-name: top3ConfettiFall;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}

@keyframes top3ConfettiFall{
  0%{
    transform: translateY(-8px) rotate(0deg);
    opacity: 0;
  }
  18%{
    opacity: 1;
  }
  100%{
    transform: translateY(72px) rotate(210deg);
    opacity: 0;
  }
}

:root[data-theme="dark"] .top3-celebration-toast{
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(180deg, rgba(69, 39, 16, 0.98), rgba(44, 26, 12, 0.96));
  color: #fde68a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

@media (max-width: 620px){
  .top3-celebration-toast{
    top: 4px;
    left: 50%;
    right: auto;
    width: min(560px, calc(100vw - 12px));
    min-height: 76px;
    padding: 13px 14px 12px;
    transform: translate(-50%, -12px) scale(0.96);
  }

  .top3-toast-icon{
    font-size: 18px;
  }

  .top3-toast-text{
    max-width: min(100%, 320px);
    font-size: 14px;
    line-height: 1.45;
  }

  .top3-celebration-toast.is-show{
    transform: translate(-50%, 0) scale(1);
  }

  .top3-celebration-toast.is-hide{
    transform: translate(-50%, -10px) scale(0.98);
  }
}

: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;
}
