/* ===================================================
   BIRDPOST — User Profile Page CSS
   =================================================== */

/* ===================================================
   USER PROFILE — 3-COLUMN UNIFIED LAYOUT
   =================================================== */

.user-profile-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 340px;
  grid-template-areas: "left main right";
  min-height: calc(100vh - 64px);
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  align-items: start;
}

.user-page-main {
  grid-area: main;
  min-width: 0;
  padding: 24px 0 60px 0;
  border-right: 1px solid var(--border);
  box-sizing: border-box;
}

.user-page-container {
  max-width: 100%;
  margin: 0;
  width: 100%;
}

/* User Profile Header (matches user screenshot) */
.user-profile-header {
  padding: 0 28px 24px 28px;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  margin-bottom: 0;
}

[data-theme="light"] .user-profile-header {
  border-bottom-color: #e2e8f0;
}

.user-header-top-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.user-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #181b1e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.45) !important;
  border: 3px solid #facc15 !important;
  user-select: none;
  overflow: hidden;
}

.user-avatar-text {
  display: none !important;
}

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

.user-meta-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.user-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.user-display-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-white, #ffffff);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

[data-theme="light"] .user-display-name {
  color: #0f172a;
}

[data-theme="light"] .user-handle-tag {
  color: #64748b;
}

/* ═══════════════════════════════════════════════════════════
   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: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
  /* Normal, sharp, flat, no blur, no glow */
  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;
}

/* Tooltip Popover (Compact: Only "Verified Account", Positioned BELOW the tick) */
.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;
}

/* Pointer arrow border on top pointing UP to the tick */
.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;
}

/* Pointer arrow fill on top pointing UP to the tick */
.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;
}

/* Show on click (.active) and on hover */
.user-verified-badge.active .verified-tooltip-popover,
.user-verified-badge:hover .verified-tooltip-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@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;
  }
}

.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: none !important;
  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;
}

/* ═══════════════════════════════════════════════════════════
   USER PROFILE FOLLOW BUTTON (Image 1 & Image 4 Spec)
   ═══════════════════════════════════════════════════════════ */
.user-profile-follow-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: 12px;
  padding: 6px 20px;
  min-height: 36px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: #eff3f4;
  color: #0f1419;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  user-select: none;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  line-height: 1.2;
}

.user-profile-follow-btn svg {
  display: inline-block;
  vertical-align: middle;
}

.user-profile-follow-btn:hover {
  background: #d7dbdc;
  transform: translateY(-1px);
}

.user-profile-follow-btn.following {
  background: transparent;
  color: #eff3f4;
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-weight: 600;
  box-shadow: none;
}

