:root {
  /* Professional, real-estate friendly palette (cool + neutral). */
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: rgba(15, 23, 42, 0.94);
  --muted: rgba(30, 41, 59, 0.72);
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 22px 60px rgba(2, 6, 23, 0.10);
  --shadow-soft: 0 12px 28px rgba(2, 6, 23, 0.08);
  --radius: 16px;
  --brand-a: #4f46e5; /* Indigo */
  --brand-b: #0891b2; /* Teal */
  --brand-c: #f97316; /* (reserved) */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(79, 70, 229, 0.10), transparent 56%),
    radial-gradient(900px 520px at 95% 10%, rgba(8, 145, 178, 0.10), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.45);
  outline-offset: 3px;
  border-radius: 10px;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  flex-wrap: nowrap;
}
.brand-mark {
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.10);
}
.brand-text {
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav-link--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-icon {
  width: 18px;
  height: 18px;
}
.nav-link:hover {
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}
.nav-link:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.45);
  outline-offset: 3px;
}
.nav-link.is-active {
  border-color: rgba(79, 70, 229, 0.22);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.10), rgba(8, 145, 178, 0.06));
  color: rgba(15, 23, 42, 0.94);
  font-weight: 950;
}
.nav-inline {
  display: inline;
}
.nav-button {
  cursor: pointer;
  font: inherit;
  background: transparent;
  color: var(--muted);
}

.main {
  padding: 0 0 3.2rem;
}

.page {
  padding: 2rem 0 0;
}

.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

/* Video hero */
.video-hero {
  position: relative;
  overflow: clip;
  min-height: clamp(520px, 78vh, 680px);
  padding: 3.4rem 0 2.6rem;
}
.video-hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(8, 145, 178, 0.16));
}
.video-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.02) contrast(1.06) brightness(0.82);
}
.video-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 720px at 18% 18%, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.26) 58%, rgba(15, 23, 42, 0.14)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.08));
}
.video-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 1.4rem;
}

/* Home hero (video card) */
.home-hero {
  padding: 2.6rem 0 1.2rem;
}
.home-hero h1 {
  margin: 0.85rem 0 0.55rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -1px;
}
.hero-video-card {
  background:
    radial-gradient(720px 420px at 25% 15%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.64) 55%, rgba(255, 255, 255, 0.50)),
    linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(8, 145, 178, 0.10));
}
.hero-video {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 0;
}
.hero-video video {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
  background: transparent;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.92);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.74);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
}
.video-hero h1 {
  margin: 0.85rem 0 0.55rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -1px;
}
.lead {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(15, 23, 42, 0.72);
  max-width: 52ch;
}
.cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.55rem;
  max-width: 720px;
}
.metric {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem 1rem;
}
.metric-title {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.92rem;
}
.metric-value {
  font-weight: 950;
  font-size: 1.25rem;
  letter-spacing: -0.4px;
}

/* Sections */
.section { padding: 2.2rem 0 0; }
.section-header h2 { margin: 0; letter-spacing: -0.4px; }
.section-header p { margin: 0.35rem 0 0; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.quick-card {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
  position: relative;
  overflow: hidden;
}
.quick-icon::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, rgba(79, 70, 229, 0.92), rgba(8, 145, 178, 0.92), rgba(79, 70, 229, 0.92));
  filter: blur(10px);
  opacity: 0.45;
}
.quick-icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.quick-icon--sell::after { box-shadow: inset 0 0 0 2px rgba(79, 70, 229, 0.18); }
.quick-icon--pin::after { box-shadow: inset 0 0 0 2px rgba(8, 145, 178, 0.20); }
.quick-icon--chart::after { box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.14); }
.quick-icon--tools::after { box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.14); }
.quick-title {
  font-weight: 900;
  margin-top: 0.45rem;
  letter-spacing: -0.25px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}
.card h3, .card h2 { margin-top: 0; letter-spacing: -0.2px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.0rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(248, 250, 252, 0.92);
  color: rgba(15, 23, 42, 0.92);
  font-weight: 850;
  letter-spacing: -0.2px;
  line-height: 1.15;
  min-height: 44px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.08);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}
