/* ============================================
   RE/MAX Inmomás — International Advisory
   Corporate Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --blue: #0043ff;
  --red: #ff1200;
  
  /* Neutral Palette (Light Theme) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #f7f5ee; /* Cream */
  --bg-tertiary: #E2E8F0;
  --bg-card: #FFFFFF;
  --bg-card-solid: #FFFFFF;
  --bg-card-hover: #f7f5ee;

  /* Text */
  --text-primary: #232323; /* Dark Charcoal Gray */
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-accent: #0043ff;

  /* Borders */
  --border-subtle: #E2E8F0;
  --border-light: #CBD5E1;
  --border-medium: #94A3B8;
  --border-red: #ff1200;

  /* Shadows — Soft, warm, organic */
  --shadow-sm: 0 2px 8px rgba(0, 67, 255, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 67, 255, 0.08), 0 2px 8px rgba(0, 67, 255, 0.04);
  --shadow-lg: 0 16px 40px rgba(0, 67, 255, 0.12), 0 8px 16px rgba(0, 67, 255, 0.06);
  --shadow-xl: 0 24px 60px rgba(0, 67, 255, 0.16), 0 12px 24px rgba(0, 67, 255, 0.08);

  /* Gradients */
  --gradient-hero-overlay: linear-gradient(135deg, rgba(0, 67, 255, 0.95) 0%, rgba(35, 35, 35, 0.85) 100%);
  --gradient-blue: linear-gradient(135deg, #0043ff, #002dae);
  --gradient-red: linear-gradient(135deg, #ff1200, #cc0e00);

  /* Spacing */
  --section-padding: 110px 0;
  --section-padding-sm: 72px 0;
  --section-padding-lg: 140px 0;
  --section-inner-gap: 64px;
  --container-max: 1200px;
  --container-padding: 0 28px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius - Organic */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-full: 9999px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  /* Scrollbar — thin & styled globally (Chrome/Edge Windows) */
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

/* Styled scrollbar for Chromium/Edge on Windows */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
  background-clip: padding-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- Language Toggle (4 idiomas: EN, ES, FR-Canada, EN-CA) --- */
body.lang-en .lang-es,
body.lang-en .lang-fr,
body.lang-en .lang-en-ca { display: none; }

body.lang-es .lang-en,
body.lang-es .lang-fr,
body.lang-es .lang-en-ca { display: none; }

body.lang-fr .lang-en,
body.lang-fr .lang-es,
body.lang-fr .lang-en-ca { display: none; }

body.lang-en-ca .lang-en,
body.lang-en-ca .lang-es,
body.lang-en-ca .lang-fr { display: none; }

/* --- Utilities --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

/* Section padding modifiers */
.section--sm {
  padding: var(--section-padding-sm);
}

.section--lg {
  padding: var(--section-padding-lg);
}

/* Visual separator between same-bg sections */
.section + .section:not(.section--no-sep) {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tinted sections get a subtle top fade-in line instead */
.section.bg-secondary + .section.bg-secondary {
  border-top: 1px solid var(--border-subtle);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.8;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.text-gradient-red {
  color: var(--red);
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  color: var(--blue);
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons — Corporate, Trustworthy --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  letter-spacing: 0.3px;
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 18, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 18, 0, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--blue);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 67, 255, 0.15);
}

.btn-blue {
  background: var(--gradient-blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 67, 255, 0.3);
}

.btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 67, 255, 0.4);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.82rem;
}

/* --- Corporate Card --- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.glass-card:hover {
  border-color: var(--blue);
  background: var(--bg-card-hover);
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  margin-left: 12px;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.nav-cta:hover {
  transform: translateY(-1px) !important;
}

/* Language Selector — Dropdown elegante */
.lang-selector-wrapper {
  position: relative;
  margin-left: 8px;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 5px 12px 5px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.lang-selector-btn:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* SVG Flag button: show only the correct flag per active language */
.lang-flag-svg .flag-svg {
  display: none;
  border-radius: 2px;
  vertical-align: middle;
  flex-shrink: 0;
}
body.lang-en   .lang-flag-svg .flag-en    { display: inline-block; }
body.lang-es   .lang-flag-svg .flag-es    { display: inline-flex; align-items: center; gap: 3px; }
body.lang-fr   .lang-flag-svg .flag-fr    { display: inline-block; }
body.lang-en-ca .lang-flag-svg .flag-en-ca { display: inline-block; }
/* Default before JS loads: show US flag only if no language class is on body */
body:not(.lang-es):not(.lang-fr):not(.lang-en-ca) .lang-flag-svg .flag-en { display: inline-block; }

.lang-selector-btn .lang-code {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lang-selector-btn .lang-chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--transition-fast);
  opacity: 0.6;
}

.lang-selector-wrapper.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 6px;
  z-index: 1100;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-selector-wrapper.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-fast);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-dropdown-item:hover {
  background: rgba(0, 67, 255, 0.06);
  color: var(--blue);
}

.lang-dropdown-item.active {
  background: rgba(0, 67, 255, 0.08);
  color: var(--blue);
  font-weight: 600;
}

.lang-dropdown-item .item-flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  flex-shrink: 0;
  display: block;
}

.lang-dropdown-item .item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lang-dropdown-item .item-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-dropdown-item .item-region {
  font-size: 0.7rem;
  opacity: 0.6;
  font-weight: 400;
}

.lang-divider {
  width: 1px;
  height: 16px;
  background: var(--border-light);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* --- Hero Section — Clean Professional --- */
.hero {
  min-height: 90vh;
  display: flex;
  position: relative;
  overflow: hidden;
  padding-top: 120px; /* Account for banner (40px) + navbar (~80px) */
  background: var(--bg-primary);
}

.hero-split {
  display: flex;
  width: 100%;
  align-items: center;
}

.hero-text-col {
  flex: 1;
  padding: 4rem 6rem 4rem 8%;
  z-index: 2;
  position: relative;
}

.hero-image-col {
  flex: 1;
  position: relative;
  height: 100%;
  min-height: 90vh;
}

.hero-image-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: inset 160px 0 160px -80px var(--bg-primary); /* Fade effect */
}

@media (max-width: 992px) {
  .hero-split {
    flex-direction: column-reverse;
  }
  .hero-text-col {
    padding: 2.5rem 0 4rem 0;
  }
  .hero-image-col {
    width: 100%;
    height: 40vh;
    min-height: 40vh;
  }
  .hero-image-col img {
    box-shadow: inset 0 -80px 80px -40px var(--bg-primary); /* Fade from bottom on mobile */
  }
}



