@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&display=swap');

/* ===================================================
   BIRDPOST — Global CSS Design System v4
   Dark/Light mode · BuzzFeed-inspired lively theme
   =================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root,
[data-theme="light"] {
  /* Core palette — LIGHT MODE (Bilibili-inspired clean light theme) */
  --bg: #f6f7f8;
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f1f2f3;
  --bg-active: #e3e5e7;
  --border: #e3e5e7;
  --border-soft: #f1f2f3;

  /* Logo variables */
  --logo-text-color: #18191c;

  /* Text */
  --text-primary: #18191c;
  --text-secondary: #61666d;
  --text-muted: #9499a0;
  --text-white: #18191c;

  /* Accent — Vibrant Yellow (#facc15) */
  --accent: #facc15;
  --accent-hover: #eab308;
  --accent-glow: rgba(250, 204, 21, 0.35);
  --accent-subtle: rgba(250, 204, 21, 0.12);
  --accent-text: #000000;
  --bili-blue: #facc15;
  --bili-pink: #fb7299;

  /* Vibrant palette */
  --red: #ef4444;
  --green: #22c55e;
  --yellow: #eab308;
  --orange: #f97316;
  --pink: #fb7299;
  --purple: #a855f7;
  --teal: #14b8a6;

  /* Card shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Sizing */
  --sidebar-left-w: 270px;
  --sidebar-right-w: 340px;
  --feed-max: 620px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Transitions */
  --trans: 0.18s ease;
  --trans-slow: 0.3s ease;
  --trans-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Gradient accents */
  --gradient-fun: linear-gradient(135deg, #00aeec, #fb7299, #a855f7);
  --gradient-warm: linear-gradient(135deg, #00aeec, #00c0ff, #23ade5);
  --gradient-cool: linear-gradient(135deg, #00aeec, #14b8a6, #a855f7);
}

/* ===== DARK MODE — EXTREME DARK / AMOLED BLACK THEME ===== */
[data-theme="dark"] {
  --bg: #000000;
  --bg-panel: #000000;
  --bg-card: #000000;
  --bg-hover: #141414;
  --bg-active: #1f1f1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);

  /* Logo variables */
  --logo-text-color: #ffffff;

  /* Text */
  --text-primary: #eaedef;
  --text-secondary: #82959b;
  --text-muted: #57656a;
  --text-white: #ffffff;

  /* Accent — Vibrant Yellow (#facc15) */
  --accent: #facc15;
  --accent-hover: #eab308;
  --accent-glow: rgba(250, 204, 21, 0.4);
  --accent-subtle: rgba(250, 204, 21, 0.14);
  --accent-text: #000000;
  --bili-blue: #facc15;
  --bili-pink: #fb7299;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.7);
}

/* ---------- Theme transition — FAST ---------- */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: none !important;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

input {
  font-family: var(--font);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ===================================================
   LAYOUT — 3-column grid
   =================================================== */

body {
  display: grid;
  grid-template-columns: var(--sidebar-left-w) minmax(0, 1fr) var(--sidebar-right-w);
  grid-template-areas: "left main right";
  padding-top: 64px;
  max-width: 100vw;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
}


/* ===================================================
   THEME TOGGLE — Sun / Moon pill switch
   =================================================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans), box-shadow var(--trans);
  flex-shrink: 0;
  position: relative;
  width: 78px;
  height: 32px;
  padding: 0;
}

.theme-toggle:hover {
  border-color: #facc15 !important;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35) !important;
}

/* The sliding pill track */
.tt-track,
[data-theme="light"] .tt-track,
[data-theme="dark"] .tt-track,
.theme-toggle .tt-track {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #facc15 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: absolute;
  left: 5px;
  top: 5px;
  transform: translateX(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.45) !important;
}

.theme-icon-sun,
.theme-icon-moon,
.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon,
.theme-toggle:hover .theme-icon-sun,
.theme-toggle:hover .theme-icon-moon,
[data-theme="light"] .theme-toggle .theme-icon-sun,
[data-theme="dark"] .theme-toggle .theme-icon-moon {
  color: #000000 !important;
  stroke: #000000 !important;
  fill: #000000 !important;
  line-height: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.theme-icon-moon {
  display: block;
}

.theme-icon-sun {
  display: none;
}

/* Label text next to the track */
.tt-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--trans);
  user-select: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  left: auto;
}

.theme-toggle:hover .tt-label {
  color: var(--text-primary);
}

.tt-text-dark {
  display: inline;
}

.tt-text-light {
  display: none;
}

/* Light mode */
[data-theme="light"] .tt-track {
  transform: translateX(44px);
  background: #facc15 !important;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.45) !important;
}

[data-theme="light"] .theme-icon-moon {
  display: none !important;
}

[data-theme="light"] .theme-icon-sun {
  display: block !important;
}

[data-theme="light"] .tt-label {
  left: 10px;
  right: auto;
}

[data-theme="light"] .tt-text-dark {
  display: none;
}

[data-theme="light"] .tt-text-light {
  display: inline;
}

/* ===================================================
   HEADER PILL CAPSULE BUTTONS (Yellow Background & Black Text with Left Icon)
   =================================================== */
.header-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--bg-card, #181b1e);
  border: 1.5px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 50px;
  height: 32px;
  padding: 0 13px 0 11px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--trans), border-color var(--trans), box-shadow var(--trans), transform var(--trans);
  flex-shrink: 0;
  box-sizing: border-box;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-pill-btn:hover {
  background: var(--bg-hover, #22262b);
  border-color: var(--border-hover, rgba(255, 255, 255, 0.25));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.header-pill-btn:active {
  transform: translateY(0);
}

.header-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #94a3b8);
  flex-shrink: 0;
  line-height: 0;
}

.header-pill-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.header-pill-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff) !important;
  transition: color var(--trans);
  letter-spacing: 0.01em;
  display: inline-block;
  line-height: 1;
}

.header-pill-btn:hover .header-pill-label {
  color: #ffffff !important;
}

.header-pill-btn:hover .header-pill-icon {
  color: #ffffff;
}

.header-pill-btn.active {
  background: var(--bg-hover, rgba(255, 255, 255, 0.12));
  border-color: var(--accent, #facc15);
  box-shadow: 0 0 0 2px var(--accent-glow, rgba(250, 204, 21, 0.35));
}

.header-pill-btn.active .header-pill-label {
  color: #ffffff !important;
  font-weight: 800;
}

.header-pill-track {
  display: none !important;
}

.header-pill-btn.premium-pill {
  background: var(--bg-card, #181b1e);
  border: 1.5px solid rgba(245, 176, 65, 0.35);
  color: var(--text-primary, #ffffff);
}

.header-pill-btn.premium-pill:hover {
  background: rgba(245, 176, 65, 0.08);
  border-color: #f5b041;
  box-shadow: 0 0 0 3px rgba(245, 176, 65, 0.2);
}

.header-pill-btn.premium-pill .header-pill-icon,
.header-pill-btn.premium-pill .header-pill-icon svg {
  color: #f5b041;
  fill: #f5b041;
}

.header-pill-btn.premium-pill .header-pill-label {
  color: var(--text-primary, #ffffff) !important;
}

/* Post Pill (Legacy fallback) */
.header-pill-btn.post-pill {
  background: var(--bg-card, #181b1e) !important;
  border: 1.5px solid var(--border, rgba(255, 255, 255, 0.12)) !important;
  color: var(--text-primary, #ffffff) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-pill-btn.post-pill .header-pill-label {
  color: var(--text-primary, #ffffff) !important;
  font-weight: 700;
}

.header-pill-btn.post-pill .header-pill-icon {
  color: var(--text-secondary, #94a3b8) !important;
}

.header-pill-btn.post-pill .header-pill-icon svg {
  fill: currentColor !important;
}

.header-pill-btn.post-pill:hover {
  background: var(--bg-hover, #22262b) !important;
  border-color: var(--border-hover, rgba(255, 255, 255, 0.25)) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px);
}

.header-pill-btn.post-pill:hover .header-pill-label {
  color: #ffffff !important;
}

.header-pill-btn.post-pill:hover .header-pill-icon {
  color: #ffffff !important;
}

.header-pill-btn.post-pill:active {
  transform: translateY(0);
}

.header-pill-btn.post-pill.active {
  background: var(--bg-hover, #22262b) !important;
  border-color: var(--border-hover, rgba(255, 255, 255, 0.35)) !important;
}

/* ── Header Profile Icon Button & Popup ── */
.header-profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ===================================================
   HEADER NOTIFICATION BELL & BADGE (Matching Image 2)
   =================================================== */

.header-notifications-wrap {
  position: relative;
  display: none;
  /* Only visible to signed-in or logged-in users */
  align-items: center;
}

.header-notifications-wrap.logged-in {
  display: inline-flex;
}

.header-bell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.header-bell-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: scale(1.05);
}

[data-theme="light"] .header-bell-btn {
  color: #1e293b;
}

[data-theme="light"] .header-bell-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

.header-bell-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

.header-bell-btn:hover .header-bell-icon {
  animation: bellWiggle 0.4s ease-in-out;
}

@keyframes bellWiggle {
  0% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(12deg);
  }

  50% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(6deg);
  }

  100% {
    transform: rotate(0);
  }
}

/* Red 9+ Badge Matching Image 2 */
.header-bell-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #e11d48;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 9999px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  border: 2px solid #0b0c10;
  pointer-events: none;
  font-family: inherit;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

[data-theme="light"] .header-bell-badge {
  border-color: #ffffff;
}

.header-bell-badge.badge-hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.header-bell-btn,
.header-bell-btn:visited,
.header-bell-btn:hover,
.header-bell-btn:focus,
.header-bell-btn:active {
  color: #ffffff !important;
}

.header-bell-btn.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.header-bell-btn .header-bell-icon,
.header-bell-btn:hover .header-bell-icon,
.header-bell-btn:focus .header-bell-icon,
.header-bell-btn:active .header-bell-icon,
.header-bell-btn.active .header-bell-icon {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

[data-theme="light"] .header-bell-btn.active {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .header-bell-btn.active .header-bell-icon {
  stroke: #0f172a !important;
}

/* Notification Popup Dropdown - Permanently Disabled in favor of Notifications Page */
.header-notifications-popup,
[data-theme="light"] .header-notifications-popup {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.notif-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .notif-popup-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.015);
}

.notif-popup-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-popup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

[data-theme="light"] .notif-popup-title {
  color: #0f172a;
}

.notif-popup-count-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.22);
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

[data-theme="light"] .notif-popup-count-pill {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.notif-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
  animation: notifDotPulse 2s infinite ease-in-out;
}

@keyframes notifDotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.notif-mark-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.notif-mark-all-btn:hover {
  color: #00aeec;
  background: rgba(0, 174, 236, 0.12);
}

[data-theme="light"] .notif-mark-all-btn {
  color: #64748b;
}

[data-theme="light"] .notif-mark-all-btn:hover {
  color: #009cd3;
  background: rgba(0, 156, 211, 0.1);
}

.notif-popup-list {
  max-height: 350px;
  overflow-y: auto;
  padding: 6px 0;
}

.notif-popup-list::-webkit-scrollbar {
  width: 4px;
}

.notif-popup-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  margin: 2px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  position: relative;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .notif-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.notif-item.unread {
  background: rgba(0, 174, 236, 0.08);
}

.notif-item.unread:hover {
  background: rgba(0, 174, 236, 0.1);
}

[data-theme="light"] .notif-item.unread {
  background: rgba(0, 174, 236, 0.05);
}

[data-theme="light"] .notif-item.unread:hover {
  background: rgba(0, 174, 236, 0.09);
}

/* Avatar & Badges */
.notif-avatar-col {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.notif-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  display: block;
}

[data-theme="light"] .notif-avatar {
  border-color: rgba(0, 0, 0, 0.08);
}

.notif-system-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-system-avatar.badge-breaking {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.notif-badge-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 2px solid #12141a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .notif-badge-icon {
  border-color: #ffffff;
}

.notif-badge-icon.badge-reply {
  background: linear-gradient(135deg, #3b82f6, #00aeec);
}

.notif-badge-icon.badge-upvote {
  background: linear-gradient(135deg, #00aeec 0%, #009cd3 100%);
}

.notif-badge-icon.badge-alert {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notif-badge-icon.badge-award {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
}

/* Content Column */
.notif-content-col {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.notif-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.38;
  word-break: break-word;
}

[data-theme="light"] .notif-text {
  color: #334155;
}

.notif-actor {
  font-weight: 700;
  color: #ffffff;
}

[data-theme="light"] .notif-actor {
  color: #0f172a;
}

.notif-tag {
  font-weight: 700;
  color: #f87171;
}

[data-theme="light"] .notif-tag {
  color: #dc2626;
}

.notif-target {
  color: #f1f5f9;
  font-weight: 500;
}

[data-theme="light"] .notif-target {
  color: #1e293b;
}

.notif-highlight {
  color: #c084fc;
  font-weight: 600;
}

[data-theme="light"] .notif-highlight {
  color: #9333ea;
}

.notif-time {
  font-size: 0.70rem;
  color: #64748b;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

[data-theme="light"] .notif-time {
  color: #94a3b8;
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00aeec;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 174, 236, 0.7);
}

/* Footer */
.notif-popup-footer {
  padding: 11px 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .notif-popup-footer {
  border-top-color: rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}

.notif-view-all-link {
  font-size: 0.80rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, gap 0.15s ease;
}

.notif-view-all-link:hover {
  color: #00aeec;
  gap: 8px;
}

[data-theme="light"] .notif-view-all-link {
  color: #64748b;
}

[data-theme="light"] .notif-view-all-link:hover {
  color: #009cd3;
}

.notif-view-all-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.notif-view-all-link:hover {
  color: #00aeec;
}

/* ===================================================
   HEADER PROFILE BUTTON & POST PILL (Matching Image 1)
   =================================================== */

.header-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  background: #cfd4dc !important;
  /* Neutral grey from Image 1 */
  border: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: transform var(--trans), box-shadow var(--trans);
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.header-profile-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .header-profile-btn {
  background: #cbd5e1 !important;
  border: none !important;
}

.header-profile-btn .profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #cfd4dc;
}

.header-profile-btn .profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.header-profile-btn .profile-avatar svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  width: 22px;
  height: 22px;
}

/* Image 3 adjustment: Notification bell & profile avatar on desktop to little right */
@media (min-width: 769px) {

  .header-notifications-wrap,
  #headerNotificationsWrap {
    margin-left: 10px !important;
  }
}

/* ── Modern Reddit-Style Header Profile Popup (Fixed below Post Button) ── */
.header-account-popup {
  position: fixed !important;
  top: 62px !important;
  right: 20px !important;
  left: auto !important;
  width: 255px !important;
  min-width: 245px !important;
  background: #0e1113 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.85), 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  padding: 8px 0 6px !important;
  z-index: 999999 !important;
  color: #f2f4f5 !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.header-account-popup:not(.open) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.header-account-popup.open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

[data-theme="light"] .header-account-popup {
  background: #0e1113 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f2f4f5 !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

/* Profile Row at Top (Image 3) */
.account-popup-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 10px;
  text-decoration: none;
  border-radius: 8px;
  margin: 0 4px 4px;
  transition: background 0.15s ease;
  user-select: none;
}

.account-popup-profile-row:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.account-popup-profile-avatar-wrap {
  position: relative !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  flex-shrink: 0 !important;
}

.account-popup-avatar-circle {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #00aeec !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

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

.account-popup-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0e1113;
  box-sizing: content-box;
}

.account-popup-profile-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.account-popup-view-profile {
  font-size: 0.94rem;
  font-weight: 600;
  color: #f2f4f5 !important;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.account-popup-user-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #f2f4f5 !important;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.account-popup-view-profile-link {
  font-size: 0.8rem;
  color: #94a3b8 !important;
  margin-top: 2px;
  transition: color 0.15s ease;
}

.account-popup-profile-row:hover .account-popup-view-profile-link {
  color: #f2f4f5 !important;
}

.account-popup-member-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 14px !important;
  color: #f2f4f5 !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  margin: 0 4px !important;
  border-radius: 8px !important;
  transition: background 0.15s ease !important;
}

.account-popup-premium-pill {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.account-popup-premium-pill:hover {
  background: #242a32 !important;
  border-color: rgba(250, 204, 21, 0.4) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(250, 204, 21, 0.2) !important;
}

.premium-star-badge {
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

.account-popup-premium-pill:hover .premium-star-badge {
  transform: scale(1.12) rotate(12deg) !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.55) !important;
}

[data-theme="light"] .account-popup-premium-pill {
  background: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  color: #ffffff !important;
}

[data-theme="light"] .account-popup-premium-pill:hover {
  background: #1e293b !important;
}

.account-popup-member-row:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.member-sparkle-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.4));
}

.account-popup-logout-wrap {
  padding: 2px 4px 6px 4px;
}

.account-popup-user-email {
  font-size: 0.78rem;
  color: #64748b !important;
  padding: 2px 12px 4px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="light"] .account-popup-member-row:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.account-popup-profile-meta .account-popup-user-handle {
  font-size: 0.8rem;
  color: #82878a !important;
  margin-top: 1px;
}

/* Image 4 Capsule Post Button under Profile in Account Popup */
.account-popup-post-wrap {
  padding: 4px 12px 10px 12px;
  box-sizing: border-box;
  width: 100%;
}

.account-popup-post-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 7px 18px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.account-popup-post-pill:hover {
  background: #f8fafc !important;
  transform: translateY(-1px) scale(1.01) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
}

.account-popup-post-pill:active {
  transform: translateY(0) scale(0.99) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.popup-post-badge-circle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 50% !important;
  background: #facc15 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

.popup-post-badge-circle svg {
  display: block;
}

.popup-post-label-text {
  color: #000000 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* List of menu items */
.account-popup-menu-list {
  display: flex;
  flex-direction: column;
  padding: 0 4px;
}

.account-popup-menu-list .account-popup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #f2f4f5 !important;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
  font-size: 0.88rem;
}

.account-popup-menu-list .account-popup-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.account-popup-menu-list .account-popup-item .account-popup-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d7dadc !important;
  flex-shrink: 0;
}

.account-popup-menu-list .account-popup-item:hover .account-popup-icon {
  color: #ffffff !important;
}

.account-popup-menu-list .account-popup-item .account-popup-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #f2f4f5 !important;
  letter-spacing: -0.01em;
}

.account-popup-menu-list .account-popup-item.multi-line {
  align-items: flex-start;
  padding-top: 6px;
  padding-bottom: 6px;
}

.account-popup-menu-list .account-popup-item.multi-line .account-popup-icon {
  margin-top: 2px;
}

.account-popup-text-col {
  display: flex;
  flex-direction: column;
}

.account-popup-sublabel {
  font-size: 0.74rem;
  color: #82878a !important;
  margin-top: 1px;
  line-height: 1.2;
}

/* Mod Mode toggle pill switch matching Image 1 */
.account-popup-item.has-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-popup-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  margin-left: auto;
  cursor: pointer;
  flex-shrink: 0;
}

.account-popup-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.account-popup-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #343536;
  transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

.account-popup-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.account-popup-toggle input:checked+.account-popup-toggle-slider {
  background-color: #8fb6c8;
}

.account-popup-toggle input:checked+.account-popup-toggle-slider:before {
  transform: translateX(18px);
}

.toggle-check-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  color: #1a2732;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.account-popup-toggle input:checked+.account-popup-toggle-slider .toggle-check-icon {
  opacity: 1;
}

/* Dividers in header account popup */
.header-account-popup .account-popup-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08) !important;
  margin: 6px 0 !important;
}

/* Logout hover effect */
.account-popup-menu-list .account-popup-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.14) !important;
}

.account-popup-menu-list .account-popup-item.logout-item:hover .account-popup-label,
.account-popup-menu-list .account-popup-item.logout-item:hover .account-popup-icon {
  color: #ef4444 !important;
}

/* Under Settings: Dark/Light Mode Theme Toggle in Account Popup & Mobile Drawer */
.account-popup-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  margin: 3px 0;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.account-popup-theme-row:hover {
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
}

.account-popup-theme-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .account-popup-theme-label {
  color: #0f172a;
}

.account-popup-theme-toggle,
.sidebar-theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  width: 78px !important;
  height: 30px !important;
  border-radius: 9999px !important;
  border: 2px solid #facc15 !important;
  background: #000000 !important;
  padding: 0 !important;
  cursor: pointer !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25) !important;
  outline: none !important;
  flex-shrink: 0 !important;
}

[data-theme="light"] .account-popup-theme-toggle,
[data-theme="light"] .sidebar-theme-toggle {
  background: #ffffff !important;
  border-color: #eab308 !important;
}

/* Sidebar Drawer Settings Section */
.sidebar-settings-section {
  padding: 12px 14px;
}

.sidebar-settings-header {
  margin-bottom: 10px;
}

.sidebar-settings-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #71717a);
}

.sidebar-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 8px;
}

[data-theme="light"] .sidebar-theme-row {
  background: rgba(0, 0, 0, 0.04);
}

.sidebar-theme-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .sidebar-theme-label {
  color: #0f172a;
}

/* ── Sidebar Post Pill Button ── */
.btn-sidebar-post {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 18px;
  background: var(--bg-card, #181b1e) !important;
  color: var(--text-primary, #ffffff) !important;
  border: 1.5px solid var(--border, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans), box-shadow var(--trans), transform var(--trans);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  margin-top: 6px;
  box-sizing: border-box;
  user-select: none;
}

.btn-sidebar-post:hover {
  background: var(--bg-hover, #22262b) !important;
  border-color: var(--border-hover, rgba(255, 255, 255, 0.25)) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-sidebar-post:active {
  transform: translateY(0);
}

.sidebar-post-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #94a3b8);
  line-height: 0;
  transition: color var(--trans);
}

.sidebar-post-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}

.sidebar-post-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  transition: color var(--trans);
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn-sidebar-post:hover .sidebar-post-label {
  color: #ffffff !important;
}

.btn-sidebar-post:hover .sidebar-post-icon {
  color: #ffffff !important;
}

[data-theme="light"] .btn-sidebar-post {
  background: #ffffff !important;
  border: 1.5px solid #d4d4d8 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-sidebar-post .sidebar-post-label {
  color: #0f172a !important;
}

[data-theme="light"] .btn-sidebar-post .sidebar-post-icon {
  color: #64748b !important;
}

[data-theme="light"] .btn-sidebar-post:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .btn-sidebar-post:hover .sidebar-post-label {
  color: #0f172a !important;
}

[data-theme="light"] .btn-sidebar-post:hover .sidebar-post-icon {
  color: #0f172a !important;
}

[data-theme="light"] .header-pill-btn {
  background: #ffffff;
  border: 1.5px solid #d4d4d8;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header-pill-btn .header-pill-label {
  color: #0f172a !important;
}

[data-theme="light"] .header-pill-btn .header-pill-icon {
  color: #475569;
}

[data-theme="light"] .header-pill-btn:hover {
  background: #f4f4f5;
  border-color: #a1a1aa;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

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

[data-theme="light"] .header-pill-btn.premium-pill {
  background: #ffffff;
  border: 1.5px solid #d4d4d8;
}

[data-theme="light"] .header-pill-btn.premium-pill .header-pill-label {
  color: #0f172a !important;
}

[data-theme="light"] .header-pill-btn.post-pill {
  background: var(--bili-pink, #fb7299) !important;
  border: 1.5px solid var(--bili-pink, #fb7299) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(251, 114, 153, 0.25);
}

[data-theme="light"] .header-pill-btn.post-pill:hover {
  background: #f05b87 !important;
  border-color: #f05b87 !important;
  box-shadow: 0 0 0 3px rgba(251, 114, 153, 0.4);
}

[data-theme="light"] .header-pill-btn.post-pill .header-pill-label {
  color: #ffffff !important;
}

[data-theme="light"] .header-pill-btn.post-pill .header-pill-icon svg {
  fill: #ffffff !important;
}

[data-theme="light"] .header-profile-btn {
  background: #cbd5e1 !important;
  border: none !important;
}

[data-theme="light"] .header-profile-btn .profile-avatar svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

@media (max-width: 1200px) {
  .header-pill-btn {
    padding: 0 10px 0 9px;
    gap: 5px;
    font-size: 0.74rem;
  }

  .header-pill-icon svg {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 992px) {
  .header-pill-btn {
    padding: 0 8px 0 7px;
    gap: 4px;
    font-size: 0.72rem;
  }
}


/* Light mode feed components */
[data-theme="light"] .subcat-tab {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .subcat-tab:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.05);
}

.subcat-tab.active,
.subcat-tab.active:hover,
.subcat-tab.active:focus,
.subcat-tab.active:visited,
[data-theme="light"] .subcat-tab.active,
[data-theme="light"] .subcat-tab.active:hover,
[data-theme="light"] .subcat-tab.active:focus,
[data-theme="light"] .subcat-tab.active:visited {
  color: #000000 !important;
  font-weight: 800 !important;
  background: var(--accent, #facc15) !important;
  border-color: var(--accent, #facc15) !important;
  box-shadow: 0 2px 8px var(--accent-glow) !important;
}

[data-theme="light"] .search-bar {
  background: #ffffff;
  border-color: var(--accent, #facc15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .search-bar:focus-within {
  background: #ffffff;
  border-color: var(--accent, #facc15);
  box-shadow: 0 0 12px var(--accent-glow);
}

[data-theme="light"] .badge-breaking {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: 1.5px solid #ef4444 !important;
}





/* Category banner — HIDDEN */
.cat-header-banner {
  display: none;
}

/* ===================================================
   LEFT SIDEBAR
   =================================================== */

.sidebar-left {
  grid-area: left;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  align-self: flex-start;
  overflow: hidden !important;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
}

body[style*="overflow: hidden"] .sidebar-left,
body[style*="overflow:hidden"] .sidebar-left {
  top: 0 !important;
}

.sidebar-left .logo-wrap {
  display: none;
}

.sidebar-left .sidebar-bottom {
  display: none !important;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 6px 6px 16px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-inner::-webkit-scrollbar {
  display: none;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  padding: 14px 10px 14px;
}

.logo {
  display: inline-flex !important;
  align-items: center !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: transform var(--trans) !important;
}

.logo:hover {
  transform: scale(1.03) !important;
  box-shadow: none !important;
}

.logo-bird {
  display: none !important;
}

.logo-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 2.8rem !important;
  font-weight: 900 !important;
  text-transform: none !important;
  letter-spacing: -0.05em !important;
  color: var(--logo-text-color) !important;
  background: none !important;
  -webkit-text-fill-color: var(--logo-text-color) !important;
  -webkit-text-stroke: 0 !important;
  background-clip: unset !important;
  text-shadow: none !important;
}

.logo-exclamation {
  display: inline-block !important;
  transform: rotate(12deg) !important;
  margin-left: 2px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

/* Sidebar Top Actions (Subscribe + Account) */
.sidebar-top-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px 2px;
}

/* Sidebar Top Slider Button - Bird of the Week (Image 4 Pill Style) */
.btn-primary-full.sidebar-slider-btn,
.btn-primary-full.sidebar-slider-btn.only-birdweek {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 9999px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 3px 16px 3px 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: visible !important;
  text-decoration: none !important;
}

[data-theme="light"] .btn-primary-full.sidebar-slider-btn,
[data-theme="light"] .btn-primary-full.sidebar-slider-btn.only-birdweek {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 174, 236, 0.2), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .btn-primary-full.sidebar-slider-btn,
[data-theme="dark"] .btn-primary-full.sidebar-slider-btn.only-birdweek {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 22px rgba(250, 204, 21, 0.25), 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.btn-primary-full.sidebar-slider-btn:hover,
.btn-primary-full.sidebar-slider-btn.only-birdweek:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.26), 0 0 16px rgba(250, 204, 21, 0.3) !important;
  background: #f8fafc !important;
}

.btn-primary-full.sidebar-slider-btn:active,
.btn-primary-full.sidebar-slider-btn.only-birdweek:active {
  transform: scale(0.98) !important;
}

.btn-primary-full.sidebar-slider-btn .sidebar-slider-track,
.btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-track {
  height: 100% !important;
  width: 100% !important;
  transform: translateY(0) !important;
  transition: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.btn-primary-full.sidebar-slider-btn .sidebar-slider-slide,
.btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-slide {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  gap: 12px !important;
  color: #0f172a !important;
  background: transparent !important;
}

.btn-primary-full.sidebar-slider-btn .sidebar-slider-icon-circle,
.btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-icon-circle {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #facc15 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #000000 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.45) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  margin-left: 2px !important;
}

.btn-primary-full.sidebar-slider-btn .sidebar-slider-icon-circle svg,
.btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-icon-circle svg {
  width: 15px !important;
  height: 15px !important;
  color: #000000 !important;
  stroke: #000000 !important;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-primary-full.sidebar-slider-btn:hover .sidebar-slider-icon-circle svg,
.btn-primary-full.sidebar-slider-btn.only-birdweek:hover .sidebar-slider-icon-circle svg {
  transform: rotate(-16deg) scale(1.15) !important;
}

.btn-primary-full.sidebar-slider-btn .sidebar-slider-label,
.btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-label {
  color: #0f172a !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  letter-spacing: -0.015em !important;
  white-space: nowrap !important;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Two-column nav grid */
.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 2px 0;
}

.nav-grid-item {
  display: flex;
  align-items: center;
  gap: 6.5px;
  padding: 6.5px 8.5px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--trans);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-grid-item:hover {
  background: var(--bg-hover);
  color: var(--text-white);
  transform: translateY(-1px);
}

/* Light mode nav-grid-item hover, focus & click: Crisp dark text & icons (Image 2) */
[data-theme="light"] .nav-grid-item:hover,
[data-theme="light"] .nav-grid-item:focus-visible,
[data-theme="light"] .sidebar-nav .nav-grid-item:hover,
[data-theme="light"] .sidebar-nav .nav-grid-item:focus-visible {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f1419 !important;
  transform: translateY(-1px);
}

[data-theme="light"] .nav-grid-item:hover .nav-grid-icon svg,
[data-theme="light"] .nav-grid-item:focus-visible .nav-grid-icon svg,
[data-theme="light"] .sidebar-nav .nav-grid-item:hover .nav-grid-icon svg,
[data-theme="light"] .sidebar-nav .nav-grid-item:focus-visible .nav-grid-icon svg {
  fill: #0f1419 !important;
}

[data-theme="light"] .nav-grid-item:hover .nav-grid-icon svg[fill="none"],
[data-theme="light"] .nav-grid-item:hover .nav-grid-icon svg[fill="none"] *,
[data-theme="light"] .nav-grid-item:focus-visible .nav-grid-icon svg[fill="none"],
[data-theme="light"] .nav-grid-item:focus-visible .nav-grid-icon svg[fill="none"] * {
  stroke: #0f1419 !important;
  fill: none !important;
}

/* Active tab → VIBRANT YELLOW PILL WITH BLACK TEXT (Image 1 Spec) */
.nav-grid-item.active,
.nav-grid-item.active:hover,
.nav-grid-item.active:focus,
.nav-grid-item.active:active,
[data-theme="light"] .nav-grid-item.active,
[data-theme="light"] .nav-grid-item.active:hover,
[data-theme="light"] .nav-grid-item.active:focus,
[data-theme="light"] .nav-grid-item.active:active,
.sidebar-nav .nav-grid-item.active,
.sidebar-nav .nav-grid-item.active:hover {
  color: #000000 !important;
  font-weight: 800 !important;
  background: #facc15 !important;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.45) !important;
  opacity: 1 !important;
}

.nav-grid-item.active .nav-grid-icon svg,
.nav-grid-item.active:hover .nav-grid-icon svg,
[data-theme="light"] .nav-grid-item.active .nav-grid-icon svg,
[data-theme="light"] .nav-grid-item.active:hover .nav-grid-icon svg {
  fill: #000000 !important;
}

/* Ensure stroke-based outline icons stay unfilled when active */
.nav-grid-item.active .nav-grid-icon svg[fill="none"],
.nav-grid-item.active .nav-grid-icon svg[fill="none"] *,
.nav-grid-item.active:hover .nav-grid-icon svg[fill="none"],
.nav-grid-item.active:hover .nav-grid-icon svg[fill="none"] *,
[data-theme="light"] .nav-grid-item.active .nav-grid-icon svg[fill="none"],
[data-theme="light"] .nav-grid-item.active .nav-grid-icon svg[fill="none"] *,
[data-theme="light"] .nav-grid-item.active:hover .nav-grid-icon svg[fill="none"],
[data-theme="light"] .nav-grid-item.active:hover .nav-grid-icon svg[fill="none"] * {
  fill: none !important;
  stroke: #000000 !important;
}

.nav-grid-item[data-category="geopolitics"] .nav-grid-icon svg,
.nav-grid-item[data-category="geopolitics"] .nav-grid-icon svg circle,
.nav-grid-item[data-category="geopolitics"] .nav-grid-icon svg line,
.nav-grid-item[data-category="geopolitics"] .nav-grid-icon svg path,
.nav-grid-item[data-category="news"] .nav-grid-icon svg,
.nav-grid-item[data-category="news"] .nav-grid-icon svg path,
.nav-grid-item[data-category="science"] .nav-grid-icon svg,
.nav-grid-item[data-category="science"] .nav-grid-icon svg path,
.nav-grid-item[data-category="science"] .nav-grid-icon svg line,
.nav-grid-item[data-category="social"] .nav-grid-icon svg,
.nav-grid-item[data-category="social"] .nav-grid-icon svg line {
  fill: none !important;
}

.nav-grid-item.active[data-category="geopolitics"] .nav-grid-icon svg circle,
.nav-grid-item.active[data-category="geopolitics"] .nav-grid-icon svg line,
.nav-grid-item.active[data-category="geopolitics"] .nav-grid-icon svg path,
.nav-grid-item.active[data-category="news"] .nav-grid-icon svg,
.nav-grid-item.active[data-category="news"] .nav-grid-icon svg path,
.nav-grid-item.active[data-category="science"] .nav-grid-icon svg path,
.nav-grid-item.active[data-category="science"] .nav-grid-icon svg line,
.nav-grid-item.active[data-category="social"] .nav-grid-icon svg line {
  fill: none !important;
  stroke: #000000 !important;
}

.nav-grid-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-grid-icon svg {
  width: 16px;
  height: 16px;
  transition: fill var(--trans);
}

.nav-grid-label {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Premium Tab — BILIBILI BLUE ACCENT STYLE ── */
.nav-grid-item.premium-tab {
  background: linear-gradient(135deg, rgba(0, 174, 236, 0.12), rgba(0, 156, 211, 0.08));
  border: 1px solid rgba(0, 174, 236, 0.25);
  color: #00aeec;
  position: relative;
  overflow: hidden;
  transition: background var(--trans), border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}

.nav-grid-item.premium-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 174, 236, 0.15), transparent);
  animation: premiumShimmer 2.5s infinite;
}

@keyframes premiumShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.nav-grid-item.premium-tab:hover {
  background: linear-gradient(135deg, rgba(0, 174, 236, 0.22), rgba(0, 156, 211, 0.15));
  border-color: rgba(0, 174, 236, 0.45);
  color: #23ade5;
  box-shadow: 0 2px 12px rgba(0, 174, 236, 0.25);
  transform: translateY(-2px);
}

.nav-grid-item.premium-tab:active {
  transform: scale(0.94) !important;
  box-shadow: 0 1px 4px rgba(0, 174, 236, 0.1) !important;
}

.nav-grid-item.premium-tab .nav-grid-icon svg {
  fill: #00aeec !important;
}

.nav-grid-item.premium-tab.active {
  background: linear-gradient(135deg, #009cd3, #00aeec) !important;
  border-color: #009cd3 !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 174, 236, 0.4) !important;
}

.nav-grid-item.premium-tab.active .nav-grid-icon svg {
  fill: #fff !important;
}

/* Old nav-item styles (still used in Company Details) */
.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 14px;
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 400;
  transition: background var(--trans), color var(--trans);
  position: relative;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.nav-item.active {
  color: var(--text-white);
  font-weight: 700;
}

.nav-item.compact {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.nav-item.compact .nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-item.compact.sub-link {
  padding-left: 50px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.nav-item.compact.sub-link:hover {
  color: var(--text-white);
}

/* Locked Navigation Items (compact list & 2-column grid items) */
.nav-item.nav-item-locked,
.nav-grid-item.nav-item-locked {
  cursor: pointer;
  position: relative;
  opacity: 0.85;
  transition: all var(--trans);
}

.nav-item.nav-item-locked:hover,
.nav-grid-item.nav-item-locked:hover {
  opacity: 1;
  background: var(--bg-hover);
  color: var(--text-white);
}

[data-theme="light"] .nav-item.nav-item-locked:hover,
[data-theme="light"] .nav-grid-item.nav-item-locked:hover {
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f1419 !important;
}

[data-theme="light"] .nav-item.nav-item-locked:hover .nav-grid-icon svg,
[data-theme="light"] .nav-grid-item.nav-item-locked:hover .nav-grid-icon svg {
  fill: #0f1419 !important;
}

[data-theme="light"] .nav-item.nav-item-locked:hover .nav-lock-badge,
[data-theme="light"] .nav-grid-item.nav-item-locked:hover .nav-lock-badge {
  color: #f59e0b !important;
}

.nav-lock-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 0.85;
  flex-shrink: 0;
  transition: all var(--trans);
}

.nav-lock-badge svg {
  width: 13px;
  height: 13px;
}

.nav-item.nav-item-locked:hover .nav-lock-badge,
.nav-grid-item.nav-item-locked:hover .nav-lock-badge {
  color: #f59e0b;
  transform: scale(1.15);
}

/* Header pill locked */
.header-pill-btn.header-pill-locked {
  cursor: pointer;
  opacity: 0.88;
}

.header-pill-btn.header-pill-locked .header-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  color: var(--text-secondary);
  transition: all var(--trans);
}

.header-pill-btn.header-pill-locked:hover .header-lock-badge {
  color: #f59e0b;
  transform: scale(1.15);
}

/* Header nav link locked */
.header-nav-link.nav-link-locked {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-nav-link.nav-link-locked .nav-lock-badge {
  margin-left: 2px;
}

.header-nav-link.nav-link-locked:hover .nav-lock-badge {
  color: #f59e0b;
}

/* Bird of the Week Modal */
.birdweek-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: birdweekFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.birdweek-modal-card {
  background: #18191c;
  color: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  animation: birdweekCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

[data-theme="light"] .birdweek-modal-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.birdweek-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.birdweek-modal-close:hover {
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  transform: scale(1.08);
}

.birdweek-hero-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0f172a;
  overflow: hidden;
}

.birdweek-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.birdweek-modal-card:hover .birdweek-hero-img {
  transform: scale(1.03);
}

.birdweek-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 25, 28, 0.95) 0%, rgba(24, 25, 28, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 20px;
  box-sizing: border-box;
}

[data-theme="light"] .birdweek-img-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.2) 60%, transparent 100%);
}

.birdweek-crown-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.birdweek-speed-pill {
  background: rgba(0, 174, 236, 0.9);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.4);
}

.birdweek-content {
  padding: 18px 24px 24px;
}

.birdweek-species-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.birdweek-species-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.birdweek-species-latin {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-secondary, #94a3b8);
  display: block;
}

.birdweek-rating-box {
  text-align: right;
}

.birdweek-rating-star {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fbbf24;
}

.birdweek-rating-sub {
  font-size: 0.7rem;
  color: var(--text-secondary, #94a3b8);
}

.birdweek-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary, #cbd5e1);
  margin: 0 0 16px;
}

[data-theme="light"] .birdweek-desc {
  color: #475569;
}

.birdweek-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.birdweek-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

[data-theme="light"] .birdweek-stat-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.birdweek-stat-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent, #00aeec);
}

.birdweek-stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-secondary, #94a3b8);
  margin-top: 2px;
}

.birdweek-actions {
  display: flex;
  gap: 10px;
}

.birdweek-btn-celebrate {
  flex: 1.3;
  padding: 11px 16px;
  background: linear-gradient(135deg, #00aeec 0%, #0090c8 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill, 9999px);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 174, 236, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.birdweek-btn-celebrate:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 174, 236, 0.5);
}

.birdweek-btn-celebrate:active {
  transform: scale(0.97);
}

.birdweek-btn-share {
  flex: 1;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #e2e8f0);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill, 9999px);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

[data-theme="light"] .birdweek-btn-share {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

.birdweek-btn-share:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

@keyframes birdweekFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes birdweekCardPop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Confetti particles */
.bird-confetti-particle {
  position: fixed;
  z-index: 10000000;
  pointer-events: none;
  border-radius: 3px;
  will-change: transform, opacity;
}

/* Newsletter tab locked styles */
.newsletter-inline-tab.newsletter-tab-locked {
  cursor: pointer;
}

.newsletter-tab-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: #f59e0b;
  vertical-align: middle;
}

.newsletter-tab-subscribe-btn.btn-locked {
  background: #334155 !important;
  color: #f1f5f9 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.newsletter-tab-subscribe-btn.btn-locked:hover {
  background: #1e293b !important;
  color: #f59e0b !important;
  transform: scale(1.03);
}

/* Floating Toast Notification Box (Image 2 Spec) */
.toast-notification-box,
.birdpost-toast-bar {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  background: #0f1419 !important;
  color: #ffffff !important;
  padding: 13px 22px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transform: translateX(-50%) translateY(20px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 100004 !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  min-width: 320px !important;
  max-width: 92vw !important;
  box-sizing: border-box !important;
}

.toast-notification-box.visible,
.birdpost-toast-bar.visible {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.toast-notification-box .toast-icon,
.toast-icon {
  display: none !important;
}

.toast-notification-box .toast-message,
.toast-notification-box .birdpost-toast-text,
.birdpost-toast-bar .birdpost-toast-text {
  flex: 1 !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em !important;
}

.toast-notification-box .birdpost-toast-close,
.birdpost-toast-bar .birdpost-toast-close,
.birdpost-toast-close {
  background: none !important;
  border: none !important;
  color: #71767b !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

.toast-notification-box .birdpost-toast-close:hover,
.birdpost-toast-bar .birdpost-toast-close:hover,
.birdpost-toast-close:hover {
  color: #ffffff !important;
  transform: scale(1.15) !important;
}

.nav-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 4px 6px;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  transition: fill var(--trans);
}

.nav-label {
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Company Details Collapsible Section */
.company-details-section {
  margin: 0;
}

.company-details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px 8px;
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--trans), color var(--trans);
  cursor: pointer;
}

.company-details-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

[data-theme="light"] .company-details-toggle:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f1419 !important;
}

[data-theme="light"] .company-details-toggle:hover svg {
  color: #0f1419 !important;
}

.company-toggle-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-toggle-left svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.company-toggle-arrow {
  transition: transform var(--trans-slow);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.company-details-section.open .company-toggle-arrow {
  transform: rotate(180deg);
}

.company-details-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  opacity: 0;
}

.company-details-section.open .company-details-content {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  opacity: 1;
}

/* Follow Us — Social Media (Nav Grid Style matching Categories) */
.follow-us-section {
  padding: 2px 0 4px;
}

.follow-us-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px 3px;
}

.follow-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5px;
  padding: 2px 0;
}

.follow-us-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary) !important;
  font-size: 0.76rem;
  font-weight: 500;
  transition: all var(--trans);
  cursor: pointer;
}

.follow-us-item:hover {
  background: var(--bg-hover);
  border-color: transparent;
  color: var(--text-white) !important;
  transform: translateY(-1px);
}

[data-theme="light"] .follow-us-item:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f1419 !important;
}