.user-profile-follow-btn.following:hover {
  background: rgba(239, 243, 244, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

[data-theme="light"] .user-profile-follow-btn {
  background: #0f1419;
  color: #ffffff;
  border: 1px solid transparent;
}

[data-theme="light"] .user-profile-follow-btn:hover {
  background: #272c30;
}

[data-theme="light"] .user-profile-follow-btn.following {
  background: transparent;
  color: #0f1419;
  border: 1px solid rgba(15, 20, 25, 0.35);
  box-shadow: none;
}

[data-theme="light"] .user-profile-follow-btn.following:hover {
  background: rgba(15, 20, 25, 0.06);
  border-color: rgba(15, 20, 25, 0.5);
}

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

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

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

.toast-notification-box .toast-message {
  flex: 1;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.birdpost-toast-bar .birdpost-toast-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.birdpost-toast-bar .birdpost-toast-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.75;
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.birdpost-toast-bar .birdpost-toast-close:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* ═══════════════════════════════════════════════════════════
   UNFOLLOW QUICK ALERT / POPOVER (Image 1 & Image 3 Spec)
   ═══════════════════════════════════════════════════════════ */
.unfollow-modal-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  display: block;
  z-index: 100002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.unfollow-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.unfollow-modal-dialog {
  background: #242526;
  color: #e4e6eb;
  border-radius: 16px;
  padding: 22px 24px 18px 24px;
  width: 320px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: scale(0.96);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
  position: fixed;
}

.unfollow-modal-overlay.active .unfollow-modal-dialog {
  transform: scale(1);
}

.unfollow-modal-title {
  margin: 0 0 28px 0;
  font-size: 16.5px;
  font-weight: 500;
  color: #e4e6eb;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.unfollow-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.unfollow-modal-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: opacity 0.15s ease, background-color 0.15s ease;
  user-select: none;
}

.unfollow-modal-cancel {
  color: #ffffff;
}

.unfollow-modal-cancel:hover {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.06);
}

.unfollow-modal-confirm {
  color: #1d9bf0;
}

.unfollow-modal-confirm:hover {
  opacity: 0.85;
  background: rgba(29, 155, 240, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   BIRDPOST STAFF BADGE (Yellow Smiley + Yellow Text)
   ═══════════════════════════════════════════════════════════ */
.user-staff-badge-row {
  display: none !important;
}

.user-staff-seal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-staff-seal-icon svg {
  display: block;
}

.user-staff-badge-text {
  font-size: 15px;
  font-weight: 700;
  color: #eff3f4;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

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

/* Social icons strip placed immediately after user bio description */
.user-social-icons-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  margin-left: 0;
  vertical-align: middle;
}

.user-social-icons-strip:empty {
  display: none !important;
}

.user-social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  vertical-align: middle;
}

.user-social-icon-link svg {
  width: 11px;
  height: 11px;
  display: block;
  transition: transform 0.2s ease;
}

.user-social-icon-link:hover {
  transform: translateY(-1.5px) scale(1.08);
  filter: brightness(1.15);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.user-social-icon-link:active {
  transform: translateY(0) scale(0.96);
}

/* 1. X: Solid filled black circle with white X logo */
.user-social-icon-link.social-x {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* 2. Instagram: Solid filled vibrant gradient with white logo */
.user-social-icon-link.social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
  color: #ffffff !important;
  border: none !important;
}

/* 3. Facebook: Solid filled brand blue with white logo */
.user-social-icon-link.social-facebook {
  background: #1877f2 !important;
  color: #ffffff !important;
  border: none !important;
}

/* 4. LinkedIn: Solid filled brand blue with white logo */
.user-social-icon-link.social-linkedin {
  background: #0a66c2 !important;
  color: #ffffff !important;
  border: none !important;
}

/* Light mode support: Keep all logos filled with their default color */
[data-theme="light"] .user-social-icon-link.social-x {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .user-social-icon-link.social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 1.5px 4px rgba(214, 36, 159, 0.35);
}

[data-theme="light"] .user-social-icon-link.social-facebook {
  background: #1877f2 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 1.5px 4px rgba(24, 119, 242, 0.35);
}

[data-theme="light"] .user-social-icon-link.social-linkedin {
  background: #0a66c2 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 1.5px 4px rgba(10, 102, 194, 0.35);
}

.user-sub-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  padding: 0;
}

.user-sub-line .user-dot,
.user-sub-line .user-days-count,
.user-days-count {
  display: none !important;
}

.user-handle-tag {
  color: #94a3b8;
}

.user-role-label {
  background: rgba(0, 174, 236, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 174, 236, 0.25);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-bio-section {
  margin-top: 2px;
  margin-bottom: 2px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.user-bio-headline {
  display: none !important;
}

.user-bio-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  max-width: 680px;
}

.user-bio-desc:empty {
  display: none;
}

[data-theme="light"] .user-bio-desc {
  color: #64748b;
}

/* ==========================================================================
   USER STATS STRIP & NAVIGATION (Image 3 Pill Capsule Design, Starts from Left)
   ========================================================================== */
.user-stats-strip {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px 10px !important;
  padding: 18px 0 16px 0 !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 100% !important;
  overflow: visible !important;
  scrollbar-width: none;
}
.user-stats-strip::-webkit-scrollbar {
  display: none;
}

/* Image 3 Pill Capsule Style */
.user-stat-col {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 9999px !important;
  cursor: pointer;
  padding: 7px 16px !important;
  position: relative;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  outline: none;
  box-shadow: none !important;
  text-align: center;
  user-select: none;
  white-space: nowrap;
  color: #e2e8f0 !important;
  flex-shrink: 0 !important;
}

.user-stat-num {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: inherit !important;
  line-height: 1 !important;
  letter-spacing: -0.01em;
  font-family: inherit;
  transition: color 0.18s ease;
}

.user-stat-label {
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  color: inherit !important;
  text-transform: lowercase;
  line-height: 1 !important;
  letter-spacing: 0.01em;
  opacity: 0.9 !important;
  transition: color 0.18s ease;
}

/* Hover effects */
.user-stat-col:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.user-stat-col:hover .user-stat-num,
.user-stat-col:hover .user-stat-label {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Active Pill Capsule: Signature Yellow Highlight matching Birdpost Brand */
.user-stat-col.active {
  background: #facc15 !important;
  border-color: #eab308 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.35) !important;
  transform: none !important;
}

.user-stat-col.active .user-stat-num,
.user-stat-col.active .user-stat-label {
  color: #000000 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

.user-stat-col.active::after {
  display: none !important;
}

/* Light Theme Stats Strip */
[data-theme="light"] .user-stats-strip {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .user-stat-col {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #334155 !important;
}

[data-theme="light"] .user-stat-num,
[data-theme="light"] .user-stat-label {
  color: #334155 !important;
}

[data-theme="light"] .user-stat-col:hover {
  background: #e2e8f0 !important;
  border-color: rgba(0, 0, 0, 0.22) !important;
  color: #0f172a !important;
}

[data-theme="light"] .user-stat-col:hover .user-stat-num,
[data-theme="light"] .user-stat-col:hover .user-stat-label {
  color: #0f172a !important;
}

[data-theme="light"] .user-stat-col.active {
  background: #facc15 !important;
  border-color: #eab308 !important;
  color: #000000 !important;
}

[data-theme="light"] .user-stat-col.active .user-stat-num,
[data-theme="light"] .user-stat-col.active .user-stat-label {
  color: #000000 !important;
}

[data-theme="light"] .user-stat-col.active::after {
  display: none !important;
}

/* Responsive Profile Stats Strip: Show ALL stats tabs at once without cutoff, starting from left */
@media (max-width: 768px) {
  .user-profile-header {
    padding: 0 16px 18px 16px !important;
  }

  .user-header-top-row {
    gap: 14px !important;
  }

  .user-avatar-circle {
    width: 76px !important;
    height: 76px !important;
  }

  .user-stats-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px 8px !important;
    padding: 14px 0 12px 0 !important;
    margin-top: 14px !important;
    margin-left: 0 !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }

  .user-stats-strip::-webkit-scrollbar {
    display: none !important;
  }

  .user-stat-col {
    padding: 6px 13px !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    border-radius: 9999px !important;
  }

  .user-stat-num {
    font-size: 0.86rem !important;
    font-weight: 800 !important;
  }

  .user-stat-label {
    font-size: 0.82rem !important;
  }

  .user-stat-col.active::after {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .user-stats-strip {
    gap: 6px 6px !important;
  }

  .user-stat-col {
    padding: 5px 10px !important;
    gap: 4px !important;
  }

  .user-stat-num {
    font-size: 0.82rem !important;
  }

  .user-stat-label {
    font-size: 0.78rem !important;
  }
}

/* User Bio Section (Right after user name, no lines) */
.user-bio-section {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
}

[data-theme="light"] .user-bio-section {
  border: none !important;
}

/* ═══════════════════════════════════════════════════════════
   FOLLOWERS & FOLLOWING TAB PANELS (Image 2 Spec)
   ═══════════════════════════════════════════════════════════ */
.following-panel-inner {
  padding: 24px 28px 48px 28px;
  width: 100%;
  box-sizing: border-box;
}

.following-panel-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.following-subtabs-row {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}

[data-theme="light"] .following-subtabs-row {
  border-bottom-color: #e2e8f0;
}

.following-subtab {
  background: transparent;
  border: none;
  padding: 10px 2px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: #71767b;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: color 0.15s ease;
  outline: none;
}

.following-subtab:hover {
  color: #eff3f4;
}

.following-subtab.active {
  color: #ffffff;
  font-weight: 700;
}

.following-subtab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
}

[data-theme="light"] .following-subtab {
  color: #64748b;
}

[data-theme="light"] .following-subtab:hover {
  color: #0f172a;
}

[data-theme="light"] .following-subtab.active {
  color: #0f172a;
}

[data-theme="light"] .following-subtab.active::after {
  background: #0f172a;
}

.following-accounts-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.following-account-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease;
}

[data-theme="light"] .following-account-row {
  border-bottom-color: #f1f5f9;
}

.following-account-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.following-account-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-gold-star {
  display: none !important;
}

.following-account-info {
  flex: 1 1 auto;
  min-width: 0;
}

.following-account-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.following-account-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.25;
  transition: color 0.15s ease;
}

.following-account-name:hover {
  color: #00aeec;
}

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

.following-account-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
}

.following-account-bio {
  font-size: 13.5px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
  word-break: break-word;
}

[data-theme="light"] .following-account-bio {
  color: #475569;
}

.following-account-action {
  flex-shrink: 0;
  margin-left: 16px;
}

.following-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: #eff3f4;
  color: #0f1419;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
}

.following-toggle-btn:hover {
  background: #d7dbdc;
}

.following-toggle-btn.following {
  background: transparent;
  color: #eff3f4;
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-weight: 600;
}

.following-toggle-btn.following:hover {
  background: rgba(239, 243, 244, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.following-toggle-btn svg {
  display: inline-block;
  vertical-align: middle;
}

[data-theme="light"] .following-toggle-btn {
  background: #0f1419;
  color: #ffffff;
  border: 1px solid transparent;
}

[data-theme="light"] .following-toggle-btn:hover {
  background: #272c30;
}

[data-theme="light"] .following-toggle-btn.following {
  background: transparent;
  color: #0f1419;
  border: 1px solid rgba(15, 20, 25, 0.35);
}

[data-theme="light"] .following-toggle-btn.following:hover {
  background: rgba(15, 20, 25, 0.06);
  border-color: rgba(15, 20, 25, 0.5);
}

/* Feed Post Cards (matches screenshot) */
.user-feed-panel {
  display: none;
}

.user-feed-panel.active {
  display: block;
}

.feed-post-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 22px;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.feed-post-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="light"] .feed-post-card {
  background: #ffffff;
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.feed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feed-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.feed-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.78rem;
}

.feed-badge-pill.meme-pill {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.feed-badge-pill.sports-pill {
  background: rgba(0, 174, 236, 0.15);
  color: #fb923c;
  border: 1px solid rgba(0, 174, 236, 0.35);
}

.feed-badge-pill.track-pill {
  background: rgba(0, 174, 236, 0.15);
  color: #00aeec;
  border: 1px solid rgba(0, 174, 236, 0.35);
}

.feed-badge-pill.tech-pill {
  background: rgba(0, 174, 236, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 174, 236, 0.35);
}

.feed-badge-pill.finance-pill {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.feed-badge-pill.geopolitics-pill {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.feed-badge-pill.science-pill {
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.feed-badge-pill.entertainment-pill {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.feed-badge-pill.business-pill {
  background: rgba(0, 156, 211, 0.15);
  color: #ff6e4e;
  border: 1px solid rgba(0, 156, 211, 0.35);
}

.feed-post-date {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.feed-cheered-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.cheered-avatar {
  font-size: 1rem;
}

.feed-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}

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

/* Post Title: Vibrant Sky Blue from screenshot */
.feed-post-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #38bdf8;
  margin: 0 0 14px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

[data-theme="light"] .feed-post-title {
  color: #0284c7;
}

.article-title-link {
  color: inherit;
  text-decoration: none;
}

.article-title-link:hover {
  text-decoration: underline;
}

/* Media Container */
.feed-media-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
  margin-bottom: 14px;
  position: relative;
}

.feed-media-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.feed-media-image.cats-crop {
  max-height: 520px;
  object-fit: cover;
  object-position: center 80%;
}

.feed-post-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 14px 0;
}

/* Card Footer / Reaction Buttons */
.feed-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-vote-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-hover);
  border-radius: 20px;
  padding: 4px 10px;
  border: 1px solid var(--border-soft);
}

.vote-arrow {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: all var(--trans);
}

.vote-arrow:hover,
.vote-arrow.active {
  color: var(--accent, #00aeec);
  transform: scale(1.1);
}

.vote-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 32px;
  text-align: center;
}

.feed-icon-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-hover);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--trans);
  font-family: inherit;
}

.feed-icon-action-btn:hover {
  color: var(--text-white);
  border-color: var(--border);
}

.read-article-pill-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  background: var(--accent, #00aeec);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform var(--trans), box-shadow var(--trans);
}

.read-article-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.byline-author-tag {
  color: var(--accent, #00aeec);
  font-weight: 600;
  font-size: 0.82rem;
}

/* Comment Cards */
.comment-card {
  padding: 16px 18px;
}

.comment-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.84rem;
}

.comment-context-label {
  color: var(--text-secondary);
}

.comment-context-label a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.comment-context-label a:hover {
  text-decoration: underline;
}

.comment-time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.comment-quote-body {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  border-left: 3px solid var(--accent, #00aeec);
  padding-left: 14px;
  margin: 0 0 12px 0;
  font-style: italic;
}

.comment-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.comment-vote-score {
  color: var(--accent, #00aeec);
  font-weight: 700;
}

/* RIGHT SIDEBAR: ADSPACE */
.user-page-sidebar-right {
  grid-area: right;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  border-left: 1px solid var(--border);
  padding: 20px 18px 40px 18px;
  background: var(--bg-panel);
  box-sizing: border-box;
}

.sidebar-ad-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  position: relative;
}

.ad-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Pro Ad */
.pro-ad-card {
  background: linear-gradient(135deg, rgba(0, 174, 236, 0.08), rgba(0, 174, 236, 0.06));
  border: 1px solid rgba(0, 174, 236, 0.25);
}

.pro-ad-icon {
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 6px;
}

.pro-ad-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pro-ad-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 12px 0;
}

.pro-ad-btn {
  display: block;
  text-align: center;
  background: var(--accent, #00aeec);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--trans);
}

.pro-ad-btn:hover {
  box-shadow: 0 2px 12px var(--accent-glow);
  transform: translateY(-1px);
}

/* Sponsored Link */
.sponsored-link-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sponsored-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-white);
  margin-bottom: 2px;
}

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

