.elementor-location-header .brd-header-cta,
.brd-header-cta {
  position: relative !important;
  overflow: hidden !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  min-height: 38px !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;

  color: #eaffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.22) 0%,
      rgba(143,255,251,0.12) 42%,
      rgba(255,255,255,0.06) 100%
    ) !important;

  border: 1px solid rgba(143,255,251,0.48) !important;
  border-top-color: rgba(255,255,255,0.62) !important;

  box-shadow:
    0 0 18px rgba(56,245,242,0.22),
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    inset 0 0 18px rgba(143,255,251,0.08) !important;

  text-shadow: 0 0 10px rgba(56,245,242,0.35) !important;

  backdrop-filter: blur(14px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.35) !important;

  transition: 0.22s ease !important;
}

.elementor-location-header .brd-header-cta::before,
.brd-header-cta::before {
  content: "" !important;
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  top: 4px !important;
  height: 42% !important;
  border-radius: inherit !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.42) 0%,
      rgba(255,255,255,0.12) 65%,
      rgba(255,255,255,0) 100%
    ) !important;

  pointer-events: none !important;
}

.elementor-location-header .brd-header-cta::after,
.brd-header-cta::after {
  display: none !important;
  content: none !important;
}

.elementor-location-header .brd-header-cta:hover,
.brd-header-cta:hover {
  color: #ffffff !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.32) 0%,
      rgba(143,255,251,0.18) 44%,
      rgba(255,255,255,0.08) 100%
    ) !important;

  border-color: rgba(143,255,251,0.78) !important;

  box-shadow:
    0 0 24px rgba(56,245,242,0.42),
    0 0 48px rgba(56,245,242,0.16),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 0 22px rgba(143,255,251,0.12) !important;

  transform: translateY(-2px) !important;
}/* =========================================================
   BRD PROFILE PAGES — MOBILE VISUAL CUTOFF FIX
   Fixes cropped/cutoff visuals on mobile profile pages
   ========================================================= */

@media (max-width: 767px) {

  /* Prevent profile-page sections/cards from clipping visuals */
  .brd-profile,
  .brd-profile-page,
  .brd-profile-hero,
  .brd-profile-card,
  .brd-compound-profile,
  .brd-compound-card,
  .brd-visual-card,
  .brd-profile-visual,
  .profile-hero,
  .profile-card,
  .profile-visual,
  .compound-profile,
  .compound-visual,
  .compound-image,
  .peptide-profile,
  .peptide-visual,
  .elementor-widget-container,
  .elementor-image,
  .elementor-widget-image {
    overflow: visible !important;
  }

  /* Make visuals scale down instead of being cropped */
  .brd-profile img,
  .brd-profile-page img,
  .brd-profile-hero img,
  .brd-profile-card img,
  .brd-compound-profile img,
  .brd-compound-card img,
  .brd-visual-card img,
  .brd-profile-visual img,
  .profile-hero img,
  .profile-card img,
  .profile-visual img,
  .compound-profile img,
  .compound-visual img,
  .compound-image img,
  .peptide-profile img,
  .peptide-visual img,
  .elementor-widget-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
  }

  /* Fix visuals that were positioned or offset for desktop */
  .brd-profile-visual,
  .profile-visual,
  .compound-visual,
  .compound-image,
  .peptide-visual,
  .brd-visual-card {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 420px !important;
  }

  /* Remove desktop-only fixed visual heights */
  .brd-profile-hero,
  .brd-profile-card,
  .brd-compound-card,
  .brd-visual-card,
  .profile-hero,
  .profile-card,
  .compound-profile,
  .peptide-profile {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }

  /* Better spacing so visuals do not jam into text */
  .brd-profile-visual,
  .profile-visual,
  .compound-visual,
  .compound-image,
  .peptide-visual {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }
}
/* =========================================================
   BRD MOBILE HEADER / HAMBURGER SHAPE FIX
   Keep this while using the old header class names
   ========================================================= */

