/* ==========================================================================
   Fruit Up Community 3.0 — Facebook Groups + Instagram + Facebook Live UX
   120fps ProMotion Smoothness & Apple-Clean Progressive Disclosure
   ========================================================================== */

:root {
  --fu-fb-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --fu-fb-surface: rgba(255, 255, 255, 0.96);
  --fu-fb-surface-elevated: #ffffff;
  --fu-fb-border: rgba(20, 48, 34, 0.12);
  --fu-fb-text: #10241b;
  --fu-fb-muted: #4b6356;
  --fu-fb-accent: #ff5e00;
  --fu-fb-emerald: #15803d;
  --fu-fb-live: #e11d48;
  --fu-fb-chip-bg: rgba(20, 48, 34, 0.06);
}

html[data-theme="dark"] {
  --fu-fb-surface: rgba(16, 33, 24, 0.94);
  --fu-fb-surface-elevated: #13281d;
  --fu-fb-border: rgba(255, 255, 255, 0.12);
  --fu-fb-text: #f3f7f4;
  --fu-fb-muted: #9cb5a7;
  --fu-fb-chip-bg: rgba(255, 255, 255, 0.08);
}

.fu-social-hub-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.fu-fb-groups-bar {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   1. Facebook-Style Vertical Portrait Story & Live Reel Cards
   -------------------------------------------------------------------------- */
.fu-fb-stories-section {
  background: var(--fu-fb-surface);
  border: 1px solid var(--fu-fb-border);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.fu-fb-stories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}

.fu-fb-stories-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.fu-fb-story-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fu-fb-muted);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--fu-fb-spring);
}

.fu-fb-story-tab.active {
  background: rgba(255, 94, 0, 0.14);
  color: var(--fu-fb-accent);
}

html[data-theme="dark"] .fu-fb-story-tab.active {
  background: rgba(255, 94, 0, 0.22);
  color: #fdba74;
}

.fu-fb-live-cta-pill {
  appearance: none;
  border: 1px solid rgba(225, 29, 72, 0.4);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.14), rgba(255, 94, 0, 0.14));
  color: #e11d48;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 160ms var(--fu-fb-spring), box-shadow 160ms ease;
}

html[data-theme="dark"] .fu-fb-live-cta-pill {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.45);
}

.fu-fb-live-cta-pill:active {
  transform: scale(0.95);
}

.fu-fb-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.25);
  animation: fuFbLivePulse 1.8s infinite ease-in-out;
}

@keyframes fuFbLivePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.28); }
  50% { transform: scale(1.18); box-shadow: 0 0 0 7px rgba(225, 29, 72, 0); }
}

.fu-fb-stories-rail {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.fu-fb-stories-rail::-webkit-scrollbar {
  display: none;
}

.fu-fb-story-card {
  appearance: none;
  border: 1px solid var(--fu-fb-border);
  padding: 0;
  margin: 0;
  flex: 0 0 112px;
  height: 176px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  background: #10241b;
  color: #ffffff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  transition: transform 200ms var(--fu-fb-spring), box-shadow 200ms ease;
}

.fu-fb-story-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.fu-fb-story-card:active {
  transform: scale(0.96);
}

.fu-fb-story-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 320ms var(--fu-fb-spring);
}

.fu-fb-story-card:hover .fu-fb-story-bg {
  transform: scale(1.05);
}

.fu-fb-story-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.82) 100%);
  z-index: 1;
}

/* Create Story Card (First Card - Classic FB Style) */
.fu-fb-story-card.is-create {
  background: var(--fu-fb-surface-elevated);
  color: var(--fu-fb-text);
}

