/* ==========================================================================
   MyEasyAgent Landing Page & Dedicated App Stylesheet
   Modeled on NestFind Modern Architecture + MyEasyAgent Emerald Green Identity
   ========================================================================== */

:root {
  --mea-green-dark: #0f3d24;
  --mea-green-primary: #166534;
  --mea-green-accent: #22c55e;
  --mea-green-light: #f0fdf4;
  --mea-green-border: #bbf7d0;
  
  --bg-dark: #0c0d0e;
  --bg-slate: #0f172a;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border-light: #e2e8f0;
  --border-dark: #334155;
  
  --font-sans: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body.mea-app-body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════════
   1. STICKY TOP NAVIGATION BAR
   ═══════════════════════════════════════════════════════════════════════ */
.landing-nav-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  transition: all 0.2s ease;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.nav-center-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--mea-green-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-mobile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mea-green-primary);
  color: #ffffff;
  border: 1px solid var(--mea-green-primary);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(22, 101, 52, 0.25);
}

.btn-nav-mobile:hover {
  background: #14532d;
  transform: translateY(-1px);
}

.btn-nav-web {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-web:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* ═══════════════════════════════════════════════════════════════════════
   2. HERO SECTION WITH CURVED UNDERLINE & FLOATING CARDS
   ═══════════════════════════════════════════════════════════════════════ */
.landing-hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 70px;
  overflow: hidden;
  text-align: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-center-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mea-green-accent);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.badge-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.04em;
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.headline-highlight {
  position: relative;
  display: inline-block;
  color: var(--mea-green-primary);
}

.curved-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
}

.hero-subheadline {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* DUAL HERO ACTION BUTTONS */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-btn-primary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #166534, #14532d);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(22, 101, 52, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(22, 101, 52, 0.45);
}

.hero-btn-secondary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.hero-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.btn-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-btn-secondary .btn-icon-wrap {
  background: #f1f5f9;
  color: var(--mea-green-primary);
}

.btn-labels {
  display: flex;
  flex-direction: column;
}

.btn-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.btn-sub {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 600;
}

.btn-arrow {
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.hero-btn-primary:hover .btn-arrow,
.hero-btn-secondary:hover .btn-arrow {
  transform: translateX(3px);
}

/* Trust Row */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-check {
  color: #15803d;
  font-weight: 900;
}

/* Floating Tilted Cards (Desktop only) */
.hero-float-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  z-index: 5;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-card-left {
  left: 40px;
  transform: translateY(-50%) rotate(-3deg);
}

.float-card-right {
  right: 40px;
  transform: translateY(-50%) rotate(3deg);
}

.hero-float-card:hover {
  transform: translateY(-56%) rotate(0deg) scale(1.04);
}

.float-card-inner {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.float-card-img {
  position: relative;
  height: 130px;
  overflow: hidden;
}

.float-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-mandate-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(22, 101, 52, 0.9);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 5px;
  text-transform: uppercase;
}

.float-card-body {
  padding: 10px 12px;
}

.float-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--mea-green-primary);
}

.float-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2px 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.float-agent {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scroll-stem {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, #cbd5e1, transparent);
}

/* ═══════════════════════════════════════════════════════════════════════
   3. ANIMATED STATS SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.landing-stats-section {
  max-width: 1140px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.stat-card {
  background: #ffffff;
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════
   4. BROWSE BY LAGOS CATEGORY / STYLES
   ═══════════════════════════════════════════════════════════════════════ */
.landing-styles-section {
  max-width: 1140px;
  margin: 0 auto 90px;
  padding: 0 24px;
}

.section-container {
  max-width: 1140px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 40px;
}

.section-header.center {
  text-align: center;
}

.section-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--mea-green-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #526071;
  max-width: 600px;
  line-height: 1.5;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

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

.style-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.style-card.active {
  border-color: var(--mea-green-primary);
  box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.2);
}

.style-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.style-img-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.style-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.style-card:hover .style-img-wrap img {
  transform: scale(1.08);
}

.style-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.7) 100%);
}

.style-content {
  padding: 12px 14px;
}

.style-content h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.style-content p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════
   5. LIVE INTERACTIVE DEMO STAGE
   ═══════════════════════════════════════════════════════════════════════ */
.landing-demo-section {
  background: #0f172a;
  color: #ffffff;
  padding: 80px 24px;
  position: relative;
}

.landing-demo-section .section-title {
  color: #ffffff;
}

.landing-demo-section .section-subtitle {
  color: #94a3b8;
}

.demo-toggle-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 4px;
  border-radius: 9999px;
  margin-top: 24px;
}

.demo-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-toggle-btn.active {
  background: var(--mea-green-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.demo-stage-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.phone-stage-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 980px;
}

.phone-side-download-card {
  max-width: 360px;
  text-align: left;
}

.download-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--mea-green-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.phone-side-download-card h3 {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.phone-side-download-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 20px;
}

.download-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 24px;
}

.btn-side-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mea-green-primary);
  color: #ffffff;
  border: none;
  padding: 13px 22px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.3);
  transition: transform 0.2s ease;
}

.btn-side-install:hover {
  transform: translateY(-2px);
}

/* Desktop Web App Frame in Demo */
.desktop-web-app-frame {
  width: 100%;
  max-width: 1080px;
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.web-app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.web-app-search-input {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 14px;
}

.web-app-search-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.85rem;
  font-family: inherit;
}

.web-app-filters-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.web-filter-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: #475569;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.web-filter-btn.active {
  background: var(--mea-green-primary);
  color: #ffffff;
  border-color: var(--mea-green-primary);
}

.desktop-properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════
   6. FEATURES: WHY MYEASYAGENT (6 CARDS)
   ═══════════════════════════════════════════════════════════════════════ */
.landing-features-section {
  max-width: 1140px;
  margin: 90px auto;
  padding: 0 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--mea-green-border);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════
   7. HOW IT WORKS (3 STEPS)
   ═══════════════════════════════════════════════════════════════════════ */
