/* Site chrome: header, dropdowns, mobile menu and footer. Loaded last on public pages. */

/* ==========================================================================
   Header
   ========================================================================== */

/* Desktop (1200+): the header keeps a fixed width, so the full menu is tightened to fit.
   "Home" is dropped: the logo already links home, and the longer
   "Our Agents" / "Partnership Program" labels would otherwise push the menu under the logo. */
@media (min-width: 1200px) {
  .nav-list > li:first-child:not(.has-dropdown) { display: none !important; }
  .navbar-inner, .navbar.scrolled .navbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto !important; column-gap: 12px !important; padding-left: 16px !important; padding-right: 14px !important;
  }
  .navbar .brand-logo__name { font-size: 1.3rem; }
  .navbar .brand-logo__pin { --s: 0.06; }
  .nav-menu { justify-self: center !important; min-width: 0; }
  .nav-list { gap: 0 !important; }
  .nav-list .nav-link { padding-left: 10px !important; padding-right: 10px !important; font-size: 0.86rem !important; }
  .nav-actions { gap: 6px !important; }
  .nav-actions :is(.search-trigger, .ds-theme-toggle, .ds-saved-link) { width: 36px !important; height: 36px !important; min-width: 36px !important; }
  .nav-actions .ds-lang__button { height: 36px !important; padding: 0 9px !important; }
  .nav-actions .btn { padding-left: 14px !important; padding-right: 14px !important; font-size: 0.84rem !important; }
}

/* ==========================================================================
   Header: light and clean (white bar, navy text, blue accents).
   Dark mode keeps the same layout on a navy bar.
   ========================================================================== */
