:root {
  --bg-dark: #020617;
  --bg-dark-2: #0f172a;
  --bg-dark-3: #1e293b;
  --bg-light: #f8fafc;
  --border-dark: rgba(255,255,255,0.08);
  --border-light: #e2e8f0;
  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.08);
  --apex: #38bdf8;
  --apex-dim: rgba(56,189,248,0.12);
  --apex-glow: rgba(56,189,248,0.25);
  --green: #10b981;
  --green-dim: rgba(16,185,129,0.12);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.12);
  --gold: #FFC700;
  --gold-dim: rgba(255,199,0,0.12);
  --text-d1: #f8fafc;
  --text-d2: #94a3b8;
  --text-d3: #475569;
  --text-l1: #0f172a;
  --text-l2: #475569;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-on-light: #0f172a;
  --text-on-light-secondary: #475569;
}

/* =====================================================
   SHARED NAV UPDATE | VERSION 1.0.1
   Source: uploaded nav (13).php + style (98).css
   Replace your current shared nav section in style.css with this block.
   ===================================================== */
.main-nav,
.main-nav *,
.mobile-nav-menu,
.mobile-nav-menu * {
  box-sizing: border-box;
}

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 78px;
  padding: 14px 4.5%;
  background: rgba(7, 18, 44, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
  flex: 0 0 auto;
  color: #f8fafc;
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.nav-logo span {
  color: #38bdf8;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.nav-links li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links > li > a:hover,
.nav-links > li:hover > a {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.07);
}

.nav-links > li.has-dropdown > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.68rem;
  margin-left: 0.42rem;
  opacity: 0.8;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

/* NAV VERTICAL ALIGNMENT FIX */
.nav-logo,
.nav-links,
.nav-links > li,
.nav-links > li > a,
.nav-actions,
.nav-actions > *,
.auth-dropdown-container,
.auth-dropdown-container > a,
.auth-dropdown-container > button {
  align-self: center;
}
.apex-footer-logo img{
  width: 155px;  
}
.nav-logo img{
     width: 155px; 
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
}

.nav-links > li {
  display: flex;
  align-items: center;
}

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding-top: 0;
  padding-bottom: 0;
}

.nav-actions > a,
.nav-actions > button,
.auth-dropdown-container > #auth-toggle-btn,
.nav-signup-btn,
.nav-dashboard-btn {
  min-height: 46px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.main-nav .nav-actions .btn,
.main-nav .auth-dropdown-container > .btn,
.main-nav .auth-dropdown-container > .av-nav-btn-glass-border,
.main-nav .nav-signup-btn,
.main-nav .nav-dashboard-btn {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: center;
}

.main-nav .btn,
.mobile-nav-menu .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0.82rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.main-nav .btn:hover,
.mobile-nav-menu .btn:hover {
  transform: translateY(-1px);
}

.main-nav .btn-primary,
.mobile-nav-menu .btn-primary {
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
  color: #07122c;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.28);
}

.main-nav .btn-primary:hover,
.mobile-nav-menu .btn-primary:hover {
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.34);
}

.main-nav .btn-secondary,
.mobile-nav-menu .btn-secondary {
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.3);
}

.main-nav .btn-secondary:hover,
.mobile-nav-menu .btn-secondary:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(226, 232, 240, 0.45);
}

