:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-accent: #1a4d6d;
  --color-accent-hover: #153f5a;
  --color-border: #e8e4df;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --max-width: 1100px;
  --listing-topbar-height: 4.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-accent) 72%, white) 0%,
    var(--color-accent) 42%,
    var(--color-accent-hover) 100%
  );
  border-bottom: 1px solid color-mix(in srgb, var(--color-accent-hover) 70%, black);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.brand-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .btn-outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

.topbar .btn-outline:hover {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.topbar-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-left: 0.75rem;
  max-width: min(100%, 22rem);
}

.topbar-cta-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .topbar-cta {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    max-width: 9.5rem;
  }

  .topbar-cta-text {
    white-space: normal;
    text-align: right;
    font-size: 0.7rem;
  }
}

.topbar-call {
  flex-shrink: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #2a2a2a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

/* Echte <img> i.p.v. CSS-achtergrond zodat Google de hoofdfoto kan indexeren. */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  color: #fff;
  padding: 3rem 0 clamp(5.5rem, 14vh, 9rem);
}

.hero-status {
  margin: 0 0 0.75rem;
}

.open-house-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 33rem;
  height: 33rem;
  overflow: hidden;
  pointer-events: none;
}

.open-house-ribbon-band {
  position: absolute;
  top: 4.65rem;
  left: -7.5rem;
  width: 39rem;
  transform: rotate(-35deg);
  background: linear-gradient(90deg, #fff176 0%, #ffeb3b 40%, #ffc107 100%);
  color: #1a1a1a;
  text-align: center;
  padding: 1.1rem 1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 3px solid #f9a825;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.open-house-ribbon-label {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.open-house-ribbon-date {
  font-size: 1.26rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

@media (max-width: 520px) {
  .open-house-ribbon {
    width: 15rem;
    height: 15rem;
  }

  .open-house-ribbon-band {
    top: 2.15rem;
    left: -3.75rem;
    width: 17rem;
    padding: 0.5rem 0.35rem;
  }

  .open-house-ribbon-label {
    font-size: 0.68rem;
  }

  .open-house-ribbon-date {
    font-size: 0.64rem;
  }
}

.status-badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.status-badge-inline {
  font-size: 0.75rem;
}

.status-available {
  background: #2e7d32;
  color: #fff;
}

.status-negotiations {
  background: #ef6c00;
  color: #fff;
}

.status-reserved {
  background: #c62828;
  color: #fff;
}

.status-sold {
  background: #616161;
  color: #fff;
}

.hero-price {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.hero-price-note {
  font-weight: 400;
  opacity: 0.9;
  font-size: 0.95rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.hero-sub {
  margin: 0;
  opacity: 0.92;
  font-size: 1.05rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.85rem;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.prose p,
.prose li {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.prose-wide {
  max-width: 720px;
}

.prose ul {
  padding-left: 1.25rem;
}

.sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kenmerken-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.popularity-card .spec-list dd {
  font-size: 0.95rem;
  line-height: 1.45;
}

.broker-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.broker-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center center;
}

.broker-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}

.broker-office {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
}

.broker-office a {
  color: inherit;
  text-decoration: none;
}

.broker-office a:hover {
  text-decoration: underline;
}

.broker-contact {
  padding: 0 0.15rem;
  text-align: center;
}

.broker-agent {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.broker-phone {
  margin: 0;
  font-size: 0.9rem;
}

.broker-phone a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.broker-phone a:hover {
  text-decoration: underline;
}

.spec-list {
  margin: 0;
}

.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.spec-list > div:last-child {
  border-bottom: none;
}

.spec-list dt {
  color: var(--color-muted);
  font-weight: 400;
}

.spec-list dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.open-house-card {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border-bottom: 3px solid #f9a825;
  background: linear-gradient(90deg, #fff176 0%, #ffeb3b 40%, #ffc107 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
}

.open-house-card-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.open-house-card-date {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.open-house-card-date + .open-house-card-date {
  margin-top: 0.35rem;
}

.price-box {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 2px solid var(--color-accent);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-accent);
}

.price-box small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
}

.highlights {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.highlight-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.highlight-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-weight: 600;
}

.highlight-card p {
  margin: 0;
  font-size: 0.98rem;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

@media (max-width: 420px) {
  .gallery--flat {
    grid-template-columns: 1fr;
  }
}

.gallery-row {
  display: grid;
  gap: 0.75rem;
}

.gallery-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.gallery-row--1 {
  grid-template-columns: 1fr;
}

.gallery-item {
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 3 / 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floorplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.floorplan-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--color-border);
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.floorplan-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--color-accent);
}

.floorplan-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #e8e4df;
}

.floorplan-item:not(:has(img)) .floorplan-label,
.floorplan-item img[src=""] + .floorplan-label {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floorplan-label {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-bg);
}

.floorplan-modal {
  position: fixed;
  top: var(--listing-topbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

body.floorplan-open .topbar {
  z-index: 220;
}

.floorplan-modal.hidden {
  display: none;
}

.floorplan-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.floorplan-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.floorplan-modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.floorplan-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.floorplan-modal iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: none;
  border-radius: 8px;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.map-section h2 {
  margin-bottom: 1rem;
}

.map-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-embed {
  display: block;
  width: 100%;
  height: min(420px, 55vh);
  border: 0;
}

.map-card-link {
  margin: 0;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.map-card-link a {
  font-weight: 500;
}

.cta-section {
  padding-bottom: 4rem;
}

.cta-box {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 2rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.footer .container {
  text-align: center;
}

.footer p {
  margin: 0 0 0.65rem;
}

.footer a {
  color: color-mix(in srgb, var(--color-accent) 50%, white);
}

.footer-broker {
  font-size: 1rem;
}

.footer-broker strong {
  color: #fff;
  font-weight: 600;
}

.footer-broker-link {
  color: #fff;
  text-decoration: none;
}

.footer-broker-link:hover strong {
  color: color-mix(in srgb, var(--color-accent) 65%, white);
}

.footer-contact {
  opacity: 0.9;
}

.footer-meta {
  opacity: 0.75;
  margin-top: 0.25rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e8e8e8;
  text-decoration: none;
  vertical-align: middle;
}

.footer-brand:hover {
  color: #fff;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}

.footer-brand span {
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: min(94vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* ===== App pages (from templates) ===== */
/* --- admin --- */
.admin-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
  }
.account-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-accent);
}
  .admin-primary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 1.25rem;
    border-bottom: 2px solid var(--color-border);
  }
  .admin-primary-nav a {
    text-decoration: none;
    padding: 0.6rem 1rem;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 500;
  }
  .admin-primary-nav a:hover { color: var(--color-accent); }
  .admin-primary-nav a.is-active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    font-weight: 600;
  }
  .admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .admin-page-head h1 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--color-accent);
  }
  .admin-user {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    color: var(--color-muted);
  }
  .admin-secondary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1rem;
  }
  .admin-secondary-nav a {
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: #fff;
  }
  .admin-secondary-nav a.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    font-weight: 600;
  }
  .admin-breadcrumb {
    margin: -0.35rem 0 1rem;
    font-size: 0.88rem;
  }
  .admin-breadcrumb a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
  }
  .admin-breadcrumb a:hover { text-decoration: underline; }
