/**
 * @file
 * Glass / 3D header layout (3 rows) — compact + scroll collapse.
 */

.puya-header {
  --puya-header-bg: rgba(18, 18, 20, 0.78);
  --puya-header-row-bg: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 48%,
    rgba(0, 0, 0, 0.18) 100%
  );
  --puya-header-edge: rgba(255, 255, 255, 0.14);
  --puya-header-inset: rgba(255, 255, 255, 0.2);
  --puya-header-depth: 0 6px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 var(--puya-header-inset),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  --puya-header-text: #f4f7fb;
  --puya-header-muted: rgba(244, 247, 251, 0.7);
  color: var(--puya-header-text) !important;
  background:
    radial-gradient(120% 80% at 10% -20%, rgba(var(--bs-primary-rgb), 0.16), transparent 42%),
    var(--puya-header-bg) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--puya-header-edge);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.2s ease, padding 0.2s ease;
}

html[data-bs-theme="light"] .puya-header,
[data-bs-theme="light"] .puya-header,
html:not([data-bs-theme="dark"]) .puya-header {
  --puya-header-bg: rgba(248, 249, 251, 0.92);
  --puya-header-row-bg: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.62) 55%,
    rgba(15, 23, 42, 0.04) 100%
  );
  --puya-header-edge: rgba(15, 23, 42, 0.12);
  --puya-header-inset: rgba(255, 255, 255, 0.95);
  --puya-header-depth: 0 6px 18px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 var(--puya-header-inset),
    inset 0 -1px 0 rgba(15, 23, 42, 0.05);
  --puya-header-text: #1a1d24;
  --puya-header-muted: rgba(26, 29, 36, 0.62);
  color: #1a1d24 !important;
  background:
    radial-gradient(120% 80% at 10% -20%, rgba(var(--bs-primary-rgb), 0.07), transparent 42%),
    var(--puya-header-bg) !important;
}

/* Force readable link colors (override legacy #header a { white }) */
#header.puya-header a,
.puya-header a {
  color: var(--puya-header-text) !important;
}

html[data-bs-theme="light"] #header.puya-header a,
[data-bs-theme="light"] #header.puya-header a,
html:not([data-bs-theme="dark"]) #header.puya-header a {
  color: #1a1d24 !important;
}

html[data-bs-theme="light"] #header.puya-header .puya-lang-switch__link,
html[data-bs-theme="light"] #header.puya-header .puya-utility-link,
html[data-bs-theme="light"] #header.puya-header .puya-social-btn,
html[data-bs-theme="light"] #header.puya-header .puya-main-menu__link,
html[data-bs-theme="light"] #header.puya-header .puya-header-row--menu .nav-link,
[data-bs-theme="light"] #header.puya-header .puya-lang-switch__link,
[data-bs-theme="light"] #header.puya-header .puya-utility-link,
[data-bs-theme="light"] #header.puya-header .puya-social-btn,
[data-bs-theme="light"] #header.puya-header .puya-main-menu__link,
[data-bs-theme="light"] #header.puya-header .puya-header-row--menu .nav-link,
html:not([data-bs-theme="dark"]) #header.puya-header .puya-lang-switch__link,
html:not([data-bs-theme="dark"]) #header.puya-header .puya-utility-link,
html:not([data-bs-theme="dark"]) #header.puya-header .puya-social-btn,
html:not([data-bs-theme="dark"]) #header.puya-header .puya-main-menu__link,
html:not([data-bs-theme="dark"]) #header.puya-header .puya-header-row--menu .nav-link {
  color: #1a1d24 !important;
}

html[data-bs-theme="light"] #header.puya-header .puya-lang-switch__link,
html[data-bs-theme="light"] #header.puya-header .puya-utility-link,
html[data-bs-theme="light"] #header.puya-header .puya-social-btn,
[data-bs-theme="light"] #header.puya-header .puya-lang-switch__link,
[data-bs-theme="light"] #header.puya-header .puya-utility-link,
[data-bs-theme="light"] #header.puya-header .puya-social-btn,
html:not([data-bs-theme="dark"]) #header.puya-header .puya-lang-switch__link,
html:not([data-bs-theme="dark"]) #header.puya-header .puya-utility-link,
html:not([data-bs-theme="dark"]) #header.puya-header .puya-social-btn {
  color: rgba(26, 29, 36, 0.72) !important;
}

.puya-header-nav {
  padding: 0 !important;
  border-bottom: 0 !important;
  width: 100%;
  background: transparent !important;
}