.main-nav {
  --av-nav-primary-base: var(--reilink-primary-base, #38bdf8);
  --av-nav-violet: var(--reilink-violet, #a78bfa);
  --av-nav-amber: var(--reilink-amber, #fb923c);
  --av-nav-text-on-light: var(--text-on-light, #0f172a);
}

.main-nav .av-nav-btn-glass-border {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  color:#fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main-nav .av-nav-btn-glass-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    var(--av-nav-primary-base),
    var(--av-nav-violet),
    var(--av-nav-amber)
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
  animation: av-nav-vb-gradient 6s ease infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateZ(0);
  z-index: -1;
}

.main-nav .av-nav-btn-glass-border:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.main-nav .av-nav-btn-glass-border:hover::before {
  opacity: 1;
}

.main-nav .av-nav-btn-glass-border:active {
  transform: translateY(0) scale(0.98);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-signup-btn {
  white-space: nowrap;
}

@keyframes av-nav-vb-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav-dashboard-btn {
  white-space: nowrap;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 1240px);
  padding: 2rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  z-index: 2100;
}

.nav-links > li:hover > .mega-menu {
  display: block;
}

.mega-menu-grid,
.mega-menu-grid--solutions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.mega-menu-column {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-column > h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.25rem;
  margin: 0 0 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mega-menu-column li + li {
  margin-top: 0.35rem;
}

.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  min-height: 72px;
  padding: 0.85rem;
  border-radius: 14px;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mega-menu-item:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.mega-menu-item .icon {
  width: 1.5rem;
  margin-top: 0.22rem;
  color: #0ea5e9;
  text-align: center;
  font-size: 1.1rem;
}

.mega-menu-item .text-content h4 {
  margin: 0 0 0.25rem;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.mega-menu-item .text-content p {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.45;
}

.mega-menu-column--callout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mega-menu-callout {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mega-menu-callout:hover,
.mega-menu-secondary-link:hover {
  transform: translateY(-2px);
}

.mega-menu-callout--dark {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-color: rgba(56, 189, 248, 0.18);
}

.mega-menu-callout-art {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  min-height: 170px;
  padding: 1.1rem;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.26), transparent 36%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.22), transparent 38%),
    linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.mega-menu-callout--dark .mega-menu-callout-art {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.25), transparent 34%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.22), transparent 40%),
    linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

.mega-menu-callout-art strong {
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.15;
}

.mega-menu-callout--dark .mega-menu-callout-art strong {
  color: #f8fafc;
}

.mega-menu-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mega-menu-callout--dark .mega-menu-badge {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.mega-menu-callout .text-content {
  padding: 1rem 1.1rem 1.15rem;
}

.mega-menu-callout .text-content h4 {
  margin: 0 0 0.35rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.mega-menu-callout .text-content p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.mega-menu-callout .text-content .link-text {
  margin-top: 0.55rem;
  color: #0284c7;
  font-size: 0.9rem;
  font-weight: 700;
}

.mega-menu-callout--dark .text-content h4,
.mega-menu-callout--dark .text-content p {
  color: #e5eef7;
}

.mega-menu-callout--dark .text-content .link-text {
  color: #7dd3fc;
}

.mega-menu-secondary-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mega-menu-secondary-link strong {
  color: #0f172a;
  font-size: 0.98rem;
}

.mega-menu-secondary-link:hover {
  border-color: #bae6fd;
}


.mega-menu--compare {
  width: min(94vw, 760px);
}

.mega-menu-grid--compare {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
}

.mega-menu-column--compare-list .mega-menu-item {
  min-height: 84px;
}

.mega-menu-column--compare-callout .mega-menu-callout {
  min-height: 100%;
}

.auth-dropdown-container {
  position: relative;
}

.main-nav .apex-auth-dropdown {
  display: none !important;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  padding: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.52);
  opacity: 0;
  transform: translateY(-10px);
  z-index: 2200;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav .apex-auth-dropdown.is-open {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.nav-social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

.nav-social-btn {
  flex: 1 1 0;
}

.main-nav .nav-social-btn--google {
  background: #ffffff;
  color: #1f2937;
  border-color: #e5e7eb;
}

.main-nav .nav-social-btn--google i {
  color: #4285f4;
}

.main-nav .nav-social-btn--apple {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-content {
  display: block;
}

.apex-input-group {
  margin-bottom: 1rem;
}

.apex-input-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(30, 41, 59, 0.7);
  color: #f8fafc;
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
}

.apex-input-group input::placeholder {
  color: #94a3b8;
}

.apex-input-group input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.btn-full-width {
  width: 100%;
}

.nav-auth-footnote {
  margin-top: 12px;
  text-align: center;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.nav-auth-footnote a {
  color: #38bdf8;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: #f8fafc;
  cursor: pointer;
}

.mobile-nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 12px;
  right: 12px;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(6, 17, 40, 0.98);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
  z-index: 2100;
}

.mobile-nav-menu.is-open {
  display: block;
}

.mobile-nav-menu hr {
  margin: 0.75rem 0 0;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-nav-menu a,
.mobile-nav-menu summary {
  color: #f8fafc;
}

.mobile-nav-accordion {
  margin-bottom: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-accordion:last-of-type {
  margin-bottom: 0;
}

.mobile-nav-accordion summary {
  list-style: none;
}

.mobile-nav-accordion summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.1rem;
  cursor: pointer;
  user-select: none;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mobile-nav-heading::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-accordion[open] .mobile-nav-heading::after {
  transform: rotate(180deg);
  color: #f8fafc;
}

.mobile-nav-group-links {
  padding: 0 0.75rem 0.8rem;
}

.mobile-nav-menu .mobile-nav-group-links a {
  display: block;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

.mobile-nav-menu .mobile-nav-group-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-nav-menu > a,
.mobile-nav-menu > .btn,
.mobile-nav-menu > hr {
  margin-top: 0.75rem;
}

.mobile-nav-menu > a,
.mobile-nav-menu > .btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }

  .mobile-menu-toggle,
  .mobile-nav-menu {
    display: none !important;
  }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .mega-menu-grid,
  .mega-menu-grid--solutions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mega-menu-column--callout {
    grid-column: span 3;
  }

  .mega-menu-grid--compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .mega-menu-column--compare-callout {
    grid-column: auto;
  }
}

@media (max-width: 991.98px) {
  .main-nav {
    padding: 14px 16px;
    gap: 12px;
  }

  .nav-logo {
    font-size: 1.6rem;
  }

  .nav-actions {
    gap: 10px;
  }

  .auth-dropdown-container > #auth-toggle-btn,
  .auth-dropdown-container > .av-nav-btn-glass-border,
  .nav-signup-btn,
  .nav-dashboard-btn {
    display: none !important;
  }

  .main-nav .apex-auth-dropdown {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 96px);
    overflow: auto;
    border-radius: 18px;
  }

  .nav-social-row {
    flex-direction: column;
  }
}


.apex-footer {
  background: #0a0f1e;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 80px 5% 0;
  font-family: inherit;
}

.apex-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.apex-footer-logo {
  display: block;
  margin-bottom: 16px;
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.apex-footer-logo span {
  color: #38bdf8;
}

.apex-footer-tagline {
  max-width: 280px;
  margin-bottom: 28px;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.7;
}

.apex-footer-stay-updated,
.apex-footer-col h4 {
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.apex-footer-col h4{
  margin-bottom: 18px;
}
.apex-footer-stay-updated {
  margin-bottom: 10px;
}

.apex-footer-email-wrap {
  display: flex;
  max-width: 300px;
}

.apex-footer-email-wrap input {
  flex: 1;
  padding: 10px 14px;
  color: #f8fafc;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-right: none;
  border-radius: 8px 0 0 8px;
  outline: none;
}

.apex-footer-email-wrap input::placeholder {
  color: #475569;
}

.apex-footer-email-wrap button {
  padding: 10px 16px;
  color: #020617;
  font-size: 0.82rem;
  font-weight: 700;
  background: #38bdf8;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  white-space: nowrap;
}

.apex-footer-email-wrap button:hover {
  background: #7dd3fc;
}

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

.apex-footer-col ul a {
  color: #64748b;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s;
}

.apex-footer-col ul a:hover {
  color: #f8fafc;
}

.apex-footer-legal-heading {
  margin-top: 24px;
}

.apex-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
}

.apex-footer-copy {
  color: #334155;
  font-size: 0.8rem;
}

.apex-footer-socials {
  display: flex;
  gap: 12px;
}

.apex-footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #475569;
  font-size: 0.85rem;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: all 0.15s;
}

.apex-footer-socials a:hover {
  color: #38bdf8;
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.25);
}

.apex-footer-disclaimer {
  padding: 16px 0 32px;
  color: #1e293b;
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}

.traffic-light,
.floating-niche-switcher {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px;
  border-radius: 60px;
  border: 1px solid var(--border-dark);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transition: right 0.5s cubic-bezier(0.25,1,0.5,1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.traffic-light.pushed,
.floating-niche-switcher.pushed {
  right: 440px;
}

.traffic-light.lc-pushed,
.floating-niche-switcher.lc-pushed {
  right: 440px;
}

.tl-btn,
.float-toggle-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-d3);
  transition: all 0.2s;
  position: relative;
}

.tl-btn::before,
.float-toggle-btn::before {
  content: attr(data-label);
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--bg-dark-3);
  color: var(--text-d1);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.16s;
  white-space: nowrap;
}

.tl-btn:hover::before,
.float-toggle-btn:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.tl-btn:hover,
.float-toggle-btn:hover {
  transform: scale(1.1);
}

.tl-btn[data-niche="wholesaler"].active,
.float-toggle-btn[data-workflow="wholesaler"].active,
.float-toggle-btn[data-niche="wholesaler"].active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 0 16px rgba(16,185,129,0.4);
}

.tl-btn[data-niche="investor"].active,
.float-toggle-btn[data-workflow="investor"].active,
.float-toggle-btn[data-workflow="flipper"].active,
.float-toggle-btn[data-niche="investor"].active {
  background: var(--apex);
  color: #020617;
  border-color: var(--apex);
  box-shadow: 0 0 16px var(--apex-glow);
}

.tl-btn[data-niche="agent"].active,
.float-toggle-btn[data-workflow="agent"].active,
.float-toggle-btn[data-niche="agent"].active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 16px rgba(239,68,68,0.4);
}

.tl-btn[data-niche="contractor"].active,
.float-toggle-btn[data-workflow="contractor"].active,
.float-toggle-btn[data-niche="contractor"].active {
  background: var(--gold);
  color: #020617;
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(255,199,0,0.4);
}

.niche-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 52px;
}

.niche-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  color: var(--text-d2);
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}

