/* ==========================================================================
   UNIFIED SNAPCHAT-STYLE TOP HEADER (Tri-Zone Pro Layout)
   Matching Image 1 (Search Design), Image 2 (Big Bold Logo), Image 3 (Tight Tab Gap), Image 5 (Header Height)
   ========================================================================== */
body {
  padding-top: 64px !important;
}

.top-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 64px !important;
  z-index: 1000 !important;
  background: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .top-header,
html[data-theme="light"] .top-header,
body.bp-theme-light .top-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 64px !important;
  max-width: 100% !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* ==========================================================================
   1. ZONE 1: HEADER LEFT (Mobile Menu + Big Bold Logo + Long Search Capsule)
   ========================================================================== */
.header-left {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

/* Mobile hamburger menu */
.header-mobile-menu {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  background: transparent !important;
  border: none !important;
  color: inherit !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

/* Logo - Matching Image 2 (Big, Bold, Glowing Circle) */
.header-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.header-logo-bird-circle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #facc15 !important;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.45) !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  transition: transform 0.22s ease !important;
}

.header-logo:hover .header-logo-bird-circle {
  transform: scale(1.05) !important;
}

.header-logo-bird-img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
}

@media (max-width: 680px) {
  .header-logo-bird-circle {
    width: 34px !important;
    height: 34px !important;
  }

  .header-logo-bird-img {
    width: 30px !important;
    height: 30px !important;
  }
}

.header-logo-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 1.85rem !important;
  /* Proportioned, bold and clean */
  font-weight: 950 !important;
  letter-spacing: -0.045em !important;
  line-height: 1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
}

[data-theme="light"] .header-logo-text,
html[data-theme="light"] .header-logo-text {
  color: #18191c !important;
  -webkit-text-fill-color: #18191c !important;
}

.logo-exclamation {
  color: inherit !important;
}

/* ==========================================================================
   2. COMPACT SEARCH CAPSULE (More Long, Image 1 Solid Pill, No White Border)
   ========================================================================== */
.header-search,
div.header-search,
.top-header .header-search,
[data-theme="dark"] .header-search,
html[data-theme="dark"] .header-search,
body.bp-theme-dark .header-search,
html .header-search {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 1 480px !important;
  width: 480px !important;
  /* Long, prominent search bar matching user request */
  max-width: 540px !important;
  min-width: 220px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  background: #27272a !important;
  /* Image 1 dark solid pill background */
  border: none !important;
  /* Image 1: NO harsh white border */
  border-radius: 9999px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: background 0.15s ease, box-shadow 0.15s ease !important;
}

.header-search:hover,
div.header-search:hover,
[data-theme="dark"] .header-search:hover,
html[data-theme="dark"] .header-search:hover {
  background: #323236 !important;
  border: none !important;
  box-shadow: none !important;
}

.header-search:focus-within,
div.header-search:focus-within,
[data-theme="dark"] .header-search:focus-within,
html[data-theme="dark"] .header-search:focus-within {
  background: #323236 !important;
  border: none !important;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35) !important;
}

[data-theme="light"] .header-search,
html[data-theme="light"] .header-search,
body.bp-theme-light .header-search {
  background: #f1f2f4 !important;
  border: none !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
}

[data-theme="light"] .header-search:hover,
html[data-theme="light"] .header-search:hover {
  background: #e9eaed !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="light"] .header-search:focus-within,
html[data-theme="light"] .header-search:focus-within {
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.18) !important;
}

.header-search-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 19px !important;
  height: 19px !important;
  margin-right: 10px !important;
  margin-left: 0 !important;
  color: #999999 !important;
}

.header-search-icon svg {
  width: 19px !important;
  height: 19px !important;
  stroke: #999999 !important;
  stroke-width: 2.2 !important;
}

[data-theme="light"] .header-search-icon,
[data-theme="light"] .header-search-icon svg {
  color: #8e8e93 !important;
  stroke: #8e8e93 !important;
}

.header-search input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100% !important;
  line-height: 44px !important;
  font-family: inherit !important;
}

[data-theme="light"] .header-search input,
html[data-theme="light"] .header-search input {
  color: #0f172a !important;
}