.sponsored-btn,
.compact-ad-btn {
  align-self: flex-start;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--trans);
}

.sponsored-btn:hover,
.compact-ad-btn:hover {
  background: var(--accent, #00aeec);
  color: #ffffff;
  border-color: var(--accent, #00aeec);
}

/* Newsletter Ad Box */
.birdmail-ad-box {
  background: linear-gradient(135deg, rgba(0, 174, 236, 0.06), rgba(0, 174, 236, 0.02));
  border: 1px solid rgba(0, 174, 236, 0.25);
}

.birdmail-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 4px;
}

.birdmail-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.birdmail-form {
  display: flex;
  gap: 6px;
}

.birdmail-input {
  flex: 1;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--text-primary);
  outline: none;
}

.birdmail-submit-btn {
  background: var(--accent, #00aeec);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

/* Trending in Sports */
.sidebar-trending-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.trending-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.trending-stories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-story-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  transition: transform var(--trans);
}

.trending-story-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-story-item:hover {
  transform: translateX(2px);
}

.trending-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent, #00aeec);
  line-height: 1;
  min-width: 20px;
}

.trending-story-info h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0 0 4px 0;
}

.trending-story-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1280px) {
  .user-profile-layout {
    grid-template-columns: 270px minmax(0, 1fr) !important;
    grid-template-areas: "left main" !important;
  }
  .user-page-sidebar-right {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .user-profile-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" !important;
  }
  .user-page-main {
    padding: 16px 0 40px 0;
    border-right: none;
  }
  .user-profile-header {
    padding: 0 16px 20px 16px;
  }
  .user-feed-panel .news-card {
    padding: 20px 16px;
  }
}

/* Profile Header Card (Lightweight / Transparent style) */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 36px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 0 32px 0;
  box-shadow: none;
  margin-bottom: 32px;
  position: relative;
  overflow: visible;
}

[data-theme="light"] .profile-header-card {
  box-shadow: none;
}

/* Avatar container with iOS-like squircle shape mask */
.profile-avatar-container {
  flex-shrink: 0;
}

.profile-avatar-squircle {
  width: 130px;
  height: 130px;
  border-radius: 36px; /* Squircle style corner ratio */
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  transition: transform var(--trans-bounce), border-color var(--trans);
}

.profile-avatar-squircle:hover {
  transform: scale(1.03) rotate(1deg);
  border-color: var(--accent);
}

.profile-avatar-squircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detail details column */
.profile-details-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-handle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.profile-name-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -1px;
  line-height: 1.1;
}

/* Lightweight gold outlines for badges instead of solid block gradients */
.profile-badge-pro {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  box-shadow: none;
  transition: all var(--trans);
}

.profile-badge-pro.role {
  background: var(--accent, #00aeec) !important;
  border: 1px solid var(--accent, #00aeec) !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: none !important;
}

.profile-badge-pro.premium-red {
  background: #dc2626 !important; /* Red fill */
  border: 1px solid #dc2626 !important; /* Red outline */
  color: #ffffff !important; /* White text */
  box-shadow: none !important;
}

.profile-badge-pro.tier-1 {
  background: rgba(205, 127, 50, 0.08);
  border: 1px solid rgba(205, 127, 50, 0.4);
  color: #cd7f32; /* Bronze color */
}

.profile-badge-pro.tier-2 {
  background: rgba(156, 163, 175, 0.08);
  border: 1px solid rgba(156, 163, 175, 0.4);
  color: #9ca3af; /* Silver color */
}

.profile-badge-pro.tier-3 {
  background: rgba(255, 110, 78, 0.08);
  border: 1px solid rgba(255, 110, 78, 0.4);
  color: #ff6e4e; /* Gold color */
  box-shadow: 0 0 8px rgba(255, 110, 78, 0.2);
}

.profile-badge-pro.tier-4 {
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #c084fc; /* Diamond/Super purple */
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.3);
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 4px rgba(192, 132, 252, 0.2); }
  100% { box-shadow: 0 0 14px rgba(192, 132, 252, 0.5); }
}

