.post_card .like-btn .reaction-box {
  position: absolute;
  width: 312px;
  height: 55px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 28px;
  left: -25px;
  bottom: 35px;
  z-index: 100;
  display: none;
}

.post_card .like-btn .reaction-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 25px;
  background: transparent;
}

html[data-bs-theme="dark"] .post_card .like-btn .reaction-box,
body.dark .post_card .like-btn .reaction-box,
.dark .post_card .like-btn .reaction-box {
  background: #1e293b;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.post_card .reaction-icon.angry:not(.visible) {
  animation-fill-mode: both;
  animation-duration: 1.3s;
  animation-iteration-count: infinite;
  animation-name: headShake;
  animation-timing-function: ease-in-out;
  background-position: 0px 0px;
}

.post_card .reaction-icon.haha:not(.visible) {
  animation-fill-mode: both;
  animation-duration: 1.3s;
  animation-iteration-count: infinite;
  animation-name: swing;
  transform-origin: top center;

  background-position: 0px -80px;
}

.post_card .reaction-icon.like:not(.visible) {
  animation-fill-mode: both;
  animation-duration: 1.3s;
  animation-iteration-count: infinite;
  animation-name: bounce;
  transform-origin: center bottom;
  background-position: 0px -120px;
}

.post_card .reaction-icon.love:not(.visible) {
  animation-fill-mode: both;
  animation-duration: 1.3s;
  animation-iteration-count: infinite;
  animation-name: heartBeat;
  animation-timing-function: ease-in-out;

  background-position: 0px -160px;
}

.post_card .reaction-icon.sad:not(.visible) {
  animation-fill-mode: both;
  animation-duration: 1.3s;
  animation-iteration-count: infinite;
  animation-name: fadeInDown;
  background-position: 0px -200px;
}

.post_card .reaction-icon.wow:not(.visible) {
  animation-fill-mode: both;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-name: pulse;
  animation-timing-function: ease-in-out;
  background-position: 0px -240px;
}

.post_card .reaction-icon.angry {
  background-position: 0px 0px;
}

.post_card .reaction-icon.haha {
  background-position: 0px -80px;
}

.post_card .reaction-icon.like {
  background-position: 0px -120px;
}

.post_card .reaction-icon.love {
  background-position: 0px -160px;
}

.post_card .reaction-icon.sad {
  background-position: 0px -200px;
}

.post_card .reaction-icon.wow {
  background-position: 0px -240px;
}


.post_card .reaction-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: url('../images/reactions.png');
  background-size: cover;
  border-radius: 20px;

  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translate(0, 100px) scale(0);
}

@keyframes bounce {

  from,
  20%,
  53%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -2px, 0) scaleY(1.1);
  }

  70% {
    transform: translate3d(0, -1px, 0) scaleY(1.05);
  }

  80% {
    transform: translate3d(0, 0, 0) scaleY(0.95);
  }

  90% {
    transform: translate3d(0, -1px, 0) scaleY(1.02);
  }
}

@keyframes heartBeat {

  0%,
  28%,
  70% {
    transform: scale(1);
  }

  14%,
  42% {
    transform: scale(1.05);
  }
}

@keyframes swing {

  20%,
  80% {
    transform: rotate3d(0, 0, 1, 2deg);
  }

  40%,
  to {
    transform: rotate3d(0, 0, 1, -2deg);
  }

  60% {
    transform: rotate3d(0, 0, 1, 0deg);
  }
}