.header-search input::placeholder,
.header-search input::-webkit-input-placeholder,
.header-search input::-moz-placeholder {
  color: #999999 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
  font-size: 14.5px !important;
}

[data-theme="light"] .header-search input::placeholder,
[data-theme="light"] .header-search input::-webkit-input-placeholder,
[data-theme="light"] .header-search input::-moz-placeholder {
  color: #8e8e93 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
  font-size: 14.5px !important;
}

/* Remove yellow search button from inside the search capsule */
.header-search-btn,
.header-search .header-search-btn,
#headerSearchBtn {
  display: none !important;
  visibility: hidden !important;
}

/* Clear button - hidden when empty */
.header-search input:placeholder-shown~.header-search-clear,
.header-search-clear[style*="display: none"] {
  display: none !important;
}

.header-search-clear {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 14px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin-left: 6px !important;
  flex-shrink: 0 !important;
  transition: background 0.15s ease !important;
}

.header-search-clear:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="light"] .header-search-clear {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #1e293b !important;
}

/* Legacy capsule toggle pieces hidden */
.tt-track,
.tt-thumb,
.tt-label,
.theme-toggle .tt-track,
.theme-toggle .tt-label {
  display: none !important;
}

/* ==========================================================================
   3. ZONE 2: CENTERED NAVIGATION TABS (4 Tabs - Premium Removed Forever)
   ========================================================================== */
.header-nav-items,
nav.header-nav-items,
#headerNavItems {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  /* Close spacing between horizontal nav tabs */
  flex: 0 0 auto !important;
  margin: 0 auto !important;
}

/* Each Nav Item: Horizontal layout (Icon first, Label after) matching user request */
.header-nav-item,
.header-pill-btn,
#headerPillBirdweek,
#headerPillNewsletter,
#headerPillMagazine,
#headerPillShop {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 38px !important;
  min-width: 0 !important;
  padding: 0 14px !important;
  background: #323236 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease !important;
  box-sizing: border-box !important;
  user-select: none !important;
  flex-shrink: 0 !important;
}

.header-nav-item:hover,
.header-pill-btn:hover,
#headerPillBirdweek:hover,
#headerPillNewsletter:hover,
#headerPillMagazine:hover,
#headerPillShop:hover {
  background: #3d3d42 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-theme="light"] .header-nav-item,
[data-theme="light"] .header-pill-btn,
[data-theme="light"] #headerPillBirdweek,
[data-theme="light"] #headerPillNewsletter,
[data-theme="light"] #headerPillMagazine,
[data-theme="light"] #headerPillShop,
html[data-theme="light"] .header-nav-item,
html[data-theme="light"] .header-pill-btn,
body.bp-theme-light .header-nav-item,
body.bp-theme-light .header-pill-btn {
  color: #0f172a !important;
  background: #f2f2f2 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
}

[data-theme="light"] .header-nav-item:hover,
[data-theme="light"] .header-pill-btn:hover,
[data-theme="light"] #headerPillBirdweek:hover,
[data-theme="light"] #headerPillNewsletter:hover,
[data-theme="light"] #headerPillMagazine:hover,
[data-theme="light"] #headerPillShop:hover,
html[data-theme="light"] .header-nav-item:hover,
html[data-theme="light"] .header-pill-btn:hover,
body.bp-theme-light .header-nav-item:hover,
body.bp-theme-light .header-pill-btn:hover {
  background: #e6e6e6 !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
  color: #000000 !important;
}

/* Nav Item Icon */
.nav-item-icon,
.header-pill-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 22px !important;
  height: 22px !important;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  color: currentColor !important;
}

.nav-item-icon svg,
.header-pill-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
  display: block !important;
}

.nav-item-icon img,
.nav-item-icon-img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
  display: block !important;
  transition: filter 0.15s ease, opacity 0.15s ease !important;
}

[data-theme="dark"] .nav-item-icon img,
[data-theme="dark"] .nav-item-icon-img,
html[data-theme="dark"] .nav-item-icon img,
html[data-theme="dark"] .nav-item-icon-img,
body.bp-theme-dark .nav-item-icon img,
body.bp-theme-dark .nav-item-icon-img,
html:not([data-theme="light"]) .nav-item-icon img,
html:not([data-theme="light"]) .nav-item-icon-img {
  filter: brightness(0) invert(1) !important;
}

