* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background: #e9ebee;
  color: #1c1e21;
  font-size: 14px;
  line-height: 1.34;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e9ebee;
}
::-webkit-scrollbar-thumb {
  background: #bec3c9;
  border-radius: 4px;
}

@keyframes likePopIn {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

.like-pop {
  animation: likePopIn 0.3s ease;
}

.slide-down {
  animation: slideDown 0.3s ease;
  overflow: hidden;
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.toast-enter {
  animation: toastSlideIn 0.3s ease forwards;
}

.toast-exit {
  animation: toastSlideOut 0.3s ease forwards;
}

.fb-card {
  background: #fff;
  border: 1px solid #dcdee3;
  border-radius: 8px;
  margin-bottom: 12px;
}

.fb-btn {
  background: #e4e6eb;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1e21;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.fb-btn:hover {
  background: #d8dadf;
}

.fb-btn-primary {
  background: #1877f2;
  color: #fff;
}
.fb-btn-primary:hover {
  background: #166fe5;
}

.fb-link {
  color: #385898;
  cursor: pointer;
  text-decoration: none;
}
.fb-link:hover {
  text-decoration: underline;
}

.reaction-picker {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  padding: 4px 8px;
  gap: 2px;
  z-index: 100;
}

.like-btn-wrap:hover .reaction-picker {
  display: flex;
}

.reaction-emoji {
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.15s;
  border-radius: 50%;
}
.reaction-emoji:hover {
  transform: scale(1.3);
  background: #f0f2f5;
}

.memorial-banner {
  background: #f0f0f0;
  border-bottom: 1px solid #dcdee3;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #65676b;
}

.tab-active {
  color: #1877f2 !important;
  border-bottom: 3px solid #1877f2;
}

.cover-photo {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 0 0 8px 8px;
}

.profile-pic-container {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  margin-top: -88px;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background: #fff;
}

.profile-pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.post-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  cursor: pointer;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

.chat-sidebar {
  position: fixed;
  bottom: 0;
  right: 20px;
  z-index: 500;
}

.chat-bar {
  background: #fff;
  border: 1px solid #dcdee3;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  min-width: 220px;
}

.online-dot {
  width: 10px;
  height: 10px;
  background: #31a24c;
  border-radius: 50%;
  border: 2px solid #fff;
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  width: 360px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
}

.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
}

.toast {
  background: #1c1e21;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-top: 8px;
}

@media (max-width: 900px) {
  .cover-photo {
    height: 200px;
  }
  .profile-pic-container {
    width: 120px;
    height: 120px;
    margin-top: -60px;
  }
}

@media (max-width: 600px) {
  .cover-photo {
    height: 150px;
  }
  .profile-pic-container {
    width: 96px;
    height: 96px;
    margin-top: -48px;
  }
}