.puya-header-shell {
  padding-block: 0.35rem 0.4rem;
  padding-inline: 0.85rem;
  max-width: 1400px;
}

.puya-header-desktop {
  gap: 0.35rem;
}

.puya-header-row {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--puya-header-edge);
  border-radius: 0.75rem;
  background: var(--puya-header-row-bg);
  box-shadow: var(--puya-header-depth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, max-height 0.22s ease, margin 0.22s ease, padding 0.22s ease;
}

.puya-header-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 30%,
    transparent 70%,
    rgba(255, 255, 255, 0.04) 100%
  );
  opacity: 0.55;
}

/* Collapse utility + brand on scroll — keep menu + compact logo only */
.puya-header.is-scrolled {
  min-height: 0 !important;
  height: auto !important;
}

.puya-header.is-scrolled .puya-header-nav,
.puya-header.is-scrolled .puya-header-shell,
.puya-header.is-scrolled .puya-header-desktop {
  min-height: 0 !important;
  height: auto !important;
  gap: 0 !important;
}

.puya-header.is-scrolled [data-puya-header-collapse],
.puya-header.is-scrolled .puya-header-row--utility,
.puya-header.is-scrolled .puya-header-row--brand {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.puya-header.is-scrolled .puya-header-shell {
  padding-block: 0.2rem !important;
}

.puya-header.is-scrolled .puya-header-row--menu {
  border-radius: 0.65rem;
  min-height: 0;
  height: auto;
  padding: 0.15rem 0.45rem;
  gap: 0.55rem;
  width: 100%;
}

.puya-header-sticky-logo {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-inline-end: 0.45rem;
  border-inline-end: 1px solid var(--puya-header-edge);
  margin-inline-end: 0.2rem;
  text-decoration: none;
}

.puya-header-sticky-logo img {
  display: block;
  max-height: 34px;
  width: auto;
}

.puya-header.is-scrolled .puya-header-sticky-logo {
  display: inline-flex !important;
}

.puya-header.is-scrolled .puya-header-row--menu .puya-main-menu {
  flex: 1 1 auto;
  min-width: 0;
}

/* —— Row 1: utility —— */
.puya-header-row--utility {
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 2.1rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.puya-header-utility-start,
.puya-header-social {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.puya-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--puya-header-edge);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-bs-theme="light"] .puya-lang-switch,
[data-bs-theme="light"] .puya-lang-switch,
html:not([data-bs-theme="dark"]) .puya-lang-switch {
  background: rgba(255, 255, 255, 0.7);
}

.puya-lang-switch__link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--puya-header-muted) !important;
  text-decoration: none;
  transition: color 0.18s ease;
}

.puya-lang-switch__link:hover,
html[lang="fa"] .puya-lang-switch__link[hreflang="fa"],
html[lang="en"] .puya-lang-switch__link[hreflang="en"] {
  color: var(--puya-header-text) !important;
}

.puya-lang-switch__sep {
  width: 1px;
  height: 0.75rem;
  background: var(--puya-header-edge);
}

.puya-header-utility-divider {
  width: 1px;
  height: 0.85rem;
  background: var(--puya-header-edge);
}

.puya-utility-link {
  font-size: 0.72rem;
  color: var(--puya-header-muted) !important;
  text-decoration: none;
}

.puya-utility-link:hover {
  color: var(--bs-primary) !important;
}

.puya-header .dark-mode-toggle {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  margin: 0 !important;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--puya-header-edge);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: var(--puya-header-text) !important;
  font-size: 0.85rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

html[data-bs-theme="light"] .puya-header .dark-mode-toggle,
[data-bs-theme="light"] .puya-header .dark-mode-toggle,
html:not([data-bs-theme="dark"]) .puya-header .dark-mode-toggle {
  color: #1a1d24 !important;
  background: rgba(255, 255, 255, 0.75);
}

.puya-header .dark-mode-toggle:hover {
  transform: translateY(-1px);
  background: rgba(var(--bs-primary-rgb), 0.18);
  opacity: 1;
}

.puya-header-social__icons {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.puya-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 1px solid var(--puya-header-edge) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--puya-header-muted) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.puya-social-btn i {
  font-size: 0.72rem;
}

.puya-social-btn--img img {
  display: block;
  opacity: 0.85;
}

.puya-social-btn:hover {
  transform: translateY(-1px);
  color: #fff !important;
  background: rgba(var(--bs-primary-rgb), 0.85) !important;
  border-color: rgba(var(--bs-primary-rgb), 0.9) !important;
  box-shadow: 0 6px 14px rgba(var(--bs-primary-rgb), 0.32);
}