[data-theme="light"] .nav-item-icon img,
[data-theme="light"] .nav-item-icon-img,
html[data-theme="light"] .nav-item-icon img,
html[data-theme="light"] .nav-item-icon-img,
body.bp-theme-light .nav-item-icon img,
body.bp-theme-light .nav-item-icon-img {
  filter: none !important;
}

/* Lock Badge on Newsletters */
.nav-item-badge.lock-badge,
.header-lock-badge {
  position: absolute !important;
  top: -2px !important;
  right: -5px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
}

.nav-item-badge.lock-badge svg,
.header-lock-badge svg {
  width: 8px !important;
  height: 8px !important;
  fill: currentColor !important;
  stroke: none !important;
}

[data-theme="light"] .nav-item-badge.lock-badge,
[data-theme="light"] .header-lock-badge {
  background: rgba(0, 0, 0, 0.12) !important;
  color: #1e293b !important;
}

/* Nav Item Label (Horizontal after icon) */
.nav-item-label,
.header-pill-label,
#headerPillNewsletter .header-pill-label,
#headerPillMagazine .header-pill-label,
#headerPillShop .header-pill-label {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  color: inherit !important;
  text-align: left !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

/* REMOVE PREMIUM FOR EVER */
#headerPillPremium,
.premium-pill,
.header-nav-item.premium-pill,
[href="premium.html"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   4. ZONE 3: HEADER RIGHT (Theme Toggle + Notifications + Profile)
   ========================================================================== */
.header-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin-left: 0 !important;
}

/* Circular Dark / Light Mode Toggle Button */
.header-apps-btn,
.header-theme-btn,
#headerAppsBtn,
#headerThemeBtn,
.top-header button.theme-toggle,
.header-right button.theme-toggle {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  border-radius: 50% !important;
  background: #27272a !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background 0.15s ease, transform 0.12s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  overflow: hidden !important;
}

.header-apps-btn:hover,
.header-theme-btn:hover,
#headerAppsBtn:hover,
#headerThemeBtn:hover,
.top-header button.theme-toggle:hover {
  background: #323236 !important;
  transform: scale(1.05) !important;
}

.header-apps-btn:active,
.header-theme-btn:active,
#headerAppsBtn:active,
#headerThemeBtn:active,
.top-header button.theme-toggle:active {
  transform: scale(0.96) !important;
}

[data-theme="light"] .header-apps-btn,
[data-theme="light"] .header-theme-btn,
[data-theme="light"] #headerAppsBtn,
[data-theme="light"] #headerThemeBtn,
[data-theme="light"] .top-header button.theme-toggle,
html[data-theme="light"] .header-theme-btn,
body.bp-theme-light .header-theme-btn {
  background: #f1f2f4 !important;
  color: #000000 !important;
}

[data-theme="light"] .header-apps-btn:hover,
[data-theme="light"] .header-theme-btn:hover,
[data-theme="light"] #headerAppsBtn:hover,
[data-theme="light"] #headerThemeBtn:hover,
[data-theme="light"] .top-header button.theme-toggle:hover {
  background: #e4e5e8 !important;
  color: #000000 !important;
}

/* Icons inside the Circular Theme Button */
.header-theme-btn .theme-icon-moon,
.header-apps-btn .theme-icon-moon,
#headerThemeBtn .theme-icon-moon,
#headerAppsBtn .theme-icon-moon,
.top-header button.theme-toggle .theme-icon-moon,
button.header-theme-btn .theme-icon-moon,
[data-theme="dark"] .header-theme-btn .theme-icon-moon,
[data-theme="dark"] .header-apps-btn .theme-icon-moon,
[data-theme="dark"] #headerAppsBtn .theme-icon-moon,
[data-theme="dark"] #headerThemeBtn .theme-icon-moon,
[data-theme="dark"] .top-header .theme-icon-moon,
[data-theme="dark"] .header-right .theme-icon-moon,
html[data-theme="dark"] #headerAppsBtn .theme-icon-moon,
html[data-theme="dark"] .theme-icon-moon,
.theme-icon-moon {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: none !important;
}

