/* ==============================================================================
   NOVA SPACE OBSERVATORY — SOCIAL DESIGN SYSTEM (css/social.css)
   Aesthetic: 2px corners, 1px hairline borders, dark glassmorphism, no emoji.
   ============================================================================== */

@import url('/css/ui.css');
@import url('/css/postcard.css');

:root {
  --bg-deep: #02040a;
  --bg-card: rgba(6, 12, 24, 0.78);
  --bg-card-hover: rgba(10, 20, 38, 0.9);
  --bg-input: rgba(3, 7, 16, 0.85);
  --border-hairline: 1px solid rgba(92, 200, 255, 0.16);
  --border-active: 1px solid rgba(92, 200, 255, 0.45);
  --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
  --accent-cyan: #5cc8ff;
  --accent-blue: #0077ff;
  --accent-gold: #fbbf24;
  --accent-alert: #ef4444;
  --accent-success: #10b981;
  --text-main: #f0f4fc;
  --text-muted: #8ca3c7;
  --text-mono: #6885ab;
  --radius-tech: 2px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Background Canvas Starfield */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Monospace telemetry labels */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.mono-sublabel {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

#shared-navbar-container {
  width: 100%;
  background: rgba(2, 4, 10, 0.92);
  border-bottom: var(--border-hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.shared-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 2vw, 32px);
  width: 100%;
  max-width: 2560px;
  margin: 0 auto;
  height: 64px;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-orbital-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-tech);
  border: 1px solid var(--accent-cyan);
  background: radial-gradient(circle at center, rgba(92, 200, 255, 0.25) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-orbital-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: var(--radius-tech);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #fff;
}

.brand-subtext {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
}

/* Nav Links */
.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text-muted);
  border-radius: var(--radius-tech);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-link-item:hover {
  color: #fff;
  border: var(--border-hairline);
  background: rgba(92, 200, 255, 0.05);
}

.nav-link-item.active {
  color: var(--accent-cyan);
  border: var(--border-hairline);
  background: rgba(92, 200, 255, 0.1);
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-center-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 0 16px;
  min-width: 0;
}

.nav-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(3, 7, 16, 0.75);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  padding: 5px 12px;
  gap: 8px;
  width: 100%;
  max-width: 260px;
  min-width: 130px;
  transition: all 0.2s ease;
}

.nav-search-wrap:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(92, 200, 255, 0.2);
}

.nav-search-icon {
  color: var(--text-mono);
  flex-shrink: 0;
}

.nav-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  width: 100%;
  letter-spacing: 0.05em;
}

.nav-search-kbd {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-mono);
  border: var(--border-subtle);
  padding: 1px 5px;
  border-radius: var(--radius-tech);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

/* User & Auth Buttons */
.nav-actions-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  flex-shrink: 0;
}

.btn-topbar-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  height: 34px;
  background: rgba(92, 200, 255, 0.08);
  border: 1px solid rgba(92, 200, 255, 0.35);
  border-radius: var(--radius-tech);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-topbar-post:hover {
  background: rgba(92, 200, 255, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(92, 200, 255, 0.35);
  color: #fff;
}

.nav-bell-btn {
  background: transparent;
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-bell-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.nav-bell-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.btn-nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #02040a;
  background: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-tech);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav-auth:hover {
  background: #75d4ff;
  box-shadow: 0 0 14px rgba(92, 200, 255, 0.35);
}

/* User Account Dropdown */
.nav-user-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-user-dropdown-btn:hover {
  border-color: var(--accent-cyan);
}

.user-badge-role {
  padding: 2px 6px;
  font-size: 9px;
  background: rgba(92, 200, 255, 0.12);
  color: var(--accent-cyan);
  border-radius: var(--radius-tech);
}

.user-badge-role.curator {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
}

.dropdown-menu-box {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: rgba(6, 12, 24, 0.96);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  padding: 6px 0;
  z-index: 150;
  backdrop-filter: blur(20px);
}

.dropdown-menu-box.open {
  display: flex;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-menu-item:hover {
  background: rgba(92, 200, 255, 0.08);
  color: var(--accent-cyan);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 4px 0;
}

/* ==============================================================================
   FOOTER HUD TELEMETRY BAR
   ============================================================================== */
.shared-footer {
  margin-top: auto;
  border-top: var(--border-hairline);
  background: rgba(2, 4, 10, 0.94);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-mono);
  z-index: 50;
}

.footer-telemetry {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-tech);
  background: var(--accent-success);
  box-shadow: 0 0 8px var(--accent-success);
  animation: pulse-health 2s infinite ease-in-out;
}