[data-theme="light"] .follow-us-item:hover .follow-us-icon svg {
  fill: currentColor !important;
}

.follow-us-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
  transition: transform var(--trans);
}

.follow-us-item:hover .follow-us-icon {
  transform: scale(1.1);
}

.follow-us-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.follow-us-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: inherit !important;
  white-space: nowrap;
}

/* ===================================================
   WELCOME & CONTRIBUTE BANNERS (Left Sidebar Cards)
   - Welcome: shown to guests
   - Contribute ("BREAK THE CAGE"): shown to logged-in users
   =================================================== */

.sidebar-welcome-banner {
  position: relative;
  margin: 16px 0 10px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fed754;
  border: 1px solid #f5c518;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.sidebar-welcome-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Inspired Bird Mascot Overlay (Images 1 & 2: Sleepy Bed Bird & Beanbag Tablet Bird) */
.welcome-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('bird_chill_overlay.webp');
  background-size: cover;
  background-position: center bottom;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.sidebar-welcome-banner:hover .welcome-banner-bg {
  opacity: 0.75;
  transform: scale(1.03);
}

/* Soft Yellow Contrast Gradient to make text razor-sharp while showcasing the characters */
.welcome-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(254, 215, 84, 0.92) 0%, rgba(254, 215, 84, 0.75) 45%, rgba(254, 215, 84, 0.35) 100%);
  pointer-events: none;
}

.welcome-banner-inner {
  position: relative;
  z-index: 2;
  padding: 16px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Star is removed */
.welcome-banner-star {
  display: none !important;
}

/* Headline: Welcome to Birdpost (Bigger & Bolder) + posts from the internet (Smaller) */
.welcome-banner-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 14px 0;
}

.welcome-banner-main {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #000000 !important;
  line-height: 1.18;
  letter-spacing: -0.4px;
}

.welcome-banner-sub {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a1a1b !important;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

/* Backward-compatibility */
.welcome-banner-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a1a1b !important;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

/* Call-to-action button: BECOME A BIRDER (Pill Shape matching 2nd/3rd Image) */
.welcome-banner-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: #00a2ed;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 162, 237, 0.4);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.welcome-banner-btn:hover {
  background: #0092d6;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 162, 237, 0.55);
}

.welcome-banner-btn:active {
  transform: translateY(0);
}

/* Descriptive text: found anything interesting over the internet? just post it */
.welcome-banner-desc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1b !important;
  line-height: 1.35;
  margin: 10px 0 0 0;
}

/* ===================================================
   LOGGED-IN "BREAK THE CAGE" BANNER (Yellow Penguin Aesthetic)
   - Cute cartoon penguins breaking out of cage
   - "JOIN THE INTERNET / Break the Cage!"
   - Interactive "CONTRIBUTE NOW" pill button
   - Interactive close (X) button
   =================================================== */

.sidebar-contribute-banner {
  position: relative;
  margin: auto 0 2px 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffdb4d;
  border: 1px solid rgba(230, 175, 0, 0.45);
  box-shadow: 0 6px 20px rgba(230, 160, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  user-select: none;
  line-height: 0;
}

.sidebar-contribute-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(230, 160, 0, 0.32), 0 4px 10px rgba(0, 0, 0, 0.12);
}

.contribute-banner-card {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  line-height: 0;
}

.contribute-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  pointer-events: none;
}

/* White Capsule "Post" Button with Yellow Circle & Black Feather Icon (Image 4 & 5 Spec) */
.contribute-banner-btn {
  position: absolute;
  left: 6.8%;
  top: 68%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 9999px;
  padding: 6px 16px 6px 6px;
  color: #000000 !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  user-select: none;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  z-index: 4;
  line-height: normal;
  box-sizing: border-box;
}

.contribute-banner-btn:hover {
  transform: translateY(-2px);
  background: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 2px 5px rgba(0, 0, 0, 0.1);
  border-color: rgba(250, 204, 21, 0.5) !important;
}

.contribute-banner-btn:active {
  transform: translateY(0);
  background: #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.contribute-banner-btn:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

/* Yellow icon circle on left with Black feather icon (Image 5 Spec) */
.contribute-btn-icon {
  width: 28px;
  height: 28px;
  background: #facc15 !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #000000 !important;
  box-shadow: 0 2px 6px rgba(250, 204, 21, 0.45);
}

.contribute-btn-icon svg {
  display: block;
  stroke: #000000 !important;
}

.contribute-btn-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #000000 !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}

/* Visibility Rules:
   - Guest visitors see .sidebar-welcome-banner
   - Logged-in users see .sidebar-contribute-banner */
.sidebar-welcome-banner {
  display: block;
}

.sidebar-contribute-banner {
  display: none;
}

html.bp-has-user .sidebar-welcome-banner,
body.bp-has-user .sidebar-welcome-banner,
.sidebar-welcome-banner.logged-in {
  display: none !important;
}

html.bp-has-user .sidebar-contribute-banner,
body.bp-has-user .sidebar-contribute-banner,
.sidebar-contribute-banner.logged-in {
  display: block !important;
}

/* Compact height screens (e.g. 1440x704, 1366x768, <= 768px height) —
   Ensures category items are comfortable and the full Break the Cage banner covers the bottom space (Matching Image 2 & 3) */
@media (max-height: 768px) {
  .sidebar-inner {
    padding: 6px 6px 2px !important;
  }

  .sidebar-top-actions {
    margin-bottom: 3px !important;
  }

  .btn-primary-full.sidebar-slider-btn {
    height: 38px !important;
    min-height: 38px !important;
  }

  .btn-primary-full.sidebar-slider-btn.only-birdweek {
    height: 38px !important;
    min-height: 38px !important;
    padding: 3px 12px 3px 5px !important;
  }

  .btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-icon-circle {
    width: 26px !important;
    height: 26px !important;
  }

  .btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-label {
    font-size: 0.88rem !important;
  }

  .nav-grid {
    gap: 3.5px !important;
    padding: 2px 0 !important;
  }

  .nav-grid-item {
    padding: 5.6px 8px !important;
    font-size: 0.83rem !important;
    font-weight: 600 !important;
    gap: 6px !important;
  }

  .nav-grid-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .nav-grid-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .nav-grid-label {
    font-size: 0.83rem !important;
    font-weight: 600 !important;
  }

  .nav-divider {
    margin: 3px 6px !important;
  }

  .company-details-toggle {
    padding: 4.5px 8px !important;
    font-size: 0.82rem !important;
  }

  .follow-us-header {
    font-size: 0.72rem !important;
    padding: 2px 6px 2px !important;
  }

  .follow-us-grid {
    gap: 2px !important;
    padding: 1px 0 !important;
  }

  .follow-us-item {
    padding: 3.5px 7px !important;
    font-size: 0.76rem !important;
    gap: 5px !important;
  }

  .follow-us-icon {
    width: 16px !important;
    height: 16px !important;
  }

  .follow-us-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .follow-us-label {
    font-size: 0.76rem !important;
  }

  .sidebar-contribute-banner {
    margin: auto 0 2px 0 !important;
  }
}

/* Sidebar Bottom */
.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  transition: all var(--trans);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary-full:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary-full:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px var(--accent-glow);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: background var(--trans);
}

.sidebar-profile:hover {
  background: var(--bg-hover);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-fun);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

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

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-handle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.more-btn {
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 50%;
  transition: color var(--trans), background var(--trans);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-btn:hover {
  color: var(--text-white);
  background: var(--bg-hover);
}

/* ===================================================
   SIDEBAR ACCOUNT POPUP MENU
   =================================================== */
.sidebar-profile-wrap {
  position: relative;
  width: 100%;
}

.sidebar-profile.menu-open {
  background: var(--bg-hover, rgba(255, 255, 255, 0.08));
}

.sidebar-profile.menu-open .more-btn {
  color: var(--text-white, #ffffff);
}

.account-popup-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
  z-index: 1200;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-popup-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.account-popup-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-popup-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 5px 6px;
}

.account-popup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-white, #ffffff);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  user-select: none;
  border: none;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.account-popup-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.account-popup-item:active {
  transform: scale(0.98);
}

.account-popup-item.bold-item .account-popup-label {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: var(--text-white, #ffffff);
}

.account-popup-item.normal-item .account-popup-label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-secondary, #d4d4d8);
}

.account-popup-item:hover.normal-item .account-popup-label {
  color: var(--text-white, #ffffff);
}

.account-popup-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.14);
}

.account-popup-item.logout-item:hover .account-popup-label,
.account-popup-item.logout-item:hover .account-popup-icon {
  color: #ef4444;
}

.account-popup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #a1a1aa;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.account-popup-item:hover .account-popup-icon {
  color: #ffffff;
}

/* Light Theme Styling */
[data-theme="light"] .account-popup-menu {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .account-popup-divider {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .account-popup-item {
  color: #18181b;
}

[data-theme="light"] .account-popup-item:hover {
  background: #f4f4f5;
}

[data-theme="light"] .account-popup-item.bold-item .account-popup-label {
  color: #18181b;
}

[data-theme="light"] .account-popup-item.normal-item .account-popup-label {
  color: #52525b;
}

[data-theme="light"] .account-popup-item:hover.normal-item .account-popup-label {
  color: #09090b;
}

[data-theme="light"] .account-popup-icon {
  color: #71717a;
}

[data-theme="light"] .account-popup-item:hover .account-popup-icon {
  color: #18181b;
}

[data-theme="light"] .account-popup-item.logout-item:hover {
  background: #fef2f2;
}

[data-theme="light"] .account-popup-item.logout-item:hover .account-popup-label,
[data-theme="light"] .account-popup-item.logout-item:hover .account-popup-icon {
  color: #dc2626;
}

/* Sidebar Embedded Auth Panel */
.sidebar-auth-panel {
  padding: 6px 6px 4px;
}

.sidebar-auth-welcome {
  padding: 10px 8px 8px;
  text-align: center;
}

.sidebar-auth-welcome-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

[data-theme="light"] .sidebar-auth-welcome-title {
  color: #09090b;
}

.sidebar-auth-welcome-sub {
  font-size: 0.77rem;
  line-height: 1.4;
  color: var(--text-secondary, #a1a1aa);
  margin-bottom: 12px;
}

.sidebar-auth-welcome-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-popup-primary-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background: #00aeec;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.25);
}

.btn-popup-primary-auth:hover {
  background: #0098d0;
  transform: translateY(-1px);
}

.btn-popup-secondary-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #e4e4e7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .btn-popup-secondary-auth {
  background: #f4f4f5;
  color: #18181b;
  border-color: #e4e4e7;
}

.btn-popup-secondary-auth:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .btn-popup-secondary-auth:hover {
  background: #e4e4e7;
}

.sidebar-auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

[data-theme="light"] .sidebar-auth-tabs {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.sidebar-auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary, #a1a1aa);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  position: relative;
  text-align: center;
}

.sidebar-auth-tab:hover {
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .sidebar-auth-tab:hover {
  color: #18181b;
}

.sidebar-auth-tab.active {
  color: #ff5722;
}

.sidebar-auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #ff5722;
  border-radius: 2px;
}

.sidebar-auth-msg {
  display: none;
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 6px 9px;
  border-radius: 8px;
  margin-bottom: 8px;
  word-break: break-word;
}

.sidebar-auth-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.sidebar-auth-msg.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.sidebar-auth-form {
  display: none;
  flex-direction: column;
  gap: 7px;
}

.sidebar-auth-form.active {
  display: flex;
}

.sidebar-auth-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-auth-field label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #888);
}

.sidebar-auth-field input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .sidebar-auth-field input {
  background: #f4f4f5;
  border-color: rgba(0, 0, 0, 0.12);
  color: #18181b;
}