.header-theme-btn .theme-icon-moon path,
.header-apps-btn .theme-icon-moon path,
#headerThemeBtn .theme-icon-moon path,
#headerAppsBtn .theme-icon-moon path,
[data-theme="dark"] .header-theme-btn .theme-icon-moon path,
[data-theme="dark"] .header-apps-btn .theme-icon-moon path,
[data-theme="dark"] #headerAppsBtn .theme-icon-moon path,
html[data-theme="dark"] #headerAppsBtn .theme-icon-moon path,
[data-theme="dark"] .theme-icon-moon path,
.theme-icon-moon path {
  fill: #ffffff !important;
  color: #ffffff !important;
  stroke: none !important;
}

.header-theme-btn .theme-icon-sun,
.header-apps-btn .theme-icon-sun,
#headerThemeBtn .theme-icon-sun,
#headerAppsBtn .theme-icon-sun,
.top-header button.theme-toggle .theme-icon-sun {
  display: none !important;
  width: 18px !important;
  height: 18px !important;
}

[data-theme="light"] .header-theme-btn .theme-icon-moon,
[data-theme="light"] .header-apps-btn .theme-icon-moon,
[data-theme="light"] #headerThemeBtn .theme-icon-moon,
[data-theme="light"] #headerAppsBtn .theme-icon-moon,
[data-theme="light"] .top-header button.theme-toggle .theme-icon-moon,
[data-theme="light"] .theme-icon-moon {
  display: none !important;
}

[data-theme="light"] .header-theme-btn .theme-icon-sun,
[data-theme="light"] .header-apps-btn .theme-icon-sun,
[data-theme="light"] #headerThemeBtn .theme-icon-sun,
[data-theme="light"] #headerAppsBtn .theme-icon-sun,
[data-theme="light"] .top-header button.theme-toggle .theme-icon-sun,
[data-theme="light"] .theme-icon-sun,
html[data-theme="light"] .theme-icon-sun,
body.bp-theme-light .theme-icon-sun {
  display: block !important;
  color: #000000 !important;
  fill: #000000 !important;
  stroke: none !important;
}

[data-theme="light"] .theme-icon-sun circle,
[data-theme="light"] .theme-icon-sun line,
[data-theme="light"] .theme-icon-sun path,
html[data-theme="light"] .theme-icon-sun circle,
body.bp-theme-light .theme-icon-sun circle {
  fill: #000000 !important;
  stroke: none !important;
}

/* Notification Bell Button */
.header-bell-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: rgba(255, 255, 255, 0.85) !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.header-bell-btn:hover {
  background: #27272a !important;
  color: #ffffff !important;
}

[data-theme="light"] .header-bell-btn {
  color: #475569 !important;
}

[data-theme="light"] .header-bell-btn:hover {
  background: #f1f2f4 !important;
  color: #0f172a !important;
}

/* User Profile Button */
.header-profile-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

/* ==========================================================================
   5. RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 960px) {

  .header-nav-items,
  nav.header-nav-items,
  #headerNavItems {
    display: none !important;
  }

  .header-left {
    flex: 1 1 auto !important;
  }

  .header-search {
    flex: 1 1 auto !important;
    max-width: 560px !important;
  }
}

/* Remove extra search icon from header (User Request: "5th image extra search tab is added there in header remove that") */
.header-search-icon-btn,
#headerSearchIconBtn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 640px) and (orientation: portrait) {
  .header-search {
    display: none !important;
  }
}

/* ==========================================================================
   6. DIM ROUNDED PILL NAVIGATION ITEMS (Always Active Dim Pill Background & Border)
   ========================================================================== */
.top-header .header-nav-item,
.top-header .header-pill-btn,
.header-nav-items .header-nav-item,
.header-nav-items .header-pill-btn,
#headerPillBirdweek,
#headerPillNewsletter,
#headerPillMagazine,
#headerPillShop,
.header-nav-item,
.header-pill-btn,
[data-theme="dark"] .header-nav-item,
[data-theme="dark"] .header-pill-btn,
[data-theme="dark"] #headerPillBirdweek,
[data-theme="dark"] #headerPillNewsletter,
[data-theme="dark"] #headerPillMagazine,
[data-theme="dark"] #headerPillShop,
html[data-theme="dark"] #headerPillNewsletter,
html[data-theme="dark"] #headerPillMagazine,
html[data-theme="dark"] #headerPillShop,
html[data-theme="dark"] .header-nav-item,
html[data-theme="dark"] .header-pill-btn,
body.bp-theme-dark #headerPillNewsletter,
body.bp-theme-dark #headerPillMagazine,
body.bp-theme-dark #headerPillShop,
body.bp-theme-dark .header-nav-item,
body.bp-theme-dark .header-pill-btn {
  background: #323236 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
}