.status-dot.offline {
  background: var(--accent-alert);
  box-shadow: 0 0 8px var(--accent-alert);
}

@keyframes pulse-health {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ==============================================================================
   LAYOUT & CONTAINERS
   ============================================================================== */
.main-container {
  max-width: 2560px;
  width: 100%;
  margin: 0 auto;
  padding: 14px clamp(16px, 2vw, 32px) 64px;
  flex: 1;
  box-sizing: border-box;
}

/* Slim telemetry header bar (~48px) */
.slim-telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 4px 0 12px;
  border-bottom: var(--border-subtle);
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.header-left-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-pipe {
  color: rgba(92, 200, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 12px;
}
.slim-page-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}
.header-live-counters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.telemetry-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 14, 28, 0.75);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.pulse-counter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: pulse-health 2s infinite ease-in-out;
}
.counter-label {
  color: var(--text-mono);
}
.counter-value {
  color: var(--text-main);
  font-weight: 600;
}
.countdown-glow {
  color: var(--accent-gold);
}

/* Unified sticky filter bar under top bar */
.unified-sticky-filter-bar {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(2, 4, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.filter-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.feed-tabs-group {
  display: flex;
  gap: 8px;
}
.filter-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sort-controls-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sort-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-hairline);
  color: var(--text-mono);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-tech);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
}
.sort-chip-btn:hover {
  color: #fff;
  border-color: rgba(92, 200, 255, 0.35);
}
.sort-chip-btn.active {
  background: rgba(92, 200, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}
.layout-toggle-group {
  display: flex;
  align-items: center;
  gap: 4px;
  border-left: var(--border-subtle);
  padding-left: 10px;
}
.layout-toggle-btn {
  background: transparent;
  border: var(--border-hairline);
  color: var(--text-mono);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-tech);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.15s ease;
}
.layout-toggle-btn:hover {
  color: #fff;
  border-color: rgba(92, 200, 255, 0.35);
}
.layout-toggle-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #02040a;
  font-weight: 700;
}
.topic-chips-scroll-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 200, 255, 0.2) transparent;
}
.topic-chips-scroll-row::-webkit-scrollbar {
  height: 3px;
}
.topic-chips-scroll-row::-webkit-scrollbar-thumb {
  background: rgba(92, 200, 255, 0.2);
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
  max-width: 700px;
}

/* Two-column layout */
.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 28px;
}

@media (max-width: 960px) {
  .two-column-layout {
    grid-template-columns: 1fr;
  }
}

/* Hairline Cards */
.hairline-card {
  background: var(--bg-card);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  padding: 20px;
  position: relative;
  transition: border-color 0.2s ease;
  backdrop-filter: blur(12px);
}

.hairline-card:hover {
  border-color: rgba(92, 200, 255, 0.3);
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: var(--border-subtle);
}

/* Common Buttons */
.btn-tech {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border-radius: var(--radius-tech);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-tech-primary {
  background: var(--accent-cyan);
  color: #02040a;
  border: 1px solid var(--accent-cyan);
  font-weight: 600;
}

.btn-tech-primary:hover {
  background: #75d4ff;
  box-shadow: 0 0 14px rgba(92, 200, 255, 0.4);
}

.btn-tech-secondary {
  background: rgba(92, 200, 255, 0.08);
  color: var(--text-main);
  border: var(--border-hairline);
}

.btn-tech-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(92, 200, 255, 0.14);
}

.btn-tech-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-tech-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--accent-alert);
}

/* Form Inputs */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease;
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(92, 200, 255, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Loading Skeletons */
.skeleton-box {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.6s infinite ease-in-out;
  border-radius: var(--radius-tech);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty States */
.empty-state-card {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed rgba(92, 200, 255, 0.2);
  border-radius: var(--radius-tech);
  background: rgba(4, 9, 20, 0.4);
}

.empty-state-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}

/* Toasts */
#nova-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.nova-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 12px 18px;
  background: rgba(6, 14, 28, 0.95);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  animation: toast-in 0.25s ease-out;
}

.nova-toast.success {
  border-left: 3px solid var(--accent-success);
  color: #d1fae5;
}

.nova-toast.error {
  border-left: 3px solid var(--accent-alert);
  color: #fee2e2;
}

