:root {
  --bg-obsidian: #0B0D13;
  --bg-surface: #131722;
  --bg-card: rgba(22, 27, 39, 0.88);
  --bg-elevated: #1D2333;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Beacon Colors */
  --mint-now: #00F59B;
  --mint-glow: rgba(0, 245, 155, 0.26);
  --flame-tonight: #FF5E36;
  --flame-glow: rgba(255, 94, 54, 0.25);
  --purple-weekend: #B85CFF;
  --purple-glow: rgba(184, 92, 255, 0.25);
  --gogo-gold: #FFE600;
  --accent-indigo: #6366F1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #06070B;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(0, 245, 155, 0.08), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(184, 92, 255, 0.09), transparent 40%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top Founder Simulator Bar */
.simulator-bar {
  width: 100%;
  background: rgba(19, 23, 34, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
}

.sim-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.sim-pill {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.sim-pill.active {
  background: rgba(0, 245, 155, 0.15);
  color: var(--mint-now);
  border-color: var(--mint-now);
  box-shadow: 0 0 12px rgba(0, 245, 155, 0.2);
}

/* Mobile App Shell */
.app-shell {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  background: var(--bg-obsidian);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  position: relative;
  padding-bottom: 96px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

/* App Top Header (Zero-Layout-Shift Sticky Architecture) */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0;
  background: transparent;
}

.header-top-row {
  position: relative;
  z-index: 32;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  margin-bottom: 0;
  background: rgba(11, 13, 19, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

#feedControls {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 31;
  background: rgba(11, 13, 19, 0.94);
  backdrop-filter: blur(16px);
  padding: 7px 14px 8px;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transform: translate3d(0, 0, 0);
  opacity: 1;
  will-change: transform, opacity;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
}

#feedControls.filters-collapsed {
  transform: translate3d(0, -108%, 0);
  opacity: 0;
  pointer-events: none;
}

.header-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 245, 155, 0.45);
}

.hamburger-btn:active {
  transform: scale(0.95);
}

.hamburger-sim-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
  border: 1.5px solid var(--bg-obsidian);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #00F59B, #FFE600, #FF5E36);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-select {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.icon-btn {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 14px;
}

.badge-dot {
  position: absolute;
  top: -3px;
  right: 6px;
  background: var(--flame-tonight);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.badge-dot.online-green {
  background: var(--mint-now);
  color: #05080E;
}

/* Scope Segmented Switch (Compact) */
.scope-tabs {
  display: grid;
  grid-template-columns: 0.9fr 0.95fr 1.45fr;
  background: var(--bg-surface);
  padding: 2.5px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.scope-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 5px 6px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.scope-tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Horizontal Category Filter Bar (Compact + Mouse Grab-to-Scroll) */
.category-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.category-scroll.is-dragging,
.category-scroll.is-dragging .cat-pill {
  cursor: grabbing;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4.5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cat-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Feed Container & Section Dividers */
.feed-container {
  padding: calc(14px + var(--feed-controls-offset, 80px)) 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-container.non-feed-tab {
  padding-top: 14px;
}

.section-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  padding: 2px 4px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-now);
  box-shadow: 0 0 10px var(--mint-now);
  margin-right: 6px;
  animation: pulseGlow 1.6s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* NEW: Online & Offline Friend Card - Yahoo! Messenger Stealth Edition */
.friends-list-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friend-online-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(0, 245, 155, 0.28);
  border-radius: 13px;
  padding: 9px 11px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.friend-online-card.menu-open {
  z-index: 40;
}

.friend-online-card.is-online:hover {
  border-color: rgba(0, 245, 155, 0.58);
}

.friend-online-card.is-offline {
  background: rgba(16, 21, 32, 0.72);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.friend-online-card.my-yahoo-card.is-online {
  border: 1px solid rgba(99, 102, 241, 0.55);
  background: linear-gradient(145deg, rgba(25, 33, 54, 0.95), rgba(17, 23, 38, 0.95));
}

.friend-online-card.my-yahoo-card.is-offline {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: linear-gradient(145deg, rgba(20, 24, 36, 0.92), rgba(13, 17, 26, 0.92));
}

.friend-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
}

.friend-avatar-lg {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.8px solid var(--mint-now);
  box-shadow: 0 0 9px rgba(0, 245, 155, 0.24);
  display: block;
  transition: filter 0.2s ease, border-color 0.2s ease;
}

.friend-avatar-lg.avatar-offline-dim {
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: none;
  filter: grayscale(42%) opacity(0.82);
}

.online-indicator-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint-now);
  border: 2px solid var(--bg-obsidian);
  box-shadow: 0 0 6px var(--mint-now);
}

.offline-indicator-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
  border: 2px solid var(--bg-obsidian);
  box-shadow: inset 0 0 0 1.5px #94A3B8;
}

.chat-peer-offline-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
  border: 2px solid #111622;
}

.friend-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.friend-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.friend-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.friend-name-large {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.15px;
}

.friend-online-card.is-offline .friend-name-large {
  color: #CBD5E1;
}

/* Designed Online / Offline Status Pill for Users */
.user-presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.user-presence-badge .presence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.user-presence-badge.online {
  background: rgba(0, 245, 155, 0.14);
  color: #00F59B;
  border: 1px solid rgba(0, 245, 155, 0.35);
}

.user-presence-badge.online .presence-dot {
  background: #00F59B;
  box-shadow: 0 0 6px #00F59B;
}