.fu-fb-story-create-top {
  height: 112px;
  width: 100%;
  background: linear-gradient(145deg, #133a27 0%, #1f5c3e 55%, #ff5e00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.fu-fb-story-create-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fu-fb-story-create-initials {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
}

.fu-fb-story-plus-badge {
  position: absolute;
  top: 94px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #ff5e00;
  color: #ffffff;
  border: 3px solid var(--fu-fb-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(255, 94, 0, 0.35);
}

.fu-fb-story-create-bottom {
  padding: 20px 8px 10px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Live Story Card */
.fu-fb-story-card.is-live-card {
  background: linear-gradient(155deg, #7f1d1d 0%, #dc2626 48%, #ff5e00 100%);
  border-color: rgba(253, 224, 71, 0.55);
}

.fu-fb-story-top-row {
  position: relative;
  z-index: 2;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fu-fb-story-avatar-ring {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(135deg, #ff5e00, #facc15, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.fu-fb-story-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #10241b;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fu-fb-story-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fu-fb-story-tag {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e11d48;
  color: #ffffff;
}

.fu-fb-story-bottom {
  position: relative;
  z-index: 2;
  padding: 10px;
}

.fu-fb-story-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}

.fu-fb-story-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   2. Facebook Groups "Featured / Pinned" Strip & Topic Filter Pills
   -------------------------------------------------------------------------- */
.fu-fb-featured-strip {
  background: var(--fu-fb-surface);
  border: 1px solid var(--fu-fb-border);
  border-radius: 18px;
  padding: 10px 14px;
}

.fu-fb-featured-strip summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 800;
}

.fu-fb-featured-strip summary::-webkit-details-marker {
  display: none;
}

.fu-fb-featured-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--fu-fb-border);
}

.fu-fb-featured-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--fu-fb-chip-bg);
  border: 1px solid var(--fu-fb-border);
  display: grid;
  gap: 4px;
  cursor: pointer;
  text-align: left;
  color: var(--fu-fb-text);
  transition: transform 160ms var(--fu-fb-spring), border-color 160ms ease;
}

.fu-fb-featured-item:hover {
  border-color: rgba(255, 94, 0, 0.45);
  transform: translateY(-1px);
}

.fu-fb-featured-item small {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fu-fb-accent);
}

.fu-fb-featured-item strong {
  font-size: 0.84rem;
  line-height: 1.3;
}

.fu-fb-featured-item span {
  font-size: 0.76rem;
  color: var(--fu-fb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Facebook Groups Topic Filter Bar */
.fu-fb-topic-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.fu-fb-topic-rail::-webkit-scrollbar {
  display: none;
}

.fu-fb-topic-pill {
  appearance: none;
  border: 1px solid var(--fu-fb-border);
  background: var(--fu-fb-surface);
  color: var(--fu-fb-text);
  font-size: 0.81rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 160ms var(--fu-fb-spring), background-color 160ms ease, border-color 160ms ease;
}

.fu-fb-topic-pill:active {
  transform: scale(0.95);
}

.fu-fb-topic-pill.active {
  background: #133a27;
  border-color: rgba(250, 204, 21, 0.5);
  color: #ffffff;
}

html[data-theme="dark"] .fu-fb-topic-pill.active {
  background: #ff5e00;
  border-color: rgba(253, 224, 71, 0.55);
  color: #ffffff;
}

.fu-fb-topic-count {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.fu-fb-topic-pill.active .fu-fb-topic-count {
  background: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   3. Facebook Live In-App Video Stage (With Floating Live Reactions!)
   -------------------------------------------------------------------------- */
.fu-live-stage-shell {
  background: linear-gradient(155deg, #0d2117 0%, #133122 55%, #193e2b 100%);
  color: #f4f8f5;
  border: 1px solid rgba(250, 204, 21, 0.32);
  border-radius: 24px;
  padding: 16px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  transition: transform 220ms var(--fu-fb-spring), opacity 220ms ease;
}

.fu-live-stage-shell[hidden] {
  display: none !important;
}

.fu-live-stage-shell.is-mini-player {
  position: fixed;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  width: min(340px, calc(100vw - 32px));
  z-index: 60;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
}

.fu-live-stage-shell.is-mini-player .fu-live-stage-modes,
.fu-live-stage-shell.is-mini-player .fu-live-stage-footer,
.fu-live-stage-shell.is-mini-player .fu-live-host-drawer {
  display: none !important;
}

.fu-live-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}

.fu-live-stage-header > div:first-child {
  min-width: 0;
  flex: 1 1 200px;
}

.fu-live-stage-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.fu-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e11d48;
  color: #ffffff;
}

.fu-live-pill.is-standby {
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.38);
}

.fu-live-stage-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.fu-live-stage-subtitle {
  font-size: 0.83rem;
  color: rgba(244, 248, 245, 0.78);
  margin: 3px 0 0;
}

.fu-live-stage-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fu-live-icon-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms var(--fu-fb-spring), background-color 160ms ease;
}

.fu-live-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.fu-live-icon-btn:active {
  transform: scale(0.94);
}

.fu-live-stage-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.fu-live-mode-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 160ms var(--fu-fb-spring), background-color 160ms ease;
}

.fu-live-mode-tab.active {
  background: linear-gradient(135deg, #ff5e00, #e04f00);
  border-color: rgba(253, 224, 71, 0.55);
  color: #ffffff;
}

.fu-live-video-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #07120c;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fu-live-video-viewport:has(.fu-live-standby-card) {
  aspect-ratio: auto;
  min-height: 200px;
}