/* Orbs hidden — corporate cleanup */
.hero-orb {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 7px 18px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-badge .pulse {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.8px;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  position: relative;
  padding-left: 16px;
}

.hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero-stat-value {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Social Proof Bar --- */
.proof-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 28px 0;
}

.proof-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.proof-item .icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.proof-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Trust Badges Row --- */
.trust-badges {
  padding: 44px 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-badges .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-badges .badge-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-badges img {
  height: 30px;
  width: auto;
  opacity: 0.45;
  filter: grayscale(100%) brightness(2);
  transition: opacity var(--transition-smooth);
}

.trust-badges img:hover {
  opacity: 0.7;
}

/* --- Empathy Section — Fear Cards --- */
.empathy-section {
  background: var(--bg-secondary);
  padding: var(--section-padding);
}

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

.fear-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 28px 28px 28px 24px;
  transition: all var(--transition-smooth);
}

.fear-card:hover {
  border-left-color: var(--gold-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.fear-card .fear-concern {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.fear-card .fear-response {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.fear-card .fear-icon {
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: block;
}

/* --- Why Spain Section --- */
.why-spain {
  background: var(--bg-primary);
}

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

.reason-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.reason-card:hover {
  border-color: var(--blue);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.reason-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.reason-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.reason-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.reason-card .stat-highlight {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(123, 174, 232, 0.08);
  border: 1px solid rgba(123, 174, 232, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-accent);
}

/* --- Cost Comparison --- */
.cost-comparison {
  background: var(--bg-secondary);
  overflow: hidden;
}

.cost-comparison .section-header {
  margin-bottom: 48px;
}

.comparison-table {
  max-width: 880px;
  margin: 0 auto;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.comparison-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-row.header {
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.comparison-row .label {
  font-weight: 500;
  font-size: 0.92rem;
}

.comparison-row .spain-price {
  text-align: center;
  color: #4ADE80;
  font-weight: 600;
  font-size: 1rem;
}

.comparison-row .usa-price {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.25);
}

.savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  margin-top: 36px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4ADE80;
}

/* --- Property Showcase --- */
.properties {
  background: var(--bg-primary);
}

/* --- Properties Carousel --- */
.properties-carousel {
  position: relative;
  margin-top: 48px;
  padding: 0 48px;
}

.properties-viewport {
  overflow: hidden;
  width: 100%;
}

.properties-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Sizing of property cards in the track */
.properties-track .property-card {
  flex: 0 0 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .properties-track .property-card {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
  .properties-carousel {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  .properties-track .property-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .properties-carousel {
    padding: 0 12px;
  }
}

.properties-prev, .properties-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  font-size: 1.1rem;
}

.properties-prev:hover, .properties-next:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  transform: translateY(-50%) scale(1.1);
}

.properties-prev:disabled, .properties-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.properties-prev {
  left: -8px;
}

.properties-next {
  right: -8px;
}

.properties-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.properties-dots .prop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.properties-dots .prop-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.properties-dots .prop-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 5px;
}

.property-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  display: block;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

.property-image {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.property-card:hover .property-image img {
  transform: scale(1.03);
}

.property-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.property-tag.investment {
  background: rgba(200, 16, 46, 0.88);
  color: #fff;
}

.property-tag.lifestyle {
  background: rgba(0, 48, 135, 0.88);
  color: #fff;
}

.property-tag.luxury {
  background: rgba(212, 175, 55, 0.88);
  color: var(--bg-primary);
}

.property-yield {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(10, 22, 40, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  color: #4ADE80;
}

.property-info {
  padding: 22px;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-accent);
  font-weight: 500;
  margin-bottom: 6px;
}

.property-name {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.property-features {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.property-feature {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.property-price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.property-income {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.4;
}

.property-income strong {
  color: #4ADE80;
  font-weight: 600;
}

/* --- Costa Blanca Markets --- */
.markets {
  background: var(--bg-secondary);
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.market-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.market-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.market-card .market-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.market-card:nth-child(1) .market-icon { background: rgba(74, 222, 128, 0.06); border-color: rgba(74, 222, 128, 0.12); }
.market-card:nth-child(2) .market-icon { background: rgba(123, 174, 232, 0.06); border-color: rgba(123, 174, 232, 0.12); }
.market-card:nth-child(3) .market-icon { background: rgba(200, 16, 46, 0.06); border-color: rgba(200, 16, 46, 0.12); }
.market-card:nth-child(4) .market-icon { background: rgba(212, 175, 55, 0.06); border-color: rgba(212, 175, 55, 0.12); }

.market-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.market-card .market-profile {
  font-size: 0.8rem;
  color: var(--text-accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.market-card .market-range {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.market-card .market-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Visa Options --- */
.visas {
  background: var(--bg-primary);
}

.visa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.visa-card {
  padding: 30px;
  display: flex;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.visa-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.visa-card .visa-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.visa-card:nth-child(1) .visa-icon { background: rgba(212, 175, 55, 0.06); border-color: rgba(212, 175, 55, 0.12); }
.visa-card:nth-child(2) .visa-icon { background: rgba(123, 174, 232, 0.06); border-color: rgba(123, 174, 232, 0.12); }
.visa-card:nth-child(3) .visa-icon { background: rgba(74, 222, 128, 0.06); border-color: rgba(74, 222, 128, 0.12); }
.visa-card:nth-child(4) .visa-icon { background: rgba(200, 16, 46, 0.06); border-color: rgba(200, 16, 46, 0.12); }

.visa-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.visa-card .visa-for {
  font-size: 0.8rem;
  color: var(--text-accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.visa-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.visa-card .visa-requirement {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Buying Process (Premium Pipeline) --- */
.process {
  background: var(--bg-secondary);
  overflow: hidden;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 12px auto 0;
  line-height: 1.6;
}

/* Pipeline Wrapper */
.pipeline-wrapper {
  margin-top: 56px;
  position: relative;
}

/* Progress Track */
.pipeline-track {
  position: absolute;
  top: 36px;
  left: 40px;
  right: 40px;
  height: 3px;
  z-index: 1;
}

.pipeline-track-bg {
  position: absolute;
  inset: 0;
  background: var(--border-light);
  border-radius: 3px;
}

.pipeline-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #3b7dff);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(0, 67, 255, 0.3);
}

/* Steps Row */
.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  position: relative;
  z-index: 2;
}

/* Pipeline Node */
.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  padding: 0 4px;
}

/* Node Circle */
.node-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pipeline-node:hover .node-circle {
  border-color: var(--blue);
  color: var(--blue);
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 67, 255, 0.15);
}

.pipeline-node.active .node-circle {
  background: var(--gradient-blue);
  border-color: var(--blue);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 4px 24px rgba(0, 67, 255, 0.3), 0 0 0 6px rgba(0, 67, 255, 0.08);
}

.pipeline-node.completed .node-circle {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 67, 255, 0.2);
}

/* Node pulse animation for active step */
.pipeline-node.active .node-circle::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0, 67, 255, 0.2);
  animation: pipeline-pulse 2s ease-in-out infinite;
}

@keyframes pipeline-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0; }
}

/* Node Labels */
.node-label {
  margin-top: 16px;
  transition: all 0.3s ease;
}

.node-number {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.pipeline-node.active .node-number,
.pipeline-node.completed .node-number {
  color: var(--blue);
}

.node-label h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.pipeline-node.active .node-label h4 {
  color: var(--blue);
}

.node-label p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Details Panel ─── */
.process-details-panel {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.process-details-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue);
}

.details-panel-inner {
  display: flex;
  gap: 28px;
  padding: 36px 40px 32px;
  align-items: flex-start;
}

.details-panel-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 67, 255, 0.08), rgba(0, 67, 255, 0.03));
  border: 1px solid rgba(0, 67, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: all 0.3s ease;
}

.details-panel-content {
  flex: 1;
  min-width: 0;
}

.details-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.details-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 67, 255, 0.06);
  border: 1px solid rgba(0, 67, 255, 0.15);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.details-panel-header h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.process-details-panel p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

/* Highlights */
.details-panel-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.details-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 67, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.details-highlight:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 67, 255, 0.06);
}

.details-highlight .hl-icon {
  font-size: 0.85rem;
  line-height: 1;
}

/* Navigation */
.details-panel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 40px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 67, 255, 0.015);
}

.details-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.details-nav-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 67, 255, 0.04);
}

.details-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.details-nav-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  min-width: 48px;
  text-align: center;
}