.nova-toast.info {
  border-left: 3px solid var(--accent-cyan);
  color: #e0f2fe;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 4, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  width: 100%;
  max-width: 620px;
  background: rgba(6, 12, 24, 0.98);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

/* ==============================================================================
   AGENCY CHANNELS & MULTI-COLUMN LAYOUT SYSTEM
   ============================================================================== */
.three-column-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 340px;
  gap: clamp(16px, 1.8vw, 28px);
  align-items: start;
  width: 100%;
}

@media (min-width: 1600px) {
  .three-column-layout {
    grid-template-columns: 280px minmax(0, 1fr) 380px;
  }
}

.social-left-rail {
  position: sticky;
  top: 72px;
  height: calc(100vh - 88px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 200, 255, 0.25) transparent;
}
.social-left-rail::-webkit-scrollbar {
  width: 4px;
}
.social-left-rail::-webkit-scrollbar-track {
  background: transparent;
}
.social-left-rail::-webkit-scrollbar-thumb {
  background: rgba(92, 200, 255, 0.25);
  border-radius: var(--radius-tech);
}

.social-right-rail {
  position: sticky;
  top: 72px;
  height: calc(100vh - 88px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 200, 255, 0.25) transparent;
}
.social-right-rail::-webkit-scrollbar {
  width: 4px;
}
.social-right-rail::-webkit-scrollbar-track {
  background: transparent;
}
.social-right-rail::-webkit-scrollbar-thumb {
  background: rgba(92, 200, 255, 0.25);
  border-radius: var(--radius-tech);
}

.social-center-feed {
  min-width: 0;
  width: 100%;
}

/* Feed Streams */
.posts-stream-list {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.posts-stream-grid {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  align-items: flex-start !important;
  width: 100% !important;
}
.masonry-column {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.posts-stream-compact {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

#posts-container[hidden],
#posts-container.stream-hidden,
#posts-container[style*="display: none"],
.stream-hidden {
  display: none !important;
}

/* Responsive Rules */
@media (min-width: 1024px) and (max-width: 1279px) {
  .three-column-layout {
    grid-template-columns: 64px minmax(0, 1fr) 320px;
    gap: 16px;
  }
  .social-left-rail .sidebar-nav-text,
  .social-left-rail .sidebar-nav-heading span:not(.rail-icon-only),
  .social-left-rail .sidebar-nav-desc,
  .social-left-rail .sidebar-expanded-text {
    display: none !important;
  }
  .social-left-rail .sidebar-nav-item a {
    justify-content: center;
    padding: 10px 0;
    position: relative;
  }
  .social-left-rail .sidebar-nav-box {
    padding: 10px 4px;
  }
  .social-left-rail .sidebar-nav-item a:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: #060c18;
    border: var(--border-hairline);
    color: #fff;
    padding: 4px 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    white-space: nowrap;
    border-radius: var(--radius-tech);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .three-column-layout {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }
  .social-right-rail {
    position: static;
    height: auto;
    overflow: visible;
    grid-column: 1 / -1;
    margin-top: 32px;
  }
  .social-left-rail .sidebar-nav-text,
  .social-left-rail .sidebar-nav-heading span:not(.rail-icon-only),
  .social-left-rail .sidebar-nav-desc,
  .social-left-rail .sidebar-expanded-text {
    display: none !important;
  }
  .social-left-rail .sidebar-nav-item a {
    justify-content: center;
    padding: 10px 0;
    position: relative;
  }
  .social-left-rail .sidebar-nav-box {
    padding: 10px 4px;
  }
}

@media (max-width: 767px) {
  .three-column-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .social-left-rail {
    display: none;
  }
  .social-right-rail {
    position: static;
    height: auto;
    overflow: visible;
    width: 100%;
    margin-top: 24px;
  }
}

/* Sidebar navigation */
.sidebar-nav-box {
  background: var(--bg-card);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  padding: 16px;
  backdrop-filter: blur(12px);
  margin-bottom: 20px;
}

.sidebar-nav-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-mono);
  margin-bottom: 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.sidebar-nav-list:last-child {
  margin-bottom: 0;
}

.sidebar-nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border-radius: var(--radius-tech);
  transition: all 0.15s ease;
}

.sidebar-nav-item a:hover {
  color: #fff;
  background: rgba(92, 200, 255, 0.08);
}

.sidebar-nav-item a.active {
  color: var(--accent-cyan);
  background: rgba(92, 200, 255, 0.12);
  border-left: 2px solid var(--accent-cyan);
  font-weight: 600;
}

/* Agency brand badges */
.agency-initials-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-tech);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.agency-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  text-decoration: none;
  transition: border-color 0.15s;
}