.niche-btn:hover {
  border-color: rgba(255,255,255,0.18);
  color: var(--text-d1);
}

.niche-btn[data-niche="wholesaler"].active {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}

.niche-btn[data-niche="investor"].active {
  background: var(--apex-dim);
  border-color: var(--apex);
  color: var(--apex);
}

.niche-btn[data-niche="agent"].active {
  background: var(--red-dim);
  border-color: var(--red);
  color: var(--red);
}

.niche-btn[data-niche="contractor"].active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.niche-btn.on-light {
  color: #475569;
  border-color: #e2e8f0;
  background: rgba(255,255,255,0.8);
}

.niche-btn.on-light:hover {
  border-color: #94a3b8;
  color: #0f172a;
  background: #fff;
}

.niche-btn.on-light[data-niche="wholesaler"].active {
  background: rgba(16,185,129,0.08);
  border-color: var(--green);
  color: var(--green);
}

.niche-btn.on-light[data-niche="investor"].active {
  background: rgba(56,189,248,0.08);
  border-color: var(--apex);
  color: var(--apex);
}

.niche-btn.on-light[data-niche="agent"].active {
  background: rgba(239,68,68,0.08);
  border-color: var(--red);
  color: var(--red);
}

.niche-btn.on-light[data-niche="contractor"].active {
  background: rgba(255,199,0,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .mega-menu-grid,
  .mega-menu-grid--solutions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mega-menu-column--callout {
    grid-column: span 3;
  }
}

@media (max-width: 991.98px) {
  .main-nav {
    padding: 14px 16px;
    gap: 12px;
  }

  .nav-logo {
    font-size: 1.6rem;
  }

  .nav-actions {
    gap: 10px;
  }

  .auth-dropdown-container > #auth-toggle-btn,
  .auth-dropdown-container > .av-nav-btn-glass-border,
  .nav-signup-btn,
  .nav-dashboard-btn {
    display: none !important;
  }

  .main-nav .apex-auth-dropdown {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 96px);
    overflow: auto;
    border-radius: 18px;
  }

  .nav-social-row {
    flex-direction: column;
  }
}