.profile-job-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

/* Stats / Button row styling */
.profile-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.profile-follow-btn {
  background: #111115;
  color: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .profile-follow-btn {
  background: #1e1e1e;
  border-color: #1e1e1e;
}

.profile-follow-btn:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

.profile-follow-btn.following {
  background: var(--accent);
  color: #000000;
  font-weight: 800;
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Rectangular pills with yellow borders */
.profile-stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--accent, #00aeec);
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--trans), transform var(--trans);
}

[data-theme="light"] .profile-stat-pill {
  background: #ffffff;
  color: #1a1a2e;
}

.profile-stat-pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent-hover, #009cd3);
}

.profile-stat-pill span {
  font-weight: 500;
  opacity: 0.8;
}

.profile-stat-pill strong {
  font-size: 1.05rem;
  color: var(--accent, #00aeec);
  font-weight: 800;
}

.profile-bio-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 820px;
}

/* Tab row controls — Rounded pill style */
.profile-tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px;
  width: fit-content;
}

.profile-tab-btn {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.profile-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.profile-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

[data-theme="light"] .profile-tab-btn.active {
  color: #ffffff;
}

/* Feed Wrapper & Lock screen */
.profile-feed-container {
  position: relative;
  min-height: 380px;
}

.profile-feed-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Premium lock overlay styling */
.premium-locker {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.locker-backdrop-blur {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1;
  transition: opacity var(--trans-slow);
}

[data-theme="light"] .locker-backdrop-blur {
  background: rgba(240, 240, 245, 0.7);
}

.locker-content-box {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  max-width: 520px;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform var(--trans-bounce), opacity var(--trans);
}

[data-theme="light"] .locker-content-box {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.locker-lock-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px auto;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.05);
}

.locker-lock-icon svg {
  width: 28px;
  height: 28px;
}

.locker-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.locker-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.locker-cta-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: all var(--trans);
  margin-bottom: 12px;
}

.locker-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
  filter: brightness(1.1);
}

.locker-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Blur classes for locked content */
.blurred-content {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  opacity: 0.45;
  transition: filter var(--trans-slow), opacity var(--trans-slow);
}



/* Responsiveness adjustments */
@media (max-width: 768px) {
  .profile-header-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 24px;
  }

  .profile-name-row {
    justify-content: center;
  }

  .profile-stats-row {
    justify-content: center;
  }

  .profile-wrapper {
    padding: 24px 12px 60px 12px;
  }
}

/* ===================================================
   EDIT PROFILE BUTTON & MODAL
   =================================================== */

.profile-edit-btn {
  background: var(--accent, #00aeec);
  color: #ffffff;
  border: 1px solid var(--accent, #00aeec);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.profile-edit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.edit-profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.edit-profile-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg), 0 10px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: editModalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes editModalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.edit-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edit-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0;
}

.edit-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.edit-modal-close:hover {
  color: var(--text-white);
}

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

.edit-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-field-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.edit-field-group input,
.edit-field-group textarea {
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--trans);
}

.edit-field-group input:focus,
.edit-field-group textarea:focus {
  border-color: var(--accent);
}

.edit-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.edit-cancel-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--trans);
}

.edit-cancel-btn:hover {
  background: var(--bg-hover);
}

.edit-save-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--trans);
}

.edit-save-btn:hover {
  filter: brightness(1.1);
}

/* ===================================================
   MEMBERSHIP BANNER & PRICING PLAN LAYOUT (Image 1)
   =================================================== */

.membership-section {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 40px;
}

.membership-banner-container {
  display: flex;
  gap: 48px;
  align-items: stretch; /* equal heights */
  background: linear-gradient(135deg, rgba(20, 21, 28, 0.92) 0%, rgba(10, 11, 15, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent-subtle);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-subtle);
  margin-top: 16px;
  margin-bottom: 32px;
}

.membership-banner-left {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.membership-banner-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent); /* Brand blue accent */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  display: inline-block;
  width: fit-content;
}

.membership-banner-tag::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent); /* Brand blue accent */
}

.membership-banner-title {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: Georgia, serif;
  color: #ffffff !important; /* Force white for unified dark theme */
  line-height: 1.15;
  margin: 0;
}

.membership-banner-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7) !important; /* Force light gray for unified dark theme */
  margin: 0;
}

.membership-banner-right {
  flex: 0.9;
  min-width: 340px;
  display: flex;
  flex-direction: column;
}

.membership-card {
  background: rgba(0, 0, 0, 0.25) !important; /* Slightly inset card look */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05) !important; /* Very subtle inner border */
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1; /* occupy full height of stretch column */
  justify-content: space-between;
}

.membership-card .pricing-pill {
  color: rgba(255, 255, 255, 0.8) !important;
}

.membership-card .pricing-pill.active {
  color: #111115 !important;
}

.membership-card .pricing-pill:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.membership-card .perk-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

.membership-card .perk-item.disabled .perk-text {
  color: rgba(255, 255, 255, 0.35) !important;
}

.membership-card label {
  color: rgba(255, 255, 255, 0.5) !important;
}

#customAmountInput {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.membership-pricing-pills {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.pricing-pill {
  flex: 1;
  min-width: 62px;
  padding: 10px 8px;
  background: transparent;
  border: 1px solid transparent; /* No border for inactive pills */
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pricing-pill:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.pricing-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #111115; /* Dark text matching image */
  box-shadow: 0 0 15px var(--accent-glow);
}

.pricing-badge-check {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%); /* Horizontally centered */
  background: #ffffff;
  color: #111115; /* Dark checkmark */
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  border: 1px solid var(--accent);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.perk-svg-icon {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.membership-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 500;
}

.perk-item.disabled {
  opacity: 0.35;
  text-decoration: line-through;
}

.perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.perk-icon.font-icon {
  font-size: 1.1rem;
}

/* Slashed AD Badge */
.ad-strike-icon {
  font-size: 0.62rem;
  font-weight: 800;
  border: 1.5px solid var(--text-secondary);
  padding: 1px 4px;
  border-radius: 4px;
  position: relative;
  display: inline-block;
  line-height: 1;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.ad-strike-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  height: 1.5px;
  background: #ff4e25;
  transform: rotate(-22deg);
}

.perk-text {
  line-height: 1.35;
}

.membership-cta-btn {
  width: 100%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: 0 4px 15px var(--accent-glow);
  text-align: center;
}

.membership-cta-btn:hover {
  transform: translateY(-1px);
  background: #0d8ae0;
  box-shadow: 0 6px 20px var(--accent-glow);
}

#customAmountInput:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 8px var(--accent-glow) !important;
}

.membership-active-box {
  background: var(--accent-subtle);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.membership-active-title {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.membership-active-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .membership-banner-container {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }
  .membership-banner-title {
    font-size: 2.2rem;
  }
  .membership-banner-right {
    min-width: 100%;
  }
}

/* ===================================================
   COMMUNITY ACTIVITY FEED (Image 2)
   =================================================== */

.community-activity-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activity-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--trans);
}