.agency-badge-pill:hover {
  border-color: var(--accent-cyan);
}

.agency-label-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.btn-follow-pill {
  background: transparent;
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-follow-pill:hover {
  background: rgba(92, 200, 255, 0.15);
  border-color: var(--accent-cyan);
}

.btn-follow-pill.following {
  background: rgba(92, 200, 255, 0.1);
  color: var(--text-muted);
  border-color: rgba(92, 200, 255, 0.2);
}

.btn-post-menu {
  background: transparent;
  border: none;
  color: var(--text-mono);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-tech);
}

.btn-post-menu:hover {
  color: #fff;
}

/* Post Card Header Row Fixes */
.post-header-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.post-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.author-name-link {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 140px !important;
  min-width: 0 !important;
  flex-shrink: 1 !important;
}

.post-header-divider {
  color: var(--text-mono);
  font-size: 10px;
  flex-shrink: 0;
}

.post-time {
  flex-shrink: 0;
  white-space: nowrap;
}

.post-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.topic-tag-pill {
  font-size: 9px;
  background: rgba(92, 200, 255, 0.08);
  border: 1px solid rgba(92, 200, 255, 0.2);
  padding: 3px 6px;
  border-radius: var(--radius-tech);
  white-space: nowrap;
}

/* Consistent Aspect-Ratio Image Frame with Blurred Backdrop */
.post-image-frame {
  position: relative;
  width: 100%;
  max-height: 520px;
  height: clamp(240px, 42vw, 520px);
  overflow: hidden;
  border-radius: var(--radius-tech);
  border: var(--border-hairline);
  margin-bottom: 14px;
  background: #010307;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-image-backdrop {
  position: absolute;
  top: -24px;
  left: -24px;
  right: -24px;
  bottom: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.32);
  transform: scale(1.15);
  pointer-events: none;
  z-index: 1;
}

.post-image-main {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 520px;
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Agency Rows (Right Rail & Sidebar) */
.agency-widget-row {
  min-height: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: var(--border-subtle);
  gap: 10px;
  box-sizing: border-box;
}

.agency-widget-row:last-child {
  border-bottom: none;
}

.agency-widget-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.agency-widget-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.agency-widget-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agency-widget-name:hover {
  color: var(--accent-cyan);
}

.agency-widget-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mono);
  white-space: nowrap;
}

/* Upcoming Launches Widget */
.launch-widget-item {
  padding: 12px 14px;
  border-bottom: var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.launch-widget-item:last-child {
  border-bottom: none;
}

.launch-title-wrap {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  word-break: break-word;
  white-space: normal;
}

.launch-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mono);
  flex-wrap: wrap;
}

.launch-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.launch-status-chip {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  border-radius: var(--radius-tech);
  background: rgba(92, 200, 255, 0.1);
  border: 1px solid rgba(92, 200, 255, 0.3);
  color: var(--accent-cyan);
  white-space: nowrap;
}

.launch-status-chip.go {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-success);
}

.launch-live-timer {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Collapsible Widgets */
.widget-collapse-btn {
  background: transparent;
  border: var(--border-hairline);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: var(--radius-tech);
  cursor: pointer;
  transition: all 0.15s;
}

.widget-collapse-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.collapsible-widget-body.collapsed {
  display: none !important;
}

.widget-count-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-mono);
}

/* Compact Post Item */
.compact-post-item {
  background: var(--bg-card);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s;
}

.compact-post-item:hover {
  border-color: rgba(92, 200, 255, 0.35);
}

.compact-post-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.compact-post-title {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-post-title:hover {
  color: var(--accent-cyan);
}

.compact-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mono);
  flex-shrink: 0;
  white-space: nowrap;
}

.official-feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 2px 6px;
  border-radius: var(--radius-tech);
  text-transform: uppercase;
}

.agency-banner-strip {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-tech) var(--radius-tech) 0 0;
  border-bottom: var(--border-hairline);
}

/* ==============================================================================
   COMPOSER MODAL & STANDALONE COMPONENT
   ============================================================================== */
.composer-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.composer-modal-window {
  background: rgba(6, 12, 24, 0.96);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 1px rgba(92, 200, 255, 0.3);
  overflow: hidden;
  position: relative;
  outline: none;
}

.composer-standalone-wrapper {
  background: rgba(6, 12, 24, 0.94);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.composer-standalone-wrapper .composer-modal-window {
  max-height: none;
  box-shadow: none;
  border: none;
}

.composer-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: var(--border-subtle);
  background: rgba(3, 7, 16, 0.7);
  flex-shrink: 0;
}