.user-presence-badge.offline {
  background: rgba(148, 163, 184, 0.12);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.user-presence-badge.offline .presence-dot {
  background: transparent;
  border: 1.5px solid #94A3B8;
}

/* Yahoo Stealth Rule Badge on Friend Card */
.yahoo-rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
}

.yahoo-rule-chip.rule-online {
  background: rgba(56, 189, 248, 0.15);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.38);
}

.yahoo-rule-chip.rule-offline {
  background: rgba(244, 63, 94, 0.14);
  color: #FDA4AF;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.friend-online-meta {
  font-size: 10px;
  font-weight: 600;
  color: var(--mint-now);
  opacity: 0.9;
}

.friend-online-meta.meta-offline {
  color: #64748B;
}

/* Segmented Online / Offline Toggle on Current User Card */
.my-presence-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.presence-switch-btn {
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.presence-switch-btn.active-on {
  background: rgba(0, 245, 155, 0.2);
  color: #00F59B;
  box-shadow: 0 0 10px rgba(0, 245, 155, 0.2);
}

.presence-switch-btn.active-off {
  background: rgba(148, 163, 184, 0.22);
  color: #F1F5F9;
}

.my-presence-subhint {
  font-size: 10.5px;
  color: #94A3B8;
  margin-top: 4px;
  line-height: 1.35;
}

.my-presence-subhint b {
  color: #E2E8F0;
}

.section-banner-offline {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.2);
  color: #94A3B8;
}

.offline-section-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid #94A3B8;
  margin-right: 6px;
}

.friend-status-multiline {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #CBD5E1;
  white-space: pre-line;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--mint-now);
  padding: 4px 8px;
  border-radius: 0 7px 7px 0;
}

.friend-status-multiline.status-offline {
  color: #94A3B8;
  border-left-color: #475569;
  background: rgba(255, 255, 255, 0.015);
}

.friend-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-gogo-compact {
  flex-shrink: 0;
  background: linear-gradient(135deg, #00F59B 0%, #FFE600 100%);
  color: #06090E;
  border: none;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 245, 155, 0.25);
  transition: transform 0.15s ease;
}

.btn-gogo-compact:active {
  transform: scale(0.95);
}

.btn-offline-msg-compact {
  flex-shrink: 0;
  background: rgba(148, 163, 184, 0.12);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-offline-msg-compact:hover {
  background: rgba(148, 163, 184, 0.22);
}

/* Top-Right ⋯ Yahoo Stealth Menu per Friend */
.friend-more-wrap {
  position: relative;
}

.friend-more-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #CBD5E1;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.friend-more-btn:hover,
.friend-more-btn.has-custom-rule {
  border-color: rgba(0, 245, 155, 0.5);
  color: #00F59B;
  background: rgba(0, 245, 155, 0.1);
}

.friend-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 252px;
  background: #131926;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.72);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.friend-menu-header {
  font-size: 10.5px;
  color: #94A3B8;
  padding: 5px 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 2px;
}

.friend-menu-header b {
  color: #F8FAFC;
}

.friend-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  color: #F1F5F9;
  padding: 7px 8px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease;
}

.friend-menu-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.friend-menu-item.selected {
  background: rgba(0, 245, 155, 0.11);
  border: 1px solid rgba(0, 245, 155, 0.3);
}

.friend-menu-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.friend-menu-text {
  flex: 1;
  min-width: 0;
}

.friend-menu-title {
  font-size: 12px;
  font-weight: 700;
  color: #F8FAFC;
}

.friend-menu-sub {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 1px;
  line-height: 1.25;
}

.friend-menu-check {
  font-size: 12px;
  font-weight: 800;
  color: #00F59B;
  flex-shrink: 0;
}

.friend-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 3px 4px;
}

.friend-menu-item.demo-toggle-item .friend-menu-title {
  color: #FCD34D;
}

/* Post Card - Dual State */
.post-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 15px;
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
}

.post-card.beacon-USER,
.post-card.beacon-NOW,
.post-card.beacon-TONIGHT,
.post-card.beacon-THIS_WEEKEND,
.post-card.beacon-UPCOMING {
  border-color: rgba(0, 245, 155, 0.52);
  box-shadow: 0 8px 28px rgba(0, 245, 155, 0.1);
}

.post-card.beacon-BRAND {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.09) 0%, var(--bg-card) 100%);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.14);
}

.post-card.beacon-SOLO {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 8px 26px rgba(139, 92, 246, 0.11);
}

.post-card.journal-expired {
  background: rgba(19, 23, 34, 0.65);
  border-color: rgba(255, 255, 255, 0.06);
  opacity: 0.92;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.author-name {
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.relation-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}

.relation-FRIEND {
  background: rgba(0, 245, 155, 0.15);
  color: var(--mint-now);
}

.relation-STRANGER {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
}

.relation-SELF {
  background: rgba(0, 245, 155, 0.15);
  color: var(--mint-now);
}

.author-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Status Beacon Pill */
.beacon-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
}

.beacon-strip.slot-USER,
.beacon-strip.slot-NOW,
.beacon-strip.slot-TONIGHT,
.beacon-strip.slot-THIS_WEEKEND,
.beacon-strip.slot-UPCOMING {
  background: rgba(0, 245, 155, 0.11);
  color: var(--mint-now);
  border: 1px solid rgba(0, 245, 155, 0.3);
}

.beacon-strip.slot-BRAND {
  background: rgba(245, 158, 11, 0.14);
  color: #FDE68A;
  border: 1px solid rgba(245, 158, 11, 0.42);
}

.beacon-strip.slot-SOLO {
  background: rgba(139, 92, 246, 0.13);
  color: #DDD6FE;
  border: 1px solid rgba(167, 139, 250, 0.38);
}