.activity-item:hover {
  border-color: var(--text-secondary);
}

.activity-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.activity-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

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

.activity-user-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.activity-username {
  font-weight: 700;
  color: var(--text-white);
}

.activity-action {
  color: var(--text-secondary);
  font-weight: 500;
}

.activity-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.activity-comment-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.activity-comment-text strong {
  color: var(--text-white);
}

.activity-article-card {
  display: flex;
  gap: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans);
}

.activity-article-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.activity-article-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.activity-article-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.activity-article-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-article-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.activity-comment-icon {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

/* ===================================================
   NEW COMMUNITY ACTIVITY — TWITTER/THREAD CARD STYLE
   =================================================== */

.act-card {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  animation: actFadeIn 0.35s ease both;
}

.act-card:last-child {
  border-bottom: none;
}

@keyframes actFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Left column: avatar */
.act-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 2px;
}

.act-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  border: none;
  flex-shrink: 0;
}

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

/* Right column: all content */
.act-card-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Header: meta info + time */
.act-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.act-article-cat {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
}

.act-dot {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.act-article-title {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.act-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.act-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
}

.act-action-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.act-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Comment body text */
.act-comment-body {
  font-size: 0.95rem;
  color: var(--text-white);
  line-height: 1.5;
  word-break: break-word;
  margin-top: 4px;
}

.act-comment-body strong {
  color: var(--text-white);
}

/* Action buttons row */
.act-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.act-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--trans);
}

.act-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.act-action-btn.act-upvote:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}

.act-action-btn.act-upvote.upvoted {
  color: var(--accent);
  background: var(--accent-subtle);
}

.act-action-btn.act-upvote.upvoted svg {
  stroke: var(--accent);
}

/* Empty state */
.activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 24px;
  text-align: center;
}

.activity-empty-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.activity-empty-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.activity-empty-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.5;
}

/* Handle row: slightly smaller margin now badges sit inline */
.profile-job-subtitle {
  margin-top: 2px;
}


/* ===================================================
   PREMIUM EXCLUSIVE ARTICLES LAYOUT
   =================================================== */

.premium-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.premium-article-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.premium-article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent) !important;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.premium-card-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.premium-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans);
}

.premium-article-card:hover .premium-card-img-wrap img {
  transform: scale(1.04);
}

.premium-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
}

.premium-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-card-tag {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.premium-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans);
}

.premium-article-card:hover .premium-card-title {
  color: var(--accent);
}

.premium-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.premium-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Premium badge and tooltip */
.premium-badge-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.premium-badge-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: #F5B041; /* Gold background */
  color: #111115; /* Dark background color */
  text-align: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(245, 176, 65, 0.4);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.premium-badge-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #F5B041 transparent transparent transparent;
}

.premium-badge-wrapper.tooltip-open .premium-badge-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.name-premium-badge-gold:hover {
  transform: scale(1.1);
}

/* ===================================================
   Posts Section: 2-Column Compact Grid Layout (Matching Image 1)
   =================================================== */

.posts-page-container {
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
}

.posts-page-block {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

[data-theme="light"] .posts-page-block {
  background: transparent;
  border: none;
  box-shadow: none;
}

.posts-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 768px) {
  .posts-grid-2col {
    grid-template-columns: 1fr;
  }
}

.post-compact-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
  text-decoration: none;
}

[data-theme="light"] .post-compact-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.post-compact-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #00aeec);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .post-compact-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.post-compact-thumb {
  width: 96px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e1e24;
}

.post-compact-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.post-compact-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.32;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

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

.post-compact-card:hover .post-compact-title {
  color: var(--accent, #00aeec);
}

.post-compact-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.post-compact-sub {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .post-compact-sub {
  color: #64748b;
}

/* Compact Action Capsule Bar (Coffee Pill Widget) */
.post-compact-meta .action-capsule-bar {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  line-height: 1;
}

.post-compact-meta .capsule-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  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;
}

.post-compact-meta .capsule-pill svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform 0.2s ease;
}

.post-compact-meta .capsule-pill:hover {
  background: rgba(0, 174, 236, 0.15);
  border-color: rgba(0, 174, 236, 0.45);
  color: #ff7a59;
  transform: translateY(-1px);
}

[data-theme="light"] .post-compact-meta .capsule-pill {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme="light"] .post-compact-meta .capsule-pill:hover {
  background: rgba(0, 174, 236, 0.1);
  border-color: rgba(0, 174, 236, 0.4);
  color: #009cd3;
}

.post-compact-meta .capsule-pill.active-coffee,
[data-theme="light"] .post-compact-meta .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;
}

.post-compact-meta .capsule-pill.active-coffee svg {
  stroke: #facc15 !important;
}

[data-theme="light"] .post-compact-meta .capsule-pill.active-coffee {
  border-color: #d97706 !important;
  color: #b45309 !important;
}

[data-theme="light"] .post-compact-meta .capsule-pill.active-coffee svg {
  stroke: #b45309 !important;
}

.post-compact-meta .vote-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: inherit;
  line-height: 1;
}

/* Empty feed state */
.empty-feed-state {
  text-align: center;
  padding: 54px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  margin-top: 10px;
}

[data-theme="light"] .empty-feed-state {
  background: #ffffff;
  border-color: #e2e8f0;
}

.empty-feed-icon {
  font-size: 2.2rem;
  color: var(--accent, #00aeec);
  margin-bottom: 12px;
  display: block;
}

.empty-feed-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

.empty-feed-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

[data-theme="light"] .empty-feed-desc {
  color: #64748b;
}

.empty-feed-btn {
  display: inline-block;
  background: var(--accent, #00aeec);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.empty-feed-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 174, 236, 0.4);
}

.feed-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans);
}

.feed-post-title a:hover {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

[data-theme="light"] .feed-post-title a:hover {
  color: #facc15 !important;
  text-decoration-color: #facc15 !important;
}

.comment-context-label a {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  font-weight: 700;
}

.comment-context-label a:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
  text-decoration-color: #eab308 !important;
}

[data-theme="light"] .comment-context-label a {
  color: #facc15 !important;
  text-decoration-color: #facc15 !important;
}

/* ===================================================
   NEWS CARD STYLES (Matching Image 1 Frontpage Post Style)
   =================================================== */

.user-feed-panel .news-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  border-radius: 0;
  padding: 24px 28px;
  margin-bottom: 0;
  box-shadow: none;
  transition: background 0.15s ease;
}

[data-theme="light"] .user-feed-panel .news-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: none;
}

.user-feed-panel .news-card:hover {
  background: var(--bg-hover, rgba(255, 255, 255, 0.03));
  transform: none;
  box-shadow: none;
}

[data-theme="light"] .user-feed-panel .news-card:hover {
  background: rgba(0, 0, 0, 0.02);
  transform: none;
  box-shadow: none;
}

.user-feed-panel .news-card-inner {
  display: flex;
  flex-direction: column;
}