.composer-header-left {
  display: flex;
  flex-direction: column;
}

.composer-title-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  margin-top: 2px;
}

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

.composer-btn-cancel-header {
  display: none;
}

.composer-close-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-tech);
  transition: color 0.15s;
}

.composer-close-icon-btn:hover {
  color: #fff;
}

/* Draft Banner */
.composer-draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(92, 200, 255, 0.08);
  border-bottom: var(--border-hairline);
  flex-shrink: 0;
}

/* Body Scroll */
.composer-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.composer-channel-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

/* Custom Agency Picker */
.custom-agency-picker {
  position: relative;
  width: 100%;
}

.agency-picker-trigger {
  background: var(--bg-input);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: border-color 0.2s ease;
  user-select: none;
}

.agency-picker-trigger:hover,
.agency-picker-trigger:focus {
  border-color: var(--accent-cyan);
  outline: none;
  color: #fff;
}

.agency-picker-arrow {
  color: var(--text-mono);
  font-size: 9px;
  margin-left: 8px;
}

.agency-picker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(6, 14, 28, 0.98);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  z-index: 100;
  display: none;
  flex-direction: column;
  max-height: 260px;
  backdrop-filter: blur(20px);
}

.agency-picker-dropdown.open {
  display: flex;
}

.agency-picker-search-wrap {
  padding: 8px;
  border-bottom: var(--border-subtle);
  background: rgba(2, 4, 10, 0.5);
}

.agency-picker-search {
  width: 100%;
  background: rgba(3, 7, 16, 0.9);
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  outline: none;
}

.agency-picker-search:focus {
  border-color: var(--accent-cyan);
}

.agency-picker-list {
  list-style: none;
  overflow-y: auto;
  max-height: 190px;
  padding: 4px 0;
  margin: 0;
}

.agency-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.agency-picker-item:hover {
  background: rgba(92, 200, 255, 0.1);
}

.agency-picker-item-meta {
  display: flex;
  flex-direction: column;
}

.agency-item-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.agency-item-country {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mono);
}

/* Tabs Nav */
.composer-tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: var(--border-hairline);
  padding-bottom: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.composer-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-tech);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.composer-tab-btn:hover {
  color: #fff;
  border-color: rgba(92, 200, 255, 0.2);
}

.composer-tab-btn.active {
  color: var(--accent-cyan);
  background: rgba(92, 200, 255, 0.12);
  border-color: var(--accent-cyan);
  font-weight: 600;
}

/* Field Header & Char Counters */
.composer-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.composer-char-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mono);
}

.composer-textarea {
  min-height: 90px;
  resize: vertical;
}

/* Drag & Drop Zone */
.composer-dropzone {
  border: 1px dashed rgba(92, 200, 255, 0.35);
  border-radius: var(--radius-tech);
  padding: 24px 16px;
  text-align: center;
  background: rgba(4, 9, 20, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.composer-dropzone:hover,
.composer-dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(92, 200, 255, 0.08);
}

.dropzone-primary-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.dropzone-subtext {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Image Previews Grid */
.composer-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.composer-image-preview-card {
  position: relative;
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  overflow: hidden;
  background: #010307;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
}

.composer-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composer-thumb-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(2, 4, 10, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  border-radius: var(--radius-tech);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.15s;
}

.composer-thumb-remove-btn:hover {
  background: var(--accent-alert);
  color: #fff;
}

.composer-thumb-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(2, 4, 10, 0.85);
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
}

.composer-thumb-name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

/* Footer Bar */
.composer-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: var(--border-subtle);
  background: rgba(3, 7, 16, 0.85);
  flex-shrink: 0;
  gap: 12px;
}

.composer-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==============================================================================
   MOBILE FLOATING ACTION BUTTON (FAB) & BREAKPOINTS
   ============================================================================== */