.sidebar-auth-field input:focus {
  border-color: #ff5722;
  box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

[data-theme="light"] .sidebar-auth-field input:focus {
  background: #ffffff;
}

.sidebar-auth-submit {
  margin-top: 3px;
  background: linear-gradient(135deg, #ff5722, #ff7043);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sidebar-auth-submit:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.sidebar-auth-submit:active {
  transform: scale(0.98);
}

.sidebar-auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.sidebar-auth-switch {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-secondary, #888);
  margin: 3px 0 1px;
}

.sidebar-auth-switch a {
  color: #ff5722;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.sidebar-auth-switch a:hover {
  text-decoration: underline;
}

.sidebar-user-panel {
  display: none;
}

/* Report Problems Modal */
.report-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.report-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.report-modal-card {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.report-modal-backdrop.show .report-modal-card {
  transform: scale(1);
}

.report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.report-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.report-modal-close {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.report-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.report-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-modal-body p {
  margin: 0;
  font-size: 0.88rem;
  color: #a1a1aa;
  line-height: 1.45;
}

.report-modal-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.report-modal-textarea:focus {
  border-color: #00aeec;
  box-shadow: 0 0 0 2px rgba(0, 174, 236, 0.2);
}

.report-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.report-btn-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.report-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
}

.report-btn-submit {
  background: #00aeec;
  border: 1px solid #00aeec;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.report-btn-submit:hover {
  background: #009cd3;
  transform: translateY(-1px);
}

[data-theme="light"] .report-modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .report-modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .report-modal-header h3 {
  color: #09090b;
}

[data-theme="light"] .report-modal-close {
  color: #71717a;
}

[data-theme="light"] .report-modal-close:hover {
  color: #09090b;
  background: #f4f4f5;
}

[data-theme="light"] .report-modal-body p {
  color: #52525b;
}

[data-theme="light"] .report-modal-textarea {
  background: #f4f4f5;
  border-color: #d4d4d8;
  color: #09090b;
}

[data-theme="light"] .report-modal-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .report-btn-cancel {
  border-color: #d4d4d8;
  color: #09090b;
}

[data-theme="light"] .report-btn-cancel:hover {
  background: #f4f4f5;
}

/* ===================================================
   MAIN FEED
   =================================================== */

.main-feed {
  grid-area: main;
  min-height: 100vh;
  min-width: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

/* Sticky Top Area */
.feed-top-sticky {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(245, 245, 247, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.feed-top-sticky .search-wrap {
  display: none;
}

[data-theme="light"] .feed-top-sticky {
  background: rgba(245, 245, 247, 0.9);
}

[data-theme="dark"] .feed-top-sticky {
  background: rgba(0, 0, 0, 0.95);
}

/* Search */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 8px;
}

.search-bar {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--accent, #00aeec);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 16px;
  transition: all var(--trans);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent, #00aeec);
  box-shadow: 0 0 12px var(--accent-glow), 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ── Search Auto-Complete Dropdown (Image 4 Command Palette / Spotlight Popover) ── */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  min-width: 420px;
  max-width: 540px;
  max-height: min(520px, calc(100vh - 90px));
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #141416 !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  clip-path: inset(0 round 20px) !important;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  z-index: 10000;
  display: none;
  flex-direction: column;
  padding: 12px 10px 10px 10px;
  animation: bpSearchFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

[data-theme="light"] .search-results-dropdown,
html[data-theme="light"] .search-results-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .search-results-dropdown,
html[data-theme="dark"] .search-results-dropdown {
  background: #141416 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.search-results-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
  background: transparent !important;
  margin: 14px 0 !important;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

[data-theme="light"] .search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .search-results-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.32);
}

@keyframes bpSearchFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Image 4 Scope Bar ("I'm looking for...") ── */
.bp-search-scope-bar {
  padding: 4px 6px 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

[data-theme="light"] .bp-search-scope-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.bp-search-scope-label {
  color: #71717a;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 4px;
}

[data-theme="light"] .bp-search-scope-label {
  color: #71717a;
}

.bp-search-scope-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bp-scope-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

[data-theme="light"] .bp-scope-pill {
  background: #f4f4f5;
  color: #52525b;
  border-color: rgba(0, 0, 0, 0.08);
}

.bp-scope-pill:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

[data-theme="light"] .bp-scope-pill:hover:not(.active) {
  background: #e4e4e7;
  color: #18181b;
}

.bp-scope-pill.active {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  font-weight: 750;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .bp-scope-pill.active {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
}

.bp-scope-count {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
}

.bp-scope-pill:not(.active) .bp-scope-count {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .bp-scope-pill:not(.active) .bp-scope-count {
  background: rgba(0, 0, 0, 0.08);
}

/* ── Group & Titles (Image 4 Category Headers) ── */
.bp-search-group {
  margin-bottom: 12px;
}

.bp-search-group-title {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
  padding: 6px 12px 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .bp-search-group-title {
  color: #71717a;
}

.bp-search-group-count {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

[data-theme="light"] .bp-search-group-count {
  background: rgba(0, 0, 0, 0.06);
  color: #71717a;
}

.bp-search-group-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Row Items (Rounded, Modern Command Palette) ── */
.bp-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin: 1px 0;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease;
  position: relative;
}

.bp-search-item:hover,
.bp-search-item.bp-item-active {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .bp-search-item:hover,
[data-theme="light"] .bp-search-item.bp-item-active {
  background: rgba(0, 0, 0, 0.05);
}

.bp-search-item-action {
  margin-left: auto;
  font-size: 0.75rem;
  color: #71717a;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.bp-search-item:hover .bp-search-item-action,
.bp-search-item.bp-item-active .bp-search-item-action {
  opacity: 1;
}

.bp-search-item-shortcut {
  margin-left: auto;
  font-size: 0.78rem;
  color: #71717a;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: inherit;
}

[data-theme="light"] .bp-search-item-shortcut {
  background: #f4f4f5;
  border-color: #e4e4e7;
  color: #71717a;
}

/* Tag Item */
.search-tag-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.search-tag-symbol {
  font-size: 1rem;
  font-weight: 800;
}

.bp-search-tag-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f4f4f5;
  font-family: inherit;
}

[data-theme="light"] .bp-search-tag-text {
  color: #18181b;
}

/* Post Item */
.search-post-thumb-wrap {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #27272a;
}

.search-post-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-search-post-headline {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #e4e4e7;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .bp-search-post-headline {
  color: #18181b;
}

/* User Item */
.search-user-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #27272a;
}

.search-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-user-avatar-fallback {
  background: linear-gradient(135deg, #00aeec, #6366f1);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.bp-search-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.bp-search-user-name-line {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bp-search-user-name {
  font-size: 0.92rem;
  font-weight: 750;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .bp-search-user-name {
  color: #18181b;
}

.bp-search-user-handle {
  font-size: 0.82rem;
  font-weight: 400;
  color: #71767b;
  margin-top: 1px;
}

[data-theme="light"] .bp-search-user-handle {
  color: #536471;
}

/* Match Highlighting */
.search-match {
  color: #ffffff !important;
  font-weight: 750;
}

html[data-theme="light"] .search-match {
  color: #0f172a !important;
  font-weight: 800;
}

/* ── Footer ── */
.bp-search-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s ease;
  color: inherit;
}

[data-theme="light"] .bp-search-footer-link {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.bp-search-footer-text {
  font-size: 0.82rem;
  color: #a1a1aa;
}

[data-theme="light"] .bp-search-footer-text {
  color: #52525b;
}

.bp-search-footer-badge {
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

[data-theme="light"] .bp-search-footer-badge {
  background: #18181b;
  color: #ffffff;
}

.bp-search-footer-link:hover,
.bp-search-footer-link.bp-item-active {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .bp-search-footer-link:hover,
[data-theme="light"] .bp-search-footer-link.bp-item-active {
  background: rgba(0, 0, 0, 0.04);
}

.bp-search-empty {
  padding: 24px 16px;
  text-align: center;
}

.bp-search-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.bp-search-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.bp-search-empty-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Legacy support styles */
.search-results-header {
  display: none;
}

.search-results-list {
  display: none;
}


.search-result-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  text-align: left;
  padding: 0;
}

.search-bar input::placeholder,
.search-bar input::-webkit-input-placeholder,
.search-bar input::-moz-placeholder {
  color: #ffffff !important;
  opacity: 0.9 !important;
}

[data-theme="light"] .search-bar input::placeholder,
[data-theme="light"] .search-bar input::-webkit-input-placeholder,
[data-theme="light"] .search-bar input::-moz-placeholder {
  color: #64748b !important;
}

.search-divider {
  display: none;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  color: #ffffff !important;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border: none;
  transition: background var(--trans), transform var(--trans);
}

.search-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
  color: #ffffff !important;
}

.search-btn-icon {
  width: 14px;
  height: 14px;
}

/* ── Subcategory Tabs — PILL STYLE with scroll arrows ── */
.subcats-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.subcats-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.subcats-scroll::-webkit-scrollbar {
  display: none;
}

.subcats-inner {
  display: flex;
  align-items: center;
  padding: 2px 14px;
  white-space: nowrap;
  gap: 8px;
}

.subcat-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
  flex-shrink: 0;
}

.subcat-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.subcat-tab.active,
.subcat-tab.active:hover,
.subcat-tab.active:focus,
.subcat-tab.active:visited {
  color: #000000 !important;
  font-weight: 800 !important;
  background: var(--accent, #facc15) !important;
  border-color: var(--accent, #facc15) !important;
  box-shadow: 0 2px 8px var(--accent-glow) !important;
}

/* Scroll arrow buttons */
.subcats-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
}

.subcats-arrow.visible {
  opacity: 1;
  pointer-events: all;
}

.subcats-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.subcats-arrow.left {
  left: 2px;
}

.subcats-arrow.right {
  right: 2px;
}

.subcats-arrow svg {
  width: 16px;
  height: 16px;
}

/* ── Category Header Banner — REMOVED ── */

/* News Feed */
.news-feed {
  flex: 1;
}

/* ===================================================
   TRENDING EXPLORE HERO & TODAY'S NEWS (Image 1 Style)
   =================================================== */

/* ── 1st Part: Trending Hero Banner (Promoted Ad — Matching Image 5 Spec) ── */
.trending-hero-banner {
  width: 100%;
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  user-select: none;
  padding: 12px 16px 18px 16px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.trending-hero-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--bg-card, #121319);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

[data-theme="light"] .trending-hero-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.trending-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Wide Banner Thumbnail at top (Seen full, not cut off — 1024:300 ratio) */
.trending-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 300;
  max-height: 220px;
  overflow: hidden;
  background: #ff663f;
  border-radius: 14px 14px 0 0;
}

.trending-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}

.trending-stories-list .trending-hero-banner {
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .trending-stories-list .trending-hero-banner {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.trending-hero-card:hover .trending-hero-img {
  transform: scale(1.02);
}

/* Corner action arrow button (Image 5 style) */
.trending-hero-corner-arrow {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.trending-hero-card:hover .trending-hero-corner-arrow {
  background: #facc15;
  color: #000000;
  border-color: #facc15;
  transform: scale(1.06);
}

/* Body wrap below media (Image 5 style) */
.trending-hero-body-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px 16px;
  box-sizing: border-box;
  width: 100%;
}

/* Info row: Sponsor avatar + Title & meta + 3-dot */
.trending-hero-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.trending-hero-sponsor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1e1b4b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2px;
}

.trending-hero-sponsor-avatar img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

[data-theme="light"] .trending-hero-sponsor-avatar {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.trending-hero-info-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trending-hero-title {
  font-size: 0.96rem !important;
  font-weight: 750 !important;
  color: var(--text-primary, #ffffff) !important;
  line-height: 1.32 !important;
  letter-spacing: -0.012em !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

[data-theme="light"] .trending-hero-title {
  color: #0f172a !important;
}

.trending-hero-sponsor-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted, #71717a);
}

.sponsored-badge-text {
  font-weight: 800;
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .sponsored-badge-text {
  color: #0f172a;
}

.hero-dot-separator {
  color: var(--text-muted, #71717a);
}

.hero-promoted-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted, #71717a);
}

.trending-hero-more-btn {
  color: var(--text-muted, #71717a);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-top: 2px;
}

/* Two Action Buttons below (Image 5 style) */
.trending-hero-action-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.trending-hero-pill-btn {
  flex: 1;
  height: 42px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  box-sizing: border-box;
}

.trending-hero-pill-btn.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.trending-hero-pill-btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .trending-hero-pill-btn.btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .trending-hero-pill-btn.btn-secondary:hover {
  background: #e2e8f0;
}

.trending-hero-pill-btn.btn-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.trending-hero-pill-btn.btn-primary:hover {
  background: #facc15;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
}

[data-theme="light"] .trending-hero-pill-btn.btn-primary {
  background: #0f172a;
  color: #ffffff;
}

[data-theme="light"] .trending-hero-pill-btn.btn-primary:hover {
  background: #000000;
}

[data-theme="light"] .trending-hero-subtitle {
  color: #64748b !important;
}

[data-theme="light"] .trending-hero-promoted {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .hero-promoted-sq-icon,
[data-theme="light"] .hero-promoted-text {
  color: #64748b !important;
}

[data-theme="light"] .trending-hero-promoted:hover,
[data-theme="light"] .trending-hero-card:hover .trending-hero-promoted {
  background: #facc15 !important;
  border-color: #ca8a04 !important;
  color: #000000 !important;
}

[data-theme="light"] .trending-hero-promoted:hover .hero-promoted-sq-icon,
[data-theme="light"] .trending-hero-card:hover .hero-promoted-sq-icon,
[data-theme="light"] .trending-hero-promoted:hover .hero-promoted-text,
[data-theme="light"] .trending-hero-card:hover .hero-promoted-text {
  color: #000000 !important;
}

[data-theme="light"] .trending-hero-promoted:hover .hero-promoted-sq-icon svg,
[data-theme="light"] .trending-hero-card:hover .hero-promoted-sq-icon svg {
  stroke: #000000 !important;
}

@media (max-width: 640px) {
  .trending-hero-media {
    aspect-ratio: 16 / 8.5;
    max-height: 210px;
    min-height: 150px;
  }

  .trending-hero-text-overlay {
    padding: 8px 12px 10px 12px !important;
    gap: 8px !important;
  }

  .trending-hero-title {
    font-size: 0.94rem !important;
  }

  .trending-hero-subtitle {
    font-size: 0.78rem !important;
  }

  .trending-hero-promoted {
    padding: 3px 8px !important;
  }

  .hero-promoted-text {
    font-size: 0.72rem !important;
  }
}

.trending-hero-top-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.trending-hero-bottom-actions {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.trending-hero-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
  padding: 0;
}

.trending-hero-icon-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

.trending-hero-menu-dropdown {
  position: absolute;
  top: 50px;
  right: 14px;
  background: var(--bg-card, #000000);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 170px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: none;
  flex-direction: column;
}

.trending-hero-menu-dropdown.show {
  display: flex;
  animation: fadeIn 0.15s ease;
}

.trending-hero-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 8px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.trending-hero-menu-item:hover {
  background: var(--bg-hover);
  color: #ffffff;
}

/* ── Trending Stories Section (Leaderboard 1..10, Upvote/Downvote, Bigger Avatars & Rich Meta) ── */
.trending-stories-section,
.todays-news-section {
  width: 100%;
  background: #000000;
  border-bottom: 1px solid var(--border-soft);
}

[data-theme="light"] .trending-stories-section,
[data-theme="light"] .todays-news-section {
  background: #ffffff;
}

.trending-stories-header,
.todays-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .trending-stories-header,
[data-theme="light"] .todays-news-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.trending-stories-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trending-stories-title,
.todays-news-title {
  font-size: 1.35rem;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: 0;
}

[data-theme="light"] .trending-stories-title,
[data-theme="light"] .todays-news-title {
  color: var(--text-primary, #0f1419);
}

.trending-stories-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: #8b98a5;
  margin: 0;
}

[data-theme="light"] .trending-stories-subtitle {
  color: #536471;
}

.trending-stories-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-stories-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(0, 174, 236, 0.12);
  border: 1px solid rgba(0, 174, 236, 0.3);
  font-size: 0.75rem;
  font-weight: 750;
  color: #00aeec;
  letter-spacing: 0.2px;
}

.trending-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00aeec;
  box-shadow: 0 0 6px rgba(0, 174, 236, 0.8);
  animation: pulseGlow 1.8s infinite;
}

.trending-stories-list,
.todays-news-list {
  display: flex;
  flex-direction: column;
}

/* ── Trending Story Item ── */
.trending-story-item,
.todays-news-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.18s ease;
  text-decoration: none;
  position: relative;
}

[data-theme="light"] .trending-story-item,
[data-theme="light"] .todays-news-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.trending-story-item:last-child,
.todays-news-item:last-child {
  border-bottom: none;
}

.trending-story-item:hover,
.todays-news-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .trending-story-item:hover,
[data-theme="light"] .todays-news-item:hover {
  background: rgba(0, 0, 0, 0.025);
}

.trending-story-item.rank-flash {
  animation: flashHighlight 0.6s ease;
}

@keyframes flashHighlight {
  0% {
    background: rgba(0, 174, 236, 0.25);
  }

  100% {
    background: transparent;
  }
}

/* ── Rank & Vote Column (Image 2 style) ── */
.trending-story-rank-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 68px;
  padding-top: 2px;
}

.trending-story-rank-num {
  font-size: 1.25rem;
  font-weight: 850;
  color: #8b98a5;
  width: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  line-height: 1;
}

[data-theme="light"] .trending-story-rank-num {
  color: #536471;
}

.trending-story-rank-num.rank-1 {
  color: #f59e0b;
  font-weight: 900;
}

.trending-story-rank-num.rank-2 {
  color: #cbd5e1;
  font-weight: 900;
}

.trending-story-rank-num.rank-3 {
  color: #d97706;
  font-weight: 900;
}

.trending-story-vote-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 36px;
  padding: 3px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

[data-theme="light"] .trending-story-vote-box {
  background: #f1f3f5;
  border-color: rgba(0, 0, 0, 0.08);
}

.trending-vote-btn {
  background: transparent;
  border: none;
  padding: 3px 6px;
  cursor: pointer;
  color: #71767b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
  outline: none;
  line-height: 1;
}

[data-theme="light"] .trending-vote-btn {
  color: #8899a6;
}

.trending-vote-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .trending-vote-btn:hover {
  color: #0f1419;
  background: rgba(0, 0, 0, 0.08);
}

.trending-vote-btn.vote-up.active {
  color: #00aeec !important;
  background: rgba(0, 174, 236, 0.16) !important;
}

.trending-vote-btn.vote-down.active {
  color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.16) !important;
}

.trending-vote-count {
  font-size: 0.74rem;
  font-weight: 800;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin: 2px 0;
  text-align: center;
}

[data-theme="light"] .trending-vote-count {
  color: #334155;
}

.trending-vote-count.voted-up {
  color: #00aeec;
}

.trending-vote-count.voted-down {
  color: #6366f1;
}

/* ── Content Column ── */
.trending-story-content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.trending-story-title,
.todays-news-item-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.2px;
  transition: color 0.15s ease;
}

[data-theme="light"] .trending-story-title,
[data-theme="light"] .todays-news-item-title {
  color: var(--text-primary, #0f1419);
}

.trending-story-item:hover .trending-story-title,
.todays-news-item:hover .todays-news-item-title {
  color: var(--accent, #00aeec);
}

/* ── Metadata Row ── */
.trending-story-meta,
.todays-news-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

/* ── Left Group: Avatars + Category Tag (Strictly side-by-side on both mobile & desktop) ── */
.trending-story-author-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── 2 Avatars (Bigger in size: Writer + Category) ── */
.trending-story-avatars,
.todays-news-avatars {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.trending-avatar-badge,
.todays-news-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #000000;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

[data-theme="light"] .trending-avatar-badge,
[data-theme="light"] .todays-news-avatar-badge {
  border-color: #ffffff;
}

.trending-avatar-badge.writer-badge {
  z-index: 2;
  position: relative;
}

.trending-avatar-badge.writer-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.trending-avatar-badge.category-badge {
  z-index: 1;
  position: relative;
  margin-left: -9px;
  color: #ffffff;
}

.trending-avatar-badge.category-badge svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Category Badge Backgrounds */
.cat-bg-tech {
  background: #0284c7;
}

.cat-bg-business {
  background: #d97706;
}

.cat-bg-finance {
  background: #16a34a;
}

.cat-bg-sports {
  background: #dc2626;
}

.cat-bg-geopolitics {
  background: #7c3aed;
}

.cat-bg-entertainment {
  background: #db2777;
}

.cat-bg-gaming {
  background: #8b5cf6;
}

.cat-bg-social,
.cat-bg-social-media {
  background: #facc15 !important;
  color: #000000 !important;
}

.cat-bg-social svg,
.cat-bg-social-media svg {
  stroke: #000000 !important;
  color: #000000 !important;
}

.cat-bg-science {
  background: #059669;
}

.cat-bg-trending {
  background: #ea580c;
}

.cat-bg-polls,
.cat-bg-birdcritic {
  background: #0284c7;
}

.cat-bg-ranker {
  background: #d97706;
}

.cat-bg-threads,
.cat-bg-birdchat {
  background: #6366f1;
}

/* ── Meta Details (Category, Date, Comments, Views, Share) ── */
.trending-story-meta-details {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.8125rem;
  color: #8b98a5;
}

[data-theme="light"] .trending-story-meta-details {
  color: #536471;
}

.trending-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.25;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.cat-pill-tech {
  background: #0284c7 !important;
}

.cat-pill-business {
  background: #d97706 !important;
}

.cat-pill-finance {
  background: #16a34a !important;
}

.cat-pill-sports {
  background: #dc2626 !important;
}

.cat-pill-geopolitics {
  background: #7c3aed !important;
}

.cat-pill-entertainment {
  background: #db2777 !important;
}

.cat-pill-gaming {
  background: #8b5cf6 !important;
}

.cat-pill-social,
.cat-pill-social-media {
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 850 !important;
}

.cat-pill-science {
  background: #059669 !important;
}

.cat-pill-trending {
  background: #ea580c !important;
}

.cat-pill-ranker {
  background: #d97706 !important;
}

.cat-pill-polls,
.cat-pill-birdcritic {
  background: #0284c7 !important;
}

.cat-pill-birdpost,
.cat-pill-threads,
.cat-pill-birdchat {
  background: #6366f1 !important;
}

/* Trending Feed Card Category Marking (matching Image 1 & 2) */
.trending-feed-cat-marking {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: middle;
  flex-shrink: 0;
}

.trending-feed-cat-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  color: #ffffff;
}

[data-theme="light"] .trending-feed-cat-icon {
  border-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.trending-feed-cat-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.trending-feed-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.25;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  border: none;
  transition: all var(--trans);
  cursor: pointer;
}

.trending-feed-cat-pill.cat-pill-social,
.trending-feed-cat-pill.cat-pill-social-media,
.trending-cat-pill.cat-pill-social,
.trending-cat-pill.cat-pill-social-media,
.cat-pill-social,
.cat-pill-social-media {
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 850 !important;
}

.trending-feed-cat-pill:hover {
  filter: brightness(1.1);
  color: #ffffff !important;
}

.trending-feed-cat-pill.cat-pill-social:hover,
.trending-feed-cat-pill.cat-pill-social-media:hover,
.trending-cat-pill.cat-pill-social:hover,
.trending-cat-pill.cat-pill-social-media:hover {
  color: #000000 !important;
}

.trending-meta-dot {
  color: #4b5563;
  font-size: 0.8rem;
  user-select: none;
}

.trending-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: #8b98a5;
  font-weight: 500;
  white-space: nowrap;
}

.trending-meta-comments {
  display: none !important;
}

[data-theme="light"] .trending-meta-item {
  color: #536471;
}

.trending-meta-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.trending-story-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 650;
  color: #8b98a5;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  line-height: 1.3;
}

[data-theme="light"] .trending-story-share-btn {
  background: #f1f3f5;
  border-color: rgba(0, 0, 0, 0.08);
  color: #536471;
}

.trending-story-share-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

[data-theme="light"] .trending-story-share-btn:hover {
  background: #e2e8f0;
  color: #0f1419;
}

/* News Card — Lively BuzzFeed style */
.news-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 16px;
  transition: all var(--trans);
  cursor: pointer;
  position: relative;
  animation: fadeInUp 0.35s ease both;
}

.news-card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-card-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.publisher-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-white);
  flex-shrink: 0;
  border: 2px solid var(--border);
  overflow: hidden;
}

.publisher-avatar span {
  font-size: 0.65rem;
  font-weight: 800;
}

.publisher-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.publisher-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.publisher-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}



.publisher-handle {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.publisher-time {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.card-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  cursor: inherit;
}

.card-author-meta .amazing-verified-tick {
  width: 15px !important;
  height: 15px !important;
  margin-left: -3px !important;
  margin-right: -1px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

.card-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  display: block;
  pointer-events: none;
}

.card-author-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.card-meta-dot {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  pointer-events: none;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.badge-breaking {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1.5px solid #ffffff !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}

.sponsor-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-subtle);
  border: 1.5px solid var(--accent-glow);
  padding: 2px 6px;
  border-radius: 4px;
  max-width: max-content;
}

.sponsor-label svg {
  fill: currentColor;
  margin-right: 4px;
  flex-shrink: 0;
}

.badge-trending {
  background: rgba(0, 174, 236, 0.12);
  color: var(--orange);
  border: 1px solid rgba(0, 174, 236, 0.25);
}

/* Card Media */
.card-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  aspect-ratio: 16/9;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-media img {
  transform: scale(1.03);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

/* Card Body */
.card-headline {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.card-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Engagement stats row (likes + comments) */
.card-engagement {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 0;
}

.engagement-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--trans);
  padding: 4px 0;
}

.engagement-item:hover {
  color: var(--accent);
}

.engagement-item svg {
  width: 16px;
  height: 16px;
}

.engagement-item.likes:hover {
  color: var(--red);
}

.engagement-item.comments:hover {
  color: var(--accent);
}

/* Card Action Bar — Solid Pill Style (Image 1) */
.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 8px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: none !important;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  margin-bottom: 0;
  overflow: visible !important;
}

.card-action-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible !important;
  max-width: 100%;
  padding-top: 6px;
  padding-bottom: 6px;
  margin-top: -6px;
  margin-bottom: -6px;
}

.card-action-left::-webkit-scrollbar {
  display: none;
}

.card-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: nowrap;
  overflow: visible !important;
  padding-top: 6px;
  padding-bottom: 6px;
  margin-top: -6px;
  margin-bottom: -6px;
}

/* ==========================================
   Feed Card Action Bar (Matching Image 1 & Image 2)
   [ ↑ 2.3K ↓ ] [ 💬 12 Comments ] [ ☕ Coffee ] [ ↗ Share ]
   ========================================== */
.card-vote-pill {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 12px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  gap: 8px !important;
  vertical-align: middle !important;
  transition: background 0.15s ease !important;
}

[data-theme="light"] .card-vote-pill {
  background: rgba(0, 0, 0, 0.06) !important;
  border: none !important;
}

.card-vote-pill:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="light"] .card-vote-pill:hover {
  background: rgba(0, 0, 0, 0.09) !important;
}

.card-vote-pill button,
.card-vote-pill .vote-up-btn,
.card-vote-pill .vote-down-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  outline: none !important;
  transition: color 0.15s ease, transform 0.1s ease !important;
  user-select: none !important;
  position: relative !important;
  text-decoration: none !important;
  line-height: normal !important;
  border-radius: 0 !important;
  flex-shrink: 0 !important;
}

.card-vote-pill button:hover,
.card-vote-pill .vote-up-btn:hover,
.card-vote-pill .vote-down-btn:hover {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.card-vote-pill .vote-up-btn svg,
.card-vote-pill .vote-down-btn svg {
  fill: none !important;
  stroke: #94a3b8 !important;
  width: 17px !important;
  height: 17px !important;
  display: block !important;
  transition: stroke 0.15s ease, transform 0.15s ease !important;
}

[data-theme="light"] .card-vote-pill .vote-up-btn svg,
[data-theme="light"] .card-vote-pill .vote-down-btn svg {
  stroke: #64748b !important;
}

.card-vote-pill .vote-up-btn {
  color: #94a3b8 !important;
  background: transparent !important;
}

.card-vote-pill .vote-down-btn {
  color: #94a3b8 !important;
  background: transparent !important;
}

[data-theme="light"] .card-vote-pill .vote-up-btn,
[data-theme="light"] .card-vote-pill .vote-down-btn {
  color: #64748b !important;
  background: transparent !important;
}

/* No vertical divider */
.card-vote-pill .vote-up-btn::after,
.vote-pill-divider {
  display: none !important;
  content: none !important;
}

.card-vote-pill .vote-up-btn:hover {
  color: #facc15 !important;
  background: transparent !important;
  transform: scale(1.12) !important;
}

.card-vote-pill .vote-up-btn:hover svg {
  stroke: #facc15 !important;
}

.card-vote-pill .vote-down-btn:hover {
  color: #ef4444 !important;
  background: transparent !important;
  transform: scale(1.12) !important;
}

.card-vote-pill .vote-down-btn:hover svg {
  stroke: #ef4444 !important;
}

[data-theme="light"] .card-vote-pill .vote-up-btn:hover {
  color: #facc15 !important;
  background: transparent !important;
}

[data-theme="light"] .card-vote-pill .vote-down-btn:hover {
  color: #ef4444 !important;
  background: transparent !important;
}

@keyframes instagramLikePop {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.4) rotate(-8deg);
  }

  60% {
    transform: scale(0.9) rotate(3deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.card-vote-pill .vote-up-btn.active-up,
.card-vote-pill .vote-up-btn.active-like {
  color: #facc15 !important;
  background: transparent !important;
  animation: instagramLikePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
}

.card-vote-pill .vote-up-btn.active-up svg,
.card-vote-pill .vote-up-btn.active-like svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

.card-vote-pill .vote-down-btn.active-down,
.card-vote-pill .vote-down-btn.active-dislike {
  color: #ef4444 !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.card-vote-pill .vote-down-btn.active-down svg,
.card-vote-pill .vote-down-btn.active-dislike svg {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
  animation: none !important;
  transform: none !important;
}

.card-vote-pill .up-num {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  user-select: none !important;
  padding: 0 2px !important;
  cursor: pointer !important;
}

[data-theme="light"] .card-vote-pill .up-num {
  color: #0f172a !important;
}

/* Hide downvote count */
.card-vote-pill .down-num {
  display: none !important;
}

.card-vote-pill svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Card Action Buttons (Comments, Coffee, Save, Share) Matching Image 1 & 2 */
.card-action-btn.card-comments-btn,
.card-action-btn.comments-btn,
.card-action-btn.card-coffee-btn,
.card-action-btn.coffee-btn,
.card-action-btn.card-save-btn,
.card-action-btn.save-btn,
.card-save-btn,
.card-action-btn.share-trigger-btn,
.share-trigger-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  padding: 0 14px !important;
  height: 38px !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  user-select: none !important;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.1s ease, color 0.15s ease !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

/* Pill shape for Coffee and Save buttons matching Image 1 & Image 2 */
.card-action-btn.card-coffee-btn,
.card-action-btn.coffee-btn,
.card-action-btn.card-save-btn,
.card-action-btn.save-btn,
.card-save-btn {
  border-radius: 9999px !important;
  padding: 0 16px !important;
  overflow: visible !important;
}

[data-theme="light"] .card-action-btn.card-comments-btn,
[data-theme="light"] .card-action-btn.comments-btn,
[data-theme="light"] .card-action-btn.card-coffee-btn,
[data-theme="light"] .card-action-btn.coffee-btn,
[data-theme="light"] .card-action-btn.card-save-btn,
[data-theme="light"] .card-action-btn.save-btn,
[data-theme="light"] .card-save-btn,
[data-theme="light"] .card-action-btn.share-trigger-btn,
[data-theme="light"] .share-trigger-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
  border: none !important;
}

.card-action-btn.card-comments-btn:hover,
.card-action-btn.comments-btn:hover,
.card-action-btn.card-save-btn:hover,
.card-action-btn.save-btn:hover,
.card-save-btn:hover,
.card-action-btn.share-trigger-btn:hover,
.share-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .card-action-btn.card-comments-btn:hover,
[data-theme="light"] .card-action-btn.comments-btn:hover,
[data-theme="light"] .card-action-btn.card-save-btn:hover,
[data-theme="light"] .card-action-btn.save-btn:hover,
[data-theme="light"] .card-save-btn:hover,
[data-theme="light"] .card-action-btn.share-trigger-btn:hover,
[data-theme="light"] .share-trigger-btn:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

/* ===================================================
   MAIN FEED COFFEE BUTTON:
   - Image 1: Hover animation (peach glow + tilt)
   - Image 2: Active state (solid orange pill + shadow)
   =================================================== */
.card-action-btn.card-coffee-btn,
.card-action-btn.coffee-btn {
  animation: none !important;
  transform: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.card-action-btn.card-coffee-btn svg,
.card-action-btn.coffee-btn svg {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

/* Feed Coffee Button: Normal Clean Pill Matching Image 2 (Save Button Style) */
.card-action-btn.card-coffee-btn,
.card-action-btn.coffee-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  padding: 0 16px !important;
  height: 38px !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
}

[data-theme="light"] .card-action-btn.card-coffee-btn,
[data-theme="light"] .card-action-btn.coffee-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  border: none !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

.card-action-btn.card-coffee-btn svg,
.card-action-btn.coffee-btn svg {
  stroke: #ffffff !important;
  fill: none !important;
  color: #ffffff !important;
  width: 18px !important;
  height: 18px !important;
}

[data-theme="light"] .card-action-btn.card-coffee-btn svg,
[data-theme="light"] .card-action-btn.coffee-btn svg {
  stroke: #0f172a !important;
  color: #0f172a !important;
}

.card-action-btn.card-coffee-btn span,
.card-action-btn.coffee-btn span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-theme="light"] .card-action-btn.card-coffee-btn span,
[data-theme="light"] .card-action-btn.coffee-btn span {
  color: #0f172a !important;
}

.card-action-btn.card-coffee-btn:hover,
.card-action-btn.coffee-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

[data-theme="light"] .card-action-btn.card-coffee-btn:hover,
[data-theme="light"] .card-action-btn.coffee-btn:hover {
  background: rgba(0, 0, 0, 0.09) !important;
  color: #0f172a !important;
}

/* Active Coffee Button: Yellow glow + gold border (NO BLUE) */
.card-action-btn.card-coffee-btn.active-coffee,
.card-action-btn.coffee-btn.active-coffee,
.card-coffee-btn.active-coffee {
  background: rgba(250, 204, 21, 0.16) !important;
  border: 1.5px solid #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.45) !important;
}

.card-action-btn.card-coffee-btn.active-coffee svg,
.card-action-btn.coffee-btn.active-coffee svg,
.card-coffee-btn.active-coffee svg {
  stroke: #facc15 !important;
}

.card-action-btn.card-coffee-btn.active-coffee span,
.card-action-btn.coffee-btn.active-coffee span,
.card-coffee-btn.active-coffee span {
  color: #facc15 !important;
}

[data-theme="light"] .card-action-btn.card-coffee-btn.active-coffee,
[data-theme="light"] .card-action-btn.coffee-btn.active-coffee,
[data-theme="light"] .card-coffee-btn.active-coffee {
  background: rgba(250, 204, 21, 0.16) !important;
  border: 1.5px solid #d97706 !important;
  color: #b45309 !important;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.3) !important;
}

[data-theme="light"] .card-action-btn.card-coffee-btn.active-coffee svg,
[data-theme="light"] .card-action-btn.coffee-btn.active-coffee svg,
[data-theme="light"] .card-coffee-btn.active-coffee svg {
  stroke: #b45309 !important;
}

[data-theme="light"] .card-action-btn.card-coffee-btn.active-coffee span,
[data-theme="light"] .card-action-btn.coffee-btn.active-coffee span,
[data-theme="light"] .card-coffee-btn.active-coffee span {
  color: #b45309 !important;
}


/* Active Saved Button: Image 4 Specification (Yellow border, Yellow filled bookmark icon, Yellow Saved text) */
.card-action-btn.card-save-btn.active-saved,
.card-action-btn.card-save-btn.active,
.card-action-btn.save-btn.active-saved,
.card-action-btn.save-btn.active,
.card-save-btn.active-saved,
.card-save-btn.active {
  background: rgba(250, 204, 21, 0.06) !important;
  border: 1.5px solid #facc15 !important;
  color: #facc15 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25) !important;
}

[data-theme="light"] .card-action-btn.card-save-btn.active-saved,
[data-theme="light"] .card-action-btn.card-save-btn.active,
[data-theme="light"] .card-action-btn.save-btn.active-saved,
[data-theme="light"] .card-action-btn.save-btn.active,
[data-theme="light"] .card-save-btn.active-saved,
[data-theme="light"] .card-save-btn.active {
  background: rgba(234, 179, 8, 0.1) !important;
  border: 1.5px solid #ca8a04 !important;
  color: #a16207 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 8px rgba(202, 138, 4, 0.2) !important;
}

.card-action-btn.card-save-btn.active-saved svg,
.card-action-btn.card-save-btn.active svg,
.card-action-btn.save-btn.active-saved svg,
.card-action-btn.save-btn.active svg,
.card-save-btn.active-saved svg,
.card-save-btn.active svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

[data-theme="light"] .card-action-btn.card-save-btn.active-saved svg,
[data-theme="light"] .card-action-btn.card-save-btn.active svg,
[data-theme="light"] .card-action-btn.save-btn.active-saved svg,
[data-theme="light"] .card-save-btn.active-saved svg,
[data-theme="light"] .card-save-btn.active svg {
  fill: #ca8a04 !important;
  stroke: #ca8a04 !important;
}

.card-action-btn.card-save-btn.active-saved .save-btn-text,
.card-action-btn.card-save-btn.active .save-btn-text,
.card-action-btn.card-save-btn.active-saved span,
.card-save-btn.active-saved .save-btn-text,
.card-save-btn.active-saved span {
  color: #facc15 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .card-action-btn.card-save-btn.active-saved .save-btn-text,
[data-theme="light"] .card-save-btn.active-saved span {
  color: #a16207 !important;
}

.card-action-btn.card-save-btn.active-saved:hover,
.card-action-btn.card-save-btn.active:hover,
.card-action-btn.save-btn.active-saved:hover,
.card-save-btn.active-saved:hover,
.card-save-btn.active:hover {
  background: rgba(250, 204, 21, 0.12) !important;
  border-color: #fde047 !important;
  color: #facc15 !important;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.4) !important;
  transform: translateY(-1px) !important;
}

.card-action-btn svg,
.yt-action-pill svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #000000 !important;
  background: var(--accent, #facc15);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  transition: all var(--trans);
  display: inline-flex;
  align-items: center;
  border: none;
}

.card-tag:hover {
  filter: brightness(1.05);
  background: var(--accent-hover, #eab308) !important;
  color: #000000 !important;
}

.card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.card-stat svg {
  width: 12px;
  height: 12px;
}

.card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-author {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Card Actions */
.card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: all var(--trans);
  position: relative;
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

.action-btn:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}

.action-btn.share:hover {
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
}

/* Open Story → YELLOW filled */
.btn-open-story {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff !important;
  background: var(--accent);
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--trans);
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-open-story:hover {
  background: var(--accent-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ── Share Popup ── */
.share-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

[data-theme="light"] .share-popup-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.share-popup {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 320px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.share-popup-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.share-popup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.share-popup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans);
  border: 1px solid transparent;
}

.share-popup-item:hover {
  background: var(--bg-hover);
  border-color: var(--border);
  transform: translateY(-2px);
}

.share-popup-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-popup-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.share-popup-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Share icon colors */
.share-facebook .share-popup-icon {
  background: #1877F2;
}

.share-twitter .share-popup-icon {
  background: #00aeec;
}

.share-instagram .share-popup-icon {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeB 90%);
}

.share-bluesky .share-popup-icon {
  background: #0085ff;
}

.share-mastodon .share-popup-icon {
  background: #6364ff;
}

.share-whatsapp .share-popup-icon {
  background: #25D366;
}

.share-reddit .share-popup-icon {
  background: #FF4500;
}

.share-copy .share-popup-icon {
  background: var(--accent);
}

.share-popup-close {
  display: block;
  margin: 16px auto 0;
  padding: 8px 24px;
  background: var(--bg-hover);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all var(--trans);
}

.share-popup-close:hover {
  background: var(--bg-active);
}

/* ── Related Articles — 3-column modern cards matching layout & author profile ── */
.related-articles-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 0 8px;
  border-top: 1px solid var(--border-soft);
  margin-top: 6px;
}

.related-articles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 4px 0 10px;
}

@media (max-width: 960px) {
  .related-articles {
    gap: 8px;
  }
}

.related-article-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform var(--trans), opacity var(--trans);
}

.related-article-card:hover {
  transform: translateY(-2px);
}

.related-article-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-hover);
  position: relative;
}

.related-article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.related-article-card:hover .related-article-thumb {
  transform: scale(1.04);
}

.related-article-body {
  padding: 8px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.related-article-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.34;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans);
}

.related-article-card:hover .related-article-title {
  color: var(--accent);
}

.related-article-summary {
  display: none;
}

.related-article-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}

.related-article-author-avatar {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-hover);
}

.related-article-author-name {
  font-size: 0.74rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

[data-theme="light"] .related-article-author-name {
  color: #64748b;
}

[data-theme="light"] .related-article-author-avatar {
  border-color: rgba(0, 0, 0, 0.1);
}

.related-article-cat {
  display: none !important;
}

@media (max-width: 960px) {
  .related-article-title {
    font-size: 0.78rem;
  }

  .related-article-author-name {
    font-size: 0.7rem;
    max-width: 100px;
  }
}

/* ── Mobile Layout for Related Stories (Matching Image 1: Row List with Square Thumbnail & Summary) ── */
@media (max-width: 680px) {
  .related-articles {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 2px 0 6px !important;
  }

  .related-article-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 13px 0 !important;
    border-bottom: 1px solid var(--border-soft) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .related-article-card:last-child {
    border-bottom: none !important;
  }

  .related-article-card:nth-child(n+4) {
    display: none !important;
    /* Top 3 stories on mobile matching Image 1 */
  }

  .related-article-card:hover {
    transform: none !important;
  }

  .related-article-thumb-wrap {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
  }

  .related-article-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    transform: none !important;
  }

  .related-article-card:hover .related-article-thumb {
    transform: none !important;
  }

  .related-article-body {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .related-article-title {
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    line-height: 1.32 !important;
    letter-spacing: -0.01em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .related-article-summary {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    line-height: 1.38 !important;
    color: var(--text-secondary, #94a3b8) !important;
    margin-top: 2px !important;
  }

  [data-theme="light"] .related-article-summary {
    color: #64748b !important;
  }

  .related-article-author {
    display: none !important;
  }
}

/* ── Ad Banner (in-feed) ── */
.feed-ad-inline {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}

/* Birdpost Native Sponsorship Card (Place your ads here! - Matching Image 2) */
.feed-ad-birdpost-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: radial-gradient(circle at 10% 50%, #17181c 0%, #0a0b0d 60%, #000000 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.feed-ad-birdpost-card:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.45) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(250, 204, 21, 0.12) !important;
}

[data-theme="light"] .feed-ad-birdpost-card {
  background: radial-gradient(circle at 10% 50%, #18191d 0%, #0c0d10 60%, #000000 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15) !important;
}

.feed-ad-birdpost-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.feed-ad-birdpost-bar {
  width: 3.5px;
  height: 42px;
  background: #facc15 !important;
  border-radius: 3px;
  flex-shrink: 0;
}

.feed-ad-birdpost-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.feed-ad-birdpost-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 1.32rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
  margin: 0 !important;
  white-space: normal !important;
  word-break: break-word;
}

.feed-ad-birdpost-highlight {
  color: #facc15 !important;
}

.feed-ad-birdpost-sub {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 500 !important;
  color: #f1f5f9 !important;
  margin: 3px 0 0 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  white-space: normal !important;
  word-break: break-word;
}

.feed-ad-birdpost-right {
  flex-shrink: 0;
  margin-left: 12px;
}

.feed-ad-birdpost-cta-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.feed-ad-burst-icon {
  position: absolute;
  top: -15px;
  right: 2px;
  pointer-events: none;
  animation: burstGlow 2.4s ease-in-out infinite alternate;
}

@keyframes burstGlow {
  0% {
    transform: scale(0.92) rotate(-2deg);
    opacity: 0.85;
  }

  100% {
    transform: scale(1.08) rotate(3deg);
    opacity: 1;
  }
}

.feed-ad-birdpost-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: #facc15 !important;
  color: #000000 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(250, 204, 21, 0.35);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.18s ease, box-shadow 0.18s ease;
}

.feed-ad-birdpost-btn svg {
  transition: transform 0.18s ease;
}

.feed-ad-birdpost-btn:hover {
  background: #fde047 !important;
  color: #000000 !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.55);
}

.feed-ad-birdpost-btn:hover svg {
  transform: translateX(3px);
}

.feed-ad-birdpost-btn:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 680px) {
  .feed-ad-birdpost-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .feed-ad-birdpost-title {
    font-size: 1.1rem !important;
  }

  .feed-ad-birdpost-sub {
    font-size: 0.82rem !important;
  }

  .feed-ad-birdpost-bar {
    height: 34px;
    width: 3px;
  }

  .feed-ad-birdpost-btn {
    padding: 8px 16px;
    font-size: 0.86rem !important;
    gap: 5px;
  }

  .feed-ad-burst-icon {
    top: -13px;
    right: 0;
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .feed-ad-birdpost-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .feed-ad-birdpost-right {
    width: 100%;
  }

  .feed-ad-birdpost-cta-wrapper {
    width: 100%;
  }

  .feed-ad-birdpost-btn {
    width: 100%;
    justify-content: center;
  }

  .feed-ad-burst-icon {
    top: -12px;
    right: 12px;
  }
}

.feed-ad-inline-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--trans);
}

.feed-ad-inline-inner:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.feed-ad-inline-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feed-ad-inline-content {
  flex: 1;
  min-width: 0;
}

.feed-ad-inline-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feed-ad-inline-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.feed-ad-inline-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.feed-ad-inline-cta {
  padding: 7px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  transition: all var(--trans);
}

.feed-ad-inline-cta:hover {
  background: var(--accent-hover);
}

/* Feed top ad banner */
.feed-ad-banner {
  padding: 8px 14px 6px;
}

.ad-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.feed-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-ad-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.feed-ad-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  transition: color var(--trans);
}

.feed-ad-link:hover {
  color: var(--accent-hover);
}

/* Compact card layout variant */
.news-card.compact .card-media {
  display: none;
}

/* Feed Loading */
.feed-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.feed-loading.visible {
  display: flex;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation delays */
.news-card[data-index="0"] {
  animation-delay: 0ms;
}

.news-card[data-index="1"] {
  animation-delay: 40ms;
}

.news-card[data-index="2"] {
  animation-delay: 80ms;
}

.news-card[data-index="3"] {
  animation-delay: 120ms;
}

.news-card[data-index="4"] {
  animation-delay: 160ms;
}

.news-card[data-index="5"] {
  animation-delay: 200ms;
}

.news-card[data-index="6"] {
  animation-delay: 240ms;
}

.news-card[data-index="7"] {
  animation-delay: 280ms;
}

.news-card[data-index="8"] {
  animation-delay: 320ms;
}

.news-card[data-index="9"] {
  animation-delay: 360ms;
}

/* ===================================================
   RIGHT SIDEBAR — ad+sponsored sticky, rest scrolls
   =================================================== */

/* ===================================================
   ADVERTISE WITH BIRDPOST (Right Sidebar Mascot System)
   =================================================== */

.sidebar-right {
  grid-area: right;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-left: 1px solid var(--border);
  background: var(--bg-panel);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar-right::-webkit-scrollbar {
  width: 5px;
}

.sidebar-right::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.sidebar-right-inner {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Sidebar Ad Card (Mascot System) ── */
.sidebar-ad-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  user-select: none;
}

.sidebar-ad-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 174, 236, 0.45);
  box-shadow: 0 10px 32px rgba(0, 174, 236, 0.2), 0 4px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .sidebar-ad-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sidebar-ad-card:hover {
  border-color: rgba(0, 174, 236, 0.5);
  box-shadow: 0 10px 30px rgba(0, 174, 236, 0.16);
}

.sidebar-ad-media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 782 / 1024;
  overflow: hidden;
  background: #546e1e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-ad-bird-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-ad-card:hover .sidebar-ad-bird-img {
  transform: scale(1.05) rotate(-1deg);
}

.sidebar-ad-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #00aeec;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(0, 174, 236, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sidebar-ad-speech-bubble {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  animation: bubbleFloat 2.6s ease-in-out infinite alternate;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-4px);
  }
}

.sidebar-ad-body {
  padding: 16px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-ad-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sidebar-ad-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white, #ffffff);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.2px;
}

[data-theme="light"] .sidebar-ad-title {
  color: #0f1419;
}

.sidebar-ad-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.48;
  margin: 0;
}

.sidebar-ad-metrics {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px 8px;
  margin: 2px 0;
}

[data-theme="light"] .sidebar-ad-metrics {
  background: #f8fafc;
  border-color: #f1f5f9;
}

.sidebar-ad-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.sidebar-ad-metric .metric-val {
  font-size: 0.98rem;
  font-weight: 850;
  color: var(--accent, #00aeec);
  line-height: 1;
}

.sidebar-ad-metric .metric-lbl {
  font-size: 0.65rem;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-ad-metric-divider {
  width: 1px;
  height: 24px;
  background: var(--border-soft);
}

.sidebar-ad-button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.sidebar-ad-cta-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  background: #facc15;
  color: #000000;
  font-size: 0.875rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.35);
  text-decoration: none;
  outline: none;
}

.sidebar-ad-cta-btn svg {
  stroke: #000000;
}

.sidebar-ad-cta-btn:hover {
  background: #eab308;
  color: #000000;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.48);
}

.sidebar-ad-link-btn {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-secondary);
  text-align: center;
  text-decoration: none;
  transition: color 0.18s ease;
  padding: 4px 0;
  display: inline-block;
}

.sidebar-ad-link-btn:hover {
  color: var(--accent, #00aeec);
}

/* ── Advertise Modal (Campaign Planner) ── */
.ad-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.ad-modal-card {
  background: var(--bg-panel, #000000);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  animation: fadeInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
}

[data-theme="light"] .ad-modal-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.ad-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
  z-index: 10;
}

.ad-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: scale(1.1);
}

.ad-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-right: 36px;
}

.ad-modal-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: #f97316;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 174, 236, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.ad-modal-bird-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.ad-modal-title {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--text-white, #fff);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

[data-theme="light"] .ad-modal-title {
  color: #0f1419;
}

.ad-modal-subtitle {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Contact Card for Ad Inquiries */
.ad-contact-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

[data-theme="light"] .ad-contact-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.ad-contact-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent, #facc15) !important;
  color: #000000 !important;
  border: 1px solid var(--accent, #facc15) !important;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.4);
}

[data-theme="light"] .ad-contact-badge {
  background: var(--accent, #facc15) !important;
  color: #000000 !important;
  border-color: var(--accent, #facc15) !important;
}

.ad-contact-msg {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 440px;
}

.ad-email-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0f1419;
  border: 1px solid rgba(0, 174, 236, 0.35);
  border-radius: 12px;
  padding: 8px 10px 8px 16px;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}

[data-theme="light"] .ad-email-highlight {
  background: #ffffff;
  border-color: #cbd5e1;
}

.ad-email-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: #00aeec;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
  word-break: break-all;
}

.ad-email-link:hover {
  text-decoration: underline;
  color: #38bdf8;
}

.ad-email-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

[data-theme="light"] .ad-email-copy-btn {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

.ad-email-copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

[data-theme="light"] .ad-email-copy-btn:hover {
  background: #e2e8f0;
}

.ad-email-copy-btn.copied {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.ad-contact-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 440px;
}

.ad-contact-primary-btn {
  flex: 1;
  background: #00aeec;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 174, 236, 0.35);
  transition: all 0.18s ease;
}

.ad-contact-primary-btn:hover {
  background: #009cd3;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 174, 236, 0.45);
}

.ad-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ad-form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.ad-format-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ad-chip-label {
  cursor: pointer;
  position: relative;
  display: flex;
}

.ad-chip-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ad-chip-pill {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 650;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-soft);
  color: var(--text-secondary);
  transition: all 0.18s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

[data-theme="light"] .ad-chip-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.ad-chip-label input:checked+.ad-chip-pill {
  background: rgba(0, 174, 236, 0.14);
  border-color: #00aeec;
  color: #00aeec;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 174, 236, 0.2);
}

.ad-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {

  .ad-form-row,
  .ad-format-chips {
    grid-template-columns: 1fr;
  }
}

.ad-form-input,
.ad-form-select,
.ad-form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.18s ease;
  outline: none;
}

[data-theme="light"] .ad-form-input,
[data-theme="light"] .ad-form-select,
[data-theme="light"] .ad-form-textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.ad-form-input:focus,
.ad-form-select:focus,
.ad-form-textarea:focus {
  border-color: #00aeec;
  box-shadow: 0 0 0 3px rgba(0, 174, 236, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.ad-form-textarea {
  resize: vertical;
  min-height: 72px;
}

.ad-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.ad-submit-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00aeec, #009cd3);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 174, 236, 0.4);
}

.ad-submit-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(0, 174, 236, 0.5);
  filter: brightness(1.08);
}

.ad-direct-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ad-email-link {
  color: #00aeec;
  text-decoration: none;
  font-weight: 700;
}

.ad-email-link:hover {
  text-decoration: underline;
}

/* Advertise with us fallback placeholder */
.advertise-with-us-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  text-align: center;
  min-height: 120px;
}

.advertise-icon {
  font-size: 28px;
  opacity: 0.5;
}

.advertise-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #888);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

/* Small ad at top */
.right-ad-compact {
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.right-ad-compact .ad-label {
  margin-bottom: 6px;
}

.right-ad-compact-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
}

.right-ad-compact-icon {
  font-size: 1.5rem;
}

.right-ad-compact-text {
  flex: 1;
  text-align: left;
}

.right-ad-compact-text strong {
  font-size: 0.82rem;
  color: var(--text-primary);
  display: block;
}

.right-ad-compact-text span {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.right-ad-compact-btn {
  padding: 5px 12px;
  background: var(--accent);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--trans);
  flex-shrink: 0;
}

.right-ad-compact-btn:hover {
  background: var(--accent-hover);
}

/* Right sidebar cards */
.right-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--trans);
}

.right-card:hover {
  border-color: var(--text-muted);
}

.right-card-header {
  padding: 14px 14px 10px;
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

/* Breaking News List */
.breaking-list {
  display: flex;
  flex-direction: column;
}

.breaking-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background var(--trans);
}

.breaking-item:hover {
  background: var(--bg-hover);
}

.breaking-number {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  padding-top: 2px;
  min-width: 16px;
}

.breaking-thumb {
  width: 56px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

.breaking-content {
  flex: 1;
  min-width: 0;
}

.breaking-headline {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breaking-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.breaking-source {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.breaking-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--text-muted);
}

.breaking-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.show-more-link {
  display: block;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  border-top: 1px solid var(--border-soft);
  transition: color var(--trans);
}

.show-more-link:hover {
  color: var(--accent-hover);
}

/* Sponsored Links */
.sponsored-list {
  display: flex;
  flex-direction: column;
}

.sponsored-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background var(--trans);
}

