body:not(.nightmode):has(.hl-home, .hs-icon-page) {
  --home-bg: #f7faff;
  --home-surface: #fff;
  --home-soft: #eaf2ff;
  --home-text: #14264a;
  --home-muted: #4b607e;
  --home-line: #d5e2f5;
  --home-accent: #174dc1;
  --home-shadow: 0 20px 52px -34px #3a68ac;
}

body.nightmode:has(.hl-home, .hs-icon-page) {
  --home-bg: #0b1425;
  --home-surface: #14223a;
  --home-soft: #1a3052;
  --home-text: #edf4ff;
  --home-muted: #b0c0db;
  --home-line: #2f4665;
  --home-accent: #a7c5ff;
  --home-shadow: 0 20px 52px -34px #030815;
}

/* Keep icon alignment consistent between the desktop and mobile menus. */
body.noAuth:has(.hl-home, .hs-icon-page) :is(#navbar .nav-link, #navMob .menu_mobs a) .navbar-icon,
body.noAuth:has(.hl-home, .hs-icon-page) #navbar .btn-gradient .sp__icon {
  flex: 0 0 1.25em;
  width: 1.25em;
  margin: 0;
  text-align: center;
  line-height: 1;
}
body.noAuth:has(.hl-home, .hs-icon-page) #navbar .btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}
body.noAuth:has(.hl-home, .hs-icon-page) :is(.hl-mobile-theme, .day_night_btn, .navbar-toggler, #cls) i,
.hl-home :is(.hl-service-icon, .hl-why-icon, .hl-mark, .hl-btn, .hl-field) > i { line-height: 1; }
.hl-home .hl-check-list i {
  flex: 0 0 1em;
  width: 1em;
  text-align: center;
}
/* The configured support widget remains in control of its links and menu. */
body.noAuth:has(.hl-home, .hs-icon-page) #sgStack :is(#sgToggleBtn, a[aria-label="WhatsApp"], a[aria-label="Messenger"], a[aria-label="Telegram"]) img {
  display: none !important;
}
body.noAuth:has(.hl-home, .hs-icon-page) #sgStack #sgToggleBtn::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  content: "\f590";
  font: 900 21px/1 "Font Awesome 6 Free";
  color: var(--home-accent);
}
body.noAuth:has(.hl-home, .hs-icon-page) #sgStack #sgToggleBtn {
  background: var(--home-surface);
  border: 1px solid var(--home-line);
}
body.noAuth:has(.hl-home, .hs-icon-page) #sgStack #sgMenu a::before {
  font: 400 20px/1 "Font Awesome 6 Brands";
}
body.noAuth:has(.hl-home, .hs-icon-page) #sgStack a[aria-label="WhatsApp"]::before { content: "\f232"; color: #087a45; }
body.noAuth:has(.hl-home, .hs-icon-page) #sgStack a[aria-label="Messenger"]::before { content: "\f39f"; color: #1262d4; }
body.noAuth:has(.hl-home, .hs-icon-page) #sgStack a[aria-label="Telegram"]::before { content: "\f2c6"; color: #087aa8; }
body.noAuth.nightmode:has(.hl-home, .hs-icon-page) #sgStack a[aria-label="WhatsApp"]::before { color: #63e5a0; }
body.noAuth.nightmode:has(.hl-home, .hs-icon-page) #sgStack a[aria-label="Messenger"]::before { color: #96bfff; }
body.noAuth.nightmode:has(.hl-home, .hs-icon-page) #sgStack a[aria-label="Telegram"]::before { color: #7bd9ff; }

body.noAuth:has(.hs-icon-page) :is(#navbar .nav-link, #navMob .menu_mobs a) {
  display: flex;
  align-items: center;
  gap: 9px;
}
body.noAuth:has(.hl-home, .hs-icon-page) #navbar .navbar-brand {
  margin: 0 auto 0 0;
  color: var(--home-text) !important;
}

body.noAuth:has(.hl-home, .hs-icon-page) #navbar .navbar-brand img {
  display: block;
  width: auto !important;
  max-width: min(156px, 45vw);
  height: auto !important;
  max-height: 36px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #172749;
  object-fit: contain;
}