/* --- account --- */
.account-main {
  padding: 2rem 0 3rem;
  background: var(--color-bg);
  min-height: calc(100vh - var(--listing-topbar-height, 4.75rem));
  min-height: calc(100dvh - var(--listing-topbar-height, 4.75rem));
}
    .account-card {
      background: var(--color-surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 1.5rem;
    }
    .account-top {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      align-items: center;
      margin-bottom: 1rem;
      flex-wrap: wrap;
    }
    .account-top h1 { margin: 0; color: var(--color-accent); }
    .account-mail { margin: 0; color: var(--color-muted); }
    .account-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 0.9rem;
      margin-top: 0.5rem;
    }
    .account-site-card {
      border: 1px solid var(--color-border);
      border-radius: 10px;
      background: #fff;
      padding: 0.75rem;
    }
    .account-site-meta {
      padding: 0.7rem 0.3rem 0.2rem;
    }
    .account-meta {
      margin: 0;
      display: grid;
      row-gap: 0.35rem;
      font-size: 0.92rem;
    }
    .account-meta div {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.7rem;
    }
    .account-meta dt {
      margin: 0;
      color: var(--color-muted);
      font-weight: 600;
    }
    .account-meta dd {
      margin: 0;
      text-align: right;
      color: var(--color-text);
    }
    .account-empty {
      margin: 0.35rem 0 0;
      color: var(--color-muted);
    }
    .account-status {
      text-transform: capitalize;
      font-weight: 600;
    }
    .pending-actions,
    .admin-actions {
      margin-top: 0.7rem;
      display: flex;
      justify-content: flex-end;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    .delete-modal,
    .activate-modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 1rem;
    }
    .delete-modal.is-open,
    .activate-modal.is-open {
      display: flex;
    }
    .delete-modal-backdrop,
    .activate-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
    }
    .delete-modal-card,
    .activate-modal-card {
      position: relative;
      z-index: 1;
      width: min(100%, 28rem);
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
      padding: 1.1rem 1.1rem 1rem;
    }
    .delete-modal-card h3,
    .activate-modal-card h3 {
      margin: 0 0 0.45rem;
      color: #0f172a;
      font-size: 1.1rem;
    }
    .delete-modal-card p,
    .activate-modal-card p {
      margin: 0;
      color: var(--color-muted);
      line-height: 1.5;
    }
    .delete-modal-actions,
    .activate-modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 0.6rem;
      margin-top: 1rem;
    }

    .recent-card-link {
      display: block;
      color: inherit;
      text-decoration: none;
    }
    .recent-preview {
      --color-accent: #1a4d6d;
      --color-accent-hover: #153f5a;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--color-border);
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
      background: #fff;
    }
    .recent-preview-topbar {
      padding: 0.45rem 0.65rem;
      font-size: 0.72rem;
      font-weight: 600;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-accent) 72%, white) 0%,
        var(--color-accent) 42%,
        var(--color-accent-hover) 100%
      );
    }
    .recent-preview-hero {
      position: relative;
      aspect-ratio: 1 / 1;
      background: #2f2f2f;
      display: flex;
      align-items: flex-end;
      padding: 0.5rem 0.65rem;
    }
    .recent-preview-hero img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }
    .recent-preview-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
    }
    .recent-preview-hero-text {
      position: relative;
      z-index: 1;
      color: #fff;
      line-height: 1.25;
    }
    .recent-preview-hero-text strong { display: block; font-size: 0.8rem; font-weight: 700; }
    .recent-preview-hero-text span { font-size: 0.68rem; opacity: 0.92; }
    .recent-preview-meta {
      position: relative;
      z-index: 1;
      margin-top: 0.35rem;
      display: flex;
      gap: 0.35rem;
      flex-wrap: wrap;
      align-items: center;
    }
    .recent-badge {
      display: inline-block;
      font-size: 0.62rem;
      line-height: 1;
      padding: 0.22rem 0.38rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.92);
      color: #1a1a1a;
      font-weight: 700;
    }
    .recent-badge.status-available { background: #2e7d32; color: #fff; }
    .recent-badge.status-negotiations { background: #ef6c00; color: #fff; }
    .recent-badge.status-reserved { background: #c62828; color: #fff; }
    .recent-badge.status-sold { background: #616161; color: #fff; }
    .recent-price {
      font-size: 0.66rem;
      font-weight: 700;
      color: #fff;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    }
    .recent-preview-bottom {
      height: 0.6rem;
      background: var(--color-bg);
    }
/* --- login --- */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--color-bg);
}
    .login-card {
      width: min(100%, 24rem);
      background: var(--color-surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 2rem;
      text-align: center;
    }
    .login-card h1 {
      margin: 0 0 0.75rem;
      font-size: 1.5rem;
      color: var(--color-accent);
    }
    .login-card p {
      margin: 0 0 1.5rem;
      color: var(--color-muted);
    }
    .login-field { margin-bottom: 1rem; text-align: left; }
    .login-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
    .login-field input {
      width: 100%;
      padding: 0.65rem 0.75rem;
      border: 1px solid var(--color-border);
      border-radius: 8px;
      font: inherit;
    }
    .login-error {
      background: #fdecea;
      color: #8a1f11;
      padding: 0.75rem 1rem;
      border-radius: 8px;
      margin-bottom: 1rem;
      text-align: left;
    }
    .login-info {
      background: #e6f3ff;
      color: #1a4d6d;
      padding: 0.75rem 1rem;
      border-radius: 8px;
      margin-bottom: 1rem;
      text-align: left;
    }
    .login-actions {
      display: flex;
      gap: 0.75rem;
      margin-top: 1rem;
    }
    .login-actions .btn,
    .login-actions button {
      flex: 1;
      text-align: center;
    }
    .login-hint {
      margin: 0.45rem 0 0;
      font-size: 0.9rem;
      color: var(--color-muted);
    }
/* Consistent text, email and password inputs in forms */
:is(.wizard-field, .login-field, .wizard-password-fields, .preview-login-form) input:is([type="text"], [type="email"], [type="password"]) {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  line-height: 1.4;
  background: var(--color-surface, #fff);
  color: var(--color-text);
  -webkit-appearance: none;
  appearance: none;
}
:is(.wizard-field, .login-field, .wizard-password-fields, .preview-login-form) input:is([type="text"], [type="email"], [type="password"]):focus {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.wizard-password-fields label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
/* --- form fields --- */
.wizard-field { margin-bottom: 1.25rem; }
.wizard-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.wizard-field .hint { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.35rem; }
.invoice-naw-compact { margin-bottom: 0.5rem; }
.invoice-naw-compact .wizard-field-tight {
  margin-bottom: 0.55rem;
}
.invoice-naw-compact .wizard-field-tight label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.invoice-naw-compact .wizard-field-tight input:is([type="text"], [type="email"], [type="password"]) {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.6rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  line-height: 1.4;
  background: var(--color-surface, #fff);
  color: var(--color-text);
  -webkit-appearance: none;
  appearance: none;
}
.invoice-naw-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.invoice-naw-row .wizard-field-tight { margin-bottom: 0; }
@media (max-width: 520px) {
  .invoice-naw-row { grid-template-columns: 1fr; }
}
/* --- wizard-thanks --- */
.thanks-main { padding: 3rem 0; }
    .thanks-card {
      max-width: 32rem;
      margin: 0 auto;
      background: var(--color-surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 2rem;
      text-align: center;
    }
    .thanks-card h1 { color: var(--color-accent); margin: 0 0 1rem; }
    .thanks-card p { color: var(--color-muted); margin: 0 0 1.5rem; }
    .thanks-card-extra { margin-top: 1.25rem; font-size: 0.9rem; }
/* --- wizard-payment --- */
.pay-main { padding: 3rem 0; }
    .pay-card {
      max-width: 34rem;
      margin: 0 auto;
      background: var(--color-surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 2rem;
      text-align: center;
    }
    .pay-card h1 { margin: 0 0 0.75rem; color: var(--color-accent); }
    .pay-card p { margin: 0 0 1.25rem; color: var(--color-muted); }
/* --- plans-admin-list --- */
.admin-main {
  padding: 2rem 0 3rem;
  background: var(--color-bg);
}
    .admin-card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
    .admin-toolbar-actions { margin: -0.25rem 0 1rem; text-align: right; }
    .text-muted { color: var(--color-muted); }
    .admin-empty { color: var(--color-muted); }
    .admin-subtitle { color: var(--color-muted); margin: 0 0 0.75rem; }
    .admin-section-title { font-size: 1.1rem; margin: 1rem 0 0.5rem; color: var(--color-accent); }
    .table-meta { margin-top: 0.25rem; }
    .plans-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
    .plans-table th, .plans-table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
    .plans-flash { padding: 0.65rem 0.85rem; border-radius: 8px; margin-bottom: 1rem; background: #e8f5e9; color: #1b5e20; }
    .badge-off { font-size: 0.75rem; padding: 0.12rem 0.4rem; border-radius: 999px; background: #eee; color: #666; }
    .badge-tag { font-size: 0.72rem; padding: 0.1rem 0.35rem; border-radius: 999px; background: #e6f3ff; color: #1a4d6d; margin-right: 0.25rem; }
/* --- plans-admin-form --- */
.admin-main {
  padding: 2rem 0 3rem;
  background: var(--color-bg);
}
    .admin-card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
    .admin-form-inner { max-width: 36rem; }
    .plans-field { margin-bottom: 1rem; }
    .plans-field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
    .plans-field input[type="text"], .plans-field input[type="number"] {
      width: 100%; padding: 0.55rem 0.65rem; border: 1px solid var(--color-border); border-radius: 8px; font: inherit;
    }
    .plans-hint { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.25rem; }
    .plans-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .plans-flash { padding: 0.65rem 0.85rem; border-radius: 8px; margin-bottom: 1rem; background: #fdecea; color: #8a1f11; }
    .plans-checks label { display: block; margin-bottom: 0.35rem; font-weight: normal; }
/* --- promo-admin-list --- */
.admin-main {
  padding: 2rem 0 3rem;
  background: var(--color-bg);
}
    .admin-card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
    .promo-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
    .promo-table th, .promo-table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
    .promo-table th { color: var(--color-muted); font-weight: 600; }
    .promo-flash { padding: 0.65rem 0.85rem; border-radius: 8px; margin-bottom: 1rem; background: #e8f5e9; color: #1b5e20; }
    .promo-flash.err { background: #fdecea; color: #8a1f11; }
    .badge-off { font-size: 0.75rem; padding: 0.12rem 0.4rem; border-radius: 999px; background: #eee; color: #666; }
/* --- promo-admin-form --- */
.admin-main {
  padding: 2rem 0 3rem;
  background: var(--color-bg);
}
    .admin-card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
    .admin-form-inner { max-width: 36rem; }
    .promo-field { margin-bottom: 1rem; }
    .promo-field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
    .promo-field input[type="text"], .promo-field input[type="email"], .promo-field input[type="date"], .promo-field input[type="number"], .promo-field select {
      width: 100%; padding: 0.55rem 0.65rem; border: 1px solid var(--color-border); border-radius: 8px; font: inherit;
    }
    .promo-hint { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.25rem; }
    .promo-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .promo-flash { padding: 0.65rem 0.85rem; border-radius: 8px; margin-bottom: 1rem; background: #fdecea; color: #8a1f11; }
    .discount-panel { border: 1px solid var(--color-border); border-radius: 8px; padding: 0.85rem; margin-top: 0.35rem; }
/* --- promo-admin-detail --- */
.admin-main {
  padding: 2rem 0 3rem;
  background: var(--color-bg);
}
    .admin-card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
    .promo-meta { display: grid; gap: 0.35rem; margin: 0 0 1rem; font-size: 0.95rem; }
    .promo-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 1rem; }
    .promo-table th, .promo-table td { text-align: left; padding: 0.5rem 0.35rem; border-bottom: 1px solid var(--color-border); }
    .promo-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1rem; }
/* --- invoices-admin-list --- */
.admin-main {
  padding: 2rem 0 3rem;
  background: var(--color-bg);
}
    .admin-card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
    .inv-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
    .inv-table th, .inv-table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
    .inv-table th { color: var(--color-muted); font-weight: 600; }
    .inv-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .inv-actions a { font-size: 0.88rem; }
    .inv-month-title { margin: 0 0 1rem; font-size: 1.05rem; color: var(--color-muted); font-weight: 600; }
/* --- stats report --- */
.stats-report .stats-intro { margin: 0 0 1.25rem; color: var(--color-muted); line-height: 1.5; }
.stats-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.stats-period-nav { margin-bottom: 0; flex: 1 1 auto; }
.stats-api-btn { flex-shrink: 0; margin-left: auto; }
.stats-api-btn.is-active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: #f0f9ff;
}
.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 720px) {
  .stats-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .stats-summary-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.stats-part-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2rem;
}
.stats-section-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}
.stats-summary-card {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 0.85rem;
  text-align: center;
}
.stats-summary-value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}
.stats-summary-label {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}
.stats-section-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: #0f172a;
}
.stats-back {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}
.stats-back a {
  color: var(--color-accent);
  text-decoration: none;
}
.stats-back a:hover { text-decoration: underline; }
.stats-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1.25rem;
  margin-bottom: 0.35rem;
}
.stats-detail-title {
  margin: 0;
  font-size: 1.35rem;
  color: #0f172a;
}
.stats-detail-preview {
  font-size: 0.9rem;
  color: var(--color-accent);
}
.stats-detail-meta {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}
.stats-chart-panel {
  margin-bottom: 2rem;
}
.stats-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
  height: 8.75rem;
  padding: 0.25rem 0 0;
  box-sizing: border-box;
}
.stats-chart-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  height: 100%;
}
.stats-chart-bar-wrap {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.stats-chart-bar {
  width: 72%;
  max-width: 1.75rem;
  min-height: 2px;
  height: var(--bar-h, 0%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-accent) 70%, white), var(--color-accent));
}
.stats-chart-count {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.1;
}
.stats-chart-label {
  font-size: 0.58rem;
  color: var(--color-muted);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 639px) {
  .stats-chart {
    gap: 0.1rem;
    height: 7.25rem;
  }
  .stats-chart-bar {
    width: 88%;
    max-width: none;
  }
  .stats-chart-count {
    font-size: 0.55rem;
  }
  .stats-chart-label {
    font-size: 0.5rem;
  }
  .stats-cta-chart-col .stats-chart-label {
    flex-shrink: 1;
  }
  .stats-cta-bar {
    min-width: 2px;
    max-width: none;
  }
}
.stats-cta-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}
.stats-cta-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.stats-cta-swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
}
.stats-cta-swatch--call { background: #16a34a; }
.stats-cta-swatch--email { background: #2563eb; }
.stats-cta-swatch--web { background: #ea580c; }
.stats-cta-chart-col .stats-chart-label { flex-shrink: 0; }
.stats-cta-bars {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.stats-cta-bar {
  flex: 1 1 0;
  min-width: 3px;
  max-width: 0.55rem;
  min-height: 2px;
  height: var(--bar-h, 0%);
  border-radius: 3px 3px 0 0;
}
.stats-cta-bar--call { background: #16a34a; }
.stats-cta-bar--email { background: #2563eb; }
.stats-cta-bar--web { background: #ea580c; }
.stats-table-wrap { overflow-x: auto; }
.stats-td-title a { font-weight: 600; }
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.stats-table th,
.stats-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.stats-table th { color: var(--color-muted); font-weight: 600; }
.stats-table-link { font-size: 0.88rem; }
.stats-visit-log { font-size: 0.84rem; }
.stats-visit-log th,
.stats-visit-log td { white-space: nowrap; }
.stats-visit-log td:nth-child(5) { white-space: normal; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.stats-detail-slug {
  font-size: 0.55em;
  font-weight: 500;
  color: #64748b;
  vertical-align: middle;
}
/* Mobiel: tabellen als kaartjes i.p.v. horizontaal scrollen */
@media (max-width: 720px) {
  .stats-table-wrap { overflow-x: visible; }
  .stats-table thead { display: none; }
  .stats-table,
  .stats-table tbody { display: block; width: 100%; }
  .stats-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 0.85rem;
    padding: 0.85rem 0.95rem;
    margin-bottom: 0.85rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
  }
  .stats-table td {
    display: block;
    padding: 0;
    border-bottom: none;
    white-space: normal;
  }
  .stats-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
  }
  .stats-td-title {
    grid-column: 1 / -1;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
  }
  .stats-td-title[data-label]::before { display: none; }
  .stats-td-action { grid-column: 1 / -1; text-align: right; }
  .stats-table td:empty { display: none; }
  .stats-visit-log th,
  .stats-visit-log td { white-space: normal; }
  .stats-visit-log td:nth-child(5) { max-width: none; }
}
@media (max-width: 520px) {
  .stats-summary-grid { gap: 0.5rem; }
  .stats-summary-card { padding: 0.7rem 0.5rem; }
  .stats-summary-value { font-size: 1.1rem; }
  .stats-summary-label { font-size: 0.72rem; }
}
.stats-api-panel {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.stats-api-panel code { font-size: 0.82rem; word-break: break-all; }
.stats-api-endpoints p { margin: 0.35rem 0; }
.stats-api-meta { margin: 0.5rem 0 0.75rem; font-size: 0.9rem; }
.stats-api-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.stats-api-revoke { color: #b91c1c; border-color: #fecaca; }
.stats-api-new-key {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.stats-api-key-value {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}
.stats-visit-badge {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1e40af;
  background: #dbeafe;
}
.stats-empty,
.stats-hint {
  margin: 1rem 0 0;
  color: var(--color-muted);
  line-height: 1.5;
}
/* --- db-error --- */
.db-error-main { padding: 3rem 0; text-align: center; }
    .db-error-card {
      max-width: 28rem;
      margin: 0 auto;
      background: var(--color-surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 2rem;
    }
    .db-error-card h1 { margin: 0 0 0.75rem; color: var(--color-accent); font-size: 1.35rem; }
    .db-error-card p { margin: 0 0 1rem; color: var(--color-muted); line-height: 1.5; }
/* --- terms --- */
.legal-main { padding: 2rem 0 3rem; }
    .legal-card {
      max-width: 52rem;
      margin: 0 auto;
      background: var(--color-surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 1.6rem;
    }
    .legal-card h1 { margin-top: 0; color: var(--color-accent); }
    .legal-card h2 { margin-top: 1.4rem; color: #0f172a; }
    .legal-card p, .legal-card li { color: var(--color-text); line-height: 1.6; }
    .legal-muted { margin-top: 1.5rem; font-size: 0.88rem; color: var(--color-muted); }
/* --- privacy --- */
.legal-main { padding: 2rem 0 3rem; }
    .legal-card {
      max-width: 52rem;
      margin: 0 auto;
      background: var(--color-surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 1.6rem;
    }
    .legal-card h1 { margin-top: 0; color: var(--color-accent); }
    .legal-card h2 { margin-top: 1.4rem; color: #0f172a; }
    .legal-card p, .legal-card li { color: var(--color-text); line-height: 1.6; }
    .legal-muted { margin-top: 1.5rem; font-size: 0.88rem; color: var(--color-muted); }
/* --- contact --- */
.contact-form { margin-top: 1.25rem; }
.contact-field { margin-bottom: 1rem; }
.contact-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.contact-field input,
.contact-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border, #d1d5db);
  border-radius: var(--radius);
  font: inherit;
  box-sizing: border-box;
}
.contact-field textarea { resize: vertical; min-height: 8rem; }
.contact-actions { margin-top: 1.25rem; }
.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin: 1rem 0; }
.contact-flash-ok { background: #ecfdf5; color: #065f46; }
.contact-flash-info { background: #eff6ff; color: #1e40af; }
.contact-flash-err { background: #fef2f2; color: #991b1b; }
/* --- listing --- (per-site accent via CSS vars on body) */
/* --- sharing --- */
.sharing-hero {
      position: relative;
      min-height: 85vh;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      color: #fff;
      overflow: hidden;
      background-color: #1a4d6d;
      padding: clamp(2rem, 5vh, 3.5rem) 1rem clamp(2rem, 4vh, 3rem) clamp(1rem, 3vw, 2rem);
    }
    .sharing-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("/static/6e26eaa5-de7f-475c-9ee3-e1c0d7a4f67a.png") center / cover no-repeat;
      z-index: 0;
    }
    .sharing-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(
        to right,
        rgba(26, 77, 109, 0.94) 0%,
        rgba(26, 77, 109, 0.72) 30%,
        rgba(21, 63, 90, 0.35) 65%,
        rgba(21, 63, 90, 0) 100%
      );
    }
    .sharing-hero .container {
      position: relative;
      z-index: 2;
      width: min(100%, 52rem);
      max-width: none;
      margin: 0;
      padding: 0;
    }
    .sharing-hero h1 {
      font-size: clamp(2.2rem, 6.2vw, 5.2rem);
      margin: 0;
      text-align: left;
      white-space: normal;
      line-height: 1.15;
      max-width: 24ch;
    }
    @media (max-width: 480px) {
      .sharing-hero {
        padding-top: 5.4rem;
      }
      .sharing-hero h1 {
        font-size: clamp(2.25rem, 8.8vw, 3.1rem);
      }
    }
    @media (max-height: 500px) and (orientation: landscape) {
      .sharing-hero {
        min-height: 100vh;
        padding-top: 6.2rem;
      }
      .sharing-hero h1 {
        font-size: clamp(2.3rem, 6.6vw, 3.6rem);
      }
    }
/* --- marketing --- */
.marketing-hero {
      position: relative;
      min-height: 85vh;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      color: #fff;
      overflow: hidden;
      background-color: #1a4d6d;
      padding: clamp(2rem, 5vh, 3.5rem) 1rem clamp(2rem, 4vh, 3rem) clamp(1rem, 3vw, 2rem);
    }
    .marketing-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("/static/6e26eaa5-de7f-475c-9ee3-e1c0d7a4f67a.png") center / cover no-repeat;
      z-index: 0;
    }
    .marketing-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(
        to right,
        rgba(26, 77, 109, 0.94) 0%,
        rgba(26, 77, 109, 0.72) 30%,
        rgba(21, 63, 90, 0.35) 65%,
        rgba(21, 63, 90, 0) 100%
      );
    }
    .marketing-hero .container {
      position: relative;
      z-index: 2;
      width: min(100%, 52rem);
      max-width: none;
      margin: 0;
      padding: 0;
    }
    .marketing-page h1,
    .marketing-page h2,
    .marketing-page h3 { font-family: var(--font-sans); }
    .marketing-hero h1 {
      font-size: clamp(1.35rem, 3.2vw, 3rem);
      margin: 0 0 1rem;
      text-align: left;
      white-space: nowrap;
      line-height: 1.15;
    }
    @media (max-width: 480px) {
      .marketing-hero {
        padding-top: 5.4rem;
      }
      .marketing-hero h1 {
        white-space: normal;
        font-size: clamp(1.5rem, 6vw, 2rem);
      }
    }
    @media (max-height: 500px) and (orientation: landscape) {
      .marketing-hero {
        min-height: 100vh;
        padding-top: 6.2rem;
      }
      .marketing-hero h1 {
        font-size: clamp(1.7rem, 5vw, 2.4rem);
      }
    }
    .marketing-hero p { font-size: 1.15rem; opacity: 0.92; max-width: 36rem; }
    .usp-grid .marketing-cta-wrap {
      grid-column: 2;
      grid-row: 2;
      display: flex;
      justify-content: center;
      align-self: start;
      position: relative;
      z-index: 2;
    }
    .marketing-cta-wrap .btn-cta,
    .marketing-features .steps-footer .btn-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 1.15rem 2.5rem;
      font-size: 1.25rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-decoration: none;
      color: #1a4d6d;
      background: #fff;
      border: none;
      border-radius: 10px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    }
    .marketing-cta-wrap .btn-cta:hover,
    .marketing-features .steps-footer .btn-cta:hover {
      color: #153f5a;
      background: #fff;
      transform: translateY(-3px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
    }
    .marketing-cta-wrap .btn-cta:active,
    .marketing-features .steps-footer .btn-cta:active {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    }
    .marketing-cta-wrap {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      align-items: stretch;
    }
    .marketing-cta-wrap .btn-sneak {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.85rem 1.5rem;
      font-size: 1rem;
      font-weight: 600;
      text-decoration: none;
      color: #fff;
      background: transparent;
      border: 2px solid rgba(255, 255, 255, 0.88);
      border-radius: 10px;
      transition: background 0.15s ease, border-color 0.15s ease;
    }
    .marketing-cta-wrap .btn-sneak:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: #fff;
      color: #fff;
    }
    .marketing-features {
      position: relative;
      overflow: hidden;
      padding: clamp(3rem, 8vh, 5rem) 0;
      color: #fff;
      background-color: #1a4d6d;
    }
    .marketing-features::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("/static/b5717ff0-7cc1-4312-998f-57f2af3c5af9.png") center / cover no-repeat;
      z-index: 0;
    }
    .marketing-features::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(
        to right,
        rgba(26, 77, 109, 0.94) 0%,
        rgba(26, 77, 109, 0.72) 30%,
        rgba(21, 63, 90, 0.35) 65%,
        rgba(21, 63, 90, 0) 100%
      );
    }
    .marketing-features .container {
      position: relative;
      z-index: 2;
    }
    .marketing-features h2 {
      text-align: center;
      margin-bottom: 2rem;
      color: #fff;
    }
    .marketing-features .steps-footer {
      margin-top: 2rem;
      text-align: center;
      color: rgba(255, 255, 255, 0.88);
      font-size: 0.95rem;
    }
    .marketing-features .steps-footer a {
      color: #fff;
      font-weight: 600;
    }
    .usp-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 2rem;
      max-width: 100%;
    }
    .usp-grid .usp-slot-1 { grid-column: 1; grid-row: 1; }
    .usp-grid .usp-slot-2 { grid-column: 2; grid-row: 1; }
    .usp-grid .usp-slot-3 { grid-column: 3; grid-row: 1; }
    @media (max-width: 720px) {
      .usp-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
      }
      .usp-grid .usp-slot-1,
      .usp-grid .usp-slot-2,
      .usp-grid .usp-slot-3 {
        grid-column: 1;
        grid-row: auto;
      }
      .usp-grid .marketing-cta-wrap {
        grid-column: 1;
        grid-row: auto;
        justify-content: center;
        margin-top: 0.5rem;
      }
    }
    .steps-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      grid-template-rows: auto 1fr;
      gap: 1.5rem;
      counter-reset: step;
      list-style: none;
      margin: 0;
      padding: 0;
      align-items: start;
    }
    .marketing-features .step-card {
      background: rgba(255, 255, 255, 0.65);
      color: var(--color-text);
      border-radius: var(--radius);
      padding: 1.25rem 1.25rem 1.25rem 1rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
      display: grid;
      grid-column: span 1;
      grid-row: span 2;
      grid-template-columns: 2rem 1fr;
      grid-template-rows: subgrid;
      column-gap: 0.65rem;
      row-gap: 0.5rem;
      text-align: left;
    }
    .marketing-features .step-card::before {
      counter-increment: step;
      content: counter(step);
      grid-column: 1;
      grid-row: 1;
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      background: var(--color-accent);
      color: #fff;
      font-weight: 700;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      justify-content: center;
      align-self: start;
      margin-top: 0.1rem;
    }
    .marketing-features .step-card h3 {
      grid-column: 2;
      grid-row: 1;
      margin: 0;
      color: var(--color-accent);
      align-self: start;
      line-height: 1.3;
      font-size: 1.05rem;
    }
    .marketing-features .step-card p {
      grid-column: 1 / -1;
      grid-row: 2;
      margin: 0;
      align-self: start;
      color: var(--color-text);
    }
    @supports not (grid-template-rows: subgrid) {
      .marketing-features .step-card {
        grid-row: auto;
        grid-template-rows: auto auto;
      }
      .marketing-features .step-card h3 { min-height: 2.75rem; }
    }
    .marketing-usp {
      background: rgba(255, 255, 255, 0.65);
      color: var(--color-text);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }
    .marketing-usp strong { color: var(--color-accent); display: block; margin-bottom: 0.5rem; }
    .marketing-pricing { padding: 4rem 0; background: var(--color-surface); }
    .marketing-pricing h2 { text-align: center; margin: 0 0 0.35rem; }
    .marketing-pricing .pricing-intro { text-align: center; color: var(--color-muted); margin: 0 0 2rem; }
    .marketing-options {
      padding: 4rem 0;
      background: var(--color-bg);
    }
    .marketing-options h2 {
      text-align: center;
      margin: 0 0 0.35rem;
    }
    .marketing-options-intro {
      text-align: center;
      color: var(--color-muted);
      margin: 0 auto 2rem;
      max-width: 40rem;
      line-height: 1.5;
    }
    .options-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.25rem;
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .option-card {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius);
      padding: 1.35rem 1.4rem;
      box-shadow: var(--shadow);
    }
    .option-card h3 {
      margin: 0 0 0.65rem;
      font-size: 1.05rem;
      color: var(--color-accent);
      line-height: 1.3;
    }
    .option-card p {
      margin: 0;
      font-size: 0.92rem;
      color: var(--color-text);
      line-height: 1.55;
    }
    .marketing-options-footer {
      text-align: center;
      margin: 1.75rem 0 0;
      font-size: 0.92rem;
      color: var(--color-muted);
    }
    .marketing-options-footer a {
      color: var(--color-accent);
      font-weight: 600;
      text-decoration: none;
    }
    .marketing-options-footer a:hover { text-decoration: underline; }
    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
      max-width: 56rem;
      margin: 0 auto;
    }
    @media (max-width: 720px) {
      .pricing-grid { grid-template-columns: 1fr; }
    }
    .pricing-card {
      border: 1px solid var(--color-border);
      border-radius: var(--radius);
      padding: 1.5rem;
      text-align: center;
      background: var(--color-bg);
    }
    .pricing-card.featured {
      border-color: var(--color-accent);
      box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 20%, transparent);
    }
    .pricing-card .tier { font-weight: 700; color: var(--color-accent); margin: 0 0 0.25rem; }
    .pricing-card .duration { color: var(--color-muted); font-size: 0.95rem; margin: 0 0 1rem; min-height: 2.5rem; }
    .pricing-card .price { font-size: 2rem; font-weight: 700; margin: 0 0 1rem; }
    .pricing-card-renew { opacity: 0.98; }
    .pricing-badge {
      font-size: 0.8rem;
      color: var(--color-muted);
      margin: 0 0 0.75rem;
      font-weight: 600;
    }
    .marketing-recent { padding: 4rem 0; background: var(--color-bg); overflow: hidden; }
    .marketing-recent h2 { text-align: center; margin: 0 0 2rem; }
    .recent-banner {
      position: relative;
      width: 100%;
      padding: 0 3rem;
    }
    .recent-scroll {
      display: flex;
      gap: 1rem;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      padding: 0 0 0.75rem;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }
    .recent-scroll::-webkit-scrollbar { display: none; }
    .recent-item {
      flex: 0 0 260px;
      min-width: 260px;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .recent-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 3;
      width: 2.1rem;
      height: 2.1rem;
      border-radius: 999px;
      border: 1px solid var(--color-border);
      background: rgba(255, 255, 255, 0.92);
      color: var(--color-accent);
      font-size: 1.2rem;
      font-weight: 700;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }
    .recent-nav:hover { background: #fff; }
    .recent-nav.prev { left: 0.5rem; }
    .recent-nav.next { right: 0.5rem; }
    .recent-card-link {
      display: block;
      color: inherit;
      text-decoration: none;
    }
    .recent-domain {
      font-weight: 700;
      color: var(--color-accent);
      text-decoration: none;
      text-align: center;
      word-break: break-word;
    }
    .recent-preview {
      --color-accent: #1a4d6d;
      --color-accent-hover: #153f5a;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--color-border);
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
      background: #fff;
    }
    .recent-preview-topbar {
      padding: 0.45rem 0.65rem;
      font-size: 0.72rem;
      font-weight: 600;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-accent) 72%, white) 0%,
        var(--color-accent) 42%,
        var(--color-accent-hover) 100%
      );
    }
    .recent-preview-hero {
      position: relative;
      aspect-ratio: 1 / 1;
      background: #2f2f2f;
      display: flex;
      align-items: flex-end;
      padding: 0.5rem 0.65rem;
    }
    .recent-preview-hero img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }
    .recent-preview-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
    }
    .recent-preview-hero-text {
      position: relative;
      z-index: 1;
      color: #fff;
      line-height: 1.25;
    }
    .recent-preview-hero-text strong { display: block; font-size: 0.8rem; font-weight: 700; }
    .recent-preview-hero-text span { font-size: 0.68rem; opacity: 0.92; }
    .recent-preview-meta {
      position: relative;
      z-index: 1;
      margin-top: 0.35rem;
      display: flex;
      gap: 0.35rem;
      flex-wrap: wrap;
      align-items: center;
    }
    .recent-badge {
      display: inline-block;
      font-size: 0.62rem;
      line-height: 1;
      padding: 0.22rem 0.38rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.92);
      color: #1a1a1a;
      font-weight: 700;
    }
    .recent-badge.status-available { background: #2e7d32; color: #fff; }
    .recent-badge.status-negotiations { background: #ef6c00; color: #fff; }
    .recent-badge.status-reserved { background: #c62828; color: #fff; }
    .recent-badge.status-sold { background: #616161; color: #fff; }
    .recent-price {
      font-size: 0.66rem;
      font-weight: 700;
      color: #fff;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    }
    .recent-preview-bottom {
      height: 0.6rem;
      background: var(--color-bg);
    }
    @media (max-width: 720px) {
      .recent-banner { padding: 0 2.5rem; }
      .recent-item { flex-basis: 230px; min-width: 230px; }
    }
    .marketing-topbar {
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      z-index: 10;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem clamp(1rem, 3vw, 2rem);
      pointer-events: none;
    }
    .marketing-topbar .brand {
      pointer-events: auto;
      font-weight: 700;
      font-size: 1rem;
      line-height: 1;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }
    .marketing-login {
      pointer-events: auto;
      display: inline-flex;
      align-items: center;
      padding: 0.5rem 1.1rem;
      font-size: 0.95rem;
      font-weight: 600;
      text-decoration: none;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.8);
      border-radius: 8px;
      background: rgba(26, 77, 109, 0.45);
      transition: background 0.15s ease, border-color 0.15s ease;
      cursor: pointer;
      font-family: inherit;
    }
    button.marketing-login {
      appearance: none;
      -webkit-appearance: none;
    }
    .marketing-login:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.2);
      border-color: #fff;
    }
    .marketing-page .link-btn {
      border: none;
      background: none;
      padding: 0;
      font: inherit;
      color: var(--color-accent);
      text-decoration: underline;
      cursor: pointer;
    }
    .marketing-login-modal {
      position: fixed;
      inset: 0;
      z-index: 300;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    .marketing-login-modal.hidden {
      display: none;
    }
    .marketing-login-backdrop {
      position: absolute;
      inset: 0;
      border: none;
      padding: 0;
      margin: 0;
      background: rgba(0, 0, 0, 0.45);
      cursor: pointer;
    }
    .marketing-login-panel {
      position: relative;
      z-index: 1;
      width: min(100%, 22.5rem);
      background: var(--color-surface, #fff);
      border-radius: 12px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
      padding: 1.2rem 1.25rem 1.25rem;
      overflow: hidden;
    }
    .marketing-login-close {
      position: absolute;
      top: 0.55rem;
      right: 0.65rem;
      border: none;
      background: none;
      font-size: 1.75rem;
      line-height: 1;
      color: var(--color-muted, #666);
      cursor: pointer;
      padding: 0.15rem 0.35rem;
    }
    .marketing-login-close:hover {
      color: var(--color-text, #111);
    }
    .marketing-login-panel h2 {
      margin: 0 2rem 0.25rem 0;
      font-size: 1.25rem;
    }
    .marketing-login-lead {
      margin: 0 0 1rem;
      font-size: 0.9rem;
      color: var(--color-muted, #666);
      line-height: 1.4;
    }
    .marketing-login-error {
      margin: 0.35rem 0 0.5rem;
      font-size: 0.88rem;
      color: #8a1f11;
      line-height: 1.35;
    }
    .marketing-login-info {
      margin: 0.35rem 0 0.5rem;
      font-size: 0.88rem;
      color: #1a4d6d;
      background: #e6f3ff;
      padding: 0.65rem 0.75rem;
      border-radius: 8px;
      line-height: 1.35;
    }
    .marketing-login-footer {
      margin: 0.85rem 0 0;
      font-size: 0.88rem;
      color: var(--color-muted, #666);
      text-align: center;
    }
    body.marketing-login-open {
      overflow: hidden;
    }
    .marketing-account-panel-wrap {
      width: min(100%, 23rem);
    }
    .marketing-account-tabs {
      display: flex;
      gap: 0;
      margin: 0 -1.25rem 0.85rem;
      padding: 0 1.25rem;
      border-bottom: 1px solid var(--color-border, #ddd);
    }
    .marketing-account-tab {
      flex: 1;
      margin: 0;
      border: none;
      border-bottom: 2px solid transparent;
      border-radius: 0;
      background: transparent;
      padding: 0.55rem 0.5rem 0.65rem;
      font: inherit;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--color-muted, #666);
      cursor: pointer;
    }
    .marketing-account-tab.is-active {
      color: var(--color-accent);
      border-bottom-color: var(--color-accent);
    }
    .marketing-account-stage {
      display: grid;
      grid-template-areas: "panel";
      align-items: stretch;
    }
    .marketing-account-tab-panel {
      grid-area: panel;
      margin: 0;
      min-height: 100%;
    }
    .marketing-account-tab-panel.is-tab-hidden {
      visibility: hidden;
      pointer-events: none;
    }
    .marketing-account-tab-panel .btn-block {
      margin-top: 0.65rem;
    }
    .marketing-account-tab-panel form.hidden {
      display: none;
    }
    @media (max-width: 767px) {
      .marketing-login-panel {
        max-height: min(92vh, 640px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
    }

/* Preview page (/preview/{funda_id}) */
.preview-sidebar {
  margin: 1rem 1.25rem 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.preview-sidebar-inner {
  padding: 1.25rem 1.35rem;
}
.preview-sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.35rem;
}
.preview-sidebar-lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--color-muted, #5c5c5c);
  line-height: 1.45;
}
.preview-domain-error {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #fdecea;
  color: #8a1f11;
  font-size: 0.88rem;
}
.preview-domain-list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.preview-domain-option {
  display: block;
  cursor: pointer;
}
.preview-domain-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.preview-domain-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.preview-domain-option input:checked + .preview-domain-row {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.preview-domain-option.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}
.preview-domain-option.is-unavailable .preview-domain-row {
  border-color: var(--color-border);
  box-shadow: none;
}
.preview-domain-option.is-unavailable input:checked + .preview-domain-row {
  border-color: var(--color-border);
  box-shadow: none;
}
.preview-domain-name {
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all;
}
.preview-domain-status {
  font-size: 0.75rem;
  color: var(--color-muted, #666);
  line-height: 1.2;
}
.preview-domain-status.checking {
  color: var(--color-muted, #888);
  letter-spacing: 0.05em;
}
.preview-domain-status.available {
  color: #1b5e20;
  font-weight: 600;
}
.preview-domain-status.unavailable,
.preview-domain-status.invalid {
  color: #8a1f11;
  font-weight: 600;
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}
.preview-order-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.preview-sidebar-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted, #666);
  line-height: 1.4;
}
.preview-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.preview-checkout-modal.hidden {
  display: none;
}
.preview-checkout-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.preview-checkout-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  background: var(--color-surface, #fff);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  padding: 1.15rem 1.25rem 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.preview-checkout-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 2;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-muted, #666);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.preview-checkout-close:hover {
  color: var(--color-text, #111);
}
.preview-checkout-panel h2 {
  margin: 0 2rem 0.2rem 0;
  font-size: 1.2rem;
  line-height: 1.25;
}
.preview-checkout-lead {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: var(--color-muted, #666);
  line-height: 1.4;
}
.preview-checkout-error {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.84rem;
  color: #8a1f11;
  line-height: 1.35;
  min-height: 1.2em;
}
.preview-checkout-info {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.84rem;
  color: #1a4d6d;
  background: #e6f3ff;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  line-height: 1.35;
}
body.preview-checkout-open {
  overflow: hidden;
}
.preview-checkout-tabs {
  display: flex;
  gap: 0;
  margin: 0 -1.25rem 0.85rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--color-border, #ddd);
}
.preview-checkout-tabs.hidden {
  display: none;
}
.preview-checkout-tab {
  flex: 1;
  margin: 0;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-muted, #666);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.preview-checkout-tab:hover {
  color: var(--color-text, #111);
}
.preview-checkout-tab.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  box-shadow: none;
}
.preview-checkout-stage {
  display: grid;
  grid-template-areas: "panel";
  align-items: stretch;
}
.preview-checkout-tab-panel {
  grid-area: panel;
  margin: 0;
  min-height: 100%;
}
.preview-checkout-tab-panel.is-tab-hidden {
  visibility: hidden;
  pointer-events: none;
}
.preview-login-form.preview-checkout-tab-panel {
  display: flex;
  flex-direction: column;
}
.preview-login-form .btn-block {
  margin-top: auto;
}
.preview-checkout-panel .invoice-naw-compact {
  margin-bottom: 0;
}
.preview-checkout-panel .invoice-naw-compact .wizard-field-tight {
  margin-bottom: 0.38rem;
}
.preview-checkout-panel .invoice-naw-compact .wizard-field-tight label {
  font-size: 0.78rem;
  margin-bottom: 0.12rem;
}
.preview-checkout-panel .invoice-naw-compact .wizard-field-tight input:is([type="text"], [type="email"], [type="password"]),
.preview-checkout-panel .preview-login-form .wizard-field-tight input:is([type="text"], [type="email"], [type="password"]) {
  width: 100%;
  box-sizing: border-box;
  padding: 0.42rem 0.55rem;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  line-height: 1.4;
  background: var(--color-surface, #fff);
  color: var(--color-text);
  -webkit-appearance: none;
  appearance: none;
}
.preview-checkout-panel .invoice-naw-row {
  margin-bottom: 0.38rem;
  gap: 0.45rem;
}
.preview-checkout-panel .btn-block {
  margin-top: 0.65rem;
}
.preview-login-form.hidden,
.invoice-naw-compact.hidden,
#preview-forgot-panel form.hidden {
  display: none;
}
@media (min-width: 768px) {
  .preview-checkout-panel {
    width: 22.5rem;
    padding: 1.1rem 1.2rem 1.15rem;
  }
  .preview-checkout-tabs {
    margin-left: -1.2rem;
    margin-right: -1.2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .preview-checkout-panel .invoice-naw-compact .wizard-field-tight {
    margin-bottom: 0.32rem;
  }
  .preview-checkout-panel .invoice-naw-row {
    margin-bottom: 0.32rem;
  }
}
@media (max-width: 767px) {
  .preview-checkout-panel {
    max-height: min(92vh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.link-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}
.checkbox-row input {
  margin-top: 0.2rem;
}
.terms-checkbox {
  margin: 0.25rem 0 0.35rem;
}
.terms-checkbox a {
  color: var(--color-accent);
}
.btn:disabled,
button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.wizard-password-fields {
  margin-top: 0.5rem;
}
.wizard-password-fields.hidden {
  display: none;
}
.wizard-auth-hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-muted, #666);
}
.login-card-wide {
  max-width: 28rem;
}
.login-subheading {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
  color: var(--color-accent);
}
.account-profile-card {
  max-width: 40rem;
}
.account-profile-lead {
  margin: 0 0 1rem;
  color: var(--color-muted, #666);
  font-size: 0.95rem;
  line-height: 1.45;
}
.account-profile-actions {
  margin-top: 1.25rem;
}
.account-profile-form input[readonly] {
  background: #f3f4f6;
  color: var(--color-muted, #666);
  cursor: default;
}
.preview-custom-row {
  cursor: text;
}
.preview-custom-row.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.preview-custom-input {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  word-break: break-all;
}
.preview-custom-input:focus {
  outline: none;
}
.preview-custom-input::placeholder {
  color: var(--color-muted, #888);
  font-weight: 600;
}
.preview-custom-status:empty {
  display: none;
}
.preview-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted, #666);
  margin: 1.1rem 0 0.5rem;
}
.preview-section-title:first-of-type {
  margin-top: 0;
}
.preview-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.preview-color-option {
  cursor: pointer;
}
.preview-color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.preview-color-swatch {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--swatch-color, #1a4d6d);
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.preview-color-option input:checked + .preview-color-swatch {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-accent);
  transform: scale(1.08);
}
.preview-color-option input:focus-visible + .preview-color-swatch {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.preview-plans-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.65rem;
}
.preview-plan-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.preview-plan-option {
  display: block;
  cursor: pointer;
}
.preview-plan-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.preview-plan-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.preview-plan-option input:checked + .preview-plan-box {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 8%, white);
}
.preview-plan-info strong {
  display: block;
  font-size: 0.92rem;
}
.preview-plan-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted, #666);
  margin-top: 0.1rem;
  line-height: 1.3;
}
.preview-plan-price {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.preview-plan-price-wrap {
  text-align: right;
}
.preview-plan-price-old {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #c62828;
  text-decoration: line-through;
}
.preview-plan-price-new {
  display: block;
  font-size: 0.95rem;
  color: #0d7a3e;
  font-weight: 700;
}
.preview-promo-field {
  margin: 1rem 0 0.75rem;
}
.preview-promo-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted, #666);
  margin-bottom: 0.4rem;
}
.preview-promo-row {
  display: flex;
  gap: 0.45rem;
}
.preview-promo-row input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
}
.preview-promo-row input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 20%, transparent);
}
.preview-promo-row .btn {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
}
.preview-promo-msg {
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}
.preview-promo-msg.ok {
  color: #0d7a3e;
}
.preview-promo-msg.err {
  color: #8a1f11;
}
@media (min-width: 1024px) {
  body.preview-mode {
    --preview-sidebar-offset: 340px;
  }
  body.preview-mode .topbar .container,
  body.preview-mode main .container,
  body.preview-mode .footer .container,
  body.preview-mode .hero .container {
    max-width: calc(1100px - 0px);
  }
  body.preview-mode .topbar,
  body.preview-mode .hero,
  body.preview-mode main,
  body.preview-mode .footer {
    margin-right: 340px;
  }
  .preview-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    border-top: none;
    border-right: none;
    border-bottom: none;
    overflow-y: auto;
    z-index: 150;
  }
  .preview-sidebar-inner {
    padding: 1.5rem 1.35rem 2rem;
  }
  body.preview-mode .lightbox,
  body.preview-mode .floorplan-modal,
  body.preview-mode .preview-checkout-modal {
    right: var(--preview-sidebar-offset);
  }
  body.preview-mode .lightbox img {
    max-width: min(calc(100vw - var(--preview-sidebar-offset) - 3rem), 1200px);
    max-height: 88vh;
  }
}