.sponsored-item:hover {
  background: var(--bg-hover);
}

.sponsored-thumb {
  width: 60px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  object-fit: cover;
  flex-shrink: 0;
}

.sponsored-content {
  flex: 1;
  min-width: 0;
}

.sponsored-headline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sponsored-source {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.sponsored-tag {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
}

/* ── Taboola-style ad grid ── */
.taboola-section {
  padding: 0;
}

.taboola-header {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 0 6px;
}

.taboola-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.taboola-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--trans);
}

.taboola-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.taboola-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--bg-hover);
}

.taboola-body {
  padding: 8px 10px;
}

.taboola-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.taboola-source {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===================================================
   SKELETON / SHIMMER LOADERS
   =================================================== */

.shimmer {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===================================================
   SIDEBAR COPYRIGHT
   =================================================== */

.sidebar-copyright {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 8px;
}

/* Right Sidebar old ad spaces — hidden, replaced */
.right-ad-space {
  display: none;
}

/* ===================================================
   MOBILE
   =================================================== */

.mobile-menu-btn {
  display: none;
}

.mobile-overlay {
  display: none;
}

/* Rotate system & Screens <= 1100px:
   Requirement: "and if done the 5 no image will be hidden"
   Hide the 72px left icon rail (Image 5) completely.
   The sidebar is an off-canvas drawer opened via the 3-line hamburger menu. */
@media (max-width: 1100px) {
  body {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-right-w);
    grid-template-areas: "main right";
    padding-top: 64px;
  }

  /* Image 5 (72px Left Rail) is completely hidden on the rotate system */
  .sidebar-left {
    position: fixed !important;
    left: -340px !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 304px !important;
    max-width: 88vw !important;
    z-index: 10001 !important;
    background: var(--bg-panel, #0b0c10) !important;
    border-right: 1px solid var(--border, #222) !important;
    border-left: none !important;
    transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.65) !important;
    display: block !important;
    padding: 0 !important;
  }

  .sidebar-left.open {
    left: 0 !important;
  }

  .sidebar-drawer-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--border, #222) !important;
    background: rgba(255, 255, 255, 0.02) !important;
  }

  /* Keep full labels and brand in drawer */
  .logo-text,
  .header-logo-text {
    display: inline-block !important;
  }

  .nav-label,
  .nav-grid-label {
    display: inline-block !important;
  }

  .btn-primary-full span {
    display: inline-block !important;
  }
}

@media (max-width: 960px),
(orientation: landscape) and (max-height: 550px) {
  body {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" !important;
  }

  /* Force all per-page layout grids to single column in landscape/tablet */
  .user-profile-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" !important;
  }

  .category-layout,
  .category-layout.has-right-sidebar {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" !important;
  }

  .article-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" !important;
  }

  .user-page-sidebar-right,
  .category-sidebar-right,
  .article-sidebar-right {
    display: none !important;
  }

  .sidebar-right {
    display: none !important;
  }
}

@media (max-width: 800px) {
  body {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
    padding-top: 64px;
  }

  .sidebar-left {
    position: fixed;
    left: -100%;
    top: 0;
    width: 284px;
    z-index: 200;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    border-left: none;
    transition: left var(--trans-slow);
  }

  .sidebar-left.open {
    left: -4px !important;
  }

  .sidebar-right {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: background var(--trans);
  }

  .mobile-menu-btn:hover {
    background: var(--bg-hover);
  }

  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans-slow);
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .logo-text {
    display: block !important;
  }

  .nav-label {
    display: block !important;
  }

  .nav-grid-label {
    display: block !important;
  }

  .profile-info {
    display: flex !important;
  }

  .more-btn {
    display: flex !important;
  }

  .btn-primary-full {
    width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-pill) !important;
    padding: 12px 18px !important;
  }

  .nav-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .nav-grid-item {
    justify-content: flex-start !important;
  }

  .company-details-toggle span {
    display: inline !important;
  }

  .company-details-toggle {
    justify-content: space-between !important;
    padding: 9px 14px !important;
  }

  .company-details-content .nav-item.compact {
    justify-content: flex-start !important;
  }

  .company-details-content .nav-item.compact.sub-link {
    padding-left: 50px !important;
  }

  .follow-us-header {
    display: block !important;
  }

  .follow-us-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .follow-us-label {
    display: block !important;
  }

  .follow-us-item {
    justify-content: flex-start !important;
  }
}

/* ===================================================
   UTILITY
   =================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

/* ===================================================
   VIBRANT CATEGORY TAG COLORS (Image 1 Theme Spec)
   =================================================== */
/* Card Tag Pills - Vibrant Yellow with Black Text */
.card-tag,
.card-tag[data-cat] {
  font-size: 0.72rem;
  font-weight: 800 !important;
  color: #000000 !important;
  background: #facc15 !important;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  transition: all var(--trans);
  display: inline-flex;
  align-items: center;
  border: none;
  letter-spacing: 0.02em;
}

.card-tag:hover,
.card-tag[data-cat]:hover {
  filter: brightness(1.05);
  background: #eab308 !important;
  color: #000000 !important;
}

/* Copy link toast (Image 2 Spec) */
.copy-toast {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #0f1419 !important;
  color: #ffffff !important;
  padding: 13px 22px !important;
  border-radius: 8px !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  z-index: 100004 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  min-width: 320px !important;
  max-width: 92vw !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  box-sizing: border-box !important;
}

/* ===================================================
   THREADS CUSTOM FEED
   =================================================== */
.threads-feed-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 40px;
}

.threads-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.threads-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--accent);
}

.threads-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.threads-category-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 16px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

/* ===================================================
   Threads / Discussion Box (Image 2 Collapsed & Image 1 Expanded in Theme Color #00aeec)
   =================================================== */

.threads-discussion-wrapper {
  display: none !important;
  margin: 16px 0;
  width: 100%;
  position: relative;
}

.threads-discussion-box {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%) !important;
  color: #000000 !important;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Wavy / Scalloped Edge along the right border (Matching Image 1 & 2) */
.threads-scallop-strip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4,0 C12,0 18,5.4 18,12 C18,18.6 12,24 4,24 L24,24 L24,0 Z' fill='%23ffffff' fill-opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: right top;
  pointer-events: none;
  z-index: 2;
}

/* Collapsed State (Image 2 Style) */
.threads-box-collapsed {
  padding: 20px 32px 20px 22px;
  cursor: pointer;
}

.threads-box-collapsed:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 174, 236, 0.32);
}

.threads-collapsed-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.threads-discussion-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.95;
}

.threads-discussion-prompt {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 4px 0 12px 0;
}

.threads-discussion-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.threads-answer-btn {
  background-color: #5c45fd;
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(92, 69, 253, 0.35);
}

.threads-answer-btn:hover {
  background-color: #4b34ea;
  transform: translateY(-1px);
}

.threads-replies-count {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.threads-replies-count:hover {
  opacity: 0.88;
  text-decoration: underline;
}

/* Expanded State (Image 1 Style) */
.threads-discussion-expanded-wrap {
  animation: threadsFadeIn 0.3s ease;
  margin-top: 14px;
  margin-bottom: 16px;
}

@keyframes threadsFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.threads-box-expanded-banner {
  padding: 24px 34px 20px 24px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.threads-expanded-banner-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.threads-expanded-prompt {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 8px 0;
}

.threads-expanded-subtitle {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  margin: 0 0 18px 0;
  font-weight: 400;
}

.threads-expanded-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.threads-expanded-speech-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
}

.threads-speech-icon {
  fill: currentColor;
  width: 22px;
  height: 22px;
}

.threads-expanded-count-badge {
  color: #ffffff;
}

.threads-share-circles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.threads-share-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff !important;
  transition: transform 0.15s ease, filter 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.threads-share-circle:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.threads-share-circle svg {
  width: 15px;
  height: 15px;
  display: block;
}

.threads-share-circle.threads-share-x {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-bs {
  background-color: #1185fe !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-mastodon {
  background-color: #5c4ee5 !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-threads {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-fb {
  background-color: #1877f2 !important;
}

.threads-share-circle.threads-share-reddit {
  background-color: #ff4500 !important;
}

.threads-share-circle.threads-share-email {
  background-color: #ea4335 !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-link {
  background-color: #ff5722 !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-fb svg,
.threads-share-circle.threads-share-reddit svg {
  width: 24px;
  height: 24px;
}

.threads-share-circle.threads-share-email svg {
  width: 20px;
  height: 20px;
}

/* In Dark Mode: X and Threads have white circle background and black design (reverse) */
html:not([data-theme="light"]) .threads-share-circle.threads-share-x,
[data-theme="dark"] .threads-share-circle.threads-share-x,
html:not([data-theme="light"]) .threads-share-circle.threads-share-threads,
[data-theme="dark"] .threads-share-circle.threads-share-threads {
  background-color: #ffffff !important;
  color: #000000 !important;
}

html:not([data-theme="light"]) .threads-share-circle.threads-share-x svg,
[data-theme="dark"] .threads-share-circle.threads-share-x svg,
html:not([data-theme="light"]) .threads-share-circle.threads-share-threads svg,
[data-theme="dark"] .threads-share-circle.threads-share-threads svg {
  fill: #000000 !important;
  color: #000000 !important;
}

/* In Light Mode: X and Threads have black circle background and white design */
[data-theme="light"] .threads-share-circle.threads-share-x,
[data-theme="light"] .threads-share-circle.threads-share-threads {
  background-color: #000000 !important;
  color: #ffffff !important;
}

[data-theme="light"] .threads-share-circle.threads-share-x svg,
[data-theme="light"] .threads-share-circle.threads-share-threads svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Article Share Strip */
.article-share-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.share-strip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff !important;
  transition: transform 0.15s ease, filter 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.share-strip-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.share-strip-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

.share-strip-btn:not(.share-btn-fb):not(.share-btn-reddit):not(.share-btn-copy) svg {
  fill: currentColor;
}

.share-strip-btn.share-btn-tw,
.share-strip-btn.share-btn-x {
  background: #000000 !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-bluesky {
  background: #1185fe !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-mastodon {
  background: #5c4ee5 !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-threads {
  background: #000000 !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-fb {
  background: #1877f2 !important;
}

.share-strip-btn.share-btn-reddit {
  background: #ff4500 !important;
}

.share-strip-btn.share-btn-gmail {
  background: #ea4335 !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-copy {
  background: #ff5722 !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-copy svg {
  stroke: #ffffff;
  fill: none;
}

.share-strip-btn.share-btn-fb svg,
.share-strip-btn.share-btn-reddit svg {
  width: 24px;
  height: 24px;
}

.share-strip-btn.share-btn-gmail svg {
  width: 20px;
  height: 20px;
}

/* In Dark Mode: X and Threads have white circle background and black design (reverse) */
html:not([data-theme="light"]) .share-strip-btn.share-btn-tw,
html:not([data-theme="light"]) .share-strip-btn.share-btn-x,
[data-theme="dark"] .share-strip-btn.share-btn-tw,
[data-theme="dark"] .share-strip-btn.share-btn-x,
html:not([data-theme="light"]) .share-strip-btn.share-btn-threads,
[data-theme="dark"] .share-strip-btn.share-btn-threads {
  background: #ffffff !important;
  color: #000000 !important;
}

html:not([data-theme="light"]) .share-strip-btn.share-btn-tw svg,
html:not([data-theme="light"]) .share-strip-btn.share-btn-x svg,
[data-theme="dark"] .share-strip-btn.share-btn-tw svg,
[data-theme="dark"] .share-strip-btn.share-btn-x svg,
html:not([data-theme="light"]) .share-strip-btn.share-btn-threads svg,
[data-theme="dark"] .share-strip-btn.share-btn-threads svg {
  fill: #000000 !important;
  color: #000000 !important;
}

/* In Light Mode: X and Threads have black circle background and white design */
[data-theme="light"] .share-strip-btn.share-btn-tw,
[data-theme="light"] .share-strip-btn.share-btn-x,
[data-theme="light"] .share-strip-btn.share-btn-threads {
  background: #000000 !important;
  color: #ffffff !important;
}

[data-theme="light"] .share-strip-btn.share-btn-tw svg,
[data-theme="light"] .share-strip-btn.share-btn-x svg,
[data-theme="light"] .share-strip-btn.share-btn-threads svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Comments Body Below the Banner */
.threads-expanded-comments-body {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.threads-input-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.threads-comment-textarea {
  width: 100%;
  min-height: 64px;
  border-radius: 12px;
  border: 2px solid var(--accent, #facc15);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: #181c1e;
  color: #f4f4f5;
  box-sizing: border-box;
}

.threads-comment-textarea:focus {
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35);
}

.threads-join-conv-btn {
  width: 100%;
  background-color: var(--accent, #facc15);
  color: #000000;
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.threads-join-conv-btn:hover {
  background-color: #ea4a25;
  transform: translateY(-1px);
}

.threads-guidelines-txt {
  text-align: center;
  font-size: 0.8rem;
  color: #879596;
  margin: 2px 0 0 0;
}

.threads-guidelines-link {
  color: #879596;
  text-decoration: underline;
  transition: color 0.2s;
  cursor: pointer;
}

.threads-guidelines-link:hover {
  color: #facc15 !important;
  text-decoration-color: #facc15 !important;
}

.threads-comments-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft, #243b40);
  padding-bottom: 10px;
  margin-top: 6px;
}

.threads-comments-count-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f4f4f5;
  margin: 0;
}

.threads-sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #879596;
}

.threads-sort-select {
  background: transparent;
  border: none;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.threads-flow-comments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.threads-flow-comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.threads-flow-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.threads-flow-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.threads-flow-subavatar {
  width: 28px;
  height: 28px;
}

.threads-flow-threadline {
  width: 2px;
  flex: 1;
  background-color: var(--border-soft, #2e383a);
  margin-top: 6px;
  border-radius: 1px;
  min-height: 20px;
}

.threads-flow-comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.threads-flow-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.threads-flow-author {
  font-weight: 700;
  color: #f4f4f5;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
  cursor: pointer;
}

.threads-flow-author:hover {
  text-decoration-color: currentColor;
}

.threads-flow-bullet {
  color: #6b7280;
  font-size: 0.8rem;
}

.threads-flow-time {
  color: #879596;
  font-size: 0.8rem;
}

.threads-flow-more-btn {
  background: transparent;
  border: none;
  color: #879596;
  margin-left: auto;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.threads-flow-more-btn:hover {
  color: #f4f4f5;
}

.threads-flow-text {
  font-size: 0.92rem;
  line-height: 1.48;
  color: #d1d5db;
  margin: 2px 0 6px 0;
  word-break: break-word;
}

.threads-flow-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #879596;
  font-weight: 600;
  flex-wrap: wrap;
}

.threads-flow-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.threads-flow-act-btn:hover {
  color: #00aeec;
}

.threads-flow-like-btn.active-liked {
  color: #00aeec;
  font-weight: 700;
}

.threads-subreply-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.threads-subreply-input {
  flex: 1;
  border-radius: 18px;
  border: 1px solid var(--border-soft, #243b40);
  padding: 6px 14px;
  font-size: 0.85rem;
  outline: none;
  background: transparent;
  color: inherit;
  box-sizing: border-box;
}

.threads-subreply-send {
  background: #00aeec;
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
}

.threads-subreply-send:hover {
  background: #ea4a25;
}

.threads-flow-nested-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding-left: 6px;
}

.threads-flow-reply-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.threads-collapse-bar {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-soft, #243b40);
}

.threads-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-soft, #243b40);
  color: #879596;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.threads-collapse-btn:hover {
  border-color: #00aeec;
  color: #00aeec;
}

.shake-error {
  animation: shakeErr 0.4s ease;
  border-color: #ef4444 !important;
}

@keyframes shakeErr {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }
}

/* Light Theme Overrides */
[data-theme="light"] .threads-comment-textarea {
  background-color: #ffffff;
  color: #1c1c1c;
}

[data-theme="light"] .threads-comments-count-title {
  color: #1c1c1c;
}

[data-theme="light"] .threads-flow-author {
  color: #1c1c1c;
}

[data-theme="light"] .threads-flow-text {
  color: #27272a;
}

[data-theme="light"] .threads-comments-header-row,
[data-theme="light"] .threads-collapse-bar {
  border-color: #e4e4e7;
}

[data-theme="light"] .threads-flow-threadline {
  background-color: #e4e4e7;
}

[data-theme="light"] .threads-subreply-input {
  border-color: #d4d4d8;
  color: #18181b;
}

.threads-summary-text {
  color: #a1a1aa;
  font-size: 0.95rem;
  line-height: 1.5;
}

.threads-branding {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.threads-related-stories-section {
  background-color: #121212;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}

.threads-related-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #a1a1aa;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.threads-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.threads-related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.threads-related-card:hover .threads-related-card-title {
  color: var(--accent);
}

.threads-related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.threads-related-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.threads-related-card-meta {
  font-size: 0.7rem;
  color: #a1a1aa;
}

@media (max-width: 768px) {
  .threads-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Inline Threads Comments */
.threads-comments-section {
  background-color: #121212;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
  border-left: 3px solid var(--accent);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.threads-inline-reply-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.threads-inline-textarea {
  width: 100%;
  min-height: 80px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.threads-inline-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.threads-inline-submit {
  align-self: flex-end;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
}

.threads-inline-submit:hover {
  opacity: 0.9;
}

.threads-inline-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.threads-inline-comment {
  padding-left: 16px;
  border-left: 2px solid #333;
}

.threads-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.threads-comment-author {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.threads-comment-time {
  color: #6b7280;
  font-size: 0.75rem;
}

.threads-comment-body {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.threads-comment-actions {
  display: flex;
  gap: 12px;
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 600;
}

.threads-comment-actions span {
  cursor: pointer;
}

.threads-comment-actions span:hover {
  color: var(--accent);
}

.new-comment-anim {
  animation: highlight 2s ease;
}

@keyframes highlight {
  0% {
    background-color: var(--accent-glow);
  }

  100% {
    background-color: transparent;
  }
}

/* ===================================================
   LOGIN MODAL STYLING
   =================================================== */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.login-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.login-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.login-modal-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.login-modal-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  margin-bottom: 16px;
  outline: none;
}

.login-modal-input:focus {
  border-color: var(--accent);
}

.login-modal-flair-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.login-modal-flair-select label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.login-modal-flair-select select {
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  outline: none;
}

.login-modal-submit {
  width: 100%;
  padding: 12px;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

/* Card Share Container & Trigger Button */
.card-share-container {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.share-trigger-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 0 16px !important;
  height: 36px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  cursor: pointer !important;
  transition: opacity 0.25s ease, max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s, margin 0.35s, background 0.15s ease, color 0.15s ease, transform 0.1s ease !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  max-width: 140px !important;
  box-sizing: border-box !important;
  user-select: none !important;
}

[data-theme="light"] .share-trigger-btn {
  color: #0f0f0f !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.share-trigger-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  fill: none !important;
}

.share-trigger-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .share-trigger-btn:hover {
  color: #0f0f0f !important;
  background: rgba(0, 0, 0, 0.09) !important;
}

.card-share-container {
  display: flex;
  align-items: center;
  position: relative;
  gap: 8px;
}

.card-share-container.active .share-trigger-btn {
  opacity: 1 !important;
  max-width: 140px !important;
  pointer-events: auto !important;
}

/* Inline Share Bar default (used on article details page) */
.inline-share-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Feed card specific hover/reveal states */
.card-share-container .inline-share-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateX(10px);
  transition: opacity 0.25s ease, max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease;
  pointer-events: none;
  flex-wrap: nowrap;
}

.card-share-container.active .inline-share-bar {
  opacity: 1;
  max-width: 500px;
  transform: translateX(0);
  pointer-events: auto;
}

/* Share Back Button specific hover */
.share-back-btn:hover {
  background: var(--bg-hover) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}

/* Staggered entry animation for active share buttons */
.card-share-container.active .share-icon-btn {
  animation: shareIconPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.card-share-container.active .share-icon-btn:nth-child(1) {
  animation-delay: 0.02s;
}

.card-share-container.active .share-icon-btn:nth-child(2) {
  animation-delay: 0.05s;
}

.card-share-container.active .share-icon-btn:nth-child(3) {
  animation-delay: 0.08s;
}

.card-share-container.active .share-icon-btn:nth-child(4) {
  animation-delay: 0.11s;
}

.card-share-container.active .share-icon-btn:nth-child(5) {
  animation-delay: 0.14s;
}

.card-share-container.active .share-icon-btn:nth-child(6) {
  animation-delay: 0.17s;
}

.card-share-container.active .share-icon-btn:nth-child(7) {
  animation-delay: 0.20s;
}

.card-share-container.active .share-icon-btn:nth-child(8) {
  animation-delay: 0.23s;
}

.card-share-container.active .share-icon-btn:nth-child(9) {
  animation-delay: 0.26s;
}

@keyframes shareIconPop {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(4px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


.share-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2d2e3;
  background: #ffffff;
  cursor: pointer;
  transition: all var(--trans);
  color: #4e4e61;
  padding: 0;
  flex-shrink: 0;
}

.card-share-container .share-icon-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease !important;
}

[data-theme="dark"] .card-share-container .share-icon-btn {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.card-share-container .share-icon-btn svg {
  width: 15px !important;
  height: 15px !important;
}

.card-share-container .share-icon-btn.share-back-btn svg {
  stroke: currentColor !important;
  fill: none !important;
}

.share-icon-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.share-icon-btn:hover svg {
  transform: scale(1.15);
}

.share-icon-btn:hover {
  color: #ffffff;
}

.share-twitter:hover {
  background: #00aeec;
  border-color: #00aeec;
}

.share-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeB 90%);
  border-color: #d6249f;
}

.share-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
}

.share-bluesky:hover {
  background: #0085ff;
  border-color: #0085ff;
}

.share-mastodon:hover {
  background: #6364ff;
  border-color: #6364ff;
}

.share-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
}

.share-reddit:hover {
  background: #FF4500;
  border-color: #FF4500;
}

.share-copy:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Upvote/Downvote Widget & Engagement Pill Styling */
.card-engagement {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.vote-widget,
.engagement-item.comments {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 4px;
  height: 32px;
  gap: 0;
  box-sizing: border-box;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
}

[data-theme="light"] .vote-widget,
[data-theme="light"] .engagement-item.comments {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #0f0f0f;
}

.vote-widget:hover,
.engagement-item.comments:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

[data-theme="light"] .vote-widget:hover,
[data-theme="light"] .engagement-item.comments:hover {
  background: rgba(0, 0, 0, 0.09);
  color: #000000;
}

.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
  height: 100%;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}

.vote-btn svg {
  width: 14px;
  height: 14px;
  transition: all var(--trans);
}

.vote-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

[data-theme="light"] .vote-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  color: #000000;
}

.vote-btn.vote-up.active {
  color: #ffffff;
}

.vote-btn.vote-up.active svg {
  fill: currentColor;
}

[data-theme="light"] .vote-btn.vote-up.active {
  color: #000000;
}

.vote-btn.vote-down.active {
  color: #ffffff;
}

.vote-btn.vote-down.active svg {
  fill: currentColor;
}

[data-theme="light"] .vote-btn.vote-down.active {
  color: #000000;
}

.vote-widget .vote-pill-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  margin: 0 1px;
  flex-shrink: 0;
}

[data-theme="light"] .vote-widget .vote-pill-divider {
  background: rgba(0, 0, 0, 0.15);
}

.vote-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: inherit;
  min-width: 24px;
  text-align: center;
  user-select: none;
  transition: color var(--trans);
}

.vote-count.upvoted {
  color: #ffffff !important;
}

[data-theme="light"] .vote-count.upvoted {
  color: #000000 !important;
}

.vote-count.downvoted {
  color: #ffffff !important;
}

[data-theme="light"] .vote-count.downvoted {
  color: #000000 !important;
}

/* ===================================================
   ACTION CAPSULE BAR (Coffee Pill Widget)
   =================================================== */
.action-capsule-bar {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  line-height: 1;
}

.capsule-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 0 10px;
  height: 24px;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.capsule-pill svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform 0.2s ease;
}

.capsule-pill:hover {
  background: rgba(0, 174, 236, 0.15);
  border-color: rgba(0, 174, 236, 0.45);
  color: #ff7a59;
  transform: translateY(-1px);
}

.capsule-pill:hover svg {
  transform: rotate(-8deg) scale(1.1);
}

.capsule-pill:active {
  transform: scale(0.96);
}

[data-theme="light"] .capsule-pill,
html[data-theme="light"] .capsule-pill {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme="light"] .capsule-pill:hover,
html[data-theme="light"] .capsule-pill:hover {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(217, 119, 6, 0.4);
  color: #b45309;
}

.capsule-pill.active-coffee,
[data-theme="light"] .capsule-pill.active-coffee,
html[data-theme="light"] .capsule-pill.active-coffee {
  background: rgba(250, 204, 21, 0.18) !important;
  border: 1.5px solid #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.4) !important;
}

.capsule-pill.active-coffee svg {
  stroke: #facc15 !important;
}

[data-theme="light"] .capsule-pill.active-coffee,
html[data-theme="light"] .capsule-pill.active-coffee {
  border-color: #d97706 !important;
  color: #b45309 !important;
}

[data-theme="light"] .capsule-pill.active-coffee svg,
html[data-theme="light"] .capsule-pill.active-coffee svg {
  stroke: #b45309 !important;
}


/* Compact card context: smaller pills */
.post-compact-meta .action-capsule-bar {
  gap: 4px;
}

.post-compact-meta .capsule-pill {
  height: 26px;
  padding: 0 8px;
  font-size: 0.72rem;
  gap: 4px;
}

.post-compact-meta .capsule-pill svg {
  width: 12px;
  height: 12px;
}

.engagement-item.comments svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: color var(--trans);
}

.engagement-item.comments:hover svg {
  color: var(--text-primary);
}

/* Header Home Button — Removed */
.header-home-btn {
  display: none !important;
}

/* ===================================================
   UNIVERSAL TOP HEADER
   =================================================== */

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

[data-theme="light"] .top-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .top-header {
  background: #000000;
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 100%;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  box-sizing: border-box;
}

.header-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: transform var(--trans) !important;
  text-decoration: none;
}

.header-logo:hover {
  transform: scale(1.02) !important;
  box-shadow: none !important;
}

/* Circular bird logo before website name (matching Image 1 & Image 3) */
.header-logo-bird-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--accent, #facc15);
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.35);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-logo:hover .header-logo-bird-circle {
  transform: rotate(-8deg) scale(1.06);
}

.header-logo-bird-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-logo-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 2.2rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  color: var(--logo-text-color, #18191c) !important;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-transform: none !important;
  background: none !important;
  -webkit-text-fill-color: var(--logo-text-color, #18191c) !important;
  -webkit-text-stroke: 0 !important;
  background-clip: unset !important;
  text-shadow: none !important;
  white-space: nowrap;
}

[data-theme="dark"] .header-logo-text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

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

/* Header Search - Modern Command-K / Image 4 Capsule */
.header-search {
  position: relative;
  flex: 0 1 520px;
  width: 520px;
  max-width: 560px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141416;
  border: 1.5px solid #ffffff !important;
  border-radius: 9999px !important;
  padding: 4px 6px 4px 14px;
  transition: all var(--trans);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.header-search:hover {
  border-color: #ffffff !important;
}

.header-search:focus-within {
  background: #18181e;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .header-search,
html[data-theme="dark"] .header-search {
  background: #141416 !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 9999px !important;
}

[data-theme="dark"] .header-search:focus-within,
html[data-theme="dark"] .header-search:focus-within {
  background: #18181e !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .header-search,
html[data-theme="light"] .header-search {
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

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

.header-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

[data-theme="light"] .header-search-icon {
  color: #71717a;
}

.header-search input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--text-primary);
  font-size: 0.95rem;
  text-align: left;
  padding: 6px 4px;
  font-family: var(--font);
}

.header-search input::placeholder,
.header-search input::-webkit-input-placeholder,
.header-search input::-moz-placeholder {
  color: #cbd5e1 !important;
  opacity: 0.9 !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: #64748b !important;
}

.header-search-clear {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: #2a2e33;
  color: #a1a1aa;
  border: none;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.header-search-clear:hover {
  background: #3f444a;
  color: #ffffff;
}

[data-theme="light"] .header-search-clear {
  background: #e4e4e7;
  color: #52525b;
}

[data-theme="light"] .header-search-clear:hover {
  background: #d4d4d8;
  color: #18181b;
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  border-radius: 9999px !important;
  padding: 7px 18px !important;
  height: auto !important;
  width: auto !important;
  cursor: pointer;
  border: none !important;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.28);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  font-family: inherit;
}

.header-search-btn:hover {
  background: #eab308 !important;
  color: #000000 !important;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
  transform: translateY(-0.5px);
}

.header-search-btn:active {
  transform: scale(0.97);
}

.header-search-btn-icon {
  width: 15px;
  height: 15px;
}

.header-search-kbd {
  display: none !important;
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 0;
}

/* Header search icon button (hidden on desktop where center search bar is visible) */
.header-search-icon-btn {
  display: none;
}

.header-dropdown {
  position: relative;
  display: inline-block;
}

.header-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-hover);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--trans);
  height: 34px;
  box-sizing: border-box;
}

.header-dropdown-btn:hover {
  background: var(--border-soft);
  border-color: var(--border);
  color: var(--text-white);
}

.dropdown-arrow-icon {
  transition: transform var(--trans);
}

.header-dropdown.open .dropdown-arrow-icon {
  transform: rotate(180deg);
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 600;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 170px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.header-dropdown.open .header-dropdown-menu {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--trans), color var(--trans);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.header-signin,
.header-signup {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-hover);
  border: 1px solid var(--border-soft);
  transition: all var(--trans);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 34px;
  box-sizing: border-box;
}

.header-signin:hover,
.header-signup:hover {
  background: var(--border-soft);
  color: var(--text-white);
}

[data-theme="light"] .header-signin,
[data-theme="light"] .header-signup {
  color: #1e293b;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .header-signin:hover,
[data-theme="light"] .header-signup:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color var(--trans), background var(--trans);
}

.header-socials a:hover {
  color: var(--text-white);
  background: var(--bg-hover);
}

.header-mobile-menu {
  display: inline-flex !important;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .header-socials {
    display: none;
  }
}

@media (max-width: 600px) {
  .header-dropdown {
    display: none;
  }
}

/* ===================================================
   VERTICAL RANKER LIST (Matches Image 1 precisely)
   =================================================== */
.ranker-vertical-list {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md, 12px);
  padding: 6px 20px;
  margin: 10px 0 16px 0;
}