/* Card Headline */
.user-feed-panel .card-headline {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

[data-theme="light"] .user-feed-panel .card-headline {
  color: #0f172a;
}

.user-feed-panel .card-headline a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.user-feed-panel .card-headline a:hover {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

[data-theme="light"] .user-feed-panel .card-headline a:hover {
  color: #facc15 !important;
  text-decoration-color: #facc15 !important;
}

/* Card Summary */
.user-feed-panel .card-summary {
  font-size: 0.92rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.55;
  margin-bottom: 12px;
}

[data-theme="light"] .user-feed-panel .card-summary {
  color: #64748b;
}

/* Card Meta Row */
.user-feed-panel .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.user-feed-panel .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Image 5 Target Category System in Profile Post Cards (Matching Ranker/Feed) */
.trending-story-avatars {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

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

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

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

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

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

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

/* Category Badge Backgrounds (Canonical colors) */
.cat-bg-tech { background: #0284c7 !important; }
.cat-bg-business { background: #d97706 !important; }
.cat-bg-finance { background: #16a34a !important; }
.cat-bg-sports { background: #dc2626 !important; }
.cat-bg-geopolitics { background: #7c3aed !important; }
.cat-bg-entertainment { background: #db2777 !important; }
.cat-bg-gaming { background: #8b5cf6 !important; }
.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 !important; }
.cat-bg-trending { background: #ea580c !important; }
.cat-bg-polls, .cat-bg-birdcritic { background: #0284c7 !important; }
.cat-bg-ranker { background: #d97706 !important; }
.cat-bg-threads, .cat-bg-birdchat { background: #6366f1 !important; }

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

.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, .trending-cat-pill.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; }

.pending-approval-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  margin-left: 6px;
  user-select: none;
  line-height: 1.3;
}

[data-theme="light"] .pending-approval-badge {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #dc2626 !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
}

.user-feed-panel .card-stat {
  font-size: 0.8rem;
  color: var(--text-secondary, #94a3b8);
}

[data-theme="light"] .user-feed-panel .card-stat {
  color: #64748b;
}

.user-feed-panel .card-date {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
}

[data-theme="light"] .user-feed-panel .card-date {
  color: #94a3b8;
}

/* Card Media */
.user-feed-panel .card-media {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #121218;
  aspect-ratio: 16/9;
  margin-bottom: 12px;
}

.user-feed-panel .card-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.user-feed-panel .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.user-feed-panel .news-card:hover .card-media img {
  transform: scale(1.02);
}

.user-feed-panel .media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

/* Card Action Bar (Image 1 style) */
.user-feed-panel .card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px 0;
  gap: 10px;
  flex-wrap: wrap;
  overflow: visible !important;
}

.user-feed-panel .card-action-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  overflow: visible !important;
  padding-top: 6px;
  padding-bottom: 6px;
  margin-top: -6px;
  margin-bottom: -6px;
}

.user-feed-panel .card-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  overflow: visible !important;
  padding-top: 6px;
  padding-bottom: 6px;
  margin-top: -6px;
  margin-bottom: -6px;
}

/* ==========================================
   5-Pill Card Action Bar (Matching Image 3 Style)
   [ ↑ 17.5K ↓ ] [ 💬 42.0K Comments ] [ ☕ Coffee ] [ 🔖 Saved ] [ ↗ Share ]
   ========================================== */
.user-feed-panel .card-vote-pill,
.card-vote-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  padding: 0 12px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  gap: 8px !important;
  vertical-align: middle !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

[data-theme="light"] .user-feed-panel .card-vote-pill,
[data-theme="light"] .card-vote-pill {
  background: #eaedf0 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.user-feed-panel .card-vote-pill:hover,
.card-vote-pill:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

[data-theme="light"] .user-feed-panel .card-vote-pill:hover,
[data-theme="light"] .card-vote-pill:hover {
  background: #dfe3e7 !important;
}

.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;
  color: inherit !important;
  height: 24px !important;
  width: 24px !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  outline: none !important;
  border-radius: 0 !important;
  transition: transform 0.1s ease, color 0.15s ease !important;
  user-select: none !important;
  text-decoration: none !important;
  line-height: normal !important;
  flex-shrink: 0 !important;
}

.card-vote-pill .vote-up-btn::after,
.card-vote-pill .vote-down-btn::after,
.vote-pill-divider {
  display: none !important;
  content: none !important;
}

.card-vote-pill .vote-up-btn svg,
.card-vote-pill .vote-down-btn svg {
  stroke: #94a3b8 !important;
  fill: none !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:hover {
  background: transparent !important;
  color: #facc15 !important;
  transform: scale(1.12) !important;
}

.card-vote-pill .vote-up-btn:hover svg {
  stroke: #facc15 !important;
}

.card-vote-pill .vote-down-btn:hover {
  background: transparent !important;
  color: #ef4444 !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;
}

[data-theme="light"] .card-vote-pill .up-num {
  color: #0f172a !important;
}

.card-vote-pill .up-num {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  user-select: none !important;
  letter-spacing: -0.01em !important;
  padding: 0 1px !important;
}

[data-theme="light"] .card-vote-pill .up-num {
  color: #0f172a !important;
}

.card-vote-pill .down-num {
  display: none !important;
}

/* Generic Action Pills (Comments, Coffee, Save, Share) Matching Image 2 */
.user-feed-panel .card-comments-btn,
.user-feed-panel .card-coffee-btn,
.user-feed-panel .card-save-btn,
.user-feed-panel .share-trigger-btn,
.card-action-btn.card-comments-btn,
.card-action-btn.card-coffee-btn,
.card-action-btn.coffee-btn,
.card-action-btn.card-save-btn,
.card-action-btn.share-trigger-btn,
.user-feed-panel .card-action-btn:not(.vote-up-btn):not(.vote-down-btn),
.card-action-btn:not(.vote-up-btn):not(.vote-down-btn) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.09) !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  padding: 0 16px !important;
  height: 38px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !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, border-color 0.15s ease !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

[data-theme="light"] .user-feed-panel .card-comments-btn,
[data-theme="light"] .user-feed-panel .card-coffee-btn,
[data-theme="light"] .user-feed-panel .card-save-btn,
[data-theme="light"] .user-feed-panel .share-trigger-btn,
[data-theme="light"] .card-action-btn.card-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.share-trigger-btn,
[data-theme="light"] .user-feed-panel .card-action-btn:not(.vote-up-btn):not(.vote-down-btn),
[data-theme="light"] .card-action-btn:not(.vote-up-btn):not(.vote-down-btn) {
  background: #eaedf0 !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.user-feed-panel .card-action-btn:not(.vote-up-btn):not(.vote-down-btn):hover,
.card-action-btn:not(.vote-up-btn):not(.vote-down-btn):hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .user-feed-panel .card-action-btn:not(.vote-up-btn):not(.vote-down-btn):hover,
[data-theme="light"] .card-action-btn:not(.vote-up-btn):not(.vote-down-btn):hover {
  background: #dfe3e7 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

.user-feed-panel .card-action-btn:not(.vote-up-btn):not(.vote-down-btn) svg,
.card-action-btn:not(.vote-up-btn):not(.vote-down-btn) svg {
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0 !important;
  stroke: currentColor !important;
}

/* ========================================================
   CRITICAL FIX: Ensure buttons inside .card-vote-pill
   NEVER have a circular bubble disc or button background!
   Matching Image 3: single capsule pill, naked SVG icons.
   ======================================================== */
.card-vote-pill button,
.card-vote-pill .vote-up-btn,
.card-vote-pill .vote-down-btn,
.user-feed-panel .card-vote-pill button,
.user-feed-panel .card-vote-pill .vote-up-btn,
.user-feed-panel .card-vote-pill .vote-down-btn,
.user-feed-panel .card-vote-pill .card-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  user-select: none !important;
  text-decoration: none !important;
  line-height: normal !important;
  flex-shrink: 0 !important;
}

.card-vote-pill button:hover,
.card-vote-pill .vote-up-btn:hover,
.card-vote-pill .vote-down-btn:hover,
.user-feed-panel .card-vote-pill button:hover,
.user-feed-panel .card-vote-pill .vote-up-btn:hover,
.user-feed-panel .card-vote-pill .vote-down-btn:hover,
.user-feed-panel .card-vote-pill .card-action-btn:hover,
[data-theme="light"] .card-vote-pill button:hover,
[data-theme="light"] .user-feed-panel .card-vote-pill button:hover,
[data-theme="light"] .user-feed-panel .card-vote-pill .card-action-btn:hover {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: scale(1.12) !important;
}

/* Active Saved Button: Image 4 Specification (Yellow border, Yellow filled bookmark ribbon, Yellow Saved text) */
.user-feed-panel .card-action-btn.card-save-btn.active-saved,
.card-action-btn.card-save-btn.active-saved,
.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"] .user-feed-panel .card-action-btn.card-save-btn.active-saved,
[data-theme="light"] .card-action-btn.card-save-btn.active-saved,
[data-theme="light"] .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;
}

.user-feed-panel .card-action-btn.card-save-btn.active-saved:hover,
.card-action-btn.card-save-btn.active-saved:hover,
.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;
}

.user-feed-panel .card-action-btn.card-save-btn.active-saved svg,
.card-action-btn.card-save-btn.active-saved svg,
.card-save-btn.active-saved svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

[data-theme="light"] .user-feed-panel .card-action-btn.card-save-btn.active-saved svg,
[data-theme="light"] .card-action-btn.card-save-btn.active-saved svg,
[data-theme="light"] .card-save-btn.active-saved svg {
  fill: #ca8a04 !important;
  stroke: #ca8a04 !important;
}

.user-feed-panel .card-action-btn.card-save-btn.active-saved .save-btn-text,
.card-action-btn.card-save-btn.active-saved .save-btn-text,
.card-save-btn.active-saved .save-btn-text,
.card-save-btn.active-saved span {
  color: #facc15 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .user-feed-panel .card-action-btn.card-save-btn.active-saved .save-btn-text,
[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;
}

/* Coffee button: Normal styling matching Save button (Image 2) - No animation */
.user-feed-panel .card-action-btn.card-coffee-btn,
.user-feed-panel .card-coffee-btn,
.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;
}

.user-feed-panel .card-action-btn.card-coffee-btn:hover,
.user-feed-panel .card-coffee-btn:hover,
.card-action-btn.card-coffee-btn:hover,
.card-action-btn.coffee-btn:hover {
  animation: none !important;
  transform: none !important;
}

.user-feed-panel .card-action-btn.card-coffee-btn svg,
.user-feed-panel .card-coffee-btn svg,
.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;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

[data-theme="light"] .user-feed-panel .card-action-btn.card-coffee-btn svg,
[data-theme="light"] .user-feed-panel .card-coffee-btn svg,
[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;
}

.user-feed-panel .card-action-btn.card-coffee-btn span,
.user-feed-panel .card-coffee-btn span,
.card-action-btn.card-coffee-btn span,
.card-coffee-btn span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-theme="light"] .user-feed-panel .card-action-btn.card-coffee-btn span,
[data-theme="light"] .user-feed-panel .card-coffee-btn span,
[data-theme="light"] .card-action-btn.card-coffee-btn span,
[data-theme="light"] .card-action-btn.coffee-btn span {
  color: #0f172a !important;
}


/* ===================================================
   DYNAMIC & PROFESSIONAL USER COMMENT CALLOUT
   =================================================== */

.card-user-comment-block {
  margin: 14px 0 18px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(0, 174, 236, 0.05) 0%, rgba(22, 22, 31, 0.7) 100%);
  border: 1px solid rgba(0, 174, 236, 0.22);
  border-left: 4px solid #00aeec;
  border-radius: 14px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .card-user-comment-block {
  background: linear-gradient(135deg, #fffdf8 0%, #ffffff 100%);
  border-color: #f1f5f9;
  border-left-color: #00aeec;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
}

.card-user-comment-block:hover {
  border-left-color: #00aeec;
  border-color: rgba(0, 174, 236, 0.35);
  box-shadow: 0 6px 24px rgba(0, 174, 236, 0.12);
  transform: translateY(-1px);
}

[data-theme="light"] .card-user-comment-block:hover {
  border-color: #e2e8f0;
  border-left-color: #009cd3;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.08);
}

/* Header Row */
.card-user-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.card-user-comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.card-user-comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.card-user-comment-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-user-comment-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .card-user-comment-name {
  color: #0f172a;
}

.card-user-comment-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #00aeec;
  background: rgba(0, 174, 236, 0.14);
  border: 1px solid rgba(0, 174, 236, 0.3);
  border-radius: 20px;
  padding: 2px 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="light"] .card-user-comment-badge {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

.card-user-comment-time {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

/* Comment Content & Quote */
.card-user-comment-content {
  margin-bottom: 8px;
}

.card-user-comment-quote {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-primary, #ffffff);
  margin: 0;
  position: relative;
  font-weight: 400;
  word-break: break-word;
}

[data-theme="light"] .card-user-comment-quote {
  color: #1e293b;
}

/* Fixed Length Ratio for Text */
.card-user-comment-quote.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-user-comment-expand-btn {
  background: none;
  border: none;
  padding: 4px 0 0 0;
  color: var(--accent, #00aeec);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
  font-family: inherit;
}

.card-user-comment-expand-btn:hover {
  color: #009cd3;
}

.card-user-comment-expand-btn svg {
  transition: transform 0.2s ease;
}

.card-user-comment-expand-btn.is-expanded svg {
  transform: rotate(180deg);
}

/* ===================================================
   FIXED RATIO FOR COMMENT IMAGES & GIFS (16:9 Ratio)
   =================================================== */

.card-user-comment-media-wrap {
  position: relative;
  max-width: 440px;
  width: 100%;
  aspect-ratio: 16 / 9; /* Strict Fixed Ratio */
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0 8px 0;
  background: #0f172a;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .card-user-comment-media-wrap {
  border-color: #e2e8f0;
  background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-user-comment-media-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.card-user-comment-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-user-comment-media-wrap:hover img {
  transform: scale(1.03);
}

.card-user-comment-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
  pointer-events: none;
}

/* Modern Pill Badge for GIFs */
.card-user-comment-gif-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.card-user-comment-gif-pill svg {
  color: #00aeec;
}

/* Footer Row */
.card-user-comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  gap: 10px;
}

[data-theme="light"] .card-user-comment-footer {
  border-top-color: #f1f5f9;
}

.card-user-comment-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary, #94a3b8);
}

[data-theme="light"] .card-user-comment-stats {
  color: #64748b;
}

.card-user-comment-votes {
  color: #00aeec;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

[data-theme="light"] .card-user-comment-votes {
  color: #009cd3;
}

.card-user-comment-jump {
  margin-left: auto;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease, gap 0.15s ease;
}

[data-theme="light"] .card-user-comment-jump {
  color: #0284c7;
}

.card-user-comment-jump:hover {
  color: #0ea5e9;
  gap: 7px;
  text-decoration: none;
}

.card-user-comment-jump svg {
  transition: transform 0.15s ease;
}

.card-user-comment-jump:hover svg {
  transform: translateX(2px);
}

/* ==========================================================================
   FLOATING USER COMMENT IN ARTICLE IMAGE
   IMAGE 2 SPEC: Comment Preview Capsule Pill Tag
   A sleek horizontal dark pill tag floating inside the card media:
   - Left: Circular commenter avatar
   - Middle: Text "See what @xyz commented" with @xyz handle
   - Right: Solid vibrant yellow pill button labeled "View"
   - Clicking tag or "View" takes user directly to that comment on the article
   ========================================================================== */

#panel-comments .card-media,
.user-feed-panel .card-media:has(.comment-preview-pill-tag) {
  position: relative;
  overflow: hidden;
}

.card-media .floating-user-comment-card {
  display: none !important;
}

.card-media .comment-preview-pill-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 6;
  margin: 0;
  min-height: 62px;
  padding: 7px 10px 7px 8px;
  background: rgba(18, 18, 22, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, background 0.2s ease;
}

.card-media .comment-preview-pill-tag:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75), 0 0 16px rgba(250, 204, 21, 0.3);
}

[data-theme="light"] .card-media .comment-preview-pill-tag {
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .card-media .comment-preview-pill-tag:hover {
  border-color: #ca8a04;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22), 0 0 14px rgba(234, 179, 8, 0.25);
}

.comment-preview-pill-tag .cpp-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.comment-preview-pill-tag .cpp-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #2a2a30;
  border: 2px solid #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

.comment-preview-pill-tag .cpp-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comment-preview-pill-tag .cpp-avatar-inits {
  font-size: 0.95rem;
  font-weight: 800;
  color: #facc15;
}

.comment-preview-pill-tag .cpp-text {
  font-size: 1.08rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

[data-theme="light"] .comment-preview-pill-tag .cpp-text {
  color: #0f172a;
}

.comment-preview-pill-tag .cpp-handle {
  color: #facc15;
  font-weight: 700;
}

[data-theme="light"] .comment-preview-pill-tag .cpp-handle {
  color: #ca8a04;
}

/* Yellow View Pill Button (Image 2 Highlight) */
.comment-preview-pill-tag .cpp-view-btn {
  flex-shrink: 0;
  background: #facc15 !important;
  color: #000000 !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  border-radius: 9999px !important;
  padding: 0 24px !important;
  height: 42px !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.45) !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-decoration: none;
}

.comment-preview-pill-tag .cpp-view-btn:hover {
  background: #eab308 !important;
  transform: scale(1.04);
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.55) !important;
}

.comment-preview-pill-tag .cpp-view-btn:active {
  transform: scale(0.97);
}

@media (max-width: 640px) {
  .card-media .comment-preview-pill-tag {
    bottom: 12px;
    left: 12px;
    right: 12px;
    min-height: 52px;
    padding: 5px 8px 5px 6px;
    gap: 10px;
  }
  .comment-preview-pill-tag .cpp-left {
    gap: 10px;
  }
  .comment-preview-pill-tag .cpp-avatar {
    width: 38px;
    height: 38px;
  }
  .comment-preview-pill-tag .cpp-text {
    font-size: 0.92rem;
  }
  .comment-preview-pill-tag .cpp-view-btn {
    height: 36px !important;
    padding: 0 16px !important;
    font-size: 0.84rem !important;
  }
}

/* ===================================================
   HEADER PILL CAPSULE BUTTONS (Yellow Background & Black Text)
   =================================================== */
.header-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--bg-card, #181b22);
  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, rgba(255, 255, 255, 0.08));
  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, #00aeec);
  box-shadow: 0 0 0 2px var(--accent-glow, rgba(0, 174, 236, 0.3));
}

.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, #181b22);
  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,
.header-bell-btn:focus,
.header-bell-btn:active,
.header-bell-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  transform: scale(1.05);
}

.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 {
  color: #1e293b;
}

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

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

.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;
}

/* Notification Popup Dropdown - Modern Redesign */
.header-notifications-popup {
  position: absolute;
  top: calc(100% + 12px);
  right: -20px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: rgba(18, 20, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 1000;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform-origin: top right;
  animation: notifPopupSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifPopupSlide {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

[data-theme="light"] .header-notifications-popup {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.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.08);
}

[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.08);
}

.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.06);
}

.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;
}

/* Post Pill Button next to Avatar (Matching Image 1) */
/* Post Pill Button next to Avatar (Removed from main site per user request) */
.header-post-btn,
#headerPostBtn {
  display: none !important;
}

