:root {
  --blue: #1456d8;
  --blue-dark: #0a2f7a;
  --navy: #07152e;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f5f8ff;
  --white: #ffffff;
  --green: #22c55e;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* CABEÇALHO */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #edf0f5;
  backdrop-filter: blur(12px);
}

.header-content {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 23px;
  white-space: nowrap;
}

.logo-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 24px;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.logo-text small {
  display: block;
  margin-top: -2px;
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 14px;
  font-weight: 650;
}

.main-navigation a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.button {
  border: 1px solid var(--blue);
  border-radius: 10px;
  padding: 10px 15px;
  background: white;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  color: white;
  background: var(--blue);
}

.button-outline {
  color: var(--blue);
  background: white;
}

.icon-button,
.language-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}

.header-favorites {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
}

.favorites-count {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.favorites-count[hidden] {
  display: none;
}

/* HERO */

.hero {
  position: relative;
  min-height: 525px;
  color:white;
  display: flex;
  align-items: center;

  background:
    linear-gradient(
      90deg,
      rgba(4, 22, 52, 0.80) 0%,
      rgba(4, 22, 52, 0.52) 40%,
      rgba(4, 22, 52, 0.08) 72%
    ),
    url("../images/hero-immoglobal.png")
    center center / cover no-repeat;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.08)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "text statistics"
    "search search";
  align-items: start;
  gap: 34px 48px;
}

.hero-text {
  grid-area: text;
}

.hero-text h1 {
  max-width: 620px;
  margin: 0 0 18px;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: -1px;
}

.hero-text p {
  max-width: 510px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: #e2e8f0;
}