@keyframes pulse {

  from,
  to {
    transform: scale3d(1, 1, 1);
  }

  50% {
    transform: scale3d(1.05, 1.05, 1.05);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 1;
    transform: translate3d(0, -5%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes headShake {

  0%,
  50% {
    transform: translateX(0);
  }

  6.5%,
  43.5% {
    transform: translateX(-2px) rotateY(-9deg);
  }

  18.5% {
    transform: translateX(1px) rotateY(7deg);
  }

  31.5% {
    transform: translateX(-1px) rotateY(-5deg);
  }
}

.post_card .reaction-icon label {
  padding: 3px 5px 3px 5px;
  position: relative;
  top: -24px;
  border-radius: 10px;
  font-size: 11px;
  color: #FFF;
  background: #333;
  visibility: hidden;
}

.post_card .like-btn:hover .reaction-box {
  display: block;
}

.post_card .like-btn:hover .reaction-icon.show {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.post_card .like-btn:hover .reaction-icon:hover {
  transform: scale(1.4);
  transform-origin: bottom;
  animation: none;
}

.post_card .like-btn:hover .reaction-icon:hover label {
  visibility: visible;
}

.post_card .reaction-icon.visible {
  opacity: 1 !important;
  transform: translate(0, 0) scale(0.7);
}

.socio-skeleton {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 15px 0;
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.socio-skeleton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150px;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, #e0e0e0 50%, transparent 100%);
  animation: load 1.5s infinite;
}

.skeleton-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  background: #f0f0f0;
  border-radius: 50%;
  margin-right: 10px;
}

.skeleton-body {
  flex-grow: 1;
}

.skeleton-content {
  margin-bottom: 10px;
}

.skeleton-line {
  height: 10px;
  background: #f0f0f0;
  margin-bottom: 10px;
  border-radius: 4px;
}

.skeleton-line-half {
  width: 50%;
}

.skeleton-line-quarter {
  width: 25%;
}

.skeleton-image {
  height: 200px;
  background: #f0f0f0;
  border-radius: 4px;
}

@keyframes load {
  0% {
    left: -150px;
  }

  100% {
    left: 100%;
  }
}

.daytime_message {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.btn-close {
  position: absolute;
  right: 15px;
  top: 15px;
}

.greeting-icon {
  font-size: 40px;
  color: #ffc107;
}

.post_counter a,
.post_counter i {
  font-size: 11px;
  color: #999;
}

#post_holder .nav .nav-item .nav-link {
  font-weight: bold;
  color: #555;
}



.post-promo a.great-job {
  background: #f35555;
  color: #fff;
}

.post-promo a.coffee {
  background: #b17244;
  COLOR: #FFF;
}

.post-promo a:hover {
  opacity: 0.6;
}

.post_card {
  border-bottom: 3px solid #dddfe2 !important;
}

.verified_circle {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #7bbb5e !important;
  font-size: 13px !important;
  line-height: 1 !important;
  box-shadow: 0 0 0 2px #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 2;
}

.avatar-xs .verified_circle {
  width: 12px !important;
  height: 12px !important;
  font-size: 10px !important;
  bottom: 0px !important;
  right: 0px !important;
}

html[data-bs-theme="dark"] .verified_circle,
body.dark .verified_circle,
.dark .verified_circle {
  background: #15171c !important;
  box-shadow: 0 0 0 2px #15171c !important;
}

.add_story_box:before {
  content: "";
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  background-color: rgb(0 0 0 / 22%);
}

.add_story_box .add_btn {
  z-index: 999;
}

.add_story_box a {
  border: 2px solid #FFF;
}

.post_highlighter {
  background: #000;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1031;
  bottom: 0%;
  opacity: .6;
  transition: opacity .3s;
  display: none;
}

.post_active {
  z-index: 1033;
}



.color-wigdet {
  padding-bottom: 10px
}

.color-sec {
  position: relative;
  overflow: hidden;
  min-height: 22px
}

.color_list_container {
  display: none;
  /* Start hidden */
  position: relative;
  /* Or absolute, depending on your layout */
  left: -100%;
  /* Start off-screen to the left */
  width: 100%;
  /* Adjust as necessary */
  /* Other styling as needed */
}

.color-sec ul {

  -webkit-transition: .8s ease;
  transition: .8s ease
}

.color-sec .close-color {
  color: #1d2130 !important;
  background-color: #eeeff3;
  text-align: center
}

.color-sec .close-color i {
  font-size: 22px;
  line-height: 19px;
  margin-left: -1px
}

.color-sec .togglemenu {
  color: #1d2130 !important;
  background-color: #eeeff3;
  text-align: center
}

.color-sec li {
  float: left;
  list-style: none;
}

.color-sec div {
  -webkit-border-radius: 50px;
  border-radius: 50px;
  cursor: pointer;
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.55);
  -webkit-box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.55);
  height: 20px;
  margin: 4px;
  width: 20px
}

.color-sec div.active {
  border: 0;
  box-shadow: inset 0 0 0 2px #fff, 0 0 4px 0 rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: inset 0 0 0 2px #fff, 0 0 4px 0 rgba(0, 0, 0, 0.3)
}

#color-child-sec {
  overflow: hidden
}

#color-child-sec ul li {
  float: left
}

#color-child-sec ul li:first-child {
  margin-left: 0
}

#color-child-sec div {
  -webkit-border-radius: 50px;
  border-radius: 50px;
  cursor: pointer;
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15);
  -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15);
  height: 20px;
  margin: 4px;
  width: 20px
}

#color-child-sec div.active {
  border: 0;
  box-shadow: inset 0 0 0 2px #fff, 0 0 4px 0 rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: inset 0 0 0 2px #fff, 0 0 4px 0 rgba(0, 0, 0, 0.3)
}

._23ju {
  background: #c600ff
}

._23jo {
  background: #fff
}

._2j78 {
  background: #111111
}