@media (max-width: 700px) {

  .elementor-location-header .brd-header,
  .brd-header {
    overflow: visible !important;
    z-index: 99999 !important;
  }

  .elementor-location-header .brd-header .brd-container,
  .brd-header .brd-container {
    overflow: visible !important;
  }

  .elementor-location-header .brd-header .brd-nav-wrap,
  .brd-header .brd-nav-wrap {
    min-height: 66px !important;
    height: auto !important;
    padding: 0 12px !important;
    gap: 10px !important;
    border-radius: 24px !important;
    overflow: visible !important;
  }

  .elementor-location-header .brd-hamburger,
  .brd-hamburger {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;

    padding: 9px !important;
    margin: 0 !important;

    display: flex !important;
    flex: 0 0 42px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 5px !important;

    border-radius: 13px !important;
    border: 1px solid rgba(143, 255, 251, 0.42) !important;

    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.12) 0%,
        rgba(56,245,242,0.08) 100%
      ) !important;

    box-shadow:
      0 0 14px rgba(56,245,242,0.18),
      inset 0 1px 0 rgba(255,255,255,0.20) !important;

    overflow: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  .elementor-location-header .brd-hamburger span,
  .brd-hamburger span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    min-height: 2px !important;
    max-height: 2px !important;
    border-radius: 999px !important;
    background: #8ffffb !important;
    box-shadow: 0 0 8px rgba(56,245,242,0.60) !important;
    flex: 0 0 auto !important;
  }

  .elementor-location-header .brd-hamburger.open span:nth-child(1),
  .brd-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }

  .elementor-location-header .brd-hamburger.open span:nth-child(2),
  .brd-hamburger.open span:nth-child(2) {
    opacity: 0 !important;
  }

  .elementor-location-header .brd-hamburger.open span:nth-child(3),
  .brd-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }

  .elementor-location-header .brd-mobile-menu,
  .brd-mobile-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100000 !important;
  }
}/* =========================================================
   BRD MOBILE HEADER DROPDOWN — FORCE ABOVE PAGE BACKGROUND
   Fixes menu opening behind mobile page visuals/background
   ========================================================= */

@media (max-width: 1024px) {

  /* Put the whole header layer above every page section */
  .elementor-location-header,
  .elementor-location-header .elementor,
  .elementor-location-header .elementor-section,
  .elementor-location-header .elementor-container,
  .elementor-location-header .elementor-widget,
  .elementor-location-header .elementor-widget-container,
  .elementor-location-header .e-con,
  .elementor-location-header .e-con-inner,
  .brd-header,
  .brd-site-header-v2 {
    position: relative !important;
    z-index: 2147483000 !important;
    overflow: visible !important;
    isolation: auto !important;
  }

  .brd-container,
  .brd-site-container-v2,
  .brd-nav-wrap,
  .brd-site-nav-shell-v2 {
    overflow: visible !important;
    z-index: 2147483000 !important;
  }

  /* Old header mobile menu */
  .brd-mobile-menu {
    position: fixed !important;
    top: 86px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    z-index: 2147483001 !important;

    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.92) 100%
      ) !important;

    border: 1px solid rgba(143, 255, 251, 0.28) !important;
    border-radius: 24px !important;

    box-shadow:
      0 22px 60px rgba(0, 0, 0, 0.88),
      0 0 28px rgba(56, 245, 242, 0.18) !important;

    backdrop-filter: blur(20px) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.25) !important;

    pointer-events: auto !important;
  }

  /* New isolated v2 header mobile menu */
  .brd-mobile-menu-v2 {
    position: fixed !important;
    top: 86px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    z-index: 2147483001 !important;

    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.92) 100%
      ) !important;

    border: 1px solid rgba(143, 255, 251, 0.28) !important;
    border-radius: 24px !important;

    box-shadow:
      0 22px 60px rgba(0, 0, 0, 0.88),
      0 0 28px rgba(56, 245, 242, 0.18) !important;

    backdrop-filter: blur(20px) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.25) !important;

    pointer-events: auto !important;
  }

  /* Make sure open states actually display */
  .brd-mobile-menu.open {
    display: flex !important;
  }

  .brd-mobile-details-v2[open] .brd-mobile-menu-v2 {
    display: flex !important;
  }

  /* Prevent page backgrounds/visuals from sitting above the header */
  .brd-page,
  .brd-homepage,
  main,
  section,
  .elementor-location-single,
  .elementor-location-archive,
  .elementor-location-footer {
    z-index: 1 !important;
  }
}