.header-account-popup {
  top: calc(100% + 8px);
  right: 0;
  left: auto !important;
  min-width: 220px;
}

.account-popup-header-user {
  padding: 12px 14px 10px;
}

.account-popup-user-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-popup-user-handle {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

/* ── 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, #000000) !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 rgba(245, 176, 65, 0.4);
}

[data-theme="light"] .header-pill-btn.premium-pill .header-pill-label {
  color: #0f172a !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;
}

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

[data-theme="light"] .header-pill-btn.post-pill:hover {
  background: #009cd3 !important;
  border-color: #009cd3 !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 236, 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;
}

@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;
  }
}

/* ── 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;
}

#sidebarPostBtn,
.btn-sidebar-post,
#headerPillPost,
.post-pill,
#headerPopupCreatePost {
  display: none !important;
}

/* ===================================================
   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
   =================================================== */
.user-feed-panel a:hover,
.profile-feed-container a:hover,
.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;
}

.user-feed-panel a:hover,
.profile-feed-container a:hover,
.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 THEME TOGGLE: YELLOW KNOB WITH BLACK ICON
   =================================================== */
.theme-toggle .tt-track,
[data-theme="light"] .theme-toggle .tt-track,
[data-theme="dark"] .theme-toggle .tt-track,
[data-theme="light"] .tt-track,
[data-theme="dark"] .tt-track {
  background: #facc15 !important;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.45) !important;
}

