/* Biekar — Premium Header */
:root {
  --bk-header-h: 108px;
  --bk-header-h-scrolled: 88px;
  --bk-announce-h: 40px;
  --bk-brand: #f7951f;
  --bk-brand-light: #ffb347;
  --bk-brand-dark: #e67e22;
  --bk-ink: #1a1d26;
  --bk-muted: #6b7280;
  --bk-surface: #f8f9fc;
}

/* Page offsets */
.biekar-home .bk-hero {
  margin-top: calc(var(--bk-header-h) + var(--bk-announce-h));
}
.bk-posts-page,
.bk-category-page,
.bk-ads-page {
  padding-top: calc(var(--bk-header-h) + var(--bk-announce-h) + 1.25rem) !important;
}

/* ══ Announcement Bar ══ */
.bk-announce {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  height: var(--bk-announce-h);
  background: linear-gradient(90deg, #0f1117 0%, #1a2035 40%, #0f1117 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(247,149,31,0.2);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), height 0.3s ease;
  overflow: hidden;
}
.bk-announce.is-hidden {
  transform: translateY(-100%);
  height: 0;
  pointer-events: none;
}
.bk-announce__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}
.bk-announce__dot {
  width: 8px;
  height: 8px;
  background: #f7951f;
  border-radius: 50%;
  flex-shrink: 0;
  animation: bkAnnouncePulse 2s ease-in-out infinite;
}
@keyframes bkAnnouncePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(247,149,31,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(247,149,31,0); }
}
.bk-announce__text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.bk-announce__text strong { color: #ffb347; }
.bk-announce__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  background: rgba(247,149,31,0.15);
  border: 1px solid rgba(247,149,31,0.3);
  border-radius: 50px;
  color: #f7951f;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.bk-announce__link:hover {
  background: #f7951f;
  color: #fff;
  border-color: #f7951f;
}
.bk-announce__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.bk-announce__close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
@media (max-width: 575px) {
  .bk-announce__link { display: none; }
  .bk-announce__text { font-size: 0.72rem; }
}

/* ══ Header Shell ══ */
.bk-header {
  position: fixed;
  top: var(--bk-announce-h);
  left: 0;
  right: 0;
  z-index: 1050;
  height: var(--bk-header-h);
  font-family: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border-bottom: 1px solid rgba(15,17,23,0.06);
  transition: top 0.4s ease, height 0.4s cubic-bezier(0.22,1,0.36,1),
              background 0.35s ease, box-shadow 0.35s ease;
}
.bk-header.announce-hidden {
  top: 0;
}

/* Animated top accent bar */
.bk-header__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #f7951f 20%, #ffb347 50%, #f7951f 80%, transparent 100%);
  background-size: 300% 100%;
  animation: bkAccentFlow 6s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes bkAccentFlow {
  0%,100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.bk-header__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, transparent 60%);
  pointer-events: none;
}

.bk-header__glow {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247,149,31,0.4), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bk-header.is-scrolled {
  height: var(--bk-header-h-scrolled);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 8px 32px rgba(15,17,23,0.1);
}
.bk-header.is-scrolled .bk-header__glow { opacity: 1; }

body.bk-nav-open { overflow: hidden; }

/* ══ Layout ══ */
.bk-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}
.bk-header__zone { display: flex; align-items: center; }
.bk-header__zone--nav { justify-content: center; min-width: 0; }
.bk-header__zone--actions { justify-content: flex-end; }

@media (max-width: 991.98px) {
  .bk-header__inner { grid-template-columns: 1fr auto; }
  .bk-header__zone--nav { display: none; }
}

/* ══ Logo ══ */
.bk-header__zone--logo {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.bk-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}

/* Ambient glow ring behind logo */
.bk-header__logo::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(247,149,31,0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.bk-header__logo:hover::before { opacity: 1; }

.bk-header__logo img {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: height 0.4s cubic-bezier(0.22,1,0.36,1),
              transform 0.3s cubic-bezier(0.22,1,0.36,1),
              filter 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(247,149,31,0.15));
}
.bk-header__logo:hover img {
  transform: scale(1.06) translateY(-1px);
  filter: drop-shadow(0 6px 22px rgba(247,149,31,0.45));
}
.bk-header.is-scrolled .bk-header__logo img { height: 54px; }