.beacon-strip.slot-EXPIRED {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.countdown-chip {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.post-caption {
  font-size: 14px;
  line-height: 1.5;
  color: #E2E8F0;
  margin-bottom: 10px;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.post-media {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border-subtle);
}

/* Facebook-style Multi-Photo Grid on Post Cards */
.fb-photo-grid {
  display: grid;
  gap: 3px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border-subtle);
  background: #080A0F;
}

.fb-photo-item {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  background: #10141E;
}

.fb-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.fb-photo-item:hover img {
  transform: scale(1.03);
}

/* 1 Photo: Full width */
.fb-photo-grid.fb-grid-1 {
  grid-template-columns: 1fr;
}

.fb-photo-grid.fb-grid-1 .fb-photo-item {
  max-height: 340px;
  aspect-ratio: 16 / 10;
}

/* 2 Photos: 2 equal columns side by side */
.fb-photo-grid.fb-grid-2 {
  grid-template-columns: 1fr 1fr;
  height: 220px;
}

/* 3 Photos: Facebook 1 large left + 2 stacked right */
.fb-photo-grid.fb-grid-3 {
  grid-template-columns: 1.38fr 1fr;
  grid-template-rows: 118px 118px;
  height: 239px;
}

.fb-photo-grid.fb-grid-3 .fb-photo-item:first-child {
  grid-row: span 2;
}

/* 4+ Photos: Facebook 2x2 grid (with +N overlay on 4th tile when > 4) */
.fb-photo-grid.fb-grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 132px 132px;
  height: 267px;
}

.fb-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 15, 0.68);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

/* Check-in Modal Multi-Photo Uploader & Preview Tray */
.photo-upload-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.btn-add-photos {
  background: rgba(0, 245, 155, 0.1);
  color: var(--mint-now);
  border: 1px dashed rgba(0, 245, 155, 0.45);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-add-photos:hover {
  background: rgba(0, 245, 155, 0.18);
  border-color: var(--mint-now);
}

.photo-count-hint {
  font-size: 11px;
  color: var(--text-secondary);
}

.checkin-photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.preview-thumb-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0F131C;
}

.preview-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(6, 9, 14, 0.82);
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lightbox Modal */
#lightboxDialog {
  max-width: 480px;
  width: 94vw;
  padding: 12px;
  background: rgba(9, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
}

.lightbox-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-counter {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mint-now);
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  max-height: 72vh;
  background: #05070B;
  border-radius: 12px;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 13, 19, 0.78);
  color: #FFFFFF;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav-btn.prev { left: 8px; }
.lightbox-nav-btn.next { right: 8px; }

.hashtag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.hashtag {
  font-size: 11.5px;
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Card CTA Actions */
.card-cta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-gogo {
  flex: 1;
  background: linear-gradient(135deg, #00F59B 0%, #FFE600 100%);
  color: #06090E;
  border: none;
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(0, 245, 155, 0.32);
  transition: transform 0.15s ease;
}

.btn-gogo:active {
  transform: scale(0.96);
}

.btn-join-stranger {
  flex: 1;
  background: linear-gradient(135deg, rgba(184, 92, 255, 0.22), rgba(99, 102, 241, 0.25));
  color: #E9D5FF;
  border: 1px solid rgba(184, 92, 255, 0.5);
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-solo-vibe {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 14px;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-solo-chill-status {
  flex: 1;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(56, 189, 248, 0.12));
  color: #C4B5FD;
  border: 1px dashed rgba(167, 139, 250, 0.45);
  padding: 10px 14px;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-solo-chill-status:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(56, 189, 248, 0.18));
  border-color: rgba(167, 139, 250, 0.7);
}

.btn-gogo.solo-submit-mode {
  background: linear-gradient(135deg, #8B5CF6 0%, #38BDF8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}

.btn-mini-action {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-mini-action.liked {
  color: #FB7185;
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.12);
}

.btn-mini-action.active-comment-btn {
  color: var(--mint-now);
  border-color: rgba(0, 245, 155, 0.4);
  background: rgba(0, 245, 155, 0.12);
}

/* Public Comments Section under Post Card (Facebook / Threads style) */
.post-comments-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comments-view-more-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.comments-view-more-btn:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.comment-body-wrap {
  flex: 1;
  min-width: 0;
}

.comment-bubble {
  display: inline-block;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #E2E8F0;
  word-break: break-word;
}

.comment-author-name {
  font-weight: 700;
  color: #FFFFFF;
  margin-right: 5px;
}

.comment-text {
  color: #CBD5E1;
}

.comment-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  padding-left: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
}

.comment-action-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.comment-action-link:hover {
  color: var(--mint-now);
}

.comment-action-link.delete:hover {
  color: #FB7185;
}

.comment-quick-open-bar {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.comment-quick-open-bar:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
}

.comment-form {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}

.mention-field-wrap {
  position: relative;
  width: 100%;
}

.comment-mention-wrap {
  flex: 1;
  display: flex;
  position: relative;
}

.comment-input {
  flex: 1;
  width: 100%;
  background: rgba(11, 13, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--text-primary);
  font-size: 12.5px;
  outline: none;
}

.comment-input:focus {
  border-color: var(--mint-now);
}

.comment-send-btn {
  background: var(--mint-now);
  color: #06090E;
  border: none;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

/* @Mention Autocomplete Popup & Pills */
.mention-popup-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: rgba(14, 18, 28, 0.98);
  border: 1px solid rgba(0, 242, 169, 0.35);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 242, 169, 0.12);
  backdrop-filter: blur(14px);
  z-index: 60;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
  animation: fadeSlideIn 0.14s ease-out;
}

.mention-popup-menu.comment-mention-up {
  top: auto;
  bottom: calc(100% + 6px);
}

.mention-menu-header {
  padding: 6px 11px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--mint-now);
  background: rgba(0, 242, 169, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  letter-spacing: 0.2px;
}

.mention-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.mention-menu-item:last-child {
  border-bottom: none;
}

.mention-menu-item:hover,
.mention-menu-item.active {
  background: rgba(0, 242, 169, 0.14);
}

.mention-item-avatar-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.mention-item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mention-item-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #0E121C;
}

.mention-item-dot.onl {
  background: #00F2A9;
}

.mention-item-dot.off {
  background: #6E7891;
}

.mention-item-info {
  flex: 1;
  min-width: 0;
}

.mention-item-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mention-item-handle {
  font-size: 10.5px;
  color: var(--text-muted);
}

.mention-item-action {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--mint-now);
  background: rgba(0, 242, 169, 0.12);
  border: 1px solid rgba(0, 242, 169, 0.28);
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.quick-tag-friends-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 2px 2px;
  scrollbar-width: none;
}