.button:visited { color: rgba(15, 23, 42, 0.92); }
.button:hover {
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(241, 245, 249, 0.98);
  color: rgba(15, 23, 42, 0.96);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.10);
}
.button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
}
.button:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.55);
  outline-offset: 3px;
}
.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}
.button-primary {
  border-color: rgba(79, 70, 229, 0.26);
  background-color: #4f46e5;
  background-image: linear-gradient(135deg, #4f46e5, #0891b2);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(15, 23, 42, 0.16);
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.22);
}
.button-primary:visited {
  color: #ffffff;
}
.button-primary:hover {
  border-color: rgba(67, 56, 202, 0.34);
  background-color: #4338ca;
  background-image: linear-gradient(135deg, #4338ca, #0e7490);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.26);
}
.button-ghost {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(241, 245, 249, 0.72);
  color: rgba(15, 23, 42, 0.90);
}
.button-ghost:visited {
  color: rgba(15, 23, 42, 0.90);
}
.button-ghost:hover {
  border-color: rgba(79, 70, 229, 0.22);
  background: rgba(226, 232, 240, 0.92);
  color: rgba(15, 23, 42, 0.96);
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: start;
}
.split-media { order: 2; }
.split-content { order: 1; }

.media-stack {
  display: grid;
  gap: 1rem;
}

.media-card {
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}
.media-card--logo {
  overflow: visible;
}
.logo-panel {
  display: grid;
  place-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(640px 360px at 25% 20%, rgba(255, 255, 255, 0.95), transparent 60%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(8, 145, 178, 0.10));
}
.logo-hero {
  width: min(70%, 260px);
  height: auto;
  border-radius: 34px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.75);
}
.logo-caption {
  text-align: center;
}
.logo-title {
  font-weight: 950;
  letter-spacing: -0.4px;
}

.media-placeholder {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(255, 255, 255, 0.95), transparent 60%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(8, 145, 178, 0.10));
}
.media-placeholder--tools {
  background:
    radial-gradient(600px 300px at 30% 10%, rgba(255, 255, 255, 0.92), transparent 60%),
    linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(15, 23, 42, 0.06));
}
.media-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 950;
  letter-spacing: 0.8px;
}
.media-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
.geo-card {
  overflow: hidden;
}
.geo-map {
  position: relative;
  min-height: 300px;
  background:
    radial-gradient(600px 300px at 30% 10%, rgba(255, 255, 255, 0.92), transparent 60%),
    linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(15, 23, 42, 0.06));
}
.geo-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}
.geo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.geo-title {
  font-weight: 950;
  letter-spacing: -0.25px;
}

/* Forms */
.form { margin-top: 1rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.form-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.form-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.form-grid--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-grid--3 textarea {
  min-height: 44px;
}
.field { display: grid; gap: 0.35rem; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 900; color: rgba(15, 23, 42, 0.66); font-size: 0.95rem; }
input, select, textarea {
  width: 100%;
  padding: 0.58rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: rgba(15, 23, 42, 0.92);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.05);
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.55);
  outline-offset: 2px;
}

.form-section {
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
.section-title {
  font-weight: 950;
  letter-spacing: -0.35px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.52rem 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  user-select: none;
}
.check-pill input {
  width: 16px;
  height: 16px;
  padding: 0;
  box-shadow: none;
}
.check-pill span {
  font-weight: 850;
  color: rgba(15, 23, 42, 0.82);
  letter-spacing: -0.15px;
  font-size: 0.78rem;
}
.errorlist {
  margin: 0;
  padding-left: 1.25rem;
  color: rgba(185, 28, 28, 0.92);
}
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.page-header { margin-bottom: 1rem; }
.page-header h1 { margin: 0 0 0.35rem; letter-spacing: -0.6px; }
.page-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  margin-bottom: 1rem;
}