[data-theme="light"] .ranker-vertical-list {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.ranker-vertical-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranker-vertical-item:last-child {
  border-bottom: none;
}

[data-theme="light"] .ranker-vertical-item {
  border-bottom-color: #e2e8f0;
}

.ranker-item-thumb-wrap {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ranker-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ranker-vertical-item:hover .ranker-item-thumb {
  transform: scale(1.05);
}

.ranker-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ranker-item-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.ranker-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 11px;
  border-radius: 50px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.ranker-status-badge.status-rising {
  background: var(--accent, #facc15);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.4);
}

.ranker-status-badge.status-falling {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.ranker-item-vote-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent, #facc15) !important;
  border: none !important;
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.35);
  color: #000000 !important;
  user-select: none;
}

[data-theme="light"] .ranker-item-vote-pill {
  background: var(--accent, #facc15) !important;
  border: none !important;
  color: #000000 !important;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.35);
}

.ranker-vote-arrow {
  background: none;
  border: none;
  color: #000000 !important;
  cursor: pointer;
  padding: 2px 3px;
  line-height: 1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}

.ranker-vote-arrow svg {
  stroke: #ffffff !important;
}

.ranker-vote-arrow:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.15);
}

.ranker-vote-arrow.up-btn.active-up {
  color: #ffffff !important;
  background: #e55a00 !important;
  border-radius: 4px;
}

.ranker-vote-arrow.down-btn.active-down {
  color: #ffffff !important;
  background: #e55a00 !important;
  border-radius: 4px;
}

.ranker-score-num {
  font-weight: 700;
  color: #ffffff !important;
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
}

[data-theme="light"] .ranker-score-num {
  color: #ffffff !important;
}

.ranker-item-title {
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 2px 0 3px 0;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

[data-theme="light"] .ranker-item-title {
  color: #0f172a;
}

.ranker-num {
  font-weight: 900;
  margin-right: 4px;
}

.ranker-num.rising {
  color: #3b82f6;
}

[data-theme="light"] .ranker-num.rising {
  color: #009cd3;
}

.ranker-num.falling {
  color: #ef4444;
}

[data-theme="light"] .ranker-num.falling {
  color: #dc2626;
}

.ranker-item-subtitle {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 4px 0 0 0;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap;
}

[data-theme="light"] .ranker-item-subtitle {
  color: #1e293b;
}

.ranker-item-latest {
  display: none !important;
}

@media (max-width: 768px) {
  .ranker-vertical-list {
    padding: 4px 14px;
  }

  .ranker-vertical-item {
    gap: 14px;
    padding: 14px 0;
  }

  .ranker-item-thumb-wrap {
    width: 78px;
    height: 78px;
    border-radius: 10px;
  }

  .ranker-item-title {
    font-size: 1.1rem;
  }

  .ranker-item-subtitle {
    font-size: 0.88rem;
  }

  .ranker-item-latest {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .ranker-vertical-list {
    padding: 2px 10px;
  }

  .ranker-vertical-item {
    gap: 10px;
    padding: 12px 0;
  }

  .ranker-item-thumb-wrap {
    width: 68px;
    height: 68px;
    border-radius: 8px;
  }

  .ranker-item-title {
    font-size: 0.98rem;
  }

  .ranker-item-subtitle {
    font-size: 0.82rem;
  }

  .ranker-item-latest {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   RANKER DETAIL & INTERACTIVE SUB-RANKINGS (Images 4 & 5)
   ========================================================================== */

.clickable-ranker-row {
  cursor: pointer;
  padding: 14px 12px;
  margin: 2px -12px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.clickable-ranker-row:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
}

[data-theme="light"] .clickable-ranker-row:hover {
  background: rgba(0, 0, 0, 0.03);
}

.clickable-ranker-row:hover .ranker-subtitle-text {
  color: #3b82f6;
  text-decoration: underline;
}

.ranker-open-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff !important;
  background: #3b82f6 !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 4px 12px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.35);
  transition: all 0.2s ease;
  user-select: none;
}

.clickable-ranker-row:hover .ranker-open-badge,
.ranker-open-badge:hover {
  background: #009cd3 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 156, 211, 0.45);
  transform: translateY(-1px);
}

/* Ranker Detail Wrapper */
.ranker-detail-wrapper {
  max-width: 920px;
  margin: 0 auto 50px auto;
  animation: rankerFadeIn 0.3s ease;
}

@keyframes rankerFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back Button & Breadcrumbs Bar */
.ranker-detail-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

[data-theme="light"] .ranker-detail-nav-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.ranker-full-card,
.ranker-header-card {
  margin-bottom: 24px !important;
  border-radius: 0 !important;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .ranker-full-card,
[data-theme="light"] .ranker-header-card {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.ranker-back-to-feed-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ranker-back-to-feed-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateX(-3px);
}

[data-theme="light"] .ranker-back-to-feed-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .ranker-back-to-feed-btn:hover {
  border-color: #00aeec;
  color: #00aeec;
  background: #f8fafc;
}

.article-breadcrumbs-strip {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 24px 0 24px;
  box-sizing: border-box;
}

.category-breadcrumbs-strip {
  width: 100%;
  margin-bottom: 16px;
}

.ranker-detail-breadcrumbs,
.breadcrumbs-container {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.ranker-detail-breadcrumbs .crumb-link,
.breadcrumbs-container .breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.ranker-detail-breadcrumbs .crumb-link:hover,
.breadcrumbs-container .breadcrumb-link:hover {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

.ranker-detail-breadcrumbs .crumb-sep,
.breadcrumbs-container .breadcrumb-separator {
  color: var(--text-muted);
  user-select: none;
  margin: 0 2px;
}

.ranker-detail-breadcrumbs .crumb-current,
.breadcrumbs-container .breadcrumb-current {
  color: var(--text-primary);
  font-weight: 700;
  max-width: none;
  white-space: normal;
}

[data-theme="light"] .ranker-detail-breadcrumbs .crumb-current,
[data-theme="light"] .breadcrumbs-container .breadcrumb-current {
  color: #0f172a;
}

/* Image 4 Header */
.ranker-detail-header {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.ranker-presented-by,
#newsStoryPresentedBy {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.ranker-presented-link {
  color: #facc15 !important;
  text-decoration: none;
  font-weight: 700;
}

.ranker-presented-link:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
}

.ranker-detail-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.16;
  color: var(--text-white);
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
}

[data-theme="light"] .ranker-detail-title {
  color: #0f172a;
}

.ranker-author-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ranker-author-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.ranker-author-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ranker-author-meta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ranker-author-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
}

[data-theme="light"] .ranker-author-name {
  color: #0f172a;
}

.ranker-author-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.ranker-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ranker-badge-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.ranker-ranked-by-pill .ranker-badge-label-dark {
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.74rem;
}

.ranker-ranked-by-pill .ranker-badge-label-info {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

[data-theme="light"] .ranker-ranked-by-pill .ranker-badge-label-info {
  background: #ffffff;
  color: #0f172a;
}

.ranker-arrow-icon {
  color: #64748b;
  font-size: 0.85rem;
}

.ranker-reranks-txt {
  color: var(--text-secondary);
  font-weight: 600;
}

.ranker-voting-rules-pill {
  border-color: var(--border);
}

.ranker-voting-rules-pill .ranker-badge-label-light {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 800;
  padding: 6px 12px;
  border-right: 1px solid var(--border);
  font-size: 0.76rem;
}

[data-theme="light"] .ranker-voting-rules-pill .ranker-badge-label-light {
  background: #f1f5f9;
  color: #0f172a;
}

.ranker-voting-rules-pill .ranker-badge-label-rule {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
}

.ranker-detail-desc {
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin: 0;
}

[data-theme="light"] .ranker-detail-desc {
  color: #334155;
}

/* Image 3 Ranked Item Cards - Modern Card Style */
.ranker-cards-list,
.ranker-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 24px !important;
  margin: 20px 0 !important;
}

.ranker-card-item {
  position: relative;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  margin: 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranker-card-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .ranker-card-item {
  background: var(--bg-card, #000000) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .ranker-card-item:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6) !important;
}

/* Hide legacy elements */
.ranker-scallop-strip,
.ranker-card-item::after {
  display: none !important;
}

/* Top Banner Image with Golden Rosette Rank Badge */
.ranker-card-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: visible !important;
  background: #0f172a;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.ranker-card-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0 !important;
  transition: transform 0.4s ease;
}

.ranker-card-item:hover .ranker-card-img {
  transform: scale(1.02) !important;
}

/* Golden Rosette / Star Rank Badge (Image 3 Style) */
.ranker-gold-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.5));
  pointer-events: none;
  user-select: none;
}

.ranker-gold-badge-shape {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  clip-path: polygon(50% 0%, 63% 14%, 81% 6%, 85% 24%, 100% 35%, 91% 50%,
      100% 65%, 85% 76%, 81% 94%, 63% 86%, 50% 100%, 37% 86%,
      19% 94%, 15% 76%, 0% 65%, 9% 50%, 0% 35%, 15% 24%, 19% 6%, 37% 14%);
  transition: transform 0.3s ease;
}

.ranker-card-item:hover .ranker-gold-badge-shape {
  transform: rotate(15deg) scale(1.06);
}

.ranker-gold-badge-num {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font, 'Inter', sans-serif);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

/* Card Body Content */
.ranker-card-body {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranker-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.ranker-card-name {
  font-size: 1.42rem;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

[data-theme="dark"] .ranker-card-name {
  color: #f8fafc !important;
}

.ranker-card-chart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  color: #64748b;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .ranker-card-chart-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.ranker-card-chart-icon:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  transform: scale(1.08);
}

.ranker-card-age {
  font-size: 0.88rem;
  color: #64748b !important;
  font-weight: 600;
  margin: 0 0 2px 0;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .ranker-card-age {
  color: #94a3b8 !important;
}

/* Source Attribution / Credit below image (Photos 1-3) */
.ranker-card-credit {
  font-size: 0.8rem;
  font-style: italic;
  color: #64748b;
  margin: -4px 0 4px 2px;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .ranker-card-credit {
  color: #94a3b8;
}

[data-theme="light"] .ranker-card-credit {
  color: #64748b;
}

/* Description / Story Text */
.ranker-card-desc {
  font-size: 1.05rem;
  line-height: 1.68;
  color: #334155 !important;
  margin: 2px 0 6px 0;
}

[data-theme="dark"] .ranker-card-desc {
  color: #cbd5e1 !important;
}

[data-theme="light"] .ranker-card-desc {
  color: #334155 !important;
}

/* Upvote / Downvote Capsule Ranking Pill (Photo 4) */
.ranker-card-voting-pill {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 6px 18px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  margin-top: 6px;
}

[data-theme="dark"] .ranker-card-voting-pill {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="light"] .ranker-card-voting-pill {
  background: #18181b;
  border-color: rgba(0, 0, 0, 0.1);
}

.ranker-card-voting-module {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.ranker-card-btn-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ranker-btn-square {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.ranker-btn-square:hover {
  transform: scale(1.08);
}

.ranker-btn-square:active {
  transform: scale(0.94);
}

.ranker-btn-square.ranker-btn-up {
  background: #22c55e;
  color: #ffffff;
}

.ranker-btn-square.ranker-btn-up:hover {
  background: #16a34a;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.5);
}

.ranker-btn-square.ranker-btn-down {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.ranker-btn-square.ranker-btn-down:hover {
  background: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.ranker-btn-square.active-up {
  background: #22c55e !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.7) !important;
}

.ranker-btn-square.active-down {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.7) !important;
}

.ranker-vote-count-txt {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.ranker-live-vote-num {
  font-weight: 900;
  font-size: 0.95rem;
  margin-right: 4px;
}

/* Card Footer Row: Stars, Views, Voting (Image 3 Style) */
.ranker-card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 6px;
}

[data-theme="dark"] .ranker-card-footer-row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.ranker-footer-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ranker-stars-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 1.15rem;
  line-height: 1;
  color: #cbd5e1;
}

.ranker-stars-row .ranker-star.filled {
  color: #f59e0b;
}

.ranker-views-count {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .ranker-views-count {
  color: #fbbf24;
}

.ranker-card-footer-row .ranker-card-voting-pill {
  margin: 0 !important;
  padding: 4px 14px 4px 6px;
}

.ranker-consensus-pill {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  width: fit-content;
}

[data-theme="light"] .ranker-consensus-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #1e293b;
}

.ranker-card-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.ranker-card-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.ranker-card-link-item .link-icon {
  font-size: 0.95rem;
}

.ranker-card-link-item .link-label {
  font-weight: 800;
  margin-right: 2px;
}

.ranker-card-link-item.dig-deeper .link-icon,
.ranker-card-link-item.dig-deeper .link-label {
  color: #10b981;
}

.ranker-card-link-item.also-ranks .link-icon,
.ranker-card-link-item.also-ranks .link-label {
  color: #8b5cf6;
}

.ranker-card-link-item .link-title {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

[data-theme="light"] .ranker-card-link-item .link-title {
  color: #0f172a;
}

.ranker-card-link-item .link-title:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .ranker-card-inner {
    flex-direction: column;
    gap: 18px;
  }

  .ranker-card-left-section {
    width: 100%;
  }

  .ranker-detail-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 540px) {
  .ranker-card-left-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .ranker-card-img-wrap {
    width: 100%;
    height: 190px;
  }
}

/* ===================================================
   POLLS FEED & CARDS (Matches User Images)
   =================================================== */
.polls-create-bar {
  background: var(--bg-card, #13121d);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg, 16px);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .polls-create-bar {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.polls-create-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.polls-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.polls-create-input-btn {
  flex: 1;
  background: var(--bg-hover, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-soft);
  border-radius: 50px;
  padding: 10px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.polls-create-input-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
  color: var(--text-white);
}

[data-theme="light"] .polls-create-input-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .polls-create-input-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.polls-type-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-left: 52px;
}

.poll-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-hover, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.poll-type-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-white);
  border-color: var(--border);
}

[data-theme="light"] .poll-type-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .poll-type-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Middle Card Poll Box */
.poll-card-box {
  background: var(--bg-panel, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px;
  margin: 10px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="light"] .poll-card-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.poll-image-wrap {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid var(--border);
}

.poll-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.poll-card-box:hover .poll-image-wrap img {
  transform: scale(1.03);
}

.poll-box-header,
.poll-footer-actions,
.poll-box-footer {
  display: none !important;
}

.poll-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.poll-header-right {
  display: flex;
  align-items: center;
}

.poll-index-badge {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-white, #ffffff);
  letter-spacing: -0.02em;
}

[data-theme="light"] .poll-index-badge {
  color: #0f172a;
}

.poll-report-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.poll-report-btn:hover {
  color: var(--text-white, #ffffff);
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
}

[data-theme="light"] .poll-report-btn {
  color: #64748b;
}

[data-theme="light"] .poll-report-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.poll-meta-row {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
  margin-top: -4px;
}

[data-theme="light"] .poll-meta-row {
  color: #64748b;
}

.poll-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

[data-theme="light"] .poll-cat-tag {
  color: #0f172a;
}

.poll-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0, 174, 236, 0.15);
  color: #00aeec;
  border: 1px solid rgba(0, 174, 236, 0.3);
}

.poll-question-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-white);
  margin: 2px 0 0 0;
  letter-spacing: -0.01em;
}

[data-theme="light"] .poll-question-title {
  color: #0f172a;
}

.poll-desc-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

[data-theme="light"] .poll-desc-text {
  color: #475569;
}

/* Options list */
.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.poll-option-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-card, rgba(255, 255, 255, 0.03));
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

[data-theme="light"] .poll-option-item {
  background: #ffffff;
  border-color: #e2e8f0;
}

.poll-option-item:hover {
  border-color: var(--accent, #facc15);
  transform: translateY(-1px);
}

.poll-option-item.selected-vote {
  border-color: var(--accent, #facc15);
  box-shadow: 0 0 0 1px var(--accent, #facc15), 0 4px 14px rgba(250, 204, 21, 0.25);
}

.poll-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.16), rgba(250, 204, 21, 0.22));
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.poll-option-item.leading-vote .poll-progress-fill {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.3), rgba(250, 204, 21, 0.25));
}

.poll-option-item.selected-vote .poll-progress-fill {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.35), rgba(250, 204, 21, 0.3));
}

[data-theme="light"] .poll-progress-fill {
  background: rgba(250, 204, 21, 0.14);
}

[data-theme="light"] .poll-option-item.leading-vote .poll-progress-fill {
  background: rgba(250, 204, 21, 0.2);
}

[data-theme="light"] .poll-option-item.selected-vote .poll-progress-fill {
  background: rgba(250, 204, 21, 0.28);
}

.poll-option-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  gap: 12px;
}

.poll-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.poll-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.poll-option-item.selected-vote .poll-radio-dot {
  border-color: var(--accent, #facc15);
  background: var(--accent, #facc15);
}

.poll-radio-dot-inner {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: none;
}

.poll-option-item.selected-vote .poll-radio-dot-inner {
  display: block;
}

.poll-letter-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-hover, rgba(255, 255, 255, 0.08));
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
  transition: all 0.2s ease;
}

.poll-option-item.selected-vote .poll-letter-badge {
  background: #f43f5e;
  border-color: #f43f5e;
  color: #ffffff;
}

[data-theme="light"] .poll-letter-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.poll-option-label {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

[data-theme="light"] .poll-option-label {
  color: #1e293b;
}

.poll-option-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.poll-pct-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 42px;
  text-align: right;
}

[data-theme="light"] .poll-pct-num {
  color: #0f172a;
}

.poll-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, #facc15);
  color: #000000;
  font-size: 0.72rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Side-by-side Image Poll (Image 5) */
.poll-image-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.poll-image-choice-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-img-box {
  position: relative;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1.5px solid var(--border-soft);
  transition: all 0.2s ease;
}

.poll-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poll-thumb-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #0f172a;
  transition: all 0.2s ease;
}

.poll-thumb-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
}

.poll-thumb-btn.active-thumb {
  background: var(--accent, #facc15);
  color: #000000;
  transform: scale(1.1);
}

.poll-img-pct {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
}

.poll-img-caption {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.35;
}

[data-theme="light"] .poll-img-caption {
  color: #0f172a;
}

/* Poll Box Footer */
.poll-box-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  margin-top: 4px;
}

[data-theme="light"] .poll-box-footer {
  border-top-color: #e2e8f0;
}

.poll-meta-left {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.poll-vote-btn {
  background: var(--accent, #facc15);
  color: #000000;
  border: none;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 7px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.4);
}

.poll-vote-btn:hover {
  background: var(--accent-hover, #eab308);
  color: #000000;
  transform: translateY(-1px);
}

.poll-vote-btn.voted {
  background: #0f172a;
  border: 1px solid var(--border);
  color: #10b981;
}

[data-theme="light"] .poll-vote-btn.voted {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #059669;
}

.poll-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.poll-next-link {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary, #cbd5e1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.poll-next-link:hover {
  color: #facc15 !important;
  transform: translateX(3px);
}

[data-theme="light"] .poll-next-link {
  color: #334155;
}

[data-theme="light"] .poll-next-link:hover {
  color: #facc15 !important;
}

@keyframes pollHighlightFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 174, 236, 0);
  }

  30% {
    box-shadow: 0 0 0 4px rgba(0, 174, 236, 0.6);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 174, 236, 0);
  }
}

.poll-highlight-flash {
  animation: pollHighlightFlash 1.5s ease-out;
}

@media (max-width: 640px) {
  .poll-image-wrap {
    height: 170px;
  }

  .poll-question-title {
    font-size: 1.1rem;
  }

  .poll-image-choice-grid {
    grid-template-columns: 1fr;
  }

  .poll-img-box {
    height: 160px;
  }

  .polls-type-pills-row {
    padding-left: 0;
  }
}

/* ===================================================
   Birdchat Dedicated Article View (Matching Image 2)
   =================================================== */

.birdchat-full-view,
.birdchat-article-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
  width: 100%;
}

#birdchatArticleContainer {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 !important;
  box-sizing: border-box;
  width: 100%;
}

.birdchat-page-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 20px 0 20px;
  box-sizing: border-box;
  font-family: inherit;
  width: 100%;
}

/* ===================================================
   BIRDCHAT CATEGORY & WRITER BAR (Matching Image 1 & 4)
   =================================================== */
.birdchat-category-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 4px 0;
  width: 100%;
}

.birdchat-category-bar .article-round-back-btn {
  margin-left: 2px;
  margin-right: 4px;
}

.birdchat-cat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent, #facc15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.4);
}

.birdchat-cat-avatar svg {
  width: 22px;
  height: 22px;
  stroke: #000000;
}

.birdchat-cat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.birdchat-cat-channel-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  line-height: 1.25;
}

[data-theme="light"] .birdchat-cat-channel-name {
  color: #0f172a;
}

.birdchat-cat-channel-meta {
  font-size: 0.84rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.2;
}