.hero-statistics {
  position: static;
  grid-area: statistics;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(2, 12, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.statistic {
  padding: 20px 22px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.statistic:last-child {
  border-right: 0;
}

.statistic strong {
  display: block;
  font-size: 22px;
}

.statistic span {
  font-size: 12px;
  color: #dbeafe;
}

/* PESQUISA */

.property-search {
  position: static;
  grid-area: search;
  width: min(860px, 100%);
}

.search-tabs {
  display: flex;
}

.search-tab {
  border: 0;
  padding: 13px 22px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
  cursor: pointer;
}

.search-tab:first-child {
  border-radius: 10px 0 0 0;
}

.search-tab:last-child {
  border-radius: 0 10px 0 0;
}

.search-tab.active {
  background: var(--blue);
}

.search-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
  gap: 10px;
  padding: 12px;
  background: white;
  border-radius: 0 12px 12px 12px;
  box-shadow: var(--shadow);
}

.search-form input,
.search-form select {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 14px;
  color: #334155;
  background: white;
}

.search-button {
  white-space: nowrap;
}

/* ACESSOS RÁPIDOS */

/* DESTAQUE DINÂMICO DE PROFISSIONAIS */

.professional-showcase {
  --professional-visible: 3;
  --professional-gap: 14px;
  padding: 26px 0 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.professional-showcase-heading {
  max-width: 700px;
  margin-bottom: 14px;
}

.professional-showcase-heading h2 {
  margin: 0 0 5px;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.professional-showcase-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.professional-showcase-frame {
  position: relative;
}

.professional-carousel-viewport {
  overflow: hidden;
  padding: 4px;
  margin: -4px;
}

.professional-carousel-track {
  display: flex;
  gap: var(--professional-gap);
  transform: translate3d(0, 0, 0);
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.professional-showcase-card {
  flex: 0 0 calc(
    (100% - (var(--professional-gap) * (var(--professional-visible) - 1))) /
    var(--professional-visible)
  );
  min-width: 0;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dce6f5;
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.professional-showcase-card:hover,
.professional-showcase-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.11);
}

.professional-showcase-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 113px;
  object-fit: cover;
  background: #e8eef8;
}

.professional-showcase-content {
  min-height: 113px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
}

.professional-showcase-content h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.professional-showcase-content p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.professional-showcase-action {
  width: auto;
  min-height: 30px;
  margin-top: auto;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10.5px;
}

.professional-carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #cfdbed;
  border-radius: 50%;
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  font-size: 17px;
  cursor: pointer;
  transform: translateY(-50%);
}

.professional-carousel-arrow:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.professional-carousel-arrow:focus-visible,
.professional-carousel-toggle:focus-visible,
.professional-showcase-action:focus-visible {
  outline: 3px solid rgba(20, 86, 216, 0.25);
  outline-offset: 3px;
}

.professional-carousel-arrow-previous {
  left: -18px;
}

.professional-carousel-arrow-next {
  right: -18px;
}

.professional-carousel-footer {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 7px;
}

.professional-carousel-status,
.professional-coming-soon {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.professional-carousel-toggle {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px;
  border: 1px solid #cfdbed;
  border-radius: 9px;
  color: var(--blue);
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.professional-carousel-toggle:disabled {
  color: var(--muted);
  cursor: default;
}

.professional-coming-soon {
  margin-top: 6px;
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1e40af;
  background: #eff6ff;
}

.professional-coming-soon[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .professional-carousel-track,
  .professional-showcase-card {
    transition: none;
  }

  .professional-showcase-card:hover,
  .professional-showcase-card:focus-within {
    transform: none;
  }
}

.quick-access {
  position: relative;
  z-index: 5;
  margin-top: -1px;
}

@media (max-width: 1050px) {
  .professional-showcase {
    --professional-visible: 2;
  }

  .professional-carousel-arrow-previous {
    left: 10px;
  }

  .professional-carousel-arrow-next {
    right: 10px;
  }
}

@media (max-width: 680px) {
  .professional-showcase {
    --professional-visible: 1;
    --professional-gap: 10px;
    padding: 24px 0 20px;
  }

  .professional-showcase-heading {
    margin-bottom: 12px;
  }

  .professional-showcase-heading p {
    font-size: 12.5px;
  }

  .professional-showcase-content {
    min-height: 110px;
    padding: 9px;
  }

  .professional-carousel-arrow {
    top: 50%;
    width: 34px;
    height: 34px;
  }

  .professional-carousel-footer {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.quick-card:last-child {
  border-right: 0;
}

.quick-card:hover {
  background: #f8faff;
}

.quick-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf3ff;
  color: var(--blue);
  font-size: 21px;
}

.quick-card strong {
  display: block;
  font-size: 14px;
}

.quick-card small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

/* SECÇÕES */

.featured-properties,
.professionals-section {
  padding: 52px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
}

.section-heading a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

/* CARTÕES DE IMÓVEIS */

.results-empty {
  margin-top: 18px;
  padding: 28px 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fbfdff;
  color: var(--muted);
  text-align: center;
}

.results-empty[hidden] {
  display: none;
}

.results-empty.is-loading {
  border-style: solid;
  border-color: #dbeafe;
  background: #f8fbff;
}

.results-empty.is-error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b91c1c;
}

.results-empty.is-empty {
  border-color: #dbeafe;
  background: #f8fbff;
}

.results-empty span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #edf4ff;
  font-size: 22px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.property-card {
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.property-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.property-card:focus-visible,
.result-card:focus-visible,
.similar-card:focus-visible {
  outline: 3px solid rgba(20, 86, 216, 0.35);
  outline-offset: 3px;
}

.result-card[data-property-id],
.similar-card[data-property-id] {
  cursor: pointer;
}

.results-empty {
  padding: 56px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  text-align: center;
}

.results-empty[hidden] {
  display: none;
}

.results-empty span {
  color: var(--blue);
  font-size: 36px;
}

.results-empty h2 {
  margin: 12px 0 8px;
}

.results-empty p {
  margin: 0;
  color: var(--muted);
}

.property-image {
  position: relative;
  height: 180px;
  background-position: center;
  background-size: cover;
}

.property-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.property-badge-new {
  background: var(--green);
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  cursor: pointer;
}

.favorite-button,
.result-favorite {
  z-index: 2;
  color: #334155;
  opacity: 1;
  visibility: visible;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.favorite-button:hover,
.result-favorite:hover {
  background: #f7faff;
  transform: scale(1.04);
}

.favorite-button.is-favorite,
.result-favorite.is-favorite,
.property-action-button.is-favorite {
  color: var(--blue);
  background: #edf3ff;
  border-color: var(--blue);
}

.favorite-button:focus-visible,
.result-favorite:focus-visible,
.property-action-button:focus-visible,
.header-favorites:focus-visible {
  outline: 3px solid rgba(20, 86, 216, 0.35);
  outline-offset: 3px;
}

.property-price {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: white;
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.property-content {
  padding: 14px;
}

.property-content h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.property-content p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.property-details {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  color: #475569;
  font-size: 12px;
}

/* FAVORITOS */

.favorites-page {
  background: #f6f8fc;
}

.favorites-main {
  min-height: 65vh;
  padding: 48px 0 72px;
}

.favorites-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.favorites-eyebrow {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.favorites-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
}

.favorites-heading [data-favorites-summary] {
  margin: 0;
  color: var(--muted);
}

.favorites-grid[hidden],
.favorites-skeleton[hidden],
.favorites-empty[hidden],
.favorites-error[hidden] {
  display: none;
}

.favorites-grid .property-card {
  display: flex;
  flex-direction: column;
}

.favorite-card-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.favorite-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.favorite-card-tags {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.favorite-card-tag {
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.favorite-card-added {
  margin-top: 13px !important;
  font-size: 11px !important;
}

.favorite-card-actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.favorite-card-actions .button {
  min-height: 40px;
  flex: 1 1 130px;
}

.favorites-remove-button {
  color: #a12a2a;
  border-color: #e7bcbc;
  background: white;
}

.favorites-remove-button:hover {
  color: #861f1f;
  border-color: #d99d9d;
  background: #fff7f7;
}

.favorites-remove-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.favorite-skeleton-card {
  height: 310px;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  background: linear-gradient(100deg, #edf1f6 30%, #f8fafc 50%, #edf1f6 70%);
  background-size: 220% 100%;
  animation: favorite-skeleton-loading 1.2s ease-in-out infinite;
}

@keyframes favorite-skeleton-loading {
  to { background-position-x: -220%; }
}

.favorites-empty {
  max-width: 620px;
  margin: 36px auto 0;
  padding: 54px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.favorites-empty > span {
  color: var(--blue);
  font-size: 48px;
}

.favorites-empty h2 {
  margin: 14px 0 8px;
}

.favorites-empty p {
  margin: 0 auto 22px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .favorites-main {
    padding-top: 32px;
  }

  .favorites-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* PROFISSIONAIS */

.professionals-section {
  background: var(--soft);
}

.professionals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.professional-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.professional-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf3ff;
  font-size: 22px;
}

.professional-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.professional-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* CONFIANÇA */

.trust-section {
  padding: 0;
  color: white;
  background: linear-gradient(90deg, #123aa8, #0b2669);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 22px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  margin-bottom: 5px;
}

.trust-item span {
  color: #dbeafe;
  font-size: 12px;
}

/* RODAPÉ */

.site-footer {
  padding: 44px 0 20px;
  background: var(--navy);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 40px;
}

.footer-logo {
  color: white;
}

.footer-brand p,
.footer-column a {
  color: #b7c5dc;
  font-size: 13px;
  line-height: 1.8;
}

.footer-column h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

.footer-column a {
  display: block;
}

.newsletter-title {
  margin-top: 18px !important;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  min-width: 0;
  width: 100%;
  padding: 10px;
  color: white;
  background: #0b1d3b;
  border: 1px solid #263b5e;
  border-radius: 8px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa1be;
  font-size: 12px;
}

/* TABLET */

@media (max-width: 1050px) {
  .main-navigation {
    display: none;
  }

  .hero-statistics {
    width: min(720px, 100%);
    justify-self: start;
  }

  .hero-content {
    padding: 52px 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "text"
      "statistics"
      "search";
    gap: 26px;
  }

  .search-form {
    grid-template-columns: 1fr 1fr;
  }

  .search-button {
    grid-column: span 2;
  }

  .quick-access-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .professionals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* TELEMÓVEL */

@media (max-width: 680px) {
  .header-actions .language-button,
  .header-actions .icon-button,
  .header-actions .button-outline {
    display: none;
  }

  .header-actions .header-favorites {
    display: inline-grid;
  }

  .logo {
    font-size: 20px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .hero-content {
    padding: 48px 0;
    gap: 24px;
  }

  .hero-statistics {
    grid-template-columns: repeat(2, 1fr);
  }

  .statistic:nth-child(2) {
    border-right: 0;
  }

  .statistic:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .property-search {
    width: 100%;
  }

  .search-tabs {
    overflow-x: auto;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-button {
    grid-column: auto;
  }

  .quick-access-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-card {
    border-bottom: 1px solid var(--line);
  }

  .property-grid,
  .professionals-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .newsletter-form {
    flex-direction: column;
  }
  }
  
.brand-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  }

.brand-logo img {
  display: block;
  width: 245px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 700px) {
  .brand-logo img {
    width: 190px;
  }
}

/* AUTENTICAÇÃO */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 8% 8%, rgba(56, 189, 248, 0.09), transparent 28%),
    radial-gradient(circle at 90% 92%, rgba(20, 86, 216, 0.08), transparent 30%),
    var(--soft);
}

.auth-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(12px);
}

.auth-header-content {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.auth-marketplace-link {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.auth-marketplace-link:hover {
  color: var(--blue);
}

.auth-header .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.auth-header .button:hover {
  color: white;
  background: var(--blue);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 52px 0;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  gap: 32px;
  align-items: stretch;
  max-width: 1100px;
  transform: translateY(-20px);
}

.auth-card,
.auth-trust {
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.075);
}

.auth-card {
  position: relative;
  padding: 40px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e7ecf3;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  width: 64px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue), #38bdf8);
}

.auth-card-heading {
  margin-bottom: 29px;
}

.auth-card-heading h1,
.auth-trust h2 {
  margin: 0 0 10px;
  letter-spacing: -0.4px;
}

.auth-card-heading h1 {
  font-size: 34px;
  line-height: 1.16;
}

.auth-card-heading p:last-child,
.auth-trust > p {
  margin: 0;
  line-height: 1.6;
}

.auth-card-heading p:last-child {
  color: var(--muted);
}

.auth-eyebrow {
  margin: 0 0 8px !important;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form {
  display: grid;
  gap: 19px;
}

.auth-field {
  min-width: 0;
}

.auth-field > label,
.auth-label-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.auth-label-row a,
.auth-switch a {
  color: var(--blue);
  font-weight: 700;
}

.auth-label-row a {
  font-size: 12px;
}

.auth-input-control,
.auth-password-control {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  width: 25px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%;
  height: 54px;
  padding: 0 15px 0 52px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #fcfdff;
  color: var(--text);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.auth-field input[type="text"]:hover,
.auth-field input[type="email"]:hover,
.auth-field input[type="password"]:hover {
  border-color: #cbd5e1;
  background: white;
}

.auth-field input[type="text"]:focus,
.auth-field input[type="email"]:focus,
.auth-field input[type="password"]:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(20, 86, 216, 0.1);
  outline: none;
}

.auth-field input[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626;
}

.auth-field input[aria-invalid="true"]:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.auth-field input:focus-visible,
.auth-password-toggle:focus-visible,
.auth-checkbox input:focus-visible,
.auth-submit:focus-visible,
.auth-header a:focus-visible,
.auth-switch a:focus-visible {
  outline: 3px solid rgba(20, 86, 216, 0.3);
  outline-offset: 2px;
}

.auth-password-control {
  position: relative;
}

.auth-password-control input {
  padding-right: 96px !important;
}

.auth-password-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 78px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(20, 86, 216, 0.16);
  border-radius: 9px;
  background: #f6f8fd;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.auth-password-toggle:hover {
  color: #0f48ba;
  background: #eaf1ff;
  border-color: rgba(20, 86, 216, 0.28);
}

.auth-password-toggle[aria-pressed="true"] {
  color: white;
  background: #2864d7;
  border-color: #2864d7;
}

.auth-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  color: #475569;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.5;
  cursor: pointer;
}

.auth-checkbox input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 1px 0 0;
}

.auth-field-error {
  min-height: 17px;
  margin: 6px 0 0;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.45;
}

.auth-message {
  margin-bottom: 20px;
  padding: 15px 17px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.auth-message[hidden] {
  display: none;
}

.auth-error-summary {
  color: #991b1b;
  background: #fff7f7;
  border: 1px solid #f5c7c7;
}

.auth-error-summary h2 {
  margin: 0 0 7px;
  font-size: 14px;
}

.auth-error-summary ul {
  margin: 0;
  padding-left: 20px;
}

.auth-success-message {
  color: #14532d;
  background: #f3fcf6;
  border: 1px solid #bde9ca;
}

.auth-password-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 13px;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  list-style: none;
}

.auth-password-requirements li {
  padding: 3px 4px;
  border-radius: 6px;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.auth-password-requirements .is-met {
  color: #15803d;
  background: #eefbf2;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  box-shadow: 0 9px 20px rgba(20, 86, 216, 0.2);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.auth-submit:hover:not(:disabled) {
  background: #0f48ba;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 86, 216, 0.25);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(20, 86, 216, 0.2);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-trust {
  position: relative;
  padding: 42px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 88% 7%, rgba(104, 206, 255, 0.34), transparent 29%),
    radial-gradient(circle at 6% 92%, rgba(30, 99, 222, 0.42), transparent 34%),
    linear-gradient(145deg, #0b4ab8 0%, #092e74 48%, #06142d 100%);
  border: 1px solid rgba(33, 105, 218, 0.32);
}

.auth-trust > * {
  position: relative;
  z-index: 1;
}

.auth-trust::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 18%;
  width: 320px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(42px);
  transform: rotate(-12deg);
}

.auth-trust::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.auth-trust .auth-eyebrow {
  color: #93c5fd;
}

.auth-trust h2 {
  color: white;
  max-width: 390px;
  font-size: 31px;
  line-height: 1.2;
}

.auth-trust > p {
  color: #cbd5e1;
  font-size: 14px;
}

.auth-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  position: relative;
  z-index: 1;
  padding-left: 33px;
}

.auth-benefits li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(56, 189, 248, 0.24);
  border: 1px solid rgba(147, 197, 253, 0.35);
  font-size: 12px;
  font-weight: 900;
}

.auth-benefits strong,
.auth-benefits span {
  display: block;
}

.auth-benefits strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.auth-benefits span {
  color: #b7c5dc;
  font-size: 12px;
  line-height: 1.45;
}

.auth-trust .auth-demo-note {
  position: relative;
  z-index: 1;
  padding: 15px 16px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 11px;
  color: #bfdbfe;
  background: rgba(7, 21, 46, 0.34);
  font-size: 12px;
}

.auth-footer {
  padding: 18px 0;
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .auth-main {
    align-items: flex-start;
    padding: 32px 0;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 680px;
    transform: none;
  }

  .auth-trust {
    order: 2;
  }
}

@media (max-width: 600px) {
  .auth-header-content {
    min-height: 64px;
  }

  .auth-header .button {
    padding: 9px 11px;
    font-size: 12px;
  }

  .auth-header-actions {
    gap: 9px;
  }

  .auth-marketplace-link {
    font-size: 11px;
  }

  .auth-main {
    padding: 22px 0;
  }

  .auth-card,
  .auth-trust {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .auth-card::before {
    left: 20px;
  }

  .auth-card-heading h1 {
    font-size: 26px;
  }

  .auth-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .auth-password-requirements {
    grid-template-columns: 1fr;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .auth-trust h2 {
    font-size: 25px;
  }
}

@media (max-width: 420px) {
  .auth-header-content {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }

  .auth-header .brand-logo img {
    width: 150px;
  }

  .auth-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .auth-marketplace-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* DASHBOARD — todos os estilos permanecem isolados da experiência marketplace */

.dashboard-page {
  min-height: 100vh;
  color: var(--text);
  background: #f4f7fc;
}

.dashboard-page button,
.dashboard-page a {
  -webkit-tap-highlight-color: transparent;
}

.dashboard-page svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 110;
  padding: 10px 15px;
  border-radius: 9px;
  color: white;
  background: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.dashboard-skip-link:focus {
  transform: translateY(0);
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 74px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e7ecf4;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(18px);
}

.dashboard-header-inner {
  width: min(1500px, calc(100% - 48px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-brand img {
  width: 188px;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-demo-badge,
.dashboard-preview-label,
.dashboard-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  color: #174da8;
  background: #edf4ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-demo-badge {
  padding: 7px 10px;
}

.dashboard-marketplace-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  transition: color 0.2s ease;
}

.dashboard-marketplace-link svg {
  font-size: 19px;
}

.dashboard-marketplace-link:hover {
  color: var(--blue);
}

.dashboard-shell {
  width: min(1500px, 100%);
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  top: 74px;
  align-self: start;
  height: calc(100vh - 74px);
  padding: 28px 20px 22px;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #e6ebf3;
}

.dashboard-sidebar-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px 26px;
  padding: 0 0 22px;
  border-bottom: 1px solid #edf0f5;
}

.dashboard-sidebar-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, var(--blue), #38a9ed);
  box-shadow: 0 9px 18px rgba(20, 86, 216, 0.22);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.dashboard-sidebar-intro strong,
.dashboard-sidebar-intro span {
  display: block;
}

.dashboard-sidebar-intro strong {
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 14px;
}

.dashboard-sidebar-intro div > span {
  color: var(--muted);
  font-size: 10px;
}

.dashboard-navigation {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dashboard-nav-item {
  position: relative;
  width: 100%;
  min-height: 45px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  color: #475569;
  background: transparent;
  font-size: 13px;
  font-weight: 680;
  text-align: left;
  cursor: default;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dashboard-nav-item svg {
  font-size: 19px;
}

.dashboard-nav-item small {
  color: #94a3b8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-nav-item:not(.is-active):hover {
  color: var(--blue);
  background: #f5f8fe;
}

.dashboard-nav-item.is-active {
  color: white;
  background: linear-gradient(135deg, #1456d8, #246fe4);
  box-shadow: 0 9px 20px rgba(20, 86, 216, 0.22);
  cursor: pointer;
}

.dashboard-nav-label {
  margin: 19px 11px 7px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-nav-logout {
  margin-top: 5px;
  color: #a33b49;
  background: #fff8f8;
}

.dashboard-sidebar-note {
  margin: 18px 5px 0;
  padding: 13px;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  color: #758297;
  background: #fafbfd;
  font-size: 9px;
  line-height: 1.5;
}

.dashboard-message-count {
  min-width: 20px;
  padding: 3px 6px;
  border-radius: 999px;
  color: white !important;
  background: #dc3545;
  text-align: center;
}

.dashboard-message-count[hidden] {
  display: none;
}

/* CENTRO DE MENSAGENS */

.messages-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.messages-main {
  min-height: calc(100vh - 74px);
}

.messages-heading {
  margin-bottom: 22px;
}

.messages-heading h1 {
  margin: 2px 0 7px;
  color: var(--navy);
  font-size: clamp(28px, 3.5vw, 38px);
}

.messages-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
}

.messages-workspace {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(300px, 0.38fr) minmax(0, 0.62fr);
  overflow: hidden;
  border: 1px solid #e0e6ef;
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.messages-conversations-panel {
  min-width: 0;
  border-right: 1px solid #e7ebf2;
  background: #fbfcfe;
}

.messages-panel-heading {
  min-height: 78px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e7ebf2;
  background: white;
}

.messages-panel-heading h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 18px;
}

.messages-panel-heading span {
  color: var(--muted);
  font-size: 11px;
}

.messages-skeleton {
  padding: 8px;
}

.messages-skeleton[hidden],
.messages-state[hidden],
.messages-conversation-list[hidden],
.messages-chat[hidden],
.messages-chat-placeholder[hidden],
.messages-chat-loading[hidden],
.messages-chat-error[hidden],
.messages-composer [hidden] {
  display: none;
}

.messages-skeleton span {
  height: 104px;
  margin-bottom: 7px;
  display: block;
  border-radius: 11px;
  background: linear-gradient(100deg, #edf1f6 30%, #f8fafc 50%, #edf1f6 70%);
  background-size: 220% 100%;
  animation: favorite-skeleton-loading 1.2s ease-in-out infinite;
}

.messages-state,
.messages-chat-placeholder {
  min-height: 430px;
  padding: 35px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.messages-state > span,
.messages-chat-placeholder > span {
  color: var(--blue);
  font-size: 40px;
}

.messages-state h3,
.messages-chat-placeholder h2 {
  margin: 13px 0 7px;
}

.messages-state p,
.messages-chat-placeholder p {
  max-width: 330px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.messages-conversation-list {
  max-height: 570px;
  overflow-y: auto;
}

.messages-conversation-item {
  width: 100%;
  padding: 16px 18px;
  display: block;
  border: 0;
  border-bottom: 1px solid #e9edf3;
  color: #334155;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.messages-conversation-item:hover,
.messages-conversation-item.is-active {
  background: #eef4ff;
}

.messages-conversation-item.has-unread {
  box-shadow: inset 4px 0 var(--blue);
  background: #f5f8ff;
}

.messages-conversation-item.is-active {
  box-shadow:
    inset 4px 0 var(--blue),
    inset 0 0 0 1px rgba(20, 86, 216, 0.16);
  background: #e8f1ff;
}

.messages-conversation-top,
.messages-conversation-meta,
.messages-conversation-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.messages-conversation-top strong {
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-conversation-role {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--blue);
  background: #e8f0ff;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.messages-conversation-location,
.messages-conversation-meta,
.messages-conversation-preview {
  margin-top: 7px;
  color: #7b8798;
  font-size: 10px;
}

.messages-conversation-location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-conversation-meta strong {
  color: var(--blue-dark);
  font-size: 12px;
}

.messages-conversation-preview span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-unread-badge {
  min-width: 20px;
  padding: 3px 6px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}

.messages-chat-panel,
.messages-chat {
  min-width: 0;
  min-height: 650px;
}

.messages-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.messages-chat-header {
  min-height: 78px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #e7ebf2;
}

.messages-chat-header > div {
  min-width: 0;
  flex: 1;
}

.messages-chat-header h2 {
  margin: 0 0 3px;
  overflow: hidden;
  color: var(--navy);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-chat-header p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.messages-chat-header div > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
}

.messages-chat-header .button {
  flex: 0 0 auto;
}

.messages-mobile-back {
  display: none;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.messages-thread {
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
  background: #f7f9fc;
}

.message-row {
  margin-bottom: 13px;
  display: flex;
}

.message-row.is-own {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(74%, 560px);
  padding: 11px 13px 8px;
  border: 1px solid #dde4ee;
  border-radius: 13px 13px 13px 4px;
  color: #334155;
  background: white;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.message-row.is-own .message-bubble {
  border-color: #1456d8;
  border-radius: 13px 13px 4px 13px;
  color: white;
  background: #1456d8;
}

.message-bubble p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.message-bubble small {
  margin-top: 5px;
  display: block;
  color: #8a96a8;
  font-size: 8px;
  text-align: right;
}

.message-row.is-own .message-bubble small {
  color: rgba(255, 255, 255, 0.78);
}

.messages-chat-loading,
.messages-chat-error {
  padding: 14px;
  color: var(--muted);
  background: #f7f9fc;
  text-align: center;
}

.messages-chat-error button {
  margin-left: 8px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.messages-composer {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid #e7ebf2;
  background: white;
}

.messages-composer textarea {
  min-height: 48px;
  max-height: 130px;
  padding: 12px;
  resize: vertical;
  border: 1px solid #d7dee9;
  border-radius: 10px;
  font: inherit;
}

.messages-composer > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #a12a2a;
  font-size: 11px;
}

.messages-composer button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.messages-page .messages-conversation-item:focus-visible,
.messages-page .messages-mobile-back:focus-visible,
.messages-page .messages-composer textarea:focus-visible,
.messages-page .messages-composer button:focus-visible {
  outline: 3px solid rgba(20, 86, 216, 0.3);
  outline-offset: 2px;
}

.dashboard-main {
  min-width: 0;
  padding: 34px clamp(24px, 3vw, 48px) 26px;
}

.dashboard-welcome {
  position: relative;
  min-height: 188px;
  padding: 38px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 21px;
  color: white;
  background:
    radial-gradient(circle at 86% 12%, rgba(82, 177, 255, 0.35), transparent 28%),
    linear-gradient(122deg, #07152e 0%, #0a2f7a 55%, #1456d8 100%);
  box-shadow: 0 20px 42px rgba(7, 21, 46, 0.18);
}

.dashboard-welcome::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -105px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.035);
}

.dashboard-welcome > * {
  position: relative;
  z-index: 1;
}

.dashboard-eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dashboard-welcome .dashboard-eyebrow {
  color: #8fc7ff;
}

.dashboard-welcome h1 {
  margin: 0 0 10px;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.dashboard-welcome p:last-child {
  max-width: 720px;
  margin: 0;
  color: #cfdef4;
  font-size: 14px;
  line-height: 1.65;
}

.dashboard-preview-label {
  flex: 0 0 auto;
  padding: 10px 13px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.dashboard-section {
  margin-top: 31px;
}

.dashboard-section-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-section-heading h2,
.dashboard-insight-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.dashboard-demo-copy {
  color: #8491a5;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.dashboard-stat-card {
  min-width: 0;
  padding: 21px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  background: white;
  box-shadow: 0 9px 25px rgba(15, 23, 42, 0.045);
}

.dashboard-stat-icon,
.dashboard-action-icon,
.dashboard-activity-icon,
.dashboard-insight-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.dashboard-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 21px;
}

.dashboard-stat-icon-blue { color: #1456d8; background: #eaf1ff; }
.dashboard-stat-icon-rose { color: #d9466d; background: #fff0f4; }
.dashboard-stat-icon-violet { color: #7c4fe0; background: #f3efff; }
.dashboard-stat-icon-teal { color: #07968d; background: #e9fbf8; }

.dashboard-stat-card div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
}

.dashboard-stat-card div > span {
  overflow: hidden;
  color: #526074;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-stat-card strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
}

.dashboard-stat-card small {
  margin-top: 5px;
  color: #9aa5b5;
  font-size: 8px;
}

.dashboard-content-grid {
  margin-top: 23px;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(270px, 0.75fr);
  align-items: start;
  gap: 22px;
}

.dashboard-primary-column,
.dashboard-right-column {
  display: grid;
  gap: 22px;
}

.dashboard-panel,
.dashboard-insight-card {
  border: 1px solid #e4e9f2;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.dashboard-panel {
  padding: 24px;
}

.dashboard-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.dashboard-action-card {
  width: 100%;
  min-height: 82px;
  padding: 15px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #e6eaf1;
  border-radius: 13px;
  color: var(--text);
  background: #fbfcfe;
  text-align: left;
  cursor: default;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-action-card:hover {
  border-color: #cdd9eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.dashboard-action-card.dashboard-action-live {
  cursor: pointer;
}

.dashboard-action-card.dashboard-action-live:hover {
  border-color: #9fbcef;
  transform: translateY(-2px);
}

.dashboard-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--blue);
  background: #eaf2ff;
  font-size: 19px;
}

.dashboard-action-card strong,
.dashboard-action-card small {
  display: block;
}

.dashboard-action-card strong {
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 13px;
}

.dashboard-action-card small {
  color: #8995a8;
  font-size: 9px;
}

.dashboard-action-arrow {
  color: #90a0b6;
  font-size: 17px;
}

.dashboard-panel-intro {
  margin: -5px 0 18px;
  color: #7a879a;
  font-size: 10px;
  line-height: 1.5;
}

.dashboard-activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-activity-list li {
  position: relative;
  min-height: 62px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.dashboard-activity-list li + li {
  border-top: 1px solid #edf0f5;
}

.dashboard-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #376bbd;
  background: #f0f5fd;
  font-size: 16px;
}

.dashboard-activity-list strong,
.dashboard-activity-list div span {
  display: block;
}

.dashboard-activity-list strong {
  margin-bottom: 4px;
  color: #26364c;
  font-size: 12px;
}

.dashboard-activity-list div span {
  color: #8491a4;
  font-size: 9px;
}

.dashboard-activity-list li > small {
  padding: 5px 7px;
  border-radius: 999px;
  color: #66748a;
  background: #f1f4f8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-insight-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.dashboard-insight-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--blue);
  background: #edf4ff;
  font-size: 21px;
}

.dashboard-insight-card h2 {
  margin-bottom: 11px;
  font-size: 18px;
}

.dashboard-insight-card p {
  margin: 0;
  color: #69778b;
  font-size: 11px;
  line-height: 1.65;
}

.dashboard-insight-card a {
  margin-top: 17px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-future {
  color: white;
  background:
    radial-gradient(circle at 90% 5%, rgba(81, 174, 255, 0.29), transparent 34%),
    linear-gradient(145deg, #07152e, #0a347e);
  border-color: #163d75;
  box-shadow: 0 15px 30px rgba(7, 21, 46, 0.16);
}

.dashboard-future::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.dashboard-future > * {
  position: relative;
  z-index: 1;
}

.dashboard-future .dashboard-card-label {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 8px;
  color: #c9e3ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.dashboard-future .dashboard-insight-icon {
  color: #9bd0ff;
  background: rgba(255, 255, 255, 0.09);
}

.dashboard-future h2 {
  color: white;
}

.dashboard-future p {
  color: #c2d1e7;
}

.dashboard-future small {
  margin-top: 15px;
  display: block;
  color: #91aaca;
  font-size: 8px;
  line-height: 1.5;
}

.dashboard-auth-note {
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: #fdfefe;
}

.dashboard-auth-note .dashboard-insight-icon {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 11px;
  font-size: 17px;
}

.dashboard-auth-note h2 {
  margin-bottom: 6px;
  font-size: 13px;
}

.dashboard-auth-note p {
  font-size: 9px;
}

.dashboard-footer {
  margin-top: 28px;
  padding: 20px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e0e6ef;
  color: #8a96a8;
  font-size: 9px;
}

.dashboard-page .dashboard-nav-item:focus-visible,
.dashboard-page .dashboard-action-card:focus-visible,
.dashboard-page .dashboard-marketplace-link:focus-visible,
.dashboard-page .dashboard-brand:focus-visible,
.dashboard-page .dashboard-insight-card a:focus-visible,
.dashboard-page .dashboard-skip-link:focus-visible {
  outline: 3px solid rgba(20, 86, 216, 0.32);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .dashboard-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .dashboard-sidebar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .dashboard-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-content-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.75fr);
  }

  .dashboard-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dashboard-header-inner {
    width: min(100% - 32px, 1500px);
  }

  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #e6ebf3;
  }

  .dashboard-sidebar-intro,
  .dashboard-nav-label,
  .dashboard-sidebar-note {
    display: none;
  }

  .dashboard-navigation {
    overflow-x: auto;
    flex-direction: row;
    gap: 7px;
    scrollbar-width: thin;
  }

  .dashboard-nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 42px;
    grid-template-columns: 19px auto;
    white-space: nowrap;
  }

  .dashboard-nav-item small {
    display: none;
  }

  .dashboard-nav-logout {
    margin-top: 0;
  }

  .dashboard-main {
    padding-top: 26px;
  }

  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-right-column {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-auth-note {
    grid-column: 1 / -1;
  }

  .messages-workspace {
    min-height: 610px;
    grid-template-columns: 1fr;
  }

  .messages-conversations-panel {
    border-right: 0;
  }

  .messages-chat-panel {
    display: none;
  }

  .messages-workspace.has-open-conversation .messages-conversations-panel {
    display: none;
  }

  .messages-workspace.has-open-conversation .messages-chat-panel {
    display: block;
  }

  .messages-mobile-back {
    display: block;
  }

  .messages-conversation-list {
    max-height: none;
  }
}

@media (max-width: 600px) {
  .messages-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .messages-workspace,
  .messages-chat-panel,
  .messages-chat {
    min-height: 560px;
  }

  .messages-chat-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .messages-chat-header .button {
    width: 100%;
    min-height: 38px;
  }

  .messages-thread {
    padding: 16px 12px;
  }

  .message-bubble {
    max-width: 88%;
  }

  .messages-composer {
    grid-template-columns: 1fr;
  }

  .messages-composer button {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .dashboard-header,
  .dashboard-header-inner {
    min-height: 66px;
  }

  .dashboard-brand img {
    width: 154px;
  }

  .dashboard-demo-badge {
    display: none;
  }

  .dashboard-marketplace-link {
    font-size: 0;
  }

  .dashboard-marketplace-link::after {
    content: "Marketplace";
    font-size: 11px;
  }

  .dashboard-sidebar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .dashboard-main {
    padding: 18px 16px 22px;
  }

  .dashboard-welcome {
    min-height: 225px;
    padding: 28px 24px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    border-radius: 17px;
  }

  .dashboard-welcome h1 {
    font-size: 29px;
  }

  .dashboard-welcome p:last-child {
    font-size: 12px;
  }

  .dashboard-preview-label {
    padding: 8px 10px;
  }

  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .dashboard-stats-grid,
  .dashboard-actions-grid,
  .dashboard-right-column {
    grid-template-columns: 1fr;
  }

  .dashboard-auth-note {
    grid-column: auto;
  }

  .dashboard-panel,
  .dashboard-insight-card {
    padding: 20px;
    border-radius: 15px;
  }

  .dashboard-stat-card {
    min-height: 84px;
  }

  .dashboard-activity-list li {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .dashboard-activity-list li > small {
    grid-column: 2;
    width: fit-content;
  }

  .dashboard-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .dashboard-header-inner {
    width: calc(100% - 24px);
  }

  .dashboard-brand img {
    width: 140px;
  }

  .dashboard-welcome {
    padding: 24px 20px;
  }

  .dashboard-panel,
  .dashboard-insight-card {
    padding: 18px;
  }

  .dashboard-action-card {
    padding: 12px;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page *,
  .dashboard-page *::before,
  .dashboard-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* PUBLICAR IMÓVEL — estilos isolados da experiência marketplace */

.publish-page {
  min-height: 100vh;
  color: var(--text);
  background: #f4f7fc;
}

.publish-page button,
.publish-page input,
.publish-page select,
.publish-page textarea {
  font: inherit;
}

.publish-page svg,
.publish-demo-message svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publish-skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 120;
  padding: 10px 15px;
  border-radius: 9px;
  color: white;
  background: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.publish-skip-link:focus {
  transform: translateY(0);
}

.publish-header {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 74px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e6ebf3;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(18px);
}

.publish-header-inner,
.publish-container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.publish-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.publish-brand img {
  width: 188px;
}

.publish-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}

.publish-header-actions a {
  transition: color 0.2s ease;
}

.publish-header-actions a:hover {
  color: var(--blue);
}

.publish-demo-badge {
  padding: 7px 10px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  color: #174da8;
  background: #edf4ff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.publish-marketplace-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.publish-marketplace-link svg {
  font-size: 18px;
}

.publish-main {
  padding: 34px 0 28px;
}

.publish-hero {
  position: relative;
  min-height: 230px;
  padding: 43px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 85% 15%, rgba(78, 175, 255, 0.34), transparent 27%),
    linear-gradient(125deg, #07152e 0%, #0a2f7a 58%, #1456d8 100%);
  box-shadow: 0 21px 45px rgba(7, 21, 46, 0.18);
}

.publish-hero::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -115px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.035);
}

.publish-hero > * {
  position: relative;
  z-index: 1;
}

.publish-eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.publish-hero .publish-eyebrow {
  color: #8fc7ff;
}

.publish-hero h1 {
  max-width: 720px;
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.publish-hero p:last-child {
  max-width: 680px;
  margin: 0;
  color: #cfdef4;
  font-size: 14px;
  line-height: 1.65;
}

.publish-hero-icon {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14);
  font-size: 43px;
  backdrop-filter: blur(10px);
}

.publish-notice {
  margin: 18px 0 24px;
  padding: 15px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #cfe0fb;
  border-radius: 13px;
  color: #31547f;
  background: #f0f6ff;
}

.publish-notice > span {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
}

.publish-notice strong,
.publish-notice p {
  display: block;
}

.publish-notice strong {
  margin-bottom: 3px;
  color: #173d73;
  font-size: 12px;
}

.publish-notice p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.publish-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.publish-steps {
  position: sticky;
  top: 98px;
  padding: 24px 21px;
  border: 1px solid #e4e9f2;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.publish-steps-heading {
  padding-bottom: 19px;
  border-bottom: 1px solid #edf0f5;
}

.publish-steps-heading h2 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.publish-steps-heading > p:last-child {
  margin: 0;
  color: #7d899b;
  font-size: 9px;
  line-height: 1.55;
}

.publish-step-navigation {
  position: relative;
  margin-top: 18px;
  display: grid;
  gap: 7px;
}

.publish-step-navigation::before {
  content: "";
  position: absolute;
  top: 31px;
  bottom: 31px;
  left: 17px;
  width: 1px;
  background: #dce4f0;
}

.publish-step-navigation a {
  position: relative;
  min-height: 55px;
  padding: 8px 7px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  column-gap: 11px;
  border-radius: 10px;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.publish-step-navigation a:hover {
  background: #f5f8fe;
}

.publish-step-navigation a.is-active {
  color: var(--blue);
  background: #eff5ff;
  box-shadow: inset 0 0 0 1px rgba(20, 86, 216, 0.09);
}

.publish-step-navigation a > span {
  z-index: 1;
  grid-row: 1 / span 2;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd8ea;
  border-radius: 11px;
  color: var(--blue);
  background: white;
  font-size: 11px;
  font-weight: 850;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.publish-step-navigation a.is-active > span {
  color: white;
  border-color: var(--blue);
  background: linear-gradient(140deg, var(--blue), #318ce2);
  box-shadow: 0 7px 15px rgba(20, 86, 216, 0.22);
}

.publish-step-navigation strong {
  align-self: end;
  color: #26364c;
  font-size: 11px;
  transition: color 0.22s ease;
}

.publish-step-navigation a.is-active strong {
  color: #104ba9;
}

.publish-step-navigation small {
  align-self: start;
  margin-top: 2px;
  color: #929daf;
  font-size: 8px;
}

.publish-privacy-note {
  margin-top: 20px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #dce7f7;
  border-radius: 11px;
  color: #3565a5;
  background: #f4f8fe;
}

.publish-privacy-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 18px;
}

.publish-privacy-note p {
  margin: 0;
  color: #718097;
  font-size: 8px;
  line-height: 1.5;
}

.publish-privacy-note strong {
  display: block;
  margin-bottom: 3px;
  color: #2b568e;
  font-size: 9px;
}

.publish-form {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.publish-form-section {
  padding: 29px;
  scroll-margin-top: 96px;
  border: 1px solid #e3e8f1;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.publish-section-heading {
  margin-bottom: 25px;
  padding-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid #edf0f5;
}

.publish-section-heading > span {
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(140deg, var(--blue), #3597e6);
  box-shadow: 0 7px 16px rgba(20, 86, 216, 0.2);
  font-size: 10px;
  font-weight: 850;
}

.publish-section-heading h2 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.publish-section-heading div > p:last-child {
  margin: 0;
  color: #7c899c;
  font-size: 10px;
  line-height: 1.5;
}

.publish-fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.publish-fieldset legend,
.publish-field > label,
.publish-media-heading strong {
  margin-bottom: 8px;
  display: block;
  color: #344257;
  font-size: 11px;
  font-weight: 750;
}

.publish-fieldset legend span,
.publish-field > label span {
  color: #d2465d;
}

.publish-choice-grid {
  display: grid;
  gap: 11px;
}

.publish-choice-grid-two {
  grid-template-columns: 1fr 1fr;
}

.publish-choice-card {
  position: relative;
  min-height: 83px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 13px;
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.publish-choice-card:hover {
  border-color: #aac2e9;
  background: #f7faff;
}

.publish-choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.publish-choice-card:has(input:checked) {
  border-color: var(--blue);
  background: #f1f6ff;
  box-shadow: 0 0 0 3px rgba(20, 86, 216, 0.09);
}

.publish-choice-icon {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: #eaf2ff;
  font-size: 20px;
}

.publish-choice-card strong,
.publish-choice-card small {
  display: block;
}

.publish-choice-card strong {
  margin-bottom: 4px;
  color: #26364c;
  font-size: 12px;
}

.publish-choice-card small {
  color: #8592a5;
  font-size: 9px;
}

.publish-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 15px;
}

.publish-fields-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.publish-field-wide {
  grid-column: 1 / -1;
}

.publish-field-full {
  grid-column: 1 / -1;
}

.publish-field input,
.publish-field select,
.publish-field textarea,
.publish-unit-field {
  width: 100%;
  border: 1px solid #d9e0ea;
  border-radius: 10px;
  color: #1e293b;
  background: white;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.publish-field input,
.publish-field select {
  min-height: 47px;
  padding: 0 13px;
}

.publish-field textarea {
  min-height: 170px;
  padding: 13px;
  line-height: 1.6;
  resize: vertical;
}

.publish-field input::placeholder,
.publish-field textarea::placeholder {
  color: #a7b0bf;
}

.publish-field input:hover,
.publish-field select:hover,
.publish-field textarea:hover,
.publish-unit-field:hover {
  border-color: #becadd;
}

.publish-field input:focus,
.publish-field select:focus,
.publish-field textarea:focus,
.publish-unit-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 86, 216, 0.11);
}

.publish-field > small {
  margin-top: 6px;
  display: block;
  color: #8b97a8;
  font-size: 8px;
  line-height: 1.45;
}

.publish-form .publish-field.has-validation-error input,
.publish-form .publish-field.has-validation-error select,
.publish-form .publish-field.has-validation-error textarea,
.publish-form .publish-field.has-validation-error .publish-unit-field {
  border-color: #c9364f;
  background: #fffafb;
  box-shadow: 0 0 0 3px rgba(201, 54, 79, 0.09);
}

.publish-form .publish-fieldset.has-validation-error .publish-choice-card {
  border-color: #c9364f;
  background: #fffafb;
  box-shadow: 0 0 0 3px rgba(201, 54, 79, 0.07);
}

.publish-form .publish-terms.has-validation-error {
  border-color: #c9364f;
  background: #fffafb;
  box-shadow: 0 0 0 3px rgba(201, 54, 79, 0.09);
}

.publish-form .publish-validation-error {
  margin: 7px 2px 0;
  display: block;
  color: #b4233b;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

.publish-location {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dfe6f1;
  border-radius: 14px;
  background: #f8faff;
}

.publish-location.has-location-error {
  border-color: #c9364f;
  background: #fffafb;
  box-shadow: 0 0 0 3px rgba(201, 54, 79, 0.08);
}

.publish-location-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.publish-location-heading strong,
.publish-location-heading span {
  display: block;
}

.publish-location-heading strong {
  margin-bottom: 3px;
  color: #26364c;
  font-size: 11px;
}

.publish-location-heading span {
  color: #7c899c;
  font-size: 9px;
  line-height: 1.45;
}

.publish-location-heading button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #b8cbea;
  border-radius: 9px;
  color: #1d55a5;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.publish-location-heading button:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
  background: #edf4ff;
  box-shadow: 0 5px 14px rgba(20, 86, 216, 0.1);
}

.publish-location-heading button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.publish-location-status {
  margin: 0;
  color: #65738a;
  font-size: 9px;
  line-height: 1.5;
}

.publish-location.has-location-error .publish-location-status {
  color: #b4233b;
  font-weight: 700;
}

.publish-location-map {
  width: 100%;
  height: 340px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #d6dfec;
  border-radius: 12px;
  background: #e9eef6;
}

.publish-location-map[hidden],
.publish-location-map-hint[hidden] {
  display: none;
}

.publish-location-map .maplibregl-canvas {
  outline: none;
}

.publish-location-map .maplibregl-marker:focus-visible {
  outline: 3px solid rgba(20, 86, 216, 0.48);
  outline-offset: 4px;
  border-radius: 50%;
}

.publish-location-map-hint {
  margin: 7px 1px 0;
  color: #738198;
  font-size: 8px;
  line-height: 1.45;
}

.publish-location-privacy {
  margin-top: 13px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.publish-location-privacy input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.publish-location-privacy strong,
.publish-location-privacy small {
  display: block;
}

.publish-location-privacy strong {
  margin-bottom: 2px;
  color: #344257;
  font-size: 9px;
}

.publish-location-privacy small {
  color: #7c899c;
  font-size: 8px;
  line-height: 1.45;
}

.publish-unit-field {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.publish-unit-field input {
  min-width: 0;
  border: 0;
  box-shadow: none;
}

.publish-unit-field input:focus {
  box-shadow: none;
}

.publish-unit-field span {
  padding: 0 13px;
  color: #65738a;
  font-size: 11px;
  font-weight: 750;
}

.publish-media-heading {
  margin: 23px 0 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

.publish-media-heading strong {
  margin-bottom: 3px;
}

.publish-media-heading div > span {
  color: #8a96a8;
  font-size: 8px;
}

.publish-media-heading > span {
  color: #8290a4;
  font-size: 9px;
  font-weight: 750;
}

.publish-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.publish-upload-zone {
  min-height: 200px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #aebfd9;
  border-radius: 14px;
  color: #708097;
  background: #f8fafd;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.publish-upload-zone:hover {
  border-color: var(--blue);
  background: #f4f8ff;
}

.publish-photo-input:focus-visible + .publish-upload-zone {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 86, 216, 0.13);
}

.publish-photo-input:disabled + .publish-upload-zone {
  cursor: not-allowed;
  opacity: 0.68;
}

.publish-photo-field.has-validation-error .publish-upload-zone {
  border-color: #c9364f;
  background: #fffafb;
  box-shadow: 0 0 0 3px rgba(201, 54, 79, 0.09);
}

.publish-upload-icon {
  width: 51px;
  height: 51px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: #e8f1ff;
  font-size: 24px;
}

.publish-upload-zone strong {
  color: #30435c;
  font-size: 13px;
}

.publish-upload-zone p {
  max-width: 470px;
  margin: 7px 0 13px;
  font-size: 9px;
  line-height: 1.55;
}

.publish-upload-label {
  padding: 6px 9px;
  border: 1px solid #cedaeb;
  border-radius: 999px;
  color: #476382;
  background: white;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.publish-photo-limit {
  margin: 8px 2px 0;
  display: block;
  color: #7c899d;
  font-size: 9px;
  line-height: 1.45;
}

.publish-photo-error[hidden] {
  display: none;
}

.publish-photo-previews {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.publish-photo-preview {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe6f0;
  border-radius: 11px;
  background: #f7f9fc;
  box-shadow: 0 5px 16px rgba(20, 40, 75, 0.07);
}

.publish-photo-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.publish-photo-preview-details {
  min-width: 0;
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.publish-photo-preview-details strong,
.publish-photo-preview-details small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-photo-preview-details strong {
  color: #30435c;
  font-size: 9px;
}

.publish-photo-preview-details small {
  color: #7c899d;
  font-size: 8px;
}

.publish-photo-main-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 37, 78, 0.88);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.publish-photo-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: #fff;
  background: rgba(14, 30, 53, 0.78);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.publish-photo-remove:hover {
  background: #b4233b;
}

.publish-photo-remove:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.publish-photo-remove:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.publish-image-placeholders {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 9px;
}

.publish-image-placeholders span {
  min-height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid #e4e9f1;
  border-radius: 10px;
  color: #a4aebe;
  background: #fafbfd;
  font-size: 8px;
}

.publish-image-placeholders svg {
  font-size: 21px;
}

.publish-review-section {
  border-color: #cfdbef;
}

.publish-terms {
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #dfe5ed;
  border-radius: 11px;
  color: #536176;
  background: #fafbfd;
  font-size: 10px;
  line-height: 1.55;
  cursor: pointer;
}

.publish-terms input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
}

.publish-final-notice {
  margin-top: 13px;
  padding: 14px 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #f0d9b4;
  border-radius: 11px;
  color: #9a6218;
  background: #fffaf0;
}

.publish-final-notice svg {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 18px;
}

.publish-final-notice p {
  margin: 0;
  color: #82673f;
  font-size: 9px;
  line-height: 1.5;
}

.publish-final-notice strong {
  display: block;
  margin-bottom: 2px;
  color: #8a5511;
  font-size: 10px;
}

.publish-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.publish-actions > a {
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
}

.publish-actions > a:hover {
  color: var(--blue);
}

.publish-submit {
  min-height: 49px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--blue);
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, var(--blue), #2474e7);
  box-shadow: 0 10px 20px rgba(20, 86, 216, 0.23);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publish-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(20, 86, 216, 0.29);
}

.publish-submit svg {
  font-size: 17px;
}

.publish-action-caption {
  margin: 9px 0 0;
  color: #929cad;
  font-size: 8px;
  text-align: right;
}

.publish-footer {
  margin-top: 28px;
  padding: 20px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e0e6ef;
  color: #8a96a8;
  font-size: 9px;
}

.publish-demo-message {
  width: min(460px, calc(100% - 32px));
  padding: 29px;
  border: 1px solid #d9e2ef;
  border-radius: 18px;
  color: var(--text);
  background: white;
  box-shadow: 0 28px 70px rgba(7, 21, 46, 0.24);
  text-align: center;
}

.publish-demo-message::backdrop {
  background: rgba(7, 21, 46, 0.58);
  backdrop-filter: blur(4px);
}

.publish-message-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #b36a12;
  background: #fff4df;
  font-size: 27px;
}

.publish-demo-message h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.publish-demo-message > p:not(.publish-eyebrow) {
  margin: 0;
  color: #69778b;
  font-size: 11px;
  line-height: 1.65;
}

.publish-demo-message button {
  min-height: 44px;
  margin-top: 20px;
  padding: 0 20px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  color: white;
  background: var(--blue);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.publish-page a:focus-visible,
.publish-page button:focus-visible,
.publish-page input:focus-visible,
.publish-page select:focus-visible,
.publish-page textarea:focus-visible,
.publish-demo-message button:focus-visible {
  outline: 3px solid rgba(20, 86, 216, 0.3);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .publish-layout {
    grid-template-columns: 1fr;
  }

  .publish-steps {
    position: sticky;
    top: 74px;
    z-index: 40;
    padding: 13px;
    border-radius: 14px;
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.08);
  }

  .publish-steps-heading,
  .publish-privacy-note {
    display: none;
  }

  .publish-step-navigation {
    margin: 0;
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(135px, 1fr));
    gap: 7px;
    scrollbar-width: thin;
  }

  .publish-step-navigation::before {
    display: none;
  }

  .publish-step-navigation a {
    min-width: 135px;
    background: #f8fafd;
  }

  .publish-step-navigation a.is-active {
    background: #edf4ff;
    box-shadow: inset 0 0 0 1px rgba(20, 86, 216, 0.14), 0 6px 14px rgba(20, 86, 216, 0.08);
  }
}

@media (max-width: 720px) {
  .publish-header-inner,
  .publish-container {
    width: calc(100% - 32px);
  }

  .publish-brand img {
    width: 155px;
  }

  .publish-demo-badge,
  .publish-header-actions > a:not(.publish-marketplace-link) {
    display: none;
  }

  .publish-main {
    padding-top: 20px;
  }

  .publish-hero {
    min-height: 250px;
    padding: 30px 26px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    border-radius: 18px;
  }

  .publish-hero h1 {
    font-size: 33px;
  }

  .publish-hero p:last-child {
    font-size: 12px;
  }

  .publish-hero-icon {
    display: none;
  }

  .publish-notice {
    padding: 14px;
  }

  .publish-form-section {
    padding: 22px;
    border-radius: 15px;
  }

  .publish-choice-grid-two,
  .publish-fields-grid,
  .publish-fields-grid-three {
    grid-template-columns: 1fr;
  }

  .publish-field-wide,
  .publish-field-full {
    grid-column: auto;
  }

  .publish-image-placeholders {
    grid-template-columns: 1fr 1fr;
  }

  .publish-photo-previews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publish-location-map {
    height: 290px;
  }

  .publish-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .publish-actions > a {
    padding: 11px;
    text-align: center;
  }

  .publish-action-caption {
    text-align: center;
  }

  .publish-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .publish-header-inner,
  .publish-container {
    width: calc(100% - 24px);
  }

  .publish-brand img {
    width: 142px;
  }

  .publish-marketplace-link {
    font-size: 10px;
  }

  .publish-hero {
    padding: 27px 21px;
  }

  .publish-hero h1 {
    font-size: 29px;
  }

  .publish-form-section {
    padding: 19px 17px;
  }

  .publish-section-heading {
    gap: 10px;
  }

  .publish-section-heading > span {
    width: 33px;
    height: 33px;
  }

  .publish-section-heading h2 {
    font-size: 18px;
  }

  .publish-image-placeholders {
    grid-template-columns: 1fr;
  }

  .publish-photo-previews {
    grid-template-columns: 1fr;
  }

  .publish-media-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .publish-location-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .publish-location-heading button {
    width: 100%;
  }

  .publish-location-map {
    height: 250px;
  }

  .publish-demo-message {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .publish-page *,
  .publish-page *::before,
  .publish-page *::after,
  .publish-demo-message,
  .publish-demo-message::backdrop {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* OS MEUS IMÓVEIS — estilos isolados da área de gestão */

.my-properties-page {
  min-height: 100vh;
  background: #f4f7fc;
}

.my-properties-page .dashboard-main {
  padding-top: 32px;
}

.my-properties-page svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.my-properties-welcome {
  position: relative;
  min-height: 196px;
  padding: 38px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 21px;
  color: white;
  background:
    radial-gradient(circle at 88% 10%, rgba(82, 177, 255, 0.34), transparent 28%),
    linear-gradient(122deg, #07152e 0%, #0a2f7a 55%, #1456d8 100%);
  box-shadow: 0 20px 42px rgba(7, 21, 46, 0.18);
}

.my-properties-welcome::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -115px;
  width: 275px;
  height: 275px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.035);
}

.my-properties-welcome > * {
  position: relative;
  z-index: 1;
}

.my-properties-welcome .dashboard-eyebrow {
  color: #8fc7ff;
}

.my-properties-welcome h1 {
  margin: 0 0 10px;
  font-size: clamp(31px, 3.4vw, 45px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.my-properties-welcome p:last-child {
  max-width: 700px;
  margin: 0;
  color: #cfdef4;
  font-size: 13px;
  line-height: 1.65;
}

.my-properties-publish-link {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  color: white;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(9px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.my-properties-publish-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.my-properties-demo-notice {
  margin: 18px 0 27px;
  padding: 14px 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #cdddf6;
  border-radius: 12px;
  color: #31547f;
  background: #f0f6ff;
}

.my-properties-demo-notice > span {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
}

.my-properties-demo-notice p {
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
}

.my-properties-demo-notice strong {
  color: #173d73;
}

.my-properties-section-heading,
.my-properties-list-header {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.my-properties-section-heading h2,
.my-properties-list-header h2,
.my-properties-info-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.my-properties-section-heading > span,
.my-properties-list-header > span {
  color: #8793a5;
  font-size: 9px;
  font-weight: 750;
}

.my-properties-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.my-properties-stat {
  min-width: 0;
  padding: 19px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #e4e9f1;
  border-radius: 16px;
  background: white;
  box-shadow: 0 9px 25px rgba(15, 23, 42, 0.045);
}

.my-properties-stat-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 20px;
}

.my-properties-stat-icon-active { color: #0a8b63; background: #e8f8f2; }
.my-properties-stat-icon-draft { color: #7a55d5; background: #f1edff; }
.my-properties-stat-icon-sold { color: #1764d5; background: #eaf2ff; }
.my-properties-stat-icon-views { color: #bd7016; background: #fff4e3; }

.my-properties-stat div {
  min-width: 0;
}

.my-properties-stat span,
.my-properties-stat strong,
.my-properties-stat small {
  display: block;
}

.my-properties-stat div > span {
  min-height: 27px;
  color: #59677b;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.3;
}

.my-properties-stat strong {
  margin: 3px 0 4px;
  color: var(--navy);
  font-size: 23px;
  line-height: 1;
}

.my-properties-stat small {
  color: #99a3b2;
  font-size: 7px;
}

.my-properties-content-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 22px;
}

.my-properties-list-section {
  min-width: 0;
}

.my-properties-filters {
  margin: 0 0 15px;
  padding: 0;
  border: 0;
}

.my-properties-filters legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.my-properties-filters > div {
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  background: white;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.035);
  scrollbar-width: thin;
}

.my-properties-filters input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.my-properties-filters label {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #66748a;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.my-properties-filters label:hover {
  color: var(--blue);
  background: #f3f7fd;
}

.my-properties-filters input:checked + label {
  color: white;
  background: var(--blue);
  box-shadow: 0 6px 13px rgba(20, 86, 216, 0.2);
}

.my-properties-filters input:focus-visible + label {
  outline: 3px solid rgba(20, 86, 216, 0.3);
  outline-offset: 2px;
}

.my-properties-filters > small {
  margin: 7px 4px 0;
  display: block;
  color: #939dad;
  font-size: 8px;
}

.my-properties-cards {
  display: grid;
  gap: 14px;
}

.my-properties-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e2e7ef;
  border-radius: 17px;
  background: white;
  box-shadow: 0 9px 25px rgba(15, 23, 42, 0.045);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.my-properties-card:hover {
  border-color: #ccd8e9;
  box-shadow: 0 14px 31px rgba(15, 23, 42, 0.075);
  transform: translateY(-2px);
}

.my-properties-image {
  position: relative;
  min-height: 270px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.my-properties-image::before,
.my-properties-image::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.my-properties-image::before {
  right: -45px;
  bottom: -55px;
  width: 160px;
  height: 160px;
}

.my-properties-image::after {
  top: -45px;
  left: -40px;
  width: 120px;
  height: 120px;
}

.my-properties-image.has-property-photo {
  padding: 0;
  background: #e8edf4;
}

.my-properties-image.has-property-photo::before,
.my-properties-image.has-property-photo::after {
  display: none;
}

.my-properties-image.has-property-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.my-properties-image-coast { background: linear-gradient(145deg, #0a3f79, #1f91b7); }
.my-properties-image-city { background: linear-gradient(145deg, #34355d, #7766a9); }
.my-properties-image-lisbon { background: linear-gradient(145deg, #814b36, #d08b5d); }
.my-properties-image-office { background: linear-gradient(145deg, #223247, #55708d); }
.my-properties-image-land { background: linear-gradient(145deg, #346446, #7ca25d); }
.my-properties-image-development { background: linear-gradient(145deg, #174f92, #45a4c7); }

.my-properties-image svg,
.my-properties-image span {
  position: relative;
  z-index: 1;
}

.my-properties-image svg {
  font-size: 48px;
}

.my-properties-image > span {
  max-width: 125px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.05em;
  line-height: 1.45;
  text-transform: uppercase;
}

.my-properties-card-body {
  min-width: 0;
  padding: 18px 19px;
  display: flex;
  flex-direction: column;
}

.my-properties-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.my-properties-card-topline > small {
  color: #9aa4b3;
  font-size: 7px;
  font-weight: 700;
}

.my-properties-status {
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.my-properties-status.is-active { color: #087553; background: #e9f8f2; border-color: #c7ecdf; }
.my-properties-status.is-draft { color: #6d4bb6; background: #f2edfc; border-color: #ded3f5; }
.my-properties-status.is-paused { color: #9b6217; background: #fff5e5; border-color: #f0dfc0; }
.my-properties-status.is-sold { color: #1757b3; background: #eaf2ff; border-color: #cbdffc; }

.my-properties-card-heading {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.my-properties-card-heading > div {
  min-width: 0;
}

.my-properties-card-heading div > span {
  color: #8995a7;
  font-size: 8px;
  font-weight: 750;
}

.my-properties-card-heading h3 {
  margin: 4px 0 5px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.my-properties-card-heading p {
  margin: 0;
  color: #7f8b9d;
  font-size: 9px;
  line-height: 1.4;
}

.my-properties-card-heading > strong {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 14px;
  white-space: nowrap;
}

.my-properties-card-metrics {
  margin-top: 14px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
}

.my-properties-card-metrics > div {
  min-width: 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.my-properties-card-metrics > div:first-child {
  padding-left: 0;
}

.my-properties-card-metrics > div + div {
  border-left: 1px solid #edf0f5;
}

.my-properties-card-metrics svg {
  flex: 0 0 auto;
  color: #6680a4;
  font-size: 15px;
}

.my-properties-card-metrics span,
.my-properties-card-metrics small {
  display: block;
}

.my-properties-card-metrics span {
  overflow: hidden;
  color: #6e7b8e;
  font-size: 7px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-properties-card-metrics small {
  margin-top: 3px;
  color: #293a52;
  font-size: 8px;
  font-weight: 800;
}

.my-properties-card-dates {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  color: #8994a5;
  font-size: 7px;
}

.my-properties-card-dates strong {
  color: #606e82;
}

.my-properties-statistics-panel {
  margin: 3px 0 12px;
  padding: 12px;
  display: block;
  border: 1px solid #dbe5f2;
  border-radius: 11px;
  background: #f7faff;
}

.my-properties-statistics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.my-properties-statistics-panel[hidden] {
  display: none;
}

.my-properties-statistic {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e4eaf3;
  border-radius: 9px;
  background: white;
}

.my-properties-statistic span,
.my-properties-statistic strong {
  display: block;
}

.my-properties-trend {
  margin-top: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 9px;
  color: #3e5069;
  background: #eef3f9;
  font-size: 9px;
}

.my-properties-trend strong {
  flex: 0 0 auto;
  color: #18345e;
  font-size: 10px;
}

.my-properties-trend.is-rising { background: #e9f8f2; }
.my-properties-trend.is-rising strong { color: #087553; }
.my-properties-trend.is-falling { background: #fff0f2; }
.my-properties-trend.is-falling strong { color: #a6293c; }

.my-properties-chart {
  margin: 12px 0 0;
}

.my-properties-chart figcaption {
  margin-bottom: 8px;
  color: #53647b;
  font-size: 9px;
  font-weight: 800;
}

.my-properties-chart-bars {
  height: 94px;
  padding: 8px 7px 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  overflow: hidden;
  border: 1px solid #e3eaf4;
  border-radius: 9px;
  background: white;
}

.my-properties-chart-bar {
  min-width: 2px;
  flex: 1 1 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #4f8df2, #1456d8);
}

.my-properties-chart-axis {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  color: #8995a7;
  font-size: 7px;
}

.my-properties-statistic span {
  color: #748298;
  font-size: 8px;
  font-weight: 750;
}

.my-properties-statistic strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #18345e;
  font-size: 11px;
}

.my-properties-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.my-properties-card-actions a,
.my-properties-card-actions button {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  color: #53647b;
  background: white;
  font-size: 8px;
  font-weight: 800;
}

.my-properties-card-actions a {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.my-properties-card-actions a:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.my-properties-card-actions button {
  cursor: default;
}

.my-properties-card-actions .my-properties-statistics-action {
  border-color: #b9cdea;
  color: #1456d8;
  cursor: pointer;
}

.my-properties-card-actions button small {
  color: #9aa5b4;
  font-size: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.my-properties-card-actions .my-properties-delete {
  margin-left: auto;
  border-color: #efcfd4;
  color: #a6293c;
  background: #fffafa;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.my-properties-card-actions .my-properties-delete:hover:not(:disabled) {
  border-color: #dca3ad;
  color: #861d2e;
  background: #fff1f3;
}

.my-properties-card-actions .my-properties-delete:disabled {
  opacity: 0.6;
  cursor: wait;
}

.my-properties-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.my-properties-info-card {
  position: relative;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: white;
  box-shadow: 0 9px 25px rgba(15, 23, 42, 0.045);
}

.my-properties-info-card:not(.my-properties-info-featured):not(.my-properties-info-dark) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.my-properties-info-icon {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--blue);
  background: #edf4ff;
  font-size: 18px;
}

.my-properties-info-featured .my-properties-info-icon,
.my-properties-info-dark .my-properties-info-icon {
  margin-bottom: 15px;
}

.my-properties-info-card h2 {
  margin-bottom: 7px;
  font-size: 14px;
}

.my-properties-info-card p:last-child {
  margin: 0;
  color: #748195;
  font-size: 9px;
  line-height: 1.6;
}

.my-properties-info-featured {
  background: linear-gradient(145deg, #f8fbff, #eef5ff);
  border-color: #d8e6f9;
}

.my-properties-info-dark {
  color: white;
  background:
    radial-gradient(circle at 90% 5%, rgba(81, 174, 255, 0.27), transparent 34%),
    linear-gradient(145deg, #07152e, #0a347e);
  border-color: #163d75;
  box-shadow: 0 14px 28px rgba(7, 21, 46, 0.15);
}

.my-properties-info-dark::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -52px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.my-properties-info-dark > * {
  position: relative;
  z-index: 1;
}

.my-properties-info-dark .my-properties-info-icon {
  color: #9bd0ff;
  background: rgba(255, 255, 255, 0.09);
}

.my-properties-info-dark h2 {
  color: white;
}

.my-properties-info-dark p:last-child {
  color: #c1d0e5;
}

.my-properties-info-label {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #c9e3ff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 6px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.my-properties-web3-note {
  background: #fdfefe;
}

.my-properties-footer {
  margin-top: 30px;
}

.my-properties-page .my-properties-publish-link:focus-visible,
.my-properties-page .my-properties-card-actions a:focus-visible,
.my-properties-page .my-properties-card-actions button:focus-visible,
.my-properties-page .dashboard-nav-item:focus-visible,
.my-properties-page .dashboard-marketplace-link:focus-visible,
.my-properties-page .dashboard-brand:focus-visible {
  outline: 3px solid rgba(20, 86, 216, 0.32);
  outline-offset: 3px;
}

@media (max-width: 1240px) {
  .my-properties-content-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .my-properties-card {
    grid-template-columns: 175px minmax(0, 1fr);
  }

  .my-properties-card-heading {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 1080px) {
  .my-properties-stats {
    grid-template-columns: 1fr 1fr;
  }

  .my-properties-content-layout {
    grid-template-columns: 1fr;
  }

  .my-properties-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .my-properties-info-dark {
    grid-row: span 2;
  }
}

@media (max-width: 760px) {
  .my-properties-page .dashboard-main {
    padding-top: 20px;
  }

  .my-properties-welcome {
    min-height: 240px;
    padding: 30px 25px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    border-radius: 17px;
  }

  .my-properties-welcome h1 {
    font-size: 32px;
  }

  .my-properties-publish-link {
    min-height: 43px;
  }

  .my-properties-section-heading,
  .my-properties-list-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .my-properties-card {
    grid-template-columns: 1fr;
  }

  .my-properties-image {
    min-height: 170px;
  }

  .my-properties-card-heading {
    flex-direction: row;
  }

  .my-properties-aside {
    grid-template-columns: 1fr;
  }

  .my-properties-statistics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-properties-info-dark {
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .my-properties-demo-notice {
    padding: 13px;
  }

  .my-properties-stats {
    grid-template-columns: 1fr;
  }

  .my-properties-card-body {
    padding: 16px;
  }

  .my-properties-card-topline,
  .my-properties-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-properties-card-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .my-properties-card-metrics > div {
    padding: 0;
  }

  .my-properties-card-metrics > div + div {
    padding-top: 8px;
    border-top: 1px solid #edf0f5;
    border-left: 0;
  }

  .my-properties-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .my-properties-statistics-grid {
    grid-template-columns: 1fr;
  }

  .my-properties-trend {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-properties-card-actions a,
  .my-properties-card-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .my-properties-page *,
  .my-properties-page *::before,
  .my-properties-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