/* --- VIP Discovery Trip --- */
.vip-trip {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.vip-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.vip-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.vip-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.vip-feature .check {
  color: #4ADE80;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.vip-feature span {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.vip-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.vip-image-wrapper img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.vip-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.92), transparent);
}

.vip-image-overlay .deductible {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- Team Section --- */
.team {
  background: var(--bg-secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.team-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  border-color: var(--blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.team-card.remax::before {
  background: var(--red);
}

.team-card.fuster::before {
  background: var(--blue);
}

.team-card.uci::before {
  background: #008f39;
}

.team-card.holidays::before {
  background: var(--gold);
}

.team-card.smbiotica::before {
  background: #F5C400;
}


.team-card .team-logo {
  height: 36px;
  width: auto;
  margin-bottom: 18px;
  object-fit: contain;
}

.team-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.team-card .team-tagline {
  font-size: 0.86rem;
  color: var(--text-accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.team-card .team-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.team-card .team-stat {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.team-card .team-stat strong {
  color: var(--text-primary);
  font-weight: 600;
}

.team-card .team-services {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-card .team-service {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.team-card .team-service::before {
  content: '→';
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Testimonial --- */
.testimonial {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 36px;
  position: relative;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.testimonial-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-location {
  font-size: 0.86rem;
  color: var(--text-accent);
  font-weight: 500;
}

.testimonial-results {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.testimonial-result {
  text-align: center;
}

.testimonial-result .result-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.testimonial-result .result-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* --- Webinar Registration --- */
.webinar {
  background: var(--bg-secondary);
  position: relative;
}

.webinar-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.webinar-info h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.2;
}

.webinar-topics {
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.webinar-topic {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.webinar-topic .topic-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.webinar-form-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.webinar-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* Reset checkbox & radio inside .form-group so they stay as native controls */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
  width: auto !important;
  padding: 0 !important;
  border: revert !important;
  border-radius: revert !important;
  background: revert !important;
  box-shadow: none !important;
  min-width: unset !important;
  flex-shrink: 0;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 67, 255, 0.1);
  background: var(--bg-primary);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(0,0,0,0.6)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* --- FAQ --- */
.faq {
  background: var(--bg-primary);
}

.faq-list {
  max-width: 780px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  background: var(--bg-card);
}

.faq-item.active {
  border-color: var(--border-light);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--text-accent);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Footer — Corporate --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 28px;
}

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

.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

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

.footer-links a {
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-partners {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-partners img {
  height: 24px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(100%) brightness(1.8);
  transition: opacity var(--transition-fast);
}

.footer-partners img:hover {
  opacity: 0.7;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Counter Animation --- */
.counter {
  display: inline-block;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline-steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .pipeline-track { display: none; }
  .pipeline-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .pipeline-steps { min-width: 700px; }
  .node-circle { width: 60px; height: 60px; }
  .details-panel-inner { padding: 28px 24px 24px; gap: 20px; }
  .details-panel-nav { padding: 12px 24px; }
  .vip-content { grid-template-columns: 1fr; }
  .webinar-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .empathy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(12px);
    padding: 20px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .lang-toggle {
    margin-left: 0;
    margin-top: 8px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-stats {
    gap: 28px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .reasons-grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr; }
  .visa-grid { grid-template-columns: 1fr; }
  .pipeline-steps { grid-template-columns: repeat(4, 1fr); min-width: 600px; }
  .node-circle { width: 52px; height: 52px; }
  .node-circle svg { width: 18px; height: 18px; }
  .node-label h4 { font-size: 0.75rem; }
  .node-label p { font-size: 0.68rem; }
  .details-panel-icon { width: 48px; height: 48px; min-width: 48px; }
  .details-panel-inner { flex-direction: column; padding: 24px 20px 20px; }
  .details-panel-header h4 { font-size: 1rem; }
  .process-details-panel p { font-size: 0.85rem; }
  .team-grid { grid-template-columns: 1fr; }
  .vip-features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .empathy-grid { grid-template-columns: 1fr; }

  .comparison-row { gap: 8px; }
  .comparison-row .label { font-size: 0.8rem; }

  .proof-bar .container { gap: 20px; justify-content: center; }
  .trust-badges .container { gap: 24px; }

  .testimonial-results { gap: 24px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.85rem; }
  .section-title { font-size: 1.6rem; }
  .hero-stats { flex-direction: column; gap: 18px; }
  .btn { padding: 12px 24px; font-size: 0.84rem; }
  .trust-bar .trust-logos { gap: 16px; }
}

/* ============================================
   Additional Classes for Bilingual/Corporate HTML
   ============================================ */

/* --- Text Accent Color --- */
.text-accent {
  color: var(--gold);
}

/* --- Nav Right Group --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

/* --- Language Selector (mobile responsive) --- */
.lang-selector-wrapper {
  position: relative;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 5px 12px 5px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.lang-dropdown {
  right: 0;
  left: auto;
}

.nav-links a.active {
  color: var(--gold) !important;
}

/* --- Trust Bar (Partner Logos Strip) --- */
.trust-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 28px 0;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

.trust-item img {
  height: 36px;
  width: auto;
}

.trust-partner-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.trust-partner-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
}

/* --- Empathy Cards --- */
.empathy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.empathy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 28px 28px 28px 24px;
  transition: all var(--transition-smooth);
}

.empathy-card:hover {
  border-left-color: var(--gold-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.empathy-quote {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
  font-style: italic;
}

.empathy-answer {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.empathy-closing {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

.empathy-closing em {
  color: var(--text-primary);
}

.empathy-closing strong {
  color: var(--gold);
}

/* --- Outline Button (alias for secondary) --- */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 14px 32px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.btn-outline.btn-sm {
  padding: 10px 22px;
  font-size: 0.82rem;
}

/* --- Generic Card (for new HTML) --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-smooth);
}

.card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Stat Badge (replacement for stat-highlight) --- */
.stat-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(123, 174, 232, 0.08);
  border: 1px solid rgba(123, 174, 232, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-accent);
}

/* --- Savings Tag --- */
.savings-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4ADE80;
}

/* --- Comparison Spain/USA Values (aliases) --- */
.spain-val {
  text-align: center;
  color: #4ADE80;
  font-weight: 600;
  font-size: 1rem;
}

.usa-val {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.25);
}

/* --- Visa Requirement Badge --- */
.visa-req {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}




/* --- VIP Overlay & Deductible Badge --- */
.vip-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.92), transparent);
}

.deductible-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}

/* --- Team Logo Text (for Fuster) --- */
.team-logo-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-accent);
  height: 40px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

/* --- Footer Logo --- */
.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* --- Final CTA Section --- */
.final-cta {
  background: linear-gradient(160deg, var(--bg-tertiary), var(--bg-primary));
  padding: 80px 0;
}

.final-cta-content .section-title {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Form Success --- */
.form-submit.success {
  background: linear-gradient(135deg, #4ADE80, #22C55E) !important;
  color: var(--bg-primary) !important;
}

.form-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* --- Responsive Additions --- */
@media (max-width: 1024px) {
  .empathy-grid { grid-template-columns: 1fr; }
  .trust-logos { gap: 24px; }
}

@media (max-width: 768px) {
  .nav-right { gap: 4px; }
  .trust-divider { display: none; }
  .trust-logos { flex-direction: column; gap: 16px; text-align: center; }
  .trust-item { flex-direction: column; gap: 2px; }
  .empathy-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
}


/* ============================================
   DASHBOARD SYSTEM — RE/MAX Inmomás
   Sections 1–19: SPA, Auth, Dashboard, 
   Cards, Tables, Pipeline, Modals, etc.
   ============================================ */

/* ------------------------------------------
   SECTION 1: Dashboard CSS Variables
   ------------------------------------------ */
:root {
  /* Role Colors */
  --admin-color: #8B5CF6;
  --admin-gradient: linear-gradient(135deg, #8B5CF6, #6D28D9);
  --broker-color: #0043ff;
  --broker-gradient: linear-gradient(135deg, #0043ff, #002dae);
  --realtor-color: #10B981;
  --realtor-gradient: linear-gradient(135deg, #10B981, #059669);
  --agent-color: #F59E0B;
  --agent-gradient: linear-gradient(135deg, #F59E0B, #D97706);

  /* Semantic Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  /* Sidebar */
  --sidebar-bg: #0f172a;
  --sidebar-width: 260px;
  --sidebar-text: #CBD5E1;
  --sidebar-text-active: #FFFFFF;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
}

/* ============================================
   Corporate Dashboard Design System
   RE/MAX Inmomás — Premium Dashboard UI
   ============================================ */
.dashboard-body {
  /* Page background - clean corporate slate */
  --bg-secondary: #f1f5f9;
  --bg-primary: #ffffff;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-light: #cbd5e1;
  
  /* Official Brand Colors */
  --blue: #003da5;
  --red: #e11b22;

  /* Corporate Role Colors & Gradients */
  --admin-color: #6366f1;
  --admin-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
  --broker-color: #003da5;
  --broker-gradient: linear-gradient(135deg, #003da5, #00227a);
  --realtor-color: #0f766e;
  --realtor-gradient: linear-gradient(135deg, #0f766e, #0d9488);
  --agent-color: #b45309;
  --agent-gradient: linear-gradient(135deg, #b45309, #d97706);

  /* Shadows - neutral corporate slate */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

  background: var(--bg-secondary);
}

/* ── Sidebar ── */
.dashboard-body .dashboard-sidebar {
  background: linear-gradient(180deg, #0c1629 0%, #0f172a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}
.dashboard-body .sidebar-logo {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 20px;
}
.dashboard-body .sidebar-logo img {
  filter: brightness(0) invert(1);
  height: 28px;
}
.dashboard-body .sidebar-logo span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  display: block;
  margin-top: 6px;
}
.dashboard-body .sidebar-nav__title {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  padding: 12px 16px 6px;
  margin-top: 8px;
}
.dashboard-body .sidebar-link {
  padding: 9px 16px;
  margin: 1px 8px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  border-left: none;
  transition: all 0.2s ease;
}
.dashboard-body .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}
.dashboard-body .sidebar-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
}
.dashboard-body .sidebar-link__icon {
  font-size: 1rem;
  width: 20px;
}
.dashboard-body .sidebar-user {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
}

/* ── Dashboard Header ── */
.dashboard-body .dashboard-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 28px 36px;
  position: relative;
}
.dashboard-body .dashboard-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #003da5 0%, #e11b22 50%, #003da5 100%);
  opacity: 0.8;
}
.dashboard-body .dashboard-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}
.dashboard-body .dashboard-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ── Dashboard Content Area ── */
.dashboard-body .dashboard-content {
  padding: 28px 32px 40px;
  max-width: 1600px;
}

/* ── Stat Cards — Premium Corporate ── */
.dashboard-body .stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  border-top: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard-body .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.dashboard-body .stat-card--blue::before   { background: linear-gradient(90deg, #003da5, #0055d4); }
.dashboard-body .stat-card--green::before  { background: linear-gradient(90deg, #059669, #10b981); }
.dashboard-body .stat-card--amber::before  { background: linear-gradient(90deg, #d97706, #f59e0b); }
.dashboard-body .stat-card--red::before    { background: linear-gradient(90deg, #dc2626, #ef4444); }
.dashboard-body .stat-card--purple::before { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }

.dashboard-body .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}
.dashboard-body .stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.2rem;
}
.dashboard-body .stat-card__icon--blue   { background: rgba(0, 61, 165, 0.08); color: #003da5; }
.dashboard-body .stat-card__icon--green  { background: rgba(5, 150, 105, 0.08); color: #059669; }
.dashboard-body .stat-card__icon--amber  { background: rgba(217, 119, 6, 0.08); color: #d97706; }
.dashboard-body .stat-card__icon--red    { background: rgba(220, 38, 38, 0.08); color: #dc2626; }
.dashboard-body .stat-card__icon--purple { background: rgba(124, 58, 237, 0.08); color: #7c3aed; }

.dashboard-body .stat-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.dashboard-body .stat-card__label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

/* ── Dashboard Sections ── */
.dashboard-body .dashboard-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.dashboard-body .dashboard-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.dashboard-body .dashboard-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

/* ── 2-Column Grid ── */
.dashboard-body .dashboard-grid-2col {
  gap: 20px;
}
.dashboard-body .dashboard-grid-2col .dashboard-section {
  margin-top: 0;
}

/* ── Data Tables — Corporate ── */
.dashboard-body .data-table-container {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dashboard-body .data-table thead {
  background: #f8fafc;
  backdrop-filter: none;
}
.dashboard-body .data-table th {
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 20px;
  border-bottom: 2px solid #e2e8f0;
  background: transparent;
}
.dashboard-body .data-table td {
  padding: 14px 20px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
}
.dashboard-body .data-table tbody tr:hover {
  background: #f8fafc;
}
.dashboard-body .data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Pipeline / Kanban Board — Corporate ── */
.dashboard-body .pipeline-board {
  gap: 16px;
  padding-bottom: 16px;
}
.dashboard-body .pipeline-column {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  max-height: calc(100vh - 240px);
}
.dashboard-body .pipeline-column__header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 16px;
  border-radius: 14px 14px 0 0;
}
.dashboard-body .pipeline-column__cards {
  padding: 12px;
}
.dashboard-body .pipeline-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  border-left: none;
  margin-bottom: 10px;
}
.dashboard-body .pipeline-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

/* ── Referral Link Section — Corporate ── */
.dashboard-body .referral-quick {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.dashboard-body .referral-quick h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

/* ── Filters ── */
.dashboard-body .dashboard-filters {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.dashboard-body .form-input,
.dashboard-body .form-select,
.dashboard-body .form-control {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}
.dashboard-body .form-input:focus,
.dashboard-body .form-select:focus,
.dashboard-body .form-control:focus {
  border-color: #003da5;
  box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
  outline: none;
}

/* ── Tips Grid ── */
.dashboard-body .tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.dashboard-body .tip-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s ease;
}
.dashboard-body .tip-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}
.dashboard-body .tip-card .tip-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
}
.dashboard-body .tip-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.dashboard-body .tip-card p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* ── Upload Zone ── */
.dashboard-body .upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  transition: all 0.2s ease;
  background: #fafbfc;
  cursor: pointer;
}
.dashboard-body .upload-zone:hover {
  border-color: #003da5;
  background: rgba(0, 61, 165, 0.02);
}

/* ── Badges ── */
.dashboard-body .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ── Buttons in Dashboard Context ── */
.dashboard-body .btn-primary {
  background: linear-gradient(135deg, #003da5, #0055d4);
  box-shadow: 0 2px 8px rgba(0, 61, 165, 0.25);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 24px;
}
.dashboard-body .btn-primary:hover {
  box-shadow: 0 4px 16px rgba(0, 61, 165, 0.35);
  transform: translateY(-2px);
}
.dashboard-body .btn-outline {
  border-radius: 10px;
  font-size: 0.85rem;
  padding: 10px 24px;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 600;
}
.dashboard-body .btn-outline:hover {
  border-color: #003da5;
  color: #003da5;
  background: rgba(0, 61, 165, 0.04);
}

/* ── Empty States ── */
.dashboard-body .card-list:empty::before,
.dashboard-body [id$="-recent"]:empty::before,
.dashboard-body [id$="-overview"]:empty::before {
  content: 'No data available';
  display: block;
  text-align: center;
  padding: 32px;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* ── Profile Page ── */
.dashboard-body .profile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.dashboard-body .profile-avatar-display {
  border: 3px solid #e2e8f0;
}
.dashboard-body .profile-info-grid {
  gap: 20px;
}
.dashboard-body .profile-label {
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.dashboard-body .profile-value {
  color: #0f172a;
  font-weight: 500;
}
.dashboard-body .profile-stats-section {
  margin-top: 24px;
}
.dashboard-body .profile-stats-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

/* ── Newsletter-specific overrides ── */
.dashboard-body .nl-compose-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.dashboard-body .nl-badge {
  background: rgba(0, 61, 165, 0.08);
  color: #003da5;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
}

/* ── Scrollbar styling ── */
.dashboard-body .pipeline-board::-webkit-scrollbar,
.dashboard-body .pipeline-column__cards::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.dashboard-body .pipeline-board::-webkit-scrollbar-thumb,
.dashboard-body .pipeline-column__cards::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.dashboard-body .pipeline-board::-webkit-scrollbar-track,
.dashboard-body .pipeline-column__cards::-webkit-scrollbar-track {
  background: transparent;
}

/* ── Sidebar Toggle Button ── */
.dashboard-body .sidebar-toggle {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.dashboard-body .sidebar-toggle span {
  background: #334155;
}

/* ── Responsive Stat Grid Utilities ── */
.stat-cards-grid.stat-cards-grid--5cols {
  grid-template-columns: repeat(5, 1fr);
}
.stat-cards-grid.stat-cards-grid--4cols {
  grid-template-columns: repeat(4, 1fr);
}
.stat-cards-grid.stat-cards-grid--3cols {
  grid-template-columns: repeat(3, 1fr);
}
.stat-cards-grid.stat-cards-grid--autofit {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 28px;
}

@media (max-width: 1400px) {
  .stat-cards-grid.stat-cards-grid--5cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .stat-cards-grid.stat-cards-grid--5cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-cards-grid.stat-cards-grid--4cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-cards-grid.stat-cards-grid--3cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stat-cards-grid.stat-cards-grid--5cols,
  .stat-cards-grid.stat-cards-grid--4cols,
  .stat-cards-grid.stat-cards-grid--3cols,
  .stat-cards-grid.stat-cards-grid--autofit {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dashboard-body .dashboard-content {
    padding: 16px;
  }
  .dashboard-body .dashboard-section {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .dashboard-body .referral-quick {
    padding: 18px 16px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .stat-cards-grid.stat-cards-grid--5cols,
  .stat-cards-grid.stat-cards-grid--4cols,
  .stat-cards-grid.stat-cards-grid--3cols,
  .stat-cards-grid.stat-cards-grid--autofit {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------
   SECTION 2: SPA View System
   ------------------------------------------ */
.app-view {
  display: none;
}

.app-view.active {
  display: block;
  animation: viewFadeIn 0.3s ease;
}

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

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  transition: padding-left var(--transition-smooth);
}

/* Desktop: content shifted right to make room for permanent sidebar */
@media (min-width: 992px) {
  .app-main.has-sidebar {
    padding-left: var(--sidebar-width);
  }
}

/* Mobile: content is never shifted — sidebar is overlay only */
@media (max-width: 991px) {
  .app-main {
    padding-left: 0 !important;
  }
}

/* ------------------------------------------
   SECTION 3: Auth Pages (Login / Register)
   ------------------------------------------ */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 100px 24px 40px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-blue);
}

.auth-card__logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card__logo img {
  height: 40px;
  width: auto;
}

.auth-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

.auth-card__subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-input-group {
  position: relative;
}

.auth-input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-input-group input,
.auth-input-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  outline: none;
}

.auth-input-group input:focus,
.auth-input-group select:focus {
  border-color: var(--blue);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(0, 67, 255, 0.1);
}

.auth-input-group input.error,
.auth-input-group select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.auth-input-group .input-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}

.auth-error {
  font-size: 0.8125rem;
  color: var(--danger);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-error::before {
  content: '⚠';
  font-size: 0.75rem;
}

/* Role Selector (Radio Cards) */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-card {
  position: relative;
  cursor: pointer;
}

.role-card input[type="radio"],
.role-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.role-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: center;
}

.role-card__content:hover {
  background: var(--bg-primary);
  border-color: var(--border-light);
}

.role-card input[type="radio"]:checked + .role-card__content,
.role-card input[type="checkbox"]:checked + .role-card__content {
  border-color: var(--blue);
  background: rgba(0, 67, 255, 0.04);
  box-shadow: 0 0 0 4px rgba(0, 67, 255, 0.08);
}

.role-card__icon {
  font-size: 1.75rem;
}

.role-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.role-card__desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Conditional broker-select (hidden by default) */
.broker-select-group {
  display: none;
}

/* ---- Referral Type Card Selection ---- */
.referral-type-card.selected .role-card__content {
  border-color: var(--blue);
  background: rgba(0, 67, 255, 0.04);
  box-shadow: 0 0 0 4px rgba(0, 67, 255, 0.08);
}

#referral-form textarea:focus,
#referral-form input:focus,
#referral-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 67, 255, 0.1);
  outline: none;
}

.broker-select-group.visible {
  display: block;
  animation: viewFadeIn 0.25s ease;
}

/* Auth button */
.auth-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: #FFFFFF;
  background: var(--gradient-blue);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-btn .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}

.auth-btn.loading .btn-text { visibility: hidden; }
.auth-btn.loading .btn-spinner { display: inline-block; }

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

.auth-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-link a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.auth-link a:hover {
  color: #002dae;
  text-decoration: underline;
}

/* Success animation */
.auth-success {
  text-align: center;
  padding: 32px 0;
}

.auth-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.auth-success__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-success__message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pending Approval Page */
.pending-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 24px;
}

.pending-card {
  text-align: center;
  max-width: 440px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 56px 40px;
}

.pending-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.25rem;
  animation: pendingPulse 2s ease-in-out infinite;
}

@keyframes pendingPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.pending-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pending-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ------------------------------------------
   SECTION 4: Dashboard Layout
   ------------------------------------------ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--transition-smooth);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  /* Always hidden by default — JS adds .active to show */
  transform: translateX(-100%);
}

/* Desktop: sidebar is permanently visible when .active */
@media (min-width: 992px) {
  .dashboard-sidebar.active {
    transform: translateX(0);
  }
}

/* Mobile: sidebar slides in as overlay; .active = open */
@media (max-width: 991px) {
  .dashboard-sidebar.active {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,0.4);
  }
}

.sidebar-logo {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.sidebar-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.sidebar-logo span {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sidebar-text-active);
  letter-spacing: -0.01em;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav__section {
  margin-bottom: 16px;
}

.sidebar-nav__title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  padding: 8px 12px;
  margin-bottom: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text-active);
  font-weight: 600;
}

/* Role-specific active accent colors */
.sidebar--admin .sidebar-link.active {
  border-left-color: var(--admin-color);
  background: rgba(139, 92, 246, 0.1);
}

.sidebar--broker .sidebar-link.active {
  border-left-color: var(--broker-color);
  background: rgba(0, 67, 255, 0.1);
}

.sidebar--realtor .sidebar-link.active {
  border-left-color: var(--realtor-color);
  background: rgba(16, 185, 129, 0.1);
}

.sidebar--agent_inmomas .sidebar-link.active {
  border-left-color: var(--agent-color);
  background: rgba(245, 158, 11, 0.1);
}

.sidebar-link__icon {
  font-size: 1.125rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-link__badge {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--danger);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

/* Sidebar User Info */
.sidebar-user {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-user__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sidebar-text-active);
  flex-shrink: 0;
}

.sidebar-user__info {
  flex: 1;
  min-width: 0;
}

.sidebar-user__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sidebar-text-active);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user__role {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 2px;
}

.sidebar-user__role--admin {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
}

.sidebar-user__role--broker {
  background: rgba(0, 67, 255, 0.15);
  color: #60A5FA;
}

.sidebar-user__role--realtor {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.sidebar-user__role--agent_inmomas {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
}

/* Dashboard Main Area */
.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  background: var(--bg-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.dashboard-header__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-header__welcome {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dashboard-header__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.dashboard-header__breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.dashboard-header__breadcrumbs a:hover {
  color: var(--blue);
}

.dashboard-header__breadcrumbs .separator {
  font-size: 0.75rem;
}

.dashboard-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.header-action-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.header-action-btn .notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.dashboard-content {
  padding: 32px;
  flex: 1;
}

.dashboard-filters {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dashboard-filters .form-group {
  margin-bottom: 0 !important;
  flex: 1;
  min-width: 200px;
}

.dashboard-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* ------------------------------------------
   SECTION 5: Stat Cards
   ------------------------------------------ */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  animation: statFadeUp 0.4s ease both;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }

@keyframes statFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.stat-card--blue   { border-top: 3px solid var(--blue); }
.stat-card--green  { border-top: 3px solid var(--success); }
.stat-card--amber  { border-top: 3px solid var(--warning); }
.stat-card--red    { border-top: 3px solid var(--danger); }
.stat-card--purple { border-top: 3px solid var(--admin-color); }

.stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-card__icon--blue   { background: rgba(0, 67, 255, 0.08); color: var(--blue); }
.stat-card__icon--green  { background: rgba(16, 185, 129, 0.08); color: var(--success); }
.stat-card__icon--amber  { background: rgba(245, 158, 11, 0.08); color: var(--warning); }
.stat-card__icon--red    { background: rgba(239, 68, 68, 0.08); color: var(--danger); }
.stat-card__icon--purple { background: rgba(139, 92, 246, 0.08); color: var(--admin-color); }

.stat-card__body {
  flex: 1;
  min-width: 0;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.stat-card__trend--up {
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
}

.stat-card__trend--down {
  color: #DC2626;
  background: rgba(239, 68, 68, 0.1);
}

/* ------------------------------------------
   SECTION 6: Data Tables
   ------------------------------------------ */
.data-table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(8px);
}

.data-table th {
  background: transparent;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.data-table th:first-child {
  border-top-left-radius: var(--radius-sm);
}

.data-table th:last-child {
  border-top-right-radius: var(--radius-sm);
}

.data-table td {
  padding: 16px 20px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: scale(1.001);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.table-action-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.table-action-btn--danger:hover {
  background: rgba(239, 68, 68, 0.06);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

/* ------------------------------------------
   SECTION 7: Status Badges
   ------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.badge--pending {
  background: rgba(245, 158, 11, 0.1);
  color: #B45309;
}

.badge--approved,
.badge--active {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.badge--rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #B91C1C;
}

.badge--completed {
  background: rgba(59, 130, 246, 0.1);
  color: #1D4ED8;
}

.badge--admin {
  background: rgba(139, 92, 246, 0.1);
  color: #6D28D9;
}

.badge--broker {
  background: rgba(0, 67, 255, 0.1);
  color: #002dae;
}

.badge--realtor {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

/* ------------------------------------------
   SECTION 8: Pipeline / Kanban Board
   ------------------------------------------ */
.pipeline-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
}

.pipeline-board::-webkit-scrollbar {
  height: 6px;
}

.pipeline-board::-webkit-scrollbar-track {
  background: transparent;
}

.pipeline-board::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.pipeline-column {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  max-height: calc(100vh - 220px);
}

.pipeline-column__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: inherit;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-top: 3px solid var(--border-subtle);
}

/* Pipeline stage colors */
.pipeline-column--registered  .pipeline-column__header { border-top-color: #64748B; }
.pipeline-column--webinar     .pipeline-column__header { border-top-color: var(--blue); }
.pipeline-column--vip_trip    .pipeline-column__header { border-top-color: var(--admin-color); }
.pipeline-column--property_search .pipeline-column__header { border-top-color: var(--warning); }
.pipeline-column--offer       .pipeline-column__header { border-top-color: #F97316; }
.pipeline-column--closing     .pipeline-column__header { border-top-color: #EC4899; }
.pipeline-column--completed   .pipeline-column__header { border-top-color: var(--success); }

.pipeline-column__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pipeline-column__count {
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.pipeline-column__cards {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px;
}

.pipeline-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border-left: 3px solid transparent;
}

.pipeline-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Stage left-border accent */
.pipeline-column--registered  .pipeline-card { border-left-color: #94A3B8; }
.pipeline-column--webinar     .pipeline-card { border-left-color: var(--blue); }
.pipeline-column--vip_trip    .pipeline-card { border-left-color: var(--admin-color); }
.pipeline-column--property_search .pipeline-card { border-left-color: var(--warning); }
.pipeline-column--offer       .pipeline-card { border-left-color: #F97316; }
.pipeline-column--closing     .pipeline-card { border-left-color: #EC4899; }
.pipeline-column--completed   .pipeline-card { border-left-color: var(--success); }

.pipeline-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pipeline-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pipeline-card__badge {
  margin-top: 10px;
}

/* ------------------------------------------
   SECTION 9: Document Upload & Cards
   ------------------------------------------ */
.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: box-shadow var(--transition-fast);
}

.doc-card:hover {
  box-shadow: var(--shadow-sm);
}

.doc-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.doc-card__icon--pdf  { background: rgba(239, 68, 68, 0.08); color: #DC2626; }
.doc-card__icon--doc  { background: rgba(59, 130, 246, 0.08); color: #2563EB; }
.doc-card__icon--img  { background: rgba(16, 185, 129, 0.08); color: #059669; }
.doc-card__icon--xls  { background: rgba(16, 185, 129, 0.08); color: #047857; }
.doc-card__icon--default { background: rgba(100, 116, 139, 0.08); color: #475569; }

.doc-card__info {
  flex: 1;
  min-width: 0;
}

.doc-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.doc-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--blue);
  background: rgba(0, 67, 255, 0.03);
}

.upload-zone.dragover {
  border-style: solid;
  background: rgba(0, 67, 255, 0.06);
}

.upload-zone__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.upload-zone__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.upload-zone__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.upload-zone input[type="file"] {
  display: none;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.upload-preview__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.upload-preview__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  transition: color var(--transition-fast);
}

.upload-preview__remove:hover {
  color: var(--danger);
}

/* ------------------------------------------
   SECTION 10: Commission / Finance Table
   ------------------------------------------ */
.finance-table .data-table td.currency {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.8125rem;
}

.finance-table .data-table tr.total-row {
  background: var(--bg-secondary);
  font-weight: 700;
}

.finance-table .data-table tr.total-row td {
  border-top: 2px solid var(--border-light);
  font-size: 0.9375rem;
}

.finance-table .data-table .projected {
  font-style: italic;
  color: var(--text-muted);
}

/* ------------------------------------------
   SECTION 11: Referral Link Section
   ------------------------------------------ */
.referral-section {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.referral-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.referral-link-display {
  display: flex;
  gap: 0;
}

.referral-link-display input {
  flex: 1;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  user-select: all;
}

.referral-link-display button {
  padding: 12px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--gradient-blue);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.referral-link-display button:hover {
  opacity: 0.9;
}

.referral-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.referral-stat {
  text-align: center;
}

.referral-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.referral-stat__label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.referral-qr {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 20px;
}

.referral-qr__placeholder {
  width: 120px;
  height: 120px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ------------------------------------------
   SECTION 12: Agreement / Signature Section
   ------------------------------------------ */
.agreement-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.agreement-text {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.agreement-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text-primary);
}

.agreement-text p {
  margin-bottom: 12px;
}

.agreement-text ol,
.agreement-text ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.signature-pad {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.signature-pad canvas {
  display: block;
  width: 100%;
  height: 160px;
  cursor: crosshair;
}

.signature-pad__clear {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.signature-pad__clear:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.agreement-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.agreement-actions label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.agreement-actions input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

/* ------------------------------------------
   SECTION 13: Modal System
   ------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal__close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal__body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.modal-btn {
  padding: 10px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-btn--primary {
  background: var(--gradient-blue);
  color: #FFFFFF;
}

.modal-btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.modal-btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.modal-btn--secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-btn--danger {
  background: var(--danger);
  color: #FFFFFF;
}

.modal-btn--danger:hover {
  opacity: 0.9;
}

/* ------------------------------------------
   SECTION 14: Toast Notifications
   ------------------------------------------ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--border-subtle);
  min-width: 320px;
  max-width: 440px;
  pointer-events: all;
  animation: toastSlideIn 0.3s ease both;
  position: relative;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.dismiss {
  animation: toastSlideOut 0.25s ease both;
}

@keyframes toastSlideOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

.toast__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast__message {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.toast__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.toast__close:hover {
  color: var(--text-primary);
}

.toast--success {
  border-left-color: var(--success);
}

.toast--success .toast__icon {
  color: var(--success);
}

.toast--error {
  border-left-color: var(--danger);
}

.toast--error .toast__icon {
  color: var(--danger);
}

.toast--warning {
  border-left-color: var(--warning);
}

.toast--warning .toast__icon {
  color: var(--warning);
}

.toast--info {
  border-left-color: var(--info);
}

.toast--info .toast__icon {
  color: var(--info);
}

/* Auto-dismiss progress bar */
.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 0 var(--radius-sm);
  animation: toastProgress 4s linear both;
}

.toast--success .toast__progress { background: var(--success); }
.toast--error   .toast__progress { background: var(--danger); }
.toast--warning .toast__progress { background: var(--warning); }
.toast--info    .toast__progress { background: var(--info); }

@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ------------------------------------------
   SECTION 15: Loading & Empty States
   ------------------------------------------ */

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, #e8e5dd 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-sm);
}

.skeleton-stat {
  height: 100px;
  border-radius: var(--radius-sm);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

.empty-state__icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state__message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.empty-state__action {
  padding: 10px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--gradient-blue);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.empty-state__action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner--sm { width: 20px; height: 20px; border-width: 2px; }
.spinner--lg { width: 48px; height: 48px; border-width: 4px; }

/* Page Loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.page-loader__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ------------------------------------------
   SECTION 16: Sidebar Mobile Toggle
   ------------------------------------------ */
/* Base sidebar toggle: shown only on mobile via @media below */
.sidebar-toggle {
  display: none; /* overridden to flex by @media (max-width: 991px) */
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001; /* above sidebar z-index: 1000 so it stays clickable */
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--sidebar-bg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  transition: background var(--transition-fast);
}

.sidebar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.sidebar-toggle:hover {
  background: rgba(255,255,255,0.1);
}

/* Base sidebar backdrop: hidden; shown on mobile via @media + .active */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* On desktop: hide mobile-only controls */
@media (min-width: 992px) {
  .sidebar-toggle {
    display: none !important;
  }
  .sidebar-backdrop,
  .sidebar-backdrop.active {
    display: none !important;
    pointer-events: none !important;
  }
}

/* ------------------------------------------
   SECTION 17: Form Enhancements
   ------------------------------------------ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 67, 255, 0.08);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row > * {
  flex: 1;
}

/* ------------------------------------------
   SECTION 18: User Detail / Profile Cards
   ------------------------------------------ */
.user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: box-shadow var(--transition-fast);
}

.user-card:hover {
  box-shadow: var(--shadow-sm);
}

.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--gradient-blue);
  flex-shrink: 0;
  overflow: hidden;
}

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

.avatar--sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar--md { width: 40px; height: 40px; font-size: 0.875rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.125rem; }

.avatar--admin { background: var(--admin-gradient); }
.avatar--broker { background: var(--broker-gradient); }
.avatar--realtor { background: var(--realtor-gradient); }

.user-info {
  flex: 1;
  min-width: 0;
}

.user-info__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info__email {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ------------------------------------------
   SECTION 19: Dashboard Responsive Overrides
   ------------------------------------------ */

/* Large: <= 1200px */
@media (max-width: 1200px) {
  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-content {
    padding: 24px;
  }
}

/* Medium: <= 991px — Sidebar becomes overlay */
@media (max-width: 991px) {
  /* Hamburger always visible */
  .sidebar-toggle {
    display: flex !important;
  }

  /* Sidebar hidden behind left edge; .active slides it in */
  .dashboard-sidebar {
    z-index: 1000;
  }

  /* Backdrop visible when sidebar open */
  .sidebar-backdrop {
    display: block;
  }

  /* No left margin on mobile — sidebar is overlay */
  .dashboard-main {
    margin-left: 0;
  }

  /* Give content top padding for the hamburger button */
  .dashboard-content {
    padding-top: 72px;
  }

  /* Shift header right to avoid hamburger overlap */
  .dashboard-header {
    padding: 16px 20px;
    padding-left: 68px;
  }

  .referral-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Override any inline grid-template-columns on stat grids */
  .stat-cards-grid[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .dashboard-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .dashboard-filters .form-group {
    width: 100%;
    min-width: 0;
  }
  .dashboard-grid-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Small: <= 768px */
@media (max-width: 768px) {
  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }

  .stat-card__value {
    font-size: 1.5rem;
  }

  .data-table-container {
    border-radius: var(--radius-sm);
    margin: 0 -12px;
  }

  .pipeline-board {
    flex-direction: column;
  }

  .pipeline-column {
    min-width: 100%;
    max-width: 100%;
    max-height: none;
  }

  .dashboard-content {
    padding: 16px;
  }

  .dashboard-header__welcome {
    font-size: 1rem;
  }

  .modal {
    max-width: 100%;
    border-radius: var(--radius-sm);
  }

  .modal__body {
    max-height: 50vh;
  }

  .toast-container {
    top: auto;
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .referral-link-display {
    flex-direction: column;
  }

  .referral-link-display input {
    border-right: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-bottom: none;
  }

  .referral-link-display button {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }

  .referral-qr {
    flex-direction: column;
    text-align: center;
  }

  .agreement-container {
    max-height: 300px;
  }
}

/* Extra Small: <= 480px */
@media (max-width: 480px) {
  /* Force single column even with inline styles */
  .stat-cards-grid,
  .stat-cards-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .role-selector {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-left: 60px;
  }

  .dashboard-header__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .user-card {
    flex-direction: column;
    text-align: center;
  }

  .user-card__actions {
    width: 100%;
    justify-content: center;
  }

  /* Referral link: stack vertically on very small screens */
  .referral-quick [style*="display: flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .referral-quick [style*="display: flex"] button {
    width: 100% !important;
    white-space: normal !important;
  }

  /* Dashboard grid: single column */
  .dashboard-grid-2col {
    grid-template-columns: 1fr !important;
  }
}

/* (sidebar-backdrop styles are defined in Section 16 above) */

.sidebar-logout-btn {
  background: none;
  border: none;
  color: var(--sidebar-text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

/* --- Alicante Carousel Styles --- */
.alicante-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel-container {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 300%;
}

.carousel-slide {
  position: relative;
  width: 100%;
  height: 500px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .carousel-slide {
    height: 350px;
  }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.9), rgba(10, 22, 40, 0.3) 60%, transparent);
  padding: 48px 32px 32px;
  color: white;
  text-align: left;
}

.carousel-caption h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold);
}

.carousel-caption p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 22, 40, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-prev:hover, .carousel-next:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dots .dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 6px;
}

/* ==========================================================================
   MY PROFILE SECTION STYLING
   ========================================================================== */

/* Toggle views: View Mode vs Edit Mode */
.profile-edit-mode {
  display: none !important;
}
.editing .profile-edit-mode {
  display: block !important;
}
.editing .profile-view-mode {
  display: none !important;
}

/* Avatar interactive edit */
.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}
.avatar-wrapper:hover {
  transform: scale(1.03);
}
.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 50%;
  gap: 4px;
}
.avatar-wrapper:hover .avatar-overlay {
  opacity: 1;
}

/* Profile Layout container classes */
.profile-max-width {
  max-width: 800px;
  margin: 0 auto;
}

.profile-card-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 24px;
}

.profile-layout-flex {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-avatar-container {
  flex-shrink: 0;
  text-align: center;
  margin: 0 auto 16px auto;
}

.profile-avatar-display {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  background-size: cover;
  background-position: center;
}

.profile-badge-wrapper {
  margin-top: 8px;
}

.profile-container-main {
  flex: 1;
  min-width: 280px;
}

.profile-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-name-text {
  font-size: 1.8rem;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-weight: 700;
}

.profile-email-text {
  color: var(--text-secondary);
  font-size: 1rem;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.profile-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.profile-value {
  font-weight: 500;
  font-size: 1rem;
  margin-top: 4px;
}

.profile-status-wrapper {
  margin-top: 4px;
}

.profile-edit-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 700;
}

.profile-actions-bar {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* Responsive Overrides for Profile */
@media (max-width: 768px) {
  .profile-card-section {
    padding: 24px;
  }
  .profile-layout-flex {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .profile-container-main {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 576px) {
  .profile-card-section {
    padding: 20px 16px;
  }
  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .profile-name-text {
    font-size: 1.5rem;
  }
  .profile-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .profile-header-bar button {
    width: 100%;
  }
}

/* Profile Form styling */
.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}
@media (max-width: 576px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
.profile-form-group {
  margin-bottom: 15px;
}
.profile-form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.profile-form-group input, .profile-form-group select {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-form-group input:focus, .profile-form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 67, 255, 0.1);
  outline: none;
}

/* Profile Statistics section */
.profile-stats-section {
  margin-top: 40px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 15px;
}
@media (max-width: 576px) {
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }
}
.profile-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.profile-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
}
.profile-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.profile-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.profile-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* --- Property Detail Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  font-size: 20px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: rotate(90deg);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
}

@media (max-width: 768px) {
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
}

.modal-image-col {
  position: relative;
  background: #f1f5f9;
  min-height: 360px;
}

.modal-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .modal-image-col {
    min-height: 240px;
    height: 240px;
  }
}

.modal-info-col {
  padding: 40px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .modal-info-col {
    padding: 24px;
    max-height: none;
    overflow-y: visible;
  }
}

.modal-info-col .property-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #fff;
}

.modal-info-col .property-tag.investment { background: var(--red); }
.modal-info-col .property-tag.lifestyle { background: var(--blue); }
.modal-info-col .property-tag.luxury { background: #b59535; }

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-location {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  margin-bottom: 24px;
}

.modal-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-yield {
  font-size: 0.9rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.modal-features-row {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.modal-features-row span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.modal-description {
  margin-bottom: 28px;
}

.modal-description h4,
.modal-specs h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.modal-description p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-specs {
  margin-bottom: 32px;
}

.modal-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.modal-specs-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-specs-list li::before {
  content: '✓';
  color: var(--blue);
  font-weight: bold;
  margin-right: 4px;
}

.modal-actions {
  margin-top: auto;
}

.modal-actions .btn {
  width: 100%;
}

/* Modal Overrides for Property Showcase */
.modal.modal--property {
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.modal.modal--property .modal__header {
  display: none;
}

.modal.modal--property .modal__body {
  padding: 0;
}





/* ============================================
   MOBILE WEB-APP OPTIMIZATION — RE/MAX Inmomás
   Full mobile-first experience:
   - Hero full-cover image with overlay
   - Slide-in drawer navigation
   - Body scroll lock when nav open
   - Centered sections, correct padding
   - No text overlaps
   ============================================ */

/* ===========================================
   1. HERO — Full-cover image + text overlay
   MOBILE ONLY: desktop keeps original design
   =========================================== */

@media (max-width: 768px) {

  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
  }

  /* Dark gradient overlay so text is readable on mobile */
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      160deg,
      rgba(0, 10, 40, 0.70) 0%,
      rgba(0, 20, 60, 0.50) 50%,
      rgba(0, 10, 30, 0.35) 100%
    );
    pointer-events: none;
  }

  /* All hero content above the image+overlay */
  .hero .container {
    position: relative;
    z-index: 2;
  }

  /* Hero text: white over dark overlay — scoped to .hero only */
  .hero .hero-title {
    color: #ffffff !important;
  }

  .hero .hero-badge {
    color: rgba(255,255,255,0.9) !important;
    border-color: rgba(255,255,255,0.25) !important;
    background: rgba(255,255,255,0.08) !important;
  }

  .hero .hero-subtitle {
    color: rgba(255,255,255,0.82) !important;
  }

  .hero .hero-stat-value {
    color: #ffffff !important;
  }

  .hero .hero-stat-label {
    color: rgba(255,255,255,0.70) !important;
  }

  .hero .hero-stat::before {
    background: rgba(255,255,255,0.5) !important;
  }

  /* Outline button in hero: white border on dark bg */
  .hero .hero-ctas .btn-outline {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.45) !important;
    background: rgba(255,255,255,0.08) !important;
  }

  .hero .hero-ctas .btn-outline:hover {
    background: rgba(255,255,255,0.18) !important;
    border-color: rgba(255,255,255,0.7) !important;
  }

}


/* ===========================================
   2. BODY SCROLL LOCK when nav is open
   =========================================== */
body.nav-open {
  overflow: hidden;
}


/* ===========================================
   3. MOBILE DRAWER OVERLAY (backdrop)
   =========================================== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 40, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .mobile-nav-overlay {
    display: block;
  }
}


/* ===========================================
   4. HIDE OLD HAMBURGER + NAV-LINKS ON MOBILE
   (replaced by bottom nav bar)
   =========================================== */
@media (max-width: 768px) {
  /* Hide hamburger button — not needed with bottom nav */
  .mobile-menu-btn { display: none !important; }
  .sidebar-toggle  { display: none !important; }

  /* Hide the top nav links completely on mobile */
  #public-nav.nav-links { display: none !important; }

  /* Hide overlay — no longer needed */
  .mobile-nav-overlay { display: none !important; }

  /* Navbar on mobile: logo + language selector only */
  .navbar {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06) !important;
    padding: 10px 0 !important;
  }

  /* Add bottom padding to main content so it clears the bottom nav */
  .app-main,
  main,
  body > main {
    padding-bottom: 70px !important;
  }
}


/* ===========================================
   5. MOBILE BOTTOM NAVIGATION BAR
   =========================================== */

/* Hidden on desktop */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    /* iOS safe area */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    align-items: stretch;
  }

  /* Each tab item */
  .bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    border: none;
    background: none;
    min-width: 0;
  }

  .bnav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    flex-shrink: 0;
  }

  /* Active / current tab */
  .bnav-item.active {
    color: #0043ff;
  }

  .bnav-item.active svg {
    stroke: #0043ff;
  }

  /* Hover / tap feedback */
  .bnav-item:active {
    color: #0043ff;
    opacity: 0.75;
  }

  /* Guide tab: same as other inactive tabs — only red on tap */
  .bnav-item.bnav-center {
    color: #9ca3af;
  }

  .bnav-item.bnav-center svg {
    stroke: currentColor;
  }

  .bnav-item.bnav-center:active {
    color: #dc2626;
  }


  /* Only show the correct language label */
  .bnav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
  }
}


/* ===========================================
   6. HERO — Mobile layout
   =========================================== */
@media (max-width: 768px) {

  .hero {
    min-height: 100dvh;
    min-height: 100svh;
    padding-top: 68px; /* navbar height */
    align-items: center;
    display: flex;
  }

  .hero .container {
    padding-top: 28px;
    padding-bottom: 52px;
    width: 100%;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-badge {
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    font-size: 0.68rem !important;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding: 6px 14px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.6rem) !important;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.98rem !important;
    max-width: 100%;
    line-height: 1.75;
    margin-bottom: 32px;
  }

  /* CTA buttons: stacked, full width */
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    font-size: 0.92rem;
    padding: 14px 24px;
  }

  /* Stats: grid 2×2 on mobile — ONLY inside hero */
  .hero .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .hero .hero-stat {
    text-align: center;
    padding-left: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 14px 12px;
  }

  .hero .hero-stat::before {
    display: none !important;
  }

  .hero .hero-stat-value {
    font-size: 1.5rem;
  }

  .hero .hero-stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  /* Stats outside .hero (e.g. Realtors section): normal dark display */
  section:not(.hero) .hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 28px;
  }

  section:not(.hero) .hero-stat {
    text-align: center;
    flex: 1 1 120px;
    padding: 12px 8px;
  }

  section:not(.hero) .hero-stat-value {
    font-size: 1.6rem;
    color: var(--text-primary);
  }

  section:not(.hero) .hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
  }
}


/* ===========================================
   7. CONTAINER — Consistent mobile padding
   =========================================== */
@media (max-width: 768px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  :root {
    --section-padding: 60px 0;
    --container-padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  :root {
    --section-padding: 48px 0;
    --container-padding: 0 16px;
  }
}


/* ===========================================
   8. TRUST BAR — Partner logos centered
   =========================================== */
@media (max-width: 768px) {

  .trust-bar {
    padding: 20px 0;
  }

  .trust-logos {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px 24px !important;
  }

  .trust-item {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .trust-item img {
    height: 26px !important;
    object-fit: contain;
  }

  .trust-divider {
    display: none !important;
  }

  .trust-partner-name,
  .trust-partner-role {
    text-align: center;
    font-size: 0.78rem;
  }
}


/* ===========================================
   9. QUICK INTRO SECTION
   =========================================== */
@media (max-width: 768px) {

  .section .container.text-center [style*="display: flex"] {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
  }

  .section .container.text-center .btn {
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
    font-size: 0.82rem;
    padding: 12px 16px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section .container.text-center .btn {
    flex: 1 1 100%;
  }
}


/* ===========================================
   10. TEAM GRID — Single column, centered
   =========================================== */
@media (max-width: 768px) {

  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .team-card {
    text-align: center;
    padding: 28px 24px;
  }

  .team-card .team-logo {
    margin-left: auto;
    margin-right: auto;
    display: block;
    height: 32px;
  }

  .team-card h3 {
    font-size: 1.1rem;
  }

  .team-card .team-stats {
    justify-content: center;
  }

  .team-card .team-services {
    align-items: center;
  }
}


/* ===========================================
   11. SECTION HEADERS — Centered mobile
   =========================================== */
@media (max-width: 768px) {

  .section-label {
    justify-content: center !important;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.25;
  }

  .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
  }

  .text-center .section-label {
    justify-content: center !important;
  }
}


/* ===========================================
   12. REASON / WHY-SPAIN GRID
   =========================================== */
@media (max-width: 768px) {

  .reasons-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .reason-card {
    padding: 22px 20px;
  }

  .reason-card h3 {
    font-size: 1rem;
  }
}


/* ===========================================
   13. EMPATHY / FEAR GRID
   =========================================== */
@media (max-width: 768px) {

  .empathy-grid,
  .fear-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .empathy-card,
  .fear-card {
    padding: 22px 20px 22px 18px;
  }
}


/* ===========================================
   14. COMPARISON TABLE
   =========================================== */
@media (max-width: 768px) {

  .comparison-table {
    max-width: 100%;
  }

  .comparison-row {
    grid-template-columns: 1.5fr 0.75fr 0.75fr;
    gap: 4px;
    padding: 13px 0;
  }

  .comparison-row .label {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .comparison-row .spain-val,
  .comparison-row .spain-price {
    font-size: 0.84rem;
  }

  .comparison-row .usa-val,
  .comparison-row .usa-price {
    font-size: 0.78rem;
  }

  .comparison-row.header {
    font-size: 0.68rem;
    letter-spacing: 0.3px;
  }

  .savings-badge,
  .savings-tag {
    display: flex;
    justify-content: center;
    margin: 24px auto 0;
    font-size: 0.88rem;
  }
}


/* ===========================================
   15. PROPERTIES CAROUSEL
   =========================================== */
@media (max-width: 768px) {

  .properties-carousel {
    padding: 0 4px;
  }

  .properties-prev,
  .properties-next {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .properties-prev { left: -4px; }
  .properties-next { right: -4px; }
}


/* ===========================================
   16. VIP / WEBINAR CONTENT
   =========================================== */
@media (max-width: 768px) {

  .vip-content,
  .webinar-content {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}


/* ===========================================
   17. FOOTER — Single column, centered
   =========================================== */
@media (max-width: 768px) {

  .footer {
    padding: 48px 0 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
    text-align: center;
  }

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

  .footer-logo {
    margin: 0 auto 12px;
  }

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

  .footer-links a {
    font-size: 0.85rem;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding-top: 20px;
  }

  .footer-bottom p {
    font-size: 0.76rem;
  }
}


/* ===========================================
   18. ABOUT SPAIN PAGE — section padding
   =========================================== */
@media (max-width: 768px) {

  /* Compensate for the fixed navbar */
  #view-about-spain .why-spain,
  #view-about-spain section:first-child {
    padding-top: 88px;
  }

  /* PDF CTA Banner */
  #view-about-spain .card[style*="display: flex"] {
    flex-direction: column !important;
    text-align: center;
  }

  #view-about-spain .card[style*="display: flex"] a {
    width: 100%;
    justify-content: center !important;
  }
}


/* ===========================================
   19. ALL VIEWS: ensure nav-offset padding
   =========================================== */
@media (max-width: 768px) {

  /* Any section with padding-top: 120px should reduce on mobile */
  [style*="padding-top: 120px"] {
    padding-top: 88px !important;
  }

  /* Inline-flex buttons: allow wrap */
  .btn {
    white-space: normal;
    text-align: center;
  }

  /* Prevent horizontal overflow site-wide */
  body {
    overflow-x: hidden;
  }
}


/* ===========================================
   20. MISC small-screen polish
   =========================================== */
@media (max-width: 480px) {

  .hero-title {
    font-size: 1.8rem !important;
  }

  .hero-stat-value {
    font-size: 1.35rem;
  }

  .nav-logo-img {
    height: 30px;
  }

  .card,
  .glass-card,
  .reason-card,
  .fear-card,
  .empathy-card {
    padding: 18px 16px;
  }

  .team-card {
    padding: 22px 16px;
  }

  .section-title {
    font-size: 1.45rem;
  }

  /* Footer office addresses: smaller */
  .footer-links a {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* Comparison: slightly smaller */
  .comparison-row .label {
    font-size: 0.72rem;
  }

  /* Properties track: full card on mobile */
  .properties-track .property-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* ===========================================
   DEVELOPMENT ENVIRONMENT BADGE
   =========================================== */
.dev-environment-badge {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid #f97316;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px 6px 10px;
  border-radius: 30px;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  pointer-events: none;
  user-select: none;
  animation: devBadgePulse 3s infinite ease-in-out;
}

.dev-environment-badge .dev-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #ff9800, #f97316);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.7);
  flex-shrink: 0;
}

.dev-environment-badge .dev-badge-text {
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes devBadgePulse {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
    border-color: #f97316;
  }
  50% {
    box-shadow: 0 4px 24px rgba(249, 115, 22, 0.6), 0 2px 10px rgba(0, 0, 0, 0.6);
    border-color: #ff9800;
  }
}

@media (max-width: 768px) {
  .dev-environment-badge {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    padding: 5px 12px 5px 8px;
  }
  .dev-environment-badge .dev-badge-icon {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
  .dev-environment-badge .dev-badge-text {
    font-size: 10px;
  }
}


/* ============================================
   WINDOWS / CROSS-PLATFORM OPTIMISATIONS
   Fixes for Chrome, Edge & Firefox on Windows
   ============================================ */

/* -- 1. Backdrop-filter fallback for Firefox on Windows --
   Firefox does not support backdrop-filter. Give affected
   elements an opaque background so they stay readable.     */
@supports not (backdrop-filter: blur(1px)) {
  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
  }

  .lang-dropdown {
    background: rgba(255, 255, 255, 0.99) !important;
  }
}

/* -- 2. Text-gradient safe fallback --
   On Firefox/Windows -webkit-text-fill-color can silently
   fail, leaving invisible text. Fallback ensures solid color. */
.text-gradient-red {
  color: var(--red);
}
.text-gradient-blue {
  color: var(--blue);
}
/* Re-apply gradient only where webkit supports it */
@supports (-webkit-text-fill-color: transparent) {
  .text-gradient-red {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .text-gradient-blue {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

/* -- 3. Letter-spacing fine-tune for Windows ClearType --
   macOS renders tight negative tracking cleanly; Windows
   can look cramped. Ease letter-spacing for large headings. */
.hero-title {
  letter-spacing: -0.4px;
}
.section-title {
  letter-spacing: -0.1px;
}

/* -- 4. Shadow intensity boost for Windows displays --
   Large shadows look washed out on some Windows monitors;
   slightly increase their opacity via override.            */
:root {
  --shadow-sm: 0 2px 8px rgba(0, 67, 255, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 67, 255, 0.10), 0 2px 8px rgba(0, 67, 255, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 67, 255, 0.14), 0 8px 16px rgba(0, 67, 255, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 67, 255, 0.18), 0 12px 24px rgba(0, 67, 255, 0.10);
}

/* -- 5. Image rendering on Windows high-DPI screens --   */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

/* -- 6. Button & input rendering uniformity --
   Prevent Windows from adding system styles on buttons/inputs */
button,
input,
select,
textarea {
  font-family: 'Outfit', sans-serif;
  -webkit-appearance: none;
  appearance: none;
}

/* -- 7. Focus visible outline for Windows keyboard navigation -- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -- Checkbox Styles -- */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.5;
  font-size: 0.88rem;
  color: var(--text-primary, #1a1a2e);
  margin-top: 15px;
}

.checkbox-label input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--primary, #0043FF);
  border-radius: 3px;
}

/* Newsletter consent checkbox — visually distinct from the required terms checkbox */
.newsletter-consent-group {
  margin-top: 10px;
}

.checkbox-label--newsletter {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 67, 255, 0.04) 0%, rgba(212, 168, 70, 0.06) 100%);
  border: 1.5px solid rgba(0, 67, 255, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.checkbox-label--newsletter:hover {
  border-color: rgba(0, 67, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 67, 255, 0.07) 0%, rgba(212, 168, 70, 0.09) 100%);
}

.checkbox-label--newsletter input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  margin-top: 3px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--primary, #0043FF);
}

.checkbox-label--newsletter span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkbox-label--newsletter strong {
  font-size: 0.92rem;
  color: var(--text-primary, #1a1a2e);
}

.checkbox-label--newsletter small {
  font-size: 0.78rem;
  color: var(--text-muted, #71717a);
  line-height: 1.5;
}

.checkbox-label--webinar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #003f99, #cc0000) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 63, 153, 0.25) !important;
}

.checkbox-label--webinar:hover {
  box-shadow: 0 6px 20px rgba(0, 63, 153, 0.45) !important;
  transform: none !important;
}

.checkbox-label--webinar input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  margin-top: 3px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: #fff !important;
}

/* ---- Wide Scrollable Data Tables ---- */
.data-table--wide {
  min-width: 1200px !important;
}
.data-table--medium {
  min-width: 1000px !important;
}
.data-table--narrow {
  min-width: 800px !important;
}