.bk-header__logo-badge {
  position: absolute;
  bottom: 2px;
  right: -8px;
  background: linear-gradient(135deg, #f7951f, #e67e22);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.14rem 0.42rem;
  border-radius: 50px;
  white-space: nowrap;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(247,149,31,0.4);
  animation: bkBadgePop 3s ease-in-out infinite;
}
@keyframes bkBadgePop {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08) rotate(-2deg); }
}

/* ══ Nav pill ══ */
.bk-header__nav { display: flex; align-items: center; overflow: visible; }
.bk-header__nav-pill {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.45rem;
  background: rgba(248,249,252,0.8);
  border: 1px solid rgba(15,17,23,0.07);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(15,17,23,0.04), inset 0 1px 0 rgba(255,255,255,1);
  overflow: visible;
}
.bk-header.is-scrolled .bk-header__nav-pill {
  background: #fff;
  box-shadow: 0 4px 20px rgba(15,17,23,0.06);
}

/* ══ Nav links ══ */
.bk-header__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem 0.42rem 0.5rem;
  font-size: 0.855rem;
  font-weight: 600;
  color: var(--bk-muted);
  text-decoration: none;
  border-radius: 13px;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.22,1,0.36,1);
  position: relative;
}
.bk-header__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bk-surface);
  color: var(--bk-brand);
  font-size: 0.9rem;
  transition: all 0.22s ease;
  flex-shrink: 0;
}
.bk-header__link:hover {
  color: var(--bk-ink);
  background: rgba(247,149,31,0.07);
}
.bk-header__link:hover .bk-header__link-icon {
  background: #fff9f0;
  transform: scale(1.08) rotate(-5deg);
}
.bk-header__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--bk-brand), var(--bk-brand-dark));
  box-shadow: 0 4px 16px rgba(247,149,31,0.38);
}
.bk-header__link.is-active .bk-header__link-icon {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
.bk-header__link-new {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.4rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-radius: 50px;
  margin-left: -0.1rem;
  animation: bkNewBadge 2s ease-in-out infinite;
}
@keyframes bkNewBadge {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.bk-header__chevron {
  font-size: 0.62rem;
  opacity: 0.55;
  transition: transform 0.25s ease;
}
.bk-header__dropdown.show .bk-header__chevron { transform: rotate(180deg); }

/* ══ Dropdown ══ */
.bk-header__dropdown { position: relative; }
.bk-header__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.96);
  width: min(400px, 92vw);
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(15,17,23,0.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.9) inset,
              0 8px 20px rgba(15,17,23,0.06),
              0 32px 72px rgba(15,17,23,0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22,1,0.36,1),
              transform 0.28s cubic-bezier(0.22,1,0.36,1),
              visibility 0.28s;
  z-index: 9999;
  overflow: hidden;
}
.bk-header__menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--bk-brand);
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}
.bk-header__menu--dark::before { background: #1a1d26; }
.bk-header__dropdown.show .bk-header__menu,
.bk-header__dropdown:hover .bk-header__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Dropdown head */
.bk-header__menu-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(135deg, var(--bk-brand) 0%, var(--bk-brand-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.bk-header__menu-head::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.bk-header__menu-head--new {
  background: linear-gradient(135deg, #1a1d26 0%, #2d3748 100%);
}
.bk-header__menu-head-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.bk-header__menu-head strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
.bk-header__menu-head small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  margin-top: 0.1rem;
}
.bk-header__menu-badge {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  border-radius: 50px;
}

/* Brand search inside dropdown */
.bk-header__menu-search {
  position: relative;
  padding: 0.65rem;
  border-bottom: 1px solid #f0f2f7;
}
.bk-header__menu-search i {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.85rem;
  pointer-events: none;
}
.bk-brand-search {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.2rem;
  border: 1.5px solid #e8eaef;
  border-radius: 10px;
  font-size: 0.82rem;
  background: #f8f9fc;
  color: var(--bk-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bk-brand-search:focus {
  border-color: var(--bk-brand);
  box-shadow: 0 0 0 3px rgba(247,149,31,0.1);
  background: #fff;
}

/* Grid */
.bk-header__menu-body {
  max-height: 260px;
  overflow-y: auto;
  padding: 0.6rem;
}
.bk-header__menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
}
.bk-header__menu-body::-webkit-scrollbar { width: 3px; }
.bk-header__menu-body::-webkit-scrollbar-thumb { background: var(--bk-brand); border-radius: 3px; }
.bk-header__menu-empty {
  grid-column: 1/-1;
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--bk-muted);
}

.bk-header__brand-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  color: var(--bk-ink);
  text-decoration: none;
  font-size: 0.81rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.bk-header__brand-item:hover {
  background: linear-gradient(135deg, #fff9f0, #fff);
  color: var(--bk-brand);
  transform: translateX(2px);
}
.bk-header__brand-letter {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #fff9f0, #fff);
  border: 1px solid rgba(247,149,31,0.2);
  color: var(--bk-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.bk-header__brand-letter--dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}
.bk-header__brand-item:hover .bk-header__brand-letter {
  background: linear-gradient(135deg, var(--bk-brand), var(--bk-brand-dark));
  color: #fff;
  border-color: transparent;
}

.bk-header__menu-footer {
  padding: 0.7rem 1rem;
  border-top: 1px solid #f0f1f5;
  background: linear-gradient(180deg, #fafbfe, #fff);
}
.bk-header__menu-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bk-brand);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.bk-header__menu-footer a:hover { gap: 0.55rem; }
.bk-header__menu-footer a i:first-child { opacity: 0.7; }

/* ══ Actions ══ */
.bk-header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.bk-header__divider {
  display: none;
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent, #e0e3ea, transparent);
}
@media (min-width: 1200px) { .bk-header__divider { display: block; } }

/* ══ Search ══ */
.bk-header__search { display: none; }
@media (min-width: 1100px) { .bk-header__search--desktop { display: block; } }

.bk-header__search-box {
  display: flex;
  align-items: center;
  position: relative;
  background: #f4f6fa;
  border: 1.5px solid #e8eaef;
  border-radius: 50px;
  padding: 0.2rem 0.2rem 0.2rem 0.15rem;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.bk-header__search-box:focus-within {
  border-color: var(--bk-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(247,149,31,0.12), 0 6px 20px rgba(247,149,31,0.08);
}
.bk-header__search-box > i {
  position: absolute;
  left: 0.9rem;
  color: #9ca3af;
  font-size: 0.88rem;
  pointer-events: none;
  transition: color 0.2s ease;
}
.bk-header__search-box:focus-within > i { color: var(--bk-brand); }
.bk-header__search input {
  width: 190px;
  padding: 0.5rem 0.5rem 0.5rem 2.3rem;
  border: none;
  background: transparent;
  font-size: 0.845rem;
  color: var(--bk-ink);
  transition: width 0.35s ease;
}
.bk-header__search input:focus { outline: none; width: 240px; }
.bk-header__search input::placeholder { color: #9ca3af; }
.bk-header__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bk-brand), var(--bk-brand-dark));
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bk-header__search-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(247,149,31,0.45);
}
.bk-header__search--mobile {
  display: flex;
  width: 100%;
  margin-bottom: 1rem;
}
.bk-header__search--mobile .bk-header__search-box { width: 100%; }
.bk-header__search--mobile input { width: 100%; flex: 1; }
@media (min-width: 1100px) { .bk-header__search--mobile { display: none; } }

/* ══ Login ══ */
.bk-header__login {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  font-size: 0.855rem;
  font-weight: 600;
  color: var(--bk-ink);
  text-decoration: none;
  border: 1.5px solid #e0e3ea;
  border-radius: 50px;
  background: #fff;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.bk-header__login i { font-size: 1.05rem; color: var(--bk-brand); }
@media (min-width: 768px) { .bk-header__login { display: inline-flex; } }
.bk-header__login:hover {
  border-color: var(--bk-brand);
  color: var(--bk-brand);
  background: #fff9f0;
  box-shadow: 0 4px 16px rgba(247,149,31,0.12);
}

/* ══ CTA Post Ad ══ */
.bk-header__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 0.95rem 0.52rem 0.8rem;
  background: linear-gradient(135deg, var(--bk-brand) 0%, var(--bk-brand-dark) 100%);
  color: #fff !important;
  font-size: 0.845rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(247,149,31,0.42);
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.bk-header__cta-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}
.bk-header__cta:hover .bk-header__cta-shine { transform: translateX(130%); }
.bk-header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(247,149,31,0.52);
  color: #fff;
}
.bk-header__cta-tag {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.42rem;
  background: rgba(255,255,255,0.22);
  border-radius: 50px;
  margin-left: 0.1rem;
}
.bk-header__cta span { display: none; }
@media (min-width: 480px) { .bk-header__cta span { display: inline; } }

/* Pulse animation on CTA */
@keyframes bkCtaPulse {
  0% { box-shadow: 0 4px 18px rgba(247,149,31,0.42); }
  50% { box-shadow: 0 4px 30px rgba(247,149,31,0.65), 0 0 0 6px rgba(247,149,31,0.12); }
  100% { box-shadow: 0 4px 18px rgba(247,149,31,0.42); }
}
.bk-header__cta { animation: bkCtaPulse 4s ease-in-out 3s infinite; }
.bk-header__cta:hover { animation: none; }

/* ══ Profile ══ */
.bk-header__profile-btn {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.25rem 0.6rem 0.25rem 0.28rem;
  border: 1.5px solid #e8eaef;
  border-radius: 50px;
  background: #fff;
  cursor: pointer;
  transition: all 0.22s ease;
}
.bk-header__profile-btn:hover {
  border-color: var(--bk-brand);
  box-shadow: 0 4px 16px rgba(247,149,31,0.14);
}
.bk-header__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bk-brand), var(--bk-brand-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(247,149,31,0.3);
  overflow: hidden;
}
.bk-header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bk-header__avatar--lg { width: 44px; height: 44px; font-size: 0.9rem; }
.bk-header__profile-name {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--bk-ink);
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}
.bk-header__chevron-sm { font-size: 0.62rem; color: #9ca3af; display: none; }
@media (min-width: 576px) {
  .bk-header__profile-name, .bk-header__chevron-sm { display: block; }
}
.bk-header__profile-menu {
  min-width: 260px;
  padding: 0.5rem;
  border: 1px solid rgba(15,17,23,0.07);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,17,23,0.15);
  margin-top: 0.75rem !important;
  overflow: hidden;
  z-index: 9999;
}
.bk-header__profile-menu .dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1rem;
  margin: -0.5rem -0.5rem 0.5rem;
  width: calc(100% + 1rem);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bk-brand) 0%, var(--bk-brand-dark) 100%);
  position: relative;
  overflow: hidden;
}
.bk-header__profile-menu .dropdown-header::after {
  content: '';
  position: absolute;
  top: -45%; right: -12%;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}