.birdchat-cat-author-link {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.birdchat-cat-author-link:hover {
  color: var(--accent, #00aeec);
  text-decoration: underline;
}

[data-theme="light"] .birdchat-cat-channel-meta,
[data-theme="light"] .birdchat-cat-author-link {
  color: #64748b;
}

[data-theme="light"] .birdchat-cat-author-link:hover {
  color: var(--accent, #00aeec);
}

/* Visit Category Page Button (Matching Image 1: Orange pill button with arrow) */
.birdchat-visit-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #000000 !important;
  background: var(--accent, #facc15) !important;
  border: 1px solid var(--accent, #facc15) !important;
  border-radius: var(--radius-pill, 999px);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: auto;
  box-shadow: 0 3px 12px rgba(250, 204, 21, 0.4);
}

.birdchat-visit-cat-btn:hover {
  background: var(--accent-hover, #eab308) !important;
  border-color: var(--accent-hover, #eab308) !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(250, 204, 21, 0.5);
}

.birdchat-visit-cat-btn svg {
  stroke: #000000 !important;
  transition: transform 0.2s ease;
}

.birdchat-visit-cat-btn:hover svg {
  transform: translateX(3px);
}

[data-theme="light"] .birdchat-visit-cat-btn {
  background: var(--accent, #facc15) !important;
  border-color: var(--accent, #facc15) !important;
  color: #000000 !important;
}

.birdchat-cat-more-btn,
.ninegag-more-btn {
  display: none !important;
}

.birdchat-hero-box {
  background: linear-gradient(135deg, #00aeec 0%, #009cd3 100%);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 174, 236, 0.28);
  padding: 28px 42px 24px 28px;
}

/* Scalloped wavy edge on right with white translucent fill */
.birdchat-scallop-strip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4,0 C12,0 18,5.4 18,12 C18,18.6 12,24 4,24 L24,24 L24,0 Z' fill='%23ffffff' fill-opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: right top;
  pointer-events: none;
  z-index: 2;
}

.birdchat-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.birdchat-hero-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Asker Pill (Matching Image 3: White pill with orange circle refresh icon) */
.birdchat-asker-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: var(--radius-pill, 999px);
  padding: 4px 18px 4px 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.birdchat-asker-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.birdchat-asker-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent, #00aeec);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.birdchat-asker-icon svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.birdchat-asker-text {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.birdchat-asker-text strong {
  font-weight: 800;
  color: #0f172a;
}

/* Get Question Note on the side (Matching Image 4) */
.birdchat-get-question-note {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.birdchat-question-form-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.birdchat-question-form-link:hover {
  color: #fde047;
  text-decoration: underline;
}

.birdchat-asker-row {
  display: none;
}

.birdchat-hero-prompt {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.24;
  margin: 0 0 14px 0;
  letter-spacing: -0.02em;
}

.birdchat-hero-summary {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.5;
  margin: 0 0 24px 0;
  font-weight: 500;
  max-width: 820px;
}

.birdchat-hero-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
}

.birdchat-speech-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 900;
}

.birdchat-speech-icon {
  fill: #ffffff;
  width: 26px;
  height: 26px;
}

/* Floating comments badge & Birdchat capsule button */
.article-floating-comments-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 6px 20px 6px 7px;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16), 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  user-select: none;
  -webkit-user-select: none;
  text-decoration: none;
  outline: none;
  font-family: inherit;
}

.article-floating-comments-badge:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.afc-icon-circle {
  width: 36px;
  height: 36px;
  background: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.afc-icon-circle svg {
  display: block;
}

.afc-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.25;
  text-align: left;
}

.afc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.afc-subtitle {
  font-size: 0.76rem;
  font-weight: 400;
  color: #64748b;
  letter-spacing: 0.01em;
}

.birdchat-comments-capsule-btn {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #ffffff !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding: 6px 20px 6px 7px !important;
  color: #0f172a !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16) !important;
}

.birdchat-comments-capsule-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

.ranker-floating-comments-badge {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 15 !important;
}

@media (max-width: 768px) {

  .article-floating-comments-badge,
  .ranker-floating-comments-badge {
    top: 10px !important;
    left: 10px !important;
    padding: 3px 10px 3px 4px !important;
    gap: 6px !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  }

  .article-floating-comments-badge .afc-icon-circle,
  .ranker-floating-comments-badge .afc-icon-circle {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
  }

  .article-floating-comments-badge .afc-icon-circle svg,
  .ranker-floating-comments-badge .afc-icon-circle svg {
    width: 11px !important;
    height: 11px !important;
    stroke-width: 2.2 !important;
  }

  .article-floating-comments-badge .afc-text-block,
  .ranker-floating-comments-badge .afc-text-block {
    line-height: 1.15 !important;
  }

  .article-floating-comments-badge .afc-title,
  .ranker-floating-comments-badge .afc-title {
    font-size: 0.70rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
  }

  .article-floating-comments-badge .afc-subtitle,
  .ranker-floating-comments-badge .afc-subtitle {
    font-size: 0.56rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    margin-top: 1px !important;
  }
}

@media (max-width: 480px) {

  .article-floating-comments-badge,
  .ranker-floating-comments-badge {
    top: 8px !important;
    left: 8px !important;
    padding: 2.5px 8px 2.5px 3.5px !important;
    gap: 5px !important;
  }

  .article-floating-comments-badge .afc-icon-circle,
  .ranker-floating-comments-badge .afc-icon-circle {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }

  .article-floating-comments-badge .afc-icon-circle svg,
  .ranker-floating-comments-badge .afc-icon-circle svg {
    width: 10px !important;
    height: 10px !important;
  }

  .article-floating-comments-badge .afc-title,
  .ranker-floating-comments-badge .afc-title {
    font-size: 0.66rem !important;
  }

  .article-floating-comments-badge .afc-subtitle,
  .ranker-floating-comments-badge .afc-subtitle {
    font-size: 0.52rem !important;
  }
}

.birdchat-share-circles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.birdchat-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  color: #ffffff;
  padding: 0;
  flex-shrink: 0;
}

.birdchat-share-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 8 Circular Social Share Colors (Matching Image 1 & Image 3) */
.birdchat-share-x {
  background-color: #000000;
  color: #ffffff;
}

.birdchat-share-bs {
  background-color: #1185fe;
  color: #ffffff;
}

.birdchat-share-mastodon {
  background-color: #5c4ee5;
  color: #ffffff;
}

.birdchat-share-threads {
  background-color: #000000;
  color: #ffffff;
}

.birdchat-share-fb {
  background-color: #1877f2;
}

.birdchat-share-btn.birdchat-share-fb svg,
.birdchat-share-btn.birdchat-share-reddit svg {
  width: 24px;
  height: 24px;
}

.birdchat-share-btn.birdchat-share-email svg {
  width: 20px;
  height: 20px;
}

.birdchat-share-email {
  background-color: #ea4335;
  color: #ffffff;
}

.birdchat-share-link {
  background-color: #ff5722;
  color: #ffffff;
}

/* In Dark Mode: X and Threads have white circle background and black design (reverse) */
html:not([data-theme="light"]) .birdchat-share-x,
[data-theme="dark"] .birdchat-share-x,
html:not([data-theme="light"]) .birdchat-share-threads,
[data-theme="dark"] .birdchat-share-threads,
html:not([data-theme="light"]) .birdchat-share-btn.birdchat-share-x,
[data-theme="dark"] .birdchat-share-btn.birdchat-share-x,
html:not([data-theme="light"]) .birdchat-share-btn.birdchat-share-threads,
[data-theme="dark"] .birdchat-share-btn.birdchat-share-threads {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #000000 !important;
}

html:not([data-theme="light"]) .birdchat-share-x svg,
[data-theme="dark"] .birdchat-share-x svg,
html:not([data-theme="light"]) .birdchat-share-threads svg,
[data-theme="dark"] .birdchat-share-threads svg,
html:not([data-theme="light"]) .birdchat-share-btn.birdchat-share-x svg,
[data-theme="dark"] .birdchat-share-btn.birdchat-share-x svg,
html:not([data-theme="light"]) .birdchat-share-btn.birdchat-share-threads svg,
[data-theme="dark"] .birdchat-share-btn.birdchat-share-threads svg {
  fill: #000000 !important;
  color: #000000 !important;
}

/* In Light Mode: X and Threads have black circle background and white design */
[data-theme="light"] .birdchat-share-x,
[data-theme="light"] .birdchat-share-threads,
[data-theme="light"] .birdchat-share-btn.birdchat-share-x,
[data-theme="light"] .birdchat-share-btn.birdchat-share-threads {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

[data-theme="light"] .birdchat-share-x svg,
[data-theme="light"] .birdchat-share-threads svg,
[data-theme="light"] .birdchat-share-btn.birdchat-share-x svg,
[data-theme="light"] .birdchat-share-btn.birdchat-share-threads svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* ===================================================
   BIRDCHAT TAGS ROW & ACTION BAR (Matching Image 3)
   =================================================== */
.birdchat-tags-row {
  margin-top: 20px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
}

.ninegag-action-bar,
.birdchat-action-bar,
.poll-action-bar,
.ranker-action-bar {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 10px 0 !important;
  border-top: none !important;
  border-bottom: none !important;
  margin-bottom: 22px !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ninegag-action-bar::-webkit-scrollbar,
.birdchat-action-bar::-webkit-scrollbar,
.poll-action-bar::-webkit-scrollbar,
.ranker-action-bar::-webkit-scrollbar {
  display: none !important;
}

[data-theme="light"] .ninegag-action-bar,
[data-theme="light"] .birdchat-action-bar,
[data-theme="light"] .poll-action-bar,
[data-theme="light"] .ranker-action-bar {
  border-top: none !important;
  border-bottom: none !important;
}

.ninegag-action-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

.ninegag-action-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: 0 !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

.ninegag-vote-pill,
.ninegag-action-btn {
  flex-shrink: 0 !important;
}

.ninegag-vote-btn.vote-up-btn,
.ninegag-vote-btn.ninegag-vote-up {
  color: var(--accent, #facc15) !important;
}

.ninegag-coffee-btn,
.ninegag-save-btn {
  border-radius: 9999px !important;
  padding: 0 16px !important;
}

/* Small Google button for Birdchat, Polls matching Ranker */
.birdchat-action-bar .ninegag-action-btn.ninegag-google-btn,
.birdchat-page-wrapper .ninegag-action-btn.ninegag-google-btn,
[id^="birdchatGoogleBtn-"],
.poll-action-bar .ninegag-action-btn.ninegag-google-btn,
#pollGoogleBtn,
.ranker-footer-card .ninegag-action-btn.ninegag-google-btn {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 0.78rem !important;
  gap: 6px !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.birdchat-action-bar .ninegag-action-btn.ninegag-google-btn .google-btn-icon-circle,
.birdchat-page-wrapper .ninegag-action-btn.ninegag-google-btn .google-btn-icon-circle,
[id^="birdchatGoogleBtn-"] .google-btn-icon-circle,
.poll-action-bar .ninegag-action-btn.ninegag-google-btn .google-btn-icon-circle,
#pollGoogleBtn .google-btn-icon-circle,
.ranker-footer-card .ninegag-action-btn.ninegag-google-btn .google-btn-icon-circle {
  width: 18px !important;
  height: 18px !important;
}

/* Birdchat Google button text responsiveness — prevents cutting off on all viewports */
.birdchat-action-bar .ninegag-google-text-full,
[id^="birdchatGoogleBtn-"] .ninegag-google-text-full {
  display: none !important;
}

.birdchat-action-bar .ninegag-google-text-short,
[id^="birdchatGoogleBtn-"] .ninegag-google-text-short {
  display: inline !important;
}

@media (min-width: 1440px) {

  .birdchat-action-bar .ninegag-google-text-full,
  [id^="birdchatGoogleBtn-"] .ninegag-google-text-full {
    display: inline !important;
  }

  .birdchat-action-bar .ninegag-google-text-short,
  [id^="birdchatGoogleBtn-"] .ninegag-google-text-short {
    display: none !important;
  }
}

.birdchat-action-bar {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
}

.birdchat-action-bar .ninegag-action-left {
  flex-wrap: wrap !important;
  max-width: 100% !important;
}

/* When Saved: Image 4 Specification (Yellow border, Yellow filled bookmark ribbon, Yellow Saved text) */
.ninegag-save-btn.active-saved,
.card-save-btn.active-saved,
.card-action-btn.card-save-btn.active-saved {
  background: rgba(250, 204, 21, 0.06) !important;
  border: 1.5px solid #facc15 !important;
  color: #facc15 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25) !important;
}

[data-theme="light"] .ninegag-save-btn.active-saved,
[data-theme="light"] .card-save-btn.active-saved,
[data-theme="light"] .card-action-btn.card-save-btn.active-saved {
  background: rgba(234, 179, 8, 0.1) !important;
  border: 1.5px solid #ca8a04 !important;
  color: #a16207 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 8px rgba(202, 138, 4, 0.2) !important;
}

.ninegag-save-btn.active-saved:hover,
.card-save-btn.active-saved:hover,
.card-action-btn.card-save-btn.active-saved:hover {
  background: rgba(250, 204, 21, 0.12) !important;
  border-color: #fde047 !important;
  color: #facc15 !important;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.4) !important;
  transform: translateY(-1px) !important;
}

.ninegag-save-btn.active-saved svg,
.card-save-btn.active-saved svg,
.card-action-btn.card-save-btn.active-saved svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

[data-theme="light"] .ninegag-save-btn.active-saved svg,
[data-theme="light"] .card-save-btn.active-saved svg,
[data-theme="light"] .card-action-btn.card-save-btn.active-saved svg {
  fill: #ca8a04 !important;
  stroke: #ca8a04 !important;
}

/* ===================================================
   BIRDCHAT COMMENTS SECTION (Matching Image 1)
   =================================================== */
.birdchat-comments-section {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #f1f5f9;
}

[data-theme="light"] .birdchat-comments-section {
  color: #0f172a;
}

/* 1. Header Row (Hot comments v & Guidelines subtitle) */
.birdchat-hot-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.birdchat-hot-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.birdchat-sort-menu-wrap {
  position: relative;
  display: inline-block;
}

.birdchat-hot-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: opacity 0.15s;
}

[data-theme="light"] .birdchat-hot-dropdown-btn {
  color: #0f172a;
}

.birdchat-hot-dropdown-btn:hover {
  opacity: 0.85;
}

.birdchat-hot-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.birdchat-chevron-icon {
  color: #94a3b8;
}

.birdchat-sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #181c24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  z-index: 100;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-theme="light"] .birdchat-sort-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.birdchat-sort-item {
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

[data-theme="light"] .birdchat-sort-item {
  color: #475569;
}

.birdchat-sort-item:hover,
.birdchat-sort-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

[data-theme="light"] .birdchat-sort-item:hover,
[data-theme="light"] .birdchat-sort-item.active {
  background: #f1f5f9;
  color: #0f172a;
}

.birdchat-guidelines-subtitle {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

[data-theme="light"] .birdchat-guidelines-subtitle {
  color: #64748b;
}

.birdchat-guidelines-link {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  font-weight: 600;
  cursor: pointer;
  transition: text-decoration 0.15s, color 0.15s;
}

[data-theme="light"] .birdchat-guidelines-link {
  color: #facc15 !important;
  text-decoration-color: #facc15 !important;
}

.birdchat-guidelines-link:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
  text-decoration-color: #eab308 !important;
}

/* 2. Composer Box (Avatar with status dot + Leave a comment) */
.birdchat-composer-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 4px;
  margin-bottom: 32px;
}

.birdchat-avatar-with-status {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.birdchat-composer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.birdchat-online-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
  border: 2px solid #000000;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

[data-theme="light"] .birdchat-online-dot {
  border-color: #ffffff;
}

.birdchat-composer-card {
  flex: 1;
  min-width: 0;
  background: #11141b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 18px 12px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

[data-theme="light"] .birdchat-composer-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.birdchat-composer-card:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .birdchat-composer-card:focus-within {
  border-color: #94a3b8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.birdchat-composer-input {
  width: 100%;
  min-height: 48px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  font-family: inherit;
  font-size: 0.96rem;
  line-height: 1.45;
  color: #f1f5f9;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

[data-theme="light"] .birdchat-composer-input {
  color: #0f172a;
}

.birdchat-composer-input::placeholder {
  color: #64748b;
}

/* Image preview in composer */
.birdchat-attached-preview {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.birdchat-preview-img {
  max-width: 160px;
  max-height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.birdchat-remove-pic-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
}

.birdchat-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

[data-theme="light"] .birdchat-composer-toolbar {
  border-top-color: #f1f5f9;
}

.birdchat-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.birdchat-add-picture-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

[data-theme="light"] .birdchat-add-picture-btn {
  color: #64748b;
}

.birdchat-add-picture-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .birdchat-add-picture-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.birdchat-format-hint {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.birdchat-post-btn {
  background: #622e28;
  /* Subdued terracotta red from Image 1 */
  color: #f8fafc;
  border: none;
  border-radius: 9999px;
  padding: 7px 22px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.birdchat-post-btn:hover {
  background: #009cd3;
  color: #ffffff;
  transform: translateY(-1px);
}

/* 3. Comments Stream & Top-Level Parent Comment */
.birdchat-comments-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.birdchat-comment-item {
  display: flex;
  flex-direction: column;
}

.birdchat-parent-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.birdchat-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
}

.birdchat-content-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.birdchat-author-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.birdchat-author-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.15s;
}

[data-theme="light"] .birdchat-author-name {
  color: #0f172a;
}

.birdchat-author-name:hover {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

.birdchat-time-tag {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.birdchat-comment-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e2e8f0;
  margin: 5px 0 10px 0;
  word-break: break-word;
}

[data-theme="light"] .birdchat-comment-text {
  color: #1e293b;
}

.birdchat-comment-attached-img-wrap {
  margin: 6px 0 10px 0;
}

.birdchat-comment-attached-img {
  max-width: 320px;
  max-height: 240px;
  border-radius: 10px;
  object-fit: cover;
}

.birdchat-actions-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}

.birdchat-action-reply {
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

[data-theme="light"] .birdchat-action-reply {
  color: #64748b;
}

.birdchat-action-reply:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-action-reply:hover {
  color: #0f172a;
}

.birdchat-vote-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.birdchat-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

[data-theme="light"] .birdchat-vote-btn {
  color: #64748b;
}

.birdchat-vote-btn:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-vote-btn:hover {
  color: #0f172a;
}

.birdchat-vote-btn.vote-up.active,
.birdchat-vote-btn.vote-up:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-vote-btn.vote-up.active,
[data-theme="light"] .birdchat-vote-btn.vote-up:hover {
  color: #000000;
}

.birdchat-vote-btn.vote-down.active,
.birdchat-vote-btn.vote-down:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-vote-btn.vote-down.active,
[data-theme="light"] .birdchat-vote-btn.vote-down:hover {
  color: #000000;
}

.birdchat-vote-count {
  font-size: 0.84rem;
}

.birdchat-more-dots {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0 4px;
  margin-left: auto;
  line-height: 1;
  transition: color 0.15s;
}

.birdchat-more-dots:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-more-dots:hover {
  color: #0f172a;
}

/* Inline subreply composer */
.birdchat-inline-reply-box {
  margin-top: 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.birdchat-inline-reply-input {
  width: 100%;
  background: #11141b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #f1f5f9;
  outline: none;
  box-sizing: border-box;
}

[data-theme="light"] .birdchat-inline-reply-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.birdchat-inline-reply-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.birdchat-reply-cancel-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 6px;
}

.birdchat-reply-submit-btn {
  background: var(--accent, #facc15);
  color: #000000;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  padding: 5px 16px;
  border-radius: 9999px;
  transition: background 0.15s;
}

.birdchat-reply-submit-btn:hover {
  background: #009cd3;
}

/* 4. Nested Replies & Curved Branching Tree Line (Matching Image 1) */
.birdchat-replies-wrap {
  margin-top: 8px;
}

.birdchat-hide-replies-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #facc15 !important;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
  margin-bottom: 4px;
  transition: opacity 0.15s;
}

[data-theme="light"] .birdchat-hide-replies-btn {
  color: #facc15 !important;
}

.birdchat-hide-replies-btn:hover {
  opacity: 0.85;
}

.birdchat-replies-tree {
  position: relative;
  margin-left: 6px;
  padding-left: 32px;
  margin-top: 6px;
}

/* Continuous vertical starter line under Hide replies */
.birdchat-replies-tree::before {
  content: '';
  position: absolute;
  left: 6px;
  top: -6px;
  height: 10px;
  width: 2px;
  background: #384252;
  pointer-events: none;
}

[data-theme="light"] .birdchat-replies-tree::before {
  background: #cbd5e1;
}

/* Each reply item */
.birdchat-reply-item {
  position: relative;
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
}

.birdchat-reply-item:first-child {
  margin-top: 4px;
}

/* Curved connector branching off the trunk smoothly into reply avatar */
.birdchat-branch-curve {
  position: absolute;
  left: -26px;
  top: -12px;
  width: 26px;
  height: 29px;
  /* Curves to y=17px, exact vertical center of 34px avatar */
  border-left: 2px solid #384252;
  border-bottom: 2px solid #384252;
  border-bottom-left-radius: 12px;
  pointer-events: none;
  box-sizing: border-box;
}

[data-theme="light"] .birdchat-branch-curve {
  border-color: #cbd5e1;
}

/* Vertical continuing trunk between replies - terminates cleanly at the last reply without dangling! */
.birdchat-reply-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -26px;
  top: 17px;
  bottom: -16px;
  width: 2px;
  background: #384252;
  pointer-events: none;
}

[data-theme="light"] .birdchat-reply-item:not(:last-child)::after {
  background: #cbd5e1;
}

.birdchat-reply-content-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.birdchat-reply-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: #1e293b;
}

.birdchat-reply-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.birdchat-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.birdchat-reply-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.15s;
}

[data-theme="light"] .birdchat-reply-author {
  color: #0f172a;
}

.birdchat-reply-author:hover {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

.birdchat-reply-dot {
  color: #64748b;
  font-size: 0.75rem;
}

.birdchat-reply-time {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.birdchat-reply-more-dots {
  margin-left: auto;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.birdchat-reply-more-dots:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-reply-more-dots:hover {
  color: #0f172a;
}

.birdchat-reply-text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #e2e8f0;
  margin: 4px 0 8px 0;
  word-break: break-word;
}

[data-theme="light"] .birdchat-reply-text {
  color: #1e293b;
}

.birdchat-reply-actions-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
}

.birdchat-action-reply-nested {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

[data-theme="light"] .birdchat-action-reply-nested {
  color: #64748b;
}

.birdchat-action-reply-nested:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-action-reply-nested:hover {
  color: #0f172a;
}

/* Shake error animation */
@keyframes birdchatShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.shake-error {
  animation: birdchatShake 0.4s ease;
  border-color: #ef4444 !important;
}

/* ===================================================
   Supertag Component (Matching Image 4 on Top of Story Card)
   =================================================== */

.supertag-wrapper {
  display: none !important;
  margin-bottom: 0 !important;
  position: relative;
}

.supertag-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.supertag-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c8102e;
  /* Vibrant crimson red from Image 4 */
  border: none;
  border-radius: 9999px;
  padding: 5px 18px 5px 5px;
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.32);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  max-width: 100%;
}

.supertag-pill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.5);
  background: #b7001c;
}

.supertag-pill:hover .supertag-icon-circle svg {
  transform: rotate(180deg);
  transition: transform 0.4s ease;
}

.supertag-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8102e;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.supertag-icon-circle svg {
  transition: transform 0.4s ease;
}

.supertag-text {
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── FOUC / Refresh Glitch Prevention ── */
html.bp-has-user #myAccountBtn:not(.bp-hydrated) .profile-name,
html.bp-has-user #myAccountBtn:not(.bp-hydrated) .profile-handle,
html.bp-has-user #myAccountBtn:not(.bp-hydrated) .profile-avatar>svg,
html.bp-has-user #headerProfileBtn:not(.bp-hydrated) .profile-avatar>svg {
  visibility: hidden !important;
}

html.bp-visitor-page .user-profile-header:not(.bp-hydrated) #userDisplayName,
html.bp-visitor-page .user-profile-header:not(.bp-hydrated) #userHandleTag,
html.bp-visitor-page .user-profile-header:not(.bp-hydrated) #userAvatarCircle,
html.bp-visitor-page .user-profile-header:not(.bp-hydrated) #userBioHeadline,
html.bp-visitor-page .user-profile-header:not(.bp-hydrated) #userBioDesc,
html.bp-visitor-page .user-feed-panel:not(.bp-hydrated) .news-card,
html.bp-visitor-page .user-feed-panel:not(.bp-hydrated) .post-compact-card {
  visibility: hidden !important;
}

/* ===================================================
   DELETE COMMENT CONFIRMATION MODAL (Matching Image 2)
   =================================================== */

.bp-delete-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  padding: 16px;
  box-sizing: border-box;
}

.bp-delete-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bp-delete-modal-card {
  background: #282828;
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  padding: 24px 24px 18px 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  transform: scale(0.93) translateY(6px);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.bp-delete-modal-overlay.active .bp-delete-modal-card {
  transform: scale(1) translateY(0);
}

[data-theme="light"] .bp-delete-modal-card {
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.bp-delete-modal-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

[data-theme="light"] .bp-delete-modal-title {
  color: #0f172a;
}

.bp-delete-modal-desc {
  font-size: 0.96rem;
  color: #9e9e9e;
  margin: 0 0 28px 0;
  line-height: 1.45;
  font-weight: 400;
}

[data-theme="light"] .bp-delete-modal-desc {
  color: #64748b;
}

.bp-delete-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.bp-delete-modal-btn {
  background: transparent;
  border: none;
  color: #3ea6ff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  line-height: 1.2;
  user-select: none;
}

.bp-delete-modal-btn:hover {
  background: rgba(62, 166, 255, 0.12);
}

[data-theme="light"] .bp-delete-modal-btn {
  color: #0284c7;
}

[data-theme="light"] .bp-delete-modal-btn:hover {
  background: rgba(2, 132, 199, 0.08);
}

/* ── Community Report Confirmation Modal (Image 2) ────────────────────────── */
.bp-report-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
  box-sizing: border-box;
}

.bp-report-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bp-report-modal-card {
  background: #212121;
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  padding: 24px 28px 28px 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  transform: scale(0.93) translateY(8px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  color: #f1f1f1;
}

.bp-report-modal-overlay.active .bp-report-modal-card {
  transform: scale(1) translateY(0);
}

[data-theme="light"] .bp-report-modal-card {
  background: #ffffff;
  color: #0f0f0f;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.bp-report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bp-report-modal-title {
  font-size: 1.32rem;
  font-weight: 700;
  color: #f1f1f1;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

[data-theme="light"] .bp-report-modal-title {
  color: #0f0f0f;
}

.bp-report-modal-close {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1f1f1;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bp-report-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

[data-theme="light"] .bp-report-modal-close {
  color: #0f0f0f;
}

[data-theme="light"] .bp-report-modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.bp-report-illustration-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px auto;
  text-align: center;
  width: 100%;
}

.bp-report-illustration-img {
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.bp-report-content {
  display: flex;
  flex-direction: column;
}

.bp-report-community-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f1f1;
  margin: 0 0 12px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

[data-theme="light"] .bp-report-community-title {
  color: #0f0f0f;
}

.bp-report-desc {
  font-size: 0.94rem;
  color: #aaaaaa;
  margin: 0 0 12px 0;
  line-height: 1.5;
  font-weight: 400;
}

[data-theme="light"] .bp-report-desc {
  color: #606060;
}

.bp-report-expect-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f1f1;
  margin: 24px 0 14px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

[data-theme="light"] .bp-report-expect-title {
  color: #0f0f0f;
}

.bp-report-expect-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.bp-report-expect-icon {
  flex-shrink: 0;
  color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

[data-theme="light"] .bp-report-expect-icon {
  color: #0f0f0f;
}

.bp-report-expect-text {
  font-size: 0.94rem;
  color: #aaaaaa;
  line-height: 1.5;
  margin: 0;
}

[data-theme="light"] .bp-report-expect-text {
  color: #606060;
}

.bp-report-actions {
  display: flex;
  width: 100%;
}

.bp-report-ok-btn {
  width: 100%;
  height: 44px;
  border-radius: 9999px;
  background: #f1f1f1;
  color: #0f0f0f;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.bp-report-ok-btn:hover {
  background: #ffffff;
}

.bp-report-ok-btn:active {
  transform: scale(0.985);
}

[data-theme="light"] .bp-report-ok-btn {
  background: #0f0f0f;
  color: #ffffff;
}

[data-theme="light"] .bp-report-ok-btn:hover {
  background: #272727;
}

/* ── Report Submitted Notification Popup ────────────────────────── */
.bp-report-submitted-popup {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1f2227;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 12px 20px 12px 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 100000;
  opacity: 0;
  pointer-events: auto;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  max-width: 92vw;
  font-family: inherit;
}

.bp-report-submitted-popup.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

[data-theme="light"] .bp-report-submitted-popup {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.bp-report-popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bp-report-popup-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.bp-report-popup-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

[data-theme="light"] .bp-report-popup-title {
  color: #0f172a;
}

.bp-report-popup-sub {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.25;
}

[data-theme="light"] .bp-report-popup-sub {
  color: #64748b;
}

.bp-report-popup-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px;
  margin-left: 4px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.bp-report-popup-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .bp-report-popup-close {
  color: #64748b;
}

[data-theme="light"] .bp-report-popup-close:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

/* Circular Back to Feed Button (Matching User Reference Image) */
.article-round-back-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: #232730;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  padding: 0;
  margin-right: 2px;
}

.article-round-back-btn:hover {
  background: #313642;
  transform: translateX(-2px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.article-round-back-btn:active {
  transform: scale(0.92);
}

.article-round-back-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2.4;
  display: block;
}

[data-theme="light"] .article-round-back-btn {
  background: #f1f3f7;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

[data-theme="light"] .article-round-back-btn:hover {
  background: #e2e5eb;
  border-color: rgba(0, 0, 0, 0.18);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===================================================
   RANKER COMBINED LAYOUT OVERRIDE
   =================================================== */
.ranker-cards-list,
.ranker-vertical-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Individual Item inside unified card - NO GAPS! */
/* Individual Item inside unified card */
.ranker-card-item {
  display: block !important;
  position: relative !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  z-index: 1 !important;
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    border-radius 0.2s ease !important;
  cursor: pointer !important;
}

[data-theme="dark"] .ranker-card-item {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

/* Floating hover state for tab/card */
.ranker-card-item:hover:not(.is-expanded) {
  transform: translateY(-4px) !important;
  z-index: 10 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.12), 0 6px 14px -2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .ranker-card-item:hover:not(.is-expanded) {
  background: #1a2232 !important;
  border-color: transparent !important;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 6px 16px -2px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

/* Active / Expanded State */
.ranker-card-item.is-expanded {
  background: rgba(255, 255, 255, 0.035) !important;
  cursor: default !important;
}

[data-theme="light"] .ranker-card-item.is-expanded {
  background: #f8fafc !important;
}

/* Compact view inside item */
.ranker-compact-view {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 16px 24px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  transition: background 0.15s ease !important;
}

.ranker-card-item.is-expanded .ranker-compact-view {
  display: none !important;
}

/* Expanded Reader view inside item (Image 2 layout) */
.ranker-expanded-view {
  display: none !important;
  padding: 24px 28px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  animation: rankerFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ranker-card-item.is-expanded .ranker-expanded-view {
  display: block !important;
}

@keyframes rankerFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Expanded Header */
.ranker-expanded-header {
  margin-bottom: 18px !important;
}

.ranker-expanded-badge-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  flex-wrap: wrap !important;
}

.ranker-expanded-cat-label {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.02em !important;
}

[data-theme="light"] .ranker-expanded-cat-label {
  color: #64748b !important;
}

.ranker-expanded-title {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
  color: #ffffff !important;
}

[data-theme="light"] .ranker-expanded-title {
  color: #0f172a !important;
}

/* Expanded 16:9 Media Banner (Matching Image 2) */
.ranker-expanded-media {
  margin-bottom: 22px !important;
  width: 100% !important;
}

.ranker-banner-frame {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 440px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #0f172a !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}

.ranker-banner-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.ranker-banner-frame:hover .ranker-banner-image {
  transform: scale(1.02) !important;
}

/* Video Player Overlay (Image 2 style) */
.ranker-media-video-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.4) 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 16px 18px !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

.ranker-media-top-bar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ranker-media-badge-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #ffffff !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.ranker-media-play-btn {
  align-self: center !important;
  margin: auto !important;
  width: 62px !important;
  height: 42px !important;
  background: #ef4444 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}

.ranker-media-play-btn:hover {
  transform: scale(1.1) !important;
  background: #dc2626 !important;
}

/* Expanded Story Paragraphs (Image 2 style) */
.ranker-expanded-story-body {
  margin-bottom: 22px !important;
}

.ranker-story-p {
  font-size: 1.05rem !important;
  line-height: 1.76 !important;
  color: #cbd5e1 !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.005em !important;
}

.ranker-story-p:first-of-type {
  font-size: 1.08rem !important;
  color: #f1f5f9 !important;
  font-weight: 500 !important;
}

.ranker-story-p:last-of-type {
  margin-bottom: 0 !important;
}

[data-theme="light"] .ranker-story-p {
  color: #334155 !important;
}

[data-theme="light"] .ranker-story-p:first-of-type {
  color: #0f172a !important;
}

/* Expanded Bottom Action Bar */
.ranker-expanded-action-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 18px !important;
  margin-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

[data-theme="light"] .ranker-expanded-action-bar {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

.ranker-expanded-vote-section {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.ranker-expanded-vote-tally {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.ranker-expanded-vote-tally .ranker-live-vote-num {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
}

[data-theme="light"] .ranker-expanded-vote-tally .ranker-live-vote-num {
  color: #0f172a !important;
}

.ranker-vote-unit {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.08em !important;
}

.ranker-active-reading-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.1) !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

[data-theme="light"] .ranker-active-reading-badge {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.2) !important;
}

.ranker-active-pulse-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #38bdf8 !important;
  box-shadow: 0 0 8px #38bdf8 !important;
  animation: rankerPulse 1.8s infinite ease-in-out !important;
}

@keyframes rankerPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

/* 1. Left Rank Column (Trophy Badges - Image 3 Style) */
.ranker-rank-tab,
.ranker-wreath-col {
  width: 64px !important;
  min-width: 64px !important;
  height: auto !important;
  min-height: unset !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  transition: none !important;
}

/* Trophy Icon */
.ranker-trophy-icon {
  width: 15px !important;
  height: 15px !important;
  stroke: #22c55e !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
  transition: transform 0.2s ease !important;
}

.ranker-card-item:hover .ranker-trophy-icon {
  transform: scale(1.1) !important;
}

/* Rank Number */
.ranker-rank-num {
  font-family: var(--font, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  display: inline-block !important;
}

/* Rank Pills: Filled Background with White Icons & Text */
.ranker-rank-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 4px 11px !important;
  height: 30px !important;
  box-sizing: border-box !important;
  border-radius: 9999px !important;
  border: 1px solid transparent !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ranker-rank-pill .ranker-trophy-icon {
  stroke: #ffffff !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.ranker-rank-pill .ranker-rank-num {
  font-family: var(--font, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
}

/* Rank 1: Gold Pill */
.ranker-rank-pill.rank-pill-gold,
.rank-1 .ranker-rank-pill {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border-color: rgba(254, 240, 138, 0.45) !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
}

.ranker-card-item:hover .ranker-rank-pill.rank-pill-gold,
.ranker-card-item:hover .rank-1 .ranker-rank-pill {
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55) !important;
  transform: scale(1.05) !important;
}

/* Rank 2: Silver Pill */
.ranker-rank-pill.rank-pill-silver,
.rank-2 .ranker-rank-pill {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
  border-color: rgba(241, 245, 249, 0.45) !important;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.35) !important;
}

.ranker-card-item:hover .ranker-rank-pill.rank-pill-silver,
.ranker-card-item:hover .rank-2 .ranker-rank-pill {
  box-shadow: 0 4px 14px rgba(100, 116, 139, 0.55) !important;
  transform: scale(1.05) !important;
}

/* Rank 3: Bronze Pill */
.ranker-rank-pill.rank-pill-bronze,
.rank-3 .ranker-rank-pill {
  background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%) !important;
  border-color: rgba(254, 215, 170, 0.4) !important;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.35) !important;
}

.ranker-card-item:hover .ranker-rank-pill.rank-pill-bronze,
.ranker-card-item:hover .rank-3 .ranker-rank-pill {
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.55) !important;
  transform: scale(1.05) !important;
}

/* Ranks 4+: Default Slate Filled Pill */
.ranker-rank-pill.rank-pill-default,
.tier-default .ranker-rank-pill,
.ranker-rank-plain {
  background: #334155 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.ranker-card-item:hover .ranker-rank-pill.rank-pill-default,
.ranker-card-item:hover .tier-default .ranker-rank-pill {
  background: #3e4c5e !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35) !important;
  transform: scale(1.05) !important;
}

/* Light Mode Styling - retain white icons and numbers on solid filled backgrounds */
[data-theme="light"] .ranker-rank-tab,
[data-theme="light"] .ranker-wreath-col {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="light"] .ranker-rank-pill .ranker-trophy-icon {
  stroke: #ffffff !important;
}

[data-theme="light"] .ranker-rank-pill .ranker-rank-num {
  color: #ffffff !important;
}

[data-theme="light"] .ranker-rank-pill.rank-pill-default,
[data-theme="light"] .tier-default .ranker-rank-pill {
  background: #64748b !important;
  border-color: #475569 !important;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25) !important;
}

[data-theme="light"] .ranker-card-item:hover .ranker-rank-pill.rank-pill-default,
[data-theme="light"] .ranker-card-item:hover .tier-default .ranker-rank-pill {
  background: #475569 !important;
  border-color: #334155 !important;
}

/* Legacy classes reset */
.ranker-wreath-badge,
.ranker-plain-num {
  display: none !important;
}

/* Hide legacy elements */
.ranker-scallop-strip,
.ranker-card-item::after,
.ranker-gold-badge {
  display: none !important;
}

/* 2. Square Thumbnail on Left */
.ranker-thumb-wrap {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #f1f5f9 !important;
  position: relative !important;
}

[data-theme="dark"] .ranker-thumb-wrap {
  background: #1e293b !important;
}

.ranker-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 14px !important;
  transition: transform 0.3s ease !important;
}

.ranker-card-item:hover .ranker-thumb-img {
  transform: scale(1.05) !important;
}

/* 3. Center Content Column */
.ranker-content-col {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  justify-content: center !important;
}

.ranker-meta-top-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-bottom: 2px !important;
}

/* RISING / FALLING Badge */
.ranker-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  line-height: 1.3 !important;
}

.ranker-status-badge.rising {
  background: #2563eb !important;
  color: #ffffff !important;
}

.ranker-status-badge.falling {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.ranker-subtitle-text {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  letter-spacing: 0.01em !important;
}

[data-theme="dark"] .ranker-subtitle-text {
  color: #94a3b8 !important;
}

/* Card Title: #Rank in coral/accent + Title */
.ranker-card-title {
  margin: 0 !important;
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  line-height: 1.32 !important;
  letter-spacing: -0.015em !important;
  color: #0f172a !important;
}

[data-theme="dark"] .ranker-card-title {
  color: #f8fafc !important;
}

.ranker-card-rank-num {
  color: #00aeec !important;
  font-weight: 900 !important;
  margin-right: 3px !important;
}

[data-theme="dark"] .ranker-card-rank-num {
  color: #ff7849 !important;
}

.ranker-card-title-text {
  color: inherit !important;
}

/* Story Description */
.ranker-card-desc {
  margin: 2px 0 6px !important;
  font-size: 0.88rem !important;
  line-height: 1.52 !important;
  color: #475569 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

[data-theme="dark"] .ranker-card-desc {
  color: #cbd5e1 !important;
}

/* Category / Specs Tags (Orange/Coral Theme - Image 2) */
.ranker-tags-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-top: 2px !important;
}

/* Hide Tags Row inside Ranker Cards */
.ranker-tags-row {
  display: none !important;
}

.ranker-pill-tag {
  display: none !important;
}

/* 4. Right Voting Column */
.ranker-vote-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  position: relative !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
}

/* "Vote for this!" Tooltip Badge (Removed) */
.ranker-vote-tooltip {
  display: none !important;
}

.ranker-vote-btn-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Symmetric Circular Vote Buttons (Up & Down Arrows) */
.ranker-vote-circle-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0 !important;
  outline: none !important;
}

.ranker-vote-circle-btn svg {
  display: block !important;
  transition: transform 0.2s ease !important;
}

/* Upvote Hover & Active */
.ranker-vote-circle-btn.ranker-btn-up:hover {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: #22c55e !important;
  color: #22c55e !important;
  transform: scale(1.08) !important;
}

.ranker-vote-circle-btn.ranker-btn-up:hover svg {
  transform: translateY(-2px) !important;
}

.ranker-vote-circle-btn.ranker-btn-up.active-up {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.5) !important;
  transform: scale(1.05) !important;
}

/* Downvote Hover & Active */
.ranker-vote-circle-btn.ranker-btn-down:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  transform: scale(1.08) !important;
}

.ranker-vote-circle-btn.ranker-btn-down:hover svg {
  transform: translateY(2px) !important;
}

.ranker-vote-circle-btn.ranker-btn-down.active-down {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5) !important;
  transform: scale(1.05) !important;
}

/* Light Mode Vote Buttons */
[data-theme="light"] .ranker-vote-circle-btn {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

[data-theme="light"] .ranker-vote-circle-btn.ranker-btn-up:hover {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: #16a34a !important;
  color: #16a34a !important;
}

[data-theme="light"] .ranker-vote-circle-btn.ranker-btn-up.active-up {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.35) !important;
}

[data-theme="light"] .ranker-vote-circle-btn.ranker-btn-down:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}

[data-theme="light"] .ranker-vote-circle-btn.ranker-btn-down.active-down {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35) !important;
}

/* Subtle Downvote Button reset */
.ranker-downvote-subtle-btn {
  display: none !important;
}

/* Live Vote Count */
.ranker-vote-num-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #cbd5e1 !important;
  line-height: 1 !important;
  margin-top: 2px !important;
  letter-spacing: -0.01em !important;
  font-family: var(--font, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
}

[data-theme="dark"] .ranker-vote-num-wrap {
  color: #cbd5e1 !important;
}

[data-theme="light"] .ranker-vote-num-wrap {
  color: #0f172a !important;
}

.ranker-live-vote-num {
  font-weight: 800 !important;
  font-size: 0.92rem !important;
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .ranker-card-item {
    padding: 12px 12px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  .ranker-rank-tab,
  .ranker-wreath-col {
    width: 50px !important;
    min-width: 50px !important;
    height: auto !important;
    min-height: unset !important;
  }

  .ranker-rank-pill {
    padding: 3px 8px !important;
    gap: 5px !important;
    height: 26px !important;
  }

  .ranker-rank-plain {
    gap: 5px !important;
    height: 26px !important;
  }

  .ranker-trophy-icon {
    width: 13px !important;
    height: 13px !important;
  }

  .ranker-rank-num {
    font-size: 0.85rem !important;
  }

  .ranker-thumb-wrap {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    border-radius: 10px !important;
  }

  .ranker-thumb-img {
    border-radius: 10px !important;
  }

  .ranker-card-title {
    font-size: 1.02rem !important;
  }

  .ranker-card-desc {
    font-size: 0.82rem !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  .ranker-vote-circle-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .ranker-vote-circle-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  .ranker-vote-btn-group {
    gap: 5px !important;
  }

  .ranker-live-vote-num {
    font-size: 0.8rem !important;
  }

  .ranker-vote-tooltip {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   CRISP NORMAL VERIFIED TICK (No floating, No glow)
   ═══════════════════════════════════════════════════════════ */
.user-verified-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 6px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
}

.amazing-verified-tick {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
  filter: none !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
  transition: opacity 0.15s ease;
}

.user-verified-badge:hover .amazing-verified-tick {
  opacity: 0.88;
  filter: none !important;
  transform: none !important;
}

.verified-tooltip-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  bottom: auto;
  transform: translateY(-4px);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 6px 12px;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}

.verified-tooltip-popover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  top: auto;
  left: 3px;
  border-width: 7px;
  border-style: solid;
  border-color: transparent transparent rgba(255, 255, 255, 0.16) transparent;
  pointer-events: none;
}

.verified-tooltip-popover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  top: auto;
  left: 4px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #0f172a transparent;
  pointer-events: none;
}

.user-verified-badge.active .verified-tooltip-popover,
.user-verified-badge:hover .verified-tooltip-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.verified-tooltip-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.verified-tooltip-title .mini-tick-icon {
  width: 14px;
  height: 14px;
  color: #00aeec;
  display: inline-block;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   VERIFIED ROLE TAG AFTER THE TICK (e.g. Editor in Chief)
   ═══════════════════════════════════════════════════════════ */
.user-verified-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: middle;
  background: rgba(0, 174, 236, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 174, 236, 0.32);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.user-verified-tag.staff {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}

.user-verified-tag.gold,
.user-verified-tag.vip {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

[data-theme="light"] .user-verified-tag,
html[data-theme="light"] .user-verified-tag {
  background: rgba(0, 174, 236, 0.08);
  color: #0284c7;
  border-color: rgba(0, 174, 236, 0.28);
}

[data-theme="light"] .user-verified-tag.staff,
html[data-theme="light"] .user-verified-tag.staff {
  background: rgba(147, 51, 234, 0.08);
  color: #7e22ce;
  border-color: rgba(147, 51, 234, 0.28);
}

[data-theme="light"] .user-verified-tag.gold,
[data-theme="light"] .user-verified-tag.vip,
html[data-theme="light"] .user-verified-tag.gold,
html[data-theme="light"] .user-verified-tag.vip {
  background: rgba(217, 119, 6, 0.09);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.28);
}

html[data-theme="light"] .verified-tooltip-popover {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .verified-tooltip-popover::before {
  border-color: transparent transparent rgba(0, 0, 0, 0.12) transparent;
}

html[data-theme="light"] .verified-tooltip-popover::after {
  border-color: transparent transparent #ffffff transparent;
}

html[data-theme="light"] .verified-tooltip-title {
  color: #0f172a;
}

html[data-theme="light"] .verified-tooltip-sub {
  color: #64748b;
}

/* Mobile Alignment for Verified Tooltip (prevent off-screen clipping) */
@media (max-width: 768px) {
  .user-verified-badge .verified-tooltip-popover {
    left: auto !important;
    right: -8px !important;
    transform: none !important;
    max-width: calc(100vw - 32px) !important;
  }

  .user-verified-badge .verified-tooltip-popover::before {
    left: auto !important;
    right: 14px !important;
  }

  .user-verified-badge .verified-tooltip-popover::after {
    left: auto !important;
    right: 15px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL VERIFIED SLUG POPOVER (Interactive across entire site)
   ═══════════════════════════════════════════════════════════ */
#globalVerifiedSlugPopover {
  position: fixed;
  z-index: 999999;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100vw - 24px);
  user-select: none;
  transform: translateY(-4px);
}

#globalVerifiedSlugPopover.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

#globalVerifiedSlugPopover .global-slug-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  pointer-events: none;
}

#globalVerifiedSlugPopover.arrow-top .global-slug-arrow {
  bottom: 100%;
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent #0f172a transparent;
}

#globalVerifiedSlugPopover.arrow-top .global-slug-arrow::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -7px;
  border-width: 0 7px 7px 7px;
  border-style: solid;
  border-color: transparent transparent rgba(255, 255, 255, 0.2) transparent;
  z-index: -1;
}

#globalVerifiedSlugPopover.arrow-bottom .global-slug-arrow {
  top: 100%;
  border-width: 6px 6px 0 6px;
  border-color: #0f172a transparent transparent transparent;
}

#globalVerifiedSlugPopover.arrow-bottom .global-slug-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -7px;
  border-width: 7px 7px 0 7px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.2) transparent transparent transparent;
  z-index: -1;
}

html[data-theme="light"] #globalVerifiedSlugPopover {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] #globalVerifiedSlugPopover.arrow-top .global-slug-arrow {
  border-color: transparent transparent #ffffff transparent;
}

html[data-theme="light"] #globalVerifiedSlugPopover.arrow-top .global-slug-arrow::before {
  border-color: transparent transparent rgba(0, 0, 0, 0.14) transparent;
}

html[data-theme="light"] #globalVerifiedSlugPopover.arrow-bottom .global-slug-arrow {
  border-color: #ffffff transparent transparent transparent;
}

html[data-theme="light"] #globalVerifiedSlugPopover.arrow-bottom .global-slug-arrow::before {
  border-color: rgba(0, 0, 0, 0.14) transparent transparent transparent;
}

.amazing-verified-tick,
.user-verified-badge,
.search-verified-badge,
.sidebar-ad-verified-badge {
  cursor: pointer;
}

.sidebar-ad-verified-badge svg {
  fill: #facc15 !important;
}

@media (max-width: 680px) {
  .trending-hero-card {
    min-height: auto;
    max-height: none;
  }

  .trending-hero-top-actions,
  .trending-hero-bottom-actions {
    top: 10px;
    right: 10px;
    bottom: 10px;
  }

  .trending-hero-icon-btn {
    width: 30px;
    height: 30px;
  }

  .trending-stories-header,
  .todays-news-header {
    padding: 16px 14px 8px 14px;
  }

  .trending-stories-title,
  .todays-news-title {
    font-size: 1.2rem;
  }

  .trending-story-item,
  .todays-news-item {
    padding: 13px 14px;
    gap: 10px;
  }

  .trending-story-rank-col {
    min-width: 58px;
    gap: 7px;
  }

  .trending-story-rank-num {
    font-size: 1.1rem;
    width: 18px;
  }

  .trending-story-vote-box {
    width: 32px;
  }

  .trending-story-title,
  .todays-news-item-title {
    font-size: 0.98rem;
  }

  .trending-avatar-badge,
  .todays-news-avatar-badge {
    width: 28px;
    height: 28px;
  }

  .trending-story-author-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex-shrink: 0 !important;
  }

  .trending-cat-pill {
    flex-shrink: 0 !important;
  }

  .trending-story-meta-details {
    font-size: 0.76rem;
    gap: 4px 6px;
  }
}

/* ===================================================
   Feed Pager / Infinite Scroll Component (Bilibili Blue)
   =================================================== */
.feed-pager-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px 48px;
  margin-top: 10px;
  width: 100%;
}

.feed-pager-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 6px 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feed-pager-status strong {
  color: var(--accent);
  font-weight: 700;
}

.feed-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 210px;
  padding: 12px 30px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #009cd3 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.feed-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 174, 236, 0.38);
  background: linear-gradient(135deg, #18b7f2 0%, #009cd3 100%);
}

.feed-load-more-btn:active {
  transform: translateY(0);
}

.feed-load-more-btn.loading {
  opacity: 0.85;
  pointer-events: none;
}

.feed-load-more-btn.loading .feed-btn-icon {
  animation: feedBtnSpin 0.8s linear infinite;
}

@keyframes feedBtnSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.feed-caught-up-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.feed-caught-up-banner svg {
  color: var(--green);
}

/* ===================================================
   YouTube / Bilibili Style Top Progress Bar & Loader
   =================================================== */
#bp-top-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999999;
  pointer-events: none;
}

#bp-top-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #facc15 0%, #fde047 65%, #fef08a 100%);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.8), 0 0 5px #facc15;
  border-radius: 0 3px 3px 0;
  transition: width 0.2s cubic-bezier(0.1, 0.85, 0.25, 1), opacity 0.3s ease;
}

#bp-top-progress-peg {
  position: absolute;
  right: 0;
  top: 0;
  width: 80px;
  height: 100%;
  box-shadow: 0 0 14px #fde047, 0 0 8px #facc15;
  opacity: 1;
  transform: rotate(2deg) translateY(-2px);
}

#bp-top-progress-spinner {
  display: none !important;
}

.news-card.bp-card-loading,
.trending-story-item.bp-card-loading,
.todays-news-item.bp-card-loading,
.search-result-card.bp-card-loading {
  transform: scale(0.992) !important;
  opacity: 0.86 !important;
  transition: transform 0.15s ease, opacity 0.15s ease !important;
  cursor: wait !important;
}

#sidebarPostBtn,
.btn-sidebar-post,
#headerPillPost,
.post-pill,
#headerPopupCreatePost {
  display: none !important;
}

.bp-user-tagline,
.bp-degree-badge {
  display: none !important;
}

[data-theme="light"] .bp-username,
[data-theme="light"] .bp-reply-username {
  color: #0f172a !important;
}

[data-theme="light"] .bp-username:hover,
[data-theme="light"] .bp-reply-username:hover {
  color: var(--accent, #facc15) !important;
}

[data-theme="light"] .bp-time,
[data-theme="light"] .bp-reply-time {
  color: #64748b !important;
}

[data-theme="light"] .bp-action-reply,
[data-theme="light"] .bp-action-vote,
[data-theme="light"] .bp-action-more {
  color: #64748b !important;
}

[data-theme="light"] .bp-action-reply:hover,
[data-theme="light"] .bp-action-vote:hover,
[data-theme="light"] .bp-action-more:hover {
  color: #0f172a !important;
}

[data-theme="light"] .bp-replies-trigger {
  color: #1a73e8 !important;
}

.gift-popup-btn,
a.gift-popup-btn,
.gift-popup-btn:visited,
a.gift-popup-btn:visited,
.gift-popup-btn:focus,
a.gift-popup-btn:focus,
.gift-popup-btn:active,
a.gift-popup-btn:active {
  display: block;
  width: 100%;
  background: var(--accent, #facc15) !important;
  color: #000000 !important;
  border: none;
  border-radius: 50px;
  padding: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800 !important;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
}

.gift-popup-btn:hover,
a.gift-popup-btn:hover {
  background: var(--accent-hover, #eab308) !important;
  color: #000000 !important;
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.5);
}

/* ===================================================
   CANONICAL YELLOW VERIFIED TICK (#facc15 / #000000)
   =================================================== */
.amazing-verified-tick,
.user-verified-badge svg,
.search-verified-badge {
  display: inline-block !important;
  vertical-align: middle !important;
}

.amazing-verified-tick path[fill="#00aeec"],
.amazing-verified-tick.blue-tick path:first-child,
.amazing-verified-tick path:first-child,
.user-verified-badge svg path:first-child,
.search-verified-badge g[fill="#1d9bf0"] path:first-child,
.search-verified-badge path:first-child,
.following-account-badge svg path:first-child {
  fill: #facc15 !important;
}

.amazing-verified-tick path[fill="#ffffff"],
.amazing-verified-tick path:last-child,
.user-verified-badge svg path:last-child,
.search-verified-badge path[fill="#ffffff"],
.search-verified-badge path:last-child,
.following-account-badge svg path:last-child {
  fill: #000000 !important;
}

.mini-tick-icon {
  color: #facc15 !important;
}

/* Enforce black text on all active yellow pills and buttons */
.subcat-tab.active,
.subcat-tab.active *,
.subcat-pill-btn.active,
.subcat-pill-btn.active *,
.gift-popup-btn,
a.gift-popup-btn,
.gift-popup-btn *,
a.gift-popup-btn * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  font-weight: 800 !important;
}

/* ===================================================
   CANONICAL GLOBAL LINK COLOR SPEC: ALL LINKS YELLOW
   =================================================== */
.article-body a,
.article-content a,
.news-content a,
.news-story-body a,
.ninegag-post-text a,
.bp-story-content a,
.comment-text a,
.comment-body a,
.bp-reply-text a,
.story-summary a,
.editorial-body a,
.article-summary-box a,
.article-text-section a,
.breadcrumbs-container a:hover,
.ranker-detail-breadcrumbs a:hover,
.crumb-link:hover,
.breadcrumb-link:hover,
.bp-guidelines-link,
.bp-read-more-link,
.threads-guidelines-link:hover,
.birdchat-guidelines-link {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  text-underline-offset: 2px;
}

.article-body a:hover,
.article-content a:hover,
.news-content a:hover,
.news-story-body a:hover,
.ninegag-post-text a:hover,
.bp-story-content a:hover,
.comment-text a:hover,
.comment-body a:hover,
.bp-reply-text a:hover,
.story-summary a:hover,
.editorial-body a:hover,
.article-summary-box a:hover,
.article-text-section a:hover,
.bp-guidelines-link:hover,
.bp-read-more-link:hover,
.birdchat-guidelines-link:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
  text-decoration-color: #eab308 !important;
}




/* ===================================================
   CANONICAL AUTHOR LINK SPEC: HIGHLIGHT ONLY ON HOVER
   =================================================== */