.puya-social-btn:hover img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* —— Row 2: brand / search / support —— */
.puya-header-row--brand {
  gap: 0.75rem;
  padding: 0.35rem 0.65rem;
  min-height: 3.1rem;
}

.puya-header-logo {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  background: transparent !important;
}

.puya-header-logo a {
  display: flex;
  align-items: center;
}

.puya-header-logo img {
  padding: 0;
  max-height: 48px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.puya-header-search {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 40rem;
  margin-inline: auto;
}

.puya-search-glass {
  margin: 0 !important;
  position: relative;
  border-radius: 0.9rem;
  padding: 0.12rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.2);
  border: 1px solid var(--puya-header-edge);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 6px rgba(0, 0, 0, 0.16);
  transform: perspective(900px) rotateX(1.5deg);
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-bs-theme="light"] .puya-search-glass,
[data-bs-theme="light"] .puya-search-glass,
html:not([data-bs-theme="dark"]) .puya-search-glass {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.65)),
    rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -2px 6px rgba(15, 23, 42, 0.04);
}

.puya-search-glass:focus-within {
  transform: perspective(900px) rotateX(0deg) translateY(-1px);
  box-shadow:
    0 12px 28px rgba(var(--bs-primary-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(var(--bs-primary-rgb), 0.22);
}

.puya-search-glass form {
  display: flex;
  align-items: stretch;
  position: relative;
  margin: 0;
}

.puya-search-glass .form-type-textfield,
.puya-search-glass .js-form-item-title,
.puya-search-glass .js-form-item {
  width: 100%;
  margin: 0 !important;
  flex: 1 1 auto;
}

.puya-search-glass .form-control,
.puya-search-glass input.form-control {
  height: 2.35rem;
  min-width: 0;
  border: 0 !important;
  border-radius: 0.75rem !important;
  background: rgba(12, 12, 14, 0.42) !important;
  color: var(--puya-header-text) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.24);
  padding-inline: 0.85rem 2.9rem;
  font-size: 0.85rem;
}

html[data-bs-theme="light"] .puya-search-glass .form-control,
html[data-bs-theme="light"] .puya-search-glass input.form-control,
[data-bs-theme="light"] .puya-search-glass .form-control,
[data-bs-theme="light"] .puya-search-glass input.form-control,
html:not([data-bs-theme="dark"]) .puya-search-glass .form-control,
html:not([data-bs-theme="dark"]) .puya-search-glass input.form-control {
  background: rgba(255, 255, 255, 0.82) !important;
  color: #1a1d24 !important;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.05);
}

.puya-search-glass .form-control::placeholder {
  color: var(--puya-header-muted);
}

.puya-search-glass .form-control:focus {
  outline: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(var(--bs-primary-rgb), 0.24);
}

.puya-search-glass form .form-actions {
  position: absolute !important;
  inset-inline-end: 0.28rem;
  inset-inline-start: auto !important;
  top: 50% !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: translateY(-50%);
  z-index: 2;
  margin: 0 !important;
}

html[dir="ltr"] .puya-search-glass form .form-actions {
  inset-inline-end: 0.28rem;
  left: auto !important;
  right: 0.28rem !important;
}

.puya-search-glass .btn,
.puya-search-glass button[type="submit"] {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0.65rem !important;
  font-size: 1rem !important;
  color: #fff !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.95), rgba(var(--bs-primary-rgb), 0.72)) !important;
  box-shadow:
    0 6px 14px rgba(var(--bs-primary-rgb), 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.puya-search-glass .btn:hover,
.puya-search-glass button[type="submit"]:hover {
  transform: translateY(-1px) scale(1.03);
}

.puya-header-support {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.puya-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.06);
  color: var(--puya-header-text) !important;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

html[data-bs-theme="light"] .puya-support-btn,
[data-bs-theme="light"] .puya-support-btn,
html:not([data-bs-theme="dark"]) .puya-support-btn {
  border-color: rgba(15, 23, 42, 0.14);
  color: #1a1d24 !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), transparent 45%),
    rgba(255, 255, 255, 0.65);
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.puya-support-btn i {
  color: var(--bs-primary);
  font-size: 0.85rem;
}

.puya-support-btn::after {
  margin-inline-start: 0.15rem;
}

.puya-support-btn:hover,
.puya-support-btn[aria-expanded="true"] {
  transform: translateY(-1px);
  background:
    linear-gradient(160deg, rgba(var(--bs-primary-rgb), 0.24), transparent 45%),
    rgba(var(--bs-primary-rgb), 0.1);
}

/* —— Row 3: main menu —— */
.puya-header-row--menu {
  padding: 0.1rem 0.3rem;
  overflow-x: auto;
  scrollbar-width: thin;
  gap: 0;
}

.puya-header-row--menu .puya-main-menu {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  gap: 0.08rem;
  margin: 0;
  padding: 0.08rem;
}

.puya-header-row--menu .nav-item {
  display: flex;
  align-items: stretch;
}

.puya-header-row--menu .nav-item::after {
  display: none !important;
}

.puya-main-menu__link,
.puya-header-row--menu .nav-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.05rem;
  padding: 0.3rem 0.65rem !important;
  border-radius: 0.55rem;
  color: var(--puya-header-text) !important;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.puya-main-menu__link:hover,
.puya-header-row--menu .nav-link:hover,
.puya-main-menu__link.active,
.puya-header-row--menu .nav-link.active,
.puya-header-row--menu .nav-item.active > .nav-link {
  color: #fff !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 48%),
    rgba(var(--bs-primary-rgb), 0.9);
  border-color: rgba(var(--bs-primary-rgb), 0.55);
  box-shadow:
    0 6px 14px rgba(var(--bs-primary-rgb), 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* Glass dropdowns */
.puya-glass-dropdown {
  margin-top: 0.35rem !important;
  padding: 0.35rem;
  min-width: 13rem;
  border-radius: 0.8rem !important;
  border: 1px solid var(--puya-header-edge) !important;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(20, 20, 22, 0.94)) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-bs-theme="light"] .puya-glass-dropdown,
[data-bs-theme="light"] .puya-glass-dropdown,
html:not([data-bs-theme="dark"]) .puya-glass-dropdown {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.95)) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.puya-glass-dropdown .dropdown-item {
  padding: 0;
  background: transparent;
  border-radius: 0.55rem;
}

.puya-glass-dropdown .dropdown-item > a,
.puya-glass-dropdown .dropdown-item a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.6rem;
  color: var(--puya-header-text) !important;
  text-decoration: none;
  border-radius: 0.55rem;
}

html[data-bs-theme="light"] .puya-glass-dropdown .dropdown-item a,
[data-bs-theme="light"] .puya-glass-dropdown .dropdown-item a,
html:not([data-bs-theme="dark"]) .puya-glass-dropdown .dropdown-item a {
  color: #1a1d24 !important;
}

.puya-glass-dropdown .dropdown-item > a:hover,
.puya-glass-dropdown .dropdown-item:hover > a {
  background: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary) !important;
}

.puya-header-row--menu .dropdown-menu {
  margin-top: 0.25rem;
}

/* Mobile */
.puya-header-mobile {
  gap: 0.4rem;
  padding: 0.25rem 0.1rem;
}

.puya-glass-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--puya-header-edge);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--puya-header-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

html[data-bs-theme="light"] .puya-glass-icon-btn,
[data-bs-theme="light"] .puya-glass-icon-btn,
html:not([data-bs-theme="dark"]) .puya-glass-icon-btn {
  color: #1a1d24 !important;
  background: rgba(255, 255, 255, 0.75);
}

.puya-glass-icon-btn::after {
  display: none;
}

.puya-header-logo--mobile img {
  max-height: 40px;
  width: auto;
}

@media (max-width: 991.98px) {
  .puya-header-shell {
    padding-block: 0.3rem;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .puya-header,
  .puya-header-row,
  .puya-search-glass,
  .puya-glass-dropdown {
    background-color: #141416;
  }

  html[data-bs-theme="light"] .puya-header,
  html[data-bs-theme="light"] .puya-header-row,
  html[data-bs-theme="light"] .puya-search-glass,
  html[data-bs-theme="light"] .puya-glass-dropdown,
  [data-bs-theme="light"] .puya-header,
  [data-bs-theme="light"] .puya-header-row,
  [data-bs-theme="light"] .puya-search-glass,
  [data-bs-theme="light"] .puya-glass-dropdown,
  html:not([data-bs-theme="dark"]) .puya-header,
  html:not([data-bs-theme="dark"]) .puya-header-row,
  html:not([data-bs-theme="dark"]) .puya-search-glass,
  html:not([data-bs-theme="dark"]) .puya-glass-dropdown {
    background-color: #f5f6f8;
  }
}