/* Sell lead */
.sell-lead-shell {
  width: min(1040px, 100%);
}
.publish-property-shell {
  width: min(760px, 100%);
}
.sell-lead-panel {
  padding: 1.25rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.sell-lead-panel h1 { margin-top: 0; }
.sell-lead-top-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.sell-lead-description textarea {
  min-height: 72px;
  height: 72px;
}

/* Dashboard */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.dash-kpi { margin-bottom: 0; }
.dash-kpi-value {
  font-weight: 980;
  letter-spacing: -0.4px;
  font-size: 2.0rem;
  margin-top: 0.25rem;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.dash-card { margin-bottom: 0; }
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.dash-card-title {
  margin: 0;
  letter-spacing: -0.45px;
  font-size: 1.15rem;
}
.dash-list { display: grid; gap: 0.75rem; }
.dash-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
.dash-item:first-child { border-top: 0; padding-top: 0; }
.dash-item-title { font-weight: 950; letter-spacing: -0.25px; }
.dash-item-actions {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  justify-items: end;
}
.dash-item-actions form {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}
.dash-reason {
  width: 180px;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.86);
}
.dash-item--compact { grid-template-columns: 1fr; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: calc(var(--radius) - 2px);
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 2200px;
}
.dash-table--compact {
  min-width: 1200px;
}
.dash-table th,
.dash-table td {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  vertical-align: top;
  font-size: 0.95rem;
}
.dash-table thead th {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  text-align: left;
  font-weight: 950;
  letter-spacing: -0.2px;
  z-index: 1;
  white-space: nowrap;
}
.dash-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.015);
}
.dash-table tbody tr:hover {
  background: rgba(79, 70, 229, 0.04);
}
.dash-table .nowrap { white-space: nowrap; }
.dash-table .cell-wide { min-width: 280px; max-width: 360px; }
.dash-table .cell-wide {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-table .cell-photo { width: 72px; }
.dash-table .cell-photo img {
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.7);
  display: block;
}
.dash-table .cell-actions { min-width: 360px; }
.table-actions {
  display: grid;
  gap: 0.55rem;
}
.table-actions form {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}
.table-actions .button {
  justify-self: end;
}
.table-actions--icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.table-actions--icons form { display: contents; }
.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: rgba(15, 23, 42, 0.88);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}
.icon-btn:hover {
  border-color: rgba(15, 23, 42, 0.20);
  background: rgba(241, 245, 249, 0.98);
  color: rgba(15, 23, 42, 0.96);
  transform: translateY(-1px);
}
.icon-btn:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.55);
  outline-offset: 3px;
}
.icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.1px;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}
.icon-btn[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(15, 23, 42, 0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}
.icon-btn:hover::after,
.icon-btn:hover::before,
.icon-btn:focus-visible::after,
.icon-btn:focus-visible::before {
  opacity: 1;
}
.icon-btn .icon {
  width: 20px;
  height: 20px;
}
.icon-btn--primary {
  border-color: rgba(79, 70, 229, 0.24);
  background-color: #4f46e5;
  background-image: linear-gradient(135deg, #4f46e5, #0891b2);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.18);
}
.icon-btn--primary:hover {
  border-color: rgba(67, 56, 202, 0.34);
  background-color: #4338ca;
  background-image: linear-gradient(135deg, #4338ca, #0e7490);
  color: #ffffff;
}
.icon-btn--ghost {
  background: rgba(241, 245, 249, 0.72);
  color: rgba(15, 23, 42, 0.86);
}
.icon-btn--danger {
  border-color: rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.10);
  color: rgba(185, 28, 28, 0.95);
}
.icon-btn--danger:hover { background: rgba(239, 68, 68, 0.16); }

.dash-preview {
  width: min(520px, 100%);
  height: auto;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.7);
}

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

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.tag {
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  font-weight: 900;
  font-size: 0.9rem;
}
.price { font-weight: 950; }
.card-title { margin: 0; }

.property-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  margin-bottom: 0.8rem;
}

.empty {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  border: 1px dashed rgba(15, 23, 42, 0.20);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.65);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

.callout {
  margin-top: 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(79, 70, 229, 0.18);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(8, 145, 178, 0.06));
  padding: 1rem;
}

.list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

/* Publish (hub) */
.publish-hero--brand {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(900px 420px at 18% 20%, rgba(255, 255, 255, 0.92), transparent 62%),
    radial-gradient(900px 420px at 85% 30%, rgba(255, 255, 255, 0.88), transparent 60%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(8, 145, 178, 0.08));
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.15rem;
}
.publish-hero--brand::before {
  content: "";
  position: absolute;
  inset: -55%;
  background:
    conic-gradient(
      from 120deg,
      transparent 0deg,
      rgba(79, 70, 229, 0.22) 55deg,
      transparent 105deg,
      rgba(8, 145, 178, 0.18) 160deg,
      transparent 245deg,
      rgba(79, 70, 229, 0.16) 290deg,
      transparent 360deg
    );
  filter: blur(34px);
  opacity: 0.75;
  animation: publishGlow 9.5s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.publish-hero--brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.0) 38%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.0) 62%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  opacity: 0.28;
  animation: publishShine 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.publish-hero-top,