.news-post-author-link,
.ranker-author-name a,
a.news-post-author-link,
#articleAuthorMetaName a,
#newsPostAuthorLink,
.card-author-name a,
.birdchat-cat-author-link {
  color: #ffffff !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  text-underline-offset: 3px !important;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

[data-theme="light"] .news-post-author-link,
[data-theme="light"] .ranker-author-name a,
[data-theme="light"] a.news-post-author-link,
[data-theme="light"] #articleAuthorMetaName a,
[data-theme="light"] #newsPostAuthorLink,
[data-theme="light"] .card-author-name a,
[data-theme="light"] .birdchat-cat-author-link {
  color: #0f1419 !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}

.news-post-author-link:hover,
.ranker-author-name a:hover,
a.news-post-author-link:hover,
#articleAuthorMetaName a:hover,
#newsPostAuthorLink:hover,
.card-author-name a:hover,
.birdchat-cat-author-link:hover,
.news-post-author-link.popover-active,
.ranker-author-name a.popover-active {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  text-underline-offset: 3px !important;
}

[data-theme="light"] .news-post-author-link:hover,
[data-theme="light"] .ranker-author-name a:hover,
[data-theme="light"] a.news-post-author-link:hover,
[data-theme="light"] #articleAuthorMetaName a:hover,
[data-theme="light"] #newsPostAuthorLink:hover,
[data-theme="light"] .card-author-name a:hover,
[data-theme="light"] .birdchat-cat-author-link:hover,
[data-theme="light"] .news-post-author-link.popover-active,
[data-theme="light"] .ranker-author-name a.popover-active {
  color: #d97706 !important;
  text-decoration: underline !important;
  text-decoration-color: #d97706 !important;
}


/* ===================================================
   CANONICAL GIFT POPUP PATREON BUTTON: BLACK TEXT
   =================================================== */
.gift-popup-btn,
a.gift-popup-btn,
.gift-popup-btn *,
a.gift-popup-btn * {
  background: #facc15 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  font-weight: 800 !important;
}

.gift-popup-btn:hover,
a.gift-popup-btn:hover,
.gift-popup-btn:hover *,
a.gift-popup-btn:hover * {
  background: #eab308 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* ===================================================
   MOBILE HEADER: 3-LINE MENU, LOGO, NOTIF & ACCOUNT
   (Strictly matching Image 1 to Image 5 spec)
   =================================================== */

.sidebar-drawer-top-bar {
  display: none !important;
}

.mobile-cat-scroll-bar {
  display: none !important;
}

/* Mobile 3-line Menu Button: Strictly hidden on desktop (> 800px) */
.header-mobile-menu {
  display: none !important;
}

/* Desktop Header Pills (Newsletters, Magazine, Shop, Premium): Strictly visible on wide desktop */
@media (min-width: 1201px) {

  .header-pill-btn,
  #headerPillNewsletter,
  #headerPillMagazine,
  #headerPillShop,
  #headerPillPremium {
    display: inline-flex !important;
  }

  .header-mobile-menu {
    display: none !important;
  }

  /* Desktop Ad Banner & Card: Expanded from left to right, covering black side spaces */
  .trending-hero-banner {
    padding: 14px 16px 18px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .trending-hero-card,
  .feed-ad-birdpost-full-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* "the search tab make it bigger": Expanding prominent search bar like Medium (Image 1) */
.header-search {
  position: relative !important;
  display: flex !important;
  flex: 1 1 auto !important;
  max-width: 680px !important;
  min-width: 180px !important;
  height: 42px !important;
  margin: 0 16px !important;
  background: #141416 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 9999px !important;
  padding: 0 12px 0 16px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.header-search:focus-within {
  background: #18181e !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .header-search {
  background: #f4f4f6 !important;
  border: 1.5px solid #d4d4d8 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .header-search:focus-within {
  background: #ffffff !important;
  border-color: #18181b !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12) !important;
}

.header-search input {
  flex: 1 !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--text-primary, #ffffff) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  height: 100% !important;
  padding: 0 !important;
  font-family: inherit !important;
}

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

.header-search-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #a1a1aa !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
}

[data-theme="light"] .header-search-icon {
  color: #71717a !important;
}

.header-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  cursor: pointer !important;
  border: none !important;
  flex-shrink: 0 !important;
}

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

@media (max-width: 800px),
(orientation: landscape) and (max-height: 600px) {

  html,
  body {
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body {
    padding-top: calc(100px + env(safe-area-inset-top, 0px)) !important;
  }

  .top-header {
    height: auto !important;
    min-height: 56px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 500 !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    background: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .top-header {
    background: #ffffff !important;
    border-bottom-color: #e5e7eb !important;
  }

  .header-inner {
    height: 56px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. 3-line hamburger menu button before logo */
  .header-mobile-menu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary, #ffffff) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
  }

  .header-mobile-menu:hover,
  .header-mobile-menu:active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #facc15 !important;
  }

  [data-theme="light"] .header-mobile-menu {
    color: #0f172a !important;
  }

  [data-theme="light"] .header-mobile-menu:hover,
  [data-theme="light"] .header-mobile-menu:active {
    background: rgba(0, 0, 0, 0.06) !important;
  }

  /* 2. Logo right after 3-line menu */
  .header-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .header-logo-bird-circle {
    width: 32px !important;
    height: 32px !important;
  }

  .header-logo-text {
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
  }

  /* 3. Search Bar: Visible, expanding and made bigger on rotate (landscape) or tablet */
  .header-search {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 1 auto !important;
    max-width: 760px !important;
    min-width: 140px !important;
    height: 40px !important;
    margin: 0 12px !important;
  }

  .header-search input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    font-size: 0.92rem !important;
  }

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

  /* 4. Right side: Keep what's after notifications tab INCLUDING notifications */
  .header-right {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Remove all pill buttons on mobile & tablet: Newsletters, Magazine, Shop, Premium */
  .header-right .header-pill-btn,
  .header-right #headerPillNewsletter,
  .header-right #headerPillMagazine,
  .header-right #headerPillShop,
  .header-right #headerPillPremium,
  .header-right .header-post-btn,
  .header-right .header-dropdown {
    display: none !important;
  }

  /* Theme Toggle on mobile: Moved under settings per user request */
  .header-right .theme-toggle {
    display: none !important;
  }

  /* Search Icon Button before Notifications: ONLY on small portrait view (opens overlay) */
  .header-search-icon-btn {
    display: none !important;
  }

  @media (max-width: 560px) and (orientation: portrait) {
    .header-search-icon-btn {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 36px !important;
      height: 36px !important;
      padding: 0 !important;
      background: transparent !important;
      border: none !important;
      color: var(--text-primary, #ffffff) !important;
      border-radius: 50% !important;
      cursor: pointer !important;
      flex-shrink: 0 !important;
      transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
    }

    .header-search-icon-btn:hover,
    .header-search-icon-btn:active {
      background: rgba(255, 255, 255, 0.1) !important;
      color: #facc15 !important;
    }

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

    [data-theme="light"] .header-search-icon-btn:hover,
    [data-theme="light"] .header-search-icon-btn:active {
      background: rgba(0, 0, 0, 0.06) !important;
      color: #ca8a04 !important;
    }
  }

  /* Always show Notification bell with badge (Matching Image 5) */
  .header-notifications-wrap {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
  }

  .header-bell-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    position: relative !important;
    color: var(--text-primary, #ffffff) !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
  }

  /* Keep what's after notifications (Profile / Login) */
  .header-profile-wrap,
  #headerProfileWrap {
    display: inline-flex !important;
    align-items: center !important;
  }

  .header-login-btn,
  #headerLoginBtn {
    display: inline-flex !important;
  }

  .header-bell-icon {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
  }

  .header-bell-badge {
    position: absolute !important;
    top: -2px !important;
    right: -4px !important;
    background: #e11d48 !important;
    color: #ffffff !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    padding: 1px 5px !important;
    border-radius: 9999px !important;
    min-width: 17px !important;
    height: 17px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #0b0c10 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) !important;
  }

  [data-theme="light"] .header-bell-badge {
    border-color: #ffffff !important;
  }

  /* Account profile button & avatar circle (Matching Image 5) */
  .header-profile-wrap {
    display: inline-flex !important;
    align-items: center !important;
  }

  .header-profile-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
  }

  .header-profile-btn .profile-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: var(--bg-hover, #222) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  [data-theme="light"] .header-profile-btn .profile-avatar {
    border-color: rgba(0, 0, 0, 0.1) !important;
  }

  /* 5. Left Sidebar Drawer on mobile (Matching Image 2) */
  .sidebar-left {
    position: fixed !important;
    left: -340px !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 304px !important;
    max-width: 88vw !important;
    z-index: 10001 !important;
    background: var(--bg-panel, #0b0c10) !important;
    border-right: 1px solid var(--border, #222) !important;
    border-left: none !important;
    transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.65) !important;
    display: block !important;
    padding: 0 !important;
  }

  .sidebar-left.open {
    left: -4px !important;
  }

  .sidebar-drawer-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--border, #222) !important;
    background: rgba(255, 255, 255, 0.02) !important;
  }

  .sidebar-drawer-close-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
  }

  .sidebar-drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #facc15 !important;
  }

  [data-theme="light"] .sidebar-drawer-close-btn {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
  }

  /* Backdrop Overlay */
  .mobile-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease !important;
  }

  .mobile-overlay.active {
    opacity: 1 !important;
    pointer-events: all !important;
  }

  /* 6. Mobile Horizontal Categories Scrolling Bar (Image 3 style with Image 4 categories) */
  .mobile-cat-scroll-bar {
    display: block !important;
    width: 100% !important;
    background: var(--bg-panel, #000000) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: sticky !important;
    top: 56px !important;
    z-index: 99 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    user-select: none !important;
  }

  .mobile-cat-scroll-bar::-webkit-scrollbar {
    display: none !important;
  }

  [data-theme="light"] .mobile-cat-scroll-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  .mobile-cat-scroll-inner {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 8px !important;
    min-width: 100% !important;
    white-space: nowrap !important;
    height: 44px !important;
  }

  .mobile-cat-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    height: 44px !important;
    padding: 0 14px !important;
    font-size: 0.94rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color 0.15s ease !important;
    flex-shrink: 0 !important;
  }

  [data-theme="light"] .mobile-cat-tab {
    color: #64748b !important;
  }

  .mobile-cat-tab:hover {
    color: #e2e8f0 !important;
  }

  [data-theme="light"] .mobile-cat-tab:hover {
    color: #1e293b !important;
  }

  /* Active tab: Vibrant brand yellow (User requested) */
  .mobile-cat-tab.active {
    color: #facc15 !important;
    font-weight: 700 !important;
  }

  [data-theme="light"] .mobile-cat-tab.active {
    color: #ca8a04 !important;
  }

  /* Bottom underline indicator (Vibrant brand yellow) */
  .mobile-cat-tab .mobile-cat-tab-indicator {
    display: none;
    position: absolute !important;
    bottom: 0 !important;
    left: 10px !important;
    right: 10px !important;
    height: 3px !important;
    background: #facc15 !important;
    border-radius: 3px 3px 0 0 !important;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.45) !important;
  }

  [data-theme="light"] .mobile-cat-tab .mobile-cat-tab-indicator {
    background: #eab308 !important;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.35) !important;
  }

  .mobile-cat-tab.active .mobile-cat-tab-indicator {
    display: block !important;
  }

  /* Sleek SVG lock icon (Matching Image 3) */
  .mobile-cat-tab .cat-lock-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 5px !important;
    color: #94a3b8 !important;
    opacity: 0.85 !important;
    vertical-align: middle !important;
  }

  .mobile-cat-tab .cat-lock-icon svg {
    width: 11px !important;
    height: 11px !important;
    fill: currentColor !important;
    display: block !important;
  }

  [data-theme="light"] .mobile-cat-tab .cat-lock-icon {
    color: #64748b !important;
  }
}

/* ==========================================================================
   MOBILE ROTATE / LANDSCAPE 2-COLUMN NEWS CARD GRID (Matching Image 8 Spec)
   ========================================================================== */
@media (orientation: landscape) and (max-height: 600px),
(orientation: landscape) and (max-width: 1024px) {

  body {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" !important;
  }

  /* Force all per-page layout grids to single column in landscape/tablet */
  .user-profile-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" !important;
  }

  .category-layout,
  .category-layout.has-right-sidebar {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" !important;
  }

  .article-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" !important;
  }

  .user-page-sidebar-right,
  .category-sidebar-right,
  .article-sidebar-right {
    display: none !important;
  }

  .sidebar-right {
    display: none !important;
  }

  /* Drawer on mobile rotate / landscape: off-canvas drawer opened via hamburger menu */
  .sidebar-left {
    position: fixed !important;
    left: -340px !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 304px !important;
    max-width: 88vw !important;
    z-index: 10001 !important;
    display: block !important;
    background: var(--bg-panel, #0b0c10) !important;
    border-right: 1px solid var(--border, #222) !important;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.65) !important;
    transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .sidebar-left.open {
    left: 0 !important;
  }

  /* News Feed Container: Stacks sections vertically (Full-width Trending, then side-by-side cards) */
  .news-feed {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* 1. Hero banner & Trending Stories (Image 1 style): Full-width, NOTHING on the right side! */
  .news-feed>.trending-hero-banner,
  .news-feed>.trending-stories-section,
  .trending-stories-section,
  .todays-news-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 16px 0 !important;
    clear: both !important;
  }

  .trending-stories-list,
  .todays-news-list {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .trending-story-item,
  .todays-news-item {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2. The 3rd image part starts AFTER the trending section: 2-column side-by-side grid */
  .feed-articles-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 12px 14px 28px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Full-width in-feed ad banner (Matching Image 5): Long in length left to right, centered in the middle, covering black margin */
  .feed-articles-container>.feed-ad-inline,
  .feed-articles-container>.feed-ad-banner,
  .feed-articles-container>.feed-banner-ad,
  .feed-articles-container>.trending-hero-banner,
  .feed-articles-container>.breaking-banner {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 0 !important;
    margin: 10px auto !important;
  }

  .feed-ad-birdpost-full-card,
  .trending-hero-card {
    max-width: 680px !important;
    margin: 0 auto !important;
    width: 100% !important;
    border-radius: 16px !important;
    background: var(--bg-card, #0f1015) !important;
    border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.1)) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Ad Banner Card Light Mode Override (Image 2 Spec) */
  [data-theme="light"] .feed-ad-birdpost-full-card,
  [data-theme="light"] .trending-hero-card,
  [data-theme="light"] .feed-ad-birdpost-full-card.theme-black,
  [data-theme="light"] .trending-hero-card.theme-black,
  [data-theme="light"] .feed-ad-birdpost-full-card.theme-white,
  [data-theme="light"] .trending-hero-card.theme-white {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
  }

  [data-theme="light"] .feed-ad-birdpost-full-card .trending-hero-body-wrap,
  [data-theme="light"] .trending-hero-card .trending-hero-body-wrap {
    background: #ffffff !important;
  }

  [data-theme="light"] .feed-ad-birdpost-full-card .trending-hero-title,
  [data-theme="light"] .trending-hero-card .trending-hero-title {
    color: #0f172a !important;
    font-weight: 750 !important;
  }

  [data-theme="light"] .feed-ad-birdpost-full-card .trending-hero-subtitle,
  [data-theme="light"] .trending-hero-card .trending-hero-subtitle,
  [data-theme="light"] .feed-ad-birdpost-full-card .trending-hero-sponsor-meta,
  [data-theme="light"] .trending-hero-card .trending-hero-sponsor-meta,
  [data-theme="light"] .feed-ad-birdpost-full-card .hero-promoted-text,
  [data-theme="light"] .trending-hero-card .hero-promoted-text {
    color: #64748b !important;
  }

  [data-theme="light"] .feed-ad-birdpost-full-card .sponsored-badge-text,
  [data-theme="light"] .trending-hero-card .sponsored-badge-text {
    color: #475569 !important;
  }

  [data-theme="light"] .feed-ad-birdpost-full-card .hero-dot-separator,
  [data-theme="light"] .trending-hero-card .hero-dot-separator {
    color: #94a3b8 !important;
  }

  [data-theme="light"] .feed-ad-birdpost-full-card .trending-hero-more-btn,
  [data-theme="light"] .trending-hero-card .trending-hero-more-btn {
    color: #64748b !important;
  }

  [data-theme="light"] .feed-ad-birdpost-full-card .trending-hero-pill-btn.btn-secondary,
  [data-theme="light"] .trending-hero-card .trending-hero-pill-btn.btn-secondary {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
  }

  [data-theme="light"] .feed-ad-birdpost-full-card .trending-hero-pill-btn.btn-secondary:hover,
  [data-theme="light"] .trending-hero-card .trending-hero-pill-btn.btn-secondary:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
  }

  [data-theme="light"] .feed-ad-birdpost-full-card .trending-hero-pill-btn.btn-primary,
  [data-theme="light"] .trending-hero-card .trending-hero-pill-btn.btn-primary {
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
  }

  [data-theme="light"] .feed-ad-birdpost-full-card .trending-hero-pill-btn.btn-primary:hover,
  [data-theme="light"] .trending-hero-card .trending-hero-pill-btn.btn-primary:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
  }

  .feed-ad-birdpost-full-card .trending-hero-media,
  .trending-hero-media {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    max-height: none !important;
    min-height: unset !important;
    overflow: hidden !important;
    border-radius: 14px 14px 0 0 !important;
    background: #fdc944 !important;
    position: relative !important;
  }

  .feed-ad-birdpost-full-card .trending-hero-img,
  .trending-hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
  }

  .feed-articles-container>.feed-ad-inline .feed-ad-birdpost-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Top Hero Ad Banner: Centered and full 16:9 media (Matching Image 5) */
  .trending-hero-banner {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    padding: 10px 14px 16px 14px !important;
    box-sizing: border-box !important;
  }

  .trending-hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
  }

  /* Compact Card Layout (Matching Image 3) */
  .news-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 10px !important;
    border-radius: 14px !important;
    background: var(--bg-card, #121319) !important;
    border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
    border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  [data-theme="light"] .news-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }

  .news-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
  }

  [data-theme="light"] .news-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
  }

  .news-card-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. Thumbnail Image at the TOP (Image 3 style) */
  .news-card .card-media {
    order: 1 !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin: 0 0 4px 0 !important;
    position: relative !important;
    background: #090a0f !important;
    flex-shrink: 0 !important;
  }

  .news-card .card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 10px !important;
  }

  /* 2. Headline directly under thumbnail (Matching Image 3) */
  .news-card .card-headline {
    order: 2 !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.34 !important;
    letter-spacing: -0.012em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
    color: var(--text-primary, #ffffff) !important;
  }

  [data-theme="light"] .news-card .card-headline {
    color: #0f172a !important;
  }

  /* Hide long summary text on rotate mode so cards fit neatly without pushing images off-screen */
  .news-card .card-summary {
    display: none !important;
  }

  /* 3. Author Row under headline (Matching Image 3) */
  .news-card .card-header {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin-top: 2px !important;
    gap: 6px !important;
  }

  .news-card .card-author-meta {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.74rem !important;
    min-width: 0 !important;
  }

  .news-card .card-author-avatar {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
  }

  .news-card .card-author-name {
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    color: var(--text-primary, #ffffff) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 110px !important;
  }

  [data-theme="light"] .news-card .card-author-name {
    color: #0f172a !important;
  }

  .news-card .publisher-handle {
    font-size: 0.7rem !important;
    color: var(--text-muted, #71717a) !important;
    white-space: nowrap !important;
  }

  .news-card .card-badges {
    display: none !important;
  }

  /* 4. Category tags & views (Matching Image 3) */
  .news-card .card-footer {
    order: 4 !important;
    margin-top: auto !important;
    padding: 4px 0 0 0 !important;
  }

  .news-card .card-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    font-size: 0.68rem !important;
  }

  .news-card .card-tag {
    font-size: 0.65rem !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
  }

  .news-card .card-stat,
  .news-card .card-date {
    font-size: 0.68rem !important;
    color: var(--text-muted, #71717a) !important;
  }

  /* 5. Compact action bar (Matching Image 3) */
  .news-card .card-action-bar {
    order: 5 !important;
    padding-top: 6px !important;
    margin-top: 4px !important;
    border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.06)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .news-card .card-action-left {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 2px !important;
  }

  .news-card .card-action-btn,
  .news-card .card-vote-pill {
    padding: 3px 5px !important;
    font-size: 0.68rem !important;
    gap: 3px !important;
  }

  .news-card .card-action-btn svg,
  .news-card .vote-up-btn svg,
  .news-card .vote-down-btn svg {
    width: 13px !important;
    height: 13px !important;
  }

  .news-card .card-comments-btn span {
    font-size: 0.68rem !important;
  }

  .news-card .card-coffee-btn span,
  .news-card .card-save-btn .save-btn-text {
    display: none !important;
  }

  /* 6. 2nd Part: Related Stories Section (Matching Image 2 Spec) */
  .news-card .related-articles-label {
    order: 6 !important;
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: var(--text-muted, #71717a) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 12px 0 6px 0 !important;
    margin-top: 6px !important;
    border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
  }

  [data-theme="light"] .news-card .related-articles-label {
    color: #64748b !important;
    border-top-color: #e2e8f0 !important;
  }

  .news-card .related-articles {
    order: 7 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 2px 0 4px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .news-card .related-article-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.06)) !important;
    border-radius: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: opacity 0.15s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  [data-theme="light"] .news-card .related-article-card {
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
  }

  .news-card .related-article-card:last-child {
    border-bottom: none !important;
  }

  /* Show top 3 stories matching Image 2 */
  .news-card .related-article-card:nth-child(n+4) {
    display: none !important;
  }

  .news-card .related-article-card:hover {
    opacity: 0.82 !important;
    transform: none !important;
  }

  /* Square thumbnail on left matching Image 2 */
  .news-card .related-article-thumb-wrap {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
    background: #090a0f !important;
  }

  .news-card .related-article-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
    transform: none !important;
  }

  .news-card .related-article-card:hover .related-article-thumb {
    transform: none !important;
  }

  .news-card .related-article-body {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .news-card .related-article-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--text-primary, #ffffff) !important;
    line-height: 1.28 !important;
    letter-spacing: -0.01em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  [data-theme="light"] .news-card .related-article-title {
    color: #0f172a !important;
  }

  .news-card .related-article-summary {
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    line-height: 1.32 !important;
    color: var(--text-muted, #71717a) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 1px 0 0 0 !important;
  }

  [data-theme="light"] .news-card .related-article-summary {
    color: #64748b !important;
  }

  /* No author row in the related story row matching Image 2 */
  .news-card .related-article-author {
    display: none !important;
  }

  .news-card .related-stories-feed-wrap {
    display: none !important;
  }
}

/* ============================================================
   MOBILE SEARCH OVERLAY (Image 2 Spec)
   Full-screen modal overlay matching Image 2: Search input,
   "Recent searches", "You have no recent searches", top close cross
   ============================================================ */
.mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  background: #0b0c10;
  color: #ffffff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
}

[data-theme="light"] .mobile-search-overlay {
  background: #ffffff;
  color: #0f172a;
}

.mobile-search-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

body.mobile-search-open {
  overflow: hidden !important;
}

.mobile-search-overlay-container {
  max-width: 600px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px calc(env(safe-area-inset-bottom, 0px) + 32px) 20px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Top bar with close cross icon (Top of Interface) */
.mobile-search-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 0 14px 0;
}

.mobile-search-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
  padding: 0;
}

.mobile-search-close-btn:hover,
.mobile-search-close-btn:active {
  background: rgba(255, 255, 255, 0.18);
  color: #facc15;
  transform: scale(1.05);
}

[data-theme="light"] .mobile-search-close-btn {
  background: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

[data-theme="light"] .mobile-search-close-btn:hover,
[data-theme="light"] .mobile-search-close-btn:active {
  background: rgba(0, 0, 0, 0.12);
  color: #ca8a04;
}

/* Search input capsule (Image 2 + Desktop Search Button) */
.mobile-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  border-radius: 9999px;
  border: 2px solid #ffffff !important;
  background: #0f1015;
  padding: 0 6px 0 48px;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="light"] .mobile-search-input-wrap {
  background: #ffffff;
  border: 2px solid #0f172a !important;
}

.mobile-search-input-wrap:focus-within {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.mobile-search-lens-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e95a5;
  pointer-events: none;
}

.mobile-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 16px;
  /* 16px avoids auto-zoom on mobile Safari */
  font-weight: 600;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.mobile-search-input::placeholder {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 0.95 !important;
  font-weight: 500;
}

.mobile-search-input::-webkit-input-placeholder {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 0.95 !important;
  font-weight: 500;
}

.mobile-search-input::-moz-placeholder {
  color: #ffffff !important;
  opacity: 0.95 !important;
  font-weight: 500;
}

.mobile-search-input:-ms-input-placeholder {
  color: #ffffff !important;
  opacity: 0.95 !important;
  font-weight: 500;
}

[data-theme="light"] .mobile-search-input {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

[data-theme="light"] .mobile-search-input::placeholder,
[data-theme="light"] .mobile-search-input::-webkit-input-placeholder,
[data-theme="light"] .mobile-search-input::-moz-placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  opacity: 0.9 !important;
}

.mobile-search-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  margin: 0 4px;
  padding: 0;
  flex-shrink: 0;
}

[data-theme="light"] .mobile-search-clear-btn {
  background: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.mobile-search-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  border-radius: 9999px !important;
  padding: 7px 16px !important;
  height: 36px !important;
  cursor: pointer;
  border: none !important;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.28);
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
  font-family: inherit;
  margin-left: 4px;
}

.mobile-search-submit-btn:hover {
  background: #eab308 !important;
}

.mobile-search-submit-btn:active {
  transform: scale(0.97);
}

/* Recent searches section (Image 2) */
.mobile-search-recent-section {
  margin-top: 28px;
}

.mobile-search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mobile-search-section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

[data-theme="light"] .mobile-search-section-title {
  color: #0f172a;
}

.mobile-search-clear-all-btn {
  background: transparent;
  border: none;
  color: #facc15;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.mobile-search-empty {
  font-size: 15px;
  color: #8e95a5;
  font-weight: 400;
  padding: 6px 0;
  line-height: 1.5;
}

[data-theme="light"] .mobile-search-empty {
  color: #64748b;
}

/* Recent items list */
.mobile-search-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-search-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}

.mobile-search-recent-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .mobile-search-recent-item {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .mobile-search-recent-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.mobile-search-recent-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #ffffff;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="light"] .mobile-search-recent-text {
  color: #0f172a;
}

.mobile-search-recent-clock {
  color: #8e95a5;
  display: inline-flex;
  flex-shrink: 0;
}

.mobile-search-recent-delete {
  background: transparent;
  border: none;
  color: #8e95a5;
  font-size: 18px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-search-recent-delete:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

/* Live results list matching desktop command palette */
.mobile-search-results-section {
  margin-top: 18px;
}

.mobile-search-results-section .bp-search-popover-content {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 14px 10px 10px 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

[data-theme="light"] .mobile-search-results-section .bp-search-popover-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.mobile-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.mobile-search-result-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .mobile-search-result-card {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .mobile-search-result-card:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}

.mobile-search-result-info {
  flex: 1;
  min-width: 0;
}

.mobile-search-result-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="light"] .mobile-search-result-title {
  color: #0f172a;
}

.mobile-search-result-meta {
  font-size: 12px;
  color: #8e95a5;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===================================================
   DESKTOP INTERFACE PRESERVATION & INTEGRITY (Strictly Desktop)
   - Do NOT change desktop header interface
   - No 3-line hamburger menu on desktop
   - All pills visible (Newsletters, Magazine, Shop, Premium)
   - Post button visible
   - Dark/Light Theme toggle visible
   - Standalone search icon visible
   - Balanced search bar sizing
   - Ad banner small in height from top to bottom (Image 5 Spec)
   =================================================== */
@media (min-width: 1025px),
(min-width: 821px) and (pointer: fine) {

  /* 1. Strictly hide hamburger menu & drawer top bar on desktop */
  .header-mobile-menu,
  #headerMobileMenu,
  .sidebar-drawer-top-bar {
    display: none !important;
  }

  /* 2. Restore all header pills on desktop */
  .header-pill-btn,
  #headerPillNewsletter,
  #headerPillMagazine,
  #headerPillShop,
  #headerPillPremium {
    display: inline-flex !important;
  }

  /* 3. Restore Post button on desktop */
  .header-post-btn,
  #headerPostBtn,
  .header-right .header-post-btn {
    display: inline-flex !important;
  }

  /* 4. Remove Dark/Light theme toggle from top header on desktop also (moved under Settings) */
  .header-right .theme-toggle,
  .top-header .theme-toggle,
  .header-middle .theme-toggle,
  #themeToggle {
    display: none !important;
  }

  /* 5. Standalone search icon button: hidden on desktop where full search bar is visible */
  .header-search-icon-btn,
  #headerSearchIconBtn {
    display: none !important;
  }

  /* 6. Desktop Search Bar: Expanded size now that theme toggle is removed */
  .header-inner {
    gap: 12px !important;
  }

  .header-right {
    gap: 10px !important;
  }

  .header-notifications-wrap,
  #headerNotificationsWrap {
    margin-left: 0 !important;
  }

  .header-search {
    display: flex !important;
    flex: 1 1 740px !important;
    max-width: 840px !important;
    min-width: 240px !important;
    height: 40px !important;
    margin: 0 10px !important;
  }

  /* 7. Ad Spaces on Desktop Specification:
     - 1st Ad Space (Main front hero ad at top with Sleepy Birds): Make it like 2nd image (small in vertical height: 220px)
     - 2nd Ad Space (In-feed ad card with Penguin in Top Hat): Make it like 1st image (full natural 16:9 height, like before) */

  /* 1st Main Front Ad Space (Header Hero - Sleepy Birds): Small in height (220px) like 2nd image */
  .trending-hero-banner {
    padding: 10px 16px 14px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .trending-hero-banner .trending-hero-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 16px !important;
  }

  .trending-hero-banner .trending-hero-media {
    width: 100% !important;
    height: auto !important;
    max-height: 220px !important;
    aspect-ratio: 1024 / 300 !important;
    overflow: hidden !important;
    border-radius: 14px 14px 0 0 !important;
    background: #ff663f !important;
  }

  .trending-hero-banner .trending-hero-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 220px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  /* 2nd Ad Space (In-Feed Ad - Penguin in Top Hat): Full natural 16:9 height like 1st image */
  .feed-ad-inline,
  .feed-articles-container>.feed-ad-inline {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .feed-ad-birdpost-full-card,
  .feed-ad-inline .trending-hero-card,
  .feed-articles-container>.feed-ad-inline .trending-hero-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 16px !important;
  }

  .feed-ad-birdpost-full-card .trending-hero-media,
  .feed-ad-inline .trending-hero-media,
  .feed-articles-container>.feed-ad-inline .trending-hero-media {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    border-radius: 14px 14px 0 0 !important;
    background: #000000 !important;
    position: relative !important;
  }

  .feed-ad-birdpost-full-card .trending-hero-img,
  .feed-ad-inline .trending-hero-img,
  .feed-articles-container>.feed-ad-inline .trending-hero-img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }
}

/* ===================================================
   Mobile Portrait Header Specification:
   - Search bar: STRICTLY HIDDEN (no search bar appearing on mobile!)
   - Search icon: VISIBLE
   - Notification icon: VISIBLE
   - Profile avatar: VISIBLE
   - Hamburger menu: VISIBLE before logo
   - Pills & theme toggle: HIDDEN
   =================================================== */
@media (max-width: 768px) and (orientation: portrait),
(max-width: 600px) {

  /* 1. Strictly hide the search bar on mobile */
  .header-search,
  #headerSearchInput,
  .header-search-btn {
    display: none !important;
  }

  /* 2. Search icon button MUST appear on mobile */
  .header-search-icon-btn,
  #headerSearchIconBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary, #ffffff) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
  }

  .header-search-icon-btn:hover,
  .header-search-icon-btn:active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #facc15 !important;
  }

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

  [data-theme="light"] .header-search-icon-btn:hover,
  [data-theme="light"] .header-search-icon-btn:active {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #000000 !important;
  }

  /* 3. Notification icon MUST appear on mobile */
  .header-notifications-wrap,
  #headerNotificationsWrap,
  .header-bell-btn,
  #headerBellBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
  }

  /* 4. Profile avatar MUST appear on mobile */
  .header-profile-wrap,
  #headerProfileWrap,
  .header-profile-btn,
  #headerProfileBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  /* 5. 3-line hamburger menu button before logo */
  .header-mobile-menu,
  #headerMobileMenu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary, #ffffff) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 4px 0 0 !important;
    flex-shrink: 0 !important;
  }

  [data-theme="light"] .header-mobile-menu,
  [data-theme="light"] #headerMobileMenu {
    color: #0f172a !important;
  }

  /* Right-side alignment for icons: search, notif, profile */
  .header-right {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Pills and theme toggle hidden in mobile header */
  .header-pill-btn,
  #headerPillNewsletter,
  #headerPillMagazine,
  #headerPillShop,
  #headerPillPremium,
  .header-right .header-post-btn,
  #headerPostBtn,
  .header-right .theme-toggle,
  #themeToggle {
    display: none !important;
  }
}

/* ===================================================
   Mobile and Tablet Rotate Mode Specification (Strictly Landscape):
   1. Remove all pill buttons (Newsletters, Magazine, Shop, Premium)
   2. Remove standalone search icon button
   3. Make search bar bigger and prominent
   4. Keep what's after notifications tab INCLUDING notifications (Notifications, Profile / Login)
   =================================================== */
@media (orientation: landscape) and (max-height: 520px),
(orientation: landscape) and (max-width: 1024px) and (pointer: coarse) {

  /* 1. Remove all of this (Pills) on rotate mode */
  .header-pill-btn,
  #headerPillNewsletter,
  #headerPillMagazine,
  #headerPillShop,
  #headerPillPremium,
  .header-right .header-pill-btn,
  .header-right .header-post-btn,
  .header-right .header-dropdown {
    display: none !important;
  }

  .header-right .theme-toggle,
  #themeToggle {
    display: none !important;
  }

  /* 3-line / 3-dot mobile & tablet hamburger menu button before logo */
  .header-mobile-menu,
  #headerMobileMenu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary, #ffffff) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 4px 0 0 !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
  }

  .header-mobile-menu:hover,
  .header-mobile-menu:active,
  #headerMobileMenu:hover,
  #headerMobileMenu:active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #facc15 !important;
  }

  [data-theme="light"] .header-mobile-menu,
  [data-theme="light"] #headerMobileMenu {
    color: #0f172a !important;
  }

  [data-theme="light"] .header-mobile-menu:hover,
  [data-theme="light"] .header-mobile-menu:active,
  [data-theme="light"] #headerMobileMenu:hover,
  [data-theme="light"] #headerMobileMenu:active {
    background: rgba(0, 0, 0, 0.06) !important;
  }

  /* Drawer Top Bar & Close (X) button on Mobile & Tablet */
  .sidebar-drawer-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--border, #222) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sidebar-drawer-close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.6rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 0 2px 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease !important;
  }

  .sidebar-drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #facc15 !important;
  }

  [data-theme="light"] .sidebar-drawer-top-bar {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    background: rgba(0, 0, 0, 0.02) !important;
  }

  [data-theme="light"] .sidebar-drawer-title span {
    color: #0f172a !important;
  }

  [data-theme="light"] .sidebar-drawer-close-btn {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
  }

  [data-theme="light"] .sidebar-drawer-close-btn:hover {
    background: rgba(0, 0, 0, 0.12) !important;
    color: #000000 !important;
  }

  /* 2. Standalone search icon button removed on rotate mode because search bar is right there */
  .header-search-icon-btn,
  #headerSearchIconBtn {
    display: none !important;
  }

  /* 3. Make the search bar bigger */
  .header-search {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 760px !important;
    min-width: 160px !important;
    height: 40px !important;
    margin: 0 14px !important;
    padding: 0 12px 0 16px !important;
    box-sizing: border-box !important;
  }

  .header-search input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    font-size: 0.94rem !important;
  }

  .header-search-btn {
    display: inline-flex !important;
    height: 30px !important;
    padding: 5px 14px !important;
    font-size: 0.85rem !important;
  }

  /* 4. Keep what's after notifications tab INCLUDING notifications */
  .header-right {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .header-notifications-wrap,
  #headerNotificationsWrap {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
  }

  .header-profile-wrap,
  #headerProfileWrap {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .header-login-btn,
  #headerLoginBtn {
    display: inline-flex !important;
    flex-shrink: 0 !important;
  }
}

/* ===================================================
   LIGHT MODE NOTIFICATION BELL: CRISP DARK SLATE (#0f172a)
   =================================================== */
[data-theme="light"] .header-bell-btn,
[data-theme="light"] #headerBellBtn,
html[data-theme="light"] .header-bell-btn,
html[data-theme="light"] #headerBellBtn,
body.bp-theme-light .header-bell-btn {
  color: #0f172a !important;
}

[data-theme="light"] .header-bell-icon,
[data-theme="light"] .header-bell-btn .header-bell-icon,
[data-theme="light"] #headerBellBtn svg,
[data-theme="light"] .header-bell-btn svg,
html[data-theme="light"] .header-bell-icon,
html[data-theme="light"] .header-bell-btn .header-bell-icon,
html[data-theme="light"] #headerBellBtn svg,
html[data-theme="light"] .header-bell-btn svg,
body.bp-theme-light .header-bell-icon {
  color: #0f172a !important;
  stroke: #0f172a !important;
}

[data-theme="light"] .header-bell-btn:hover,
[data-theme="light"] #headerBellBtn:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #000000 !important;
}

[data-theme="light"] .header-bell-btn:hover .header-bell-icon,
[data-theme="light"] #headerBellBtn:hover svg {
  color: #000000 !important;
  stroke: #000000 !important;
}

/* ===================================================
   FEED CARD ACTIONS: SHARE BUTTON PLACED AFTER SAVE (ROW 2)
   - Pill buttons: [ ☕ Coffee ] [ 🔖 Save ] [ ↗ Share ]
   - Fits side-by-side cleanly without dropping Share to Row 3
   =================================================== */
.card-action-bar .card-action-left,
.news-card .card-action-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.card-action-btn.card-coffee-btn,
.card-action-btn.coffee-btn,
.card-action-btn.card-save-btn,
.card-action-btn.save-btn,
.card-save-btn,
.card-action-btn.share-trigger-btn,
.share-trigger-btn,
.card-action-btn.card-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  padding: 0 12px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  height: 36px !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.card-share-container {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 600px) {

  .card-action-bar .card-action-left,
  .news-card .card-action-left {
    gap: 6px !important;
  }

  .card-vote-pill,
  .card-action-btn.card-comments-btn {
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 0.82rem !important;
    gap: 5px !important;
  }

  .card-action-btn.card-coffee-btn,
  .card-action-btn.card-save-btn,
  .card-save-btn,
  .card-action-btn.share-trigger-btn,
  .share-trigger-btn,
  .card-action-btn.card-share-btn {
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 0.80rem !important;
    gap: 5px !important;
  }
}

/* ===================================================
   LIGHT MODE NOTIFICATION BELL: CRISP DARK SLATE (#0f172a)
   =================================================== */
[data-theme="light"] .header-bell-btn,
[data-theme="light"] #headerBellBtn,
html[data-theme="light"] .header-bell-btn,
html[data-theme="light"] #headerBellBtn,
body.bp-theme-light .header-bell-btn {
  color: #0f172a !important;
}