.landing-steps-section {
  max-width: 1140px;
  margin: 0 auto 90px;
  padding: 0 24px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
}

.step-num-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mea-green-primary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════
   8. TESTIMONIALS SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.landing-testimonials-section {
  background: #0f172a;
  padding: 80px 24px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testi-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.testi-stars {
  color: #facc15;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.testi-quote {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mea-green-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testi-meta strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
}

.testi-meta span {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════════════
   9. CONCIERGE CALLOUT BANNER
   ═══════════════════════════════════════════════════════════════════════ */
.landing-concierge-cta {
  max-width: 1140px;
  margin: 80px auto;
  padding: 0 24px;
}

.cta-inner-card {
  background: linear-gradient(135deg, #0f3d24, #0f172a);
  color: #ffffff;
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 61, 36, 0.25);
}

.cta-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--mea-green-accent);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 12px;
}

.cta-inner-card h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.cta-inner-card p {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn-cta-whatsapp {
  background: #25d366;
  color: #052e16;
  padding: 13px 24px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s;
}

.btn-cta-whatsapp:hover {
  transform: translateY(-2px);
}

.btn-cta-download {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 13px 24px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cta-download:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.landing-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 60px 24px 30px;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 8px 0 6px;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-group h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-links-group a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links-group a:hover {
  color: var(--mea-green-primary);
}

.footer-bottom-row {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════════════
   11. TITANIUM PHONE FRAME (NestFind Architecture)
   ═══════════════════════════════════════════════════════════════════════ */
.mea-titanium-phone {
  position: relative;
  width: 360px;
  height: 740px;
  flex-shrink: 0;
}

.phone-button {
  position: absolute;
  background: linear-gradient(to right, #5c5c5e, #3a3a3c);
  z-index: 1;
}

.btn-mute { left: -5px; top: 100px; width: 5px; height: 30px; border-radius: 3px 0 0 3px; }
.btn-vol-up { left: -5px; top: 150px; width: 5px; height: 50px; border-radius: 3px 0 0 3px; }
.btn-vol-down { left: -5px; top: 215px; width: 5px; height: 50px; border-radius: 3px 0 0 3px; }
.btn-power { right: -5px; top: 170px; width: 5px; height: 68px; border-radius: 0 3px 3px 0; background: linear-gradient(to left, #5c5c5e, #3a3a3c); }

.phone-bezel {
  position: absolute;
  inset: 0;
  border-radius: 48px;
  background: linear-gradient(160deg, #58585a 0%, #2c2c2e 25%, #1c1c1e 60%, #3a3a3c 100%);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 24px 70px rgba(0, 0, 0, 0.75),
    0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 10px;
  display: flex;
  overflow: hidden;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: #f8fafc;
  color: var(--text-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 30;
  flex-shrink: 0;
}

.phone-time {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.phone-screen:has(.app-screen-splash.active) .phone-time,
.phone-screen:has(.app-screen-splash.active) .phone-status-icons {
  color: #ffffff !important;
}

.phone-dynamic-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  gap: 7px;
  z-index: 40;
}

.island-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1e3f6e, #080810);
  border: 1.5px solid #1a2e50;
}

.island-sensor {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0f172a;
}

.phone-battery {
  width: 20px;
  height: 10px;
  border: 1.2px solid currentColor;
  border-radius: 3px;
  padding: 1px;
}

.battery-level {
  width: 75%;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
}

.phone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 35;
  pointer-events: none;
}

.home-bar {
  width: 100px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.25);
}

.phone-screen:has(.app-screen-splash.active) .home-bar {
  background: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════
   12. PHONE APP SCREENS STYLING
   ═══════════════════════════════════════════════════════════════════════ */
.app-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 10;
}

.app-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 20;
}

/* Splash */
.app-screen-splash { background: #000; }
.splash-hero-media { position: absolute; inset: 0; }
.splash-img { width: 100%; height: 100%; object-fit: cover; }
.splash-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.92) 85%); }
.splash-content { position: relative; z-index: 2; margin-top: auto; padding: 20px 18px 40px; display: flex; flex-direction: column; text-align: left; }
.splash-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.splash-brand-text { color: #fff; font-size: 1.15rem; font-weight: 800; }
.splash-headline { font-size: 1.55rem; font-weight: 800; line-height: 1.2; color: #fff; margin-bottom: 8px; }
.splash-subheadline { font-size: 0.78rem; color: rgba(255,255,255,0.8); line-height: 1.4; margin-bottom: 16px; }
.splash-guarantees { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.guarantee-chip { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.12); padding: 4px 8px; border-radius: 6px; width: fit-content; }
.splash-cta-box { display: flex; flex-direction: column; gap: 10px; }
.splash-start-btn { display: flex; align-items: center; justify-content: center; gap: 6px; background: #fff; color: #0f172a; border: none; padding: 13px; border-radius: 9999px; font-size: 0.9rem; font-weight: 800; cursor: pointer; }
.splash-agent-link { background: transparent; color: rgba(255,255,255,0.8); border: none; font-size: 0.72rem; font-weight: 600; text-align: center; cursor: pointer; }

/* Main Listings Feed in phone */
.app-header-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--border-light); flex-shrink: 0; }
.header-location-picker { display: flex; align-items: center; gap: 6px; }
.loc-text { display: flex; flex-direction: column; text-align: left; }
.loc-sub { font-size: 0.6rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.loc-name { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); }
.header-icon-btn { width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9; border: none; display: flex; align-items: center; justify-content: center; position: relative; }
.notif-badge-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }

.app-scroll-content { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.app-search-box { padding: 10px 14px 6px; }
.search-input-wrap { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 8px 12px; }
.search-input-wrap input { flex: 1; border: none; outline: none; font-size: 0.8rem; font-family: inherit; }

.app-filter-pills { display: flex; gap: 6px; padding: 4px 14px 10px; overflow-x: auto; scrollbar-width: none; }
.app-filter-pills::-webkit-scrollbar { display: none; }
.filter-pill { flex-shrink: 0; background: #fff; color: #475569; border: 1px solid var(--border-light); padding: 5px 10px; border-radius: 9999px; font-size: 0.72rem; font-weight: 600; cursor: pointer; }
.filter-pill.active { background: #0f172a; color: #fff; border-color: #0f172a; }

.app-properties-grid { display: flex; flex-direction: column; gap: 12px; padding: 0 14px; text-align: left; }
.app-prop-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-light); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
.card-media-wrap { position: relative; width: 100%; height: 160px; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-mandate-badge { position: absolute; top: 8px; left: 8px; background: rgba(22, 101, 52, 0.9); color: #fff; padding: 3px 7px; border-radius: 5px; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.card-heart-btn { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.card-content { padding: 10px 12px 12px; }
.card-price-row { margin-bottom: 2px; }
.card-price { font-size: 1rem; font-weight: 800; color: var(--mea-green-primary); }
.card-title { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-loc { display: flex; align-items: center; gap: 4px; font-size: 0.7rem; color: #64748b; margin-bottom: 8px; }
.card-amenities { display: flex; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid #f1f5f9; font-size: 0.65rem; font-weight: 600; color: #475569; }

/* Bottom Dock in Phone */
.app-bottom-dock { position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border-top: 1px solid rgba(0, 0, 0, 0.08); display: flex; align-items: center; justify-content: space-around; z-index: 30; }
.dock-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: transparent; border: none; color: #94a3b8; cursor: pointer; padding: 4px 10px; }
.dock-tab span { font-size: 0.65rem; font-weight: 600; }
.dock-tab.active { color: var(--mea-green-primary); }
.dock-tab.active span { font-weight: 800; }
.app-bottom-spacer { height: 74px; }

/* Detail View in Phone */
.app-detail-view { position: absolute; inset: 0; background: #fff; z-index: 50; display: flex; flex-direction: column; text-align: left; }
.detail-header-float { position: absolute; top: 40px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 60; }
.detail-btn-back, .detail-btn-like { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.detail-hero-media { position: relative; height: 240px; }
.detail-main-img { width: 100%; height: 100%; object-fit: cover; }
.detail-mandate-badge { position: absolute; bottom: 10px; left: 12px; background: rgba(22, 101, 52, 0.9); color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 0.68rem; font-weight: 800; }
.detail-body-content { padding: 14px; }
.detail-price-tag { font-size: 1.3rem; font-weight: 900; color: var(--mea-green-primary); margin-bottom: 2px; }
.detail-prop-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.detail-loc-row { font-size: 0.75rem; color: #64748b; margin-bottom: 12px; }
.detail-cost-breakdown { background: #f8fafc; border: 1px solid var(--border-light); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.cost-row { display: flex; justify-content: space-between; font-size: 0.75rem; color: #475569; padding: 4px 0; border-bottom: 1px dashed #e2e8f0; }
.cost-row.total-row { border-bottom: none; border-top: 2px solid #cbd5e1; margin-top: 4px; padding-top: 6px; font-weight: 900; color: #0f172a; }
.cost-row.total-row strong { color: var(--mea-green-primary); font-size: 0.95rem; }
.detail-agent-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 10px; margin-bottom: 14px; }
.agent-avatar { position: relative; width: 40px; height: 40px; }
.agent-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.agent-check-dot { position: absolute; bottom: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--mea-green-accent); color: #fff; font-size: 9px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.agent-details h4 { font-size: 0.82rem; font-weight: 800; margin-bottom: 1px; }
.agent-details span { font-size: 0.68rem; color: #64748b; }
.detail-action-dock { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px calc(10px + var(--safe-bottom)); background: rgba(255,255,255,0.96); border-top: 1px solid var(--border-light); display: flex; gap: 8px; z-index: 70; }
.btn-action-whatsapp { flex: 1; background: #25d366; color: #052e16; padding: 11px; border-radius: 10px; font-size: 0.82rem; font-weight: 800; text-decoration: none; text-align: center; }
.btn-action-inspect { flex: 1; background: #0f172a; color: #fff; border: none; padding: 11px; border-radius: 10px; font-size: 0.82rem; font-weight: 800; cursor: pointer; }

/* Subscreens */
.sub-header { padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; text-align: left; }
.sub-header h2 { font-size: 1rem; font-weight: 800; }
.sub-badge, .sub-count { font-size: 0.68rem; font-weight: 700; background: #f1f5f9; padding: 2px 7px; border-radius: 4px; }
.clinic-intro-card { background: linear-gradient(135deg, #0f3d24, #0f172a); color: #fff; padding: 14px; border-radius: 12px; margin-bottom: 14px; text-align: left; }
.clinic-intro-card h3 { font-size: 0.95rem; font-weight: 800; margin: 4px 0; }
.clinic-intro-card p { font-size: 0.72rem; color: #cbd5e1; }
.btn-clinic-chat { display: inline-flex; align-items: center; gap: 6px; background: var(--mea-green-primary); color: #fff; padding: 10px 14px; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.agent-verify-box { background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 14px; text-align: left; }
.verify-badge { font-size: 0.65rem; font-weight: 800; color: var(--mea-green-primary); text-transform: uppercase; }
.agent-verify-box h4 { font-size: 0.9rem; font-weight: 800; margin: 2px 0 8px; }
.verify-input-group { display: flex; gap: 6px; }
.verify-input-group input { flex: 1; border: 1px solid var(--border-light); border-radius: 8px; padding: 8px 10px; font-size: 0.8rem; }
.verify-input-group button { background: #0f172a; color: #fff; border: none; border-radius: 8px; padding: 8px 12px; font-size: 0.78rem; font-weight: 700; cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════════════
   13. DIALOG MODALS
   ═══════════════════════════════════════════════════════════════════════ */
.mea-app-dialog {
  border: none;
  background: transparent;
  padding: 16px;
  width: 100%;
  max-width: 420px;
  margin: auto;
  z-index: 200;
}

.mea-app-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.dialog-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.dialog-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--mea-green-primary);
  background: var(--mea-green-light);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

.dialog-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.dialog-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.dialog-notice {
  display: flex;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
}

.notice-icon { font-size: 1.3rem; }
.notice-text strong { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.notice-text p { font-size: 0.74rem; color: var(--text-muted); line-height: 1.4; }

.btn-confirm-inspect {
  display: block;
  width: 100%;
  background: #25d366;
  color: #052e16;
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ios-steps-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ios-step { display: flex; align-items: center; gap: 10px; background: #f8fafc; padding: 10px 12px; border-radius: 10px; font-size: 0.8rem; }
.ios-step-num { width: 22px; height: 22px; border-radius: 50%; background: #0f172a; color: #fff; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   13B. ARTICLES & ADVISORY GUIDES SECTION & READER MODAL
   ═══════════════════════════════════════════════════════════════════════ */
.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.landing-articles-section {
  padding: 90px 24px;
  background: #f1f5f9;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--mea-green-border);
  box-shadow: 0 12px 28px rgba(22, 101, 52, 0.08);
}

.article-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--mea-green-light);
  color: var(--mea-green-primary);
  border: 1px solid var(--mea-green-border);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.article-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.article-meta span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5b6577;
}

.btn-read-article {
  background: transparent;
  border: none;
  color: var(--mea-green-primary);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn-read-article:hover {
  background: var(--mea-green-light);
}

/* Article Reader Dialog */
.article-reader-dialog .article-dialog-card {
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.article-dialog-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.article-dialog-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.25;
  margin-top: 8px;
  margin-bottom: 6px;
}

.article-reader-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.article-dialog-body {
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #334155;
  padding-right: 8px;
  margin-bottom: 20px;
}

.article-dialog-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 18px 0 8px;
}

.article-dialog-body ul, .article-dialog-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.article-dialog-body li {
  margin-bottom: 6px;
}

.article-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.btn-view-on-blog {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mea-green-primary);
  text-decoration: none;
}

/* Phone App Clinic Pricing */
.app-clinic-plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.clinic-plan-row {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clinic-plan-row.highlight {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.plan-info strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dark);
}

.plan-info span {
  font-size: 0.68rem;
  color: #64748b;
}

.plan-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--mea-green-primary);
}

.clinic-statute-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.5;
}

.statute-item {
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   14. RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-float-card { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-stage-inner { flex-direction: column; text-align: center; }
  .phone-side-download-card { text-align: center; max-width: 500px; }
  .download-checklist { align-items: center; }
  .desktop-properties-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-center-links { display: none; }
  .hero-headline { font-size: 2.5rem; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-btn-primary, .hero-btn-secondary { width: 100%; justify-content: center; }
  
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .styles-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .desktop-properties-grid { grid-template-columns: 1fr; }
  .footer-top-row { grid-template-columns: 1fr; gap: 24px; }
  .cta-actions { flex-direction: column; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════
   15. FULL STANDALONE NESTFIND DESKTOP WEB APPLICATION
   ═══════════════════════════════════════════════════════════════════════ */
.main-desktop-app-view {
  min-height: 100vh;
  background: #f8fafc;
  color: var(--text-dark);
}

.web-app-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  z-index: 60;
}

.web-app-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.web-app-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.web-app-brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.web-location-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.web-view-mode-pill {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
}

.mode-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-pill-btn:hover {
  color: var(--text-dark);
}

.mode-pill-btn.active {
  background: var(--mea-green-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.25);
}

.web-app-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.web-lic-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--mea-green-primary);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.web-lic-badge:hover {
  background: #dcfce7;
}

.lic-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mea-green-accent);
}

.web-action-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}

.web-action-icon-btn:hover {
  background: #f1f5f9;
}

.web-notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

.web-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 4px 10px 4px 4px;
  border-radius: 9999px;
}

.user-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.user-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mea-green-primary);
}

/* Subnav Navigation */
.web-app-subnav {
  position: sticky;
  top: 65px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  z-index: 50;
}

.web-subnav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 24px;
}

.web-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.web-tabs-row::-webkit-scrollbar {
  display: none;
}

.web-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.web-tab-btn:hover {
  background: #f1f5f9;
  color: var(--text-dark);
}

.web-tab-btn.active {
  background: var(--mea-green-primary);
  color: #ffffff;
  border-color: var(--mea-green-primary);
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.2);
}

/* Main Content Wrapper */
.web-app-main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.web-panel-view {
  display: block;
}

/* Filter Controls Card */
.web-filter-controls-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.web-search-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.web-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  padding: 10px 18px;
  transition: border-color 0.15s ease;
}

.web-search-field:focus-within {
  border-color: var(--mea-green-primary);
  background: #ffffff;
}

.web-search-field input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  outline: none;
  color: var(--text-dark);
}

.btn-clear-search {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #94a3b8;
  cursor: pointer;
}

.web-quick-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
}

.web-quick-sort select {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
}

.web-category-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.web-category-pills-row::-webkit-scrollbar {
  display: none;
}

.web-cat-pill {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.web-cat-pill:hover {
  background: #f1f5f9;
}

.web-cat-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* NestFind Split-Screen Layout */
.web-split-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.web-grid-column {
  flex: 1;
  min-width: 0;
}

.web-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.web-results-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.web-results-header span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.web-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* Web App Property Card */
.web-prop-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.web-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: #bbf7d0;
}

.web-prop-card.selected {
  border: 2px solid var(--mea-green-primary);
  box-shadow: 0 12px 30px rgba(22, 101, 52, 0.15);
}

.web-card-media {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #e2e8f0;
}

.web-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.web-prop-card:hover .web-card-media img {
  transform: scale(1.04);
}

.web-rating-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.web-card-body {
  padding: 16px;
}

.web-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.web-card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.web-card-ref {
  font-size: 0.7rem;
  color: #5b6577;
  font-weight: 700;
}

.web-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-card-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.web-card-amenities {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.web-amenity-chip {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
}

.web-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.web-card-agent {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mea-green-primary);
}

.web-btn-inspect {
  background: #f1f5f9;
  border: none;
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.web-btn-inspect:hover {
  background: var(--mea-green-primary);
  color: #ffffff;
}

/* Sticky Inspector Panel (NestFind Right Column) */
.web-inspector-column {
  width: 440px;
  flex-shrink: 0;
  position: sticky;
  top: 135px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.inspector-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
}

.inspector-hero {
  position: relative;
  height: 220px;
  background: #0f172a;
}

.inspector-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-close-inspector {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.inspector-body {
  padding: 20px;
}

.inspector-price-tag {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--mea-green-primary);
  margin-bottom: 4px;
}

.inspector-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 6px;
}

.inspector-loc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* 5-Line Math Breakdown */
.inspector-math-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}

.inspector-math-card h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.math-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 6px;
}

.math-row.total-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.math-row.total-row strong {
  color: var(--mea-green-primary);
}

.inspector-agent-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.inspector-agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.inspector-agent-info h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
}

.inspector-agent-info span {
  font-size: 0.72rem;
  color: var(--mea-green-primary);
  font-weight: 700;
}

.inspector-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-inspector-wa {
  background: #25d366;
  color: #052e16;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-inspector-inspect {
  background: var(--mea-green-primary);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

/* Agreement Clinic Tab in Desktop App */
.web-panel-header {
  margin-bottom: 24px;
}

.web-panel-header h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.web-panel-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.panel-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mea-green-primary);
  margin-bottom: 6px;
}

.web-clinic-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.web-clinic-plan-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.web-clinic-plan-card.highlight {
  border-color: #86efac;
  box-shadow: 0 8px 24px rgba(22, 101, 52, 0.08);
}

.plan-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.plan-badge.urgent {
  background: #fee2e2;
  color: #991b1b;
}

.plan-price-large {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-dark);
  margin: 10px 0 4px;
}

.plan-turnaround {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 20px;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 24px;
}

.btn-plan-select {
  display: block;
  background: var(--mea-green-primary);
  color: #ffffff;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.btn-plan-select.urgent {
  background: #991b1b;
}

.web-clinic-actions-bar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn-upload-lease-form {
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 10px;
}

/* Licenses & Certs Tab */
.web-certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.cert-img-wrap {
  height: 280px;
  background: #0f172a;
  overflow: hidden;
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-body {
  padding: 20px;
}

.cert-pill {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.cert-body h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cert-body p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 4px;
}

.regulatory-partners-banner {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
}

.regulatory-partners-banner h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 18px;
}

.partners-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.partner-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.partner-seal img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.partner-seal span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

/* About & Team Tab */
.founder-letter-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.letter-badge {
  display: inline-block;
  background: var(--mea-green-light);
  color: var(--mea-green-primary);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.founder-letter-card h3 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.letter-salutation {
  font-style: italic;
  font-weight: 700;
  color: #475569;
  margin-bottom: 14px;
}

.letter-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 14px;
}

.letter-sign {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.letter-sign strong {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.letter-sign span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.team-grid-section h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-member-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.team-photo-wrap {
  height: 200px;
  background: #e2e8f0;
  overflow: hidden;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-body {
  padding: 16px;
}

.team-member-body h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.team-role {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mea-green-primary);
  margin-bottom: 8px;
}

.team-member-body p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #64748b;
}

/* Legal Guides Grid */
.web-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Cookie Consent Banner */
.mea-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 680px;
  margin: 0 auto;
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-inner {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-icon {
  font-size: 1.5rem;
}

.cookie-info strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.cookie-info p {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--mea-green-primary);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-cookie-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .web-split-layout {
    flex-direction: column;
  }
  .web-inspector-column {
    width: 100%;
    position: static;
    max-height: none;
  }
  .web-clinic-plans-grid, .web-certificates-grid {
    grid-template-columns: 1fr;
  }
  .team-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .web-guides-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   TRUST BANNER (Lagos Real Estate Compliance Authority)
   ═══════════════════════════════════════════════════════════════════════ */
.landing-trust-banner {
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);
  color: #ffffff;
  padding: 28px 24px;
  border-top: 3px solid #22c55e;
}

.trust-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trust-banner-text-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.trust-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trust-banner-text-group h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.trust-banner-text-group p {
  font-size: 0.9rem;
  color: #dcfce7;
  line-height: 1.4;
  margin: 0;
}

.btn-trust-learn-more {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-trust-learn-more:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════
   COMPREHENSIVE MODERN DARK FOOTER (Landing & Desktop Web App)
   ═══════════════════════════════════════════════════════════════════════ */
.landing-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 24px 32px;
  border-top: 1px solid #1e293b;
}

.desktop-web-footer {
  margin-top: 48px;
  border-top: 4px solid var(--mea-green-primary);
}

.desktop-web-trust-banner {
  margin-top: 40px;
}

.footer-grid-four-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.brand-col .brand-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-cac-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a, .footer-btn-nav, .footer-doc-trigger {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
  font-family: inherit;
}

.footer-link-list a:hover, .footer-btn-nav:hover, .footer-doc-trigger:hover {
  color: #22c55e;
}

.footer-feedback-highlight {
  color: #f59e0b !important;
  font-weight: 700;
}

.footer-btn-apply-agent {
  display: inline-block;
  margin-top: 8px;
  background: #166534;
  color: #ffffff !important;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.footer-btn-apply-agent:hover {
  background: #15803d;
}

.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-compliance-row {
  border-top: 1px solid #1e293b;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.compliance-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.compliance-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compliance-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.comp-badge {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.compliance-right a {
  color: #22c55e;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom-row {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADER ACTIONS & NOTIFICATION POPOVER
   ═══════════════════════════════════════════════════════════════════════ */
.web-nav-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d97706;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.web-nav-feedback-btn:hover {
  background: #b45309;
}

.web-notif-wrap {
  position: relative;
}

.web-notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: pulseNotif 2s infinite;
}

@keyframes pulseNotif {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.web-notif-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: -40px;
  width: 330px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  animation: dropIn 0.18s ease-out;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.notif-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #1e293b;
}

.notif-live-pill {
  font-size: 0.68rem;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-notif-mark-read {
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mea-green-primary);
  cursor: pointer;
}

.notif-popover-body {
  max-height: 260px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 3px;
}

.notif-item-msg {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 4px;
}

.notif-item-time {
  font-size: 0.68rem;
  color: #94a3b8;
}

.notif-popover-footer {
  padding: 8px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
}

/* User Badge Enhancements */
.web-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  padding: 4px 12px 4px 6px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.web-user-badge:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.user-meta-stack {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-sub-hint {
  font-size: 0.65rem;
  color: var(--mea-green-primary);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════
   ADVANCED FILTER CONTROLS DRAWER
   ═══════════════════════════════════════════════════════════════════════ */
.web-search-actions-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-toggle-adv-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.btn-toggle-adv-filters:hover, .btn-toggle-adv-filters.active {
  border-color: var(--mea-green-primary);
  background: var(--mea-green-light);
  color: var(--mea-green-primary);
}

.filter-count-badge {
  background: var(--mea-green-primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
}

.desktop-adv-filter-drawer {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  margin-top: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.adv-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.adv-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adv-filter-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.adv-select, .adv-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.85rem;
  background: #f8fafc;
  color: #1e293b;
  outline: none;
  transition: border 0.15s ease;
}

.adv-select:focus, .adv-input:focus {
  border-color: var(--mea-green-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.adv-segmented-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.seg-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seg-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.seg-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-pill:hover {
  background: #e2e8f0;
}

.seg-pill.active {
  background: var(--mea-green-primary);
  border-color: var(--mea-green-primary);
  color: #ffffff;
}

.btn-reset-filters {
  background: none;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-reset-filters:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION G: ACCOUNTABILITY RECORD PANEL
   ═══════════════════════════════════════════════════════════════════════ */
.acc-month-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 14px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.acc-month-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e293b;
}

.acc-update-note {
  font-size: 0.78rem;
  color: #64748b;
}

.acc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.acc-stat-tile {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.acc-tile-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.acc-tile-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acc-stat-tile.highlight-green .acc-tile-num { color: #15803d; }
.acc-stat-tile.highlight-warn .acc-tile-num { color: #d97706; }
.acc-stat-tile.highlight-danger .acc-tile-num { color: #b91c1c; }

.acc-sub-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.acc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.acc-card-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
}

.card-badge-muted {
  font-size: 0.72rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 9999px;
}

.acc-card-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 18px;
}

.acc-table-wrap {
  overflow-x: auto;
}

.acc-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.acc-data-table th {
  background: #f8fafc;
  padding: 10px 14px;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.acc-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.violation-pill {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
}

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

.alltime-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.alltime-stat-box strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.alltime-stat-box span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.acc-commitment-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 20px 24px;
}

.commit-icon {
  font-size: 2rem;
}

.commit-text h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 4px;
}

.commit-text p {
  font-size: 0.85rem;
  color: #15803d;
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION H: HOW IT WORKS PANEL
   ═══════════════════════════════════════════════════════════════════════ */
.howto-role-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.howto-tab-toggle {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.howto-tab-toggle:hover {
  background: #f8fafc;
}

.howto-tab-toggle.active {
  background: var(--mea-green-primary);
  border-color: var(--mea-green-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.25);
}

.howto-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.howto-step-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.howto-step-card.highlight {
  border-color: #86efac;
  background: #f0fdf4;
}

.step-num-bubble {
  width: 40px;
  height: 40px;
  background: var(--mea-green-primary);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.step-card-body p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 12px;
}

.btn-step-action {
  display: inline-block;
  background: #ffffff;
  border: 1.5px solid var(--mea-green-primary);
  color: var(--mea-green-primary);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-step-action:hover {
  background: var(--mea-green-primary);
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION I: VERIFIED AGENTS DIRECTORY PANEL
   ═══════════════════════════════════════════════════════════════════════ */
.agents-public-link-wrap {
  margin-top: 12px;
}

.btn-lasrera-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-lasrera-register:hover {
  background: #dcfce7;
}

.agents-roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.agent-roster-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.agent-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.agent-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.agent-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.agent-status-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #15803d;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 9999px;
  border: 2px solid #ffffff;
}

.agent-header-info h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.agent-role-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 4px;
}

.agent-id-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--mea-green-primary);
}

.agent-cred-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.78rem;
}

.agent-cred-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.agent-cred-row:last-child { margin-bottom: 0; }
.cred-label { color: #64748b; }
.cred-value { color: #1e293b; }

.agent-bio-text {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 14px;
  flex-grow: 1;
}

.agent-areas-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.agent-area-chip {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.btn-agent-whatsapp {
  display: block;
  text-align: center;
  background: #25d366;
  color: #052e16;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn-agent-whatsapp:hover {
  opacity: 0.9;
}

.agent-join-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.join-banner-content h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.join-banner-content p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.btn-banner-apply {
  background: var(--mea-green-primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   WELCOME GATEWAY MODAL STYLING
   ═══════════════════════════════════════════════════════════════════════ */
.mea-app-dialog.gateway-dialog {
  max-width: 552px; /* 520px card + 16px dialog padding each side */
}

.gateway-dialog-card {
  width: 100%;
  box-sizing: border-box;
  padding: 28px;
}

.gw-header {
  text-align: center;
  margin-bottom: 22px;
}

.gw-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.gw-header p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.gw-options-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.gw-role-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.gw-role-card:hover {
  background: #f0fdf4;
  border-color: var(--mea-green-primary);
  transform: translateY(-1px);
}

.gw-role-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.gw-role-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 3px;
}

.gw-role-info p {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.gw-role-arrow {
  font-size: 1.2rem;
  color: #94a3b8;
}

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

.gw-skip-link {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: #64748b;
  cursor: pointer;
  font-weight: 700;
}

.gw-back-link {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--mea-green-primary);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  display: inline-block;
}

.gw-agent-form {
  margin-bottom: 20px;
}

.gw-agent-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.gw-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.gw-input-row input {
  flex-grow: 1;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
}

.btn-gw-verify {
  background: var(--mea-green-primary);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.gw-input-hint {
  font-size: 0.72rem;
  color: #94a3b8;
}

.gw-status-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 18px;
  font-size: 0.82rem;
}

.gw-apply-box {
  display: flex;
  gap: 14px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 14px;
}

.apply-icon { font-size: 1.5rem; }
.apply-text h4 { font-size: 0.85rem; font-weight: 800; margin-bottom: 3px; }
.apply-text p { font-size: 0.75rem; color: #64748b; margin-bottom: 8px; }
.gw-apply-link { color: var(--mea-green-primary); font-size: 0.78rem; font-weight: 800; text-decoration: none; }

.gw-profile-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.profile-row:last-child { border-bottom: none; }

.gw-profile-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-gw-switch-role {
  background: none;
  border: 1px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════
   LEGAL DOCUMENT VIEWER MODAL
   ═══════════════════════════════════════════════════════════════════════ */
.legal-dialog-card {
  max-width: 680px;
  width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.legal-dialog-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.legal-dialog-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.legal-dialog-sub {
  font-size: 0.78rem;
  color: #64748b;
}

.legal-dialog-body {
  overflow-y: auto;
  line-height: 1.6;
  font-size: 0.88rem;
  color: #334155;
  padding-right: 8px;
}

.legal-dialog-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 18px 0 8px;
}

.legal-dialog-body h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  margin: 14px 0 6px;
}

.legal-dialog-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-dialog-body li {
  margin-bottom: 6px;
}

.legal-dialog-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

/* Mobile Responsive Adaptations */
@media (max-width: 768px) {
  .trust-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid-four-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .adv-filter-grid {
    grid-template-columns: 1fr;
  }
  .acc-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .acc-alltime-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .agents-roster-grid {
    grid-template-columns: 1fr;
  }
  .agent-join-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   WEB APP VIEW — PHONE WIDTHS
   The desktop web app (?view=web) previously had no phone breakpoints and
   overflowed ~600px horizontally on a 390px screen.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .web-app-header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }
  .web-view-mode-pill,
  .web-app-right-actions {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .web-app-right-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  .web-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .web-search-actions-cluster {
    flex-wrap: wrap;
  }
  .web-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Make the HTML `hidden` attribute win over component display rules. */
[hidden] { display: none !important; }

/* Recently rented strip (app.js renderRecentlyDone) */
.web-recently-done { margin-top: 32px; }
.web-recently-done h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.done-caption { font-size: 0.9rem; color: #475569; margin: 0 0 12px; }
.done-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.done-card { display: block; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; }
.done-card-media { position: relative; aspect-ratio: 16 / 10; background: #0f172a; }
.done-card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6); opacity: 0.85; }
.done-card-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: #f59e0b; color: #1f1300; font-size: 0.78rem; font-weight: 700; text-transform: capitalize; }
.done-card-body { display: grid; gap: 4px; padding: 12px; font-size: 0.88rem; color: #334155; }
.done-card-body strong { font-size: 0.95rem; color: #0f172a; }

/* "Direct Mandate" badge on card and inspector photos (was used in markup but never styled) */
.mandate-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 101, 52, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Compact cookie notice on phones (it used to cover about half the screen) */
@media (max-width: 600px) {
  .mea-cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
  .cookie-icon { display: none; }
  .cookie-info p { font-size: 0.8rem; line-height: 1.4; margin: 2px 0 0; }
  .cookie-actions { justify-content: flex-end; }
}


/* Tabs: Listings · Saved · More ▾ (the rest live in the More menu) */
.web-tabs-row { overflow: visible; }
.web-more { position: relative; }
.web-more-toggle svg { transition: transform 0.15s ease; }
.web-more-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.web-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.web-more-menu[hidden] { display: none; }
.web-more-menu .web-tab-btn {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: #334155;
}
.web-more-menu .web-tab-btn:hover,
.web-more-menu .web-tab-btn:focus-visible { background: #f1f5f9; color: #0f172a; }
.web-more-menu .web-tab-btn.active { background: #f0fdf4; color: #15803d; }

/* Phone top bar is 60px tall */
@media (max-width: 520px) {
  .web-app-subnav { top: 61px; }
}
@media (max-width: 520px) {
  .web-tabs-row { flex-wrap: wrap; gap: 6px; }
  .web-tabs-row > .web-tab-btn svg { display: none; }
  .web-tabs-row .web-tab-btn { padding: 8px 12px; }
}

/* State picker in the listings search row */
.web-state-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 44px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 999px;
  background: #f8fafc;
  color: #15803d;
}
.web-state-pick select {
  border: 0;
  background: transparent;
  font: 600 0.9rem var(--font-sans);
  color: #0f172a;
  padding-right: 4px;
  cursor: pointer;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Minimal hero with the state landmark scene above the headline ── */
.landing-hero-section { min-height: auto; padding: 0 24px 56px; justify-content: flex-start; }


/* ── State landmark carousel (hero) ── */
.hero-scenes {
  position: relative;
  /* full-bleed inside the hero's 24px side padding (100vw would add a scrollbar-wide overflow) */
  width: calc(100% + 48px);
  max-width: 1600px;
  margin: 0 0 8px;
  margin-inline: max(-24px, calc((100% - 1600px) / 2)); /* edge-to-edge, centred on very wide screens */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}
.hero-scenes-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  outline-offset: -4px;
}
.hero-scenes-track::-webkit-scrollbar { display: none; }
.hero-scene-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  aspect-ratio: 1600 / 420;
  max-height: 380px;
  overflow: hidden;
}
.hero-scene-slide .hero-scene-svg { display: block; width: 100%; height: 100%; }
.hero-scene-slide.is-soon .hero-scene-svg { filter: saturate(0.85); }
.hero-scene-label {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.hero-scene-label strong {
  padding: 3px 10px;
  border-radius: 999px;
  background: #15803d;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-scene-slide.is-soon .hero-scene-label strong { background: #f59e0b; color: #1f1300; }
.hero-scene-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f59e0b;
  color: #1f1300;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.hero-scenes-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.hero-scenes-nav.is-prev { left: 16px; }
.hero-scenes-nav.is-next { right: 16px; }
/* Buttons are 24px (WCAG 2.5.8 target size); the visible dot is drawn inside */
.hero-scenes-dots { display: flex; justify-content: center; align-items: center; gap: 0; margin-top: 2px; }
.hero-scenes-dots button {
  display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0;
  background: transparent; cursor: pointer;
}
.hero-scenes-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: #cbd5e1; transition: width 0.2s ease, background 0.2s ease;
}
.hero-scenes-dots button[aria-current="true"] { width: 30px; }
.hero-scenes-dots button[aria-current="true"]::before { width: 22px; background: #15803d; }
@media (max-width: 640px) {
  /* Wider crop on phones so each state's main landmark stays in view */
  .hero-scene-slide { aspect-ratio: 2.2 / 1; max-height: 200px; }
  .hero-scenes-nav { display: none; }
  .hero-scene-label { bottom: 14%; font-size: 0.75rem; }
  .hero-scene-ribbon { top: 10px; right: 10px; padding: 4px 9px; font-size: 0.62rem; }
}

/* Category cards: photo credits are kept in data/photo_credits.yaml (not shown on the site) */
.style-img-wrap { position: relative; }
.style-card:focus-within { outline: 3px solid #f59e0b; outline-offset: 2px; }
/* The heading button covers the whole card, so the card stays one big target */
.style-card-btn { all: unset; cursor: pointer; }
.style-card-btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.style-card-btn:focus-visible { outline: none; }
.hero-scenes-pause {
  width: 30px !important; height: 24px !important; margin-left: 6px; padding: 0 !important;
  border: 0; border-radius: 999px; background: #e2e8f0 !important; color: #0f172a;
  font-size: 9px; line-height: 24px; cursor: pointer;
}
.hero-scenes-pause::before { display: none !important; }

/* ── Recently added homes (homepage, under "Browse by category") ── */
.landing-recent-section { padding: 8px 0 56px; }
.recent-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; text-align: left; }
.recent-head .section-subtitle { margin-left: 0; }
.recent-all { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-light, #e2e8f0); background: #fff; color: #166534; font-weight: 700; text-decoration: none; }
.recent-all:hover { border-color: #15803d; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.recent-card { display: flex; flex-direction: column; border: 1px solid var(--border-light, #e2e8f0); border-radius: 18px; background: #fff; overflow: hidden; color: #0f172a; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.recent-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08); }
.recent-card:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.recent-card__media { position: relative; aspect-ratio: 16 / 10; background: #e2e8f0; }
.recent-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-card__badge { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; background: #15803d; color: #fff; font-size: 12px; font-weight: 700; }
.recent-card__new { position: absolute; right: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(15, 23, 42, 0.78); color: #fff; font-size: 12px; font-weight: 600; }
.recent-card__body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.recent-card__price { font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 1.2rem; color: #166534; }
.recent-card__price small { font-size: 0.85rem; color: #475569; font-family: inherit; }
.recent-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.recent-card__where, .recent-card__facts { margin: 0; font-size: 0.9rem; color: #475569; }
.recent-card--ask { justify-content: center; gap: 8px; padding: 22px; background: linear-gradient(140deg, #ecfdf3, #ffffff 70%); border-style: dashed; border-color: #86efac; }
.recent-card--ask p { margin: 0; color: #334155; font-size: 0.95rem; line-height: 1.5; }
.recent-card__ask-icon { font-size: 1.8rem; }
.recent-card__ask-cta { margin-top: 6px; font-weight: 700; color: #166534; }
html[data-theme="dark"] .recent-card, html[data-theme="dark"] .recent-all { background: #111a2c; border-color: #24324a; color: #e8edf5; }
html[data-theme="dark"] .recent-card__price, html[data-theme="dark"] .recent-all, html[data-theme="dark"] .recent-card__ask-cta { color: #4ade80; }
html[data-theme="dark"] .recent-card__where, html[data-theme="dark"] .recent-card__facts, html[data-theme="dark"] .recent-card__price small { color: #a8b4c7; }
html[data-theme="dark"] .recent-card--ask { background: linear-gradient(140deg, #0f2a1c, #111a2c 70%); border-color: #166534; }
html[data-theme="dark"] .recent-card--ask p { color: #c4cedc; }
@media (max-width: 640px) { .recent-grid { grid-template-columns: 1fr; } .recent-all { width: 100%; justify-content: center; } }

/* State picker in the listings bar: big enough to tap (WCAG 2.5.8, 24px+) */
#web-state-select { min-height: 32px; cursor: pointer; }

/* iPhone/iPad only (-webkit-touch-callout exists only in iOS Safari): no live blur behind sticky
   bars, cards and dialogs. iOS re-blurs these on every scroll frame, which made the app stutter;
   the backgrounds are already 60–95% opaque, so the look barely changes. */
@supports (-webkit-touch-callout: none) {
  .landing-nav-header, .web-app-header, .app-bottom-dock, .web-rating-badge, .btn-close-inspector, .mea-app-dialog::backdrop {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}