.publish-steps {
  position: relative;
  z-index: 1;
}
.publish-hero-logo {
  position: relative;
  z-index: 1;
}
.step-dot {
  animation: stepPulse 2.8s ease-in-out infinite;
}
.publish-steps .step:nth-child(2) .step-dot { animation-delay: 0.35s; }
.publish-steps .step:nth-child(3) .step-dot { animation-delay: 0.7s; }

@keyframes publishGlow {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.03); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes publishShine {
  0% { background-position: 0% 50%; opacity: 0.0; }
  18% { opacity: 0.26; }
  52% { background-position: 100% 50%; opacity: 0.22; }
  100% { background-position: 100% 50%; opacity: 0.0; }
}

@keyframes stepPulse {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); box-shadow: 0 10px 18px rgba(79, 70, 229, 0.16); }
  50% { transform: translateY(-1px) scale(1.12); filter: brightness(1.12); box-shadow: 0 14px 26px rgba(79, 70, 229, 0.22); }
}
.publish-hero-top {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: center;
}
.publish-hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.78);
}
.publish-hero-copy h1 {
  margin: 0;
  letter-spacing: -0.9px;
  font-size: clamp(2.0rem, 3.4vw, 3.1rem);
}
.publish-hero-copy p { margin: 0.55rem 0 0; max-width: 70ch; }
.publish-hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.publish-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.05rem;
}
.step {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}
.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 0.25rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(8, 145, 178, 0.86));
  box-shadow: 0 10px 18px rgba(79, 70, 229, 0.16);
}
.step-title {
  font-weight: 950;
  letter-spacing: -0.25px;
}

.publish-block { margin-top: 1.8rem; }
.publish-block--tight { margin-top: 1.2rem; }
.publish-block-head h2 { margin: 0; letter-spacing: -0.6px; }
.publish-block-head p { margin: 0.35rem 0 0; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.action-tile {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  padding: 1.05rem;
  display: grid;
  gap: 0.65rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
  outline: none;
}
.action-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.action-tile:focus-visible {
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18), var(--shadow);
}
.action-tile--primary {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(8, 145, 178, 0.08));
  border-color: rgba(79, 70, 229, 0.18);
}
.action-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}
.action-icon::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, rgba(79, 70, 229, 0.92), rgba(8, 145, 178, 0.92), rgba(79, 70, 229, 0.92));
  filter: blur(10px);
  opacity: 0.45;
}
.action-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.86), rgba(8, 145, 178, 0.78));
}
.action-icon--search::after { background: linear-gradient(135deg, rgba(8, 145, 178, 0.86), rgba(79, 70, 229, 0.74)); }
.action-icon--invest::after { background: linear-gradient(135deg, rgba(79, 70, 229, 0.84), rgba(15, 23, 42, 0.70)); }
.action-icon--pro::after { background: linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(8, 145, 178, 0.62)); }
.action-title {
  font-weight: 950;
  letter-spacing: -0.35px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.6rem;
  position: relative;
}
.plan-grid::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  right: -0.35rem;
  bottom: 0.9rem;
  left: -0.35rem;
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 255, 255, 0.30);
  pointer-events: none;
}
.plan-grid > * {
  position: relative;
  z-index: 1;
}
.plan-card {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 0.85rem 0.8rem;
  display: grid;
  gap: 0.75rem;
  min-height: 210px;
}
.plan-card--featured {
  border-color: rgba(79, 70, 229, 0.18);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(255, 255, 255, 0.90));
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  margin-left: 0.55rem;
  border-radius: 999px;
  font-weight: 950;
  font-size: 0.72rem;
  letter-spacing: 0.7px;
  background: rgba(79, 70, 229, 0.10);
  border: 1px solid rgba(79, 70, 229, 0.18);
  color: rgba(49, 46, 129, 0.92);
  white-space: nowrap;
}
.plan-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.plan-name { font-weight: 950; letter-spacing: -0.35px; font-size: 1.02rem; }
.plan-price {
  font-weight: 950;
  letter-spacing: -0.4px;
  white-space: nowrap;
  font-size: 1.02rem;
}
.plan-actions { margin-top: auto; }