.bk-header__profile-menu .dropdown-header .bk-header__avatar--lg {
  background: #fff;
  color: var(--bk-brand);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
  position: relative;
  z-index: 1;
}
.bk-header__profile-menu .dropdown-header strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  position: relative;
  z-index: 1;
}
.bk-header__profile-menu .dropdown-header small {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.76rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.bk-header__profile-menu .dropdown-item {
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.18s ease;
}
.bk-header__profile-menu .dropdown-item i { color: var(--bk-brand); width: 1.1rem; }
.bk-header__profile-menu .dropdown-item:hover { background: #fff9f0; color: var(--bk-brand); }

/* ══ Mobile Toggle ══ */
.bk-header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1.5px solid #e8eaef;
  background: #fff;
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.bk-header__toggle:hover { border-color: var(--bk-brand); background: #fff9f0; }
.bk-header__toggle.is-open {
  border-color: var(--bk-brand);
  background: linear-gradient(135deg, var(--bk-brand), var(--bk-brand-dark));
}
.bk-header__toggle.is-open span { background: #fff; }
.bk-header__toggle span {
  display: block;
  height: 2px;
  background: var(--bk-ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.bk-header__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bk-header__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bk-header__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 992px) { .bk-header__toggle { display: none; } }

/* ══ Mobile Drawer — outside header, no stacking context issue ══ */
.bk-header__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100vw);
  bottom: 0;
  background: #fff;
  z-index: 9999;
  padding: 0 1.25rem 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.38s;
  visibility: hidden;
  box-shadow: -8px 0 48px rgba(15, 17, 23, 0.18);
  border-left: 1px solid rgba(15, 17, 23, 0.06);
  will-change: transform;
}
.bk-header__drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
@media (min-width: 992px) {
  .bk-header__drawer { display: none !important; }
}

.bk-header__drawer-hero {
  margin: 0 -1.25rem 1.25rem;
  padding: 2rem 1.25rem 1.5rem;
  background: linear-gradient(135deg, #0f1117 0%, #1a2035 55%, rgba(247,149,31,0.5) 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.bk-header__drawer-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(247,149,31,0.1);
  pointer-events: none;
}
.bk-header__drawer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3));
  position: relative;
}
.bk-header__drawer-hero p {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.bk-header__drawer-hero p i { color: #ffb347; }
.bk-header__drawer-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0.75rem 0.5rem;
  position: relative;
}
.bk-header__drawer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.bk-header__drawer-stat strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffb347;
  line-height: 1.1;
}
.bk-header__drawer-stat span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}
.bk-header__drawer-stat-div {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.12);
}

