/* DZD Sooq ? Global Site Header
 * Source of truth: docs/previews/header/style.css (APPROVED Visual Lock)
 * Do not redesign. Desktop / Tablet / Mobile via media queries.
 */

.dzd-site-header {
  position: relative;
  z-index: 10050;
  width: 100%;
}

.dzd-site-header .dzd-header {
  position: sticky;
  top: 0;
  z-index: 10050;
}

.dzd-sh--d { display: block; width: 100%; }
.dzd-sh--m { display: none; width: 100%; }

.dzd-site-header .dzd-bottom-nav,
.dzd-site-header .dzd-filters-panel,
.dzd-site-header .dzd-filters-backdrop {
  display: none;
}

@media (max-width: 767px), (max-height: 767px) and (max-width: 1199px) {
  .dzd-sh--d { display: none !important; }
  .dzd-sh--m { display: block; width: 100%; }
  .dzd-site-header .dzd-bottom-nav { display: grid; }
  .dzd-site-header .dzd-filters-backdrop[hidden] { display: none !important; }
  .dzd-site-header .dzd-filters-backdrop:not([hidden]) { display: block; }
  .dzd-site-header .dzd-filters-panel { display: flex; }
  /*
   * Reserve space for the fixed bottom nav so page content (and footer)
   * never sit underneath it. Nav is a layer ? not a footer replacement.
   */
  body.dzd-sooq-has-global-header {
    --dzd-bottom-nav-height: 64px;
    padding-bottom: calc(var(--dzd-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }
}

/* ?? Shared Visual Lock ?? */
:root {
  /* Shared floating popup surface (all header dropdowns) */
  --hdr-popup-bg: #ffffff;
  --hdr-popup-border: rgba(17, 24, 39, 0.08);
  --hdr-popup-radius: 16px;
  --hdr-popup-shadow:
    0 0 0 1px rgba(17, 24, 39, 0.04),
    0 4px 6px -1px rgba(17, 24, 39, 0.06),
    0 16px 40px -8px rgba(17, 24, 39, 0.18);
  --hdr-popup-gap: 10px;
  --hdr-popup-duration: 180ms;
  --hdr-popup-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --hdr-popup-slide: 6px;
}
* { box-sizing: border-box; }
/* Device frame */
/* Sticky header */
.dzd-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dzd-color-border, #d8dae3);
  box-shadow: var(--dzd-shadow-sm);
}
.dzd-header__inner {
  display: grid;
  align-items: center;
  gap: 12px;
  /* Width / gutters: owned by dzd-layout.css (shared with Panel). */
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 68px;
}
/* ?? Mobile Visual Lock: simplified top bar + bottom nav ?? */
/* Filter = same component family as Search field */
/* Hide legacy mobile chrome not used in Visual Lock */
/* Filters panel */
/* Dynamic Filters Engine panel fields (mobile preview) */
/* Bottom navigation */
/* Mobile micro-interactions (press feedback) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* Logo ? icon image + HTML wordmark (selectable text) */
.dzd-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
  color: #5e43d6;
  transition: filter var(--hdr-popup-duration) var(--hdr-popup-ease);
}
.dzd-logo:hover {
  filter: brightness(1.09);
}
.dzd-logo__mark {
  display: block;
  width: 39.6px;
  height: 39.6px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.dzd-logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.05;
  user-select: text;
}
.dzd-logo__name {
  font-size: var(--dzd-fs-md, 16px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #5e43d6;
  font-family: var(--dzd-font-display, "Red Hat Display", Inter, system-ui, sans-serif);
}
.dzd-logo__ar {
  font-size: 9px;
  font-weight: 700;
  color: #5e43d6;
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Arabic Typesetting", sans-serif;
}
/* Center cluster */
.dzd-header__center {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
}
/* ?? Header control hover contract (matches Search field) ?? */
.dzd-chip-btn,
.dzd-icon-btn,
.dzd-lang__btn,
.dzd-cta,
.dzd-cta--link,
.dzd-user__btn {
  border-radius: 22px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}
.dzd-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--dzd-color-border, #d8dae3);
  background: #fff;
  color: var(--dzd-color-text, #1f1a3d);
  font-size: var(--dzd-fs-md, 15px);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.dzd-chip-btn:hover,
.dzd-chip-btn[aria-expanded="true"] {
  border-color: #5e43d6;
  background: rgba(94, 67, 214, 0.08);
  color: #5e43d6;
}
.dzd-chip-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.25);
}
.dzd-chip-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
/* Search */
.dzd-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.dzd-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding-block: 4px;
  padding-inline-start: 14px;
  padding-inline-end: 4px;
  border: 1px solid var(--dzd-color-border, #d8dae3);
  border-radius: 22px;
  background: #f7f5fc;
}
.dzd-search:focus-within {
  border-color: #5e43d6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.18);
}
.dzd-search__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--dzd-color-text-muted, #7a7498);
  pointer-events: none;
}
.dzd-search__icon svg {
  width: 18px;
  height: 18px;
}
.dzd-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  height: 36px;
  font-size: var(--dzd-fs-base, 16px);
  color: var(--dzd-color-text, #1f1a3d);
  outline: none;
}
.dzd-search__input::placeholder {
  color: var(--dzd-color-text-muted, #7a7498);
}
.dzd-search__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  border: 0;
  border-radius: 18px;
  background: #5e43d6;
  color: #fff;
  height: 36px;
  min-width: 36px;
  padding: 0 16px;
  font-size: var(--dzd-fs-md, 15px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(94, 67, 214, 0.22);
}
.dzd-search__go:hover { filter: brightness(1.05); }
.dzd-search__go:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.28);
}
.dzd-search__go svg { width: 16px; height: 16px; }
.dzd-search__go-ico {
  display: none;
  flex-shrink: 0;
  color: #fff;
}
/* Actions */
.dzd-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.dzd-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dzd-color-text, #1f1a3d);
  cursor: pointer;
}
.dzd-icon-btn:hover,
.dzd-icon-btn[aria-expanded="true"] {
  background: rgba(94, 67, 214, 0.08);
  border-color: #5e43d6;
  color: #5e43d6;
}
/* Lightweight header icons ? no bordered hover outline */
.dzd-icon-btn--soft {
  border-color: transparent !important;
}
.dzd-icon-btn--soft:hover,
.dzd-icon-btn--soft[aria-expanded="true"] {
  background: rgba(94, 67, 214, 0.1);
  border-color: transparent !important;
  color: #5e43d6;
  box-shadow: none;
}
.dzd-icon-btn--soft svg {
  transition: color 180ms ease, transform 180ms ease;
}
.dzd-icon-btn--soft:hover svg {
  transform: translateY(-0.5px);
}
.dzd-icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.25);
}
.dzd-icon-btn svg {
  width: 24px;
  height: 24px;
}
.dzd-badge {
  position: absolute;
  top: 6px;
  inset-inline-end: 5px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #5e43d6;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 0 0 1.5px #fff;
  letter-spacing: -0.02em;
}
.dzd-lang { position: relative; }
.dzd-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dzd-color-text-muted-strong, #5c5678);
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
  cursor: pointer;
}
.dzd-lang__btn:hover,
.dzd-lang__btn[aria-expanded="true"] {
  background: rgba(94, 67, 214, 0.08);
  border-color: #5e43d6;
  color: #5e43d6;
}
.dzd-lang__menu {
  position: absolute;
  top: calc(100% + var(--hdr-popup-gap));
  inset-inline-end: 0;
  min-width: 148px;
  padding: 6px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Shared floating popup surface */
  background: var(--hdr-popup-bg);
  border: 1px solid var(--hdr-popup-border);
  border-radius: var(--hdr-popup-radius);
  box-shadow: var(--hdr-popup-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(var(--hdr-popup-slide) * -1));
  transition:
    opacity var(--hdr-popup-duration) var(--hdr-popup-ease),
    transform var(--hdr-popup-duration) var(--hdr-popup-ease),
    visibility var(--hdr-popup-duration) var(--hdr-popup-ease);
}
.dzd-lang__menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.dzd-lang__menu button,
.dzd-lang__menu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: start;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  cursor: pointer;
  color: var(--dzd-color-text, #1f1a3d);
  line-height: 1.35;
}
.dzd-lang__abbr {
  display: none;
}
.dzd-lang__menu button:hover,
.dzd-lang__menu button[aria-current="true"],
.dzd-lang__menu a:hover,
.dzd-lang__menu a[aria-current="true"] {
  background: rgba(94, 67, 214, 0.1);
  color: #5e43d6;
}
.dzd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #5e43d6;
  background: #5e43d6;
  color: #fff;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(94, 67, 214, 0.28);
  white-space: nowrap;
  text-decoration: none;
}
/* Keep Post Ad label white on every page (including Profile) ? beat theme/link :visited. */
.dzd-site-header a.dzd-cta:not(.dzd-cta--link):not(.dzd-cta--ghost),
.dzd-site-header a.dzd-cta:not(.dzd-cta--link):not(.dzd-cta--ghost):link,
.dzd-site-header a.dzd-cta:not(.dzd-cta--link):not(.dzd-cta--ghost):visited,
.dzd-site-header a.dzd-cta:not(.dzd-cta--link):not(.dzd-cta--ghost):hover,
.dzd-site-header a.dzd-cta:not(.dzd-cta--link):not(.dzd-cta--ghost):active,
.dzd-site-header a.dzd-cta:not(.dzd-cta--link):not(.dzd-cta--ghost):focus,
.dzd-site-header a.dzd-cta:not(.dzd-cta--link):not(.dzd-cta--ghost):focus-visible {
  color: #fff !important;
  background: #5e43d6;
  border-color: #5e43d6;
}
.dzd-cta:hover {
  filter: brightness(1.06);
  background: #5e43d6;
  border-color: #5e43d6;
  color: #fff;
  transform: none;
}
.dzd-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.25), 0 8px 20px rgba(94, 67, 214, 0.28);
}
.dzd-cta--ghost {
  background: transparent;
  color: #5e43d6;
  box-shadow: none;
  border: 1px solid rgba(94, 67, 214, 0.28);
}
.dzd-cta--ghost:hover {
  background: rgba(94, 67, 214, 0.08);
  border-color: #5e43d6;
  color: #5e43d6;
  filter: none;
}
.dzd-cta--link {
  background: transparent;
  color: var(--dzd-color-text, #1f1a3d);
  box-shadow: none;
  border: 1px solid transparent;
  gap: 8px;
  padding: 0 12px;
  font-weight: 600;
  cursor: pointer;
}
.dzd-cta--link:hover {
  background: rgba(94, 67, 214, 0.08);
  border-color: #5e43d6;
  color: #5e43d6;
  transform: none;
  filter: none;
}
.dzd-guest {
  display: none;
  align-items: center;
  gap: 6px;
}
.dzd-user {
  display: none;
  position: relative;
}
.dzd-user__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  height: 44px;
  padding: 4px 10px 4px 4px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--dzd-color-text, #1f1a3d);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}
.dzd-user__btn:hover,
.dzd-user__btn[aria-expanded="true"] {
  background: rgba(94, 67, 214, 0.08);
  border-color: #5e43d6;
  color: #5e43d6;
}
.dzd-user__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--dzd-color-accent, #5e43d6);
  color: var(--dzd-color-on-accent, #ffffff);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dzd-user__avatar--biz { border-radius: 10px; }
.dzd-user__avatar:has(.dzd-avatar--business) {
  border-radius: 10px;
}
/* Default: hide Business chrome until data-mode=business (avoids dual avatars/names). */
.dzd-site-header .dzd-user__avatar[data-biz-only],
.dzd-site-header .dzd-user__name[data-biz-only],
.dzd-site-header .dzd-user__sub[data-biz-only],
.dzd-site-header .dzd-menu [data-biz-only] {
  display: none !important;
}
.dzd-user__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.dzd-user__avatar .dzd-avatar {
  --dzd-avatar-size: 36px;
  width: 100%;
  height: 100%;
  flex: none;
  border-radius: inherit;
}
.dzd-user__avatar:has(.dzd-avatar--business) .dzd-avatar,
.dzd-user__avatar--biz .dzd-avatar {
  border-radius: calc(var(--dzd-avatar-size) * 0.22);
  overflow: hidden;
}
.dzd-user__avatar:has(.dzd-avatar--business) .dzd-avatar__img,
.dzd-user__avatar--biz .dzd-avatar__img {
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}
.dzd-user__avatar .dzd-avatar__initials {
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.dzd-user__meta {
  text-align: start;
  line-height: 1.15;
}
.dzd-user__name {
  display: block;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 700;
}
.dzd-user__sub {
  display: block;
  font-size: var(--dzd-fs-xs, 14px);
  color: var(--dzd-color-text-muted, #7a7498);
}
.dzd-biz-badge {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
}
.dzd-menu {
  position: absolute;
  top: calc(100% + var(--hdr-popup-gap));
  inset-inline-end: 0;
  min-width: 268px;
  padding: 8px;
  z-index: 70;
  /* Shared floating popup surface */
  background: var(--hdr-popup-bg);
  border: 1px solid var(--hdr-popup-border);
  border-radius: var(--hdr-popup-radius);
  box-shadow: var(--hdr-popup-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(var(--hdr-popup-slide) * -1));
  transition:
    opacity var(--hdr-popup-duration) var(--hdr-popup-ease),
    transform var(--hdr-popup-duration) var(--hdr-popup-ease),
    visibility var(--hdr-popup-duration) var(--hdr-popup-ease);
}
.dzd-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.dzd-menu__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 12px;
  margin: 0 0 4px;
  width: 100%;
  border: 1px solid rgba(94, 67, 214, 0.12);
  border-radius: 12px;
  background: rgba(94, 67, 214, 0.04);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  text-align: start;
  box-sizing: border-box;
  transition:
    background var(--hdr-popup-duration) var(--hdr-popup-ease),
    border-color var(--hdr-popup-duration) var(--hdr-popup-ease),
    box-shadow var(--hdr-popup-duration) var(--hdr-popup-ease);
}
a.dzd-menu__card:hover,
a.dzd-menu__card:focus-visible {
  background: rgba(94, 67, 214, 0.1);
  border-color: rgba(94, 67, 214, 0.28);
  box-shadow: 0 6px 16px rgba(94, 67, 214, 0.12);
  color: inherit;
  outline: none;
}
a.dzd-menu__card:focus-visible {
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.25);
}
.dzd-menu__card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--dzd-color-accent, #5e43d6);
  color: var(--dzd-color-on-accent, #ffffff);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.dzd-menu__card-avatar--biz { border-radius: 12px; }
.dzd-menu__card-avatar:has(.dzd-avatar--business) {
  border-radius: 12px;
}
.dzd-menu__card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.dzd-menu__card-avatar .dzd-avatar {
  --dzd-avatar-size: 44px;
  width: 100%;
  height: 100%;
  flex: none;
  border-radius: inherit;
}
.dzd-menu__card-avatar:has(.dzd-avatar--business) .dzd-avatar,
.dzd-menu__card-avatar--biz .dzd-avatar {
  border-radius: calc(var(--dzd-avatar-size) * 0.22);
  overflow: hidden;
}
.dzd-menu__card-avatar:has(.dzd-avatar--business) .dzd-avatar__img,
.dzd-menu__card-avatar--biz .dzd-avatar__img {
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}
.dzd-menu__card-avatar .dzd-avatar__initials {
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.dzd-menu__card-meta {
  min-width: 0;
  line-height: 1.2;
}
.dzd-menu__card-name {
  display: block;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 800;
  color: var(--dzd-color-text, #1f1a3d);
}
.dzd-menu__card-type {
  display: block;
  margin-top: 2px;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 600;
  color: var(--dzd-color-text-muted, #7a7498);
}
.dzd-menu__card-trust {
  display: block;
  margin-top: 4px;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
  color: #5e43d6;
}
.dzd-menu a:not(.dzd-menu__card),
.dzd-menu button.dzd-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--dzd-color-text, #1f1a3d);
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: start;
}
.dzd-menu a:not(.dzd-menu__card):hover,
.dzd-menu button.dzd-menu__item:hover {
  background: rgba(94, 67, 214, 0.1);
  color: #5e43d6;
}
.dzd-menu__ico {
  width: 1.25em;
  flex-shrink: 0;
  text-align: center;
  opacity: 0.9;
}
.dzd-menu__sep {
  height: 1px;
  margin: 6px 8px;
  background: var(--dzd-color-border, #d8dae3);
}
.dzd-menu__hint {
  padding: 8px 12px 4px;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dzd-color-text-muted, #7a7498);
}
/* Popovers ? search, province, favorites, messages, notifications, categories (mobile) */
.dzd-popover {
  position: absolute;
  top: calc(100% + var(--hdr-popup-gap));
  inset-inline-start: 0;
  min-width: 280px;
  max-width: min(420px, 92vw);
  z-index: 55;
  max-height: min(70vh, 440px);
  overflow: auto;
  padding: 10px;
  /* Shared floating popup surface */
  background: var(--hdr-popup-bg);
  border: 1px solid var(--hdr-popup-border);
  border-radius: var(--hdr-popup-radius);
  box-shadow: var(--hdr-popup-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(var(--hdr-popup-slide) * -1));
  transition:
    opacity var(--hdr-popup-duration) var(--hdr-popup-ease),
    transform var(--hdr-popup-duration) var(--hdr-popup-ease),
    visibility var(--hdr-popup-duration) var(--hdr-popup-ease);
}
.dzd-popover.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Premium feed panels (Messages / Notifications / Favorites) ? same size, richer surface */
.dzd-popover--feed {
  display: flex;
  flex-direction: column;
  width: min(360px, 92vw);
  min-width: 280px;
  max-width: min(420px, 92vw);
  max-height: min(70vh, 440px);
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  transform-origin: top center;
  transform: translateY(calc(var(--hdr-popup-slide) * -1)) scale(0.96);
}
.dzd-popover--feed.is-open {
  transform: translateY(0) scale(1);
}
.dzd-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}
.dzd-popover__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dzd-color-text, #111827);
}
.dzd-popover__head-link {
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 600;
  color: #5e43d6;
  text-decoration: none;
  white-space: nowrap;
}
.dzd-popover__head-link:hover {
  text-decoration: underline;
}
.dzd-popover__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dzd-popover--feed .dzd-popover__list {
  padding: 6px;
  gap: 2px;
}
.dzd-popover--feed .dzd-popover__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 12px 16px;
  border-radius: 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
}
.dzd-popover--feed .dzd-popover__footer:hover {
  background: rgba(94, 67, 214, 0.08);
  color: #4a32b8;
}
.dzd-popover--feed .dzd-popover__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 36px 24px 32px;
  min-height: 200px;
}
/* display:flex above beats UA [hidden]{display:none} ? force exclusive empty/list. */
.dzd-popover__list[hidden],
.dzd-popover__empty[hidden],
.dzd-popover--feed .dzd-popover__list[hidden],
.dzd-popover--feed .dzd-popover__empty[hidden] {
  display: none !important;
}
.dzd-popover__empty-art {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: rgba(94, 67, 214, 0.08);
  color: #5e43d6;
}
.dzd-popover__empty-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dzd-color-text, #111827);
}
.dzd-popover__empty-copy {
  margin: 0;
  max-width: 240px;
  font-size: var(--dzd-fs-sm, 15px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--dzd-color-text-muted, #6b7280);
}

.dzd-popover--center {
  inset-inline-start: 0;
  inset-inline-end: 0;
  max-width: none;
  width: 100%;
}
.dzd-popover--end {
  inset-inline-start: auto;
  inset-inline-end: 0;
}
.dzd-popover--anchor-btn {
  /* positioned relative to chip button wrapper */
}
.dzd-popover__label {
  margin: 8px 8px 6px;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dzd-color-text-muted, #7a7498);
}
.dzd-popover__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--dzd-color-text, #1f1a3d);
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  text-decoration: none;
  box-sizing: border-box;
}
.dzd-popover__item:hover,
.dzd-popover__item[aria-selected="true"] {
  background: rgba(94, 67, 214, 0.1);
  color: #5e43d6;
}
.dzd-popover__item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.25);
}
.dzd-popover__item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.dzd-popover__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dzd-popover__empty {
  margin: 12px 10px 16px;
  padding: 8px 4px;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--dzd-color-text-muted, #7a7498);
  text-align: center;
}