.fab-create-post {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  border-radius: var(--radius-tech);
  background: rgba(6, 14, 28, 0.94);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(92, 200, 255, 0.3);
  z-index: 850;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fab-create-post:hover {
  background: var(--accent-cyan);
  color: #02040a;
}

.fab-create-post.fab-hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

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

@media (max-width: 1024px) {
  .nav-search-wrap {
    max-width: 200px;
    min-width: 110px;
    flex-shrink: 1;
  }
  .btn-topbar-post {
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .fab-create-post {
    display: flex;
  }

  /* Ensure the feed container has 140px bottom padding so last card is never hidden behind FAB */
  .social-center-feed,
  #posts-container,
  main.main-container {
    padding-bottom: 140px !important;
  }

  .nav-search-wrap {
    display: none;
  }

  .shared-navbar {
    padding: 0 16px;
  }

  .nav-links-menu {
    display: none;
  }

  /* Full screen sheet on mobile */
  .composer-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .composer-modal-window {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .composer-header-bar {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .composer-btn-cancel-header {
    display: inline-flex !important;
  }

  .composer-footer-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }

  .composer-channel-row {
    grid-template-columns: 1fr;
  }

  .composer-btn-cancel-footer {
    display: none;
  }
}

/* ==============================================================================
   MASONRY GRID & NORMALIZED POST CARDS (PROBLEM 1 & 2)
   ============================================================================== */

/* Highlight Animation for newly inserted dispatches */
@keyframes cyanBorderPulse {
  0% {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 1px var(--accent-cyan), 0 0 20px rgba(92, 200, 255, 0.45);
  }
  50% {
    border-color: rgba(92, 200, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(92, 200, 255, 0.65), 0 0 28px rgba(92, 200, 255, 0.3);
  }
  100% {
    border-color: rgba(92, 200, 255, 0.15);
    box-shadow: none;
  }
}

.post-card-highlight {
  animation: cyanBorderPulse 2s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .post-card-highlight {
    animation: none !important;
    border-color: var(--accent-cyan) !important;
  }
}

/* Sticky Themed Pill for New Dispatches */
.new-dispatches-pill-container {
  position: sticky;
  top: 96px;
  z-index: 28;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  pointer-events: none;
  animation: fadeIn 0.2s ease;
}

.btn-new-dispatches {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #030816;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  border-radius: var(--radius-tech);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 16px rgba(92, 200, 255, 0.3);
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}

.btn-new-dispatches:hover {
  background: rgba(92, 200, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 22px rgba(92, 200, 255, 0.45);
  transform: translateY(-1px);
}

.pill-radar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: radarBlink 1.4s infinite ease-in-out;
}

@keyframes radarBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.pill-arrow-icon {
  font-size: 12px;
}

/* Base Post Card & Grid rules handled canonically by /css/postcard.css */

/* Image Skeleton & Blur Placeholder */
.post-image-skeleton {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.9);
  z-index: 3;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.skeleton-shimmer {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(92, 200, 255, 0.09) 50%, transparent 100%);
  animation: shimmerMove 1.8s infinite;
}

@keyframes shimmerMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.post-image-main {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-image-main.loaded {
  opacity: 1 !important;
}

/* Card Header Structure & Grid Unification */
.post-header-line {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
}

.post-header-top-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.post-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.author-name-link {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  position: relative !important;
}

/* Tooltip on hover showing full @nickname */
.author-name-link[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #030816;
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
  border-radius: var(--radius-tech);
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

/* In GRID view: Row 1 stays clean; Row 2 right aligned topic tag + menu */
.posts-stream-grid .post-header-right-list {
  display: none !important;
}

.posts-stream-grid .post-header-grid-row-2 {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: 100% !important;
}

/* In LIST view: Row 1 has right items, Row 2 hidden */
.posts-stream-list .post-header-right-list {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.posts-stream-list .post-header-grid-row-2 {
  display: none !important;
}

/* Context menu */
.post-context-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: #030816;
  border: var(--border-hairline);
  border-radius: var(--radius-tech);
  z-index: 40;
  width: 170px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
}

.context-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border-bottom: var(--border-subtle);
}

.context-menu-item:last-child {
  border-bottom: none;
}

.context-menu-item:hover {
  background: rgba(92, 200, 255, 0.08);
  color: var(--accent-cyan);
}

/* Themed Image Lightbox */
.nova-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 10, 0.94);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.18s ease;
}

.nova-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #030712;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-tech);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(92, 200, 255, 0.2);
  overflow: hidden;
}

.nova-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.nova-lightbox-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.nova-lightbox-close {
  background: transparent;
  border: 1px solid rgba(92, 200, 255, 0.25);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: var(--radius-tech);
}

.nova-lightbox-close:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.nova-lightbox-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: calc(85vh - 80px);
  background: #010206;
}

.nova-lightbox-image-wrap img {
  max-width: 100%;
  max-height: calc(85vh - 80px);
  object-fit: contain;
  display: block;
}

.nova-lightbox-caption {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mono);
  border-top: var(--border-subtle);
}