._2j79 {
  background: linear-gradient(45deg, #ff0047 0%, #2c34c7 100%)
}

._2j80 {
  background: linear-gradient(45deg, #fc36fd 0%, #5d3fda 100%)
}

._2j81 {
  background: linear-gradient(45deg, #5d6374 0%, #16181d 100%)
}

._2j82 {
  background: #00a859
}

._2j83 {
  background: #0098da
}

._2j84 {
  background: #3e4095
}

._2j85 {
  background: #4b4f56
}

._2j86 {
  background: #161616
}

._2j87,
._2j88,
._2j89,
._2j90 {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom
}

._2j87 {
  background-image: url("https://images.socioon.com/assets/images/post/bgpst1.png")
}

._2j88 {
  background-image: url("https://images.socioon.com/assets/images/post/bgpst2.png")
}

._2j89 {
  background-image: url("https://images.socioon.com/assets/images/post/bgpst3.png")
}

._2j90 {
  background-image: url("https://images.socioon.com/assets/images/post/bgpst4.png")
}

#privacydropdown li {
  padding: 5px 5px;
  /* border-bottom: 1px solid #494e8f; */
}

#privacydropdown li:last-child {
  padding: 5px 5px;
}

/* textarea#m_pst_txt {
  /* background: transparent; 
} 
*/
.clr_pst {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.2em !important;
  color: #fff;
  padding: 28px !important;
  text-align: center !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* Bootstrap3 is required for default styling */
.translate-post,
.hide-translation,
.txt-translate,
.translate-comment,
.hide-translation-sm {
  font-size: 12px;
  color: #c1bfbf;
}

.read-more {
  font-size: 13px;
  color: grey
}

.comment-time {
  font-size: 10px;
}

.commentor-name {
  font-size: 14px;
}

.commentdata .translated {
  font-size: 12px;
}

.translate-comment {
  color: grey !important;
}

.nav .nav-item .nav-link {
  font-size: 14px;
  font-weight: 500;
}

.nav-link .icon {
  margin-right: 10px !important;
  width: 20px;
  height: 20px;
}

.header-icon {
  width: 20px;
  height: 20px;
}

.user_avatar {
  width: 20px !important;
  height: 20px !important;
  margin-right: 15px;
}


/* Hide Sidebar on Small Screens */
@media (max-width: 768px) {
  .left_sidebar {
    /* left: -260px; */
    top: 0;
  }

  .left_sidebar.active {
    left: 0;
    top: 0;
  }
}

.reply_list_main {
  margin: 0;
  padding-left: 40px;
  /* Adjust indentation for replies */
}

.reply-item {
  margin: 0;
  padding: 5px 0;
  /* Reduce spacing */
}

.comment-item .d-flex {
  gap: 5px;
  /* Reduce gap between avatar and comment */
}

.commentdata {
  padding: 8px 12px;
  /* Adjust padding */
  margin-bottom: 5px;
  /* Reduce bottom margin */
}

.nav-divider {
  margin-top: 3px;
  /* Reduce spacing between comment and actions */
}

.comment-item .avatar,
.reply-item .avatar {
  width: 32px;
  /* Adjust avatar size */
  height: 32px;
}

.comment-item .avatar img,
.reply-item .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.reply_list_main {
  margin: 0;
  padding-left: 40px;
  /* Adjust indentation for replies */
}

.reply-item {
  margin: 0;
  padding: 5px 0;
  /* Reduce spacing */
}

.comment-item .d-flex {
  gap: 5px;
  /* Reduce gap between avatar and comment */
}

.commentdata {
  padding: 8px 12px;
  /* Adjust padding */
  margin-bottom: 5px;
  /* Reduce bottom margin */
}

.nav-divider {
  margin-top: 3px;
  /* Reduce spacing between comment and actions */
}

.comment-item .avatar,
.reply-item .avatar {
  width: 32px;
  /* Adjust avatar size */
  height: 32px;
}

.comment-item .avatar img,
.reply-item .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

html[data-bs-theme="dark"] .commentdata,
body.dark .commentdata,
.dark .commentdata {
  background: #242933 !important;
  color: #e5e7eb;
}

html[data-bs-theme="dark"] .commentdata h6 a,
body.dark .commentdata h6 a,
.dark .commentdata h6 a {
  color: #ffffff !important;
}

html[data-bs-theme="dark"] .commentdata small,
body.dark .commentdata small,
.dark .commentdata small,
html[data-bs-theme="dark"] .commentdata .translate-comment,
body.dark .commentdata .translate-comment,
.dark .commentdata .translate-comment {
  color: #aeb7c4 !important;
}

html[data-bs-theme="dark"] .comment-item .nav-divider .nav-link,
body.dark .comment-item .nav-divider .nav-link,
.dark .comment-item .nav-divider .nav-link,
html[data-bs-theme="dark"] .reply-item .nav-divider .nav-link,
body.dark .reply-item .nav-divider .nav-link,
.dark .reply-item .nav-divider .nav-link {
  color: #cbd5e1 !important;
  opacity: 1;
}

html[data-bs-theme="dark"] .comment-item .nav-divider .nav-link:hover,
body.dark .comment-item .nav-divider .nav-link:hover,
.dark .comment-item .nav-divider .nav-link:hover,
html[data-bs-theme="dark"] .reply-item .nav-divider .nav-link:hover,
body.dark .reply-item .nav-divider .nav-link:hover,
.dark .reply-item .nav-divider .nav-link:hover {
  color: #ffffff !important;
}

html[data-bs-theme="dark"] .comment_like_action.active,
body.dark .comment_like_action.active,
.dark .comment_like_action.active {
  color: #60a5fa !important;
}

.suggestions-box {
  display: none;
  background: white;
  border: 1px solid #ddd;
  z-index: 999;
  max-height: 150px;
  overflow-y: auto;
  width: 100%;
  left: 0;
  top: 100%;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

/* =========================================================
   Media Card Overlay Redesign (Image & Video Posts)
   ========================================================= */

.post_card.media-overlay-card {
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #ffffff;
}

html[data-bs-theme="dark"] .post_card.media-overlay-card,
body.dark .post_card.media-overlay-card,
.dark .post_card.media-overlay-card {
  background: #15171c;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.post_card.media-overlay-card > .card-body {
  padding: 0 !important;
}

.post_card.media-overlay-card .media-post-container {
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 20px 20px 0 0 !important;
  overflow: hidden;
  /* background: #000000; */
}

.post_card.media-overlay-card .inner_post {
  padding: 0 !important;
}

.post_card.media-overlay-card .inner_post > .short-text,
.post_card.media-overlay-card .inner_post > .full-text,
.post_card.media-overlay-card .inner_post > .read-more,
.post_card.media-overlay-card .inner_post > .translate-post {
  display: block;
  padding-left: 16px;
  padding-right: 16px;
}

.post_card.media-overlay-card .inner_post > .short-text {
  padding-top: 14px;
}

.post_card.media-overlay-card .post-action-pills-bar,
.post_card.media-overlay-card .nav-pills,
.post_card.media-overlay-card .comments_holder,
.post_card.media-overlay-card .d-flex.pt-2 {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.post_card.media-overlay-card .d-flex.pt-2 {
  padding-bottom: 14px !important;
}

/* Header Overlay on Top of Media */
.media-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  padding: 16px 18px 40px 18px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.media-header-overlay .user-info-group {
  display: flex;
  align-items: center;
}

.media-header-overlay .avatar-box {
  position: relative;
  margin-right: 12px;
  flex-shrink: 0;
}

.media-header-overlay .avatar-box img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.media-header-overlay .user-details h6 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.media-header-overlay .user-details h6 a {
  color: #ffffff !important;
  text-decoration: none;
}

.media-header-overlay .profile-update-action-text {
  margin-left: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.media-header-overlay .user-details .meta-subtext {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.media-header-overlay .user-details .meta-subtext a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.media-header-overlay .dropdown .btn-menu-overlay {
  color: #ffffff !important;
  background: transparent;
  border: none;
  font-size: 22px;
  padding: 4px 8px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

/* Centered Video Play Button Overlay */
.video-play-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: auto !important;
}

.dashboard_player {
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.dashboard-video-bg {
  position: absolute;
  inset: -25px;
  width: calc(100% + 50px);
  height: calc(100% + 50px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(30px) brightness(0.8);
  opacity: 0.85;
  transform: scale(1.2);
  pointer-events: none;
  z-index: 0;
}

.dashboard_player video {
  position: relative;
  z-index: 1;
  max-height: 550px;
  width: 100%;
  object-fit: contain !important;
  background: transparent !important;
  display: block;
}

.dashboard_player:hover .video-play-center-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0, 0, 0, 0.55);
}

.video-is-playing .video-play-center-btn,
.video-play-center-btn.d-none {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Bottom Overlay on Media (Audio & Duration Badges) */
.media-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px 16px 14px 16px;
  background: transparent !important;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.media-bottom-overlay > * {
  pointer-events: auto;
}

.media-audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 12px;
}

.media-audio-pill i {
  font-size: 18px;
}

.media-audio-pill .audio-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.media-audio-pill .audio-title {
  font-weight: 600;
  font-size: 12px;
  color: #ffffff;
}

.media-audio-pill .audio-subtext {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.75);
}

.media-duration-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Post Action Pill Buttons Row */
.post-action-pills-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0 4px 0;
}

.btn-pill-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-pill-coffee {
  background: #aa7453 !important;
  color: #ffffff !important;
}

.btn-pill-coffee:hover {
  background: #935f40 !important;
  color: #ffffff !important;
}

.btn-pill-advertise {
  background: #ffffff !important;
  border-color: #3b82f6 !important;
  color: #2563eb !important;
}

.btn-pill-advertise:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.btn-pill-following {
  background: #ffffff !important;
  border-color: #ec4899 !important;
  color: #db2777 !important;
}

.btn-pill-following:hover {
  background: #fdf2f8 !important;
  color: #be185d !important;
}

.btn-pill-follow {
  background: #2563eb !important;
  color: #ffffff !important;
}

.btn-pill-follow:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

.btn-pill-be-followed {
  background: #f35555 !important;
  border-color: #f35555 !important;
  color: #ffffff !important;
}

.btn-pill-be-followed:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

.btn-pill-be-followed.disabled,
.btn-pill-be-followed[disabled] {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

.advertisement-modal-notice {
  border-radius: 8px;
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #ffe69c;
  line-height: 1.6;
}

.advertisement-modal-notice small {
  color: inherit;
}

html[data-bs-theme="dark"] .advertisement-modal-notice,
body.dark .advertisement-modal-notice,
.dark .advertisement-modal-notice {
  background: rgba(180, 83, 9, 0.18);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.45);
}

html[data-bs-theme="dark"] .post-action-pills-bar,
body.dark .post-action-pills-bar,
.dark .post-action-pills-bar {
  border-top-color: #2b303b;
}

html[data-bs-theme="dark"] .btn-pill-action,
body.dark .btn-pill-action,
.dark .btn-pill-action {
  box-shadow: none;
}

html[data-bs-theme="dark"] .btn-pill-advertise,
body.dark .btn-pill-advertise,
.dark .btn-pill-advertise {
  background: #111827 !important;
  border-color: #60a5fa !important;
  color: #93c5fd !important;
}

html[data-bs-theme="dark"] .btn-pill-advertise:hover,
body.dark .btn-pill-advertise:hover,
.dark .btn-pill-advertise:hover {
  background: #1e3a8a !important;
  color: #ffffff !important;
}

html[data-bs-theme="dark"] .btn-pill-following,
body.dark .btn-pill-following,
.dark .btn-pill-following {
  background: #3f172d !important;
  border-color: #f472b6 !important;
  color: #f9a8d4 !important;
}

html[data-bs-theme="dark"] .btn-pill-following:hover,
body.dark .btn-pill-following:hover,
.dark .btn-pill-following:hover {
  background: #831843 !important;
  color: #ffffff !important;
}

html[data-bs-theme="dark"] .btn-pill-be-followed,
body.dark .btn-pill-be-followed,
.dark .btn-pill-be-followed {
  background: #7f1d1d !important;
  border-color: #f87171 !important;
  color: #fecaca !important;
}

html[data-bs-theme="dark"] .btn-pill-be-followed:hover,
body.dark .btn-pill-be-followed:hover,
.dark .btn-pill-be-followed:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* =========================================================
   Profile Avatar/Cover Update Card Layout
   ========================================================= */

.profile-update-card {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 12px;
  border: 1px solid #dfe7f1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="dark"] .profile-update-card,
body.dark .profile-update-card,
.dark .profile-update-card {
  background: #15171c;
  border-color: #2b303b;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.profile-cover-section {
  position: relative;
  width: 100%;
  height: 220px;
  background: #252a33;
  overflow: hidden;
}

.profile-cover-section img.cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-center-avatar-wrapper {
  position: absolute;
  top: 155px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.profile-center-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  background: #ffffff;
  cursor: pointer;
}

html[data-bs-theme="dark"] .profile-center-avatar,
body.dark .profile-center-avatar,
.dark .profile-center-avatar {
  border-color: #15171c;
}

html[data-bs-theme="dark"] .profile-user-details,
body.dark .profile-user-details,
.dark .profile-user-details {
  background: #1a1f28;
}

.profile-user-details {
  min-height: 145px;
  padding-top: 82px;
  padding-bottom: 24px;
  text-align: center;
  background: #eef3f9;
}

.profile-user-details h5 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--bs-body-color, #0f172a);
}

.profile-user-details .profile-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 0;
}

/* =========================================================
   Comment Box & Send Button Styling
   ========================================================= */

.comment-form-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}

.btn-send-circle {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  background: #2563eb !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-send-circle:hover {
  background: #1d4ed8 !important;
  transform: scale(1.06);
}

.comment-form .form-control {
  border-radius: 999px !important;
  padding-right: 48px !important;
  padding-left: 16px !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 13.5px;
}

html[data-bs-theme="dark"] .comment-form .form-control,
body.dark .comment-form .form-control,
.dark .comment-form .form-control {
  background-color: #1e222b !important;
  border-color: #2b303b !important;
  color: #f8fafc !important;
}

.post-comment-composer {
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  padding: 0 14px 8px !important;
  /* border-top: 1px solid #eef2f7; */
  background: #ffffff;
}

.post-comment-composer .avatar {
  flex: 0 0 auto;
}

.post-comment-composer .avatar-xs {
  width: 36px;
  height: 36px;
}

.post-comment-composer .avatar-xs .avatar-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
}

.post-comment-composer .comment-form {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
}

.post-comment-composer .comment-form .form-control {
  height: 40px !important;
  min-height: 40px;
  max-height: 40px;
  line-height: 20px;
  padding-top: 9px !important;
  padding-right: 52px !important;
  padding-bottom: 9px !important;
  padding-left: 16px !important;
  overflow: hidden;
  resize: none;
}

.post-comment-composer .btn-send-circle {
  right: 6px !important;
  margin-right: 0 !important;
}

.post-comment-composer .bi-check-circle-fill {
  /* box-shadow: 0 0 0 2px #ffffff; */
  border-radius: 50%;
}

/* =========================================================
   Newsfeed Card Polish
   ========================================================= */

.post_card {
  border-radius: 14px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 16px !important;
}

.post_card.has-post-ad {
  margin-bottom: 16px !important;
}

.post_card.has-post-ad .advertisement_section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.feed-inline-ad {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.post_card > .card-header {
  background: #ffffff;
}

.post_card > .card-body {
  padding: 14px;
}

.post_card .nav-pills {
  margin-left: -14px;
  margin-right: -14px;
  padding-left: 14px;
  padding-right: 14px;
}

.post_card .nav-pills .nav-link {
  min-height: 30px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-radius: 8px;
  color: #64748b;
  font-size: 13px;
}

.post_card .nav-pills .nav-link:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.post_card .nav-pills .like_action,
.post_card .nav-pills .reacted_action_count,
.post_card .nav-pills .first_action {
  color: #64748b;
}

.post_card .nav-pills .like_action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.post_card .reaction-icon.add_reaction_one {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  display: inline-block;
  vertical-align: middle !important;
  background-size: 22px auto !important;
  border-radius: 50% !important;
  margin: 0 !important;
}

.post_card .reaction-icon.add_reaction_one:not(.angry):not(.haha):not(.like):not(.love):not(.sad):not(.wow) {
  display: none !important;
}

.post_card .reaction-icon.add_reaction_one.angry { background-position: 0px 0px !important; }
.post_card .reaction-icon.add_reaction_one.haha  { background-position: 0px -44px !important; }
.post_card .reaction-icon.add_reaction_one.like  { background-position: 0px -66px !important; }
.post_card .reaction-icon.add_reaction_one.love  { background-position: 0px -88px !important; }
.post_card .reaction-icon.add_reaction_one.sad   { background-position: 0px -110px !important; }
.post_card .reaction-icon.add_reaction_one.wow   { background-position: 0px -132px !important; }

.post_card .reaction-icon.add_reaction_one.visible {
  opacity: 1 !important;
  transform: none !important;
}

html[data-bs-theme="dark"] .post_card .nav-pills,
body.dark .post_card .nav-pills,
.dark .post_card .nav-pills {
  border-top-color: #2b303b !important;
  border-bottom-color: #2b303b !important;
}

html[data-bs-theme="dark"] .post_card .nav-pills .nav-link,
body.dark .post_card .nav-pills .nav-link,
.dark .post_card .nav-pills .nav-link,
html[data-bs-theme="dark"] .post_card .nav-pills .like_action,
body.dark .post_card .nav-pills .like_action,
.dark .post_card .nav-pills .like_action,
html[data-bs-theme="dark"] .post_card .nav-pills .reacted_action_count,
body.dark .post_card .nav-pills .reacted_action_count,
.dark .post_card .nav-pills .reacted_action_count,
html[data-bs-theme="dark"] .post_card .nav-pills .first_action,
body.dark .post_card .nav-pills .first_action,
.dark .post_card .nav-pills .first_action {
  color: #cbd5e1 !important;
}

.post_card .nav-pills .nav-link.active,
.post_card .nav-pills .like_action.active {
  background-color: transparent !important;
  color: #2563eb !important;
}

.post_card .nav-pills .like_action.active .reacted_action_count,
.post_card .nav-pills .like_action.active .like_count {
  color: #2563eb !important;
}

.post_card .nav-pills .nav-link.active:hover,
.post_card .nav-pills .like_action.active:hover {
  background-color: #f1f5f9 !important;
  color: #2563eb !important;
}

html[data-bs-theme="dark"] .post_card .nav-pills .nav-link.active,
body.dark .post_card .nav-pills .nav-link.active,
.dark .post_card .nav-pills .nav-link.active,
html[data-bs-theme="dark"] .post_card .nav-pills .like_action.active,
body.dark .post_card .nav-pills .like_action.active,
.dark .post_card .nav-pills .like_action.active {
  background-color: transparent !important;
  color: #3b82f6 !important;
}

html[data-bs-theme="dark"] .post_card .nav-pills .like_action.active .reacted_action_count,
body.dark .post_card .nav-pills .like_action.active .reacted_action_count,
html[data-bs-theme="dark"] .post_card .nav-pills .like_action.active .like_count,
body.dark .post_card .nav-pills .like_action.active .like_count {
  color: #3b82f6 !important;
}

html[data-bs-theme="dark"] .post_card .nav-pills .nav-link.active:hover,
body.dark .post_card .nav-pills .nav-link.active:hover,
.dark .post_card .nav-pills .nav-link.active:hover,
html[data-bs-theme="dark"] .post_card .nav-pills .like_action.active:hover,
body.dark .post_card .nav-pills .like_action.active:hover,
.dark .post_card .nav-pills .like_action.active:hover {
  background-color: #1e293b !important;
  color: #3b82f6 !important;
}

/* .post_card .comments_holder {
  border-top: 1px solid #eef2f7;
} */

.feed-product-card {
  display: grid;
  grid-template-columns: minmax(180px, 42%) 1fr auto;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.feed-product-card-shared {
  margin: 0 14px 14px;
}

.feed-product-media {
  display: block;
  width: 100%;
  min-height: 190px;
  height: 100%;
  background: #f1f5f9;
  overflow: hidden;
}

.feed-product-media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}

.feed-product-body {
  min-width: 0;
  padding: 14px 0;
}

.feed-product-post-text {
  margin: 0 0 10px;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.feed-product-title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.3;
}

.feed-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: #64748b;
  font-size: 13px;
}

.feed-product-actions {
  padding: 14px 14px 14px 0;
  white-space: nowrap;
}

.shared-feed-card {
  background: #ffffff;
  border-color: #e5e7eb !important;
  margin: 10px 0 14px !important;
}

.shared-post-label {
  width: 100%;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.18);
  color: #475569;
}