/* Logged-in WordPress admin bar adjustment on mobile */
@media (max-width: 1024px) {
  body.admin-bar .brd-mobile-menu,
  body.admin-bar .brd-mobile-menu-v2 {
    top: 132px !important;
  }
}/* =========================================================
   BRD — PROFILE BUTTONS (global)
   Higher specificity than the inline template rule so it wins
   ========================================================= */

.brd-profile a.brd-btn,
.brd-profile a.brd-btn:link,
.brd-profile a.brd-btn:visited,
.brd-profile a.brd-btn:active {
  position: relative !important;
  overflow: hidden !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  min-height: 40px !important;
  width: fit-content !important;
  padding: 11px 20px !important;
  border-radius: 999px !important;

  color: #eaffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.22) 0%,
      rgba(143,255,251,0.12) 42%,
      rgba(255,255,255,0.06) 100%
    ) !important;

  border: 1px solid rgba(143,255,251,0.48) !important;
  border-top-color: rgba(255,255,255,0.62) !important;

  box-shadow:
    0 0 18px rgba(56,245,242,0.22),
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    inset 0 0 18px rgba(143,255,251,0.08) !important;

  text-shadow: 0 0 10px rgba(56,245,242,0.35) !important;

  backdrop-filter: blur(14px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.35) !important;

  transition: 0.22s ease !important;
}

/* Top gloss — matches the header CTA */
.brd-profile a.brd-btn::before {
  content: "" !important;
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  top: 4px !important;
  height: 42% !important;
  border-radius: inherit !important;
  pointer-events: none !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.42) 0%,
      rgba(255,255,255,0.12) 65%,
      rgba(255,255,255,0) 100%
    ) !important;
}

.brd-profile a.brd-btn:hover {
  color: #ffffff !important;
  transform: translateY(-2px) !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.32) 0%,
      rgba(143,255,251,0.18) 44%,
      rgba(255,255,255,0.08) 100%
    ) !important;

  border-color: rgba(143,255,251,0.78) !important;

  box-shadow:
    0 0 24px rgba(56,245,242,0.42),
    0 0 48px rgba(56,245,242,0.16),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 0 22px rgba(143,255,251,0.12) !important;
}

.brd-profile a.brd-btn:focus-visible {
  outline: 2px solid #8ffffb !important;
  outline-offset: 2px !important;
}

/* Secondary keeps its teal identity */
.brd-profile a.brd-btn.brd-btn-secondary,
.brd-profile a.brd-btn.brd-btn-secondary:link,
.brd-profile a.brd-btn.brd-btn-secondary:visited {
  color: #8ffffb !important;

  background:
    linear-gradient(180deg, rgba(56,245,242,0.12), rgba(0,0,0,0.40)) !important;

  border: 1px solid rgba(143,255,251,0.30) !important;

  box-shadow:
    0 0 12px rgba(56,245,242,0.14),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;

  text-shadow: none !important;
}

.brd-profile a.brd-btn.brd-btn-secondary::before {
  display: none !important;
}

.brd-profile a.brd-btn.brd-btn-secondary:hover {
  color: #ffffff !important;
  border-color: rgba(143,255,251,0.62) !important;
  box-shadow: 0 0 20px rgba(56,245,242,0.28) !important;
}