.quick-tag-friends-row::-webkit-scrollbar {
  display: none;
}

.quick-tag-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.quick-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.quick-tag-chip:hover {
  background: rgba(0, 242, 169, 0.14);
  border-color: rgba(0, 242, 169, 0.4);
  color: var(--mint-now);
  transform: translateY(-1px);
}

.quick-tag-chip img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.quick-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00F2A9;
  box-shadow: 0 0 6px rgba(0, 242, 169, 0.8);
}

.mention-pill {
  display: inline-flex;
  align-items: center;
  padding: 0px 6px;
  margin: 0 1px;
  border-radius: 6px;
  background: rgba(0, 242, 169, 0.14);
  border: 1px solid rgba(0, 242, 169, 0.32);
  color: #00F2A9;
  font-weight: 700;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.14s ease;
}

.mention-pill:hover {
  background: rgba(0, 242, 169, 0.26);
  border-color: rgba(0, 242, 169, 0.6);
  box-shadow: 0 0 10px rgba(0, 242, 169, 0.25);
}

/* Minimalist top-right icon buttons for Post Card */
.card-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-ghost-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-ghost-icon:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Thunder Shake Animation for GO GO! Buzz */
@keyframes thunderBuzz {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  15% { transform: translate(-6px, -3px) rotate(-1.5deg); }
  30% { transform: translate(6px, 2px) rotate(1.5deg); }
  45% { transform: translate(-5px, 3px) rotate(-1deg); }
  60% { transform: translate(5px, -2px) rotate(1deg); }
  75% { transform: translate(-3px, 1px) rotate(-0.5deg); }
}

.buzz-shake {
  animation: thunderBuzz 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Bottom Navigation Bar (5 symmetric items: GOGO, Bạn bè, [+], Hộp thư, Hộ Chiếu) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: rgba(13, 16, 24, 0.95);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 8px 6px 14px;
  z-index: 35;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  will-change: transform, opacity;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
}

.bottom-nav.nav-collapsed {
  transform: translate3d(0, 130%, 0);
  opacity: 0;
  pointer-events: none;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.nav-item.active {
  color: var(--mint-now);
}

.nav-avatar-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-item.active .nav-avatar-icon {
  border-color: var(--mint-now);
  box-shadow: 0 0 0 2px rgba(0, 245, 155, 0.25);
  transform: scale(1.05);
}

.drawer-avatar-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0, 245, 155, 0.55);
}

.nav-fab {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00F59B, #00C2FF);
  color: #05080D;
  border: none;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  margin: -18px auto 0;
  box-shadow: 0 8px 24px rgba(0, 245, 155, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inbox View */
.inbox-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.inbox-tab-btn {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.inbox-tab-btn.active {
  background: rgba(0, 245, 155, 0.14);
  color: var(--mint-now);
  border-color: var(--mint-now);
}

.conv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.embedded-post-banner {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--purple-weekend);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin: 8px 0;
  color: #CBD5E1;
}

.social-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.trust-pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  color: #C7D2FE;
  border: 1px solid rgba(99, 102, 241, 0.35);
  text-decoration: none;
  font-weight: 600;
}

.friend-prompt-banner {
  background: linear-gradient(135deg, rgba(0, 245, 155, 0.14), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(0, 245, 155, 0.4);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================
   FULL-SCREEN NATIVE 1-1 CHAT ROOM (Zalo / Messenger style)
   ========================================== */
#appShell.in-chat-room {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#appShell.in-chat-room .app-header,
#appShell.in-chat-room .bottom-nav {
  display: none !important;
}

#appShell.in-chat-room .feed-container {
  padding: 0 !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-room-fullscreen {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0A0D14;
  overflow: hidden;
}

/* 1. Top Chat App Bar */
.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #111827, #0F172A);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  z-index: 5;
}

.chat-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.chat-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #F8FAFC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.chat-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.chat-peer-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.chat-peer-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-peer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0, 245, 155, 0.45);
  display: block;
}

.chat-peer-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint-now);
  border: 2px solid #111827;
}

.chat-peer-text {
  min-width: 0;
}

