/* ==========================================================================
   EMIGRANTBOOK — MAIN STYLESHEET
   ☀️ DEFAULT: FACEBOOK LIGHT THEME (სუფთა თეთრი დიზაინი)
   🌙 DARK MODE: .dark-mode კლასით 100% ორიგინალი შავი დიზაინი
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  touch-action: manipulation;
}

body {
  background-color: #f0f2f5;
  color: #050505;
  padding-bottom: 60px !important;
}

.avatar-has-online {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.online-status-dot-sm {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  background-color: #31a24c;
  border: 2px solid #ffffff;
  border-radius: 50%;
  z-index: 10;
  animation: onlinePulse 2s infinite;
  pointer-events: none;
}

.online-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background-color: #31a24c;
  border: 3px solid #ffffff;
  border-radius: 50%;
  z-index: 10;
  animation: onlinePulse 2s infinite;
  pointer-events: none;
}

@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(49, 162, 76, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(49, 162, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 162, 76, 0); }
}

#app-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999999 !important;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  animation: logoHeartbeat 1.3s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  filter: drop-shadow(0 0 20px rgba(220, 174, 54, 0.4));
}

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

#app-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

#auth-screen {
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

.auth-container {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid #dadde1;
  margin-bottom: 20px;
}

.logo-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px auto;
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(220, 174, 54, 0.25);
  border: 1px solid rgba(220, 174, 54, 0.4);
  overflow: hidden;
  padding: 10px;
}

.logo-img-text {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo {
  font-size: 32px;
  font-weight: 900;
  color: #dcae36;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  animation: glowTextAnimation 2.5s infinite alternate ease-in-out;
}

@keyframes glowTextAnimation {
  0% {
    color: #dcae36;
    text-shadow: 0 0 5px rgba(220, 174, 54, 0.2), 0 0 10px rgba(220, 174, 54, 0.2);
    transform: scale(1);
  }
  50% {
    color: #b8860b;
    text-shadow: 0 0 15px rgba(220, 174, 54, 0.6), 0 0 25px rgba(220, 174, 54, 0.4);
    transform: scale(1.02);
  }
  100% {
    color: #dcae36;
    text-shadow: 0 0 5px rgba(220, 174, 54, 0.2), 0 0 10px rgba(220, 174, 54, 0.2);
    transform: scale(1);
  }
}

.pwa-install-card {
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(220, 174, 54, 0.35);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-user-select: none;
  user-select: none;
}

.pwa-install-card:hover {
  border-color: #dcae36;
  box-shadow: 0 0 20px rgba(220, 174, 54, 0.2);
  transform: translateY(-2px);
}

.pwa-install-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-install-icon {
  width: 42px;
  height: 42px;
  background: #ffffff;
  border-radius: 10px;
  padding: 5px;
  border: 1px solid rgba(220, 174, 54, 0.4);
  object-fit: contain;
}

.pwa-install-info {
  text-align: left;
}

.pwa-install-title {
  font-size: 14px;
  font-weight: bold;
  color: #050505;
}

.pwa-install-sub {
  font-size: 11px;
  color: #65676b;
  margin-top: 2px;
}

.pwa-install-action-btn {
  background: #dcae36;
  color: #111111;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.auth-footer {
  color: #65676b;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.subtitle {
  color: #65676b;
  margin-bottom: 20px;
  font-size: 14px;
}

.input-group {
  text-align: left;
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  color: #65676b;
  margin-bottom: 6px;
  font-size: 13px;
}

.input-group input, .input-group select, .input-group textarea {
  width: 100%;
  padding: 14px;
  background: #f0f2f5;
  border: 1px solid #ccd0d5;
  border-radius: 10px;
  color: #050505;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  border-color: #dcae36;
}

.btn {
  width: 100%;
  padding: 14px;
  background: #dcae36;
  color: #111111;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.2s;
  -webkit-user-select: none;
  user-select: none;
}

.btn:hover {
  background: #c2982e;
}

.toggle-text {
  margin-top: 20px;
  color: #65676b;
  font-size: 14px;
}

.toggle-text span {
  cursor: pointer;
  color: #dcae36;
  font-weight: 600;
}

.toggle-text span:hover {
  text-decoration: underline;
}

.forgot-pass {
  display: block;
  margin-top: 15px;
  color: #65676b;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.forgot-pass:hover {
  color: #050505;
}

.error-msg {
  color: #ff4d4f;
  margin-bottom: 10px;
  font-size: 14px;
  display: none;
}

.header {
  background: #ffffff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dadde1;
  position: sticky;
  top: 0;
  z-index: 100;
}

.profile-header-fix {
  justify-content: space-between !important;
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
  color: #dcae36;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

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

.nav-icons-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-icon-btn, .nav-icon-btn {
  background: #f0f2f5;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

.header-icon-btn:hover, .nav-icon-btn:hover {
  background: #e4e6eb;
}

.header-icon-svg, .nav-icon-svg {
  width: 20px;
  height: 20px;
  fill: #050505;
}

.nav-icon-btn.active .nav-icon-svg {
  fill: #dcae36;
}

.header-badge, .notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff4d4f;
  color: white;
  font-size: 11px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dcae36;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  overflow: visible;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 110;
}

.burger-line {
  width: 25px;
  height: 3px;
  background-color: #050505;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.side-menu-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 400;
  display: none;
}

.side-menu-content {
  position: fixed;
  top: 0; right: -80%; width: 80%; max-width: 340px; height: 100%;
  background: #ffffff;
  border-left: 1px solid #dadde1;
  z-index: 401;
  display: flex;
  flex-direction: column;
  padding: 60px 0 20px 0;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.side-menu-content.open {
  right: 0 !important;
}

.menu-section-title {
  font-size: 13px;
  color: #65676b;
  padding: 15px 20px 8px 20px;
  font-weight: 600;
}

.menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: #050505;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.menu-item-row:hover {
  background: #f0f2f5;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-item-icon {
  font-size: 20px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050505;
}

.menu-item-arrow {
  color: #8a8d91;
  font-size: 16px;
  font-weight: bold;
}

.menu-divider {
  height: 1px;
  background: #dadde1;
  margin: 8px 0;
}

.menu-live-btn {
  background: linear-gradient(135deg, #ff4d4f 0%, #c0392b 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: calc(100% - 40px);
  margin: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
  transition: transform 0.2s, background 0.2s;
  -webkit-user-select: none;
  user-select: none;
}

.menu-live-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff6b6b 0%, #d63031 100%);
}

.akho-info-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.akho-info-modal {
  background: #ffffff;
  border: 1px solid #dcae36;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.akho-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dadde1;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.akho-info-title {
  font-size: 18px;
  font-weight: bold;
  color: #dcae36;
  display: flex;
  align-items: center;
  gap: 8px;
}

.akho-info-close {
  background: none;
  border: none;
  color: #65676b;
  font-size: 22px;
  cursor: pointer;
}

.akho-info-close:hover {
  color: #050505;
}

.akho-info-body {
  font-size: 14px;
  line-height: 1.6;
  color: #050505;
}

.akho-info-box {
  background: #f0f2f5;
  border-left: 3px solid #dcae36;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 12px 0;
  font-weight: bold;
  color: #050505;
}

.akho-feature-list {
  list-style: none;
  margin-top: 10px;
}

.akho-feature-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.side-menu-logout-btn {
  width: calc(100% - 40px);
  padding: 12px;
  background: #ff4d4f;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  margin: 20px 20px 10px 20px;
  transition: background 0.2s;
}

.side-menu-logout-btn:hover {
  background: #d93d40;
}

.feed-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 15px;
}

.create-post-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  margin-top: 8px;
  margin-bottom: 8px !important;
  border: 1px solid #dadde1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 680px) {
  .create-post-card {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

.create-post-input {
  width: 100%;
  height: 80px;
  background: #f0f2f5;
  border: 1px solid #ccd0d5;
  border-radius: 8px;
  padding: 12px;
  color: #050505;
  resize: none;
  outline: none;
  font-size: 15px;
  margin-bottom: 10px;
}

.create-post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-upload-wrapper {
  position: relative;
  cursor: pointer;
}

.file-upload-btn {
  background: #f0f2f5;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: #65676b;
  font-weight: 600;
  -webkit-user-select: none;
  user-select: none;
}

.file-upload-wrapper input {
  position: absolute;
  left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer;
}

.file-upload-badge {
  background: #dcae36;
  color: #111111;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.create-post-card .publish-btn {
  background: #dcae36;
  color: #111111;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.create-post-card .publish-btn:hover {
  background: #c2982e;
}

.selected-file-info {
  margin-top: 8px;
  font-size: 13px;
  color: #dcae36;
}

.stories-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 !important;
  margin-bottom: 8px !important;
}

.story-card {
  min-width: 110px;
  height: 180px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #dadde1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  -webkit-user-select: none;
  user-select: none;
}

.story-image-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.create-story-btn-wrapper {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #ffffff;
  padding: 25px 5px 10px 5px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #050505;
}

.create-story-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dcae36;
  color: #111111;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid #ffffff;
}

.story-badge-avatar {
  position: absolute;
  top: 8px; left: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #dcae36;
  background: #ffffff;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 2;
}

.story-badge-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.story-username-label {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  z-index: 2;
}

.story-username-label img { width: 100%; height: 100%; object-fit: cover; }
.story-card-video-preview { width: 100%; height: 100%; object-fit: cover; }

.post-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 15px 0 0 0;
  margin-bottom: 20px;
  border: 1px solid #dadde1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
}

.post-header, .post-content, .post-stats, .post-actions {
  padding-left: 15px;
  padding-right: 15px;
}

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

.post-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dcae36;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  overflow: visible;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.post-author-info {
  display: flex;
  flex-direction: column;
}

.post-author {
  font-weight: bold;
  color: #050505;
  cursor: pointer;
}

.post-author:hover { text-decoration: underline; }

.post-time {
  font-size: 12px;
  color: #65676b;
}

.post-delete-btn {
  background: none;
  border: none;
  color: #ff4d4f;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.post-delete-btn:hover {
  background: rgba(255, 77, 79, 0.1);
}

.post-content {
  font-size: 15px;
  color: #050505;
  margin-bottom: 12px;
  line-height: 1.4;
}

.post-media {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  margin: 0 0 0 0 !important;
  max-height: 500px !important;
  object-fit: contain !important;
  background: #000000;
  display: block;
  cursor: pointer;
}

.video-container-rel {
  position: relative;
  width: 100%;
  background: #000;
}

.tiktok-side-panel {
  position: absolute;
  right: 8px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 10;
  background: transparent;
  padding: 0;
}

.tiktok-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  color: #ffffff;
  gap: 2px;
  transition: transform 0.1s;
  -webkit-user-select: none;
  user-select: none;
}

.tiktok-action-item:active {
  transform: scale(0.9);
}

.tiktok-icon-circle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.8));
}

.tiktok-icon-circle svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  transition: fill 0.2s, transform 0.1s;
}

.tiktok-icon-circle svg.heart-liked {
  fill: #fe2c55 !important;
}

.tiktok-action-item span {
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.9);
}

.tiktok-floating-avatars-container {
  position: absolute;
  left: 12px;
  bottom: 100px;
  width: 50px;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  z-index: 15;
}

.tiktok-floating-avatar-item {
  position: absolute;
  bottom: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #dcae36;
  color: #111111;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  animation: avatarSmoothRiseScroll 6s linear forwards;
}

.tiktok-floating-avatar-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tiktok-floating-avatar-heart {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 11px;
  background: #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  z-index: 5;
}

@keyframes avatarSmoothRiseScroll {
  0% { opacity: 0; transform: translateY(20px) scale(0.6); }
  15% { opacity: 1; transform: translateY(-30px) scale(1); }
  80% { opacity: 1; transform: translateY(-180px) scale(1); }
  100% { opacity: 0; transform: translateY(-230px) scale(0.7); }
}

.post-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #65676b;
  font-size: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #ffffff;
}

.fb-stats-left {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.fb-reaction-icons {
  display: flex;
  align-items: center;
  gap: -4px;
}

.fb-icon-svg-badge {
  font-size: 16px;
  background: #f0f2f5;
  border-radius: 50%;
  padding: 1px;
}

.fb-likes-counter {
  color: #65676b;
  font-size: 14px;
  margin-left: 3px;
}

.comment-count-label {
  cursor: pointer;
  color: #65676b;
}

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

.post-actions {
  display: flex;
  border-top: 1px solid #dadde1;
  padding: 4px 6px;
  background: #ffffff;
  position: relative;
}

.action-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 4px;
  color: #65676b;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
  -webkit-user-select: none;
  user-select: none;
}

.action-btn:hover {
  background: #f0f2f5;
  border-radius: 4px;
}

.action-btn-svg {
  width: 20px;
  height: 20px;
  fill: #65676b;
}

.action-btn.btn-liked {
  color: #f33e58 !important;
}

.action-btn.btn-liked .action-btn-svg {
  fill: #f33e58 !important;
}

.comments-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 4000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.comments-modal-content {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  border-top: 1px solid #dadde1;
}

.comments-modal-drag {
  width: 40px; height: 5px;
  background: #ccd0d5;
  border-radius: 3px;
  margin: 10px auto;
  cursor: pointer;
}

.comments-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px 15px 20px;
  border-bottom: 1px solid #dadde1;
}

.modal-likes-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  color: #050505;
}

.modal-likes-trigger:hover {
  text-decoration: underline;
}

.comments-modal-close {
  background: none; border: none;
  color: #65676b; font-size: 24px;
  cursor: pointer;
}

.comments-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fb-comment-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-direction: column;
}

.fb-comment-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.fb-comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #dcae36;
  color: #111111;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; overflow: visible; font-size: 14px; position: relative;
}

.fb-comment-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.fb-comment-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fb-comment-bubble {
  background: #f0f2f5;
  padding: 10px 14px;
  border-radius: 18px;
  width: fit-content;
  max-width: 100%;
}

.fb-comment-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.fb-comment-name {
  font-size: 14px;
  font-weight: bold;
  color: #050505;
}

.fb-comment-time {
  font-size: 12px;
  color: #65676b;
}

.fb-comment-text {
  font-size: 14px;
  color: #050505;
  word-break: break-word;
  line-height: 1.3;
}

.fb-comment-actions-row {
  display: flex;
  gap: 15px;
  margin-top: 4px;
  padding-left: 8px;
}

.fb-comment-action-btn {
  background: none; border: none;
  color: #65676b; font-size: 12px;
  font-weight: bold; cursor: pointer;
}

.fb-comment-action-btn:hover { color: #050505; }
.fb-comment-action-btn.comment-liked { color: #1877f2 !important; }

.fb-replies-container {
  margin-left: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(100% - 48px);
  margin-top: 8px;
}

.reply-input-active-bar {
  background: #f0f2f5;
  padding: 6px 12px;
  display: none;
  justify-content: space-between;
  font-size: 13px;
  border-top: 1px solid #dadde1;
  color: #050505;
}

.comments-modal-footer {
  padding: 12px 15px;
  background: #ffffff;
  border-top: 1px solid #dadde1;
  display: flex;
  flex-direction: column;
}

.modal-footer-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.modal-input-holder {
  flex: 1;
  display: flex;
  background: #f0f2f5;
  border-radius: 20px;
  padding: 8px 16px;
  align-items: center;
}

.modal-input-holder input {
  flex: 1; background: none; border: none;
  color: #050505; outline: none; font-size: 14px;
}

.comment-submit-button {
  background: #dcae36;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  color: #111111;
  cursor: pointer;
}

.likers-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 4100;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.likers-modal-content {
  width: 100%; max-width: 400px;
  background: #ffffff; border: 1px solid #dadde1;
  border-radius: 12px; max-height: 60vh;
  display: flex; flex-direction: column;
}

.likers-modal-header {
  padding: 15px; border-bottom: 1px solid #dadde1;
  display: flex; justify-content: space-between; align-items: center;
  color: #050505;
}

.likers-modal-body {
  flex: 1; overflow-y: auto; padding: 10px 15px;
  display: flex; flex-direction: column; gap: 12px;
}

.liker-row {
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; padding: 8px 0;
  color: #050505;
}

.liker-avatar-container {
  position: relative;
  width: 40px; height: 40px;
}

.liker-avatar {
  width: 100%; height: 100%; border-radius: 50%;
  background: #dcae36; color: #111111; font-weight: bold;
  display: flex; align-items: center; justify-content: center; overflow: visible;
  position: relative;
}

.liker-reaction-badge {
  position: absolute;
  bottom: -2px;
  right: -4px;
  background: #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.facebook-profile-container {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dadde1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.profile-cover-wrapper {
  height: 200px;
  background: #e4e6eb;
  background-size: cover;
  background-position: center;
  position: relative;
}

.cover-camera-btn {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.6);
  border: none; color: white; padding: 6px 10px; border-radius: 6px; cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  z-index: 10;
}

.profile-info-wrapper {
  padding: 0 20px 20px 20px;
  position: relative;
}

.avatar-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -60px;
  margin-bottom: 15px;
}

.profile-avatar-holder {
  position: relative;
  width: 120px; height: 120px;
}

.profile-fb-avatar, .profile-big-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: #dcae36;
  border: 4px solid #ffffff;
  color: #111111; display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: bold; overflow: visible;
  transition: border 0.3s ease;
  position: relative;
}

.profile-fb-avatar img, .profile-big-avatar img { width:100%; height:100%; object-fit: cover; border-radius: 50%; }

.avatar-camera-btn {
  position: absolute; bottom: 0; right: 0;
  background: #f0f2f5; border: none; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #050505;
  border: 2px solid #ffffff;
  -webkit-user-select: none;
  user-select: none;
  z-index: 10;
}

.profile-stats-block {
  display: flex; gap: 20px; padding-bottom: 10px;
}

.stat-item {
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
}

.stat-value { font-weight: bold; font-size: 18px; color: #dcae36; }
.stat-label { font-size: 13px; color: #65676b; }

.profile-user-headline { margin-bottom: 15px; }
.profile-fb-name { font-size: 24px; font-weight: bold; color: #050505; }
.profile-fb-subtitle { color: #65676b; font-size: 14px; }

.profile-action-column {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 10px !important;
  margin-bottom: 15px !important;
  flex-wrap: nowrap !important;
}

.profile-action-column .fb-btn-primary,
.profile-action-column .fb-btn-secondary,
.profile-action-column .fb-btn-success,
.profile-action-column .fb-btn-danger {
  flex: 1 !important;
  min-width: 0 !important;
  justify-content: center !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  padding: 10px 8px !important;
}

.profile-action-column .btn-group-row {
  display: flex !important;
  flex: 1 !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.profile-action-column .btn-group-row button {
  flex: 1 !important;
  min-width: 0 !important;
}

.profile-action-column .btn-more-options {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 38px !important;
}

.fb-btn-primary {
  background: #dcae36; color: #111111; border: none; padding: 8px 16px; border-radius: 6px;
  font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 6px;
  -webkit-user-select: none; user-select: none;
}

.fb-btn-primary:hover { background: #c2982e; }

.fb-btn-secondary {
  background: #e4e6eb; color: #050505; border: none; padding: 8px 16px; border-radius: 6px;
  font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 6px;
  -webkit-user-select: none; user-select: none;
}

.fb-btn-secondary:hover { background: #d8dadf; }
.fb-btn-success { background: #dcae36; color: #111111; border: none; padding: 8px 16px; border-radius: 6px; font-weight: bold; cursor: pointer; -webkit-user-select: none; user-select: none;}
.fb-btn-danger { background: #ff4d4f; color: white; border: none; padding: 8px 16px; border-radius: 6px; font-weight: bold; cursor: pointer; -webkit-user-select: none; user-select: none;}
.btn-more-options { background: #e4e6eb; color: #050505; border: none; width: 36px; height: 36px; border-radius: 6px; cursor: pointer; font-weight: bold; -webkit-user-select: none; user-select: none;}

.profile-details-box {
  background: #f0f2f5; padding: 15px; border-radius: 8px; margin: 0 20px 20px 20px;
  color: #050505;
}

.detail-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.detail-item .icon { font-size: 18px; width: 24px; }

.profile-friends-preview-box { padding: 0 20px 20px 20px; }
.friends-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.friends-preview-title { font-weight: bold; font-size: 18px; color: #050505; }
.friends-preview-count { font-size: 14px; color: #65676b; display: block; }
.friends-see-all-btn { background: none; border: none; color: #dcae36; cursor: pointer; font-size: 14px; -webkit-user-select: none; user-select: none;}

.friends-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.friend-grid-item { cursor: pointer; width: 100%; }

.friend-grid-avatar-holder {
  background: #e4e6eb;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 4px;
  position: relative;
}

.friend-grid-avatar-holder img { width:100%; height:100%; object-fit: cover; border-radius: 8px; }
.friend-grid-name { font-size: 13px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #050505; }

.profile-tabs { display: flex; border-top: 1px solid #dadde1; border-bottom: 1px solid #dadde1; }
.tab-button { flex: 1; background: none; border: none; padding: 12px; color: #65676b; font-weight: bold; cursor: pointer; -webkit-user-select: none; user-select: none;}
.tab-button.active { color: #dcae36; border-bottom: 3px solid #dcae36; }

.requests-dropdown {
  position: absolute; right: 20px; top: 60px; width: 320px; background: #ffffff; border: 1px solid #dadde1; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: none; flex-direction: column; z-index: 105;
}

.dropdown-header { padding: 12px; font-weight: bold; border-bottom: 1px solid #dadde1; color: #050505; }
.dropdown-empty { padding: 20px; text-align: center; color: #65676b; font-size: 14px; }
.request-item { display: flex; gap: 10px; padding: 10px; border-bottom: 1px solid #dadde1; align-items: center; }
.request-item-avatar { width: 40px; height: 40px; border-radius: 50%; background: #dcae36; display: flex; align-items: center; justify-content: center; font-weight: bold; overflow: visible; position: relative; cursor: pointer; -webkit-user-select: none; user-select: none;}
.request-item-avatar img { width:100%; height:100%; object-fit: cover; border-radius: 50%; }
.request-item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.request-item-name { font-weight: bold; cursor: pointer; font-size: 14px; color: #050505; }
.request-item-actions { display: flex; gap: 6px; }
.req-btn-confirm { background: #dcae36; color: #111111; border: none; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; cursor: pointer; -webkit-user-select: none; user-select: none;}
.req-btn-delete { background: #e4e6eb; color: #050505; border: none; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; cursor: pointer; -webkit-user-select: none; user-select: none;}

.collage-container {
  margin-bottom: 0px;
  border-radius: 0 !important;
  overflow: hidden;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.collage-grid {
  display: grid;
  gap: 3px;
  background: #dadde1;
  width: 100% !important;
}

.collage-item {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: 0 !important;
}

.collage-1 { grid-template-columns: 1fr; }
.collage-1 .collage-item { max-height: 500px; object-fit: contain !important; background: #000; }

.collage-2 { grid-template-columns: 1fr 1fr; }
.collage-2 .collage-item { aspect-ratio: 1 / 1; }

.collage-3 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 1fr); }
.collage-3 .collage-item:nth-child(1) { grid-row: span 2; aspect-ratio: 1 / 2; }
.collage-3 .collage-item:nth-child(2),
.collage-3 .collage-item:nth-child(3) { aspect-ratio: 1 / 1; }

.collage-4 { grid-template-columns: repeat(2, 1fr); }
.collage-4 .collage-item { aspect-ratio: 1 / 1; }

.collage-5 { grid-template-columns: repeat(6, 1fr); }
.collage-5 .collage-item:nth-child(1) { grid-column: span 3; aspect-ratio: 1 / 1; }
.collage-5 .collage-item:nth-child(2) { grid-column: span 3; aspect-ratio: 1 / 1; }
.collage-5 .collage-item:nth-child(n+3) { grid-column: span 2; aspect-ratio: 1 / 1; }

.collage-6 { grid-template-columns: repeat(3, 1fr); }
.collage-6 .collage-item { aspect-ratio: 1 / 1; }

.collage-overlay { position: relative; width: 100%; height: 100%; }
.collage-overlay-text {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #f0f2f5;
  width: 100%;
}

.photo-grid-full .collage-item {
  aspect-ratio: 1 / 1;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  cursor: pointer;
}

.video-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #f0f2f5;
  width: 100%;
}

.video-grid-card {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
}

.video-grid-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-grid-views {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.tiktok-fullscreen-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #000000;
  z-index: 3000;
  display: none;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.tiktok-fullscreen-close {
  position: fixed;
  top: 15px; left: 15px;
  font-size: 30px; color: #ffffff;
  background: rgba(0,0,0,0.5); border: none;
  width: 45px; height: 45px; border-radius: 50%;
  cursor: pointer; z-index: 3100;
  display: flex; align-items: center; justify-content: center;
}

.tiktok-slide-item {
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktok-slide-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tiktok-overlay-bottom-info {
  position: absolute;
  bottom: 20px; left: 15px; right: 80px;
  z-index: 3050;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
  padding: 10px;
  border-radius: 8px;
}

.tiktok-info-author {
  font-weight: bold; font-size: 16px; margin-bottom: 5px; display: flex; align-items: center; gap: 8px;
}

.tiktok-info-time {
  font-size: 12px; color: #d1d1d6; font-weight: normal;
}

.tiktok-info-caption {
  font-size: 14px; line-height: 1.3; max-height: 60px; overflow: hidden;
}

.connections-container { background: #ffffff; border-radius: 12px; border: 1px solid #dadde1; padding: 15px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.connections-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #dadde1; margin-bottom: 12px; }
#connections-title { font-size: 18px; font-weight: bold; color: #050505; }
.connections-empty { text-align: center; color: #65676b; padding: 20px; }
.connection-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #dadde1; }
.connection-user-info { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.connection-avatar { width: 44px; height: 44px; border-radius: 50%; background: #dcae36; color: #111111; display: flex; align-items: center; justify-content: center; font-weight: bold; overflow: visible; position: relative; }
.connection-avatar img { width:100%; height:100%; object-fit: cover; border-radius: 50%; }
.connection-name { font-weight: bold; color: #050505; }
.btn-remove-connection { background: #ff4d4f; color: white; border: none; padding: 6px 12px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 13px; -webkit-user-select: none; user-select: none;}

.edit-profile-card { background: #ffffff; border-radius: 12px; border: 1px solid #dadde1; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.edit-header { font-size: 18px; font-weight: bold; margin-bottom: 20px; color: #dcae36; text-align: center; }
.edit-buttons-wrapper { display: flex; gap: 10px; margin-top: 20px; }
.btn-save { background: #dcae36; color: #111111; }
.btn-cancel { background: #e4e6eb; color: #050505; }

.privacy-section-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dadde1;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.privacy-option-item {
  background: #f0f2f5;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #dadde1;
  margin-top: 15px;
}

.privacy-option-title {
  font-size: 16px;
  font-weight: bold;
  color: #dcae36;
  margin-bottom: 6px;
}

.privacy-option-desc {
  font-size: 13px;
  color: #65676b;
  line-height: 1.4;
  margin-bottom: 15px;
}

.privacy-radio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #ccd0d5;
  transition: all 0.2s;
  color: #050505;
  font-weight: 600;
  font-size: 14px;
}

.privacy-radio-item:hover {
  border-color: #dcae36;
  background: #f0f2f5;
}

.privacy-radio-item input[type="radio"] {
  accent-color: #dcae36;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.story-viewer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 500; display: flex; justify-content: center; align-items: center; }
.story-viewer-content { width: 100%; max-width: 420px; height: 100vh; max-height: 740px; background: black; position: relative; display: flex; flex-direction: column; }
@media(max-width: 480px) { .story-viewer-content { max-height: 100vh; } }
.story-viewer-header { position: absolute; top: 0; left: 0; right: 0; padding: 15px; background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0)); display: flex; justify-content: space-between; align-items: center; z-index: 15; }
.story-viewer-user { display: flex; align-items: center; gap: 8px; }
.story-viewer-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #dcae36; overflow: hidden; background: #222222; }
.story-viewer-avatar img { width:100%; height:100%; object-fit: cover; }
#sv-username { color: white; font-weight: bold; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.story-close-btn { background: none; border: none; color: white; font-size: 28px; cursor: pointer; -webkit-user-select: none; user-select: none;}
.story-viewer-media { flex: 1; display: flex; justify-content: center; align-items: center; overflow: hidden; }

.story-viewer-footer {
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 80%, rgba(0,0,0,0));
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 12;
}

.story-stats-row {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  padding: 0 4px;
}

.story-reactions-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: 20px;
}

.story-react-btn {
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.1s;
  -webkit-user-select: none;
  user-select: none;
}

.story-react-btn:hover {
  transform: scale(1.3);
}

.story-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-comment-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 10px 16px;
  color: white;
  font-size: 14px;
  outline: none;
}

.story-comment-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.story-send-btn {
  background: #dcae36;
  color: #111111;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  -webkit-user-select: none;
  user-select: none;
}

.gallery-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: #000000;
  z-index: 2000;
  display: none;
  flex-direction: column;
}

.gallery-top-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
  z-index: 2010;
}

.gallery-close-x {
  font-size: 32px; color: #ffffff; background: none; border: none; cursor: pointer;
}

.gallery-counter-label {
  color: #ffffff; font-size: 16px; font-weight: bold;
}

.gallery-top-icons {
  display: flex; gap: 15px; color: #ffffff; font-size: 22px; cursor: pointer;
}

.gallery-main-view {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.gallery-slider-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.gallery-bottom-info-panel {
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 85%, rgba(0,0,0,0));
  padding: 16px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2010;
}

.gallery-author-row {
  display: flex; align-items: center; gap: 10px;
}

.gallery-author-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #dcae36;
  display: flex; align-items: center; justify-content: center; font-weight: bold; color: #111;
  overflow: hidden;
}

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

.gallery-author-meta {
  display: flex; flex-direction: column;
}

.gallery-author-name {
  font-size: 15px; font-weight: bold; color: #ffffff;
}

.gallery-time-stamp {
  font-size: 11px; color: #b0b3b8; display: flex; align-items: center; gap: 4px;
}

.gallery-post-caption {
  font-size: 14px; color: #e4e6eb; line-height: 1.4; max-height: 80px; overflow-y: auto;
}

.gallery-reactions-summary {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #2f3031; padding-bottom: 8px; font-size: 13px; color: #b0b3b8;
}

.gallery-actions-buttons-row {
  display: flex; justify-content: space-between; width: 100%;
}

.gallery-act-btn {
  flex: 1; background: none; border: none; padding: 6px;
  color: #b0b3b8; font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.gallery-act-btn.liked-active {
  color: #f33e58 !important;
}

@media (max-width: 680px) {
  .feed-container {
    padding: 0 !important;
  }
  .post-card {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    margin-bottom: 12px !important;
  }
  .create-post-card {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
  .stories-wrapper {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .facebook-profile-container, .connections-container, .edit-profile-card, .privacy-section-card {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }
}

#profile-posts-wall {
  background: #f0f2f5 !important;
  padding-top: 12px !important;
}

#profile-posts-wall .post-card {
  background: #ffffff !important;
  border-top: 1px solid #dadde1 !important;
  border-bottom: 1px solid #dadde1 !important;
  margin-bottom: 14px !important;
}

#maintenance-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f0f2f5;
  color: #050505;
  z-index: 999999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

#warning-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 999998;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.warning-modal-box {
  background: #ffffff;
  border: 1px solid #dcae36;
  border-radius: 15px;
  padding: 25px;
  max-width: 420px;
  width: 100%;
  color: #050505;
  text-align: center;
  box-shadow: 0 10px 30px rgba(220, 174, 54, 0.2);
}

.video-container-rel {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

video.post-media,
video.tiktok-slide-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  outline: none;
  border: none;
}

img.post-media,
img.gallery-slider-img,
#gallery-fullscreen-img {
  width: 100% !important;
  min-width: 100% !important;
  height: auto;
  max-height: 600px;
  display: block;
  object-fit: cover !important;
}

.gallery-main-view {
  width: 100% !important;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top: 3px solid #1877f2;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.live-post-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0f2f5;
  border: 1px solid #ccd0d5;
  color: #050505;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.live-post-btn:hover {
  background: #e4e6eb;
  border-color: #bcc0c4;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #ff4d4f;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.7);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 77, 79, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 77, 79, 0);
  }
}

.live-avatar-ring {
  position: relative;
  display: inline-block;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(45deg, #e41e3f, #ff4d4f);
  box-shadow: 0 0 0 0 rgba(228, 30, 63, 0.7);
  animation: live-ring-pulse 1.5s infinite;
}

@keyframes live-ring-pulse {
  0% { box-shadow: 0 0 0 0 rgba(228, 30, 63, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(228, 30, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 30, 63, 0); }
}

.live-badge-overlay {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: #e41e3f;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #ffffff;
  letter-spacing: 0.5px;
}

.live-feed-card {
  background: #ffffff;
  border: 1px solid #e41e3f;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.live-feed-header {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #dadde1;
}

.live-watch-banner {
  position: relative;
  width: 100%;
  height: 220px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.live-watch-btn {
  position: absolute;
  background: rgba(228, 30, 63, 0.9);
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(5px);
}

#posts-wall video,
#profile-posts-wall video,
.video-grid-thumbnail,
.tiktok-slide-video,
.post-video-player {
  transform: none !important;
  -webkit-transform: none !important;
}

.custom-lang-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.custom-lang-modal-box {
  background: #ffffff;
  width: 90%;
  max-width: 380px;
  border-radius: 14px;
  border: 1px solid #dcae36;
  box-shadow: 0 8px 25px rgba(220, 174, 54, 0.2);
  overflow: hidden;
}

.custom-lang-modal-header {
  padding: 15px 18px;
  background: #f0f2f5;
  border-bottom: 1px solid #dadde1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #dcae36;
  font-weight: bold;
  font-size: 15px;
}

.custom-lang-close-btn {
  background: none;
  border: none;
  color: #65676b;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.custom-lang-close-btn:hover {
  color: #050505;
}

.custom-lang-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 350px;
  overflow-y: auto;
}

.lang-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #f0f2f5;
  border-radius: 8px;
  color: #050505;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.lang-option-card:hover {
  background: #e4e6eb;
  border-color: #dcae36;
}

.lang-check {
  color: #dcae36;
  font-weight: bold;
  display: none;
}

.lang-option-card.active-lang {
  border-color: #dcae36;
  background: rgba(220, 174, 54, 0.12);
}

.lang-option-card.active-lang .lang-check {
  display: inline;
}

.photo-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.photo-item-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  background: #e4e6eb;
}

.photo-item-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.photo-select-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.selection-mode-active .photo-select-checkbox {
  display: flex;
}

.photo-item-container.selected .photo-select-checkbox {
  background: #1877f2;
  border-color: #ffffff;
}

.photo-item-container.selected img {
  opacity: 0.75;
  transform: scale(0.94);
}

.photo-selection-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #dadde1;
  color: #050505;
}

.photo-selection-bar.active {
  display: flex;
}

.btn-unblock-user {
  background: #ff4d4f;
  color: #ffffff;
  border: 1px solid #ff4d4f;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s, transform 0.1s;
}

.btn-unblock-user:hover {
  background: #ff7875;
  border-color: #ff7875;
}

.btn-unblock-user:active {
  transform: scale(0.96);
}

#profile-more-menu-dropdown {
  position: absolute;
  background: #ffffff;
  border: 1px solid #dadde1;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

#profile-more-menu-dropdown button {
  background: transparent;
  border: none;
  color: #ff4d4f;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: background 0.2s;
}

#profile-more-menu-dropdown button:hover {
  background: #f0f2f5;
}

.eb-share-sheet {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  border: 1px solid #dadde1;
  border-bottom: none;
  padding: 12px 18px 25px 18px;
  box-sizing: border-box;
  animation: slideUpShare 0.28s cubic-bezier(0.1, 0.9, 0.2, 1);
}

@keyframes slideUpShare {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.share-drag-bar {
  width: 44px;
  height: 4px;
  background: #ccd0d5;
  border-radius: 4px;
  margin: 0 auto 12px auto;
}

.share-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dcae36;
  color: #111;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.share-user-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.share-user-name {
  color: #050505;
  font-size: 15px;
  font-weight: 700;
}

.share-badges-row {
  display: flex;
  gap: 6px;
}

.share-badge-btn {
  background: #f0f2f5;
  color: #050505;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.share-input-thought {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  color: #050505;
  font-size: 15px;
  padding: 14px 4px 6px 4px;
  resize: none;
  outline: none;
  font-family: inherit;
}

.share-btn-primary {
  background: #1877f2;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.share-btn-primary:active { opacity: 0.8; }

.share-sheet-divider {
  height: 1px;
  background: #dadde1;
  margin: 12px 0 10px 0;
}

.share-section-title {
  color: #65676b;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.share-friends-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  scrollbar-width: none;
}
.share-friends-row::-webkit-scrollbar { display: none; }

.share-friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 62px;
  max-width: 72px;
  cursor: pointer;
  text-align: center;
}

.share-friend-avatar-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #f0f2f5;
}
.share-friend-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-friend-name {
  color: #050505;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.share-apps-row {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  gap: 6px;
}

.share-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 1;
  text-align: center;
}

.share-app-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.share-app-item span {
  color: #050505;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
}

input,
textarea,
[contenteditable="true"],
.create-post-input,
.comments-input,
.fb-live-input,
#story-comment-field {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

#incoming-call-modal {
  display: none;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 450px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(46, 213, 115, 0.4);
  border-radius: 22px;
  z-index: 3000;
  padding: 12px 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  align-items: center;
  justify-content: space-between;
  animation: slideDownCall 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideDownCall {
  from { transform: translate(-50%, -100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.incoming-banner-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.call-avatar-pulse { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.call-avatar-pulse img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #2ed573; }
.incoming-banner-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.incoming-banner-info h2 { font-size: 15px; font-weight: 700; color: #050505; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.incoming-banner-info p { font-size: 12px; color: #2ed573; font-weight: 500; }
.incoming-call-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.call-btn { width: 44px; height: 44px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: transform 0.15s; }
.call-btn:active { transform: scale(0.9); }
.call-btn svg { width: 20px; height: 20px; fill: #fff; }
.reject-btn { background: #ff4757; }
.accept-btn { background: #2ed573; }

#video-call-screen { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000000; z-index: 2000; }
#remote-video { width: 100%; height: 100%; object-fit: cover; }
#local-video { position: absolute; top: 20px; right: 20px; width: 100px; height: 140px; border-radius: 12px; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); box-shadow: 0 4px 12px rgba(0,0,0,0.5); z-index: 10; }
.video-call-top-bar { position: absolute; top: 20px; left: 20px; display: flex; flex-direction: column; gap: 4px; z-index: 10; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.video-call-top-bar span:first-child { font-weight: 700; font-size: 18px; color: #fff; }
.video-call-top-bar span:last-child { font-size: 13px; color: #2ed573; }
.video-call-bottom-bar { position: absolute; bottom: max(30px, env(safe-area-inset-bottom, 30px)); left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 25px; z-index: 10; }
.call-action-icon-btn { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.call-action-icon-btn:active { transform: scale(0.92); }
.call-action-icon-btn svg { width: 22px; height: 22px; fill: #fff; }
.end-call-btn { background: #ff4757; width: 60px; height: 60px; }

.post-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.post-options-dropdown {
  position: relative;
}

.post-options-btn {
  background: transparent;
  border: none;
  color: #65676b;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.post-options-btn:hover {
  background: #f0f2f5;
  color: #050505;
}

.post-options-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  background: #ffffff;
  border: 1px solid #dadde1;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 210px;
  overflow: hidden;
}

.post-options-menu button {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #050505;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.post-options-menu button:hover {
  background: #f0f2f5;
  color: #dcae36;
}

video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.post-action-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  filter: brightness(0) opacity(0.7);
}

.menu-svg-icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  filter: brightness(0) opacity(0.75);
}

.menu-item-text {
  color: #050505;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.menu-section-title {
  color: #65676b;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 20px 6px 20px;
}

.privacy-section-card {
  background: #ffffff;
  border: 1px solid #dadde1;
  border-radius: 12px;
  padding: 20px;
}

.privacy-option-title {
  font-size: 15px;
  font-weight: 600;
  color: #050505;
  margin-bottom: 4px;
}

.privacy-option-desc {
  color: #65676b;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 15px;
}

.privacy-radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #050505;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.feed-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 10px;
}

#posts-wall,
.post-card {
  width: 100%;
  box-sizing: border-box;
}

.post-media {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  border-radius: 8px;
}

.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 56px !important;
  background-color: #ffffff !important;
  display: none;
  justify-content: space-around !important;
  align-items: center !important;
  border-top: 1px solid #dadde1 !important;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05) !important;
  z-index: 1000 !important;
  transform: translateY(0);
  transition: transform 0.25s ease-in-out !important;
  box-sizing: border-box !important;
}

.bottom-nav.nav-hidden {
  transform: translateY(100%) !important;
}

.bottom-nav .nav-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  height: 100% !important;
  text-decoration: none !important;
}

.bottom-nav .nav-icon {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  filter: brightness(0) opacity(0.6) !important;
  transition: filter 0.2s ease;
}

.bottom-nav .nav-item.active .nav-icon {
  filter: invert(45%) sepia(98%) saturate(1800%) hue-rotate(195deg) brightness(100%) contrast(105%) !important;
}

body {
  padding-bottom: 60px !important;
}

.nav-badge-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.bottom-nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background-color: #ff3b30;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  z-index: 10;
}

#notifications-screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  background-color: #f0f2f5;
  padding-bottom: 75px;
}

.notif-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #dadde1;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.notif-header-title {
  font-size: 22px;
  font-weight: 800;
  color: #050505;
}

.notif-section-label {
  font-size: 17px;
  font-weight: 700;
  color: #050505;
  padding: 16px 16px 8px 16px;
}

.notif-list-container {
  display: flex;
  flex-direction: column;
}

.notif-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #dadde1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.notif-item-card:active {
  background: #f0f2f5;
}

.notif-avatar-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.notif-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #e4e6eb;
}

.notif-type-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.notif-type-badge.comment { background: #2ed573; }
.notif-type-badge.post { background: #1877f2; }
.notif-type-badge.video { background: #ff4757; }

.notif-type-badge svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-text {
  font-size: 14px;
  line-height: 1.35;
  color: #050505;
  margin-bottom: 4px;
  word-break: break-word;
}

.notif-text strong {
  color: #050505;
  font-weight: 700;
}

.notif-time {
  font-size: 12px;
  color: #65676b;
}

.notif-item-options {
  background: none;
  border: none;
  color: #65676b;
  font-size: 20px;
  padding: 6px;
  cursor: pointer;
}

#friends-screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  background-color: #f0f2f5;
  padding-bottom: 75px;
}

.friends-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 10px 16px;
}

.friends-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #050505;
}

.friends-count-pill {
  color: #ff3b30;
  font-size: 16px;
  font-weight: 700;
}

.friend-requests-list {
  display: flex;
  flex-direction: column;
}

.friend-req-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #dadde1;
}

.friend-req-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: #e4e6eb;
  flex-shrink: 0;
  cursor: pointer;
}

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

.friend-req-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.friend-req-name {
  font-size: 16px;
  font-weight: 700;
  color: #050505;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.friend-req-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  margin: 3px 0 6px 0;
}

.mutual-avatars-cluster {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.mutual-avatar-mini {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  position: relative;
}

.mutual-avatar-mini:not(:first-child) {
  margin-left: -7px;
}

.mutual-friends-text {
  font-size: 13px;
  color: #65676b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-req-time {
  font-size: 13px;
  color: #65676b;
}

.friend-req-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.btn-confirm-req {
  width: 100%;
  background: #dcae36;
  color: #111111;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, opacity 0.2s;
  line-height: 1.2;
}

.btn-confirm-req:hover {
  background: #c2982e;
}

.btn-confirm-req:active {
  opacity: 0.85;
}

.btn-confirm-req:disabled {
  background: #e4e6eb !important;
  color: #8a8d91 !important;
  border: none !important;
  cursor: default !important;
}

.btn-delete-req {
  width: 100%;
  background: #e4e6eb;
  color: #050505;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, opacity 0.2s;
  line-height: 1.2;
}

.btn-delete-req:hover {
  background: #d8dadf;
}

.btn-delete-req:active {
  opacity: 0.8;
}

.post-card, .collage-container, .feed-container {
  contain: content;
}

.collage-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  content-visibility: auto;
}

.live-tiktok-card {
  max-width: 480px;
  margin: 16px auto;
  background: #ffffff;
  border: 1px solid #dadde1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  position: relative;
}

.live-tiktok-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #dadde1;
}

.live-tiktok-video-box {
  position: relative;
  width: 100%;
  height: 480px;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
}

.live-agora-stream-player {
  width: 100%;
  height: 100%;
}

.live-agora-stream-player video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.live-tiktok-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.8) 100%);
  z-index: 10;
}

.live-tiktok-top-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse-badge {
  background: #e41e3f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.live-viewers-pill {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-tiktok-bottom-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.live-stream-headline {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
  max-width: 70%;
}

.live-enter-btn-bubble {
  background: #1877f2;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.5);
  pointer-events: auto;
}

div:has(> a[href*="live-wheel"]) {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.sponsored-cta-bar {
  background: #f0f2f5;
  border-top: 1px solid #dadde1;
  border-bottom: 1px solid #dadde1;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sponsored-cta-bar:active {
  background: #e4e6eb;
}

.sponsored-cta-text {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
}

.sponsored-cta-headline {
  font-size: 14px;
  font-weight: 700;
  color: #050505;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.sponsored-cta-domain {
  font-size: 11.5px;
  color: #65676b;
  margin-top: 2px;
  text-transform: lowercase;
}

.sponsored-cta-btn {
  background: #ffffff;
  color: #050505;
  border: 1px solid #ccd0d5;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.sponsored-cta-btn:hover {
  background: #e4e6eb;
}


/* ==========================================================================
   ახალი კომენტარების სტილები
   ========================================================================== */