[data-theme="light"] .header-bell-icon,
[data-theme="light"] .header-bell-btn .header-bell-icon,
[data-theme="light"] #headerBellBtn svg,
[data-theme="light"] .header-bell-btn svg,
html[data-theme="light"] .header-bell-icon,
html[data-theme="light"] .header-bell-btn .header-bell-icon,
html[data-theme="light"] #headerBellBtn svg,
html[data-theme="light"] .header-bell-btn svg,
body.bp-theme-light .header-bell-icon {
  color: #0f172a !important;
  stroke: #0f172a !important;
}

[data-theme="light"] .header-bell-btn:hover,
[data-theme="light"] #headerBellBtn:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #000000 !important;
}

[data-theme="light"] .header-bell-btn:hover .header-bell-icon,
[data-theme="light"] #headerBellBtn:hover svg {
  color: #000000 !important;
  stroke: #000000 !important;
}

/* ===================================================
   FEED CARD ACTIONS: SHARE BUTTON PLACED AFTER SAVE (ROW 2)
   - Pill buttons: [ ☕ Coffee ] [ 🔖 Save ] [ ↗ Share ]
   - Fits side-by-side cleanly without dropping Share to Row 3
   =================================================== */
.card-action-bar .card-action-left,
.news-card .card-action-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.card-action-btn.card-coffee-btn,
.card-action-btn.coffee-btn,
.card-action-btn.card-save-btn,
.card-action-btn.save-btn,
.card-save-btn,
.card-action-btn.share-trigger-btn,
.share-trigger-btn,
.card-action-btn.card-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  padding: 0 12px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  height: 36px !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.card-share-container {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 600px) {

  .card-action-bar .card-action-left,
  .news-card .card-action-left {
    gap: 6px !important;
  }

  .card-vote-pill,
  .card-action-btn.card-comments-btn {
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 0.82rem !important;
    gap: 5px !important;
  }

  .card-action-btn.card-coffee-btn,
  .card-action-btn.card-save-btn,
  .card-save-btn,
  .card-action-btn.share-trigger-btn,
  .share-trigger-btn,
  .card-action-btn.card-share-btn {
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 0.80rem !important;
    gap: 5px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   GLOBAL AUTHOR FOLLOW BUTTON: FOLLOWING STATE ON DARK/LIGHT THEMES
   Ensures text and SVG stay crisp and readable on touch/click/hover
   ══════════════════════════════════════════════════════════════════ */
.author-follow-btn.following {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.author-follow-btn.following svg {
  stroke: #e2e8f0 !important;
  color: #e2e8f0 !important;
}

.author-follow-btn.following:hover,
.author-follow-btn.following:focus,
.author-follow-btn.following:active {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: none !important;
}

.author-follow-btn.following:hover svg,
.author-follow-btn.following:focus svg,
.author-follow-btn.following:active svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

[data-theme="light"] .author-follow-btn.following,
body.bp-theme-light .author-follow-btn.following {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #334155 !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}

[data-theme="light"] .author-follow-btn.following svg,
body.bp-theme-light .author-follow-btn.following svg {
  stroke: #334155 !important;
  color: #334155 !important;
}

[data-theme="light"] .author-follow-btn.following:hover,
[data-theme="light"] .author-follow-btn.following:focus,
[data-theme="light"] .author-follow-btn.following:active,
body.bp-theme-light .author-follow-btn.following:hover,
body.bp-theme-light .author-follow-btn.following:focus,
body.bp-theme-light .author-follow-btn.following:active {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.28) !important;
}

[data-theme="light"] .author-follow-btn.following:hover svg,
[data-theme="light"] .author-follow-btn.following:focus svg,
[data-theme="light"] .author-follow-btn.following:active svg,
body.bp-theme-light .author-follow-btn.following:hover svg,
body.bp-theme-light .author-follow-btn.following:focus svg,
body.bp-theme-light .author-follow-btn.following:active svg {
  stroke: #0f172a !important;
  color: #0f172a !important;
}

/* ══════════════════════════════════════════════════════════════════
   CARD HEADER FOLLOW BUTTON (Image 1 Specification: Charcoal Capsule, White Bold Text, No Icon)
   ══════════════════════════════════════════════════════════════════ */
.card-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.card-author-follow-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  height: 32px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  user-select: none !important;
  box-sizing: border-box !important;
  -webkit-tap-highlight-color: transparent !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

/* 1. Unfollowed State in Dark Mode (Pure Solid White Capsule with Bold Black Text - All Places - Matching Image 3) */
.card-author-follow-btn:not(.following),
.author-follow-btn:not(.following),
.user-profile-follow-btn:not(.following),
.profile-follow-btn:not(.following),
.search-user-follow-btn:not(.following),
.following-toggle-btn:not(.following),
#articleAuthorMetaFollowBtn:not(.following),
#userProfileFollowBtn:not(.following),
.bottom-author-row .author-follow-btn:not(.following),
.ranker-author-name-row .author-follow-btn:not(.following),
button.card-author-follow-btn:not(.following),
button.author-follow-btn:not(.following) {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  font-weight: 700 !important;
}

.card-author-follow-btn:not(.following):hover,
.card-author-follow-btn:not(.following):active,
.author-follow-btn:not(.following):hover,
.author-follow-btn:not(.following):active,
.user-profile-follow-btn:not(.following):hover,
.user-profile-follow-btn:not(.following):active,
.profile-follow-btn:not(.following):hover,
.profile-follow-btn:not(.following):active,
.search-user-follow-btn:not(.following):hover,
.search-user-follow-btn:not(.following):active,
.following-toggle-btn:not(.following):hover,
.following-toggle-btn:not(.following):active,
#articleAuthorMetaFollowBtn:not(.following):hover,
#articleAuthorMetaFollowBtn:not(.following):active,
#userProfileFollowBtn:not(.following):hover,
#userProfileFollowBtn:not(.following):active {
  background: #e6e6e6 !important;
  color: #000000 !important;
  border-color: #e6e6e6 !important;
}

/* 2. Unfollowed State in Light Mode (Solid Black Capsule with Bold White Text - All Places) */
[data-theme="light"] .card-author-follow-btn:not(.following),
body.bp-theme-light .card-author-follow-btn:not(.following),
[data-theme="light"] .author-follow-btn:not(.following),
body.bp-theme-light .author-follow-btn:not(.following),
[data-theme="light"] .user-profile-follow-btn:not(.following),
body.bp-theme-light .user-profile-follow-btn:not(.following),
[data-theme="light"] .profile-follow-btn:not(.following),
body.bp-theme-light .profile-follow-btn:not(.following),
[data-theme="light"] .search-user-follow-btn:not(.following),
body.bp-theme-light .search-user-follow-btn:not(.following),
[data-theme="light"] .following-toggle-btn:not(.following),
body.bp-theme-light .following-toggle-btn:not(.following),
[data-theme="light"] #articleAuthorMetaFollowBtn:not(.following),
body.bp-theme-light #articleAuthorMetaFollowBtn:not(.following),
[data-theme="light"] #userProfileFollowBtn:not(.following),
body.bp-theme-light #userProfileFollowBtn:not(.following) {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  box-shadow: none !important;
}

[data-theme="light"] .card-author-follow-btn:not(.following):hover,
[data-theme="light"] .card-author-follow-btn:not(.following):active,
body.bp-theme-light .card-author-follow-btn:not(.following):hover,
body.bp-theme-light .card-author-follow-btn:not(.following):active,
[data-theme="light"] .author-follow-btn:not(.following):hover,
[data-theme="light"] .author-follow-btn:not(.following):active,
body.bp-theme-light .author-follow-btn:not(.following):hover,
body.bp-theme-light .author-follow-btn:not(.following):active,
[data-theme="light"] .user-profile-follow-btn:not(.following):hover,
[data-theme="light"] .user-profile-follow-btn:not(.following):active,
body.bp-theme-light .user-profile-follow-btn:not(.following):hover,
body.bp-theme-light .user-profile-follow-btn:not(.following):active,
[data-theme="light"] .profile-follow-btn:not(.following):hover,
[data-theme="light"] .profile-follow-btn:not(.following):active,
body.bp-theme-light .profile-follow-btn:not(.following):hover,
body.bp-theme-light .profile-follow-btn:not(.following):active,
[data-theme="light"] .search-user-follow-btn:not(.following):hover,
[data-theme="light"] .search-user-follow-btn:not(.following):active,
body.bp-theme-light .search-user-follow-btn:not(.following):hover,
body.bp-theme-light .search-user-follow-btn:not(.following):active,
[data-theme="light"] .following-toggle-btn:not(.following):hover,
[data-theme="light"] .following-toggle-btn:not(.following):active,
body.bp-theme-light .following-toggle-btn:not(.following):hover,
body.bp-theme-light .following-toggle-btn:not(.following):active,
[data-theme="light"] #articleAuthorMetaFollowBtn:not(.following):hover,
[data-theme="light"] #articleAuthorMetaFollowBtn:not(.following):active,
body.bp-theme-light #articleAuthorMetaFollowBtn:not(.following):hover,
body.bp-theme-light #articleAuthorMetaFollowBtn:not(.following):active,
[data-theme="light"] #userProfileFollowBtn:not(.following):hover,
[data-theme="light"] #userProfileFollowBtn:not(.following):active,
body.bp-theme-light #userProfileFollowBtn:not(.following):hover,
body.bp-theme-light #userProfileFollowBtn:not(.following):active {
  background: #18191c !important;
  color: #ffffff !important;
}

/* 3. Following State in Dark Mode (Dark capsule #1e1f24, border, user-check icon, white text) */
.card-author-follow-btn.following,
.author-follow-btn.following,
.user-profile-follow-btn.following,
.profile-follow-btn.following,
.search-user-follow-btn.following,
.following-toggle-btn.following,
#articleAuthorMetaFollowBtn.following,
#userProfileFollowBtn.following {
  background: #1e1f24 !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.card-author-follow-btn.following svg,
.author-follow-btn.following svg,
.user-profile-follow-btn.following svg,
.profile-follow-btn.following svg,
.search-user-follow-btn.following svg,
.following-toggle-btn.following svg,
#articleAuthorMetaFollowBtn.following svg,
#userProfileFollowBtn.following svg {
  stroke: #e5e7eb !important;
  color: #e5e7eb !important;
  stroke-width: 2.5 !important;
}

.card-author-follow-btn.following:hover,
.card-author-follow-btn.following:active,
.card-author-follow-btn.following:focus,
.author-follow-btn.following:hover,
.author-follow-btn.following:active,
.author-follow-btn.following:focus,
.user-profile-follow-btn.following:hover,
.user-profile-follow-btn.following:active,
.user-profile-follow-btn.following:focus,
.profile-follow-btn.following:hover,
.profile-follow-btn.following:active,
.profile-follow-btn.following:focus,
.search-user-follow-btn.following:hover,
.search-user-follow-btn.following:active,
.search-user-follow-btn.following:focus,
.following-toggle-btn.following:hover,
.following-toggle-btn.following:active,
.following-toggle-btn.following:focus,
#articleAuthorMetaFollowBtn.following:hover,
#articleAuthorMetaFollowBtn.following:active,
#articleAuthorMetaFollowBtn.following:focus,
#userProfileFollowBtn.following:hover,
#userProfileFollowBtn.following:active,
#userProfileFollowBtn.following:focus {
  background: #282a30 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  opacity: 1 !important;
}

.card-author-follow-btn.following:hover svg,
.card-author-follow-btn.following:active svg,
.card-author-follow-btn.following:focus svg,
.author-follow-btn.following:hover svg,
.author-follow-btn.following:active svg,
.author-follow-btn.following:focus svg,
.user-profile-follow-btn.following:hover svg,
.user-profile-follow-btn.following:active svg,
.user-profile-follow-btn.following:focus svg,
.profile-follow-btn.following:hover svg,
.profile-follow-btn.following:active svg,
.profile-follow-btn.following:focus svg,
.search-user-follow-btn.following:hover svg,
.search-user-follow-btn.following:active svg,
.search-user-follow-btn.following:focus svg,
.following-toggle-btn.following:hover svg,
.following-toggle-btn.following:active svg,
.following-toggle-btn.following:focus svg,
#articleAuthorMetaFollowBtn.following:hover svg,
#articleAuthorMetaFollowBtn.following:active svg,
#articleAuthorMetaFollowBtn.following:focus svg,
#userProfileFollowBtn.following:hover svg,
#userProfileFollowBtn.following:active svg,
#userProfileFollowBtn.following:focus svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* 4. Following State in Light Mode */
[data-theme="light"] .card-author-follow-btn.following,
body.bp-theme-light .card-author-follow-btn.following,
[data-theme="light"] .author-follow-btn.following,
body.bp-theme-light .author-follow-btn.following,
[data-theme="light"] .user-profile-follow-btn.following,
body.bp-theme-light .user-profile-follow-btn.following,
[data-theme="light"] .profile-follow-btn.following,
body.bp-theme-light .profile-follow-btn.following,
[data-theme="light"] .search-user-follow-btn.following,
body.bp-theme-light .search-user-follow-btn.following,
[data-theme="light"] .following-toggle-btn.following,
body.bp-theme-light .following-toggle-btn.following,
[data-theme="light"] #articleAuthorMetaFollowBtn.following,
body.bp-theme-light #articleAuthorMetaFollowBtn.following,
[data-theme="light"] #userProfileFollowBtn.following,
body.bp-theme-light #userProfileFollowBtn.following {
  background: #e4e6eb !important;
  color: #0f1419 !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

[data-theme="light"] .card-author-follow-btn.following svg,
body.bp-theme-light .card-author-follow-btn.following svg,
[data-theme="light"] .author-follow-btn.following svg,
body.bp-theme-light .author-follow-btn.following svg,
[data-theme="light"] .user-profile-follow-btn.following svg,
body.bp-theme-light .user-profile-follow-btn.following svg,
[data-theme="light"] .profile-follow-btn.following svg,
body.bp-theme-light .profile-follow-btn.following svg,
[data-theme="light"] .search-user-follow-btn.following svg,
body.bp-theme-light .search-user-follow-btn.following svg,
[data-theme="light"] .following-toggle-btn.following svg,
body.bp-theme-light .following-toggle-btn.following svg,
[data-theme="light"] #articleAuthorMetaFollowBtn.following svg,
body.bp-theme-light #articleAuthorMetaFollowBtn.following svg,
[data-theme="light"] #userProfileFollowBtn.following svg,
body.bp-theme-light #userProfileFollowBtn.following svg {
  stroke: #0f1419 !important;
  color: #0f1419 !important;
}

[data-theme="light"] .card-author-follow-btn.following:hover,
[data-theme="light"] .card-author-follow-btn.following:active,
[data-theme="light"] .card-author-follow-btn.following:focus,
body.bp-theme-light .card-author-follow-btn.following:hover,
body.bp-theme-light .card-author-follow-btn.following:active,
body.bp-theme-light .card-author-follow-btn.following:focus,
[data-theme="light"] .author-follow-btn.following:hover,
[data-theme="light"] .author-follow-btn.following:active,
[data-theme="light"] .author-follow-btn.following:focus,
body.bp-theme-light .author-follow-btn.following:hover,
body.bp-theme-light .author-follow-btn.following:active,
body.bp-theme-light .author-follow-btn.following:focus,
[data-theme="light"] .user-profile-follow-btn.following:hover,
[data-theme="light"] .user-profile-follow-btn.following:active,
[data-theme="light"] .user-profile-follow-btn.following:focus,
body.bp-theme-light .user-profile-follow-btn.following:hover,
body.bp-theme-light .user-profile-follow-btn.following:active,
body.bp-theme-light .user-profile-follow-btn.following:focus,
[data-theme="light"] .profile-follow-btn.following:hover,
[data-theme="light"] .profile-follow-btn.following:active,
[data-theme="light"] .profile-follow-btn.following:focus,
body.bp-theme-light .profile-follow-btn.following:hover,
body.bp-theme-light .profile-follow-btn.following:active,
body.bp-theme-light .profile-follow-btn.following:focus,
[data-theme="light"] .search-user-follow-btn.following:hover,
[data-theme="light"] .search-user-follow-btn.following:active,
[data-theme="light"] .search-user-follow-btn.following:focus,
body.bp-theme-light .search-user-follow-btn.following:hover,
body.bp-theme-light .search-user-follow-btn.following:active,
body.bp-theme-light .search-user-follow-btn.following:focus,
[data-theme="light"] .following-toggle-btn.following:hover,
[data-theme="light"] .following-toggle-btn.following:active,
[data-theme="light"] .following-toggle-btn.following:focus,
body.bp-theme-light .following-toggle-btn.following:hover,
body.bp-theme-light .following-toggle-btn.following:active,
body.bp-theme-light .following-toggle-btn.following:focus,
[data-theme="light"] #articleAuthorMetaFollowBtn.following:hover,
[data-theme="light"] #articleAuthorMetaFollowBtn.following:active,
[data-theme="light"] #articleAuthorMetaFollowBtn.following:focus,
body.bp-theme-light #articleAuthorMetaFollowBtn.following:hover,
body.bp-theme-light #articleAuthorMetaFollowBtn.following:active,
body.bp-theme-light #articleAuthorMetaFollowBtn.following:focus,
[data-theme="light"] #userProfileFollowBtn.following:hover,
[data-theme="light"] #userProfileFollowBtn.following:active,
[data-theme="light"] #userProfileFollowBtn.following:focus,
body.bp-theme-light #userProfileFollowBtn.following:hover,
body.bp-theme-light #userProfileFollowBtn.following:active,
body.bp-theme-light #userProfileFollowBtn.following:focus {
  background: #d8dadf !important;
  color: #000000 !important;
  opacity: 1 !important;
}

/* Badges Container (Breaking, Sponsored - Multi-select or None) */
.card-top-badges-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-top-badges-container[style*="display: none"],
.card-top-badges-container[style*="display:none"] {
  display: none !important;
}

/* Minimal Sponsored Banner (e.g. "Sponsored by ChatGPT ⓘ chatgpt.com") */
.card-top-sponsored-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #9ca3af;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 100%;
}

.card-top-sponsored-banner[style*="display: none"],
.card-top-sponsored-banner[style*="display:none"] {
  display: none !important;
}

.card-top-sponsored-banner .card-sponsored-label {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #facc15 !important;
}

.card-top-sponsored-banner .card-sponsored-by-name {
  color: #facc15 !important;
  font-weight: 700 !important;
}

.card-top-sponsored-banner .card-sponsored-info-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.78rem !important;
  color: #9ca3af !important;
}

.card-top-sponsored-banner .card-sponsored-domain {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: #9ca3af !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  transition: color 0.15s ease !important;
}

.card-top-sponsored-banner .card-sponsored-domain:hover {
  color: #38bdf8 !important;
}

[data-theme="light"] .card-top-sponsored-banner,
body.bp-theme-light .card-top-sponsored-banner {
  color: #4b5563 !important;
}

[data-theme="light"] .card-top-sponsored-banner .card-sponsored-label,
body.bp-theme-light .card-top-sponsored-banner .card-sponsored-label {
  color: #d97706 !important;
}

[data-theme="light"] .card-top-sponsored-banner .card-sponsored-by-name,
body.bp-theme-light .card-top-sponsored-banner .card-sponsored-by-name {
  color: #d97706 !important;
}

[data-theme="light"] .card-top-sponsored-banner .card-sponsored-domain,
body.bp-theme-light .card-top-sponsored-banner .card-sponsored-domain,
[data-theme="light"] .card-top-sponsored-banner .card-sponsored-info-icon,
body.bp-theme-light .card-top-sponsored-banner .card-sponsored-info-icon {
  color: #6b7280 !important;
}

[data-theme="light"] .card-top-sponsored-banner .card-sponsored-domain:hover,
body.bp-theme-light .card-top-sponsored-banner .card-sponsored-domain:hover {
  color: #2563eb !important;
}

/* Breaking News Pill (Yellow background with black text, NO emoji or icon) */
.card-top-breaking-banner {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.card-top-breaking-banner[style*="display: none"],
.card-top-breaking-banner[style*="display:none"] {
  display: none !important;
}

.card-top-breaking-banner .badge-breaking-pill,
.badge-breaking-pill,
.badge-breaking {
  background: #facc15 !important;
  color: #000000 !important;
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  text-transform: uppercase !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.3 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

.card-top-factchecked-banner {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.card-top-factchecked-banner[style*="display: none"],
.card-top-factchecked-banner[style*="display:none"] {
  display: none !important;
}

.card-top-factchecked-banner .badge-factchecked-pill,
.badge-factchecked-pill,
.badge-factchecked {
  background: #10b981 !important;
  color: #ffffff !important;
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  text-transform: uppercase !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.3 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

/* ══════════════════════════════════════════════════════════════════
   CARD SAVE BUTTON (Classic Outline Bookmark "Like Before")
   ══════════════════════════════════════════════════════════════════ */
.card-save-btn svg,
.card-action-btn.card-save-btn svg,
.ninegag-save-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

.card-save-btn:not(.active-saved) svg,
.card-action-btn.card-save-btn:not(.active-saved) svg,
.ninegag-save-btn:not(.active-saved) svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.card-save-btn:not(.active-saved) svg path,
.card-action-btn.card-save-btn:not(.active-saved) svg path,
.ninegag-save-btn:not(.active-saved) svg path {
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
}

.card-save-btn.active-saved svg,
.card-action-btn.card-save-btn.active-saved svg,
.ninegag-save-btn.active-saved svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
  stroke-width: 2 !important;
}

.card-save-btn.active-saved svg path,
.card-action-btn.card-save-btn.active-saved svg path,
.ninegag-save-btn.active-saved svg path {
  fill: #facc15 !important;
  stroke: #facc15 !important;
  stroke-width: 2 !important;
}

[data-theme="light"] .card-save-btn.active-saved svg,
[data-theme="light"] .card-action-btn.card-save-btn.active-saved svg,
[data-theme="light"] .ninegag-save-btn.active-saved svg {
  fill: #ca8a04 !important;
  stroke: #ca8a04 !important;
}

[data-theme="light"] .card-save-btn.active-saved svg path,
[data-theme="light"] .card-action-btn.card-save-btn.active-saved svg path,
[data-theme="light"] .ninegag-save-btn.active-saved svg path {
  fill: #ca8a04 !important;
  stroke: #ca8a04 !important;
}

/* ══════════════════════════════════════════════════════════════════
   HEADER PILL BUTTONS (Matching 1st Image Split Capsule Styling: [ Text | Icon ])
   - Transparent background
   - Subtle 1px border with 9999px capsule radius
   - Height: 38px
   - Left side: Label with 500 weight, 14px size, comfortable padding
   - Vertical divider: 1px border-left separating text from icon
   - Right side: Centered icon (14x14)
   ══════════════════════════════════════════════════════════════════ */
.header-pill-btn,
#headerPillNewsletter,
#headerPillMagazine,
#headerPillShop,
#headerPillPremium {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  user-select: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  gap: 0 !important;
  font-family: inherit !important;
}

.header-pill-btn:hover,
#headerPillNewsletter:hover,
#headerPillMagazine:hover,
#headerPillShop:hover,
#headerPillPremium:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  transform: none !important;
}

/* Pill Label (Left Cell) */
.header-pill-btn .header-pill-label,
#headerPillNewsletter .header-pill-label,
#headerPillMagazine .header-pill-label,
#headerPillShop .header-pill-label,
#headerPillPremium .header-pill-label {
  order: 1 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 14px 0 18px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  color: #ededed !important;
  line-height: 1 !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

/* Pill Icon & Divider (Right Cell Container - SPAN ONLY) */
.header-pill-btn .header-pill-icon,
#headerPillNewsletter .header-lock-badge,
#headerPillMagazine .header-pill-icon,
#headerPillShop .header-pill-icon,
#headerPillPremium .header-pill-icon {
  order: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  min-height: 100% !important;
  padding: 0 13px !important;
  margin: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-sizing: border-box !important;
  color: #ededed !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: border-color 0.18s ease !important;
  flex-shrink: 0 !important;
}

.header-pill-btn:hover .header-pill-icon,
#headerPillNewsletter:hover .header-lock-badge,
#headerPillMagazine:hover .header-pill-icon,
#headerPillShop:hover .header-pill-icon,
#headerPillPremium:hover .header-pill-icon {
  border-left-color: rgba(255, 255, 255, 0.38) !important;
}

/* Newsletters: hide extra envelope icon so it cleanly renders [ Newsletters | 🔒 ] */
#headerPillNewsletter .header-pill-icon {
  display: none !important;
}

/* SVG icons inside right pill cells */
.header-pill-btn .header-pill-icon svg,
#headerPillNewsletter .header-lock-badge svg,
#headerPillMagazine .header-pill-icon svg,
#headerPillShop .header-pill-icon svg,
#headerPillPremium .header-pill-icon svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  flex-shrink: 0 !important;
  display: block !important;
  stroke: currentColor !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Premium Shield Icon (Image 4 Spec) */
.header-pill-btn.premium-pill .header-pill-icon svg,
#headerPillPremium .header-pill-icon svg {
  color: #facc15 !important;
  stroke: #facc15 !important;
  fill: none !important;
}

/* ══════════════════════════════════════════════════════════════════
   LIGHT MODE HEADER PILLS (Strictly High Specificity Overrides)
   ══════════════════════════════════════════════════════════════════ */
[data-theme="light"] .header-pill-btn,
[data-theme="light"] #headerPillNewsletter,
[data-theme="light"] #headerPillMagazine,
[data-theme="light"] #headerPillShop,
[data-theme="light"] #headerPillPremium,
html[data-theme="light"] .header-pill-btn,
html[data-theme="light"] #headerPillNewsletter,
html[data-theme="light"] #headerPillMagazine,
html[data-theme="light"] #headerPillShop,
html[data-theme="light"] #headerPillPremium,
body.bp-theme-light .header-pill-btn,
body.bp-theme-light #headerPillNewsletter,
body.bp-theme-light #headerPillMagazine,
body.bp-theme-light #headerPillShop,
body.bp-theme-light #headerPillPremium {
  background: transparent !important;
  border: 1px solid rgba(0, 0, 0, 0.22) !important;
  color: #18191c !important;
}

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

[data-theme="light"] .header-pill-btn .header-pill-label,
[data-theme="light"] #headerPillNewsletter .header-pill-label,
[data-theme="light"] #headerPillMagazine .header-pill-label,
[data-theme="light"] #headerPillShop .header-pill-label,
[data-theme="light"] #headerPillPremium .header-pill-label,
html[data-theme="light"] .header-pill-btn .header-pill-label,
html[data-theme="light"] #headerPillNewsletter .header-pill-label,
html[data-theme="light"] #headerPillMagazine .header-pill-label,
html[data-theme="light"] #headerPillShop .header-pill-label,
html[data-theme="light"] #headerPillPremium .header-pill-label,
body.bp-theme-light .header-pill-btn .header-pill-label {
  color: #18191c !important;
}

[data-theme="light"] .header-pill-btn .header-pill-icon,
[data-theme="light"] #headerPillNewsletter .header-lock-badge,
[data-theme="light"] #headerPillMagazine .header-pill-icon,
[data-theme="light"] #headerPillShop .header-pill-icon,
[data-theme="light"] #headerPillPremium .header-pill-icon,
html[data-theme="light"] .header-pill-btn .header-pill-icon,
html[data-theme="light"] #headerPillNewsletter .header-lock-badge,
html[data-theme="light"] #headerPillMagazine .header-pill-icon,
html[data-theme="light"] #headerPillShop .header-pill-icon,
html[data-theme="light"] #headerPillPremium .header-pill-icon,
body.bp-theme-light .header-pill-btn .header-pill-icon {
  border-left: 1px solid rgba(0, 0, 0, 0.22) !important;
  color: #18191c !important;
}

[data-theme="light"] .header-pill-btn:hover .header-pill-icon,
[data-theme="light"] #headerPillNewsletter:hover .header-lock-badge,
[data-theme="light"] #headerPillMagazine:hover .header-pill-icon,
[data-theme="light"] #headerPillShop:hover .header-pill-icon,
[data-theme="light"] #headerPillPremium:hover .header-pill-icon {
  border-left-color: rgba(0, 0, 0, 0.35) !important;
}

[data-theme="light"] .header-pill-btn .header-pill-icon svg,
[data-theme="light"] #headerPillNewsletter .header-lock-badge svg,
[data-theme="light"] #headerPillMagazine .header-pill-icon svg,
[data-theme="light"] #headerPillShop .header-pill-icon svg,
html[data-theme="light"] .header-pill-btn .header-pill-icon svg,
html[data-theme="light"] #headerPillNewsletter .header-lock-badge svg,
html[data-theme="light"] #headerPillMagazine .header-pill-icon svg,
html[data-theme="light"] #headerPillShop .header-pill-icon svg {
  color: #18191c !important;
  fill: currentColor !important;
  stroke: none !important;
}

[data-theme="light"] .header-pill-btn.premium-pill .header-pill-icon svg,
[data-theme="light"] #headerPillPremium .header-pill-icon svg,
html[data-theme="light"] #headerPillPremium .header-pill-icon svg {
  color: #ca8a04 !important;
  stroke: #ca8a04 !important;
  fill: none !important;
}

/* ══════════════════════════════════════════════════════════════════
   REMOVE POST BUTTON ENTIRELY FROM HEADER (User Request)
   ══════════════════════════════════════════════════════════════════ */
.header-post-btn,
#headerPostBtn,
.header-right .header-post-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ══════════════════════════════════════════════════════════════════
   REMOVE THEME TOGGLE FROM TOP HEADER ACROSS DESKTOP & MOBILE
   (Theme setting is placed under Settings page)
   ══════════════════════════════════════════════════════════════════ */
.top-header .theme-toggle,
.header-right .theme-toggle,
.header-middle .theme-toggle,
#themeToggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#settingsAcctThemeToggle,
.acct-appearance-wrap .theme-toggle {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ══════════════════════════════════════════════════════════════════
   EXPAND DESKTOP SEARCH BAR
   (Takes advantage of space freed up by removed header theme toggle)
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 821px) {
  .header-search {
    flex: 1 1 760px !important;
    max-width: 860px !important;
    min-width: 240px !important;
    width: auto !important;
    margin: 0 10px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   FOLLOW BUTTON: SOLID BLACK ON LIGHT MODE (Matching Image 3)
   ══════════════════════════════════════════════════════════════════ */
[data-theme="light"] .card-author-follow-btn:not(.following),
body.bp-theme-light .card-author-follow-btn:not(.following),
[data-theme="light"] .author-follow-btn:not(.following),
body.bp-theme-light .author-follow-btn:not(.following),
[data-theme="light"] .user-profile-follow-btn:not(.following),
body.bp-theme-light .user-profile-follow-btn:not(.following),
[data-theme="light"] .search-user-follow-btn:not(.following),
body.bp-theme-light .search-user-follow-btn:not(.following),
[data-theme="light"] .profile-follow-btn:not(.following),
body.bp-theme-light .profile-follow-btn:not(.following),
[data-theme="light"] .following-toggle-btn:not(.following),
body.bp-theme-light .following-toggle-btn:not(.following),
[data-theme="light"] .bottom-author-row .author-follow-btn:not(.following),
body.bp-theme-light .bottom-author-row .author-follow-btn:not(.following),
[data-theme="light"] .ranker-author-name-row .author-follow-btn:not(.following),
body.bp-theme-light .ranker-author-name-row .author-follow-btn:not(.following),
[data-theme="light"] button.card-author-follow-btn:not(.following),
[data-theme="light"] button.author-follow-btn:not(.following) {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

[data-theme="light"] .card-author-follow-btn:not(.following):hover,
[data-theme="light"] .card-author-follow-btn:not(.following):active,
body.bp-theme-light .card-author-follow-btn:not(.following):hover,
body.bp-theme-light .card-author-follow-btn:not(.following):active,
[data-theme="light"] .author-follow-btn:not(.following):hover,
[data-theme="light"] .author-follow-btn:not(.following):active,
body.bp-theme-light .author-follow-btn:not(.following):hover,
body.bp-theme-light .author-follow-btn:not(.following):active,
[data-theme="light"] .user-profile-follow-btn:not(.following):hover,
[data-theme="light"] .user-profile-follow-btn:not(.following):active,
[data-theme="light"] .search-user-follow-btn:not(.following):hover,
[data-theme="light"] .search-user-follow-btn:not(.following):active,
[data-theme="light"] .profile-follow-btn:not(.following):hover,
[data-theme="light"] .profile-follow-btn:not(.following):active {
  background: #18191c !important;
  color: #ffffff !important;
  border-color: #18191c !important;
}

/* ══════════════════════════════════════════════════════════════════
   COMPANY DETAILS & ALL SIDEBAR ITEMS BELOW IT ON LIGHT MODE (Image 4)
   ══════════════════════════════════════════════════════════════════ */
[data-theme="light"] .company-details-section,
html[data-theme="light"] .company-details-section {
  color: #18191c !important;
}

[data-theme="light"] .company-details-toggle,
html[data-theme="light"] .company-details-toggle,
body.bp-theme-light .company-details-toggle {
  color: #18191c !important;
  background: transparent !important;
}

[data-theme="light"] .company-details-toggle:hover,
[data-theme="light"] .company-details-toggle:focus,
[data-theme="light"] .company-details-toggle:active,
html[data-theme="light"] .company-details-toggle:hover,
html[data-theme="light"] .company-details-toggle:focus,
html[data-theme="light"] .company-details-toggle:active {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #18191c !important;
}

[data-theme="light"] .company-details-toggle span,
[data-theme="light"] .company-toggle-left,
[data-theme="light"] .company-toggle-left span,
[data-theme="light"] .company-toggle-arrow,
html[data-theme="light"] .company-details-toggle span,
html[data-theme="light"] .company-toggle-left,
html[data-theme="light"] .company-toggle-left span,
html[data-theme="light"] .company-toggle-arrow {
  color: #18191c !important;
  fill: #18191c !important;
}

[data-theme="light"] .company-details-section.open .company-details-toggle,
html[data-theme="light"] .company-details-section.open .company-details-toggle {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #18191c !important;
}

[data-theme="light"] .company-details-content .nav-item,
[data-theme="light"] .company-details-content .nav-item.compact,
[data-theme="light"] .company-details-content .nav-item.compact.sub-link,
html[data-theme="light"] .company-details-content .nav-item,
html[data-theme="light"] .company-details-content .nav-item.compact,
html[data-theme="light"] .company-details-content .nav-item.compact.sub-link {
  color: #334155 !important;
  background: transparent !important;
}

[data-theme="light"] .company-details-content .nav-item .nav-label,
[data-theme="light"] .company-details-content .nav-item .nav-icon,
[data-theme="light"] .company-details-content .nav-item .nav-icon svg,
[data-theme="light"] .company-details-content .nav-item .nav-lock-badge,
[data-theme="light"] .company-details-content .nav-item .nav-lock-badge svg,
html[data-theme="light"] .company-details-content .nav-item .nav-label,
html[data-theme="light"] .company-details-content .nav-item .nav-icon svg {
  color: #18191c !important;
  fill: currentColor !important;
}

[data-theme="light"] .company-details-content .nav-item:hover,
[data-theme="light"] .company-details-content .nav-item:focus,
[data-theme="light"] .company-details-content .nav-item.compact.sub-link:hover,
html[data-theme="light"] .company-details-content .nav-item:hover,
html[data-theme="light"] .company-details-content .nav-item.compact.sub-link:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #000000 !important;
}

[data-theme="light"] .follow-us-header,
html[data-theme="light"] .follow-us-header {
  color: #64748b !important;
}

[data-theme="light"] .follow-us-item,
html[data-theme="light"] .follow-us-item {
  color: #18191c !important;
  background: transparent !important;
}

[data-theme="light"] .follow-us-item .follow-us-label,
html[data-theme="light"] .follow-us-item .follow-us-label {
  color: #18191c !important;
}

[data-theme="light"] .follow-us-item:hover,
html[data-theme="light"] .follow-us-item:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #000000 !important;
}

[data-theme="light"] .sidebar-footer-links a,
html[data-theme="light"] .sidebar-footer-links a,
[data-theme="light"] .sidebar-copyright,
html[data-theme="light"] .sidebar-copyright {
  color: #64748b !important;
}

[data-theme="light"] .sidebar-footer-links a:hover,
html[data-theme="light"] .sidebar-footer-links a:hover {
  color: #18191c !important;
}

/* Post / Comment Button Styling - Crisp Black Text on Signature Yellow Pill */
.bp-post-btn,
#bpPostCommentBtn {
  background: var(--accent, #facc15) !important;
  color: #000000 !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: var(--radius-pill, 9999px);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bp-post-btn:hover:not(:disabled),
#bpPostCommentBtn:hover:not(:disabled) {
  background: var(--accent-hover, #eab308) !important;
  color: #000000 !important;
  transform: translateY(-1px);
}

.bp-post-btn:disabled,
#bpPostCommentBtn:disabled {
  opacity: 0.45;
  color: #000000 !important;
  cursor: not-allowed;
  transform: none;
}


