/* ========================
   Glassmorphism News Feed
   ======================== */

.glass-modal {
  background: rgba(20, 20, 35, 0.4) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
}

.glass-header {
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.toggle-media-size {
  display: none !important;
}

/* Modal Content Adjustments */
#memberNewsModal .news-feed-modal-content {
  width: 90%;
  max-width: 600px;
  height: 90vh;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#memberNewsModal .news-feed-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-left h2 {
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-news-filter {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
  padding: 6px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-news-filter.active, .btn-news-filter:hover {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(58, 123, 213, 0.2));
  border-color: #00d2ff;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.btn-create-post {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
  border: none;
  color: #fff;
  padding: 6px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
  transition: transform 0.2s;
}
.btn-create-post:hover { transform: translateY(-2px); }

/* Hide scrollbars completely as per request */
.no-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}

/* ========================
   Publish Form Section
   ======================== */

.publish-section {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.publish-section h3 {
  text-align: center;
  color: #00d2ff;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}
.publish-section textarea {
  width: 100%;
  height: 80px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  resize: none;
  font-size: 14px;
  box-sizing: border-box;
}
.upload-area {
  margin-top: 10px;
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  color: #bbb;
  transition: 0.2s;
}
.upload-area:hover { border-color: #00d2ff; background: rgba(0,210,255,0.02); }

.upload-preview {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.upload-preview img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
}

.sticky-options {
  margin-top: 12px;
  background: rgba(0,0,0,0.15);
  padding: 10px;
  border-radius: 10px;
}
.checkbox-label {
  display: flex; align-items: center; gap: 8px; cursor: pointer; color: #ddd; font-size: 13px;
}
.checkbox-label input { display: none; }
.custom-checkbox {
  width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04); position: relative; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.checkbox-label input:checked + .custom-checkbox {
  background: linear-gradient(135deg, #00d2ff, #0088ff); border-color: #00d2ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.5);
}
.custom-checkbox::after {
  content: '✓'; position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%) scale(0.5);
  color: #fff; font-weight: 800; font-size: 11px; opacity: 0; transition: transform 0.2s;
}
.checkbox-label input:checked + .custom-checkbox::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.kms-select {
  background: rgba(0,0,0,0.2) !important; border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px; color: #fff !important; padding: 7px 12px; font-size: 13px; cursor: pointer;
  backdrop-filter: blur(10px); outline: none; transition: 0.2s;
}
.kms-select:focus { border-color: #00d2ff !important; box-shadow: 0 0 8px rgba(0,210,255,0.3); }
#stickyDurationSelect select {
  background: #111; color: #fff; border: 1px solid #333; border-radius: 6px; padding: 4px;
}
.cost-info { margin-left: 10px; font-size: 12px; color: #ffca28; }

.form-actions { display: flex; gap: 10px; margin-top: 12px; justify-content: flex-end; }
.btn-submit { background: #00ea1c; color: #000; font-weight: 700; border: none; padding: 6px 16px; border-radius: 8px; cursor: pointer; }

.btn-cancel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-cancel:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

/* ========================
   Feed Card Structure
   ======================== */

.news-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-header {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user-info { display: flex; align-items: center; gap: 10px; }
.avatar-ring {
  width: 38px; height: 38px; border-radius: 12px; padding: 0;
  background: transparent !important;
}
.avatar-ring.no-gradient { background: transparent !important; }
.avatar-ring img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; border: none !important; }

.user-meta { display: flex; flex-direction: column; }
.name-row { display: flex; align-items: center; gap: 5px; }
.username { font-weight: 700; font-size: 14px; color: #fff; }
.date-label { font-size: 11px; color: rgba(255,255,255,0.5); }

.pin-badge {
  background: linear-gradient(135deg, #ffca28, #f57c00);
  color: #000; font-weight: 800; font-size: 10px; padding: 3px 8px; border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 202, 40, 0.4);
}

.card-content { 
  padding: 8px 15px 12px 15px; 
  line-height: 1.5; 
  color: #e1e1e1; 
  font-size: 14px; 
  white-space: normal !important; /* Collapse source code spaces/newlines */
  word-wrap: break-word; 
  height: auto !important; /* Force auto height to remove calculated gaps */
  min-height: 0 !important;
}

.card-content p {
  margin: 0 0 10px 0;
}

.card-content *:first-child {
  margin-top: 0 !important;
}

.card-content *:last-child {
  margin-bottom: 0 !important;
}

/* Media Slider */
.card-media {
  position: relative;
  width: 100%;
}
.media-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
  scrollbar-width: none;
}
.media-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex; justify-content: center; background: #000;
}
.media-item img, .card-video video {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
  display: block;
  margin: 0 auto;
}

/* Relocated slider nav styles */
.slider-nav { display: none !important; } /* Hide old absoluta overlay */

/* Actions Section */
.card-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 15px 8px 15px !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}

.actions-left {
  display: flex !important;
  gap: 18px !important;
  flex: 1 !important; /* Pushes children right */
  flex-wrap: wrap !important; /* Allows items to match next row */
}

.action-item {
  display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 18px; transition: transform 0.1s;
}
.action-item span { font-size: 14px; color: #bbb; font-weight: 500; }
.action-item:active { transform: scale(0.9); }
.action-item.active:not(.btn-action-3d) { color: #ff2a6d !important; text-shadow: 0 0 10px rgba(255, 42, 109, 0.4); }
.action-item.active:not(.btn-action-3d) span { color: #fff; }

/* 3D Prominent Action Button (Base for Like, Comment, Bookmark) */
.btn-action-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 16px;
  color: #bbb;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
      3px 3px 8px rgba(0, 0, 0, 0.3),
      -1px -1px 4px rgba(255, 255, 255, 0.05),
      inset 1px 1px 2px rgba(255, 255, 255, 0.05);
}

.btn-action-3d:hover {
  transform: translateY(-2px);
  box-shadow: 
      5px 5px 12px rgba(0, 0, 0, 0.4),
      -2px -2px 6px rgba(255, 255, 255, 0.08),
      inset 1px 1px 2px rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-action-3d:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 
      2px 2px 5px rgba(0, 0, 0, 0.4),
      inset 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-action-3d span.action-text {
  font-size: 14px;
  font-weight: 700;
  color: inherit;
}

/* Like Button Specific */
.btn-like-3d.active {
  background: linear-gradient(145deg, #ff2a6d, #cc1c52);
  border-color: rgba(255, 42, 109, 0.4);
  color: #fff;
  box-shadow: 
      0 6px 15px rgba(255, 42, 109, 0.4),
      inset 1px 1px 2px rgba(255, 255, 255, 0.3),
      inset -1px -1px 2px rgba(0, 0, 0, 0.2);
}

.btn-like-3d.active .action-icon {
  animation: heartBeat 0.5s ease-in-out;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Bookmark Button Specific */
.btn-bookmark-3d.active {
  background: linear-gradient(145deg, #ffba00, #ff8c00);
  border-color: rgba(255, 186, 0, 0.4);
  color: #fff;
  box-shadow: 
      0 6px 15px rgba(255, 186, 0, 0.4),
      inset 1px 1px 2px rgba(255, 255, 255, 0.3),
      inset -1px -1px 2px rgba(0, 0, 0, 0.2);
}

.btn-bookmark-3d.active .action-icon {
  animation: bookmarkPop 0.5s ease-in-out;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Comment Button Specific */
.btn-comment-3d:hover {
  border-color: rgba(0, 210, 255, 0.4);
  color: #00d2ff !important;
}
.btn-comment-3d:hover .action-icon {
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* Fullscreen mode specific larger size */
#fullLikeBtn.btn-action-3d {
  padding: 10px 24px;
  font-size: 20px;
  border-radius: 24px;
}
#fullLikeBtn.btn-action-3d span.action-text {
  font-size: 16px;
}

@keyframes bookmarkPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4) translateY(-2px); }
  100% { transform: scale(1); }
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.4); }
  28% { transform: scale(1); }
  42% { transform: scale(1.4); }
  70% { transform: scale(1); }
}

.actions-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important; /* Forces right align on Desktop */
}

.slide-counter {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: monospace;
}

.slider-btn-small {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all 0.2s;
}

.slider-btn-small:hover {
  background: #00d2ff;
  color: #111;
  border-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.btn-delete {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: #ff453a;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.btn-delete:hover {
  background: #ff453a;
  color: #fff;
  border-color: #ff453a;
  box-shadow: 0 0 10px rgba(255, 69, 58, 0.4);
}

.info-bar {
  padding: 8px 15px; display: flex; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.4);
}

/* Comments Detail Panel */
.news-comments-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 11000;
  align-items: center;
  justify-content: center;
}

.news-comments-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

#newsCommentsModal .news-comments-content {
  width: 90%;
  max-width: 450px;
  height: 80vh;
  display: flex;
  flex-direction: column;
}
.comments-header { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; }
.comments-list { flex: 1; overflow-y: auto; padding: 15px; }
.comment-item { margin-bottom: 12px; position: relative; }

.comment-input-area {
  padding: 12px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; gap: 8px; background: rgba(0,0,0,0.2);
}
.comment-input-area input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 10px; color: #fff; font-size: 13px;
}
.comment-input-area button {
  background: #00d2ff; color: #000; border: none; font-weight: bold; border-radius: 12px; padding: 0 15px; cursor: pointer;
}

/* Responsive adjustments */
/* ========================
   Custom Toast Notifications
   ======================== */

.custom-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: rgba(15, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 14px 28px;
  color: #fff;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 25px rgba(0, 210, 255, 0.15);
}

.custom-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.custom-toast .toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
}