/* Instant-open skeleton (no "Loading?" text while feed hydrates) */
.dzd-popover__skel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px;
  border-radius: 12px;
  pointer-events: none;
}
.dzd-popover__skel-item--row {
  align-items: flex-start;
}
.dzd-popover__skel-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e8e4f8;
}
.dzd-popover__skel-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.dzd-popover__skel-line {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0ecff 0%, #f8f6ff 45%, #f0ecff 90%);
  background-size: 200% 100%;
  animation: dzd-popover-skel 1.15s ease-in-out infinite;
}
.dzd-popover__skel-line.is-wide { width: 72%; }
.dzd-popover__skel-line.is-meta {
  width: 28%;
  margin-inline-start: auto;
  height: 9px;
}
.dzd-popover__skel-line.is-body { width: 88%; height: 9px; }
.dzd-popover__skel-avatar,
.dzd-popover__skel-thumb,
.dzd-popover__skel-icon {
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0ecff 0%, #f8f6ff 45%, #f0ecff 90%);
  background-size: 200% 100%;
  animation: dzd-popover-skel 1.15s ease-in-out infinite;
}
.dzd-popover__skel-avatar { width: 44px; height: 44px; }
.dzd-popover__skel-thumb { width: 56px; height: 56px; border-radius: 12px; }
.dzd-popover__skel-icon { width: 40px; height: 40px; border-radius: 12px; }
.dzd-popover__skel-item--fav { align-items: center; }
.dzd-popover__skel-dot {
  background: linear-gradient(90deg, #f0ecff 0%, #f8f6ff 45%, #f0ecff 90%);
  background-size: 200% 100%;
  animation: dzd-popover-skel 1.15s ease-in-out infinite;
}
@keyframes dzd-popover-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.dzd-popover__meta {
  margin-inline-start: auto;
  font-size: var(--dzd-fs-xs, 14px);
  color: var(--dzd-color-text-muted, #7a7498);
  font-weight: 500;
}
.dzd-popover__search {
  margin: 4px 8px 8px;
  width: calc(100% - 16px);
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--dzd-color-border, #d8dae3);
  border-radius: 12px;
  font-size: var(--dzd-fs-sm, 15px);
  outline: none;
}
.dzd-popover__search:focus {
  border-color: #5e43d6;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.18);
}

/* Messages rows */
.dzd-msg {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: start;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: start;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    background 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}
.dzd-msg.is-unread {
  background: rgba(94, 67, 214, 0.05);
}
.dzd-msg:hover {
  background: #f8f8fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
}
.dzd-msg.is-unread:hover {
  background: rgba(94, 67, 214, 0.08);
}
.dzd-msg__avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.dzd-msg__avatar img,
.dzd-msg__initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}
.dzd-msg__initials {
  display: grid;
  place-items: center;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 700;
  color: #5e43d6;
  background: rgba(94, 67, 214, 0.08);
}
.dzd-msg__online {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
}
.dzd-msg__main { min-width: 0; }
.dzd-msg__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.dzd-msg__name {
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 650;
  color: var(--dzd-color-text, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dzd-msg.is-unread .dzd-msg__name { font-weight: 700; }
.dzd-msg__time {
  flex-shrink: 0;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 500;
  color: var(--dzd-color-text-muted, #6b7280);
}
.dzd-msg__preview {
  margin: 0 0 6px;
  font-size: var(--dzd-fs-xs, 14px);
  line-height: 1.4;
  color: var(--dzd-color-text-muted-strong, #374151);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dzd-msg.is-unread .dzd-msg__preview {
  color: var(--dzd-color-text, #111827);
  font-weight: 500;
}
.dzd-msg__listing {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  margin-top: 2px;
  padding: 3px 8px 3px 3px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.04);
  box-sizing: border-box;
}
.dzd-msg__listing-thumb,
.dzd-msg__listing img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background: #e5e7eb;
}
.dzd-msg__listing-thumb--empty {
  background: rgba(94, 67, 214, 0.1);
}
.dzd-msg__listing-title,
.dzd-msg__listing span {
  min-width: 0;
  flex: 1 1 auto;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--dzd-color-text-muted, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dzd-msg__badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #5e43d6;
  color: #fff;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
}

/* Notifications rows */
.dzd-notif {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 10px;
  gap: 10px 12px;
  align-items: start;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: start;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    background 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}
.dzd-notif.is-unread {
  background: rgba(94, 67, 214, 0.05);
}
.dzd-notif:hover {
  background: #f8f8fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
}
.dzd-notif--static,
.dzd-notif--static:hover {
  cursor: default;
  transform: none;
  box-shadow: none;
  background: transparent;
}
.dzd-notif--static.is-unread:hover {
  background: rgba(94, 67, 214, 0.05);
}
/* Icons: notifications-type-icons.css (.dzd-sooq-notifications-panel__icon) */
.dzd-notif__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dzd-notif__title {
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 650;
  color: var(--dzd-color-text, #111827);
}
.dzd-notif.is-unread .dzd-notif__title { font-weight: 700; }
.dzd-notif__desc,
.dzd-notif__body {
  font-size: var(--dzd-fs-xs, 14px);
  line-height: 1.4;
  color: var(--dzd-color-text-muted-strong, #374151);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dzd-notif__time {
  margin-top: 2px;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 500;
  color: var(--dzd-color-text-muted, #6b7280);
}
.dzd-notif__dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: #5e43d6;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.08);
  flex-shrink: 0;
}

/* Favorites rows */
.dzd-fav {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition:
    background 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}
.dzd-fav:hover {
  background: #f8f8fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
}
.dzd-fav__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e7eb;
  display: block;
}
.dzd-fav__thumb--empty {
  display: grid;
  place-items: center;
  color: var(--dzd-color-text-muted, #6b7280);
  font-size: 18px;
  background: #f3f4f6;
}
.dzd-fav__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dzd-fav__title {
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 650;
  color: var(--dzd-color-text, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dzd-fav__price {
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 700;
  color: #5e43d6;
  letter-spacing: -0.01em;
}
.dzd-fav__loc {
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 500;
  color: var(--dzd-color-text-muted, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dzd-popover__footer {
  display: block;
  margin: 6px 8px 4px;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 700;
  color: #5e43d6;
  text-decoration: none;
}
.dzd-popover__footer:hover { background: rgba(94, 67, 214, 0.08); }
.dzd-chip-wrap { position: relative; flex-shrink: 0; }
/* Mobile row 1 */
.dzd-m-row1 {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.dzd-hamburger {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--dzd-color-text, #1f1a3d);
}
.dzd-hamburger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.25);
}
/* Drawer */
.dzd-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 61, 0.35);
  z-index: 70;
  display: none;
}
.dzd-drawer-backdrop.is-open { display: block; }
.dzd-drawer {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: min(300px, 86%);
  height: 100%;
  background: #fff;
  z-index: 80;
  box-shadow: 0 18px 44px rgba(31, 26, 61, 0.18);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  padding: 20px 16px;
  overflow: auto;
}
.dzd-drawer.is-open { transform: translateX(0); }
.dzd-drawer__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
}
.dzd-drawer a,
.dzd-drawer button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--dzd-color-text, #1f1a3d);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--dzd-fs-sm, 15px);
  cursor: pointer;
  text-align: start;
}
.dzd-drawer a:hover,
.dzd-drawer button:hover {
  background: rgba(94, 67, 214, 0.1);
  color: #5e43d6;
}
/* FAB */
.dzd-fab {
  display: none;
  position: absolute;
  bottom: 18px;
  inset-inline-end: 14px;
  z-index: 45;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid #5e43d6;
  border-radius: 22px;
  background: #5e43d6;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--dzd-shadow-accent);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  transition:
    filter 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}
.dzd-fab:hover {
  filter: brightness(1.06);
}
/* Mode visibility ? scoped to Header root so Personal ? Business is a full state swap */
.dzd-site-header[data-mode="guest"] .dzd-guest { display: inline-flex; }
.dzd-site-header[data-mode="guest"] .dzd-user { display: none !important; }
/* Guest: show Favorites / Messages / Notifications so they open Auth (not hidden). */
.dzd-site-header[data-mode="guest"] [data-auth-only] { display: inline-flex; }
.dzd-site-header[data-mode="guest"] [data-auth-only] .dzd-popover { display: none !important; }

.dzd-site-header[data-mode="logged"] .dzd-guest { display: none !important; }
.dzd-site-header[data-mode="logged"] .dzd-user { display: inline-flex; }
.dzd-site-header[data-mode="logged"] [data-biz-only] { display: none !important; }
.dzd-site-header[data-mode="logged"] .dzd-user__btn {
  background: transparent;
  border-color: transparent;
  border-radius: 999px;
  padding-inline: 4px 10px;
  box-shadow: none;
}
.dzd-site-header[data-mode="logged"] .dzd-user__btn:hover,
.dzd-site-header[data-mode="logged"] .dzd-user__btn[aria-expanded="true"] {
  background: rgba(94, 67, 214, 0.08);
  border-color: #5e43d6;
  color: #5e43d6;
}
.dzd-site-header[data-mode="logged"] .dzd-user__btn:hover .dzd-user__name,
.dzd-site-header[data-mode="logged"] .dzd-user__btn[aria-expanded="true"] .dzd-user__name,
.dzd-site-header[data-mode="logged"] .dzd-user__btn:hover .dzd-user__sub,
.dzd-site-header[data-mode="logged"] .dzd-user__btn[aria-expanded="true"] .dzd-user__sub {
  color: #5e43d6;
}
.dzd-site-header[data-mode="logged"] .dzd-user__avatar {
  border-radius: 50%;
  box-shadow: none;
}
.dzd-site-header[data-mode="logged"] .dzd-user__avatar[data-personal-only] {
  display: grid !important;
}
.dzd-site-header[data-mode="logged"] .dzd-user__name[data-personal-only],
.dzd-site-header[data-mode="logged"] .dzd-user__sub[data-personal-only] {
  display: block !important;
}
.dzd-site-header[data-mode="logged"] a.dzd-menu__card[data-personal-only] {
  display: flex !important;
}
.dzd-site-header[data-mode="logged"] .dzd-menu a[data-personal-only]:not(.dzd-menu__card) {
  display: flex !important;
}
.dzd-site-header[data-mode="logged"] .dzd-menu__card {
  border-radius: 16px;
  background: transparent;
  border: 0;
}
.dzd-site-header[data-mode="logged"] .dzd-menu__card-avatar {
  border-radius: 50%;
  box-shadow: none;
}
.dzd-site-header[data-mode="logged"] .dzd-menu__card-type {
  color: var(--dzd-color-text-muted, #7a7498);
  font-weight: 600;
}

.dzd-site-header[data-mode="business"] .dzd-guest { display: none !important; }
.dzd-site-header[data-mode="business"] .dzd-user { display: inline-flex; }
.dzd-site-header[data-mode="business"] [data-personal-only] { display: none !important; }
.dzd-site-header[data-mode="business"] .dzd-user__avatar[data-biz-only],
.dzd-site-header[data-mode="business"] .dzd-user__avatar--biz {
  display: grid !important;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(94, 67, 214, 0.28);
  background: #fff;
}
.dzd-site-header[data-mode="business"] .dzd-user__name[data-biz-only],
.dzd-site-header[data-mode="business"] .dzd-user__sub[data-biz-only] {
  display: block !important;
}
.dzd-site-header[data-mode="business"] a.dzd-menu__card[data-biz-only] {
  display: flex !important;
}
.dzd-site-header[data-mode="business"] .dzd-menu a[data-biz-only]:not(.dzd-menu__card) {
  display: flex !important;
}
.dzd-site-header[data-mode="business"] .dzd-user__btn {
  background: linear-gradient(180deg, #f7f5ff 0%, #efeaff 100%);
  border: 1px solid #d9d2f5;
  border-radius: 14px;
  padding-inline: 8px 12px;
  box-shadow: 0 6px 16px rgba(94, 67, 214, 0.12);
  color: var(--dzd-color-text, #1f1a3d);
}
.dzd-site-header[data-mode="business"] .dzd-user__name {
  color: var(--dzd-color-text, #1f1a3d);
}
.dzd-site-header[data-mode="business"] .dzd-user__sub {
  color: var(--dzd-color-text-muted, #7a7498);
  font-weight: 600;
}
.dzd-site-header[data-mode="business"] .dzd-user__btn:hover,
.dzd-site-header[data-mode="business"] .dzd-user__btn[aria-expanded="true"] {
  background: linear-gradient(180deg, #f3efff 0%, #e8e2ff 100%);
  border-color: #5e43d6;
  color: #5e43d6;
}
.dzd-site-header[data-mode="business"] .dzd-user__btn:hover .dzd-user__name,
.dzd-site-header[data-mode="business"] .dzd-user__btn[aria-expanded="true"] .dzd-user__name {
  color: #5e43d6;
}
.dzd-site-header[data-mode="business"] .dzd-user__btn:hover .dzd-user__sub,
.dzd-site-header[data-mode="business"] .dzd-user__btn[aria-expanded="true"] .dzd-user__sub {
  color: #5e43d6;
}
.dzd-site-header[data-mode="business"] .dzd-menu {
  border-color: #d9d2f5;
}
.dzd-site-header[data-mode="business"] .dzd-menu__card {
  background: linear-gradient(135deg, #f8f6ff 0%, #fff 55%);
  border: 1px solid #d8dae3;
  border-radius: 14px;
}
.dzd-site-header[data-mode="business"] .dzd-menu__card-avatar--biz {
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(94, 67, 214, 0.2);
}
.dzd-site-header[data-mode="business"] .dzd-menu__card-type {
  color: var(--dzd-color-text-muted, #7a7498);
  font-weight: 600;
}
/* ?? Categories mega menu (Desktop / Tablet) ?? */
.dzd-mega-backdrop {
  position: absolute;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.dzd-mega-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.dzd-mega {
  position: absolute;
  top: calc(72px + var(--hdr-popup-gap));
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  z-index: 95;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  min-height: 460px;
  max-height: min(78vh, 620px);
  overflow: hidden;
  /* Shared floating popup surface */
  background: var(--hdr-popup-bg);
  border: 1px solid var(--hdr-popup-border);
  border-radius: var(--hdr-popup-radius);
  box-shadow: var(--hdr-popup-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(var(--hdr-popup-slide) * -1));
  transition:
    opacity var(--hdr-popup-duration) var(--hdr-popup-ease),
    transform var(--hdr-popup-duration) var(--hdr-popup-ease),
    visibility var(--hdr-popup-duration) var(--hdr-popup-ease);
}
.dzd-mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.dzd-mega__nav {
  overflow: auto;
  border-inline-end: 1px solid var(--dzd-color-border, #d8dae3);
  background: #faf9fd;
  padding: 10px;
}
.dzd-mega__cat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--dzd-color-text, #1f1a3d);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: start;
  transition: background-color 160ms ease, color 160ms ease;
}
.dzd-mega__cat:hover,
.dzd-mega__cat.is-active,
.dzd-mega__cat:focus-visible {
  background: rgba(94, 67, 214, 0.1);
  color: #5e43d6;
  outline: none;
}
.dzd-mega__cat-icon {
  width: 1.5em;
  text-align: center;
  flex-shrink: 0;
}
.dzd-mega__cat-label { flex: 1; min-width: 0; }
.dzd-mega__cat-chevron {
  opacity: 0.45;
  font-size: 16px;
}
.dzd-mega__panel {
  overflow: auto;
  padding: 20px 22px;
  background: #fff;
}
.dzd-mega__panel-title {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 800;
  color: var(--dzd-color-text, #1f1a3d);
  letter-spacing: -0.02em;
}
.dzd-mega__groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px 24px;
}
.dzd-mega__group-title {
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dzd-color-text-muted, #7a7498);
}
.dzd-mega__subs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dzd-mega__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--dzd-color-text, #1f1a3d);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.dzd-mega__sub-bullet {
  color: #5e43d6;
  font-weight: 800;
  opacity: 0.7;
  flex-shrink: 0;
}
.dzd-mega__sub:hover,
.dzd-mega__sub:focus-visible {
  background: rgba(94, 67, 214, 0.1);
  border-color: #5e43d6;
  color: #5e43d6;
  outline: none;
}
.dzd-province-list {
  max-height: 280px;
  overflow: auto;
}
@media (prefers-reduced-motion: reduce) {
  .dzd-filter-btn,
  .dzd-bottom-nav__item,
  .dzd-filters-chip,
  .dzd-logo--compact,
  .dzd-filters-panel,
  .dzd-filters-backdrop {
    transition: none !important;
  }

  .dzd-filter-btn:active,
  .dzd-bottom-nav__item:active,
  .dzd-filters-chip:active,
  .dzd-logo--compact:active {
    transform: none !important;
  }
}

/* ?? Desktop Visual Lock ?? */
@media (min-width: 1200px) {
.dzd-header__inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.dzd-bottom-nav {
  display: none !important;
}
.dzd-filters-panel {
  display: none !important;
}
.dzd-filters-backdrop {
  display: none !important;
}
.dzd-filter-btn {
  display: none !important;
}
.dzd-header__center-row {
  display: contents;
}
.dzd-m-row1 { display: none; }
}

/* ?? Tablet Visual Lock ??
 * Require min-height 768 so phone landscape (wide but short) stays on phone chrome.
 */
@media (min-width: 768px) and (max-width: 1199px) and (min-height: 768px) {
.dzd-header__inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.dzd-bottom-nav {
  display: none !important;
}
.dzd-filters-panel {
  display: none !important;
}
.dzd-filters-backdrop {
  display: none !important;
}
.dzd-filter-btn {
  display: none !important;
}
.dzd-header__center-row {
  display: contents;
}
.dzd-m-row1 { display: none; }
.dzd-header__inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 10px;
}
.dzd-bottom-nav {
  display: none !important;
}
.dzd-filters-panel {
  display: none !important;
}
.dzd-filters-backdrop {
  display: none !important;
}
.dzd-filter-btn {
  display: none !important;
}
.dzd-logo__mark {
  width: 36px;
  height: 36px;
}
.dzd-logo__name { font-size: var(--dzd-fs-sm, 15px); }
.dzd-logo__ar { font-size: 8.1px; }
.dzd-chip-btn__label { display: none; }
.dzd-header__center-row {
  display: contents;
}
.dzd-search__go-label { display: none; }
.dzd-search__go {
  padding: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  color: #fff;
}
.dzd-search__go-ico {
  display: block;
  width: 18px;
  height: 18px;
  color: #fff;
}
.dzd-m-row1 { display: none; }
.dzd-user__meta { display: none; }
.dzd-lang__btn {
  min-width: 0;
  padding: 0 10px;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 800;
  letter-spacing: 0.04em;
  gap: 4px;
}
/* Tablet: compact abbr in the header button only; full names in the dropdown. */
.dzd-lang__btn .dzd-lang__full {
  display: none !important;
}
.dzd-lang__btn .dzd-lang__abbr {
  display: inline !important;
}
.dzd-lang__menu .dzd-lang__full {
  display: inline !important;
}
.dzd-lang__menu .dzd-lang__abbr {
  display: none !important;
}
.dzd-lang__menu a {
  font-weight: 800;
  letter-spacing: 0.02em;
}
.dzd-mega {
  top: calc(68px + var(--hdr-popup-gap));
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  min-height: 380px;
}
  /*
   * Tablet-only: enlarge the category chevron hit target so users can open
   * the submenu without tapping the category name (name navigates).
   */
  .dzd-mega__cat-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    margin-inline-end: -6px;
    border-radius: 10px;
    opacity: 0.7;
  }
  .dzd-mega__cat-chevron:active {
    background: rgba(94, 67, 214, 0.12);
  }
}

/*
 * Narrow tablet micro-range only (iPad Mini start width).
 * Compress header chrome to prevent icon overlap ? does not change
 * Mobile ?767 / Tablet 768?1199 / Desktop ?1200 shells.
 * From 778px the normal tablet rules above apply unchanged.
 */
@media (min-width: 768px) and (max-width: 777px) {
  .dzd-header__inner {
    gap: 6px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .dzd-logo {
    gap: 6px;
    min-height: 40px;
  }

  .dzd-logo__mark {
    width: 32px;
    height: 32px;
  }

  .dzd-logo__name {
    font-size: var(--dzd-fs-xs, 14px);
  }

  .dzd-logo__ar {
    font-size: 7.5px;
  }

  .dzd-header__center {
    gap: 4px;
  }

  .dzd-chip-btn {
    min-height: 40px;
    height: 40px;
    padding: 0 8px;
    gap: 4px;
  }

  /* Label already hidden on tablet; drop decorative chevron to reclaim a few px. */
  .dzd-chip-btn[data-open="province"] > svg:last-of-type {
    display: none;
  }

  .dzd-search {
    gap: 6px;
    min-height: 40px;
    height: 40px;
    padding-block: 3px;
    padding-inline-start: 10px;
    padding-inline-end: 3px;
  }

  .dzd-search__go {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .dzd-actions {
    gap: 0;
  }

  .dzd-icon-btn {
    width: 40px;
    height: 40px;
  }

  .dzd-icon-btn svg {
    width: 22px;
    height: 22px;
  }

  .dzd-lang__btn {
    min-height: 40px;
    padding: 0 6px;
  }

  .dzd-cta {
    min-height: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: var(--dzd-fs-sm, 15px);
    gap: 4px;
  }

  .dzd-cta--link {
    padding: 0 8px;
    gap: 6px;
    font-size: var(--dzd-fs-sm, 15px);
  }

  .dzd-user__btn {
    min-height: 40px;
    height: 40px;
    padding: 2px 4px 2px 2px;
    gap: 2px;
  }

  .dzd-user__avatar {
    width: 32px;
    height: 32px;
  }

  .dzd-user__avatar .dzd-avatar {
    --dzd-avatar-size: 32px;
  }
}

/* ?? Mobile Visual Lock ??
 * Include short landscape phones (height ?767, width ?1199).
 */
@media (max-width: 767px), (max-height: 767px) and (max-width: 1199px) {
.dzd-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  column-gap: 8px;
  padding: 10px 12px;
  min-height: 56px;
}
.dzd-logo__mark {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}
.dzd-logo__name { display: none; }
.dzd-logo__ar { display: none; }
.dzd-header--mobile-simple {
  flex-shrink: 0;
}
.dzd-m-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  column-gap: 8px;
  width: 100%;
}
.dzd-lang--mobile {
  display: none !important;
}
.dzd-lang--mobile .dzd-lang__btn {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  gap: 2px;
}
.dzd-lang--mobile .dzd-lang__menu {
  inset-inline-start: 0;
  inset-inline-end: auto;
  min-width: 9.5rem;
}
.dzd-search-wrap--mobile {
  flex: initial;
  min-width: 0;
  width: 100%;
  order: 0;
  justify-self: stretch;
}
.dzd-search--mobile {
  width: 100%;
  padding-inline-end: 12px;
}
.dzd-search--mobile .dzd-search__go {
  display: none !important;
}
.dzd-filter-btn {
  position: relative;
  flex-shrink: 0;
  justify-self: end;
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--dzd-color-border, #d8dae3);
  border-radius: 22px;
  background: #f7f5fc;
  color: var(--dzd-color-text-muted, #7a7498);
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 160ms var(--hdr-popup-ease),
    color 160ms var(--hdr-popup-ease),
    border-color 160ms var(--hdr-popup-ease),
    box-shadow 160ms var(--hdr-popup-ease),
    transform 140ms var(--hdr-popup-ease);
  -webkit-tap-highlight-color: transparent;
}
.dzd-filter-btn__ico {
  display: grid;
  place-items: center;
  line-height: 0;
  transition: color 160ms var(--hdr-popup-ease), transform 160ms var(--hdr-popup-ease);
}
.dzd-filter-btn:hover {
  border-color: #5e43d6;
  background: #fff;
  color: #5e43d6;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.18);
}
.dzd-filter-btn:active,
.dzd-filter-btn.is-pressed {
  transform: scale(0.97);
}
.dzd-filter-btn[aria-expanded="true"],
.dzd-filter-btn.is-active {
  border-color: #5e43d6;
  background: #fff;
  color: #5e43d6;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.18);
}
.dzd-filter-btn:focus-visible {
  outline: none;
  border-color: #5e43d6;
  background: #fff;
  color: #5e43d6;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.18);
}
.dzd-filter-btn__badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #5e43d6;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}
.dzd-filter-btn__badge[hidden] {
  display: none !important;
}
.dzd-fab,
.dzd-drawer,
.dzd-drawer-backdrop,
.dzd-m-row1:not(.dzd-m-topbar),
.dzd-header__center-row {
  display: none !important;
}
.dzd-filters-backdrop {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(31, 26, 61, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--hdr-popup-duration) var(--hdr-popup-ease), visibility var(--hdr-popup-duration);
}
.dzd-filters-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dzd-filters-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  max-height: min(78%, 560px);
  display: flex;
  flex-direction: column;
  background: var(--hdr-popup-bg, #fff);
  border: 1px solid var(--hdr-popup-border, #ececec);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--hdr-popup-shadow);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(16px + 72px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform var(--hdr-popup-duration) var(--hdr-popup-ease),
    visibility var(--hdr-popup-duration);
}
.dzd-filters-panel.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.dzd-filters-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.dzd-filters-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dzd-filters-panel__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--dzd-color-text, #1f1a3d);
  cursor: pointer;
  transition:
    background-color 160ms var(--hdr-popup-ease),
    color 160ms var(--hdr-popup-ease),
    transform 140ms var(--hdr-popup-ease);
}
.dzd-filters-panel__close:hover {
  background: rgba(94, 67, 214, 0.08);
  color: #5e43d6;
}
.dzd-filters-panel__close:active {
  transform: scale(0.97);
}
.dzd-filters-panel__lede {
  margin: 0 0 12px;
  font-size: var(--dzd-fs-sm, 15px);
  color: var(--dzd-color-text-muted, #7a7498);
  line-height: 1.45;
}
.dzd-filters-panel__body {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}
.dzd-filters-chip {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--hdr-popup-border, #ececec);
  border-radius: 14px;
  background: #fff;
  color: var(--dzd-color-text, #1f1a3d);
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition:
    background-color 160ms var(--hdr-popup-ease),
    border-color 160ms var(--hdr-popup-ease),
    color 160ms var(--hdr-popup-ease),
    transform 140ms var(--hdr-popup-ease);
}
.dzd-filters-chip:hover {
  border-color: rgba(94, 67, 214, 0.35);
  background: rgba(94, 67, 214, 0.05);
}
.dzd-filters-chip:active {
  transform: scale(0.98);
}
.dzd-filters-chip[aria-pressed="true"] {
  border-color: #5e43d6;
  background: rgba(94, 67, 214, 0.1);
  color: #5e43d6;
}
.dzd-ff {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.dzd-ff__label {
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dzd-color-text-muted, #7a7498);
}
.dzd-ff__control,
.dzd-ff select,
.dzd-ff input[type="number"],
.dzd-ff input[type="text"] {
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--dzd-color-border, #d8dae3);
  border-radius: 22px;
  background: #f7f5fc;
  color: var(--dzd-color-text, #1f1a3d);
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  font-family: inherit;
}
.dzd-ff select:focus,
.dzd-ff input:focus {
  outline: none;
  border-color: #5e43d6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.18);
}
.dzd-ff__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dzd-ff__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dzd-ff__radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--dzd-color-border, #d8dae3);
  border-radius: 999px;
  background: #fff;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  cursor: pointer;
  color: var(--dzd-color-text, #1f1a3d);
}
.dzd-ff__radio.is-on {
  border-color: #5e43d6;
  background: rgba(94, 67, 214, 0.1);
  color: #5e43d6;
}
.dzd-ff__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dzd-filters-panel__foot {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.dzd-filters-panel__foot .dzd-cta {
  flex: 1;
  border-radius: 22px;
  transition:
    filter 160ms var(--hdr-popup-ease),
    transform 140ms var(--hdr-popup-ease),
    background-color 160ms var(--hdr-popup-ease);
}
.dzd-filters-panel__foot .dzd-cta:active {
  transform: scale(0.98);
}
.dzd-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  min-height: calc(var(--dzd-bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px));
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--dzd-color-surface, #ffffff);
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0;
  box-shadow: 0 -6px 24px rgba(31, 26, 61, 0.08);
  overflow: visible;
}
.dzd-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  min-height: 48px;
  padding: 4px 2px 2px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  /* Beat theme `a { color: accent }` ? inactive is always muted gray. */
  color: var(--dzd-color-text-muted, #5b5f73);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 160ms var(--hdr-popup-ease),
    background-color 160ms var(--hdr-popup-ease),
    transform 140ms var(--hdr-popup-ease);
}
.dzd-bottom-nav a.dzd-bottom-nav__item {
  color: var(--dzd-color-text-muted, #5b5f73);
}
.dzd-bottom-nav a.dzd-bottom-nav__item.is-active {
  color: #5e43d6;
}
.dzd-bottom-nav a.dzd-bottom-nav__item--post,
.dzd-bottom-nav a.dzd-bottom-nav__item--post .dzd-bottom-nav__label {
  color: #5e43d6;
}
.dzd-bottom-nav__item:active {
  transform: scale(0.97);
}
.dzd-bottom-nav__ico-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.dzd-bottom-nav__ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: color 160ms var(--hdr-popup-ease), transform 160ms var(--hdr-popup-ease);
}
.dzd-bottom-nav__ico--brand {
  background: transparent;
}
.dzd-bottom-nav__brand {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* Brand PNG is purple ? gray it when Home is not the active route. */
  filter: grayscale(1) brightness(0.85);
  opacity: 0.72;
  transition:
    filter 160ms var(--hdr-popup-ease),
    opacity 160ms var(--hdr-popup-ease);
}
.dzd-bottom-nav__item.is-active .dzd-bottom-nav__brand,
.dzd-bottom-nav__item:hover .dzd-bottom-nav__brand {
  filter: none;
  opacity: 1;
}
.dzd-bottom-nav__badge {
  position: absolute;
  top: -5px;
  inset-inline-end: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #5e43d6;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--dzd-color-surface, #ffffff);
  pointer-events: none;
  z-index: 1;
}
.dzd-bottom-nav__badge[hidden] {
  display: none !important;
}
.dzd-bottom-nav__label {
  max-width: 100%;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dzd-bottom-nav__item:hover {
  color: #5e43d6;
  background: rgba(94, 67, 214, 0.06);
}
.dzd-bottom-nav__item.is-active {
  color: #5e43d6;
}
.dzd-bottom-nav__item.is-active .dzd-bottom-nav__ico svg path,
.dzd-bottom-nav__item.is-active .dzd-bottom-nav__ico svg circle,
.dzd-bottom-nav__item.is-active .dzd-bottom-nav__ico svg rect,
.dzd-bottom-nav__item.is-active .dzd-bottom-nav__ico svg line {
  stroke: #5e43d6;
}
/* Inactive SVG icons follow the item's muted gray (currentColor). */
.dzd-bottom-nav__item:not(.is-active):not(.dzd-bottom-nav__item--post) .dzd-bottom-nav__ico svg path,
.dzd-bottom-nav__item:not(.is-active):not(.dzd-bottom-nav__item--post) .dzd-bottom-nav__ico svg circle,
.dzd-bottom-nav__item:not(.is-active):not(.dzd-bottom-nav__item--post) .dzd-bottom-nav__ico svg rect,
.dzd-bottom-nav__item:not(.is-active):not(.dzd-bottom-nav__item--post) .dzd-bottom-nav__ico svg line {
  stroke: currentColor;
}
.dzd-bottom-nav__item--post {
  color: #5e43d6;
  justify-content: flex-end;
}
.dzd-bottom-nav__item--post .dzd-bottom-nav__post {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -18px;
  border-radius: 16px;
  background: #5e43d6;
  color: #fff;
  box-shadow:
    0 8px 20px rgba(94, 67, 214, 0.35),
    0 0 0 4px var(--dzd-color-surface, #ffffff);
  transition:
    filter 160ms var(--hdr-popup-ease),
    transform 140ms var(--hdr-popup-ease);
}
.dzd-bottom-nav__item--post .dzd-bottom-nav__post svg path {
  stroke: #fff;
}
.dzd-bottom-nav__item--post:hover .dzd-bottom-nav__post,
.dzd-bottom-nav__item--post.is-active .dzd-bottom-nav__post {
  filter: brightness(1.06);
}
.dzd-bottom-nav__item--post:active .dzd-bottom-nav__post {
  transform: scale(0.97);
}
.dzd-bottom-nav__item--post .dzd-bottom-nav__label {
  margin-top: 0;
  color: #5e43d6;
}
.dzd-logo--compact,
.dzd-popover__item,
.dzd-search {
  transition: transform 140ms var(--hdr-popup-ease);
}
.dzd-logo--compact:active {
  transform: scale(0.97);
  filter: brightness(1.09);
}
.dzd-popover__item:active {
  transform: scale(0.98);
}
.dzd-header__center {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}
.dzd-header__center-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dzd-search-wrap { width: 100%; order: -1; }
.dzd-search__go-label { display: none; }
.dzd-search__go {
  display: none !important;
}
.dzd-chip-wrap { width: 100%; }
.dzd-chip-wrap .dzd-chip-btn { width: 100%; justify-content: center; }
.dzd-chip-wrap .dzd-popover {
  inset-inline-start: 0;
  inset-inline-end: 0;
  width: auto;
  max-width: none;
}
.dzd-m-row1 { display: none; }
.dzd-header__desktop-actions { display: none; }
.dzd-fab { display: none !important; }
.dzd-mega,
.dzd-mega-backdrop { display: none !important; }

  /*
   * Pin to the visual viewport bottom on mobile browsers.
   * --dzd-vv-bottom-inset stays 0 for URL-bar show/hide (modern browsers already
   * pin fixed elements to the visual viewport). site-header.js only sets a
   * negative inset while the IME keyboard is open so the nav does not ride up.
   * Safe-area remains in padding/min-height ? do not fold it into this inset.
   */
  .dzd-bottom-nav {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: var(--dzd-vv-bottom-inset, 0px);
    z-index: 10060;
  }

  /* Full-screen mobile chat: hide global bottom nav while a thread is open. */
  body.dzd-messages-thread-open .dzd-bottom-nav {
    display: none !important;
  }

  body.dzd-messages-thread-open.dzd-sooq-has-global-header {
    padding-bottom: 0;
  }

  /* Hide site header chrome so chat feels like a dedicated messaging app. */
  body.dzd-messages-thread-open .dzd-site-header,
  body.dzd-messages-thread-open .dzd-header,
  body.dzd-messages-thread-open .dzd-header--mobile-simple,
  body.dzd-messages-thread-open [data-dzd-mobile-home-chrome] {
    display: none !important;
  }

  .dzd-filters-backdrop {
    position: fixed !important;
    inset: 0;
    z-index: 10070;
  }
  .dzd-filters-panel {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10080;
  }
}

/* ?? Kill Listivo / Elementor Menu completely when Global Header is active ?? */
body.dzd-sooq-has-global-header .listivo-menu-v2-wrapper,
body.dzd-sooq-has-global-header .listivo-menu-v2,
body.dzd-sooq-has-global-header .listivo-menu-mobile-v2,
body.dzd-sooq-has-global-header .listivo-menu-sticky-holder,
body.dzd-sooq-has-global-header .listivo-menu-mobile-v2-mask,
body.dzd-sooq-has-global-header .listivo-dark-mask,
body.dzd-sooq-has-global-header .listivo-menu,
body.dzd-sooq-has-global-header .listivo-menu-v2__container,
body.dzd-sooq-has-global-header .elementor-widget-lst_menu_v2,
body.dzd-sooq-has-global-header .elementor-widget-lst_menu,
body.dzd-sooq-has-global-header .elementor-widget-menu_v2,
body.dzd-sooq-has-global-header .elementor-widget-menu,
body.dzd-sooq-has-global-header [data-widget_type="lst_menu_v2.default"],
body.dzd-sooq-has-global-header [data-widget_type="lst_menu.default"],
body.dzd-sooq-has-global-header [data-widget_type^="lst_menu"],
body.dzd-sooq-has-global-header .elementor-element[data-widget_type*="menu_v2"],
body.dzd-sooq-has-global-header .elementor-element[data-widget_type*="lst_menu"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -99999px !important;
  width: 0 !important;
}

body.dzd-sooq-has-global-header.listivo-menu-sticky,
body.dzd-sooq-has-global-header.listivo-menu-sticky--active,
body.dzd-sooq-has-global-header.listivo-menu-mobile-sticky-active,
body.dzd-sooq-has-global-header.listivo-menu-transparent {
  padding-top: 0 !important;
}

/* ?? Preview mode / owns-business (mapped from .hdr-device) ?? */

/* ?? Logout confirmation modal ?? */
.dzd-logout-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}
.dzd-logout-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dzd-logout-modal[hidden] {
  display: none !important;
}
.dzd-logout-modal:not([hidden]) {
  display: flex;
}
.dzd-logout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.dzd-logout-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d8dae3;
  box-shadow:
    0 24px 64px rgba(20, 12, 60, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  transform: translateY(10px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
}
.dzd-logout-modal.is-open .dzd-logout-modal__dialog {
  transform: translateY(0) scale(1);
}
.dzd-logout-modal__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #1f1a3d;
  line-height: 1.25;
}
.dzd-logout-modal__body {
  margin: 0 0 22px;
  font-size: var(--dzd-fs-sm, 15px);
  line-height: 1.5;
  color: #7a7498;
  font-weight: 500;
}
.dzd-logout-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.dzd-logout-modal__btn {
  min-width: 120px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    filter 160ms ease;
}
.dzd-logout-modal__btn--ghost {
  background: #f6f4ff;
  border-color: #d8dae3;
  color: #1f1a3d;
}
.dzd-logout-modal__btn--ghost:hover {
  background: #efeaff;
  border-color: #d9d2f5;
}
.dzd-logout-modal__btn--danger {
  background: #5e43d6;
  color: #fff;
}
.dzd-logout-modal__btn--danger:hover {
  filter: brightness(1.06);
}
.dzd-logout-modal__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 67, 214, 0.28);
}

/* Mega overlay must cover viewport on live site */
.dzd-site-header .dzd-mega-backdrop {
  position: fixed !important;
  inset: 0;
  z-index: 10040;
}
.dzd-site-header .dzd-mega {
  position: fixed !important;
  z-index: 10045;
  /* Cancel base .dzd-mega inset-inline so JS --dzd-mega-left can pin to the Categories trigger (LTR+RTL). */
  inset-inline: auto;
  left: var(--dzd-mega-left, 50%);
  right: auto;
  transform: var(--dzd-mega-transform, translateX(-50%));
  /*
   * Gap is OUTSIDE the menu: header bottom + 12px.
   * JS sets --dzd-mega-top from the live header rect (admin bar / sticky safe).
   * Fallback assumes ~76px header when JS has not measured yet.
   */
  top: var(--dzd-mega-top, calc(76px + 12px));
  width: min(1120px, calc(100vw - 32px));
}
/* Invisible hover bridge so the external gap is not a mouse dead-zone. */
.dzd-site-header .dzd-mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--mega-hover-bridge, 12px));
  height: var(--mega-hover-bridge, 12px);
}
.dzd-site-header .dzd-mega.is-open {
  transform: var(--dzd-mega-transform, translateX(-50%));
}

/* Ensure popovers escape sticky header clipping */
.dzd-site-header .dzd-header {
  overflow: visible;
}
.dzd-site-header .dzd-header__inner,
.dzd-site-header .dzd-chip-wrap,
.dzd-site-header .dzd-actions,
.dzd-site-header .dzd-search-wrap {
  overflow: visible;
}

/* ?? Smart App Download Banner (mobile / tablet browsers) ?? */
.dzd-app-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  pointer-events: none;
  padding: env(safe-area-inset-top, 0px) 10px 0;
  box-sizing: border-box;
}
.dzd-app-banner.is-visible {
  display: block;
  pointer-events: auto;
}
.dzd-app-banner__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 8px auto 0;
  padding: 10px 10px 10px 12px;
  background: #ffffff;
  border: 1px solid var(--dzd-border, #D8DAE3);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(17, 19, 34, 0.06),
    0 8px 24px rgba(17, 19, 34, 0.10);
}
.dzd-app-banner__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  /* Was malformed #1A5E43D6 (reads as green). Keep logo tile on white. */
  background: #ffffff;
}
.dzd-app-banner__copy {
  flex: 1 1 auto;
  min-width: 0;
}
.dzd-app-banner__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dzd-text, #111322);
}
.dzd-app-banner__body {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--dzd-text-muted, #5B5F73);
}
.dzd-app-banner__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #5E43D6;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}
.dzd-app-banner__cta:hover,
.dzd-app-banner__cta:focus-visible {
  filter: brightness(1.05);
  outline: none;
}
.dzd-app-banner__close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dzd-text-muted, #5B5F73);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.dzd-app-banner__close:hover,
.dzd-app-banner__close:focus-visible {
  background: var(--dzd-surface-muted, #F6F7FA);
  color: var(--dzd-text, #111322);
  outline: none;
}
@media (min-width: 1200px) {
  .dzd-app-banner {
    display: none !important;
  }
}
body.dzd-messages-thread-open .dzd-app-banner,
body.dzd-pl-active .dzd-app-banner {
  display: none !important;
}