.theme-toggle .theme-icon-moon,
.theme-toggle .theme-icon-sun,
.theme-toggle:hover .theme-icon-moon,
.theme-toggle:hover .theme-icon-sun,
[data-theme="light"] .theme-toggle .theme-icon-sun,
[data-theme="dark"] .theme-toggle .theme-icon-moon,
.tt-track svg,
.tt-track .theme-icon-sun,
.tt-track .theme-icon-moon {
  color: #000000 !important;
  stroke: #000000 !important;
  fill: #000000 !important;
}

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

/* ===================================================
   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
   =================================================== */
@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. Restore Dark/Light theme toggle on desktop */
  .header-right .theme-toggle,
  #themeToggle {
    display: inline-flex !important;
  }

  /* 5. Restore standalone search icon button if present */
  .header-search-icon-btn,
  #headerSearchIconBtn {
    display: inline-flex !important;
  }

  /* 6. Desktop Search Bar: standard desktop size */
  .header-search {
    display: flex !important;
    flex: 0 1 480px !important;
    max-width: 520px !important;
    min-width: 200px !important;
    height: 40px !important;
    margin: 0 12px !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:
   3-line / 3-dot hamburger menu button before logo
   =================================================== */
@media (orientation: landscape) and (max-height: 520px),
       (orientation: landscape) and (max-width: 1024px) and (pointer: coarse) {
  .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;
  }
}

/* ===================================================
   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;
  }
}