.fu-live-video-viewport iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.fu-live-floating-reactions-layer {
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 60px;
  height: 180px;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.fu-live-floating-emoji {
  position: absolute;
  bottom: 0;
  right: 12px;
  font-size: 1.65rem;
  animation: fuFbLiveFloatUp 2.1s ease-out forwards;
}

@keyframes fuFbLiveFloatUp {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  20% {
    transform: translateY(-28px) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translateY(-165px) translateX(-10px) scale(0.95);
    opacity: 0;
  }
}

.fu-live-standby-card {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 100%;
  box-sizing: border-box;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 94, 0, 0.22), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.2), transparent 45%),
    #08150e;
}

.fu-live-standby-card h4 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
  color: #ffffff;
}

.fu-live-standby-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  max-width: 46ch;
  color: rgba(244, 248, 245, 0.82);
}

.fu-live-standby-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fu-live-standby-actions .button {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}

.fu-live-stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(244, 248, 245, 0.8);
}

.fu-live-reaction-stream-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fu-live-react-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 150ms var(--fu-fb-spring);
}

.fu-live-react-btn:hover {
  transform: scale(1.16) translateY(-2px);
}

.fu-live-react-btn:active {
  transform: scale(0.9);
}

.fu-live-host-drawer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.fu-live-host-drawer summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fde047;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fu-live-host-drawer summary::-webkit-details-marker {
  display: none;
}

.fu-live-host-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.26);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fu-live-host-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.fu-live-host-field {
  display: grid;
  gap: 4px;
}

.fu-live-host-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

.fu-live-host-field input,
.fu-live-host-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 8px 10px;
  font-size: 0.84rem;
}

.fu-live-host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   4. Facebook Colored Background Poster Cards & Feeling/Activity Badges
   -------------------------------------------------------------------------- */
.fu-fb-feeling-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 94, 0, 0.12);
  color: var(--fu-fb-accent);
  vertical-align: middle;
}

html[data-theme="dark"] .fu-fb-feeling-pill {
  background: rgba(255, 94, 0, 0.2);
  color: #fdba74;
}

/* Facebook-Style Bold Colored Status Card for Short Text Posts */
.community-post .community-body.fu-fb-poster-card {
  border-radius: 18px;
  padding: 28px 22px;
  margin: 10px 0 12px;
  text-align: center;
  font-size: clamp(1.12rem, 2.4vw, 1.38rem);
  font-weight: 800;
  line-height: 1.38;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 26px rgba(0, 0, 0, 0.14);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.community-post .community-body.fu-fb-poster-card.theme-emerald {
  background: linear-gradient(145deg, #0f3823 0%, #166534 52%, #15803d 100%);
}

.community-post .community-body.fu-fb-poster-card.theme-sunrise {
  background: linear-gradient(145deg, #9a3412 0%, #ea580c 52%, #eab308 100%);
}

.community-post .community-body.fu-fb-poster-card.theme-royal {
  background: linear-gradient(145deg, #1e1b4b 0%, #4338ca 52%, #7c3aed 100%);
}

.community-post .community-body.fu-fb-poster-card.theme-ocean {
  background: linear-gradient(145deg, #0f172a 0%, #0369a1 52%, #0d9488 100%);
}

/* Composer Colored Background & Feeling Picker Strip */
.fu-fb-composer-extras {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--fu-fb-chip-bg);
  border: 1px solid var(--fu-fb-border);
}

.fu-fb-composer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fu-fb-composer-row-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--fu-fb-muted);
  margin-right: 4px;
}

.fu-fb-feeling-choice {
  appearance: none;
  border: 1px solid var(--fu-fb-border);
  background: var(--fu-fb-surface);
  color: var(--fu-fb-text);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms var(--fu-fb-spring), border-color 150ms ease, background-color 150ms ease;
}

.fu-fb-feeling-choice.active {
  background: rgba(255, 94, 0, 0.16);
  border-color: var(--fu-fb-accent);
  color: var(--fu-fb-accent);
}

html[data-theme="dark"] .fu-fb-feeling-choice.active {
  color: #fdba74;
}

/* --------------------------------------------------------------------------
   5. Facebook Animated Multi-Reaction Dock & 1-Tap Smart Comment Chips
   -------------------------------------------------------------------------- */
.fu-fb-reaction-dock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--fu-fb-chip-bg);
  border: 1px solid var(--fu-fb-border);
}

.fu-fb-react-emoji-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--fu-fb-text);
  font-weight: 700;
  transition: transform 180ms var(--fu-fb-spring), background-color 160ms ease;
}