.chat-peer-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-peer-sub {
  font-size: 11px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.chat-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chat-top-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.chat-top-icon-btn:hover {
  border-color: var(--mint-now);
  color: var(--mint-now);
}

/* 2. Zalo-Style Pinned Context Banner */
.chat-pinned-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 10px 0;
  padding: 8px 11px;
  background: rgba(22, 29, 44, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.chat-pinned-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 245, 155, 0.14);
  border: 1px solid rgba(0, 245, 155, 0.35);
  color: var(--mint-now);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.chat-pinned-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.chat-pinned-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #F1F5F9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-pinned-bar.expanded .chat-pinned-title {
  white-space: normal;
  line-height: 1.4;
}

.chat-pinned-sub {
  font-size: 11px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.chat-pinned-chevron {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 12px;
  transition: transform 0.18s ease;
}

.chat-pinned-bar.expanded .chat-pinned-chevron {
  transform: rotate(180deg);
}

/* 3. Scrollable Chat Message Stream */
.chat-thread-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-system-pill {
  align-self: center;
  max-width: 88%;
  text-align: center;
  background: rgba(0, 245, 155, 0.1);
  border: 1px solid rgba(0, 245, 155, 0.28);
  color: #A7F3D0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 6px 0;
  line-height: 1.35;
}

.chat-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: 82%;
}

.chat-msg-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-row.theirs {
  align-self: flex-start;
}

.chat-msg-row.group-break {
  margin-top: 6px;
}

.chat-row-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}

.chat-row-avatar-spacer {
  width: 26px;
  flex-shrink: 0;
}

.chat-bubble-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-msg-row.mine .chat-bubble-col {
  align-items: flex-end;
}

.chat-msg-row.theirs .chat-bubble-col {
  align-items: flex-start;
}

.chat-bubble {
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.42;
  word-break: break-word;
}

.chat-msg-row.mine .chat-bubble {
  background: linear-gradient(135deg, #00C980, #00A699);
  color: #04130D;
  font-weight: 600;
}

.chat-msg-row.mine.last-in-group .chat-bubble {
  border-bottom-right-radius: 5px;
}

.chat-msg-row.theirs .chat-bubble {
  background: #1C2333;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #F1F5F9;
}

.chat-msg-row.theirs.last-in-group .chat-bubble {
  border-bottom-left-radius: 5px;
}

.chat-footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  padding: 0 2px;
}

.chat-time-pill {
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 7px;
  border-radius: 999px;
}

.chat-seen-avatar {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 245, 155, 0.6);
}

/* 4. Bottom Docked Native Chat Composer */
.chat-composer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px calc(11px + env(safe-area-inset-bottom, 0px));
  background: #111622;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}

.chat-quick-wave-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-composer-input {
  flex: 1;
  background: #1B2234;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 9px 15px;
  color: #F8FAFC;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}

.chat-composer-input:focus {
  border-color: var(--mint-now);
}

.chat-composer-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00F59B, #00C2FF);
  color: #05090E;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 245, 155, 0.3);
}

