.mambers-activity-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mambers-activity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mambers-activity-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.mambers-social-bar {
  padding: 0.75rem 1rem 0;
}

.mambers-social-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.mambers-social-counts {
  font-size: 0.95rem;
  opacity: 0.9;
}

.mambers-btn--follow.is-following {
  opacity: 0.85;
}

.mambers-feed-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  width: fit-content;
}

.mambers-feed-tab {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.mambers-feed-tab.is-active {
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.mambers-activity-composer {
  margin-bottom: 1.25rem;
  padding: 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.mambers-activity-composer .mambers-rich-toolbar,
.mambers-activity-composer .mambers-rich-editor,
.mambers-activity-composer .mambers-emoji-pop,
.mambers-activity-composer .mambers-activity-compose-preview,
.mambers-activity-composer .mambers-gif-staging,
.mambers-activity-composer .mambers-media-staging,
.mambers-activity-composer .mambers-upload-progress {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mambers-activity-composer .mambers-rich-toolbar {
  margin-top: 0.85rem;
}

.mambers-activity-composer textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.mambers-activity-compose-preview {
  margin-bottom: 0.75rem;
}

.mambers-composer-footer {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.12));
}

.mambers-composer-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.mambers-composer-footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.mambers-composer-attach {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mambers-composer-attach:hover,
.mambers-composer-attach.is-active {
  border-color: rgba(232, 160, 96, 0.45);
  background: rgba(232, 93, 4, 0.1);
  box-shadow: 0 0 0 1px rgba(232, 93, 4, 0.08);
}

.mambers-composer-attach.has-error {
  border-color: rgba(255, 140, 120, 0.65);
  background: rgba(255, 80, 60, 0.08);
}

.mambers-composer-attach input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.mambers-composer-attach-icon {
  display: inline-flex;
  color: #f0b07a;
  line-height: 0;
}

.mambers-composer-attach-text {
  font-size: 0.92rem;
  font-weight: 600;
}

.mambers-composer-attach-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mb-accent, #e85d04), #d97706);
  color: #111;
  font-size: 0.75rem;
  font-weight: 800;
}

.mambers-composer-visibility {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 0.55rem 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.mambers-composer-visibility-icon {
  display: inline-flex;
  opacity: 0.65;
  line-height: 0;
}

.mambers-composer-select {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 1.6rem 0.45rem 0.15rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23ffffffaa'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
}

.mambers-composer-select option {
  color: #111;
  background: #fff;
}

.mambers-btn--post {
  min-height: 2.5rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.mambers-btn--post:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(232, 93, 4, 0.42);
}

.mambers-btn--post:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.mambers-composer-footnote,
.mambers-media-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0.62;
}

.mambers-media-staging {
  margin: 0.65rem 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mambers-media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.5rem;
}

.mambers-media-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mambers-media-preview img,
.mambers-media-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mambers-media-preview-remove {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.75rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.mambers-media-preview-remove:hover {
  background: rgba(180, 40, 40, 0.92);
  transform: scale(1.06);
}

.mambers-media-preview-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.35rem 0.4rem 0.25rem;
  font-size: 0.68rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.mambers-media-preview--oversize,
.mambers-media-preview--bad-type,
.mambers-media-preview--limit {
  outline: 2px solid #ffb4a8;
  outline-offset: -2px;
}

.mambers-media-warn {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #ffb4a8;
}

.mambers-upload-progress {
  margin: 0.65rem 0 0.35rem;
}

.mambers-upload-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.mambers-upload-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mb-accent, #e85d04), #ff9f4a);
  transition: width 0.15s ease-out;
}

.mambers-upload-progress-bar.is-indeterminate {
  width: 35% !important;
  animation: mambers-upload-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes mambers-upload-pulse {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(180%);
  }
}

.mambers-upload-progress-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.mambers-activity-link-input {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.mambers-activity-list {
  display: grid;
  gap: 1rem;
}

.mambers-activity-post {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mambers-activity-time {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.mambers-activity-post-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.mambers-activity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.mambers-activity-post-head time {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
}

.mambers-activity-body {
  white-space: pre-wrap;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.mambers-media-grid {
  display: grid;
  gap: 3px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  max-height: 520px;
}

.mambers-media-grid--1 {
  grid-template-columns: 1fr;
}

.mambers-media-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.mambers-media-grid--3 {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.mambers-media-grid--3 .mambers-media-cell:first-child {
  grid-row: 1 / span 2;
}

.mambers-media-grid--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.mambers-media-cell {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
  min-height: 120px;
}

.mambers-media-cell img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
}

.mambers-media-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  pointer-events: none;
}

.mambers-activity-videos {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mambers-activity-video {
  width: 100%;
  max-height: 420px;
  border-radius: 10px;
  background: #000;
}

.mambers-activity-link {
  display: block;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  margin-top: 0.65rem;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mambers-activity-link:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.mambers-activity-link--card .mambers-activity-link-media {
  display: block;
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
}

.mambers-activity-link-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  max-height: 420px;
}

.mambers-activity-link-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.8rem 0.9rem 0.9rem;
}

.mambers-activity-link--text .mambers-activity-link-text {
  padding: 0.9rem 1rem;
}

.mambers-activity-link-title {
  font-size: 1rem;
  line-height: 1.35;
}

.mambers-activity-link-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.82;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mambers-activity-link-host {
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.55 !important;
  margin-top: 0.15rem;
}

.mambers-activity-permalink {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.mambers-activity-actions {
  margin-top: 0.75rem;
}

.mambers-activity-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.mambers-activity-pager .is-active {
  opacity: 1;
  font-weight: 600;
}

.mambers-feed-page .mambers-feed-head {
  margin-bottom: 1.5rem;
}

.mambers-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3.5rem;
}

.mambers-lightbox[hidden] {
  display: none !important;
}

.mambers-lightbox-stage {
  max-width: min(96vw, 1200px);
  max-height: 86vh;
}

.mambers-lightbox-stage img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
}

.mambers-lightbox-close,
.mambers-lightbox-prev,
.mambers-lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
}

.mambers-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.mambers-lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.mambers-lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.mambers-lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

body.mambers-lightbox-open {
  overflow: hidden;
}

.mambers-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mambers-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.mambers-rich-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.mambers-rich-editor {
  min-height: 5rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mambers-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #666;
  pointer-events: none;
}

.mambers-rich-editor a {
  color: #c45a11;
}

.mambers-rich-editor--dark {
  min-height: 5.5rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0 0.35rem;
}

.mambers-rich-editor--dark:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.mambers-rich-editor--dark a {
  color: #e8a060;
}

.mambers-post-edit {
  margin: 0.65rem 0;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(232, 160, 96, 0.25);
}

.mambers-post-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.65rem;
}

.mambers-activity-post.is-editing .mambers-activity-actions {
  opacity: 0.55;
  pointer-events: none;
}

.mambers-activity-body--rich a {
  color: #e8a060;
}

.mambers-emoji-pop {
  position: relative;
  margin-bottom: 0.5rem;
}

.mambers-emoji-pop emoji-picker {
  width: 100%;
  max-width: 320px;
}

.mambers-giphy-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mambers-giphy-modal[hidden] {
  display: none !important;
}

.mambers-giphy-panel {
  background: #1a1a1f;
  border-radius: 12px;
  padding: 1rem;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
}

.mambers-giphy-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.mambers-giphy-hit {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
}

.mambers-giphy-hit img {
  width: 100%;
  display: block;
}

.mambers-gif-staging img {
  max-height: 120px;
  border-radius: 8px;
}

.mambers-reaction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.mambers-reaction-pill {
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mambers-reaction-bar {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.mambers-reaction-btn {
  border: 0;
  background: transparent;
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0.65;
  padding: 0.15rem;
  border-radius: 6px;
}

.mambers-reaction-btn:hover,
.mambers-reaction-btn.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.mambers-activity-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}