.fu-fb-react-emoji-btn:hover {
  transform: translateY(-4px) scale(1.22);
  background: rgba(255, 94, 0, 0.12);
}

.fu-fb-react-emoji-btn:active {
  transform: scale(0.9);
}

.fu-fb-react-emoji-btn.active {
  background: rgba(255, 94, 0, 0.18);
}

.fu-fb-react-emoji-btn small {
  font-size: 0.72rem;
  font-weight: 800;
}

/* Facebook-Style 1-Tap Quick Comment Chips */
.fu-fb-quick-comments-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 2px;
  scrollbar-width: none;
}

.fu-fb-quick-comments-bar::-webkit-scrollbar {
  display: none;
}

.fu-fb-quick-comment-chip {
  appearance: none;
  border: 1px solid var(--fu-fb-border);
  background: var(--fu-fb-chip-bg);
  color: var(--fu-fb-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 150ms var(--fu-fb-spring), border-color 150ms ease, color 150ms ease;
}

.fu-fb-quick-comment-chip:hover {
  border-color: rgba(255, 94, 0, 0.45);
  color: var(--fu-fb-text);
}

.fu-fb-quick-comment-chip:active {
  transform: scale(0.94);
}

/* Instagram Double-Tap Floating Heart Burst */
.community-post {
  position: relative;
}

.fu-ig-heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 4.4rem;
  line-height: 1;
  pointer-events: none;
  z-index: 25;
  filter: drop-shadow(0 12px 24px rgba(225, 29, 72, 0.45));
  animation: fuIgHeartPop 760ms var(--fu-fb-spring) forwards;
}

@keyframes fuIgHeartPop {
  0% {
    transform: translate(-50%, -50%) scale(0.2) rotate(-12deg);
    opacity: 0;
  }
  30% {
    transform: translate(-50%, -50%) scale(1.22) rotate(6deg);
    opacity: 1;
  }
  55% {
    transform: translate(-50%, -50%) scale(0.96) rotate(-3deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -68%) scale(1.08) rotate(0deg);
    opacity: 0;
  }
}

/* Full-Screen Facebook/IG Story Viewer Modal */
.fu-story-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 15, 10, 0.86);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.fu-story-modal-backdrop[hidden] {
  display: none !important;
}

.fu-story-modal-card {
  width: min(420px, 100%);
  background: linear-gradient(165deg, #0f291c 0%, #091710 100%);
  color: #ffffff;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 14px;
}

.fu-story-modal-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.fu-story-modal-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #facc15, #ff5e00);
  transform-origin: left center;
  animation: fuStoryBarFill 6.5s linear forwards;
}

@keyframes fuStoryBarFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.fu-story-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fu-story-modal-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fu-story-modal-body {
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
  max-height: 52vh;
  overflow-y: auto;
}

.fu-story-modal-body img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 10px;
}

.fu-story-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   6. ⚡ Blitz VIP Only Lock Badges & Exclusive Live Room Modal
   -------------------------------------------------------------------------- */
.fu-blitz-vip-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #14532d 0%, #0f291e 100%);
  border: 1px solid rgba(250, 204, 21, 0.58);
  color: #fde047;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  white-space: normal;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.fu-fb-live-cta-pill.is-blitz-locked {
  background: linear-gradient(135deg, #0f291e 0%, #14532d 100%);
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #fef08a;
  box-shadow: 0 4px 14px rgba(15, 41, 30, 0.28);
  max-width: 100%;
  box-sizing: border-box;
}

.fu-fb-story-card.is-live-card.is-blitz-locked {
  background: linear-gradient(160deg, #071911 0%, #113825 55%, #14532d 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.55);
}

.fu-fb-story-tag.is-blitz-vip {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #0b2217;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 3px 7px;
  box-shadow: 0 3px 10px rgba(250, 204, 21, 0.35);
}

.fu-blitz-vip-modal-card {
  width: min(440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  background: linear-gradient(160deg, #091d14 0%, #0f291e 55%, #14532d 100%);
  color: #ffffff;
  border: 1.5px solid rgba(250, 204, 21, 0.52);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.62);
  display: grid;
  gap: 12px;
}

.fu-blitz-vip-modal-list {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.92);
}

.fu-blitz-vip-modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

/* Hide Skool-style subject/category tabs and pickers in Community feed & composer */
.fu-fb-topic-rail,
#communityPostForm > .form-grid,
#communityPostForm .community-post-starters,
.community-post-category-row,
#openCommunityFilters,
#communityFilterSummary {
  display: none !important;
}