[data-theme="light"] .header-nav-item,
[data-theme="light"] .header-pill-btn,
[data-theme="light"] #headerPillBirdweek,
[data-theme="light"] #headerPillNewsletter,
[data-theme="light"] #headerPillMagazine,
[data-theme="light"] #headerPillShop,
html[data-theme="light"] #headerPillNewsletter,
html[data-theme="light"] #headerPillMagazine,
html[data-theme="light"] #headerPillShop,
html[data-theme="light"] .header-nav-item,
html[data-theme="light"] .header-pill-btn,
body.bp-theme-light #headerPillNewsletter,
body.bp-theme-light #headerPillMagazine,
body.bp-theme-light #headerPillShop,
body.bp-theme-light .header-nav-item,
body.bp-theme-light .header-pill-btn {
  background: #f2f2f2 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 9999px !important;
  color: #0f172a !important;
  outline: none !important;
  box-shadow: none !important;
}

html[data-theme="light"] #headerPillBirdweek:hover,
html[data-theme="light"] #headerPillNewsletter:hover,
html[data-theme="light"] #headerPillMagazine:hover,
html[data-theme="light"] #headerPillShop:hover,
[data-theme="light"] .header-pill-btn:hover,
[data-theme="light"] .header-nav-item:hover {
  background: #e6e6e6 !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
  color: #000000 !important;
}