.custom-toast.success {
  border-color: rgba(0, 234, 28, 0.4);
  background: linear-gradient(135deg, rgba(0, 20, 5, 0.9), rgba(15, 15, 30, 0.85));
}

.custom-toast.error {
  border-color: rgba(255, 59, 48, 0.4);
  background: linear-gradient(135deg, rgba(30, 5, 5, 0.9), rgba(15, 15, 30, 0.85));
}

.toast-icon {
  font-size: 20px;
}

@media screen and (max-width: 900px) {
  .news-fullscreen-content {
      flex-direction: column !important;
      width: 100% !important;
      height: 100vh !important;
      height: 100dvh !important; /* iOS address bar fix */
      border-radius: 0 !important;
  }
  .column-left {
      flex: none !important;
      height: 33.4% !important; /* Default 1/3 media */
      border-right: none !important;
      border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .column-right {
      flex: 1 !important;
      height: 66.6% !important; /* Default 2/3 comments */
      min-height: 0 !important; /* Force scroll inner elements */
  }
  
  /* Toggle state for Expanded Media (2/3) / Small Comments (1/3) */
  .news-fullscreen-content.expanded-media .column-left {
      height: 66.6% !important;
  }
  .news-fullscreen-content.expanded-media .column-right {
      height: 33.4% !important;
  }
  
  /* Show toggle button only on mobile */
  .toggle-media-size {
      display: flex !important;
  }
  .btn-layout-toggle {
      width: 32px;
      height: 32px;
      border-radius: 50% !important;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      font-size: 14px;
      padding: 0;
  }
  .btn-layout-toggle:active {
      transform: scale(0.9);
      background: rgba(255, 255, 255, 0.2);
  }
}

.liker-avatar {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  border: 2px solid #050508;
  margin-left: -18px;
  cursor: pointer;
  transition: transform 0.2s;
}
.liker-avatar:first-child {
  margin-left: 0;
}
.liker-avatar:hover {
  transform: translateY(-5px);
  z-index: 50;
}

.slider-btn-small {
  background: rgba(255, 255, 255, 0.08); 
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff; 
  width: 25px; 
  height: 25px; 
  border-radius: 50% !important; 
  font-size: 11px; 
  cursor: pointer; 
  display: flex !important; 
  align-items: center; 
  justify-content: center; 
  transition: all 0.2s;
  padding: 0;
}
.slider-btn-small:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ========================
   Custom Confirm Dialog
   ======================== */

.custom-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-confirm-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.custom-confirm-box {
  width: 90%;
  max-width: 380px;
  background: rgba(20, 20, 35, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-confirm-overlay.visible .custom-confirm-box {
  transform: scale(1);
}

.confirm-icon {
  font-size: 44px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(255, 77, 77, 0.3));
}

.confirm-message {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 15px;
}

.confirm-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-confirm-yes {
  background: linear-gradient(135deg, #ff4d4d, #d32f2f);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.btn-confirm-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 77, 0.5);
}

.btn-confirm-no {
  background: rgba(255, 255, 255, 0.08);
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-confirm-no:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}



/* Liker Avatars Standard Setup (Desktop) */
.likers-avatars-small {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin-left: 0 !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding: 8px 15px 12px 15px !important; /* Added horizontal and bottom padding */
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-sizing: border-box !important;
}
.liker-avatar-mini {
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    border: 1.5px solid #141423 !important;
    cursor: pointer !important;
    transition: transform 0.2s !important;
    position: relative !important;
}
.liker-avatar-mini:hover {
    transform: translateY(-5px) !important;
    z-index: 50 !important;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.6) !important;
}

/* Mobile adjustments for Liker Avatars */
@media screen and (max-width: 480px) {
  .card-actions {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .actions-left {
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 12px !important;
    justify-content: flex-start !important;
  }
  .actions-right {
    margin-left: 0 !important; /* Cancel push on Mobile */
  }
  .likers-avatars-small {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 8px !important; 
    padding: 5px 3px !important; 
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    gap: 3px !important; 
    display: flex !important;
    flex-wrap: nowrap !important; /* Force to one single row */
    overflow-x: auto !important; /* Enable scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth iOS scroll */
    box-sizing: border-box !important;
  }
  .liker-avatar-mini {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important; /* Prevent squashing in horizontal list */
    margin-left: 0 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
  }
  .liker-avatar-mini:first-child {
    margin-left: 0 !important;
  }
}

/* ========================
   Premium Admin Modals
   ======================== */
.premium-admin-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(15px) saturate(160%);
  -webkit-backdrop-filter: blur(15px) saturate(160%);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000000 !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.premium-admin-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.premium-admin-modal-box {
  position: relative !important;
  z-index: 10000001 !important;
  margin: auto !important;
  width: 90%; max-width: 400px;
  background: rgba(20, 20, 35, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 30px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.premium-admin-modal-overlay.active .premium-admin-modal-box {
  transform: scale(1);
}
.premium-modal-title {
  font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 20px; text-align: center;
  background: linear-gradient(135deg, #00d2ff, #3a7bd5); 
  background-clip: text;
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
}
.premium-modal-input {
  width: 100%; height: 50px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 0 15px; color: #fff; font-size: 15px; outline: none; transition: 0.2s;
  margin-bottom: 20px; box-sizing: border-box;
}
.premium-modal-input:focus { border-color: #00d2ff; box-shadow: 0 0 12px rgba(0,210,255,0.2); }
.premium-modal-textarea {
  width: 100%; height: 100px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 15px; color: #fff; font-size: 14px; outline: none; transition: 0.2s;
  margin-bottom: 20px; box-sizing: border-box; resize: none;
}
.premium-modal-textarea:focus { border-color: #00d2ff; box-shadow: 0 0 12px rgba(0,210,255,0.2); }

.premium-modal-actions { display: flex; gap: 12px; }
.premium-modal-btn {
  flex: 1; height: 50px; border-radius: 16px; border: none; font-weight: 700; cursor: pointer; transition: 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.btn-premium-confirm {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5); color: #fff;
  box-shadow: 0 8px 15px rgba(0, 210, 255, 0.2);
}
.btn-premium-confirm:hover { transform: translateY(-2px); box-shadow: 0 12px 20px rgba(0, 210, 255, 0.4); }
.btn-premium-cancel { background: rgba(255,255,255,0.08); color: #ccc; border: 1px solid rgba(255, 255, 255, 0.1) !important; }
.btn-premium-cancel:hover { background: rgba(255,255,255,0.15); color: #fff; }
/* ========================
   NSFW (Adult Content) Styles
   ======================== */

.nsfw-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.nsfw-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s;
}

.nsfw-overlay:hover {
  background: rgba(0, 0, 0, 0.45);
}

.nsfw-warning {
  text-align: center;
  padding: 20px;
  max-width: 80%;
  animation: nsfwPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes nsfwPop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* Frosted glass: blur applied directly on media elements, not containers */
.nsfw-container.is-nsfw img,
.nsfw-container.is-nsfw video,
.nsfw-container.is-locked img,
.nsfw-container.is-locked video {
  filter: blur(8px) brightness(0.85) !important;
  pointer-events: none;
}

/* ── Video price badge (shown on locked video thumbnails) ────────── */
.video-price-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  pointer-events: none;
  z-index: 2;
}

.video-price-badge__label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.video-price-badge__price {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 2px 10px;
}
/* ========================
   Modern Toggle Switch
   ======================== */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #ff4444, #ff0055);
  border-color: #ff4444;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.nsfw-toggle-wrap:hover {
  background: rgba(255, 68, 68, 0.18) !important;
  border-color: rgba(255, 68, 68, 0.45) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.1);
}

.nsfw-toggle-wrap:active {
  transform: scale(0.98);
}

/* Paid Toggle Colors (Cyan) */
.toggle-switch.paid-toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5) !important;
  border-color: #00d2ff !important;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.45) !important;
}

.paid-toggle-wrap:hover {
  background: rgba(0, 210, 255, 0.12) !important;
  border-color: rgba(0, 210, 255, 0.45) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 210, 255, 0.1);
}

/* Upload Preview Reordering */
#uploadPreview {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 18px 0 !important;
  max-height: 250px !important;
  overflow-y: auto !important;
  padding: 8px 4px !important;
  border-radius: 12px !important;
}

#uploadPreview::-webkit-scrollbar {
  width: 5px;
}
#uploadPreview::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.upload-preview-item {
  width: 100px;
  height: 100px;
  position: relative;
  cursor: grab;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.upload-preview-item.dragging {
  opacity: 0.4;
  transform: scale(0.8);
  cursor: grabbing;
}

.upload-preview-item.drag-over {
  border: 2px dashed #00d2ff !important;
  transform: scale(1.05);
}

.remove-upload-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #ff4757;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  transition: 0.2s;
}

.remove-upload-btn:hover {
  transform: scale(1.2);
  background: #ff6b81;
}

/* Edit Modal Specifics */
.btn-privacy-edit {
    flex: 1;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #aaa !important;
    transition: 0.2s;
}

.btn-privacy-edit.active {
    background: rgba(0, 210, 255, 0.15) !important;
    border-color: #00d2ff !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.edit-photos-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.edit-photos-list::-webkit-scrollbar {
    height: 6px;
}
.edit-photos-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* Feed Media Slider */
.media-slider {
    position: relative;
    width: 100%;
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 12px;
    background: #000;
}
.media-slider::-webkit-scrollbar { display: none; }

.slider-track {
    display: flex;
    width: 100%;
}

.slider-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 250px;
}