/* Profile Vibe Card & 2-Tab Switcher */
.vibe-id-card {
  background: linear-gradient(155deg, #192136 0%, #0F1422 60%, #1E1433 100%);
  border: 1px solid rgba(0, 245, 155, 0.35);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}

.profile-sub-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-sub-tab-btn {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.profile-sub-tab-btn.active {
  background: rgba(0, 245, 155, 0.15);
  color: var(--mint-now);
  border-color: var(--mint-now);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.journal-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
}

.journal-tile img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.journal-tile-body {
  padding: 8px;
  font-size: 12px;
}

/* Native HTML <dialog> with modern-web-guidance scroll containment */
dialog {
  margin: auto;
  width: min(94vw, 430px);
  max-height: 88vh;
  background: #141926;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

dialog:modal {
  /* MANDATORY per prevent-page-scroll-under-modal-dialog:
     Prevent scroll gestures inside the modal from chaining to the underlying page. */
  overscroll-behavior: contain;
}

dialog::backdrop {
  background-color: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(6px);
  /* MANDATORY per prevent-page-scroll-under-modal-dialog:
     Turn ::backdrop into a non-scrollable scroll container and contain scroll. */
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Focused sign-in screen: keep authentication calm and separate from the
   activity-feed UI so first-time users have one obvious next action. */
.auth-dialog {
  width: min(94vw, 430px);
  max-height: min(92vh, 800px);
  padding: 0;
  overflow: auto;
  background: #202c3d;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-shell {
  position: relative;
  padding: 36px 28px 24px;
}

.auth-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #aab7ca;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.auth-close-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 24px;
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(145deg, #f13e9f 0%, #8f2eea 100%);
  box-shadow: 0 12px 30px rgba(151, 49, 231, 0.26);
}

.auth-title {
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 30px;
  line-height: 1.15;
}

.auth-subtitle {
  margin: 10px 0 30px;
  color: #acb9cc;
  text-align: center;
  font-size: 16px;
}

.auth-form { display: grid; gap: 18px; }

.auth-field { display: grid; gap: 8px; color: #f4f6fb; font-size: 14px; font-weight: 750; }
.auth-field-hint { color: #98a5b8; font-size: 11px; font-weight: 500; line-height: 1.35; }

.auth-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  border: 2px solid #536277;
  border-radius: 16px;
  padding: 0 16px;
  color: #fff;
  background: #3b475a;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.auth-field input::placeholder { color: #98a5b8; }
.auth-field input:focus { border-color: #b33cff; box-shadow: 0 0 0 3px rgba(184, 66, 255, 0.18); }

.auth-password-wrap { position: relative; display: block; }
.auth-password-wrap input { padding-right: 54px; }
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: #aab7ca;
  background: transparent;
  cursor: pointer;
  font-size: 19px;
}

.auth-forgot-link {
  justify-self: end;
  margin-top: -8px;
  padding: 0;
  border: 0;
  color: #bb4cff;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.auth-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  color: #d6dce8;
  background: rgba(255, 255, 255, 0.065);
  font-size: 13px;
  line-height: 1.45;
}

.auth-consent input { flex: 0 0 auto; width: 19px; height: 19px; margin: 1px 0 0; accent-color: #b33cff; }
.auth-consent button,
.auth-switch-copy button {
  padding: 0;
  border: 0;
  color: #bd4eff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-submit-btn {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(100deg, #ee3d9b 0%, #922be9 100%);
  box-shadow: 0 10px 24px rgba(170, 50, 228, 0.25);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.auth-submit-btn:disabled { cursor: wait; opacity: 0.72; }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; color: #9caabc; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #536277; }

.auth-google-button { display: grid; min-height: 48px; place-items: center; }
.auth-google-button > div { width: 100% !important; }
.auth-google-button iframe { max-width: 100%; }
.auth-google-fallback {
  width: 100%;
  min-height: 52px;
  border: 2px solid #536277;
  border-radius: 16px;
  color: #f4f6fb;
  background: #3b475a;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: not-allowed;
  opacity: 0.75;
}

.auth-provider-hint { min-height: 16px; margin-top: 7px; color: #99a7bb; text-align: center; font-size: 11px; }
.auth-switch-copy { margin: 24px 0 0; color: #acb9cc; text-align: center; font-size: 14px; }
.auth-account-actions { display: flex; justify-content: center; gap: 14px; margin-top: 13px; }
.auth-logout-link, .auth-push-link {
  padding: 0;
  border: 0;
  color: #99a7bb;
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.auth-register-only { display: none; }
.auth-dialog[data-mode='register'] .auth-register-only { display: grid; }
.auth-dialog[data-mode='register'] .auth-forgot-link { display: none; }
.auth-dialog[data-mode='register'] .auth-subtitle { margin-bottom: 22px; }

@media (max-width: 420px) {
  .auth-shell { padding: 30px 20px 22px; }
  .auth-title { font-size: 28px; }
  .auth-subtitle { margin-bottom: 24px; }
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dialog-title {
  font-size: 16px;
  font-weight: 800;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.choice-pill {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.choice-pill.selected {
  background: rgba(0, 245, 155, 0.16);
  color: var(--mint-now);
  border-color: var(--mint-now);
}

.input-field,
.textarea-field {
  width: 100%;
  background: var(--bg-obsidian);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
}

.comment-guest-cta {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed rgba(184, 92, 255, 0.5);
  border-radius: 12px;
  color: #D8B4FE;
  background: rgba(139, 92, 246, 0.1);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

/* Share Card 9:16 Ticket Preview */
.share-ticket {
  background: linear-gradient(160deg, #0D1322 0%, #1E1136 55%, #091D1E 100%);
  border: 2px solid var(--mint-now);
  border-radius: 22px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 245, 155, 0.2);
}

.qr-box {
  width: 96px;
  height: 96px;
  margin: 12px auto;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 410px);
  pointer-events: none;
}

.toast {
  background: rgba(16, 24, 38, 0.96);
  border: 1px solid var(--mint-now);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

/* ==========================================
   UPGRADED BRAND TAB, VOUCHER CARD & WALL UX
   ========================================== */
.scope-tabs.scope-tabs-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.scope-tabs.scope-tabs-4 .scope-tab {
  padding: 8px 4px;
  font-size: 11.5px;
  white-space: nowrap;
}

.scope-tab-brand.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 88, 12, 0.25));
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.brand-expiry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 8px 11px;
  margin-bottom: 12px;
}

.brand-expiry-info {
  font-size: 11.5px;
  font-weight: 700;
  color: #FCD34D;
}

.brand-expiry-pills {
  display: flex;
  gap: 5px;
}

.brand-exp-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.brand-exp-pill.active {
  background: #F59E0B;
  color: #090C12;
  border-color: #F59E0B;
}

.brand-discovery-banner {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.brand-post-card.live-beacon {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.12);
}

.brand-voucher-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px dashed rgba(245, 158, 11, 0.55);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 12px;
}

.brand-voucher-card.expired {
  opacity: 0.65;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
}

.brand-voucher-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.brand-voucher-title {
  font-size: 13px;
  font-weight: 800;
  color: #FDE68A;
}

.brand-voucher-counter {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: #FDE68A;
  border: 1px solid rgba(245, 158, 11, 0.48);
  white-space: nowrap;
}

.brand-voucher-counter.out {
  background: rgba(244, 63, 94, 0.16);
  color: #FDA4AF;
  border-color: rgba(244, 63, 94, 0.4);
}

.brand-voucher-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: #E2E8F0;
}

.brand-mandatory-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.btn-gogo-done {
  flex: 1;
  background: rgba(0, 245, 155, 0.16);
  color: var(--mint-now);
  border: 1.5px solid var(--mint-now);
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-friend-once {
  background: linear-gradient(135deg, #00F59B, #00C2FF);
  color: #06090E;
  border: none;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-friend-once.done,
.btn-friend-once:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mint-now);
  border: 1px solid rgba(0, 245, 155, 0.4);
  cursor: not-allowed;
}

.conv-card.conv-highlighted {
  border-color: var(--mint-now);
  box-shadow: 0 0 0 2px rgba(0, 245, 155, 0.25), 0 10px 28px rgba(0, 245, 155, 0.18);
}

/* Passport / Wall Large Avatar Layout */
.passport-top-layout {
  display: flex;
  align-items: center;
  gap: 16px;
}

.passport-avatar-hero {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.avatar-xl {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mint-now);
  box-shadow: 0 6px 22px rgba(0, 245, 155, 0.32);
}

.avatar-zoom-hint {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 13, 19, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #F8FAFC;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Official Badge ("✓ Official") */
.official-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.25));
  color: #FDE68A;
  border: 1px solid rgba(245, 158, 11, 0.55);
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Brand Voucher Meta Grid & Google Maps 1-Tap Link */
.brand-voucher-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #E2E8F0;
  line-height: 1.45;
}

.venue-map-anchor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.venue-map-anchor:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.maps-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.14);
  border: 1px solid rgba(255, 59, 48, 0.35);
  flex-shrink: 0;
  vertical-align: middle;
  transition: transform 0.15s ease, background 0.15s ease;
}

.venue-map-anchor:hover .maps-inline-link,
.maps-inline-link:hover {
  background: rgba(255, 59, 48, 0.28);
  transform: scale(1.1);
}

.red-map-pin-svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(255, 59, 48, 0.45));
}

/* Vertical 3-Dots Post Context Menu (⋮) */
.post-more-wrap {
  position: relative;
}

.btn-more-dots {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-more-dots:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.post-more-dropdown {
  position: absolute;
  top: 34px;
  right: 0;
  min-width: 195px;
  background: #161C2C;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  padding: 5px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.post-more-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #F1F5F9;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-more-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.post-more-item.danger {
  color: #FDA4AF;
}

.post-more-item.danger:hover {
  background: rgba(244, 63, 94, 0.16);
}

/* Compact 2-Level Inbox Conversation List */
.conv-list-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 11px 13px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.conv-list-item:hover {
  border-color: rgba(0, 245, 155, 0.4);
  background: rgba(25, 31, 48, 0.95);
}

.conv-list-item.conv-highlighted {
  border-color: var(--mint-now);
  box-shadow: 0 0 0 1.5px rgba(0, 245, 155, 0.25);
}

.conv-list-body {
  flex: 1;
  min-width: 0;
}

.conv-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.conv-list-time {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.conv-list-preview {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-list-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Multi-Channel Social Share Sheet */
.share-sheet-label {
  margin: 12px 0 7px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.share-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-action-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.share-action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 245, 155, 0.45);
  transform: translateY(-1px);
}

.share-action-btn.primary {
  background: rgba(0, 245, 155, 0.12);
  border-color: rgba(0, 245, 155, 0.45);
}

.share-action-btn.threads {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.45);
}

.share-action-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.share-action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.share-action-text strong {
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.share-action-text small {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* =========================================================
   Facebook-style Left Slide-Out Menu Drawer (#sideMenuDrawer)
   ========================================================= */
dialog.side-drawer-dialog {
  margin: 0 auto 0 0;
  width: min(86vw, 340px);
  max-width: 340px;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0 22px 22px 0;
  background: #10141F;
  color: var(--text-primary);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.78);
  overflow-y: auto;
  animation: drawerSlideInLeft 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0.5;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px 28px;
  min-height: 100%;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.drawer-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.drawer-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.drawer-profile-main {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  flex: 1;
}

.drawer-profile-name {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.drawer-profile-sub {
  font-size: 11px;
  color: var(--mint-now);
  font-weight: 600;
  margin-top: 2px;
}

.drawer-switch-acc-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.drawer-switch-acc-btn:hover {
  background: rgba(0, 245, 155, 0.16);
  border-color: var(--mint-now);
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #F8FAFC;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.drawer-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 245, 155, 0.35);
}

.drawer-nav-icon {
  font-size: 19px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.drawer-nav-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.drawer-nav-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.drawer-nav-text small {
  font-size: 11px;
  color: var(--text-secondary);
}

.drawer-sim-section {
  margin-top: 4px;
  padding: 13px 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.drawer-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #FCD34D;
  letter-spacing: 0.4px;
  margin-bottom: 5px;
}

.drawer-sim-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(0, 245, 155, 0.15);
  color: var(--mint-now);
  border: 1px solid rgba(0, 245, 155, 0.35);
}

.drawer-sim-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.drawer-sim-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.drawer-sim-btn {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-sim-btn.brand-test {
  border-color: rgba(245, 158, 11, 0.55);
  color: #FCD34D;
}

.drawer-sim-btn.reset-test {
  border-color: rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
}

/* ============================================================
   "🙋 ĐANG RẢNH GẤP" (FREE MODE) & "📱 ONLINE APP" ENGINE
   ============================================================ */

.post-card.beacon-FREE {
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow: 0 8px 28px rgba(244, 63, 94, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.beacon-strip.slot-FREE {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.24) 0%, rgba(168, 85, 247, 0.24) 55%, rgba(251, 146, 60, 0.2) 100%);
  border: 1px solid rgba(244, 114, 182, 0.45);
  color: #FBCFE8;
}

.beacon-strip.slot-FREE .countdown-chip {
  background: rgba(244, 63, 94, 0.28);
  border-color: rgba(251, 113, 133, 0.55);
  color: #FFE4E6;
}

.venue-badge.venue-free-open {
  background: rgba(244, 114, 182, 0.1);
  border: 1px dashed rgba(244, 114, 182, 0.42);
  color: #F9A8D4;
  font-weight: 700;
}

.free-vibe-mood-card {
  margin: 4px 0 10px;
  padding: 15px 15px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.42) 0%, rgba(157, 23, 77, 0.42) 52%, rgba(194, 65, 12, 0.34) 100%);
  border: 1px solid rgba(244, 114, 182, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.26);
  position: relative;
  overflow: hidden;
}

.free-vibe-mood-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.45px;
  color: #FDE047;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(253, 224, 71, 0.32);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 9px;
}

.free-vibe-mood-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #FFF1F2;
  letter-spacing: -0.1px;
}

.choice-pill.free-mode-pill.selected {
  background: linear-gradient(135deg, #F43F5E, #D946EF);
  color: #FFFFFF;
  border-color: rgba(244, 114, 182, 0.8);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.4);
}

.free-mode-push-banner {
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 11px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.38);
  color: #FECDD3;
  font-size: 11.5px;
  line-height: 1.42;
}

.free-area-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 7px 2px 2px;
  scrollbar-width: none;
}

.free-area-chips-row::-webkit-scrollbar {
  display: none;
}

.free-mood-prompts-box {
  margin-bottom: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.28);
}

.free-mood-prompts-title {
  font-size: 11px;
  font-weight: 800;
  color: #F9A8D4;
  margin-bottom: 6px;
}

.free-mood-prompts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.free-mood-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(244, 114, 182, 0.34);
  color: #FBCFE8;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.free-mood-chip:hover {
  background: rgba(244, 63, 94, 0.24);
  border-color: rgba(244, 114, 182, 0.7);
  color: #FFFFFF;
}

.btn-gogo.free-submit-mode {
  background: linear-gradient(135deg, #00F2A9 0%, #38BDF8 100%);
  color: #041014;
}

/* Online App & Background Notification Engine Bar in Friends Tab */
.app-presence-engine-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.18), rgba(30, 41, 59, 0.75));
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-presence-engine-title {
  font-size: 11.5px;
  color: #E0F2FE;
  line-height: 1.35;
}

.app-presence-engine-sub {
  color: #93C5FD;
  font-weight: 500;
}

.app-presence-engine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-app-notif {
  flex: 1;
  min-width: 140px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #7DD3FC;
  transition: all 0.15s ease;
}

.btn-app-notif.granted {
  background: rgba(0, 242, 169, 0.14);
  border-color: rgba(0, 242, 169, 0.45);
  color: var(--mint-now);
}

.btn-app-notif.test-btn {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 114, 182, 0.45);
  color: #FDA4AF;
}

.btn-app-notif:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

/* App Presence Chips on Friend Cards (Distinct from Yahoo Status Bar Online/Offline) */
.app-presence-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.app-presence-chip.app-fg {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7DD3FC;
}

.app-presence-chip.app-bg {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #D8B4FE;
}

.app-presence-chip.app-off {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #64748B;
}

.urgent-free-friend-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.28), rgba(217, 70, 239, 0.28));
  border: 1px solid rgba(244, 114, 182, 0.6);
  color: #FFE4E6;
  cursor: pointer;
}