/* 💬 მხოლოდ გულები (Only Hearts) */
.comments-modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid #dadde1 !important;
  background: #ffffff !important;
}

.modal-likes-trigger {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #050505 !important;
}

.fb-comment-bubble {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
}

.fb-comment-user-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-bottom: 2px !important;
}

.fb-comment-name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #050505 !important;
  cursor: pointer !important;
}

.fb-comment-name:hover {
  text-decoration: underline !important;
}

.fb-comment-time {
  font-size: 12px !important;
  color: #65676b !important;
}

.fb-author-badge {
  font-size: 11.5px !important;
  color: #65676b !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.fb-comment-text {
  font-size: 14.5px !important;
  color: #050505 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
  margin-top: 1px !important;
}

.fb-comment-actions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 4px !important;
  padding: 0 !important;
  min-height: 22px !important;
}

.fb-actions-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.fb-comment-action-btn {
  background: none !important;
  border: none !important;
  color: #65676b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.fb-comment-action-btn:hover {
  text-decoration: underline !important;
}

.fb-comment-likes-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #65676b !important;
  cursor: pointer !important;
}

/* ❤️ მარჯვენა გულის ღილაკი */
.fb-comment-heart-btn {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #65676b !important;
}

.fb-comment-heart-btn svg {
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  transition: transform 0.15s, fill 0.15s, stroke 0.15s;
}

/* როცა დალაიქებულია: წითელი გული */
.fb-comment-heart-btn.liked svg {
  fill: #e41e3f !important;
  stroke: #e41e3f !important;
}

.fb-comment-heart-btn:active svg {
  transform: scale(1.3);
}

.fb-replies-toggle-btn {
  background: none !important;
  border: none !important;
  color: #65676b !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  margin-top: 6px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.fb-replies-toggle-btn:hover {
  text-decoration: underline !important;
}

.fb-replies-container {
  margin-left: 46px !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: calc(100% - 46px) !important;
  margin-top: 6px !important;
}