.bk-header__drawer-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}
.bk-header__drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}
.bk-header__drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.88rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bk-ink);
  text-decoration: none;
  border: 1px solid #f0f2f7;
  border-radius: 14px;
  background: #fafbfe;
  cursor: pointer;
  transition: all 0.22s ease;
}
.bk-header__drawer-link span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.bk-header__drawer-link span i:first-child {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #fff;
  color: var(--bk-brand);
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(247,149,31,0.1);
}
.bk-header__drawer-link:hover,
.bk-header__drawer-link.is-open {
  background: #fff9f0;
  border-color: rgba(247,149,31,0.2);
  color: var(--bk-brand);
}
.bk-header__drawer-link.is-active-link {
  background: linear-gradient(135deg, var(--bk-brand), var(--bk-brand-dark));
  border-color: transparent;
  color: #fff;
}
.bk-header__drawer-link.is-active-link span i:first-child {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.bk-header__drawer-link.is-open > i.bi-chevron-down { transform: rotate(180deg); }

.bk-header__drawer-sub {
  flex-direction: column;
  gap: 0.05rem;
  padding: 0 0 0 2.8rem;
  display: flex;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1),
              opacity 0.3s ease,
              padding 0.3s ease;
}
.bk-header__drawer-sub.is-open {
  max-height: 800px;
  opacity: 1;
  padding: 0.2rem 0 0.5rem 2.8rem;
}
.bk-header__drawer-sub a {
  padding: 0.45rem 0.65rem;
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--bk-muted);
  text-decoration: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.18s ease;
}
.bk-header__drawer-sub a:hover { background: #fff9f0; color: var(--bk-brand); }
.bk-drawer-brand-dot {
  width: 5px; height: 5px;
  background: var(--bk-brand);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.5;
}
.bk-header__drawer-more { font-weight: 700 !important; color: var(--bk-brand) !important; }
.bk-drawer-new-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bk-header__drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.bk-header__drawer-actions .bk-header__cta,
.bk-header__drawer-actions .bk-header__login {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.9rem;
  font-size: 0.95rem;
  border-radius: 14px;
}

/* Social in drawer */
.bk-header__drawer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f2f7;
}
.bk-header__drawer-social a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #f4f6fa;
  border: 1px solid #e8eaef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.bk-header__drawer-social a:hover {
  background: linear-gradient(135deg, var(--bk-brand), var(--bk-brand-dark));
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}
/* Platform-specific hover colors in drawer */
.bk-header__drawer-social a[aria-label="Facebook"]:hover  { background: #1877f2; border-color: transparent; }
.bk-header__drawer-social a[aria-label="Instagram"]:hover { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; }
.bk-header__drawer-social a[aria-label="Snapchat"]:hover  { background: #FFFC00; border-color: transparent; color: #000; }
.bk-header__drawer-social a[aria-label="LinkedIn"]:hover  { background: #0A66C2; border-color: transparent; }
.bk-header__drawer-social a[aria-label="YouTube"]:hover   { background: #ff0000; border-color: transparent; }
.bk-header__drawer-social a[aria-label="TikTok"]:hover    { background: #000000; border-color: transparent; }

/* ══ Overlay ══ */
.bk-header__overlay {
  position: fixed;
  inset: 0;
  top: calc(var(--bk-announce-h) + var(--bk-header-h));
  background: rgba(15,17,23,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1035;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.bk-header__overlay.is-open { opacity: 1; visibility: visible; }
@media (min-width: 992px) { .bk-header__overlay { display: none; } }

/* ══ Legacy hide ══ */
#header.header:not(.bk-header),
body:has(.bk-header) #header.header { display: none !important; }
body:has(.bk-header) { padding-top: 0 !important; }

/* Scrolled adjustments for announce hidden */
.bk-announce.is-hidden ~ .bk-header,
.bk-header.announce-hidden {
  top: 0;
}
body.announce-dismissed .biekar-home .bk-hero { margin-top: var(--bk-header-h); }
body.announce-dismissed .bk-posts-page,
body.announce-dismissed .bk-category-page,
body.announce-dismissed .bk-ads-page {
  padding-top: calc(var(--bk-header-h) + 1.25rem) !important;
}
body.announce-dismissed .bk-header__drawer {
  top: var(--bk-header-h);
}
body.announce-dismissed .bk-header__overlay {
  top: var(--bk-header-h);
}

/* ── Mobile Drawer — Logged-in Profile Block ── */
.bk-drawer-profile {
  background: #fff;
  border: 1.5px solid #eef1f6;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.bk-drawer-profile__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #1a1d26 0%, #2d3142 100%);
}

.bk-drawer-profile__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7951f, #e67e22);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.25);
  overflow: hidden;
}
.bk-drawer-profile__avatar img { width: 100%; height: 100%; object-fit: cover; }

.bk-drawer-profile__name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-drawer-profile__email {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-drawer-profile__links {
  display: flex;
  flex-direction: column;
}

.bk-drawer-profile__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1d26;
  text-decoration: none;
  border-bottom: 1px solid #f4f6fa;
  transition: background 0.18s ease, color 0.18s ease;
}

.bk-drawer-profile__link i { color: #f7951f; font-size: 0.95rem; }
.bk-drawer-profile__link:hover { background: #fff4e6; color: #f7951f; }

.bk-drawer-profile__signout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease;
}

.bk-drawer-profile__signout:hover { background: #fee2e2; }

/* ══════════════════════════════════════════════════
   MOBILE HEADER — Enhanced Amazing Design
══════════════════════════════════════════════════ */

/* ── Make toggle bigger & more tappable ── */
@media (max-width: 991.98px) {

  .bk-header__inner {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  /* Logo smaller on mobile */
  .bk-header__logo img {
    height: 50px;
  }
  .bk-header.is-scrolled .bk-header__logo img {
    height: 42px;
  }

  /* Toggle button — larger tap area */
  .bk-header__toggle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1.5px solid #e8eaef;
    gap: 5.5px;
    padding: 11px;
    flex-shrink: 0;
  }

  /* CTA — show on all mobile sizes */
  .bk-header__cta span { display: inline; }
  .bk-header__cta {
    padding: 0.48rem 0.8rem;
    font-size: 0.78rem;
  }
  .bk-header__cta-tag { display: none; }

  /* Drawer — full screen on small phones */
  .bk-header__drawer {
    width: min(400px, 100vw);
    padding: 0 1rem 2rem;
  }
}

@media (max-width: 575.98px) {
  .bk-header__inner {
    padding: 0 0.85rem;
  }

  /* Logo on tiny screens */
  .bk-header__logo img {
    height: 42px;
  }

  /* Drawer full screen on phones */
  .bk-header__drawer {
    width: 100vw;
    right: 0;
    border-left: none;
    border-radius: 0;
  }

  /* Hero section inside drawer — more compact */
  .bk-header__drawer-hero {
    padding: 1.5rem 1rem 1.25rem;
    margin: 0 -1rem 1rem;
  }
  .bk-header__drawer-logo {
    height: 34px;
  }
  .bk-header__drawer-stats {
    padding: 0.6rem 0.35rem;
  }
  .bk-header__drawer-stat strong {
    font-size: 0.95rem;
  }

  /* Drawer nav links */
  .bk-header__drawer-link {
    padding: 0.78rem 0.9rem;
    font-size: 0.88rem;
  }

  /* Drawer actions */
  .bk-header__drawer-actions .bk-header__cta,
  .bk-header__drawer-actions .bk-header__login {
    font-size: 0.88rem;
    padding: 0.8rem;
  }
}

/* ── Announcement bar — single line on phones ── */
@media (max-width: 479.98px) {
  .bk-announce {
    padding: 0 0.75rem;
  }
  .bk-announce__text {
    font-size: 0.68rem;
  }
  .bk-announce__dot {
    display: none;
  }
}

/* ── Active toggle animation improvement ── */
.bk-header__toggle {
  position: relative;
  overflow: hidden;
}
.bk-header__toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(247,149,31,0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.bk-header__toggle:active::after {
  opacity: 1;
}


/* ── Overlay — outside header, full screen backdrop ── */
.bk-header__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.bk-header__overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (min-width: 992px) { .bk-header__overlay { display: none !important; } }

/* ── Drawer nav link — active pulse ── */
.bk-header__drawer-link.is-active-link {
  box-shadow: 0 4px 16px rgba(247,149,31,0.3);
}


/* ── Mobile header height smaller ── */
@media (max-width: 575.98px) {
  :root {
    --bk-header-h: 92px;
    --bk-announce-h: 36px;
  }
}

/* ── Body scroll lock when nav open ── */
body.bk-nav-open {
  overflow: hidden;
}

/* ── Medium desktops / zoomed browsers: keep logo, nav, search and buttons from overlapping ── */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .bk-header__inner { padding: 0 1rem; gap: 0.5rem; }
  .bk-header__link { padding: 0.42rem 0.6rem; }
  .bk-header__link-icon { display: none; }
  .bk-header__search input { width: 110px; }
  .bk-header__search input:focus { width: 150px; }
  .bk-header__cta-tag { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .bk-header__logo img { height: 54px; }
  .bk-header__link { font-size: 0.8rem; padding: 0.4rem 0.5rem; }
}

/* ── Language switch (English / Urdu) ── */
.bk-lang__btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1px solid #e8eaef; border-radius: 50px; background: #fff; color: var(--bk-ink, #12141d); font: 600 .82rem/1 'Plus Jakarta Sans', sans-serif; cursor: pointer; white-space: nowrap; transition: border-color .2s, box-shadow .2s; }
.bk-lang__btn:hover, .bk-lang__btn[aria-expanded="true"] { border-color: var(--bk-brand, #f7951f); box-shadow: 0 0 0 3px rgba(247,149,31,.12); }
.bk-lang__btn > .bi-translate { color: var(--bk-brand, #f7951f); }
.bk-lang__chev { font-size: .65rem; opacity: .6; }
.bk-lang__menu { min-width: 9rem; border-radius: 14px; border: 1px solid #e8eaef; box-shadow: 0 12px 32px rgba(15,17,23,.12); padding: .35rem; }
.bk-lang__menu .dropdown-item { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-radius: 10px; padding: .55rem .8rem; font-weight: 600; font-size: .88rem; }
.bk-lang__menu .dropdown-item.active { background: rgba(247,149,31,.12); color: #c96f00; }
.bk-lang-pills { display: flex; gap: .5rem; margin: .25rem 0 1rem; }
.bk-lang-pills a { flex: 1; text-align: center; padding: .6rem; border: 1px solid #e8eaef; border-radius: 12px; font-weight: 700; font-size: .9rem; color: #12141d; text-decoration: none; }
.bk-lang-pills a.is-active { background: var(--bk-brand, #f7951f); border-color: var(--bk-brand, #f7951f); color: #fff; }
@media (max-width: 991.98px) { .bk-header__zone--actions .bk-lang { display: none; } }
