/**
 * RING BD — 2027 WORLD-CLASS PREMIUM DESIGN SYSTEM
 * Covers:
 *  - Fullscreen Frosted-Glass Video Player (.rb-glass-video-stage)
 *  - Fullscreen Frosted-Glass Cinema Image Viewer (#rb-glass-lightbox & .lightbox-content)
 *  - Frosted-Glass Sticky Navbar, Feed Cards, Publisher, Messenger, Profile & Settings
 *  - Dark & Light Mode 2027 Harmony
 */

/* --- 1. Global Typography, Cards & Surfaces --- */
body:not(.ringbd-welcome) {
  font-family: 'Plus Jakarta Sans', 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.post .panel,
.wow_content,
.wo_settings_page,
.page-margin .panel,
#publisher-box-focus .panel {
  border-radius: 18px !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.night_mode .post .panel,
body.night_mode .wow_content,
body.night_mode .wo_settings_page {
  border-color: rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

/* --- 2. Frosted-Glass Sticky Header --- */
header .navbar-default {
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

header .navbar-default .search-input input {
  border-radius: 999px !important;
  transition: box-shadow 0.2s ease, background 0.2s ease !important;
}

header .navbar-default .search-input input:focus {
  box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.32) !important;
}

/* --- 3. 2027 World-Class Fullscreen Frosted-Glass Video Player --- */
.rb-glass-video-stage {
  position: relative;
  width: 100%;
  /* RB Reels-shift fix 2026-11-25: the stage MUST have a definite height.
     enhanceVideo() (rb-2027-ui.js) wraps a Plyr <video> that is
     position:absolute with height:100%; with no stage height that 100%
     resolves to 0, so the video collapses to 0px and the glass play
     button cannot start it (measured /post/752 @390px: video 358x0,
     stage 360x2, Plyr wrapper 360x203). height:100% takes the Plyr
     wrapper's reserved 16/9 height where one exists; where the parent
     has no height it resolves to auto and the in-flow video sizes the
     stage, as before. No aspect-ratio is forced here: a 9/16 portrait
     video must stay tall, not be letterboxed into 16/9. Fullscreen
     keeps its own 100dvh rule below; the reels viewer already pins
     the stage with height:100% !important. */
  height: 100%;
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #090d16 100%);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(6, 11, 25, 0.35);
  margin: 6px 0;
  user-select: none;
  -webkit-user-select: none;
}

.rb-glass-video-stage video {
  display: block;
  width: 100% !important;
  max-height: 72vh;
  object-fit: contain;
  background: transparent;
  cursor: pointer;
}

.rb-glass-video-stage.rb-is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 2147483640 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  background: rgba(6, 11, 25, 0.88) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.rb-glass-video-stage.rb-is-fullscreen video {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  object-fit: contain !important;
}

/* Center Glass Play Button Overlay */
.rb-glass-vcenter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.62);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(14, 165, 233, 0.15);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  z-index: 5;
  pointer-events: auto;
}

.rb-glass-vcenter:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0, 106, 78, 0.82);
}

.rb-glass-video-stage.rb-playing .rb-glass-vcenter {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  pointer-events: none;
}

/* Top Glass Badge inside Fullscreen Video */
.rb-glass-vtop {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.rb-glass-video-stage:hover .rb-glass-vtop,
.rb-glass-video-stage:not(.rb-playing) .rb-glass-vtop,
.rb-glass-video-stage.rb-is-fullscreen .rb-glass-vtop {
  opacity: 1;
}

.rb-glass-vbadge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.rb-glass-vclose {
  pointer-events: auto;
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(239, 68, 68, 0.82);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.rb-glass-video-stage.rb-is-fullscreen .rb-glass-vclose {
  display: inline-flex;
}

/* Bottom Floating Frosted-Glass Control Bar */
.rb-glass-vbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  z-index: 6;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rb-glass-video-stage.rb-is-fullscreen .rb-glass-vbar {
  max-width: 760px;
  margin: 0 auto;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
}

.rb-glass-vbtn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 34px;
  transition: background 0.15s ease, transform 0.15s ease;
  touch-action: manipulation;
}

.rb-glass-vbtn:hover {
  background: rgba(14, 165, 233, 0.75);
  transform: scale(1.06);
}

.rb-glass-vprogress {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  touch-action: manipulation;
}

.rb-glass-vfill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #006a4e, #0ea5e9, #ffd36b);
  border-radius: 999px;
}

.rb-glass-vtime {
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rb-glass-vspeed {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffd36b;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* --- 4. 2027 World-Class Fullscreen Frosted-Glass Image Cinema Lightbox --- */
#rb-glass-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483645;
  background: rgba(6, 11, 25, 0.86);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  user-select: none;
  -webkit-user-select: none;
}

#rb-glass-lightbox.rb-open {
  display: flex;
  opacity: 1;
}

.rb-glb-top {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 16px));
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.rb-glb-brand {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.rb-glb-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 70px 20px 90px;
}

.rb-glb-stage img {
  max-width: 94vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: grab;
}

.rb-glb-dock {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom, 22px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  z-index: 10;
}

.rb-glb-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none !important;
}

.rb-glb-btn:hover {
  background: rgba(0, 106, 78, 0.85);
  color: #fff;
  transform: translateY(-2px);
}

.rb-glb-btn.rb-glb-danger {
  background: rgba(239, 68, 68, 0.82);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Post Image Glass Expand Pill */
.rb-img-glass-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

/* Also upgrade WoWonder's built-in .lightbox-backgrond & .lightbox-content to 2027 Frosted Glass */
.lightbox-backgrond {
  background: rgba(6, 11, 25, 0.84) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
}

.lightbox-content {
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65) !important;
}