.shared-post-caption {
  color: #0f172a;
}

.shared-feed-card > .card-header {
  background: #ffffff !important;
}

.shared-feed-card .inner_post,
.shared-feed-card .inner_shared_text {
  background: #ffffff;
}

.shared-feed-card .image-grid-wrapper {
  margin-bottom: 0 !important;
}

.shared-feed-card .card-header {
  padding: 12px 14px !important;
}

.shared-feed-card .avatar-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.shared-feed-card .inner_shared_text {
  padding: 12px 14px !important;
}

.shared-video-player {
  background: #000000;
}

.shared-video-player video {
  display: block;
}

.shared-post-wrapper > .card-body > .d-flex.pt-2 {
  align-items: center;
  gap: 10px;
  padding: 12px 14px 14px !important;
  margin: 0 -14px -14px;
  background: #ffffff;
  border-top: 1px solid #eef2f7;
}

.shared-post-wrapper > .card-body > .d-flex.pt-2 .avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  margin-right: 0 !important;
}

.shared-post-wrapper > .card-body > .d-flex.pt-2 .comment-form {
  min-width: 0;
}

.shared-post-wrapper > .card-body > .d-flex.pt-2 .comment-form .form-control {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.shared-post-wrapper > .card-body > .d-flex.pt-2 .btn-send-circle {
  top: 50% !important;
  right: 4px !important;
}

.shared-feed-card .avatar {
  position: relative;
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.shared-feed-card .avatar .avatar-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.shared-feed-card .verified_circle {
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 2;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #22c55e;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 0 0 2px #ffffff;
}

.shared-feed-card .card-header .d-flex.align-items-center {
  min-width: 0;
}

.shared-feed-card .card-header .nav-divider {
  align-items: center;
  gap: 4px;
}

html[data-bs-theme="dark"] .post_card,
body.dark .post_card,
.dark .post_card,
html[data-bs-theme="dark"] .feed-product-card,
body.dark .feed-product-card,
.dark .feed-product-card,
html[data-bs-theme="dark"] .shared-feed-card,
body.dark .shared-feed-card,
.dark .shared-feed-card {
  background: #15171c;
  border-color: #2b303b !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

html[data-bs-theme="dark"] .post_card > .card-header,
body.dark .post_card > .card-header,
.dark .post_card > .card-header,
html[data-bs-theme="dark"] .shared-feed-card > .card-header,
body.dark .shared-feed-card > .card-header,
.dark .shared-feed-card > .card-header,
html[data-bs-theme="dark"] .shared-feed-card .inner_post,
body.dark .shared-feed-card .inner_post,
.dark .shared-feed-card .inner_post,
html[data-bs-theme="dark"] .shared-feed-card .inner_shared_text,
body.dark .shared-feed-card .inner_shared_text,
.dark .shared-feed-card .inner_shared_text {
  background: #15171c !important;
}

html[data-bs-theme="dark"] .shared-post-wrapper > .card-body > .d-flex.pt-2,
body.dark .shared-post-wrapper > .card-body > .d-flex.pt-2,
.dark .shared-post-wrapper > .card-body > .d-flex.pt-2 {
  background: #15171c;
  border-top-color: #2b303b;
}

html[data-bs-theme="dark"] .shared-feed-card .verified_circle,
body.dark .shared-feed-card .verified_circle,
.dark .shared-feed-card .verified_circle {
  background: #15171c;
  box-shadow: 0 0 0 2px #15171c;
}

html[data-bs-theme="dark"] .shared-post-label,
body.dark .shared-post-label,
.dark .shared-post-label {
  background: #1f242d;
  border-color: #343b48;
  color: #d8dee9;
}

html[data-bs-theme="dark"] .shared-post-caption,
body.dark .shared-post-caption,
.dark .shared-post-caption {
  color: #e5e7eb;
}

html[data-bs-theme="dark"] .feed-product-title,
body.dark .feed-product-title,
.dark .feed-product-title {
  color: #f8fafc;
}

html[data-bs-theme="dark"] .feed-product-post-text,
body.dark .feed-product-post-text,
.dark .feed-product-post-text,
html[data-bs-theme="dark"] .feed-product-meta,
body.dark .feed-product-meta,
.dark .feed-product-meta {
  color: #cbd5e1;
}

html[data-bs-theme="dark"] .post-comment-composer,
body.dark .post-comment-composer,
.dark .post-comment-composer {
  background: #15171c;
  border-color: #2b303b;
}

@media (max-width: 767px) {
  .feed-product-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feed-product-body {
    padding: 14px;
  }

  .feed-product-actions {
    padding: 0 14px 14px;
  }

  .feed-product-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   Shared Feed Card Clean Styling
   ========================================================= */

.shared-feed-card {
  margin: 4px 14px 12px 14px !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 3px solid #3b82f6 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  overflow: hidden;
}

html[data-bs-theme="dark"] .shared-feed-card,
body.dark .shared-feed-card,
.dark .shared-feed-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  border-left-color: #3b82f6 !important;
}

.shared-feed-card .card-header {
  padding: 10px 14px !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
}

html[data-bs-theme="dark"] .shared-feed-card .card-header,
body.dark .shared-feed-card .card-header,
.dark .shared-feed-card .card-header {
  border-bottom-color: rgba(51, 65, 85, 0.6) !important;
}

.shared-post-caption {
  font-size: 14.5px;
  line-height: 1.5;
  color: inherit;
  margin-top: 4px;
}

/* =========================================================
   Image Grid, COC Badge & Carousel Styles
   ========================================================= */

.image-grid-wrapper {
  width: 100%;
  position: relative;
}

.grid-layout {
  display: grid;
  gap: 2px;
  width: 100%;
  max-height: 600px;
}

.grid-layout-1 {
  grid-template-columns: 1fr;
  aspect-ratio: 16/9;
}

.grid-layout-2 {
  grid-template-columns: repeat(2, 1fr);
  aspect-ratio: 16/9;
}

.grid-layout-3,
.grid-layout-4,
.grid-layout-5 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  aspect-ratio: 16/9;
}

.grid-layout-more {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  grid-auto-rows: 1fr;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  cursor: pointer;
  overflow: hidden;
}

.image-container:hover {
  opacity: 0.9;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-image {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

.multiple-image {
  object-fit: cover !important;
  width: 100% !important;
}

.remaining-count {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.coc-users-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 5;
  max-width: calc(100% - 28px);
  pointer-events: none;
}

.coc-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px;
  background: rgba(45, 27, 18, 0.56);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.coc-user-badge .coc-user-avatar {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #f8f9fa;
}

.coc-user-badge .coc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #b46f3d;
  color: #fff6ed;
  flex: 0 0 auto;
}

.coc-user-badge .coc-copy {
  min-width: 0;
}

.coc-user-badge .coc-name,
.coc-user-badge .coc-action {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coc-user-badge .coc-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.coc-user-badge .coc-action {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.76);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.dashboard_player .coc-users-badge {
  bottom: 72px;
}

.first-of-three {
  grid-row: span 2;
}

.first-of-five {
  grid-column: span 2;
}

/* Carousel Modal */
.carousel-image-wrapper {
  position: relative;
  width: 100%;
  height: 80vh;
  background: black;
}

.carousel-image {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

/* =========================================================
   Sponsored Ad Card Styles
   ========================================================= */

.advertisement_section {
  width: 100%;
  padding: 0 !important;
  margin-top: 10px;
  margin-bottom: 0;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}

html[data-bs-theme="dark"] .advertisement_section,
body.dark .advertisement_section,
.dark .advertisement_section,
html.dark-mode .advertisement_section,
body.dark-mode .advertisement_section,
.dark-mode .advertisement_section,
html.dark-theme .advertisement_section,
body.dark-theme .advertisement_section,
.dark-theme .advertisement_section,
html[data-theme="dark"] .advertisement_section,
body[data-theme="dark"] .advertisement_section,
[data-theme="dark"] .advertisement_section,
html[data-bs-theme="dark"] .advertisement_section,
body[data-bs-theme="dark"] .advertisement_section,
[data-bs-theme="dark"] .advertisement_section {
  border-top-color: #334155;
}

.sponsored-ad-card {
  --ad-card-bg: #ffffff;
  --ad-card-bg-soft: #000000;
  --ad-card-border: #e2e8f0;
  --ad-card-border-soft: #f1f5f9;

  --ad-title-color: #0f172a;
  --ad-text-color: #475569;
  --ad-muted-color: #64748b;
  --ad-link-color: #2563eb;

  --ad-button-bg: #0f172a;
  --ad-button-hover-bg: #1e293b;
  --ad-button-text: #ffffff;

  width: 100%;
  background: var(--ad-card-bg) !important;
  border: none !important;
  border-radius: 0 0 14px 14px !important;
  overflow: hidden;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sponsored-ad-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.sponsored-ad-top {
  display: flex;
  align-items: center;
  gap: 99px;
  min-height: 38px;
  padding: 10px 14px;
  background: var(--ad-card-bg) !important;
  border-bottom: 1px solid var(--ad-card-border-soft);
}

.sponsored-ad-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.12);
  color: var(--ad-muted-color) !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sponsored-ad-url {
  min-width: 0;
  color: var(--ad-link-color) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sponsored-ad-url:hover {
  text-decoration: underline !important;
}

.sponsored-ad-media-container {
  width: 100%;
  min-height: 250px;
  max-height: 480px;
  background: #1e293b;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.sponsored-ad-video-bg {
  position: absolute;
  inset: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  object-fit: cover;
  object-position: center;
  filter: blur(25px) brightness(0.85);
  opacity: 0.75;
  transform: scale(1.15);
  pointer-events: none;
  z-index: 0;
}

.sponsored-ad-video {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 480px;
  display: block;
  object-fit: contain;
  background: transparent !important;
}

.sponsored-ad-image-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 250px;
  max-height: 450px;
  background: #1e293b;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.sponsored-ad-image-link.has-blur-bg::before {
  content: "";
  position: absolute;
  inset: -15px;
  background-image: var(--ad-image-bg);
  background-size: cover;
  background-position: center;
  filter: blur(25px) brightness(0.85);
  opacity: 0.75;
  transform: scale(1.15);
  pointer-events: none;
  z-index: 0;
}

.sponsored-ad-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 450px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
}

.sponsored-ad-card:hover .sponsored-ad-image {
  transform: none;
}

.sponsored-ad-body {
  padding: 14px 16px 16px;
  background: var(--ad-card-bg) !important;
}

.sponsored-ad-title {
  display: block;
  margin-bottom: 5px;
  color: var(--ad-title-color) !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
}

.sponsored-ad-title:hover {
  color: var(--ad-link-color) !important;
}

.sponsored-ad-description {
  margin: 0 0 14px 0;
  color: var(--ad-text-color) !important;
  font-size: 14px;
  line-height: 1.45;
}

.sponsored-ad-footer {
  margin-top: 10px;
}

.sponsored-ad-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--ad-button-bg) !important;
  color: var(--ad-button-text) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsored-ad-button:hover {
  background: var(--ad-button-hover-bg) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

html.dark .sponsored-ad-card,
body.dark .sponsored-ad-card,
.dark .sponsored-ad-card,
html.dark-mode .sponsored-ad-card,
body.dark-mode .sponsored-ad-card,
.dark-mode .sponsored-ad-card,
html.dark-theme .sponsored-ad-card,
body.dark-theme .sponsored-ad-card,
.dark-theme .sponsored-ad-card,
html[data-theme="dark"] .sponsored-ad-card,
body[data-theme="dark"] .sponsored-ad-card,
[data-theme="dark"] .sponsored-ad-card,
html[data-bs-theme="dark"] .sponsored-ad-card,
body[data-bs-theme="dark"] .sponsored-ad-card,
[data-bs-theme="dark"] .sponsored-ad-card {
  --ad-card-bg: #1e293b;
  --ad-card-bg-soft: #0f172a;
  --ad-card-border: #334155;
  --ad-card-border-soft: #1e293b;

  --ad-title-color: #f8fafc;
  --ad-text-color: #cbd5e1;
  --ad-muted-color: #94a3b8;
  --ad-link-color: #60a5fa;

  --ad-button-bg: #0f172a;
  --ad-button-hover-bg: #3b82f6;
  --ad-button-text: #ffffff;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

html.dark .sponsored-ad-card:hover,
body.dark .sponsored-ad-card:hover,
.dark .sponsored-ad-card:hover,
html.dark-mode .sponsored-ad-card:hover,
body.dark-mode .sponsored-ad-card:hover,
.dark-mode .sponsored-ad-card:hover,
html.dark-theme .sponsored-ad-card:hover,
body.dark-theme .sponsored-ad-card:hover,
.dark-theme .sponsored-ad-card:hover,
html[data-theme="dark"] .sponsored-ad-card:hover,
body[data-theme="dark"] .sponsored-ad-card:hover,
[data-theme="dark"] .sponsored-ad-card:hover,
html[data-bs-theme="dark"] .sponsored-ad-card:hover,
body[data-bs-theme="dark"] .sponsored-ad-card:hover,
[data-bs-theme="dark"] .sponsored-ad-card:hover {
  border-color: #475569 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

html.dark .sponsored-ad-label,
body.dark .sponsored-ad-label,
.dark .sponsored-ad-label,
html.dark-mode .sponsored-ad-label,
body.dark-mode .sponsored-ad-label,
.dark-mode .sponsored-ad-label,
html.dark-theme .sponsored-ad-label,
body.dark-theme .sponsored-ad-label,
.dark-theme .sponsored-ad-label,
html[data-theme="dark"] .sponsored-ad-label,
body[data-theme="dark"] .sponsored-ad-label,
[data-theme="dark"] .sponsored-ad-label,
html[data-bs-theme="dark"] .sponsored-ad-label,
body[data-bs-theme="dark"] .sponsored-ad-label,
[data-bs-theme="dark"] .sponsored-ad-label {
  background: rgba(148, 163, 184, 0.12);
}