.friend-online-card.has-urgent-free {
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.12);
}

/* ============================================================
   TOP-RIGHT HEART NOTIFICATION BUTTON & ACTIVITY CENTER (MINIMALIST INSTAGRAM STYLE)
   ============================================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.top-notif-btn {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  color: #F1F5F9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.top-notif-btn:hover {
  opacity: 0.8;
}

.top-notif-btn:active {
  transform: scale(0.92);
}

@keyframes heartPopPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.top-notif-btn.heart-pop-anim {
  animation: heartPopPulse 0.36s ease-out;
}

.top-notif-dot {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF3040;
  border: 1.5px solid #0B0D13;
  pointer-events: none;
}

/* Minimalist Notifications Modal Dialog */
#notificationsDialog {
  width: min(95vw, 420px);
  max-height: 82vh;
  padding: 14px 16px;
  border-radius: 18px;
  background: #0F131C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.notif-dialog-header {
  margin-bottom: 10px;
}

.btn-mark-read-all {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 4px 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-mark-read-all:hover {
  color: #FFFFFF;
}

.notif-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 4px;
  scrollbar-width: none;
}

.notif-filter-tabs::-webkit-scrollbar {
  display: none;
}

.notif-filter-pill {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.14s ease;
}

.notif-filter-pill.active {
  background: #F1F5F9;
  color: #0B0D13;
  font-weight: 700;
}

.notifications-list-container {
  display: flex;
  flex-direction: column;
  max-height: 60vh;
  overflow-y: auto;
}

.notif-empty-state {
  text-align: center;
  padding: 32px 16px;
}

.notif-item-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: opacity 0.14s ease;
}

.notif-item-row:last-child {
  border-bottom: none;
}

.notif-item-row:hover {
  opacity: 0.88;
}

.notif-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.notif-content-body {
  flex: 1;
  min-width: 0;
}

.notif-main-line {
  font-size: 12.5px;
  line-height: 1.42;
  color: #CBD5E1;
}

.notif-item-row.is-unread .notif-main-line {
  color: #F8FAFC;
}

.notif-actor-name {
  color: #FFFFFF;
  font-weight: 700;
  margin-right: 4px;
}

.notif-text-span {
  color: inherit;
}

.notif-time-inline {
  color: var(--text-muted);
  font-size: 11.5px;
  margin-left: 5px;
  white-space: nowrap;
}

.notif-right-slot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  flex-shrink: 0;
}

.btn-notif-quick-gogo {
  background: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-notif-quick-gogo:hover {
  background: var(--mint-now);
  color: #06090E;
  border-color: var(--mint-now);
}

.notif-post-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