:root { --hd-bg: rgba(255, 255, 255, 0.94); --hd-line: #e6edf5; --hd-ink: #0b1b33; --hd-text: #33465e; --hd-muted: #6a7b91; --hd-hover: #f2f7fc; --hd-accent: #0283de; --hd-btn: #00112d; }
html[data-theme="dark"] { --hd-bg: rgba(6, 16, 33, 0.94); --hd-line: rgba(255, 255, 255, 0.08); --hd-ink: #f1f7fd; --hd-text: #c9d8e8; --hd-muted: #8fa3bb; --hd-hover: rgba(255, 255, 255, 0.06); --hd-accent: #5fd4fb; --hd-btn: #0283de; }

body .navbar, body .navbar.at-top, body .navbar.scrolled {
  padding: 0 !important; background: var(--hd-bg) !important; border-bottom: 1px solid var(--hd-line) !important;
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: none !important; height: auto !important;
}
body .navbar.scrolled { box-shadow: 0 8px 30px rgba(0, 17, 45, 0.07) !important; }
body .navbar-inner, body .navbar.scrolled .navbar-inner {
  max-width: 1320px !important; height: 72px !important; margin: 0 auto !important; border-radius: 0 !important; border: 0 !important;
  background: transparent !important; box-shadow: none !important; padding-left: 24px !important; padding-right: 24px !important;
}
body .navbar.scrolled .navbar-inner { height: 64px !important; }
body .navbar::before, body .navbar::after, body .navbar-inner::before, body .navbar-inner::after { display: none !important; }

/* logo */
.brand-logo { display: inline-flex; align-items: center; gap: 9px; line-height: 1; white-space: nowrap; }
.brand-logo__pin {
  --s: 0.068; flex: 0 0 auto; width: calc(460px * var(--s)); height: calc(595px * var(--s));
  background: url("/assets/images/iproply-logo-light.png") no-repeat; background-size: calc(1536px * var(--s)) calc(1024px * var(--s));
  background-position: calc(-60px * var(--s)) calc(-230px * var(--s));
}
.brand-logo__name { font-family: "Outfit", "Inter", sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--hd-ink, #0b1b33); }
.brand-logo--sm .brand-logo__pin { --s: 0.056; }
.brand-logo--sm .brand-logo__name { font-size: 1.25rem; }
body .navbar .logo { width: auto !important; min-width: 0 !important; height: auto !important; }

/* links */
@media (min-width: 1200px) {
  body .nav-list .nav-link {
    height: 40px; display: inline-flex !important; align-items: center; padding: 0 14px !important; border-radius: 10px !important;
    color: var(--hd-text) !important; font-size: 0.9rem !important; font-weight: 600 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
  }
  body .nav-list .nav-link:hover, body .has-dropdown.is-open > .nav-link { color: var(--hd-ink) !important; background: var(--hd-hover) !important; }
  body .nav-list .nav-link.active { color: var(--hd-accent) !important; background: transparent !important; }
  body .nav-list .nav-link.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: -16px; height: 2px; border-radius: 2px; background: var(--hd-accent); box-shadow: none;
  }
  body .navbar.scrolled .nav-list .nav-link.active::after { bottom: -12px; }
  body .nav-list .nav-link .fa-chevron-down { color: var(--hd-muted); font-size: 0.6rem; margin-left: 5px; }
  body .nav-list .nav-link.active .fa-chevron-down { color: var(--hd-accent); }
}

/* action buttons */
body .nav-actions :is(.search-trigger, .ds-theme-toggle, .ds-saved-link), body :is(.ds-saved-link--mobile, .ds-lang--mobile .ds-lang__button), body .nav-actions .ds-lang__button {
  background: transparent !important; color: var(--hd-text) !important; border: 1px solid var(--hd-line) !important; box-shadow: none !important;
}
body .nav-actions :is(.search-trigger, .ds-theme-toggle, .ds-saved-link):hover, body .nav-actions .ds-lang__button:hover { background: var(--hd-hover) !important; color: var(--hd-ink) !important; }
body .nav-actions .btn-primary {
  background: var(--hd-btn) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important; box-shadow: none !important; height: 40px; padding: 0 18px !important; font-weight: 700 !important;
}
body .nav-actions .btn-primary:hover { filter: brightness(1.15); transform: none !important; }
body .nav-actions .btn-outline {
  background: transparent !important; color: var(--hd-ink) !important; border: 1.5px solid var(--hd-line) !important; border-radius: 10px !important; box-shadow: none !important; height: 40px;
}
body .nav-actions .btn-outline:hover { border-color: var(--hd-accent) !important; color: var(--hd-accent) !important; }
body .mobile-toggle { background: transparent !important; border: 1px solid var(--hd-line) !important; border-radius: 10px !important; }
body .mobile-toggle span { background: var(--hd-ink) !important; }

/* dropdown panels drop from the bar edge */
@media (min-width: 1200px) {
  body .has-dropdown .dropdown-menu { margin-top: 14px !important; border: 1px solid var(--hd-line) !important; box-shadow: 0 24px 60px rgba(0, 17, 45, 0.14) !important; }
  body .navbar.scrolled .has-dropdown .dropdown-menu { margin-top: 10px !important; }
}

/* search overlay: light */
body .search-overlay { background: rgba(244, 248, 252, 0.97) !important; }
body .search-overlay-input { color: #0b1b33 !important; border-bottom-color: #c7d6e8 !important; background: transparent !important; }
body .search-overlay-input::placeholder { color: #8a9bb0 !important; }
body .search-overlay-close { color: #0b1b33 !important; border-color: #d8e3f0 !important; background: #fff !important; }
html[data-theme="dark"] body .search-overlay { background: rgba(4, 12, 26, 0.97) !important; }
html[data-theme="dark"] body .search-overlay-input { color: #fff !important; }

/* Dropdowns: roomy rows with icon tiles. */
@media (min-width: 1200px) {
  .has-dropdown .dropdown-menu {
    min-width: 260px; padding: 10px !important; border-radius: 18px !important; border: 1px solid rgba(15, 39, 71, 0.08) !important;
    box-shadow: 0 30px 70px rgba(0, 17, 45, 0.22), 0 2px 6px rgba(0, 17, 45, 0.06) !important;
  }
  .has-dropdown .dropdown-menu > li > a {
    display: flex !important; align-items: center; gap: 12px; padding: 9px 12px 9px 9px !important; border-radius: 12px !important;
    font-weight: 600 !important; font-size: 0.9rem !important; color: #12233d !important; transition: background 0.15s ease, color 0.15s ease;
  }
  .has-dropdown .dropdown-menu > li > a > i {
    flex: 0 0 34px; width: 34px !important; height: 34px; display: grid !important; place-items: center; border-radius: 10px;
    background: rgba(2, 131, 222, 0.08); color: #0283de !important; font-size: 0.85rem; transition: background 0.15s ease, color 0.15s ease;
  }
  .has-dropdown .dropdown-menu > li > a:hover, .has-dropdown .dropdown-menu > li > a:focus-visible { background: #f2f8fd !important; color: #0283de !important; }
  .has-dropdown .dropdown-menu > li > a:hover > i, .has-dropdown .dropdown-menu > li > a:focus-visible > i { background: linear-gradient(135deg, #22e3f3, #0283de); color: #00112d !important; }
  /* Company (8 links) in two columns. */
  .has-dropdown .dropdown-menu.dropdown-menu--right { display: grid; grid-template-columns: 1fr 1fr; min-width: 460px; gap: 2px; }
  html[data-theme="dark"] .has-dropdown .dropdown-menu { background: #0d1d34 !important; border-color: rgba(255, 255, 255, 0.08) !important; }
  html[data-theme="dark"] .has-dropdown .dropdown-menu > li > a { color: #dce8f5 !important; }
  html[data-theme="dark"] .has-dropdown .dropdown-menu > li > a > i { background: rgba(34, 227, 243, 0.1); color: #5fd4fb !important; }
  html[data-theme="dark"] .has-dropdown .dropdown-menu > li > a:hover { background: rgba(255, 255, 255, 0.06) !important; color: #fff !important; }
}

/* ==========================================================================
   Mobile menu: light panel to match the header
   ========================================================================== */
body .mobile-menu { display: flex; flex-direction: column; background: #fff !important; color: #0b1b33 !important; border-left: 1px solid #e6edf5; box-shadow: -24px 0 60px rgba(0, 17, 45, 0.18) !important; }
html[data-theme="dark"] body .mobile-menu { background: #071327 !important; color: #e6eef7 !important; border-left-color: rgba(255, 255, 255, 0.08); }
body .mobile-menu-overlay { background: rgba(0, 17, 45, 0.45) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
body .mobile-menu-header { border-bottom: 1px solid var(--hd-line) !important; background: transparent !important; }
body .mobile-close { background: var(--hd-hover) !important; color: var(--hd-ink) !important; border: 1px solid var(--hd-line) !important; }
body .mobile-menu-search input { min-height: 48px; background: #f4f8fc !important; border: 1px solid var(--hd-line) !important; color: var(--hd-ink) !important; }
html[data-theme="dark"] body .mobile-menu-search input { background: rgba(255, 255, 255, 0.05) !important; }
body .mobile-menu-search button { background: var(--hd-btn) !important; color: #fff !important; }
body .mobile-nav-list > li > a, body .mobile-nav-details > summary {
  display: flex !important; align-items: center; justify-content: flex-start !important; gap: 12px; min-height: 50px; padding: 0 12px !important; border-radius: 12px;
  font-weight: 700 !important; color: var(--hd-ink) !important; background: transparent !important; border: 0 !important; text-align: left !important;
}
body .mobile-nav-list > li > a:hover, body .mobile-nav-details > summary:hover { background: var(--hd-hover) !important; }
body .mobile-nav-list .mn-ico { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 0.85rem; background: rgba(2, 131, 222, 0.08); color: #0283de; }
html[data-theme="dark"] body .mobile-nav-list .mn-ico { background: rgba(95, 212, 251, 0.1); color: #5fd4fb; }
body .mobile-nav-details > summary > span { flex: 1; display: flex; align-items: center; gap: 12px; }
body .mobile-nav-details > summary .fa-chevron-down { color: var(--hd-muted) !important; transition: transform 0.2s ease; }
body .mobile-nav-details[open] > summary { background: var(--hd-hover) !important; color: var(--hd-accent) !important; }
body .mobile-nav-details[open] > summary .fa-chevron-down { transform: rotate(180deg); }
body .mobile-subnav { display: grid !important; gap: 2px; padding: 4px 0 8px 58px !important; background: transparent !important; border: 0 !important; }
body .mobile-subnav a { padding: 10px 12px !important; border-radius: 10px; font-weight: 600 !important; color: var(--hd-text) !important; background: transparent !important; }
body .mobile-subnav a:hover { background: var(--hd-hover) !important; color: var(--hd-ink) !important; }
body .mobile-nav-actions { border-top: 1px solid var(--hd-line) !important; background: transparent !important; }
body .mobile-nav-actions .btn-primary { background: var(--hd-btn) !important; color: #fff !important; border-radius: 12px !important; box-shadow: none !important; }
body .mobile-nav-actions .ds-lang--segmented { background: #f1f5f9 !important; }
body .mobile-nav-actions .ds-lang--segmented button:not([aria-checked="true"]) { color: #33465e !important; }
html[data-theme="dark"] body .mobile-nav-actions .ds-lang--segmented { background: rgba(255, 255, 255, 0.06) !important; }
html[data-theme="dark"] body .mobile-nav-actions .ds-lang--segmented button:not([aria-checked="true"]) { color: #cfe3f7 !important; }
body .mobile-nav-actions .ds-theme-toggle--wide { background: #f1f5f9 !important; color: #0b1b33 !important; border: 1px solid var(--hd-line) !important; }
html[data-theme="dark"] body .mobile-nav-actions .ds-theme-toggle--wide { background: rgba(255, 255, 255, 0.06) !important; color: #e6eef7 !important; }
/* One overlay at a time: chat launchers step aside while the menu is open. */
body.nav-open chat-widget, body.nav-open .ca { display: none !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.sf {
  position: relative; overflow: hidden; color: #b9cbe0; font-family: "Inter", var(--font-family, system-ui), sans-serif;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(34, 227, 243, 0.1), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(2, 131, 222, 0.14), transparent 60%),
    linear-gradient(180deg, #001331 0%, #000b1f 100%);
}
.sf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #22e3f3 20%, #0283de 80%, transparent); opacity: 0.8; }
.sf a { color: #b9cbe0; text-decoration: none; transition: color 0.15s ease; }
.sf a:hover { color: #5fd4fb; }
.sf__wrap { width: min(1280px, 100% - 48px); margin: 0 auto; }

/* top band: brand + newsletter */
.sf__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 56px 0 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sf__brand img { width: 168px; height: auto; }
.sf__brand p { margin: 16px 0 20px; max-width: 46ch; line-height: 1.65; color: #9fb4cc; }
.sf__contact { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 20px; font-size: 0.9rem; }
.sf__contact a { display: inline-flex; align-items: center; gap: 8px; color: #dbe8f5; font-weight: 600; }
.sf__contact i { color: #22e3f3; }
.sf__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.sf__social a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #dbe8f5;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.sf__social a:hover { transform: translateY(-3px); background: linear-gradient(135deg, #22e3f3, #0283de); color: #00112d; border-color: transparent; }
.sf__news {
  padding: 26px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.sf__news h2 { margin: 0 0 6px; font-family: "Outfit", "Inter", sans-serif; font-size: 1.35rem; color: #fff; letter-spacing: -0.01em; }
.sf__news p { margin: 0 0 16px; color: #9fb4cc; font-size: 0.92rem; }
.sf__news .newsletter-form-inline { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.1); }
.sf__news .newsletter-form-inline input[type="email"] {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0 !important; background: transparent !important; color: #fff !important; font: inherit; box-shadow: none !important;
}
.sf__news .newsletter-form-inline input::placeholder { color: #7f95ae; }
.sf__news .newsletter-form-inline input:focus { outline: none; }
.sf__news .newsletter-form-inline:focus-within { border-color: rgba(34, 227, 243, 0.5); box-shadow: 0 0 0 4px rgba(34, 227, 243, 0.12); }
.sf__news .newsletter-form-inline button {
  height: 46px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer; font: 800 0.9rem/1 inherit;
  background: linear-gradient(135deg, #22e3f3, #0283de); color: #00112d; box-shadow: 0 10px 24px rgba(3, 189, 249, 0.3);
}
.sf__news small { display: block; margin-top: 10px; color: #7f95ae; font-size: 0.78rem; }

/* link columns */
.sf__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 28px; padding: 44px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sf__col h3 { margin: 0 0 16px; font-family: "Outfit", "Inter", sans-serif; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; color: #fff; }
.sf__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.sf__col li a { font-size: 0.9rem; }
.sf__apps p { margin: 0 0 14px; color: #9fb4cc; font-size: 0.9rem; line-height: 1.55; }
.sf__apps .store-buttons, .sf__apps > div { display: flex; flex-wrap: wrap; gap: 10px; }

/* legal */
.sf__legal { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; padding: 32px 0; font-size: 0.8rem; line-height: 1.65; color: #8399b2; }
.sf__legal p { margin: 0 0 8px; }
.sf__legal a { color: #9fdcf2; text-decoration: underline; text-decoration-color: rgba(159, 220, 242, 0.35); text-underline-offset: 3px; }
.sf__fair { display: flex; gap: 14px; align-items: flex-start; }
.sf__fair img { width: 40px; height: auto; flex: 0 0 40px; filter: brightness(0) invert(0.85); }
.sf__fair p { text-transform: none; }

/* bottom bar */
.sf__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.82rem; color: #8399b2; }
.sf__bar nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sf__bar nav a { color: #b9cbe0; }

@media (max-width: 1024px) {
  .sf__top { grid-template-columns: 1fr; gap: 28px; }
  .sf__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf__apps { grid-column: 1 / -1; }
  .sf__legal { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  .sf__wrap { width: calc(100% - 32px); }
  .sf__top { padding: 40px 0 28px; }
  .sf__news { padding: 20px; }
  .sf__cols { gap: 26px 18px; padding: 32px 0; }
  .sf__bar { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
}
.sf__bar p { margin: 0; }
.sf p { text-transform: none; letter-spacing: normal; }
.sf__fair p { letter-spacing: 0.01em; }

/* Logo | centred menu | actions, never overlapping */
@media (min-width: 1200px) {
  body .navbar-inner, body .navbar.scrolled .navbar-inner { grid-template-columns: auto minmax(0, 1fr) auto !important; column-gap: 20px !important; }
  body .nav-menu { justify-self: center !important; }
}
body .mobile-menu-search input::placeholder { color: #8a9bb0 !important; opacity: 1; }
@media (max-width: 640px) { body .navbar-inner, body .navbar.scrolled .navbar-inner { height: 64px !important; padding-left: 16px !important; padding-right: 12px !important; } .navbar .brand-logo__name { font-size: 1.3rem; } }

/* ==========================================================================
   Header, richer pass: utility strip, brand accent, CTAs, account menu, promo
   ========================================================================== */
/* utility strip (desktop only; folds away once you scroll) */
.nav-utility { display: none; }
@media (min-width: 1200px) {
  html:root { --nav-height: 110px; }
  .nav-utility {
    display: block; height: 36px; overflow: hidden; color: rgba(226, 238, 252, 0.86); font-size: 0.8rem; font-weight: 500;
    background: linear-gradient(90deg, #00112d 0%, #062a5c 55%, #0b4a8f 100%); transition: height 0.25s ease;
  }
  .navbar.scrolled .nav-utility { height: 0; }
  .nav-utility__inner { max-width: 1320px; height: 36px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .nav-utility__tag i { color: #22e3f3; margin-right: 6px; }
  .nav-utility__links { display: flex; align-items: center; gap: 22px; }
  .nav-utility a { display: inline-flex; align-items: center; gap: 7px; color: rgba(226, 238, 252, 0.86) !important; text-decoration: none; }
  .nav-utility a:hover { color: #fff !important; }
  .nav-utility a i { color: #5fd4fb; font-size: 0.75rem; }
  .nav-utility__agent { padding: 4px 12px; border-radius: 999px; background: rgba(34, 227, 243, 0.14); border: 1px solid rgba(34, 227, 243, 0.3); color: #a5f3fc !important; font-weight: 700; }
  .nav-utility__agent:hover { background: rgba(34, 227, 243, 0.24); }
}

/* brand accent under the bar */
body .navbar { position: fixed; }
body .navbar::after {
  content: "" !important; display: block !important; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, #22e3f3, #0283de 45%, #6d5dfc); opacity: 0.85; pointer-events: none;
}
body .navbar-inner { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(234, 245, 254, 0.35)) !important; }
html[data-theme="dark"] body .navbar-inner { background: transparent !important; }

/* active link: tinted pill + underline */
@media (min-width: 1200px) {
  body .nav-list .nav-link.active { background: linear-gradient(180deg, rgba(2, 131, 222, 0.06), rgba(2, 131, 222, 0.1)) !important; }
  html[data-theme="dark"] body .nav-list .nav-link.active { background: rgba(95, 212, 251, 0.1) !important; }
}

/* guest CTAs */
body .nav-signin { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px; color: var(--hd-ink) !important; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
body .nav-signin:hover { background: var(--hd-hover); color: var(--hd-accent) !important; }
body .nav-actions .btn-primary.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #22e3f3 0%, #0283de 60%, #0560b8 100%) !important;
  color: #fff !important; box-shadow: 0 10px 24px rgba(2, 131, 222, 0.32) !important; text-shadow: 0 1px 1px rgba(0, 17, 45, 0.25);
}
body .nav-actions .btn-primary.nav-cta:hover { filter: brightness(1.06); transform: translateY(-1px) !important; box-shadow: 0 14px 30px rgba(2, 131, 222, 0.4) !important; }
body .nav-actions .btn-primary.nav-cta i { font-size: 0.75rem; }

/* signed-in account menu */
.nav-user { position: relative; }
.nav-user__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 4px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hd-line); background: transparent; color: var(--hd-ink); font: 700 0.88rem/1 "Inter", sans-serif;
}
.nav-user__btn:hover, .nav-user.is-open .nav-user__btn { background: var(--hd-hover); border-color: rgba(2, 131, 222, 0.35); }
.nav-user__btn .fa-chevron-down { font-size: 0.6rem; color: var(--hd-muted); transition: transform 0.2s ease; }
.nav-user.is-open .nav-user__btn .fa-chevron-down { transform: rotate(180deg); }
.nav-user__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: linear-gradient(135deg, #22e3f3, #0283de); color: #fff; font-weight: 800; }
.nav-user__menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 250px; padding: 8px; border-radius: 16px; z-index: 50;
  background: #fff; border: 1px solid var(--hd-line); box-shadow: 0 24px 60px rgba(0, 17, 45, 0.18);
}
.nav-user__menu[hidden] { display: none; }
.nav-user__head { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--hd-line); }
.nav-user__head strong { display: block; color: var(--hd-ink); font-size: 0.95rem; }
.nav-user__head small { color: var(--hd-muted); font-size: 0.78rem; }
.nav-user__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--hd-text) !important; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.nav-user__menu a i { width: 18px; color: var(--hd-accent); }
.nav-user__menu a:hover { background: var(--hd-hover); color: var(--hd-ink) !important; }
.nav-user__menu .nav-user__logout { color: #dc2626 !important; }
.nav-user__menu .nav-user__logout i { color: #dc2626; }
.nav-user__menu .nav-user__logout:hover { background: #fef2f2; }
html[data-theme="dark"] .nav-user__menu { background: #0d1d34; }
html[data-theme="dark"] .nav-user__menu .nav-user__logout:hover { background: rgba(220, 38, 38, 0.12); }

/* "For Agents" menu promo card */
.has-dropdown .dropdown-menu .nav-promo {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 8px; padding: 14px;
  border-radius: 14px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(34, 227, 243, 0.35), transparent 55%), linear-gradient(135deg, #00112d, #0b4a8f);
}
.nav-promo__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, #22e3f3, #0283de); color: #00112d; }
.nav-promo__text strong { display: block; font-size: 0.92rem; }
.nav-promo__text small { display: block; color: rgba(226, 238, 252, 0.8); font-size: 0.78rem; line-height: 1.4; }
.has-dropdown .dropdown-menu .nav-promo a.nav-promo__cta {
  display: inline-flex !important; gap: 6px; padding: 9px 14px !important; border-radius: 10px !important; white-space: nowrap;
  background: #fff !important; color: #00112d !important; font-weight: 800 !important; font-size: 0.82rem !important;
}
.has-dropdown .dropdown-menu .nav-promo a.nav-promo__cta i { width: auto !important; height: auto; background: none !important; color: #0283de !important; font-size: 0.72rem; }

/* ==========================================================================
   Mobile menu, richer pass
   ========================================================================== */
body .mobile-menu-header {
  background: radial-gradient(120% 160% at 100% 0%, rgba(34, 227, 243, 0.3), transparent 55%), linear-gradient(135deg, #00112d, #0b4a8f) !important;
  border-bottom: 0 !important; padding: 18px 18px !important;
}
body .mobile-menu-header .brand-logo__name { color: #fff !important; }
body .mobile-menu-header .mobile-close { background: rgba(255, 255, 255, 0.12) !important; color: #fff !important; border-color: rgba(255, 255, 255, 0.2) !important; }
.mm-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 16px 12px; }
.mm-quick a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 14px; text-decoration: none;
  font-weight: 700; font-size: 0.86rem; color: var(--hd-ink) !important; background: var(--hd-hover); border: 1px solid var(--hd-line);
}
.mm-quick a i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #22e3f3, #0283de); color: #fff; font-size: 0.8rem; }
.mm-quick a:hover { border-color: rgba(2, 131, 222, 0.4); }
.mm-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-auth .btn { justify-content: center; border-radius: 12px !important; min-height: 46px; }
.mm-auth__signin { background: transparent !important; color: var(--hd-ink) !important; border: 1.5px solid var(--hd-line) !important; }
body .mobile-nav-actions .btn-primary { background: linear-gradient(135deg, #22e3f3, #0283de) !important; color: #fff !important; }
.mm-call { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 0.88rem; color: #047857 !important; background: #ecfdf5; border: 1px solid #a7f3d0; }
html[data-theme="dark"] .mm-call { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7 !important; }

/* ==========================================================================
   Navy header in both themes (owner's choice): full width, no gaps.
   ========================================================================== */
body .navbar, body .navbar.at-top, body .navbar.scrolled {
  --hd-bg: #00112d; --hd-line: rgba(255, 255, 255, 0.08); --hd-ink: #f4f9ff; --hd-text: #c9d8e8; --hd-muted: #8fa3bb;
  --hd-hover: rgba(255, 255, 255, 0.08); --hd-accent: #5fd4fb; --hd-btn: #0283de;
  left: 0 !important; right: 0 !important; width: 100% !important; margin: 0 !important; top: 0 !important;
  background: linear-gradient(180deg, #001331 0%, #00112d 100%) !important; border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
body .navbar.scrolled { box-shadow: 0 10px 30px rgba(0, 8, 24, 0.35) !important; }
body .navbar-inner, body .navbar.scrolled .navbar-inner, html[data-theme="dark"] body .navbar-inner { background: transparent !important; width: 100% !important; }
.nav-utility { background: #000a1c !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
@media (min-width: 1200px) {
  body .nav-list .nav-link.active, html[data-theme="dark"] body .nav-list .nav-link.active { color: #fff !important; background: rgba(95, 212, 251, 0.12) !important; }
  body .nav-list .nav-link.active::after { background: linear-gradient(90deg, #22e3f3, #0283de) !important; box-shadow: 0 0 10px rgba(34, 227, 243, 0.55) !important; }
  body .nav-list .nav-link.active .fa-chevron-down { color: #5fd4fb; }
}
/* panels opened from the bar stay light */
.nav-user__menu { --hd-line: #e6edf5; --hd-ink: #0b1b33; --hd-text: #33465e; --hd-muted: #6a7b91; --hd-hover: #f2f7fc; --hd-accent: #0283de; }
html[data-theme="dark"] .nav-user__menu { --hd-line: rgba(255, 255, 255, 0.08); --hd-ink: #f1f7fd; --hd-text: #c9d8e8; --hd-muted: #8fa3bb; --hd-hover: rgba(255, 255, 255, 0.06); --hd-accent: #5fd4fb; }

/* mobile menu: navy panel to match */
body .mobile-menu {
  --hd-line: rgba(255, 255, 255, 0.08); --hd-ink: #f4f9ff; --hd-text: #c9d8e8; --hd-muted: #8fa3bb; --hd-hover: rgba(255, 255, 255, 0.06); --hd-accent: #5fd4fb; --hd-btn: #0283de;
  background: linear-gradient(180deg, #00112d, #001a3d 60%, #002147) !important; color: #e6eef7 !important; border-left: 1px solid rgba(255, 255, 255, 0.06);
}
body .mobile-menu-search input { background: rgba(255, 255, 255, 0.06) !important; color: #fff !important; }
body .mobile-menu-search input::placeholder { color: rgba(226, 238, 252, 0.5) !important; }
body .mobile-nav-list .mn-ico { background: rgba(95, 212, 251, 0.12) !important; color: #5fd4fb !important; }
.mm-quick a { background: rgba(255, 255, 255, 0.05) !important; }
body .mobile-nav-actions .ds-lang--segmented { background: rgba(255, 255, 255, 0.06) !important; }
body .mobile-nav-actions .ds-lang--segmented button:not([aria-checked="true"]) { color: #cfe3f7 !important; }
body .mobile-nav-actions .ds-lang--segmented button[aria-checked="true"] { background: #0283de !important; color: #fff !important; }
body .mobile-nav-actions .ds-theme-toggle--wide { background: rgba(255, 255, 255, 0.06) !important; color: #e6eef7 !important; }
.mm-call { background: rgba(16, 185, 129, 0.12) !important; border-color: rgba(16, 185, 129, 0.3) !important; color: #6ee7b7 !important; }
body .navbar, body .navbar.at-top, body .navbar.scrolled { min-height: 0 !important; height: auto !important; }