/* ==== D-06 (2026-11-25, stream B) — lightbox must shrink to the phone ==== */
/* BEFORE: .lightbox-content was a fixed 1110px (style.css) with no mobile
   override, and the photo viewer (.wo_imagecombo_lbox) squeezed the photo
   into calc(100% - 380px) — at 390px the photo was a 10px sliver, invisible
   (measured /post/950 @390: lightbox 390 wide, photo img 8x8). The story
   viewer (.wo_image_lightbox .story-img) carried min-width:900px.
   FIX: cap the box at the viewport; under 767px stack the photo viewer
   (photo on top, comments below) and the older table-cell viewer the same
   way; story-img min-width:0 so nothing forces a width past the screen.
   Desktop is unchanged (min() resolves to 1110px there). */
.lightbox-content:not(.wo_imagecombo_lbox) {
  width: min(1110px, 100vw) !important;
  max-width: 100vw !important;
}
@media (max-width: 767px) {
  .wo_image_lightbox .story-img {
    min-width: 0 !important;
  }
  .wo_imagecombo_lbox {
    height: 100dvh !important;
    overflow-y: auto !important;
  }
  .wo_imagecombo_lbox .story-img {
    width: 100% !important;
    margin-right: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .wo_imagecombo_lbox .story-img img {
    width: 100% !important;
    max-height: 62dvh !important;
    object-fit: contain !important;
  }
  .wo_imagecombo_lbox .comment-section {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .lightbox-content:not(.wo_imagecombo_lbox) {
    margin-top: 0 !important;
    height: 100dvh !important;
    overflow-y: auto !important;
  }
  .lightbox-content:not(.wo_imagecombo_lbox) .story-img {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
  }
  .lightbox-content:not(.wo_imagecombo_lbox) .comment-section {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* ==========================================================================
   5. 2027 WORLD-CLASS DESHI POST SHOW DESIGN (Nakshi Kantha + Glassmorphism)
   Palette: Emerald (#006a4e) · BD Red (#f42a41) · Heritage Gold (#d97706/#ffd36b)
   ========================================================================== */
.post-container .post > .panel.panel-white {
  position: relative;
  border-radius: 22px !important;
  border: 1px solid rgba(0, 106, 78, 0.12) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 106, 78, 0.06) !important;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease;
}

.post-container .post > .panel.panel-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09), 0 4px 12px rgba(0, 106, 78, 0.08) !important;
}

body.night_mode .post-container .post > .panel.panel-white {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45) !important;
}

/* Post Header */
.post .post-heading {
  padding: 18px 20px 12px !important;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.post .post-heading .image .avatar.wow_post_usr_ava img {
  border-radius: 50%;
  border: 2px solid rgba(0, 106, 78, 0.28);
  padding: 2px;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.post .post-heading .image .avatar.wow_post_usr_ava:hover img {
  transform: scale(1.06);
  border-color: #006a4e;
}

.post .post-heading .meta .title a b,
.post .post-heading .meta .title b {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.post .post-heading .meta .time {
  font-size: 12px;
  opacity: 0.82;
}

/* Post Body & Typography (Bangla + English Harmony) */
.post .post-description {
  padding: 4px 20px 14px !important;
}

.post .post-description p,
.post .post-description .edited_text {
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  letter-spacing: 0.005em;
  color: #1e293b;
}

body.night_mode .post .post-description p,
body.night_mode .post .post-description .edited_text {
  color: #e2e8f0 !important;
}

/* Post Media Frames */
.post .post-file {
  border-radius: 16px !important;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.post .post-file img.image-file {
  border-radius: 16px !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post .post-file:hover img.image-file {
  transform: scale(1.015);
}

/* Shared Post Inner Card */
.post .post-shared-from,
.post .wo_shared_doc_post {
  border-radius: 16px !important;
  border: 1px solid rgba(0, 106, 78, 0.14) !important;
  background: rgba(248, 250, 252, 0.72) !important;
}

body.night_mode .post .post-shared-from,
body.night_mode .post .wo_shared_doc_post {
  background: rgba(30, 41, 59, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Post Footer & Action Pills */
.post .post-footer {
  padding: 6px 16px 14px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

body.night_mode .post .post-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.post .post-footer .stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 !important;
}

.post .post-footer .stats .stat-item,
.post #wo_post_stat_button .stat-item {
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease !important;
  background: rgba(241, 245, 249, 0.85) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.night_mode .post .post-footer .stats .stat-item,
body.night_mode .post #wo_post_stat_button .stat-item {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #e2e8f0 !important;
}

.post .post-footer .stats .stat-item:hover,
.post #wo_post_stat_button .stat-item:hover {
  transform: translateY(-1px) scale(1.03);
  background: rgba(0, 106, 78, 0.10) !important;
  border-color: rgba(0, 106, 78, 0.25) !important;
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.12) !important;
}

/* Comments Section & Bubble Polish */
.post .comments-list {
  padding-top: 8px;
}

.post .comment-body {
  border-radius: 16px !important;
  padding: 10px 14px !important;
  background: rgba(241, 245, 249, 0.78) !important;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

body.night_mode .post .comment-body {
  background: rgba(30, 41, 59, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.08);
}

.post .wo_comment_box textarea,
.post .comment-textarea {
  border-radius: 20px !important;
  border: 1px solid rgba(0, 106, 78, 0.18) !important;
  padding: 10px 16px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post .wo_comment_box textarea:focus,
.post .comment-textarea:focus {
  border-color: #006a4e !important;
  box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.14) !important;
}

/* ==========================================================================
   6. 2027 FLOATING GLASS STORY REACTOR DOCK (.rb-story-reactor-dock)
   ========================================================================== */
.rb-story-reactor-dock {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 94%;
  pointer-events: auto;
}

.rb-sr-counts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
}

.rb-sr-counts:empty {
  display: none;
}

.rb-sr-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.rb-sr-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.16s ease;
}

.rb-sr-btn img,
.rb-sr-btn svg {
  width: 26px;
  height: 26px;
}

.rb-sr-btn:hover {
  transform: translateY(-4px) scale(1.22);
  background: rgba(255, 255, 255, 0.22);
}

.rb-sr-reply-btn {
  border: 1px solid rgba(255, 211, 107, 0.45);
  background: linear-gradient(135deg, #006a4e, #0ea5e9);
  color: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease;
}

.rb-sr-reply-btn:hover {
  transform: scale(1.05);
}



/* ========================================================
   RING BD 2027 UPGRADE — POST HEADER, COLOR & RESPONSIVENESS FIXES
   ======================================================== */

/* Post Header Flex Alignment Fix */
.post .post-heading {
  padding: 16px 18px 12px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
  width: 100% !important;
}

.post .post-heading .image {
  order: 1 !important;
  flex: 0 0 auto !important;
  margin-right: 12px !important;
  float: none !important;
}

.post .post-heading .image .avatar.wow_post_usr_ava img {
  border-radius: 50% !important;
  border: 2px solid rgba(0, 106, 78, 0.28) !important;
  padding: 2px !important;
  background: #fff !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
  width: 44px !important;
  height: 44px !important;
  object-fit: cover !important;
}

.post .post-heading .image .avatar.wow_post_usr_ava:hover img {
  transform: scale(1.06) !important;
  border-color: #006a4e !important;
}

.post .post-heading .meta {
  order: 2 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.post .post-heading .meta .title {
  margin: 0 0 2px 0 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.post .post-heading .meta .title a b,
.post .post-heading .meta .title b {
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: -0.01em !important;
  color: #0f172a !important;
}

[data-theme="dark"] .post .post-heading .meta .title a b,
[data-theme="dark"] .post .post-heading .meta .title b,
body.active .post .post-heading .meta .title a b,
body.active .post .post-heading .meta .title b {
  color: #f8fafc !important;
}

.post .post-heading .meta .time {
  font-size: 12px !important;
  opacity: 0.75 !important;
  margin-top: 2px !important;
}

.post .post-heading .pull-right {
  order: 3 !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
  float: none !important;
  display: flex !important;
  align-items: center !important;
}

.post .post-heading .pull-right .dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  color: #64748b !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.post .post-heading .pull-right .dropdown-toggle:hover {
  background: rgba(0, 106, 78, 0.08) !important;
  color: #006a4e !important;
}

/* 2027 Brand Navigation Bar */
header .navbar-default,
.navbar-default {
  background: linear-gradient(135deg, #006a4e 0%, #004d39 60%, #083329 100%) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  box-shadow: 0 4px 20px rgba(0, 106, 78, 0.25), 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] header .navbar-default,
[data-theme="dark"] .navbar-default,
body.active header .navbar-default,
body.active .navbar-default {
  background: linear-gradient(135deg, #0b132b 0%, #0f172a 60%, #1e293b 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 2027 Directory & Search Modernization */
.wo_directory_head,
.wo_directory_head.user,
.wo_directory_head.page,
.wo_directory_head.group,
.wo_directory_head.blog,
.wo_directory_head.market {
  background: linear-gradient(135deg, rgba(0, 106, 78, 0.08) 0%, rgba(15, 23, 42, 0.04) 100%) !important;
  border: 1px solid rgba(0, 106, 78, 0.15) !important;
  border-radius: 16px !important;
  color: #006a4e !important;
}

.wo_directory_head > h2 {
  color: #006a4e !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .wo_directory_head,
[data-theme="dark"] .wo_directory_head.user,
body.active .wo_directory_head {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

[data-theme="dark"] .wo_directory_head > h2,
body.active .wo_directory_head > h2 {
  color: #fff !important;
}

.wow_frnd_usr .fndfrnd_user_wrapper {
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 106, 78, 0.12) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.wow_frnd_usr .fndfrnd_user_wrapper:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(0, 106, 78, 0.18) !important;
}

/* Mobile Responsiveness Polish */
.sun_pic_info_footer ul.nav-tabs,
.user-bottom-nav ul.nav-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 0 4px !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.sun_pic_info_footer ul.nav-tabs::-webkit-scrollbar,
.user-bottom-nav ul.nav-tabs::-webkit-scrollbar {
  display: none !important;
}

.sun_pic_info_footer ul.nav-tabs > li,
.user-bottom-nav ul.nav-tabs > li {
  flex: 0 0 auto !important;
  float: none !important;
  white-space: nowrap !important;
}

.sun_pic_info_footer ul.nav-tabs > li > a,
.user-bottom-nav ul.nav-tabs > li > a {
  padding: 12px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

@media (max-width: 768px) {
  .post-filter-by {
    position: static !important;
    margin-bottom: 12px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  
  .setting-well .setting-panel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding: 8px 4px !important;
    margin-bottom: 16px !important;
    border-radius: 12px !important;
    background: rgba(0, 106, 78, 0.05) !important;
  }
  
  .setting-well .setting-panel::-webkit-scrollbar {
    display: none !important;
  }
  
  .setting-well .setting-panel li {
    flex: 0 0 auto !important;
    float: none !important;
  }
  
  .setting-well .setting-panel li a {
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }
}


/* RingBD mobile-web composer + feed tabs (2026-11-18) — mobile only. */
.rb-mobile-actions,
.rb-online-dot,
.rb-feed-tabs {
  display: none;
}

@media (max-width: 767px) {
  /* --- Composer: white rounded card, avatar + grey pill --- */
  .publisher-box .sun_pub_box {
    border-radius: 16px !important;
    padding: 10px 12px 8px !important;
    margin-bottom: 12px;
    background: #fff;
  }
  /* 2026-11-20 composer fix: flex row -- avatar sits left of the pill, no overlap
     (was absolute 48px avatar in a 35px row: it straddled the divider). */
  .publisher-box .wo_pub_txtara_combo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
  }
  .publisher-box .sun_pub_name {
    display: none !important;
  }
  .publisher-box .add-emoticons {
    display: none !important;
  }
  .publisher-box .rb-composer-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
  }
  .publisher-box .rb-composer-avatar .post-avatar {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 40px !important;
    height: 40px !important;
  }
  .publisher-box .rb-online-dot {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #31a24c;
    border: 2px solid #fff;
  }
  .publisher-box textarea.postText {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px !important;
    min-height: 40px !important;
    padding: 10px 14px !important;
    border: none !important;
    border-radius: 999px !important;
    background: #f0f2f5 !important;
    box-shadow: none !important;
    font-size: 15px;
    resize: none;
  }
  body.pub-focus .publisher-box textarea.postText {
    height: 112px !important;
    min-height: 112px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: #fff !important;
  }
  body.pub-focus .publisher-box .wo_pub_txtara_combo {
    align-items: flex-start;
  }
  body.pub-focus .publisher-box .rb-composer-avatar {
    margin-top: 4px;
  }
  /* hide the desktop mid row + extra footer items on mobile; Share/privacy stay */
  .publisher-box .sun_pub_mid_foot {
    display: none !important;
  }
  .publisher-box .publisher-box-footer .sun_pub_more {
    display: none !important;
  }
  .publisher-box .publisher-box-footer .btn-go-live {
    display: none !important;
  }
  /* --- Mobile 4-action row (Live / Photo / Reels / Feeling) --- */
  .publisher-box .rb-mobile-actions {
    display: flex;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e4e6eb;
  }
  .publisher-box .rb-mobile-action {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 2px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
  }
  .publisher-box .rb-mobile-action + .rb-mobile-action {
    border-left: 1px solid #e4e6eb;
  }
  .publisher-box .rb-mobile-action svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }
  /* --- Feed tabs (For You / Following / News / Popular) --- */
  .rb-feed-tabs {
    display: flex;
    background: #fff;
    border-radius: 999px;
    padding: 2px;
    margin: 0 0 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }
  .rb-feed-tab {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 2px;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
    cursor: pointer;
    white-space: nowrap;
  }
  .rb-feed-tab svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }
  .rb-feed-tab.active {
    background: #00a651;
    color: #fff;
  }
  .rb-feed-tab[data-rb-tab="popular"] svg {
    color: #f57c00;
  }
  .rb-feed-tab.active svg {
    color: #fff;
  }
  /* on mobile the tabs replace the order-by dropdown + icon filters */
  .middlecol .wow_content.order-by,
  .middlecol #filterby-post {
    display: none !important;
  }
  /* news empty state */
  .rb-news-empty {
    background: #fff;
    border-radius: 16px;
    padding: 36px 16px;
    text-align: center;
    color: #65676b;
  }
  .rb-news-empty p {
    margin: 0 0 6px;
  }
}

/* --- RB Mobile Web 2027: header + stories (2026-11-18) --- */
/* New mobile-only hooks are hidden on desktop by default: zero change to existing desktop rendering. */
.rb-brand-tagline,
#head_menu_rght .rb-online-dot,
#head_menu_rght .rb-avatar-chevron,
.rb-story-avatar {
  display: none;
}

@media (max-width: 767px) {
  /* Header: solid green bar (reference), no frosted gradient on mobile */
  header .navbar-default,
  .navbar-default {
    background: #006a4e !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    border-bottom: none !important;
  }
  [data-theme="dark"] header .navbar-default,
  [data-theme="dark"] .navbar-default,
  body.active header .navbar-default,
  body.active .navbar-default {
    background: #006a4e !important;
    border-bottom: none !important;
  }
  .header-fixed1000 > .container-fluid {
    padding: 0 10px !important;
  }
  /* Logo: restore the brand hidden below 600px; tagline stacked under it */
  header .navbar-default .header-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
  }
  header .navbar-default .header-brand img {
    width: 104px !important;
    height: auto !important;
  }
  .rb-brand-tagline {
    display: block !important;
    margin-top: 3px !important;
    font-size: 8.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    color: rgba(255, 255, 255, 0.92) !important;
    white-space: nowrap !important;
  }
  /* Hide the desktop Home/Create nav on mobile */
  .wow_hdr_innr_left {
    min-width: 0 !important;
  }
  .wow_hdr_innr_left .nav {
    display: none !important;
  }
  /* Right icon cluster: flex row at every mobile width */
  #head_menu_rght {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }
  #head_menu_rght .rb-hdr-icon {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #head_menu_rght .rb-hdr-icon > a {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    margin: 6px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
  }
  #head_menu_rght .rb-hdr-icon > a:hover,
  #head_menu_rght .rb-hdr-icon > a:focus {
    background: rgba(255, 255, 255, 0.30) !important;
  }
  #head_menu_rght .rb-hdr-icon > a svg {
    width: 20px !important;
    height: 20px !important;
  }
  /* Red count badges, top-right of each round button (real backend counts) */
  #head_menu_rght .rb-hdr-icon .new-update-alert {
    top: 4px !important;
    right: 0 !important;
    left: auto !important;
    margin: 0 !important;
    min-width: 17px !important;
    height: 17px !important;
    line-height: 13px !important;
    padding: 0 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #ffffff !important;
    background: #f02849 !important;
    border: 2px solid #006a4e !important;
    border-radius: 999px !important;
  }
  /* Avatar: round, white ring, green online dot, chevron */
  #head_menu_rght .rb-hdr-avatar {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }
  #head_menu_rght .rb-hdr-avatar > a.user-menu-combination {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 0 !important;
    margin: 0 6px 0 2px !important;
  }
  .header-container .user-avatar img {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: none !important;
  }
  #head_menu_rght .rb-online-dot {
    display: block !important;
    position: absolute !important;
    width: 10px !important;
    height: 10px !important;
    right: 9px !important;
    bottom: 0 !important;
    background: #31a24c !important;
    border: 2px solid #006a4e !important;
    border-radius: 50% !important;
    z-index: 2 !important;
    pointer-events: none !important;
  }
  #head_menu_rght .rb-avatar-chevron {
    display: flex !important;
    align-items: center !important;
    color: #ffffff !important;
  }
  .rb-avatar-chevron svg {
    width: 12px !important;
    height: 12px !important;
  }
  /* Icon dropdown menus must fit a phone screen (webaudit 2026-11-20):
     the width cap alone did NOT fit them - the menus are left-anchored
     to their header icon, so a 374px panel starting at x=265 ran 249px
     past the right edge (measured live on all 4 panels). Pin them to
     the viewport as a sheet below the 48px header instead. */
  header .navbar-default .dropdown-menu.notifications-dropdown,
  header .navbar-default .dropdown-menu.ani-acc-menu {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    top: 60px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 60px - 72px) !important; /* A-M6 2026-11-28: 76px forgot the 64px bottom nav -- the menu ran 48px under it, hiding Log Out etc. 60 top + 64 nav + 8 gap. */
  }
  /* Toggled search bar drops below the green bar */
  #wo_home_search {
    background: #006a4e !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18) !important;
  }
  /* Guest header: keep compact, white text */
  .navbar-default .rb-hdr-guest > li > a {
    color: #ffffff !important;
    font-size: 13px !important;
    padding: 10px 6px !important;
  }

  /* Stories: large horizontal-scroll cards, cut off at the right edge */
  .user-status-home.wow_home_stories {
    margin: 0 -15px 15px 0 !important;
    padding: 0 !important;
  }
  .wow_home_stories ul.status-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 0 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .wow_home_stories ul.status-list::-webkit-scrollbar {
    display: none !important;
  }
  .user-status-home ul.status-list li {
    flex: 0 0 75px !important;
    width: 75px !important;
    min-width: 75px !important;
    margin-top: 0 !important;
    padding: 0 8px 0 0 !important;
  }
  .user-status-home ul.status-list li a {
    height: 140px !important;
    padding-bottom: 0 !important;
    border-radius: 14px !important;
  }
  .user-status-home ul.status-list li a p {
    font-size: 13px !important;
    line-height: 1.25 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
  }
  /* Round avatar ring, top-left of each story card */
  .rb-story-avatar {
    display: block !important;
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    border: 3px solid #ccd0d5 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
    z-index: 2 !important;
  }
  /* Unseen stories: blue ring; the old whole-card gradient outline is off on mobile */
  .user-status-home ul.status-list li.not_seen_story .rb-story-avatar {
    border-color: #1877f2 !important;
  }
  .user-status-home ul.status-list li.not_seen_story:before {
    display: none !important;
  }
  .user-status-home ul.status-list li.not_seen_story a {
    box-shadow: none !important;
    transform: none !important;
  }
  /* Create Story card: own photo on top, green + button, label below */
  .user-status-home ul.status-list li.create_new a {
    background: #ffffff !important;
  }
  .user-status-home ul.status-list li.create_new a:after {
    display: none !important;
  }
  .user-status-home ul.status-list li.create_new a img {
    height: 62% !important;
  }
  .user-status-home ul.status-list li.create_new a p {
    top: calc(62% - 16px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    text-shadow: none !important;
  }
  .user-status-home ul.status-list li.create_new a p svg {
    width: 32px !important;
    height: 32px !important;
    padding: 6px !important;
    margin: 0 auto !important;
    background: #006a4e !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
  }
  .user-status-home ul.status-list li.create_new a p::after {
    content: "Create Story";
    display: block !important;
    margin-top: 6px !important;
    color: #050505 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  /* Standalone story page: tidy mobile panel */
  .rb-story-page .panel {
    border-radius: 14px !important;
  }
}

/* ==== RB mobile post cards (2026-11-18) — reference match, mobile only ==== */
@media (max-width: 767px) {
  /* Card: white rounded card */
  .post-container { margin: 0 0 12px !important; }
  .post .panel-white { border-radius: 14px !important; border: 0 !important; box-shadow: 0 1px 2px rgba(0,0,0,.14) !important; overflow: hidden; }
  /* Header: avatar / name / time + privacy */
  .post .post-heading { height: auto !important; min-height: 60px !important; padding: 12px 12px 0 !important; }
  .post .post-heading .avatar { width: 45px !important; height: 45px !important; }
  .post .post-heading .meta .title { font-size: 15px !important; margin-top: 2px !important; }
  .post .post-heading h6 { margin: 2px 0 0 !important; font-size: 13px !important; }
  .post .post-heading .verified-color svg { width: 16px !important; height: 16px !important; vertical-align: -3px; }
  /* Text */
  .post .post-description { padding: 10px 12px 8px !important; }
  .post .post-description p { font-size: 15px !important; color: #050505 !important; margin-left: 0 !important; margin-right: 0 !important; }
  /* Media: full-width, rounded corners, natural ratio (no crop) */
  .post .post-file { border-radius: 12px !important; overflow: hidden !important; margin: 4px 0 0 !important; }
  .post .post-file img { max-height: none !important; height: auto !important; border-radius: 12px !important; display: block; }
  .post .post-file video { border-radius: 12px !important; }
  /* Counts row (mobile line replaces the desktop counts rows) */
  .post .stats.post-actions.rb-has-m-counts { display: none !important; }
  .post .rb-m-counts { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 0 !important; font-size: 14px; color: #65676b; }
  .post .rb-m-counts .rb-m-left { display: inline-flex; align-items: center; min-width: 0; }
  .post .rb-m-counts .like-emo { display: inline-flex; align-items: center; }
  /* web-reaction-fix 2026-11-21: stock .how_reacted is a 3px-padded white
     circle with -6px/-10px overlap margins (style.css:3722) + .reaction
     overflow:hidden (style.css:7671). With the 18px fixed width that left
     a 12px content box and clipped 6px off every reaction SVG (measured:
     img 18px, container 12px, hiddenPx 6, all widths). Reset to flat,
     non-overlapping 20px icons: no padding, no negative margin, no white
     circle, no clipping. Desktop .post-actions row untouched. */
  .post .rb-m-counts .like-emo .how_reacted { width: 20px !important; height: 20px !important; padding: 0 !important; margin: 0 3px 0 0 !important; background: transparent !important; border-radius: 0 !important; flex: 0 0 auto !important; }
  .post .rb-m-counts .like-emo .inline_post_count_emoji { width: 20px !important; height: 20px !important; overflow: visible !important; flex: 0 0 auto !important; }
  .post .rb-m-counts .like-emo .inline_post_count_emoji img { width: 20px !important; height: 20px !important; display: block !important; }
  .post .rb-m-counts .rb-m-num { font-weight: 600; color: #65676b; margin-left: 4px; }
  .post .rb-m-counts .rb-m-right { white-space: nowrap; }
  .post .rb-m-counts .rb-m-dot { margin: 0 5px; }
  /* webaudit 2026-11-20: count rendered TWICE ("2 2") - hide the
     how_many_reacts copy, keep the bold .rb-m-num. Right side must
     shrink with ellipsis so long counts never overflow the card. */
  .post .rb-m-counts .how_many_reacts { display: none !important; }
  .post .rb-m-counts .rb-m-left { flex-shrink: 0 !important; }
  .post .rb-m-counts .rb-m-right { min-width: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  /* Divider between counts and actions */
  .post .post-description > hr { border-top: 1px solid #e4e6eb !important; margin: 10px 0 0 !important; }
  /* Action row: Like | Comment | Share | Save, 4 equal columns, thin dividers */
  .post #wo_post_stat_button { border-top: 0 !important; margin: 0 !important; width: 100% !important; padding: 2px 0 !important; }
  /* webaudit 2026-11-20 round 4: equal flex:1 columns gave Comment only
     81px but its content is 94px (18px icon + 70px label), so it read
     "Com...". Natural widths total ~283px < 332px row, so let each
     button size to its content and spread them evenly. */
  /* webaudit 2026-11-20 round 5: space-evenly gaps (~20px) pushed Saved
     to a second line - the four natural widths already total ~332px.
     Center with a fixed 8px gap + 1px side padding instead: total
     ~316px < 332px row, real slack for font variance. */
  .post #wo_post_stat_button { justify-content: center !important; gap: 8px !important; }
  .post #wo_post_stat_button .stat-item { padding: 8px 1px !important; font-size: 13px !important; flex: 0 1 auto !important; width: auto !important; min-width: 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  .post #wo_post_stat_button .stat-item + .stat-item { border-left: 1px solid #e4e6eb; }
  .post #wo_post_stat_button #shares { display: none !important; }
  .post #wo_post_stat_button .rb-save-action.rb-saved { color: #006a4e !important; }
  .post #wo_post_stat_button .rb-save-action.rb-saved svg path { fill: #006a4e; }
  /* web-reaction-fix 2026-11-21: action-row alignment. (a) Buttons are
     flex items but icon+label were baseline-aligned, giving 1-2px icon
     offsets; make each button an inline-flex row with centered icon+label
     and a fixed 5px icon gap. (b) The Like SVG carries 58.5px
     width/height attributes; pin all button icons to 18px (the 16px
     rule at <=360px still wins there). (c) The :hover lift (translateY
     -1px + scale) sticks on touch after a tap and leaves the tapped
     button visibly shifted vs the others - neutralise the transform on
     mobile, keep the colour change. (d) The reacted Like icon uses the
     same .inline_post_count_emoji wrapper - pin it to 18px with visible
     overflow so it can never clip. */
  .post #wo_post_stat_button .stat-item { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 5px !important; }
  .post #wo_post_stat_button .stat-item svg, .post #wo_post_stat_button .stat-item img { width: 18px !important; height: 18px !important; flex: 0 0 auto !important; }
  .post #wo_post_stat_button .stat-item:hover { transform: none !important; }
  .post #wo_post_stat_button .stat-item .inline_post_count_emoji { width: 18px !important; height: 18px !important; overflow: visible !important; flex: 0 0 auto !important; }
  .post #wo_post_stat_button .stat-item .inline_post_count_emoji img { width: 18px !important; height: 18px !important; display: block !important; }
  /* Comment preview: grey rounded bubble + Like/Reply row */
  .post .post-footer { background: #fff !important; border-top: 0 !important; padding: 0 0 12px !important; }
  .post .post-footer .comments-list .comment { margin: 8px 0 0 !important; padding: 0 12px !important; }
  .post .post-footer .comments-list .comment .avatar { width: 32px !important; height: 32px !important; }
  .post .post-footer .comments-list .comment .comment-body { margin-left: 40px !important; }
  .post .post-footer .comments-list .comment .comment-heading { border-radius: 16px !important; padding: 6px 10px !important; max-width: calc(100% - 8px) !important; }
  .post .post-footer .comments-list .comment .comment-options { font-size: 12px !important; color: #65676b !important; margin: 4px 0 0 12px !important; }
  .post .post-footer .comments-list .comment .comment-options svg { width: 14px !important; height: 14px !important; }
  /* View-all row with avatar stack */
  .post .post-footer .view-more-wrapper { padding: 8px 12px 0 !important; font-size: 14px; font-weight: 600; color: #65676b; }
  .post .post-footer .view-more-comments { display: flex !important; align-items: center; gap: 8px; padding: 8px 12px 0 !important; font-size: 14px; font-weight: 600; color: #65676b; }
  .post .post-footer .view-more-comments .rb-viewall-avatars { display: inline-flex; }
  .post .post-footer .view-more-comments .rb-viewall-avatars img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; }
  .post .post-footer .view-more-comments .rb-viewall-avatars img:first-child { margin-left: 0; }
  /* Comment composer input: pill */
  .post .post-commet-textarea .comment-textarea { border-radius: 20px !important; }
}

/* RingBD mobile composer dot override (2026-11-18): the header agent's bare
   .rb-online-dot !important rules target the header avatar; re-assert the
   composer dot geometry for the composer avatar only. Append-only fix. */
@media (max-width: 767px) {
  .publisher-box .rb-composer-avatar .rb-online-dot {
    width: 12px !important;
    height: 12px !important;
    right: 0 !important;
    bottom: 0 !important;
    border: 2px solid #fff !important;
  }
}

/* RingBD mobile-web measurement fix-up (2026-11-18): header 48px -> 60px to match
   reference (~59.5px @390); the fixed-header content offsets move +12px with it.
   Mobile only (@media max-width:767px); desktop rules untouched. */
@media (max-width: 767px) {
  header .navbar-default,
  .navbar-default {
    height: 60px !important;
  }
  /* keep the header's flex row vertically centred in the taller bar */
  .header-fixed1000,
  .header-fixed1000 > .container-fluid {
    height: 100% !important;
  }
  .content-container {
    margin-top: 57px !important;
  }
  #wo_home_search {
    top: 60px !important;
  }
  .wo_kb_msg_page {
    padding-top: 57px !important;
  }
  .wo_reels_cont {
    margin-top: 60px !important;
    height: calc(100dvh - 60px) !important;
  }
  .hidden_reels,
  .reels_list {
    top: 60px !important;
  }
  .reels_list {
    height: calc(100dvh - 60px) !important;
  }
  .nav.navbar-nav .dropdown-switch-account .dropdown-menu {
    top: 60px !important;
  }
}

/* ==== G-06 + D-07 (2026-11-25, stream B) — premium 9:16 Reels stage ==== */
/* BEFORE: ringbd cropped (object-fit:cover, 384x782 filled the 390x784 box,
   cutting landscape clips top/bottom); sunshine letterboxed (contain, no
   reserved frame) — and neither theme reserved a 9:16 frame before load,
   so the reel could shift while watching. FIX: the stage itself is now a
   fixed aspect-ratio:9/16 box — reserved at layout time (the exact-size
   skeleton; its dark glass background shows until the video paints, so
   nothing jumps) — with the video contain-fitted INSIDE it: nothing is
   cropped, nothing letterboxes outside the frame, nothing shifts. The
   .plyr--video wrapper is already display:flex, so the stage centres
   vertically in the full-height column. Feed / post videos are untouched
   (all rules are scoped under .wo_reels_cont). Supersedes the earlier
   fill-the-frame rule (ringbd: WEBAUDIT cover; sunshine: BUG 2 fill). */
/* (History: WEBAUDIT 2026-11-20 first fixed the 72vh cap with cover; the
   2026-11-25 premium stage below replaces cover with contain-in-9:16.) */
.wo_reels_cont .plyr--video {
  height: calc(100dvh - 60px) !important;
  align-items: center !important;
  justify-content: center !important;
}
.wo_reels_cont .rb-glass-video-stage {
  height: auto !important;
  aspect-ratio: 9 / 16 !important;
  max-height: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}
.wo_reels_cont .plyr--video video,
.wo_reels_cont video {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
}

/* ==== WEBAUDIT 2026-11-20 round 4: narrow phones (<=360px) ==== */
@media (max-width: 360px) {
  .post #wo_post_stat_button .stat-item { font-size: 12px !important; padding: 8px 4px !important; }
  .post #wo_post_stat_button .stat-item svg, .post #wo_post_stat_button .stat-item img { width: 16px !important; height: 16px !important; }
}

/* ==== WEBPHOTO 2026-11-21: photo-post premium fix (Dipu phone check 05:22) ==== */
/* ROOT CAUSE 1 — photo squash: stock style.css:2499 `#fullsizeimg img{min-height:300px}`
   stretched a 360x202 landscape photo into a 360x300 box (object-fit:fill) = -32.5%
   vertical squash ("bent" photo). Round-1 (2026-11-21) only set height:auto and never
   touched min-height, so it could not work. ROOT CAUSE 2 — grey pills: the pill style
   (background #f1f5f9, radius 999px) IS the current design in this file (~552-562);
   round-1 only fixed icon clipping inside the pills and never questioned the pills. */

/* --- 1. PHOTO: true aspect ratio at every width, no stretch / crop / tilt --- */
.post #fullsizeimg { max-height: none !important; }
.post #fullsizeimg img:not(.fund) {
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 16px !important;
}
.post #fullsizeimg img:not(.fund):hover { transform: none !important; }
@media (max-width: 767px) {
  .post #fullsizeimg img:not(.fund) { border-radius: 12px !important; }
}

/* --- 2. ACTION ROW: Facebook-grade flat row (replaces the grey pills) --- */
.post #wo_post_stat_button {
  border-top: 1px solid #e4e6eb !important;
  margin-top: 8px !important;
  padding-top: 4px !important;
  display: flex !important;
}
.post #wo_post_stat_button .stat-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: #65676b !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 7px 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  gap: 6px !important;
}
.post #wo_post_stat_button .stat-item + .stat-item { border-left: 0 !important; }
.post #wo_post_stat_button .stat-item:hover,
.post #wo_post_stat_button .stat-item:focus,
.post #wo_post_stat_button .stat-item:active {
  background: rgba(0,0,0,.05) !important;
  transform: none !important;
  box-shadow: none !important;
}
.post #wo_post_stat_button .stat-item svg,
.post #wo_post_stat_button .stat-item img { width: 20px !important; height: 20px !important; }
.post #wo_post_stat_button .stat-item .emoji { transform: none !important; }
/* Mobile: equal-width flex (flex:1 1 0) clipped the "Comment" label at 390px
   (77px box vs ~94px of icon+label). Let buttons size to content and share
   the spare width instead, with a slightly smaller label. */
@media (max-width: 767px) {
  .post #wo_post_stat_button .stat-item {
    flex: 1 1 auto !important;
    padding: 7px 2px !important;
    font-size: 13px !important;
  }
}

/* --- 3. COUNTS ROW: hide the bare "0" when nobody reacted --- */
/* CORRECTION: .like-emo is NEVER empty - Wo_GetPostReactions() renders a grey
   Like-icon placeholder with class rb-no-react when the count is 0 (proven on
   staging post 716). Hide on that class instead; JS replaces it with real
   icons on react, so the row reappears dynamically. Desktop counts row
   (.like-stat) gets the same treatment. */
.post .rb-m-counts { font-size: 14px !important; color: #65676b !important; }
.post .rb-m-counts .rb-m-left:has(.rb-no-react) { display: none !important; }
.post .stats.post-actions .like-stat:has(.rb-no-react) { display: none !important; }
.post .rb-m-counts .rb-m-num { font-weight: 600 !important; }

/* --- 4. COMMENT BOX: aligned avatar + clean pill input + green send --- */
.post .post-commet-textarea { padding-top: 8px !important; }
.post #wo_comment_combo > div:first-child { align-items: flex-start !important; gap: 8px !important; }
.post #wo_comment_combo .avatar {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  margin-top: 2px !important;
}
.post .comment-textarea {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  background: #f0f2f5 !important;
  border: 1px solid transparent !important;
  border-radius: 20px !important;
  padding: 9px 14px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.post .comment-textarea:focus {
  background: #ffffff !important;
  border-color: rgba(0,166,81,.4) !important;
  box-shadow: 0 0 0 3px rgba(0,166,81,.12) !important;
  outline: none !important;
}
/* stock sendbtn was antiquewhite bg + maroon text; now a green circle, white plane */
#wo_comment_combo .comment_combo_footer .wo_feed_post_comments .btn.sendbtn {
  background-color: #00a651 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.15) !important;
}
#wo_comment_combo .comment_combo_footer .wo_feed_post_comments .btn.sendbtn svg {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  fill: #ffffff !important;
  opacity: 1 !important;
}

/* === X3B ELITE FIX 2026-11-21 - X3-05: Reels rail vs bottom bar at <=820px ===
   The action rail (.video-text-overlay, bottom:0) sits over the custom glass
   bottom bar (.rb-glass-vbar: absolute, bottom:12px, ~54px tall), so the
   Muted button lands on the bar and the views icon clips behind it.
   Lift the whole rail 76px at tablet widths and below: the rail bottom
   clears the bar top (stage bottom minus 66px) with the mute button's 10px
   rail padding to spare. Desktop untouched (rail sits clear of the video). */
@media (max-width:820px){
.wo_reels_cont .video-text-overlay{bottom:76px!important}
}

/* Reels right-rail clearance (fix round 4): lift the action column so the
   views count clears the glass control bar at phone widths. The rail is a
   bottom-anchored flex column, so raising `bottom` lifts the views block. */
@media (max-width: 480px) {
  .wo_reels_cont .video-text-overlay {
    bottom: 70px;
  }
}

/* ------------------------------------------------------------------ */
/* F-R11 (R3) -- fixed cookie banner covers scrolled-to inputs.        */
/* The m-07 body pad only extends the scrollable area; it does not    */
/* move an input's resting position, and scroll-into-view stops at    */
/* minimum visibility, so the sunshine 404 search input (and the      */
/* /directory comment boxes) still land under the banner as-loaded.   */
/* scroll-padding-bottom makes every scroll-into-view / focus scroll  */
/* stop with the target above the banner. Value 180px covers the      */
/* tallest measured bottom banner: ringbd 145px @320, sunshine        */
/* 125px @320 (banner floats 15px above the viewport bottom).         */
/* !important: beats ringbd-mobile.css 96px mobile-nav rule (same    */
/* specificity, loaded later); 180px clears the 96px nav too.        */
/* ------------------------------------------------------------------ */
html { scroll-padding-bottom: 180px !important; }
/* RB D5 2026-11-29: empty new-posts pill stayed a solid square on prod because x1-web-polish-patch.css !important padding/min-height defeat the :empty collapse in style.css. Hide it outright when empty. */
.posts-count:empty{display:none!important;}
/* RB D2/D3/D4 hardening 2026-11-29: desktop header-dropdown stacking is byte-identical prod-vs-staging, so no file-level root cause exists; this lifts the header above the composer veil (#focus-overlay 1031) and lightbox so menus cannot be covered. NOT a proven root-cause fix - live re-verify required. */
@media (min-width:768px){
header.navbar-default{z-index:1040!important;}
#focus-overlay{z-index:1029!important;}
}
/* RB LIVE 2026-12-01 (bugs 1-clip/2/3 + mobile menu paint): the <header> is
   position:static with a backdrop-filter, so it is a z-auto stacking context
   and the later-DOM main content paints ABOVE the header dropdowns (proven
   live: profile/create/bell/search menus hit-test 0/5 MENU at 1919 + 390).
   The 2026-11-29 hardening targeted header.navbar-default, which never
   matches (the <header> is .header-container), and z-index is inert on a
   static element anyway. position:relative enables the z-index; 1040 keeps
   menus above content and #focus-overlay (1029). All widths (mobile too). */
header.header-container{position:relative;z-index:1040 !important;}

/* RB D17(c) 2026-11-29: the 4-cell mobile composer action row had no right gutter, so Feeling clipped at the card edge; below 360px the nowrap labels overflow. */
@media (max-width:767px){.publisher-box .rb-mobile-actions{margin:6px 4px 0!important;}}
@media (max-width:360px){.publisher-box .rb-mobile-action{font-size:13px!important;gap:4px!important;}}
/* RB D18 2026-11-29: below 1200px the fixed 250px chat panel overlays the right rail and the 890px container cap squeezes the feed to ~501px. Hide the panel in this band (Messenger stays available via the header icon); the container cap is lifted to 970px in style.css. */
@media (max-width:1199px){.chat-container{display:none!important;}}