@media (min-width: 992px) {
  .mobile-menu-toggle,
  .mobile-nav-menu {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .traffic-light,
  .floating-niche-switcher {
    display: none;
  }
}

@media (max-width: 900px) {
  .niche-bar {
    gap: 6px;
  }

  .niche-btn {
    font-size: 0.75rem;
    padding: 8px 14px;
  }

  .apex-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 600px) {
  .niche-bar {
    flex-wrap: wrap;
    margin-bottom: 28px;
  }

  .niche-btn {
    font-size: 0.7rem;
    padding: 7px 11px;
  }

  .apex-footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .apex-footer-email-wrap {
    max-width: 100%;
  }
}


/* ================================================
   FINAL SWITCHER + TRUST BAR RESTORE FIX
   ================================================ */
body .traffic-light,
body .floating-niche-switcher {
  position: fixed !important;
  top: 50% !important;
  right: 20px !important;
  transform: translateY(-50%) !important;
  z-index: 1200 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
}

body .floating-niche-switcher.pushed,
body .traffic-light.pushed {
  right: 520px !important;
}

body .floating-niche-switcher.lc-pushed,
body .traffic-light.lc-pushed {
  right: 440px !important;
}

body .floating-niche-switcher .float-toggle-btn,
body .traffic-light .tl-btn,
body .traffic-light .float-toggle-btn {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

body .trust-bar-section .workflow-toggle-btn-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

body .trust-bar-section .float-toggle-btn {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0.85rem 1.5rem !important;
  border-radius: 999px !important;
  gap: 10px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

body .trust-bar-section .float-toggle-btn::before {
  display: none !important;
}

body .trust-bar-section .float-toggle-btn i {
  margin-right: 0 !important;
}

@media (max-width: 1100px) {
  body .traffic-light,
  body .floating-niche-switcher {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body .trust-bar-section .float-toggle-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.9rem 1rem !important;
  }

  body .trust-bar-section .workflow-toggle-btn-container {
    gap: 10px !important;
  }
}

/* ================================================
   FLOATING SWITCHER DESIGN RESTORE
   Restores the original glass pill switcher design
   after the nav patch CSS overrides.
   ================================================ */
body .traffic-light.floating-niche-switcher,
body .floating-niche-switcher {
  position: fixed !important;
  top: 50% !important;
  right: 20px !important;
  transform: translateY(-50%) !important;
  z-index: 1200 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
  padding: 12px !important;
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid var(--border-dark) !important;
  border-radius: 60px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}



body .floating-niche-switcher .tl-btn,
body .floating-niche-switcher .float-toggle-btn,
body .traffic-light.floating-niche-switcher .tl-btn,
body .traffic-light.floating-niche-switcher .float-toggle-btn {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 2px solid transparent !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-d3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body .floating-niche-switcher .tl-btn::before,
body .floating-niche-switcher .float-toggle-btn::before,
body .traffic-light.floating-niche-switcher .tl-btn::before,
body .traffic-light.floating-niche-switcher .float-toggle-btn::before {
  display: block !important;
  content: attr(data-label) !important;
  position: absolute !important;
  right: 54px !important;
  top: 50% !important;
  transform: translateY(-50%) translateX(6px) !important;
  background: var(--bg-dark-3) !important;
  color: var(--text-d1) !important;
  padding: 5px 10px !important;
  border-radius: 6px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

body .floating-niche-switcher .tl-btn:hover::before,
body .floating-niche-switcher .float-toggle-btn:hover::before,
body .traffic-light.floating-niche-switcher .tl-btn:hover::before,
body .traffic-light.floating-niche-switcher .float-toggle-btn:hover::before {
  opacity: 1 !important;
  transform: translateY(-50%) translateX(0) !important;
}

body .floating-niche-switcher .tl-btn:hover,
body .floating-niche-switcher .float-toggle-btn:hover,
body .traffic-light.floating-niche-switcher .tl-btn:hover,
body .traffic-light.floating-niche-switcher .float-toggle-btn:hover {
  transform: scale(1.1) !important;
}

body .floating-niche-switcher .tl-btn[data-niche="wholesaler"].active,
body .floating-niche-switcher .float-toggle-btn[data-workflow="wholesaler"].active,
body .floating-niche-switcher .float-toggle-btn[data-niche="wholesaler"].active,
body .traffic-light.floating-niche-switcher .tl-btn[data-niche="wholesaler"].active,
body .traffic-light.floating-niche-switcher .float-toggle-btn[data-workflow="wholesaler"].active,
body .traffic-light.floating-niche-switcher .float-toggle-btn[data-niche="wholesaler"].active {
  background: var(--green) !important;
  color: #fff !important;
  border-color: var(--green) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4) !important;
}

body .floating-niche-switcher .tl-btn[data-niche="investor"].active,
body .floating-niche-switcher .float-toggle-btn[data-workflow="investor"].active,
body .floating-niche-switcher .float-toggle-btn[data-workflow="flipper"].active,
body .floating-niche-switcher .float-toggle-btn[data-niche="investor"].active,
body .traffic-light.floating-niche-switcher .tl-btn[data-niche="investor"].active,
body .traffic-light.floating-niche-switcher .float-toggle-btn[data-workflow="investor"].active,
body .traffic-light.floating-niche-switcher .float-toggle-btn[data-workflow="flipper"].active,
body .traffic-light.floating-niche-switcher .float-toggle-btn[data-niche="investor"].active {
  background: var(--apex) !important;
  color: #020617 !important;
  border-color: var(--apex) !important;
  box-shadow: 0 0 16px var(--apex-glow) !important;
}

body .floating-niche-switcher .tl-btn[data-niche="agent"].active,
body .floating-niche-switcher .float-toggle-btn[data-workflow="agent"].active,
body .floating-niche-switcher .float-toggle-btn[data-niche="agent"].active,
body .traffic-light.floating-niche-switcher .tl-btn[data-niche="agent"].active,
body .traffic-light.floating-niche-switcher .float-toggle-btn[data-workflow="agent"].active,
body .traffic-light.floating-niche-switcher .float-toggle-btn[data-niche="agent"].active {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4) !important;
}

body .floating-niche-switcher .tl-btn[data-niche="contractor"].active,
body .floating-niche-switcher .float-toggle-btn[data-workflow="contractor"].active,
body .floating-niche-switcher .float-toggle-btn[data-niche="contractor"].active,
body .traffic-light.floating-niche-switcher .tl-btn[data-niche="contractor"].active,
body .traffic-light.floating-niche-switcher .float-toggle-btn[data-workflow="contractor"].active,
body .traffic-light.floating-niche-switcher .float-toggle-btn[data-niche="contractor"].active {
  background: var(--gold) !important;
  color: #020617 !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 16px rgba(255, 199, 0, 0.4) !important;
}

@media (max-width: 1100px) {
  body .traffic-light.floating-niche-switcher,
  body .floating-niche-switcher {
    display: none !important;
  }
}

/* ========================================================= */
/* == HOMEPAGE NICHE BAR FIX (restores pre-break styling)  == */
/* ========================================================= */
body.av-final-home .hero .inl-0001 {
  display: block;
  margin: 0 0 18px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-d3, #475569);
}

body.av-final-home .hero .niche-bar {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 52px;
}

body.av-final-home .hero .niche-btn,
body.av-final-home .hero button.niche-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--border-dark, rgba(255,255,255,0.08));
  background: rgba(255,255,255,0.04) !important;
  color: var(--text-d2, #94a3b8) !important;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

body.av-final-home .hero .niche-btn:hover,
body.av-final-home .hero button.niche-btn:hover {
  border-color: rgba(255,255,255,0.18);
  color: var(--text-d1, #f8fafc) !important;
  background: rgba(255,255,255,0.08) !important;
}

body.av-final-home .hero .niche-btn[data-niche="wholesaler"].active {
  background: var(--green-dim, rgba(16,185,129,0.12)) !important;
  border-color: var(--green, #10b981) !important;
  color: var(--green, #10b981) !important;
}

body.av-final-home .hero .niche-btn[data-niche="investor"].active {
  background: var(--apex-dim, rgba(56,189,248,0.12)) !important;
  border-color: var(--apex, #38bdf8) !important;
  color: var(--apex, #38bdf8) !important;
}

body.av-final-home .hero .niche-btn[data-niche="agent"].active {
  background: var(--red-dim, rgba(239,68,68,0.12)) !important;
  border-color: var(--red, #ef4444) !important;
  color: var(--red, #ef4444) !important;
}

body.av-final-home .hero .niche-btn[data-niche="contractor"].active {
  background: var(--gold-dim, rgba(255,199,0,0.12)) !important;
  border-color: var(--gold, #FFC700) !important;
  color: var(--gold, #FFC700) !important;
}

@media (max-width: 900px) {
  body.av-final-home .hero .niche-bar {
    gap: 6px;
    margin-bottom: 28px;
    justify-content: flex-start;
  }

  body.av-final-home .hero .niche-btn,
  body.av-final-home .hero button.niche-btn {
    font-size: 0.75rem;
    padding: 8px 14px;
    min-height: 40px;
  }
}

@media (max-width: 600px) {
  body.av-final-home .hero .inl-0001 {
    margin-bottom: 14px;
    font-size: 0.65rem;
  }

  body.av-final-home .hero .niche-bar {
    gap: 6px;
    justify-content: center !important;
  }

  body.av-final-home .hero .niche-btn,
  body.av-final-home .hero button.niche-btn {
    font-size: 0.45rem;
    padding: 7px 11px;
    min-height: 38px;
  }
}


/* ================================================ */
/* == SHARED RESPONSIVE RESCUE PATCH              == */
/* ================================================ */
@media (max-width: 1100px) {
  .main-nav {
    min-height: 72px;
    padding: 12px 16px;
    gap: 12px;
  }

  .nav-links {
    display: none !important;
  }

  .nav-actions {
    gap: 8px;
  }

  .mobile-nav-menu {
    width: min(100vw, 380px);
    max-width: 100vw;
  }
}

@media (max-width: 767px) {
  .main-nav {
    min-height: 68px;
    padding: 12px 14px;
  }

  .nav-logo {
    font-size: 1.45rem;
  }

  .nav-actions .btn,
  .nav-signup-btn,
  .nav-dashboard-btn,
  .auth-dropdown-container > #auth-toggle-btn {
    min-height: 40px !important;
    padding: 0.72rem 1rem !important;
    font-size: 0.88rem !important;
  }

  .mobile-nav-menu {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }
}
@media (max-width: 767px) {
   /* ================================================ */
/* == MOBILE SPACING OVERRIDES   == */
/* ================================================ */
   .mob-top-m-2_5rem {
        padding-top: 2.5rem;
    }
    .mob-top-m-3_75rem {
        padding-top: 3.75rem;
    }
   .mob-lr-20 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .mob-top-m-5rem {
      padding-top: 5rem;
    }
  .mob-font-2rem {
     font-size: 2rem !important;
    }
    /* Any grid that should stack on mobile */
  .grid-stack-mob {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Definition section */
  .definition-wrapper > .grid-stack-mob {
    margin-bottom: 3rem !important;
  }
   /* ================================================ */
/* == MOBILE SPACING OVERRIDES END  == */
/* ================================================ */