.plan-card .list {
  font-size: 0.98rem;
  margin-top: 0.2rem;
}

.plan-card .button {
  padding: 0.58rem 0.85rem;
  font-size: 0.98rem;
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
  margin-top: 4.4rem;
}
.micro-grid::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  right: -0.35rem;
  bottom: 0.9rem;
  left: -0.35rem;
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 255, 255, 0.30);
  pointer-events: none;
}
.micro-grid > * {
  position: relative;
  z-index: 1;
}
.micro-card {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}
.micro-title { font-weight: 950; letter-spacing: -0.25px; }
.micro-link {
  margin-top: 0.25rem;
  font-weight: 900;
  color: rgba(79, 70, 229, 0.92);
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(10px);
  padding: 1.25rem 0;
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}
.footer-legal {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(30, 41, 59, 0.66);
  font-weight: 800;
  font-size: 0.86rem;
}
.footer-links a:hover {
  color: rgba(79, 70, 229, 0.94);
}

.legal-page {
  width: min(940px, calc(100% - 2rem));
}
.legal-header {
  max-width: 760px;
}
.legal-content {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1rem, 2vw, 1.45rem);
}
.legal-content h2 {
  margin: 0.45rem 0 0;
  font-size: 1.12rem;
  letter-spacing: -0.2px;
}
.legal-content p,
.legal-content ul {
  margin: 0;
  color: rgba(30, 41, 59, 0.78);
}
.legal-content ul {
  padding-left: 1.25rem;
}
.legal-content li {
  margin: 0.32rem 0;
}
.legal-content a {
  color: rgba(79, 70, 229, 0.95);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.messages { margin: 1.3rem auto 0; display: grid; gap: 0.6rem; }
.message {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}
.message-error {
  border-color: rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.08);
}
.message-success {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(34, 197, 94, 0.08);
}
.message-warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}
.message-info {
  border-color: rgba(59, 130, 246, 0.26);
  background: rgba(59, 130, 246, 0.08);
}

/* Modal (dialog) */
.modal {
  border: 0;
  padding: 0;
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
  background: transparent;
  width: min(640px, calc(100% - 2rem));
}
.modal::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
}
.modal-card {
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 1.1rem 1.1rem 1rem;
}
.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}
.modal-head h2 {
  margin: 0;
  letter-spacing: -0.6px;
}
.modal-close {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.70);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.92); }
.modal-body { margin-top: 0.6rem; }
.modal-steps {
  margin: 0.65rem 0 0;
  padding-left: 1.25rem;
  color: rgba(15, 23, 42, 0.74);
}
.modal-steps li { margin: 0.35rem 0; }
.modal-actions {
  margin-top: 0.95rem;
  display: flex;
  justify-content: flex-end;
}

.auth-shell {
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.auth-head {
  text-align: center;
}
.auth-logo {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.8);
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 3.1rem;
}
.password-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(15, 23, 42, 0.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.password-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
  color: rgba(15, 23, 42, 0.88);
}
.password-toggle:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.55);
  outline-offset: 2px;
}
.password-icon {
  width: 1.15rem;
  height: 1.15rem;
}
.password-icon--hide,
.password-toggle.is-visible .password-icon--show {
  display: none;
}
.password-toggle.is-visible .password-icon--hide {
  display: block;
}

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr; max-width: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: 1; }
  .split-content { order: 2; }
  .publish-hero-top { grid-template-columns: 1fr; }
  .publish-steps { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .micro-grid { grid-template-columns: 1fr; }
  .form-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .page-header-actions { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .sell-lead-top-row { grid-template-columns: 1fr; }
  .form-grid--4 { grid-template-columns: 1fr; }
  .form-grid--5 { grid-template-columns: 1fr; }
  .form-grid--6 { grid-template-columns: 1fr; }
  .form-grid--3 { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-kpis { grid-template-columns: 1fr; }
  .dash-item { grid-template-columns: 1fr; }
  .dash-item-actions { justify-items: start; }
  .dash-reason { width: 100%; }
  .geo-card-head { align-items: flex-start; flex-direction: column; }
  .geo-card-head .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .video-hero-video { display: none; }
  .hero-video video { display: none; }
  .publish-hero--brand::before,
  .publish-hero--brand::after,
  .step-dot { animation: none; }
  .quick-card { transition: none; }
}