.hs-icon-page {
  --hs-page-icon-size: 16px;
  --hs-page-icon-gap: 8px;
}
.hs-icon-page :is(.hs-icon-badge, #signUp .control-label .icon) {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  color: var(--home-accent) !important;
  background: var(--home-soft) !important;
  border-radius: 10px;
}
.hs-icon-page :is(.hs-api-heading, #signUp .control-label, .hs-signup-submit) {
  display: flex;
  align-items: center;
  gap: var(--hs-page-icon-gap);
}
.hs-icon-page .hs-signup-submit { justify-content: center; }
.hs-icon-page #signUp .control-label { padding: 0; }
.hs-icon-page .hs-api-heading#apiTitle .hs-icon-badge {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
}
.hs-icon-page :is(.hs-icon-badge, .control-label .icon, .hs-signup-submit, .cat_btn_filter, .input-group-btn, .btn_serv) i {
  margin: 0;
  font-size: var(--hs-page-icon-size);
  line-height: 1;
}
.hs-icon-page #cat_filter .cat_btn_filter {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  gap: var(--hs-page-icon-gap);
}
.hs-icon-page .cat_btn_filter [data-filter-active-category] { min-width: 0; }
.hs-icon-page #cat_filter .cat_btn_filter .fa-chevron-down { margin-inline-start: auto; font-size: 12px; }
.hs-icon-page .svc-search-form .input-group-btn button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.hs-icon-page .svc-search-form .input-group-btn i { color: inherit; }
.hs-service-icons #serv-table .btn_serv {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#serviceDetailsModal .svc-detail-close i { font-size: 16px; line-height: 1; }

@media (max-width: 991px) {
  body.noAuth:has(.hs-icon-page) #navbar > .container { gap: 8px; }
  body.noAuth:has(.hs-icon-page) #navMob :is(#cls, .menu_mobs .navbar-icon) {
    color: var(--home-accent) !important;
  }
  body.noAuth:has(.hs-icon-page) #navMob #cls {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--home-soft) !important;
    border-radius: 10px;
  }
}

body.noAuth:has(.hl-home, .hs-icon-page) #navbar .day_night_btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: var(--home-soft);
  color: var(--home-accent);
}
body.noAuth:has(.hl-home, .hs-icon-page) #navbar .day_night_btn .active_circle,
body.noAuth.nightmode:has(.hl-home, .hs-icon-page) #navbar .day_night_btn .night_mode,
body.noAuth:not(.nightmode):has(.hl-home, .hs-icon-page) #navbar .day_night_btn .day_mode { display: none; }
body.noAuth:has(.hl-home, .hs-icon-page) #navbar .day_night_btn i { color: var(--home-accent) !important; }

@media (max-width: 991px) {
  body.noAuth:has(.hl-home, .hs-icon-page) .hl-mobile-tools[hidden] { display: flex !important; }
  body.noAuth:has(.hl-home, .hs-icon-page) #navbar :is(.hl-mobile-theme,.navbar-toggler) {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    font-size: 18px;
    color: var(--home-accent) !important;
    background: var(--home-soft);
    border: 1px solid var(--home-line);
    border-radius: 10px;
  }
  body.noAuth:not(.nightmode) .hl-mobile-theme .fa-sun,
  body.noAuth.nightmode .hl-mobile-theme .fa-moon { display: none !important; }
}

.hs-service-icons #cat_filter .dropdown-menu {
  max-height: min(48vh, 350px);
  max-width: min(420px, calc(100vw - 48px));
  overflow-y: auto;
}
.hs-service-icons #cat_filter .dropdown-item { white-space: normal; overflow-wrap: anywhere; }

/* Shared widths keep the masthead and content aligned on wide displays. */
body.noAuth:has(.hs-service-icons, .haxor-blog) #navbar {
  position: sticky !important;
  top: 0;
  padding-inline: 0 !important;
}
body.noAuth:has(.hs-service-icons, .haxor-blog) #navbar > .container {
  width: min(calc(100% - 28px), 1200px);
  max-width: none;
  padding-inline: 0;
}
body.noAuth:has(.haxor-blog) {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body.noAuth:has(.haxor-blog) .glass-site-footer { margin-top: auto; }

body.noAuth:has(.haxor-blog) .glass-site-footer {
  padding-inline-start: max(14px, calc((100% - 1200px) / 2));
  padding-inline-end: max(80px, calc((100% - 1200px) / 2));
}