/* Frosted glass for locked/NSFW: let blurred media show through */
.nsfw-container.is-locked .media-slider,
.nsfw-container.is-nsfw .media-slider {
    background: transparent !important;
}
.nsfw-container.is-locked .slider-item,
.nsfw-container.is-nsfw .slider-item {
    background: transparent !important;
}

.slider-item video,
.slider-item img,
.single-media video,
.single-media img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 14px;
}
.slider-nav:hover { background: #00d2ff; color: #000; }
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }

/* Positioning Fix for feed media */
.card-media, .nsfw-container {
    position: relative !important;
}

.slider-nav {
    display: flex !important; /* Force display if logic allows */
    opacity: 0.8;
}
.card-media:hover .slider-nav {
    opacity: 1;
}

.media-slider .slider-item video {
    width: 100%;
    height: 100%;
    background: #000;
}

/* Premium Circle Button for Slider */
.btn-premium-circle {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-premium-circle:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.7);
    filter: brightness(1.1);
}

.btn-premium-circle:active {
    transform: scale(0.9);
}

.btn-premium-circle span {
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* ── Video Thumbnail Card (feed list) ── */
.video-thumb-card {
    position: relative;
    width: 100%;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #050508;
}
.video-thumb-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.video-thumb-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255,255,255,0.2);
    padding-left: 2px;
}

/* ── Mobile Fullscreen: Immersive Media Mode ── */
@media screen and (max-width: 900px) {
    .news-fullscreen-content.immersive-media .column-left {
        height: 100% !important;
        flex: 1 !important;
        border-bottom: none !important;
    }
    .news-fullscreen-content.immersive-media .column-right {
        display: none !important;
    }
    .news-fullscreen-content.immersive-media .full-post-footer {
        display: none !important;
    }
    .news-fullscreen-content.immersive-media #fullNavButtons {
        opacity: 0.7;
    }
}
/* Immersive floating bar: see member_news_fullscreen_V0.01.css */
@media screen and (min-width: 901px) {
    #immersiveMobileBar { display: none !important; }
}