html[data-theme="dark"] #headerPillBirdweek:hover,
html[data-theme="dark"] #headerPillNewsletter:hover,
html[data-theme="dark"] #headerPillMagazine:hover,
html[data-theme="dark"] #headerPillShop:hover,
[data-theme="dark"] .header-pill-btn:hover,
[data-theme="dark"] .header-nav-item:hover,
.header-nav-item:hover,
.header-pill-btn:hover {
  background: #3d3d42 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.header-pill-btn .header-pill-icon,
#headerPillNewsletter .header-lock-badge,
#headerPillMagazine .header-pill-icon,
#headerPillShop .header-pill-icon,
[data-theme="light"] .header-pill-btn .header-pill-icon,
[data-theme="light"] #headerPillNewsletter .header-lock-badge,
[data-theme="dark"] .header-pill-btn .header-pill-icon,
[data-theme="dark"] #headerPillNewsletter .header-lock-badge,
html[data-theme="light"] #headerPillNewsletter .header-lock-badge,
html[data-theme="dark"] #headerPillNewsletter .header-lock-badge {
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* ==========================================================================
   7. SUBCATEGORY BAR GAP ELIMINATION (Zero Gap with 64px Header)
   ========================================================================== */
.feed-top-sticky,
.category-subnav.feed-top-sticky,
.category-subnav,
#categorySubnav,
[data-sticky-subnav] {
  top: 64px !important;
  margin-top: 0 !important;
}

.subcats-wrap {
  top: 0 !important;
  margin-top: 0 !important;
}

.sidebar-left,
.article-sidebar-left,
.category-sidebar-left,
.sidebar-right,
.article-sidebar-right,
.category-sidebar-right {
  top: 64px !important;
  height: calc(100vh - 64px) !important;
}

[data-theme="dark"] .feed-top-sticky,
[data-theme="dark"] .category-subnav.feed-top-sticky,
[data-theme="dark"] .category-subnav,
body.bp-theme-dark .feed-top-sticky {
  background: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .feed-top-sticky,
[data-theme="light"] .category-subnav.feed-top-sticky,
[data-theme="light"] .category-subnav,
body.bp-theme-light .feed-top-sticky {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   8. FLIPBOARD SHARE BUTTON
   ========================================================================== */
.share-strip-btn.share-btn-flipboard {
  background: #f52828 !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-flipboard svg {
  width: 14px !important;
  height: 14px !important;
  fill: #ffffff !important;
}

/* Sidebar Nav Grid World Category (Image 4 Tag Icon & Image 6 Color Scheme) */
#nav-world:not(.active),
.nav-grid-item:not(.active)[data-category="world"],
.sidebar-nav #nav-world:not(.active),
.sidebar-nav .nav-grid-item:not(.active)[data-category="world"],
.category-sidebar-left #nav-world:not(.active),
.category-sidebar-left .nav-grid-item:not(.active)[data-category="world"],
.article-sidebar-left #nav-world:not(.active),
.article-sidebar-left .nav-grid-item:not(.active)[data-category="world"] {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  border-color: transparent !important;
  opacity: 1 !important;
}

#nav-world:not(.active):hover,
.nav-grid-item:not(.active)[data-category="world"]:hover,
.sidebar-nav #nav-world:not(.active):hover,
.sidebar-nav .nav-grid-item:not(.active)[data-category="world"]:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

#nav-world:not(.active) .nav-grid-icon svg,
.nav-grid-item:not(.active)[data-category="world"] .nav-grid-icon svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
  fill: none !important;
}

#nav-world:not(.active) .nav-grid-icon svg circle,
.nav-grid-item:not(.active)[data-category="world"] .nav-grid-icon svg circle {
  fill: #ffffff !important;
  stroke: none !important;
}

#nav-world:not(.active) .nav-grid-icon svg path,
.nav-grid-item:not(.active)[data-category="world"] .nav-grid-icon svg path {
  stroke: #ffffff !important;
  fill: none !important;
}

[data-theme="light"] #nav-world:not(.active),
[data-theme="light"] .nav-grid-item:not(.active)[data-category="world"],
html[data-theme="light"] #nav-world:not(.active),
html[data-theme="light"] .nav-grid-item:not(.active)[data-category="world"] {
  background: transparent !important;
  color: #0f1419 !important;
  box-shadow: none !important;
}

[data-theme="light"] #nav-world:not(.active) .nav-grid-icon svg,
[data-theme="light"] .nav-grid-item:not(.active)[data-category="world"] .nav-grid-icon svg {
  stroke: #0f1419 !important;
  color: #0f1419 !important;
  fill: none !important;
}

[data-theme="light"] #nav-world:not(.active) .nav-grid-icon svg circle,
[data-theme="light"] .nav-grid-item:not(.active)[data-category="world"] .nav-grid-icon svg circle {
  fill: #0f1419 !important;
  stroke: none !important;
}

/* Active World Category Tab → Signature Yellow Pill with Black Text & Icon (Image 1 Spec) */
#nav-world.active,
.nav-grid-item.active[data-category="world"],
.sidebar-nav #nav-world.active,
.sidebar-nav .nav-grid-item.active[data-category="world"],
.category-sidebar-left #nav-world.active,
.category-sidebar-left .nav-grid-item.active[data-category="world"],
.article-sidebar-left #nav-world.active,
.article-sidebar-left .nav-grid-item.active[data-category="world"],
[data-theme="light"] #nav-world.active,
[data-theme="light"] .nav-grid-item.active[data-category="world"],
html[data-theme="light"] #nav-world.active,
html[data-theme="light"] .nav-grid-item.active[data-category="world"] {
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.45) !important;
  opacity: 1 !important;
}

#nav-world.active:hover,
.nav-grid-item.active[data-category="world"]:hover,
.sidebar-nav #nav-world.active:hover,
.sidebar-nav .nav-grid-item.active[data-category="world"]:hover {
  background: #facc15 !important;
  color: #000000 !important;
}

#nav-world.active .nav-grid-icon svg,
.nav-grid-item.active[data-category="world"] .nav-grid-icon svg,
.sidebar-nav #nav-world.active .nav-grid-icon svg,
.sidebar-nav .nav-grid-item.active[data-category="world"] .nav-grid-icon svg,
[data-theme="light"] #nav-world.active .nav-grid-icon svg,
[data-theme="light"] .nav-grid-item.active[data-category="world"] .nav-grid-icon svg {
  stroke: #000000 !important;
  color: #000000 !important;
  fill: none !important;
}

#nav-world.active .nav-grid-icon svg circle,
.nav-grid-item.active[data-category="world"] .nav-grid-icon svg circle,
.sidebar-nav #nav-world.active .nav-grid-icon svg circle,
.sidebar-nav .nav-grid-item.active[data-category="world"] .nav-grid-icon svg circle,
[data-theme="light"] #nav-world.active .nav-grid-icon svg circle,
[data-theme="light"] .nav-grid-item.active[data-category="world"] .nav-grid-icon svg circle {
  fill: #000000 !important;
  stroke: none !important;
}

#nav-world.active .nav-grid-icon svg path,
.nav-grid-item.active[data-category="world"] .nav-grid-icon svg path,
.sidebar-nav #nav-world.active .nav-grid-icon svg path,
.sidebar-nav .nav-grid-item.active[data-category="world"] .nav-grid-icon svg path,
[data-theme="light"] #nav-world.active .nav-grid-icon svg path,
[data-theme="light"] .nav-grid-item.active[data-category="world"] .nav-grid-icon svg path {
  stroke: #000000 !important;
  fill: none !important;
}

/* ==========================================================================
   8. TOPICS / STORIES STRIP (Image 5 Design - Circular Topics Carousel with Spacing)
   ========================================================================== */
.stories-topics-section {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 10px 0 !important; /* Space after header, right before tags strip */
  padding: 0 16px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.stories-topics-scroll {
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 4px 2px 8px 2px !important;
}

.stories-topics-scroll::-webkit-scrollbar {
  display: none !important;
}

.stories-topics-track {
  display: inline-flex !important;
  align-items: flex-start !important;
  gap: 18px !important;
  min-width: 100% !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
}

.story-topic-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  user-select: none !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  width: 76px !important;
}

.story-topic-item:hover {
  transform: translateY(-2px) !important;
}

.story-topic-avatar-wrap {
  position: relative !important;
  width: 66px !important;
  height: 66px !important;
  border-radius: 50% !important;
  /* Bright golden-yellow radiant ring matching Image 5 reference */
  background: linear-gradient(145deg, #fde047 0%, #facc15 50%, #f59e0b 85%, #ea580c 100%) !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.4) !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease !important;
}

.story-topic-avatar-inner {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid #000000 !important; /* 2px dark separation gap like Image 5 */
  box-sizing: border-box !important;
  background: #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

[data-theme="light"] .story-topic-avatar-inner,
html[data-theme="light"] .story-topic-avatar-inner,
body.bp-theme-light .story-topic-avatar-inner {
  border-color: #ffffff !important;
  background: #ffffff !important;
}

.story-topic-item:hover .story-topic-avatar-wrap {
  transform: scale(1.08) !important;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.65) !important;
}

.story-topic-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

.story-topic-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #e4e4e7 !important;
  text-align: center !important;
  max-width: 82px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -0.01em !important;
  transition: color 0.18s ease !important;
}

[data-theme="light"] .story-topic-label,
html[data-theme="light"] .story-topic-label,
body.bp-theme-light .story-topic-label {
  color: #18191c !important;
  font-weight: 650 !important;
}

.story-topic-item:hover .story-topic-label {
  color: #facc15 !important;
}

[data-theme="light"] .story-topic-item:hover .story-topic-label {
  color: #ea580c !important;
}

.story-topic-item.active .story-topic-avatar-wrap {
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.75) !important;
  transform: scale(1.06) !important;
}

.story-topic-item.active .story-topic-label {
  color: #facc15 !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   9. TRENDING STORIES SECTION (Clean Uncrowded Header)
   ========================================================================== */
.trending-stories-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 18px 20px 14px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
}

[data-theme="light"] .trending-stories-header,
html[data-theme="light"] .trending-stories-header,
body.bp-theme-light .trending-stories-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.trending-stories-title-wrap {
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.trending-stories-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 1.45rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  margin: 0 !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

[data-theme="light"] .trending-stories-title,
html[data-theme="light"] .trending-stories-title,
body.bp-theme-light .trending-stories-title {
  color: #0f172a !important;
}

.trending-stories-subtitle {
  display: none !important;
}