/* Mobile Layout Hardening for Community Feed, Bottom Sheet Composer & Live Stage */
#communityFeedView,
.community-feed,
.community-post,
.community-quick-composer {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  html,
  body,
  #appShell,
  #view,
  #communityFeedView {
    max-width: 100vw;
    overflow-x: clip;
  }

  #fruitUpBottomSheet.fruit-up-bottom-sheet {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(100vw, var(--fruit-up-sheet-viewport-width, 100vw)) !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  #fruitUpBottomSheet .fruit-up-sheet-surface {
    width: min(100vw, var(--fruit-up-sheet-viewport-width, 100vw)) !important;
    max-width: 100vw !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .fu-fb-stories-section {
    padding: 12px;
    border-radius: 18px;
  }

  .fu-fb-story-tab {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .fu-fb-live-cta-pill {
    width: 100%;
    justify-content: center;
    font-size: 0.76rem;
    padding: 7px 10px;
  }

  .fu-live-stage-shell {
    padding: 12px;
    border-radius: 18px;
  }

  .fu-live-stage-modes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fu-live-mode-tab {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .fu-live-standby-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fu-live-standby-actions .button {
    width: 100%;
    justify-content: center;
  }

  .community-quick-composer-actions button {
    font-size: 0.76rem;
    padding: 8px 6px 4px;
    white-space: normal;
    line-height: 1.2;
  }

  /* iOS Safari / WebKit Parity & Anti-Auto-Zoom Protection (375px–430px iPhones) */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: max(16px, 1rem) !important;
  }

  #dashboard,
  #maps,
  #masterYourDay,
  #community,
  #blitz-live,
  .card,
  .blitz-bento-shell,
  .blitz-command-bar,
  .blitz-subdrawer,
  .admin-member-preview-banner {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-member-preview-banner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }

  .admin-experience-switcher-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .admin-experience-switcher-actions .button {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.78rem;
    padding: 7px 10px;
  }
}

/* Global WebKit / iOS Safari Backdrop & Disclosure Triangle Parity */
.fu-story-modal-backdrop,
.fu-live-floating-pill,
.fu-live-Topbar {
  -webkit-backdrop-filter: blur(12px);
}

details > summary::-webkit-details-marker {
  display: none;
}

/* --------------------------------------------------------------------------
   7. 🎥 Community Video Post Recorder & Live Coaching Rooms Guide Modal
   -------------------------------------------------------------------------- */
.fu-video-studio-card {
  width: min(560px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  box-sizing: border-box;
  background: linear-gradient(160deg, #091d14 0%, #0f291e 55%, #143d29 100%);
  color: #ffffff;
  border: 1.5px solid rgba(250, 204, 21, 0.48);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.65);
  display: grid;
  gap: 14px;
}

.fu-video-studio-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fu-video-studio-title {
  margin: 6px 0 4px;
  font-size: 1.24rem;
  font-weight: 900;
  color: #ffffff;
}

.fu-video-studio-subtitle {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.fu-video-studio-section {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.fu-video-studio-section.is-primary {
  background: linear-gradient(145deg, rgba(21, 128, 61, 0.26) 0%, rgba(15, 41, 30, 0.72) 100%);
  border-color: rgba(74, 222, 128, 0.42);
}

.fu-video-studio-section-head h4 {
  margin: 6px 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
}

.fu-video-studio-section-head p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.82);
}

.fu-video-studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.fu-video-studio-pill.is-green {
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #bbf7d0;
}

.fu-video-studio-pill.is-gold {
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.48);
  color: #fde047;
}

.fu-video-studio-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.fu-video-studio-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 10px 12px;
}

.fu-video-studio-camera-shell {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.fu-video-studio-camera-shell[hidden] {
  display: none !important;
}

.fu-video-studio-camera-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  background: #050e09;
  border-radius: 12px;
  overflow: hidden;
}

.fu-video-studio-camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fu-video-studio-timer {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(225, 29, 72, 0.92);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.fu-video-studio-camera-status {
  margin: 0;
  font-size: 0.8rem;
  color: #bbf7d0;
  font-weight: 700;
}

.fu-video-studio-camera-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fu-video-studio-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.fu-video-studio-room-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: space-between;
}

.fu-video-studio-room-card.is-blitz {
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.12), rgba(21, 128, 61, 0.22));
  border-color: rgba(250, 204, 21, 0.42);
}

.fu-video-studio-room-badge {
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fde047;
}

.fu-video-studio-room-card h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.fu-video-studio-room-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

.fu-video-studio-room-card .button {
  width: 100%;
  justify-content: center;
  font-size: 0.8rem;
  padding: 8px 10px;
}


