/* =====================================================
   NANOVERSE COMMUNITY NEXUS
   Hybridized styles from social.css overlay + standalone page
   ===================================================== */
:root {
  --nv-bg-deep: #04060c;
  --nv-bg-mid: #090c16;
  --nv-panel: rgba(12,14,26,0.92);
  --nv-panel-hover: rgba(18,20,36,0.96);
  --nv-glass: rgba(255,255,255,0.04);
  --nv-border: rgba(255,255,255,0.08);
  --nv-border-strong: rgba(255,255,255,0.14);
  --nv-accent: #7c5cff;
  --nv-accent-soft: rgba(124,92,255,0.35);
  --nv-accent-2: #29b6f6;
  --nv-organic: #00e5a0;
  --nv-text: #e8eef8;
  --nv-muted: rgba(232,238,248,0.62);
  --nv-danger: #ff6b6b;
  --nv-radius: 18px;
  --nv-card-radius: 14px;
  --nv-shadow: 0 22px 50px rgba(0,0,0,0.45);
  --nv-transition: cubic-bezier(0.23,1,0.32,1);
}

body.theme-alt {
  --nv-bg-deep: #f4f6fe;
  --nv-bg-mid: #e5e9fb;
  --nv-panel: rgba(255,255,255,0.92);
  --nv-panel-hover: rgba(255,255,255,0.98);
  --nv-glass: rgba(19,26,55,0.06);
  --nv-border: rgba(7,10,20,0.12);
  --nv-border-strong: rgba(7,10,20,0.28);
  --nv-accent: #5c6bff;
  --nv-accent-soft: rgba(92,107,255,0.35);
  --nv-accent-2: #1f9dd9;
  --nv-organic: #0dc98b;
  --nv-text: #141732;
  --nv-muted: rgba(20,23,50,0.65);
  --nv-danger: #ff4d6d;
  --nv-shadow: 0 20px 45px rgba(15,20,50,0.22);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--nv-bg-deep);
  color: var(--nv-text);
  min-height: 100vh;
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

#orb-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(124,92,255,0.22), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(41,182,246,0.15), transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0,229,160,0.18), transparent 45%);
  animation: orbPulse 20s ease-in-out infinite alternate;
}
body.theme-alt #orb-canvas {
  background:
    radial-gradient(circle at 20% 25%, rgba(92,107,255,0.28), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(31,157,217,0.18), transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(13,201,139,0.25), transparent 45%);
}
@keyframes orbPulse {
  from { filter: blur(72px); opacity: 0.8; }
  to { filter: blur(95px); opacity: 1; }
}

.glass-panel {
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-card-radius);
  box-shadow: var(--nv-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.3s var(--nv-transition), transform 0.3s var(--nv-transition);
}
.glass-panel:hover { border-color: var(--nv-border-strong); transform: translateY(-2px); }

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

.community-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 53px;
  background: var(--nv-bg-deep);
  border-bottom: 1px solid var(--nv-border);
}
.logo-link { text-decoration: none; }
.logo-text { font-family: 'Orbitron', sans-serif; letter-spacing: 0.2em; color: var(--nv-text); font-size: 0.8rem; }
.header-nav { display: flex; gap: 8px; }
.nav-link { 
  color: var(--nv-muted); 
  text-decoration: none; 
  font-size: 0.9rem; 
  padding: 8px 12px; 
  border-radius: 999px; 
  transition: background 0.15s, color 0.15s; 
}
.nav-link:hover { background: rgba(255,255,255,0.06); color: var(--nv-text); }
.header-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--nv-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.06); }

.community-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 640px) 300px;
  column-gap: 56px;
  padding: 40px clamp(32px, 6vw, 72px) 60px;
  flex: 1;
  max-width: 1500px;
  margin: 0 auto;
}

.sidebar-left,
.sidebar-right {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 20px 18px;
  background: rgba(4,6,12,0.75);
  border: 1px solid var(--nv-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
  isolation: isolate;
  position: sticky;
  top: 80px;
  overflow: visible;
}
.sidebar-left { gap: 10px; width: 90px; }
.sidebar-right { gap: 18px; width: 300px; }

.profile-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--nv-text);
  cursor: pointer;
  padding: 12px 12px 16px;
}

.profile-bar-banner {
  position: relative;
  border-radius: 20px;
  overflow: visible; /* allow avatar to overflow */
  height: 120px;
  min-height: 120px;
  background: linear-gradient(120deg, rgba(124,92,255,0.35), rgba(18,194,233,0.3));
  cursor: pointer;
  transition: transform 0.3s var(--nv-transition), box-shadow 0.3s var(--nv-transition);
}

.profile-bar-banner:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.25);
}

.profile-bar-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 20px;
  overflow: hidden; /* clip image to border-radius */
}

/* Dynamic Color Animation for Empty Banner */
.profile-bar-banner.no-banner-image {
  background: linear-gradient(
    -45deg,
    #7c5cff,
    #12c2e9,
    #c471ed,
    #00e5a0,
    #7c5cff
  );
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  position: relative;
  overflow: visible;
  border: none;
}

.profile-bar-banner.no-banner-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(124, 92, 255, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(18, 194, 233, 0.45) 0%, transparent 50%);
  animation: orbPulse 15s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

.profile-bar-banner.no-banner-image::after {
  display: none;
}

@keyframes bannerGradientFlow {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

@keyframes bannerOrbFloat {
  0%, 100% { 
    transform: translateY(0) scale(1); 
    opacity: 0.6; 
  }
  33% { 
    transform: translateY(-5px) scale(1.05); 
    opacity: 0.8; 
  }
  66% { 
    transform: translateY(3px) scale(0.98); 
    opacity: 0.7; 
  }
}

@keyframes bannerIconPulse {
  0%, 100% { 
    opacity: 0.5; 
    transform: translate(-50%, -50%) scale(1); 
  }
  50% { 
    opacity: 0.8; 
    transform: translate(-50%, -50%) scale(1.1); 
  }
}

.profile-bar-avatar {
  position: absolute;
  left: 16px;
  bottom: -42px; /* overlap the banner edge, similar to main profile */
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: rgba(7,11,25,0.9);
  border: 3px solid var(--nv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--nv-text);
  overflow: hidden;
  z-index: 5;
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

.profile-bar-avatar img,
.community-profile-avatar .avatar-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-bar-text {
  margin-top: 40px; /* leave space for avatar overlap */
}

.profile-bar-text h4 {
  margin: 0;
  font-size: 1.1rem;
}

.profile-handle {
  display: block;
  color: var(--nv-muted);
  font-size: 0.9rem;
}

.profile-bar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
}

.profile-bar-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  min-width: 0; /* allow truncation if space is tight */
  text-align: center;
}

.profile-bar-stats .stat span {
  font-size: 1rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.profile-bar-stats .stat label {
  font-size: 0.65rem;
  color: var(--nv-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Ensure compact layout for narrow sidebars */
@media (max-width: 360px) {
  .sidebar-right { width: 260px; }
  .profile-bar-text { margin-top: 36px; }
  .profile-bar-stats .stat span { font-size: 0.95rem; }
  .profile-bar-stats .stat { padding: 6px 4px; }
}

.sidebar-left::after,
.sidebar-right::after {
  content: '';
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -60px;
  height: 140px;
  background: radial-gradient(circle, rgba(124,92,255,0.35), transparent 70%);
  filter: blur(28px);
  opacity: 0.45;
  animation: floatGlow 7s ease-in-out infinite;
  z-index: -1;
}
.community-profile-view {
  width: 100%;
  max-width: 900px;
  min-width: min(900px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
}

.profile-view-toolbar {
  display: flex;
  justify-content: flex-start;
}

.profile-view-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--nv-border);
  background: rgba(4,6,12,0.75);
  color: var(--nv-text);
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.profile-view-back i {
  font-size: 0.95rem;
}

.community-profile-card {
  width: 100%;
  min-width: 100%;
  border-radius: 28px;
  background: rgba(7,11,25,0.75);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  position: relative;
  overflow: visible;
}

/* Disable hover transform for profile card */
.community-profile-card:hover {
  transform: none;
  border-color: rgba(255,255,255,0.06);
}

/* Banner inherits curved top corners from card */
.community-profile-card > .community-profile-banner {
  border-radius: 28px 28px 0 0;
  overflow: visible;
}

.community-profile-card > .community-profile-body {
  background: rgba(7,11,25,0.95);
  border-radius: 0 0 28px 28px;
}

.community-profile-banner {
  position: relative;
  height: 220px;
  background: linear-gradient(120deg, rgba(124,92,255,0.45), rgba(18,194,233,0.35));
  cursor: pointer;
  overflow: visible;
  border-radius: 28px 28px 0 0;
}

.community-profile-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.community-profile-banner:hover::after {
  opacity: 1;
}

/* =============================================================================
   MINIMALIST EDIT BANNER BUTTON
   Professional glassmorphic icon with organic animations - Grey/Silver only
   ============================================================================= */

.community-profile-banner .banner-edit-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  
  /* No container - transparent background */
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  
  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  /* Smooth transitions */
  transition: 
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  z-index: 5;
}

/* Show on hover */
.community-profile-banner:hover .banner-edit-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hide banner overlay when hovering on avatar (prevent overlap) */
.community-profile-banner:has(.community-profile-avatar:hover) .banner-edit-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Glassmorphic Icon Container */
.banner-edit-icon {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  
  /* Glassmorphism - Grey/Silver tones */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(200, 200, 210, 0.08) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  
  /* Subtle silver border */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
  
  /* Organic floating animation */
  animation: iconFloat 5s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iconFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-4px) rotate(0.5deg);
  }
  50% { 
    transform: translateY(-6px) rotate(0deg);
  }
  75% {
    transform: translateY(-3px) rotate(-0.5deg);
  }
}

/* Icon styling */
.banner-edit-icon i {
  font-size: 1.5rem;
  color: rgba(220, 220, 230, 0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hover state - icon container */
.community-profile-banner .banner-edit-overlay:hover .banner-edit-icon {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(210, 210, 220, 0.12) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(255, 255, 255, 0.05);
}

/* Hover state - icon */
.community-profile-banner .banner-edit-overlay:hover .banner-edit-icon i {
  color: rgba(255, 255, 255, 0.95);
  transform: scale(1.08);
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
}

/* Text styling */
.banner-edit-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(200, 200, 210, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Subtle text animation */
  animation: textBreath 4s ease-in-out infinite;
}

@keyframes textBreath {
  0%, 100% { 
    opacity: 0.85;
    letter-spacing: 0.18em;
  }
  50% { 
    opacity: 0.95;
    letter-spacing: 0.2em;
  }
}

/* Hover state - text */
.community-profile-banner .banner-edit-overlay:hover .banner-edit-text {
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.22em;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 255, 255, 0.1);
}

/* Theme alt mode - light theme adjustments */
body.theme-alt .banner-edit-icon {
  background: linear-gradient(
    145deg,
    rgba(100, 100, 110, 0.15) 0%,
    rgba(80, 80, 90, 0.1) 50%,
    rgba(100, 100, 110, 0.08) 100%
  );
  border-color: rgba(80, 80, 90, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

body.theme-alt .banner-edit-icon i {
  color: rgba(60, 60, 70, 0.85);
  text-shadow: none;
}

body.theme-alt .banner-edit-text {
  color: rgba(60, 60, 70, 0.8);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
}

body.theme-alt .community-profile-banner .banner-edit-overlay:hover .banner-edit-icon {
  background: linear-gradient(
    145deg,
    rgba(100, 100, 110, 0.22) 0%,
    rgba(80, 80, 90, 0.15) 50%,
    rgba(100, 100, 110, 0.12) 100%
  );
}

body.theme-alt .community-profile-banner .banner-edit-overlay:hover .banner-edit-icon i {
  color: rgba(40, 40, 50, 0.95);
}

body.theme-alt .community-profile-banner .banner-edit-overlay:hover .banner-edit-text {
  color: rgba(40, 40, 50, 0.95);
}

.community-profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-banner-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
}

.profile-media-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(7,11,25,0.65);
  color: var(--nv-text);
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}

.profile-media-btn.icon-only {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  justify-content: center;
}

.community-profile-avatar {
  position: absolute;
  left: clamp(24px, 8vw, 64px);
  bottom: -54px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  cursor: pointer;
  z-index: 10;
}

.community-profile-avatar .avatar-visual {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: rgba(7,11,25,0.9);
  border: 2px solid var(--nv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--nv-text);
  overflow: visible;
}

/* Clip avatar image but not overlay */
.community-profile-avatar .avatar-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

.community-profile-body {
  padding: 80px clamp(24px, 6vw, 64px) 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.community-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.community-profile-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.profile-panel-stats {
  display: flex;
  gap: 18px;
}

.profile-panel-stats .stat {
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}

.profile-panel-stats .stat small {
  text-transform: uppercase;
  color: var(--nv-muted);
  letter-spacing: 0.08em;
}

.profile-panel-stats .stat strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 4px;
}

.community-profile-about .about-display {
  position: relative;
  width: 100%;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--nv-border);
  background: radial-gradient(circle at top left, rgba(124,92,255,0.14), transparent 55%), rgba(7,11,25,0.75);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.community-profile-about .about-display::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(124,92,255,0.1), rgba(41,182,246,0.1));
  opacity: 0.25;
  pointer-events: none;
}

.community-profile-about .about-display p {
  position: relative;
  margin: 0;
  color: var(--nv-text);
  line-height: 1.7;
}

.about-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--nv-border);
  border-radius: 999px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.08);
  color: var(--nv-text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--nv-transition), border-color 0.2s var(--nv-transition);
}

.profile-edit-btn:hover {
  border-color: var(--nv-accent);
  transform: translateY(-1px);
}

.profile-edit-btn i {
  font-size: 0.95rem;
}

.about-editor-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--nv-transition), visibility 0s linear 0.3s;
  z-index: 40;
}

.about-editor-modal.visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.about-editor-backdrop {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(4,6,12,0.75);
}

.about-editor-panel {
  position: relative;
  width: min(540px, 100%);
  border-radius: 28px;
  padding: 28px;
  z-index: 1;
}

.about-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.about-editor-header .editor-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--nv-muted);
}

.about-editor-header h3 {
  margin: 4px 0 0;
}

.about-editor-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-editor-body textarea {
  width: 100%;
  min-height: 160px;
  border-radius: 18px;
  border: 1px solid var(--nv-border);
  background: rgba(7,11,25,0.8);
  color: var(--nv-text);
  padding: 18px;
  resize: none;
  font-family: inherit;
  font-size: 1rem;
}

.about-editor-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-editor-meta .char-count {
  font-size: 0.85rem;
  color: var(--nv-muted);
}

.about-editor-meta .profile-save-btn {
  min-width: 140px;
}

body.modal-open {
  overflow: hidden;
}

.profile-save-btn {
  border: none;
  border-radius: 999px;
  background: var(--nv-text);
  color: var(--nv-bg-deep);
  padding: 10px 28px;
  font-weight: 600;
  cursor: pointer;
}

.profile-save-btn.loading {
  opacity: 0.65;
  pointer-events: none;
}

.profile-status {
  font-size: 0.85rem;
  color: var(--nv-muted);
}

.profile-status[data-state="error"] {
  color: #ff8a80;
}

.profile-status[data-state="success"] {
  color: var(--nv-accent);
}

.profile-works-filters {
  display: flex;
  border-bottom: 1px solid var(--nv-border);
}

.profile-works-chip {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--nv-muted);
  padding: 10px 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.profile-works-chip.active {
  color: var(--nv-accent);
  border-bottom: 2px solid var(--nv-accent);
}

.profile-works-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.profile-work-card {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(5,8,18,0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.profile-work-media {
  position: relative;
  padding-top: 56%;
  background: rgba(255,255,255,0.04);
}

.profile-work-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-work-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: linear-gradient(120deg, rgba(124,92,255,0.35), rgba(18,194,233,0.3));
  color: rgba(255,255,255,0.85);
}

.profile-work-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7,11,25,0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-work-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-work-body h4 {
  margin: 0;
  font-size: 1rem;
}

.profile-work-body p {
  margin: 0;
  color: var(--nv-muted);
  font-size: 0.9rem;
}

.profile-work-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--nv-muted);
}

/* =============================================================================
   PROFILE BODY - CLEAN MINIMAL DESIGN
   ============================================================================= */

/* Profile Body Container */
.community-profile-body {
  padding: 70px clamp(20px, 5vw, 48px) 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

/* Profile Header */
.community-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.community-profile-header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.community-profile-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--nv-text);
  letter-spacing: 0.01em;
}

.community-profile-header .profile-handle {
  font-size: 0.9rem;
  color: var(--nv-muted);
}

/* Stats Cards - Minimal */
.profile-panel-stats {
  display: flex;
  gap: 10px;
}

.profile-panel-stats .stat {
  min-width: 90px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.2s ease;
}

.profile-panel-stats .stat:hover {
  border-color: rgba(124,92,255,0.2);
}

.profile-panel-stats .stat small {
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  color: var(--nv-muted);
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-panel-stats .stat small i {
  font-size: 0.7rem;
  color: var(--nv-accent);
  opacity: 0.6;
}

.profile-panel-stats .stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nv-text);
}

/* About Section */
.community-profile-about .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.community-profile-about .section-title h3 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nv-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-profile-about .section-title h3 i {
  color: var(--nv-accent);
  opacity: 0.7;
}

.community-profile-about .about-display {
  width: 100%;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.community-profile-about .about-display p {
  margin: 0;
  color: var(--nv-text);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* Edit Story Button */
.about-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.03);
  color: var(--nv-text);
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-edit-btn:hover {
  border-color: rgba(124,92,255,0.3);
  background: rgba(124,92,255,0.08);
}

.profile-edit-btn i {
  font-size: 0.8rem;
  color: var(--nv-accent);
  opacity: 0.8;
}

/* Works Section */
.community-profile-works {
  margin-top: 8px;
}

/* Works Section Title */
.works-section-title {
  margin-bottom: 12px;
}

.works-section-title h3 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nv-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.works-section-title h3 i {
  color: var(--nv-accent);
  opacity: 0.7;
}

/* Works Filter Chips */
.profile-works-filters {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-works-filters::-webkit-scrollbar {
  display: none;
}

.profile-works-chip {
  flex: 1;
  min-width: max-content;
  border: none;
  background: transparent;
  color: var(--nv-muted);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.profile-works-chip i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.profile-works-chip:hover {
  color: var(--nv-text);
  background: rgba(255,255,255,0.03);
}

.profile-works-chip.active {
  color: var(--nv-text);
  background: rgba(124,92,255,0.12);
}

.profile-works-chip.active i {
  opacity: 1;
  color: var(--nv-accent);
}

/* Works Grid - Curved cards with spacing matching other user profile */
.profile-works-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 100%;
  position: relative;
  padding: 0;
}

/* Profile masonry cards - curved corners with spacing */
.profile-masonry-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--nv-bg-mid);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: nvMasonryFadeIn 0.3s ease-out forwards;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: all 0.3s ease;
}

.profile-masonry-card--tall {
  aspect-ratio: 2 / 5;
  grid-row: span 2;
}

.profile-masonry-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  border-color: rgba(124,92,255,0.25);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.profile-masonry-card:hover .profile-masonry-media {
  transform: scale(1.05);
}

.profile-masonry-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--nv-bg-mid);
  transition: transform 0.3s var(--nv-transition);
}

.profile-masonry-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, 
    rgba(124, 92, 255, 0.15) 0%, 
    rgba(41, 182, 246, 0.1) 50%,
    rgba(0, 229, 160, 0.08) 100%);
}

.profile-masonry-placeholder-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.4);
}

.profile-masonry-placeholder-icon i {
  font-size: 16px;
  color: #fff;
}

.profile-masonry-placeholder-label {
  font-size: 0.65rem;
  color: var(--nv-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Overlay with likes/stats on hover */
.profile-masonry-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.profile-masonry-card:hover .profile-masonry-overlay {
  opacity: 1;
  visibility: visible;
}

.profile-masonry-card.is-touched .profile-masonry-overlay {
  opacity: 1;
  visibility: visible;
}

.profile-masonry-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.profile-masonry-stat i {
  font-size: 0.9rem;
}

.profile-masonry-stat--likes i {
  color: #ff6b6b;
}

.profile-masonry-stat--remixes i {
  color: var(--nv-organic);
}

/* Category badge on profile masonry cards */
.profile-masonry-category {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.profile-masonry-category i {
  font-size: 10px;
  color: #fff;
}

.profile-masonry-card:hover .profile-masonry-category {
  opacity: 1;
}

/* Video indicator for profile masonry */
.profile-masonry-video-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-masonry-video-indicator i {
  font-size: 12px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Video element in profile masonry cards */
.profile-masonry-card video.profile-masonry-media {
  pointer-events: none;
}

/* Enable animation on hover for profile masonry cards with visualizers */
.profile-masonry-card:hover .nv-music-bar,
.profile-masonry-card:hover .nv-podcast-ring {
  animation-play-state: running;
}

/* Reduce motion for accessibility - profile masonry */
@media (prefers-reduced-motion: reduce) {
  .profile-masonry-card {
    animation: none;
  }
}

/* Placeholder cells to maintain grid structure */
.profile-work-placeholder-cell {
  aspect-ratio: 4 / 5;
  width: 100%;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 16px;
}

.profile-work-placeholder-cell i {
  color: rgba(124,92,255,0.15);
  font-size: 1.2rem;
}

/* Empty state overlay - positioned over the grid without disrupting layout */
.profile-works-empty-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  text-align: center;
  background: rgba(7,11,25,0.85);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 5;
  pointer-events: none;
}

.profile-works-empty-overlay i {
  font-size: 2rem;
  color: rgba(124,92,255,0.4);
  margin-bottom: 10px;
}

.profile-works-empty-overlay p {
  color: var(--nv-muted);
  font-size: 0.85rem;
  margin: 0;
  white-space: nowrap;
}

/* Work Cards - Clean Minimal Design */
.profile-work-card {
  aspect-ratio: 4/5;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,14,28,0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: profileCardFadeIn 0.4s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes profileCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,255,0.25);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.profile-work-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.profile-work-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-work-card:hover .profile-work-media img {
  transform: scale(1.05);
}

.profile-work-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, rgba(124,92,255,0.2), rgba(41,182,246,0.15));
  color: rgba(255,255,255,0.8);
}

.profile-work-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(7,11,25,0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nv-accent);
  z-index: 2;
}

.profile-work-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  overflow: hidden;
}

.profile-work-body h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nv-text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-work-body p {
  margin: 0;
  color: var(--nv-muted);
  font-size: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-work-meta {
  display: flex;
  gap: 12px;
  font-size: 0.7rem;
  color: var(--nv-muted);
  margin-top: auto;
}

.profile-work-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.profile-work-card:hover .profile-work-meta span {
  color: var(--nv-accent);
}

/* Works Section Title */
.works-section-title {
  margin-bottom: 16px;
}

.works-section-title h3 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--nv-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.works-section-title h3::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--nv-accent);
  border-radius: 2px;
}

.works-section-title h3 i {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Stats with Icons */
.profile-panel-stats .stat small {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  color: var(--nv-muted);
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 6px;
  position: relative;
}

.profile-panel-stats .stat small i {
  font-size: 0.75rem;
  color: var(--nv-accent);
  opacity: 0.7;
}

/* Section Title with Icons */
.community-profile-about .section-title h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-profile-about .section-title h3 i {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Filter Chips with Icons */
.profile-works-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-works-chip i {
  font-size: 0.75rem;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-works-chip.active i {
  opacity: 1;
  transform: scale(1.1);
}

.profile-works-chip:hover i {
  opacity: 1;
}

body.profile-view-active #community-profile-column {
  display: none;
}

body.profile-view-active .community-body {
  grid-template-columns: 96px minmax(0, 1fr);
}

@keyframes floatGlow {
  0% { transform: translateY(0) scale(0.95); opacity: 0.35; }
  50% { transform: translateY(-12px) scale(1.05); opacity: 0.6; }
  100% { transform: translateY(0) scale(0.95); opacity: 0.35; }
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-btn {
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--nv-text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sidebar-btn:hover { background: rgba(255,255,255,0.06); }
.sidebar-btn.active { color: var(--nv-accent); background: rgba(124,92,255,0.1); }
.sidebar-footer { margin-top: auto; font-size: 0.85rem; color: var(--nv-muted); }

.content-area { display: flex; flex-direction: column; gap: 0; padding: 0; }
.tab-content { display: none; flex-direction: column; gap: 0; }
.tab-content.active { display: flex; }

.section-header h2, .section-header h3 { margin: 0; letter-spacing: 0.02em; }
.section-subtitle { display: none; }

/* Pulse Feed */
.composer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--nv-border);
}
.composer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
}
.composer textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--nv-text);
  font-size: 1rem;
  min-height: 70px;
  resize: vertical;
}
.composer-actions { display: flex; flex-direction: column; gap: 10px; }
.attach-btn, .post-btn {
  border-radius: 999px;
  padding: 8px 18px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
.attach-btn {
  background: rgba(255,255,255,0.06);
  color: var(--nv-text);
  border: 1px dashed var(--nv-border);
}
.post-btn { background: var(--nv-text); color: var(--nv-bg-deep); border-radius: 999px; font-weight: 600; }
.post-btn:hover { background: var(--nv-accent); color: #fff; }

.feed-filters { 
  display: flex; 
  gap: 0; 
  border-bottom: 1px solid var(--nv-border);
}
.filter-chip {
  flex: 1;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--nv-muted);
  padding: 16px 20px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.filter-chip:hover { background: rgba(255,255,255,0.03); color: var(--nv-text); }
.filter-chip.active { color: var(--nv-text); border-bottom-color: var(--nv-accent); }

.signal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.signal-card {
  padding: 16px;
  border-radius: var(--nv-card-radius);
  border: 1px solid var(--nv-border);
  background: linear-gradient(160deg, rgba(124,92,255,0.08), rgba(0,0,0,0));
}
.signal-card h4 { margin: 0; font-size: 0.9rem; color: var(--nv-muted); }
.signal-card strong { font-size: 1.6rem; display: block; margin-top: 6px; }
.sparkline { height: 38px; background: rgba(255,255,255,0.05); border-radius: 12px; margin-top: 10px; position: relative; overflow: hidden; }
.sparkline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--nv-accent), var(--nv-organic));
  opacity: 0.35;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { transform: translateX(-50%); } to { transform: translateX(50%); } }

.feed-list { display: flex; flex-direction: column; gap: 18px; }
.post-card {
  padding: 18px;
  border-radius: var(--nv-card-radius);
  border: 1px solid var(--nv-border);
  background: rgba(255,255,255,0.02);
}
.post-header { display: flex; gap: 12px; align-items: center; }
.post-avatar {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.post-body { margin-top: 10px; color: var(--nv-text); }
.post-media { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.post-media img { width: 180px; max-height: 140px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255,255,255,0.08); }
.post-reactions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.reaction-btn {
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding: 6px 14px;
  cursor: pointer;
  transition: transform 0.15s;
}
.reaction-btn:hover { transform: translateY(-2px); }

/* Showcase */
.showcase-toolbar { display: flex; flex-wrap: wrap; gap: 12px; }
.search-input, .sort-select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--nv-border);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--nv-text);
}
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.showcase-card {
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-card-radius);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  display: flex; flex-direction: column;
}
.showcase-thumb { min-height: 150px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); }
.showcase-thumb img, .showcase-thumb video { width: 100%; height: 100%; object-fit: cover; }
.showcase-meta { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-row span { padding: 4px 10px; border-radius: 999px; background: rgba(124,92,255,0.18); font-size: 0.78rem; }
.stat-row { display: flex; gap: 12px; font-size: 0.85rem; color: var(--nv-muted); }

.collections-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px,1fr); gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.collection-card { border: 1px solid var(--nv-border); border-radius: 16px; padding: 14px; background: rgba(255,255,255,0.03); }
.collection-meta { display: flex; justify-content: space-between; color: var(--nv-muted); font-size: 0.82rem; }

/* Collab */
.collab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 18px; }
.collab-card { padding: 16px; border: 1px solid var(--nv-border);
  border-radius: var(--nv-card-radius); background: rgba(255,255,255,0.02);
}
.collab-card h3 { margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.list-scroll { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.list-item { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
.inline-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.inline-form input, .inline-form textarea, .inline-form select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--nv-border);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--nv-text);
}
.inline-form button {
  align-self: flex-start;
  background: var(--nv-accent);
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  color: #fff;
  cursor: pointer;
}

/* Challenges */
.challenges-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; }
.challenge-panel { padding: 16px; border-radius: var(--nv-card-radius); border: 1px solid var(--nv-border); background: rgba(255,255,255,0.02); display: flex; flex-direction: column; gap: 14px; }
.reaction-summary { padding: 18px; border-radius: var(--nv-card-radius); border: 1px solid var(--nv-border); background: rgba(255,255,255,0.02); }
.reaction-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.reaction-bar { flex: 1; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.08); }
.reaction-bar div { height: 100%; background: linear-gradient(90deg, var(--nv-accent), var(--nv-organic)); }

/* Mentorship */
.mentorship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; }
.mentor-card { padding: 18px; border-radius: var(--nv-card-radius); border: 1px solid var(--nv-border); background: rgba(255,255,255,0.02); display: flex; flex-direction: column; gap: 12px; }

/* Right Sidebar */
.profile-preview { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--nv-border); }
.profile-avatar {
  width: 48px; height: 48px; margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.profile-preview h4 { margin: 0; font-size: 0.95rem; }
.profile-stats { 
  display: flex; 
  justify-content: space-around; 
  padding: 16px 0;
  border-bottom: 1px solid var(--nv-border);
}
.profile-stats .stat { text-align: center; }
.profile-stats .stat span { display: block; font-size: 1rem; font-weight: 600; }
.profile-stats label { font-size: 0.75rem; color: var(--nv-muted); }
.trending-sidebar h5 { 
  font-size: 1.1rem; 
  font-weight: 700; 
  margin: 0 0 16px; 
}
.sidebar-trending-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.placeholder-text { color: var(--nv-muted); font-style: italic; }

/* Scrollbars - Futuristic Thin Design */
.list-scroll::-webkit-scrollbar, .collections-rail::-webkit-scrollbar { height: 4px; width: 4px; }

/* Global scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.4), rgba(99, 102, 241, 0.3));
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--nv-accent, #a855f7), var(--nv-accent-2, #6366f1));
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.4) transparent;
}

/* =============================================================================
   HOME TAB - PULSE ROUTER & CONTENT CARDS (Minimal)
   ============================================================================= */

/* Pulse Query Container */
.pulse-query-container {
  padding: 16px;
  border-bottom: 1px solid var(--nv-border);
}

.pulse-query-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 20px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--nv-border);
  border-radius: 999px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Cinematic moving shadow effect */
.pulse-query-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(124,92,255,0.08) 50%, transparent 60%);
  background-size: 300% 300%;
  animation: cinematicShadowMove 8s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.pulse-query-bar:hover::before,
.pulse-query-bar:focus-within::before {
  opacity: 1;
}

.pulse-query-bar:focus-within {
  border-color: var(--nv-accent);
  background: rgba(0,0,0,0.3);
  box-shadow: 
    0 0 30px rgba(124,92,255,0.15),
    0 0 60px rgba(124,92,255,0.05),
    inset 0 0 20px rgba(124,92,255,0.03);
  transform: translateY(-1px);
}

.pulse-query-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--nv-text);
  padding: 12px 0;
  position: relative;
  z-index: 2; /* Ensure input is clickable */
}
.pulse-query-input::placeholder {
  color: var(--nv-muted);
}
.pulse-query-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nv-text);
  border: none;
  color: var(--nv-bg-deep);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.pulse-query-btn:hover {
  background: var(--nv-accent);
  color: #fff;
}

.pulse-query-hints {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.hint-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nv-border);
  color: var(--nv-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s var(--nv-transition);
}
.hint-chip:hover {
  background: var(--nv-accent-soft);
  border-color: var(--nv-accent);
  color: var(--nv-text);
  transform: translateY(-2px);
}

/* Pulse Router Results */
.pulse-router-results {
  min-height: 400px;
}
.router-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 20px;
}
.router-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid var(--nv-border);
  border-top-color: var(--nv-accent);
  border-radius: 50%;
  animation: routerSpin 1s linear infinite;
}
@keyframes routerSpin {
  to { transform: rotate(360deg); }
}
.router-loading p {
  color: var(--nv-muted);
  font-style: italic;
}

.router-decision { opacity: 0; }
.router-decision.animate-in { animation: routerFadeIn 0.5s var(--nv-transition) forwards; }
@keyframes routerFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.router-decision-container {
  position: relative;
}
.router-back-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--nv-glass);
  border: 1px solid var(--nv-border);
  color: var(--nv-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 5;
}
.router-back-btn:hover {
  background: var(--nv-panel);
  border-color: var(--nv-accent);
  transform: translateX(-3px);
}

.router-decision-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 10px;
}
.router-intent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(124,92,255,0.15);
  border: 1px solid var(--nv-accent-soft);
  font-size: 0.85rem;
  font-weight: 500;
}
.router-intent-badge.creation { background: rgba(0,229,160,0.15); border-color: rgba(0,229,160,0.4); }
.router-intent-badge.exploration { background: rgba(41,182,246,0.15); border-color: rgba(41,182,246,0.4); }
.router-content-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(124,92,255,0.15);
  border: 1px solid rgba(124,92,255,0.4);
  font-size: 0.85rem;
  font-weight: 500;
}


.router-synthesis {
  text-align: center;
  margin-bottom: 28px;
  color: var(--nv-muted);
  font-size: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Primary Route Card */
.router-primary-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto 32px;
  padding: 28px;
  border-radius: 20px;
  background: var(--route-gradient, linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2)));
  color: #fff;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s var(--nv-transition), box-shadow 0.3s var(--nv-transition);
}
.router-primary-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}
.route-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 60%);
  pointer-events: none;
}
.route-card-content {
  position: relative;
  z-index: 1;
}
.route-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.82rem;
  opacity: 0.9;
}
.route-target {
  padding: 4px 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
}
.route-confidence {
  font-weight: 600;
}
.router-primary-card h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
  font-weight: 600;
}
.route-summary {
  margin: 0 0 8px;
  opacity: 0.9;
  line-height: 1.5;
}
.route-explanation {
  margin: 0 0 20px;
  font-size: 0.88rem;
  opacity: 0.75;
  font-style: italic;
}
.route-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--nv-transition);
}
.route-action-btn:hover {
  background: #fff;
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.route-action-btn.secondary {
  background: var(--nv-glass);
  color: var(--nv-text);
  padding: 10px 20px;
  font-size: 0.9rem;
}
.route-action-btn.secondary:hover {
  background: var(--nv-accent-soft);
}

/* Alternatives Section */
.router-alternatives {
  margin-bottom: 28px;
}
.router-alternatives h4 {
  text-align: center;
  color: var(--nv-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.router-alt-card {
  padding: 20px;
  border-radius: var(--nv-card-radius);
  background: var(--nv-panel);
  border: 1px solid var(--nv-border);
  transition: all 0.2s var(--nv-transition);
}
.router-alt-card:hover {
  border-color: var(--nv-accent);
  transform: translateY(-3px);
}
.router-alt-card .route-meta {
  margin-bottom: 10px;
  color: var(--nv-muted);
}
.router-alt-card h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.router-alt-card p {
  margin: 0 0 14px;
  color: var(--nv-muted);
  font-size: 0.9rem;
}

/* Workflow Suggestion */
.router-workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--nv-glass);
  border-radius: var(--nv-card-radius);
}
.workflow-label {
  color: var(--nv-muted);
  font-size: 0.85rem;
}
.workflow-steps {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workflow-step {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--nv-accent-soft);
  font-size: 0.85rem;
  font-weight: 500;
}
.workflow-steps i {
  color: var(--nv-muted);
  font-size: 0.7rem;
}

/* Router Error State */
.router-error .router-error-content {
  text-align: center;
  padding: 60px 20px;
}
.router-error-content i {
  font-size: 3rem;
  color: var(--nv-danger);
  margin-bottom: 20px;
}
.router-error-content p {
  margin-bottom: 20px;
  color: var(--nv-muted);
}
.retry-btn {
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--nv-accent);
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* Pulse Content Grid (Minimal cards) */
.pulse-content-grid {
  padding: 16px;
}
.pulse-content-grid.showing-stage .pulse-cards-container {
  display: none;
}
.pulse-content-grid.showing-stage .pulse-card-stage {
  display: flex;
}
.pulse-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px){
  .pulse-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
.pulse-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: 12px;
  border: 1px solid var(--nv-border);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: var(--nv-text);
  cursor: pointer;
  outline: none;
  min-height: 110px;
  transition: background 0.15s, border-color 0.15s;
}
.pulse-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--nv-accent);
}
.pulse-card.active {
  background: linear-gradient(135deg, rgba(124,92,255,0.28), rgba(0,229,160,0.22));
  border-color: var(--nv-accent);
  box-shadow: 0 15px 40px rgba(0,0,0,0.45);
}
.pulse-card-icon {
  font-size: 1.5rem;
  color: var(--nv-accent);
}
.pulse-card-label {
  font-size: 0.85rem;
  font-weight: 500;
}

.pulse-card-stage {
  margin-top: 20px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--nv-border);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: cardPop 0.35s ease;
}
.pulse-card-stage-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.pulse-card-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--nv-border);
  background: rgba(0,0,0,0.25);
  color: var(--nv-text);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
}
.pulse-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 180px;
  gap: 12px;
}
.pulse-asset-card {
  position: relative;
  border: none;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  font: inherit;
  color: inherit;
  transition: transform 0.2s var(--nv-transition), box-shadow 0.2s var(--nv-transition);
}
.pulse-asset-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.pulse-asset-card-media {
  position: absolute;
  inset: 0;
  background: rgba(4,6,12,0.6);
}
.pulse-asset-card-media img,
.pulse-asset-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pulse-asset-card-media video { pointer-events: none; }
.pulse-asset-card-media--audio,
.pulse-asset-card-media--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,6,12,0.8);
  color: var(--nv-accent);
  font-size: 1.4rem;
}
.pulse-asset-card-media--audio audio {
  width: 90%;
}
/* Audio placeholder visual for cards */
.audio-placeholder-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(0, 195, 255, 0.1));
}
.audio-wave-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(124, 92, 255, 0.4);
}
.audio-wave-icon i {
  font-size: 24px;
  color: #fff;
}
.audio-label {
  font-size: 0.85rem;
  color: var(--nv-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pulse-asset-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.2s var(--nv-transition);
  background: linear-gradient(180deg, rgba(4,6,12,0.05), rgba(4,6,12,0.7));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pulse-asset-card:hover .pulse-asset-card-hover {
  opacity: 1;
}
.pulse-asset-card-hover span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}
.pulse-asset-card-hover i {
  color: var(--nv-accent);
}
.home-feed-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--nv-border);
  background: rgba(255,255,255,0.03);
  color: var(--nv-text);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  animation: cardPop 0.45s ease;
}
.home-feed-card--tall { grid-row: span 2; }
.home-feed-card--wide { grid-column: span 2; }
.home-feed-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-feed-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,6,12,0.1), rgba(4,6,12,0.9));
}
.home-feed-media img,
.home-feed-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-feed-media video {
  pointer-events: none;
}
.home-feed-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,6,12,0.65);
  color: var(--nv-accent);
  font-size: 1.6rem;
  position: relative;
  z-index: 1;
}
.home-feed-media-fallback audio {
  width: 90%;
}
.home-feed-media > audio {
  width: 100%;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.home-feed-body {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-feed-pill {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nv-muted);
}
.home-feed-body h4 {
  margin: 0;
  font-size: 1.05rem;
}
.home-feed-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--nv-muted);
}
.home-feed-stats {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  margin-top: 6px;
}

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

body.pulse-overlay-open {
  overflow: hidden;
}

.pulse-asset-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--nv-transition), visibility 0s linear 0.25s;
  z-index: 60;
}
.pulse-asset-overlay.visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.pulse-asset-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,6,12,0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.pulse-asset-overlay-panel {
  position: relative;
  width: min(960px, 92vw);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--nv-border);
  box-shadow: 0 45px 90px rgba(0,0,0,0.55);
}
@media (max-width: 900px){
  .pulse-asset-overlay-panel {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
}
.pulse-asset-overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--nv-border);
  background: rgba(4,6,12,0.6);
  color: var(--nv-text);
  cursor: pointer;
  z-index: 3;
}
.pulse-asset-overlay-media {
  position: relative;
  background: rgba(0,0,0,0.8);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Tagged Users Button - Glassmorphic Overlay on Media */
.pulse-overlay-tagged-btn-media {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  
  /* Glassmorphism effect */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 2px 4px rgba(0, 0, 0, 0.2);
  
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
}

.pulse-overlay-tagged-btn-media:hover {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.35) 0%,
    rgba(99, 102, 241, 0.25) 50%,
    rgba(168, 85, 247, 0.18) 100%
  );
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(168, 85, 247, 0.2) inset,
    0 0 24px rgba(168, 85, 247, 0.3);
}

.pulse-overlay-tagged-btn-media:active {
  transform: translateY(0);
}

.pulse-overlay-tagged-btn-media i {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.pulse-overlay-tagged-btn-media .pulse-overlay-tagged-count {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(124, 92, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Show more prominently when has tagged users */
.pulse-overlay-tagged-btn-media.has-tagged {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.25) 0%,
    rgba(99, 102, 241, 0.18) 50%,
    rgba(168, 85, 247, 0.12) 100%
  );
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(168, 85, 247, 0.15) inset,
    0 0 20px rgba(168, 85, 247, 0.15);
}

.pulse-asset-overlay-media img,
.pulse-asset-overlay-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pulse-asset-overlay-media video,
.pulse-asset-overlay-media audio {
  max-height: 100%;
}
.pulse-asset-overlay-media audio {
  width: 90%;
}
.pulse-asset-overlay-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--nv-accent);
}
.pulse-asset-overlay-meta {
  padding: clamp(20px, 5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(4,6,12,0.8);
  overflow-y: auto;
  max-height: 90vh;
}
.pulse-asset-overlay-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pulse-asset-overlay-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--nv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}
.pulse-asset-overlay-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pulse-asset-overlay-user-copy h4 {
  margin: 0;
  font-size: 1.1rem;
}
.pulse-asset-overlay-subtext {
  font-size: 0.85rem;
  color: var(--nv-muted);
}
.pulse-asset-overlay-caption {
  margin: 0;
  color: var(--nv-text);
  line-height: 1.6;
}

/* Pulse Overlay Header with Follow Button */
.pulse-asset-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* =============================================================================
   FUTURISTIC FOLLOW BUTTON - Glassmorphism with Dynamic Animations
   ============================================================================= */
.nv-futuristic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
}

/* Animated glow layer */
.nv-btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% 120%,
    rgba(168, 85, 247, 0.4) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Animated border with gradient sweep */
.nv-btn-border {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.6) 0%,
    rgba(99, 102, 241, 0.3) 50%,
    rgba(168, 85, 247, 0.6) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: nvBorderFlow 3s linear infinite;
}

@keyframes nvBorderFlow {
  0% { filter: hue-rotate(0deg); opacity: 0.6; }
  50% { filter: hue-rotate(30deg); opacity: 1; }
  100% { filter: hue-rotate(0deg); opacity: 0.6; }
}

/* Button content */
.nv-btn-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.nv-btn-icon {
  font-size: 0.95rem;
  color: var(--nv-accent, #a855f7);
  transition: all 0.3s ease;
}

.nv-btn-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nv-text, #fff);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Hover effects */
.nv-futuristic-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 10px 40px rgba(168, 85, 247, 0.3),
    0 0 30px rgba(168, 85, 247, 0.15);
}

.nv-futuristic-btn:hover .nv-btn-glow {
  opacity: 1;
}

.nv-futuristic-btn:hover .nv-btn-icon {
  transform: translateX(-2px);
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
}

.nv-futuristic-btn:hover .nv-btn-text {
  transform: translateX(2px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nv-futuristic-btn:hover .nv-btn-border {
  animation: nvBorderFlowFast 1.5s linear infinite;
}

@keyframes nvBorderFlowFast {
  0% { filter: hue-rotate(0deg); opacity: 1; }
  50% { filter: hue-rotate(40deg); opacity: 1; }
  100% { filter: hue-rotate(0deg); opacity: 1; }
}

/* Active/pressed state */
.nv-futuristic-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Following state - filled style */
.nv-futuristic-btn.following {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.2) 0%,
    rgba(99, 102, 241, 0.15) 100%
  );
}

.nv-futuristic-btn.following .nv-btn-border {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.8) 0%,
    rgba(16, 185, 129, 0.5) 50%,
    rgba(34, 197, 94, 0.8) 100%
  );
}

.nv-futuristic-btn.following .nv-btn-icon {
  color: #22c55e;
}

.nv-futuristic-btn.following:hover {
  box-shadow: 
    0 10px 40px rgba(239, 68, 68, 0.3),
    0 0 30px rgba(239, 68, 68, 0.15);
}

.nv-futuristic-btn.following:hover .nv-btn-border {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.8) 0%,
    rgba(248, 113, 113, 0.5) 50%,
    rgba(239, 68, 68, 0.8) 100%
  );
}

.nv-futuristic-btn.following:hover .nv-btn-icon {
  color: #ef4444;
}

/* Disabled state */
.nv-futuristic-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* Hide if self */
.pulse-overlay-follow-btn.is-self {
  display: none;
}

/* Comments Header & Items (styles that complement the futuristic section) */
.pulse-overlay-comments-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pulse-overlay-comments-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nv-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse-overlay-comments-header h5 i {
  color: var(--nv-accent, #a855f7);
}
.pulse-overlay-comments-count {
  background: rgba(168, 85, 247, 0.2);
  color: var(--nv-accent, #a855f7);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.pulse-overlay-comment-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.pulse-overlay-comment-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nv-accent, #a855f7);
  overflow: hidden;
}
.pulse-overlay-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pulse-overlay-comment-avatar-img {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.pulse-overlay-comment-content {
  flex: 1;
  min-width: 0;
}
.pulse-overlay-comment-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nv-accent, #a855f7);
  margin-bottom: 2px;
}
.pulse-overlay-comment-body {
  font-size: 0.85rem;
  color: var(--nv-text);
  line-height: 1.4;
  word-wrap: break-word;
}
.pulse-overlay-comment-time {
  font-size: 0.7rem;
  color: var(--nv-muted);
  margin-top: 4px;
}
.pulse-overlay-comments-empty {
  text-align: center;
  color: var(--nv-muted);
  font-size: 0.85rem;
  padding: 20px;
}

/* =============================================================================
   FUTURISTIC COMMENT BAR - Dynamic Animations & Glassmorphism
   ============================================================================= */
.pulse-overlay-comment-bar-container {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nv-futuristic-input {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 14px 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animated border glow */
.nv-input-border-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  transition: all 0.5s ease;
}

.nv-input-border-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    90deg,
    rgba(100, 100, 120, 0.3) 0%,
    rgba(80, 80, 100, 0.2) 50%,
    rgba(100, 100, 120, 0.3) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: nvInputBorderIdle 4s ease-in-out infinite;
}

@keyframes nvInputBorderIdle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Focus state - calm purple/blue flow */
.nv-futuristic-input.is-focused .nv-input-border-glow::before {
  background: linear-gradient(
    90deg,
    rgba(168, 85, 247, 0.6) 0%,
    rgba(99, 102, 241, 0.4) 25%,
    rgba(168, 85, 247, 0.6) 50%,
    rgba(99, 102, 241, 0.4) 75%,
    rgba(168, 85, 247, 0.6) 100%
  );
  background-size: 200% 100%;
  animation: nvInputBorderActive 2s linear infinite;
}

@keyframes nvInputBorderActive {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.nv-futuristic-input.is-focused {
  background: rgba(168, 85, 247, 0.03);
  box-shadow: 
    0 0 30px rgba(168, 85, 247, 0.1),
    inset 0 0 20px rgba(168, 85, 247, 0.02);
}

/* Submitting state - flash effect */
.nv-futuristic-input.is-submitting .nv-input-border-glow::before {
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.8) 0%,
    rgba(16, 185, 129, 0.6) 50%,
    rgba(34, 197, 94, 0.8) 100%
  );
  animation: nvInputBorderSubmit 0.5s ease-out;
}

@keyframes nvInputBorderSubmit {
  0% { opacity: 1; filter: brightness(2); }
  100% { opacity: 0.8; filter: brightness(1); }
}

/* Input field */
.nv-input-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--nv-text, #fff);
  font-size: 0.95rem;
  font-family: inherit;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.nv-input-field::placeholder {
  color: transparent;
}

.nv-input-field:disabled {
  opacity: 0.5;
}

/* Animated placeholder ghost */
.nv-input-placeholder-ghost {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--nv-muted, rgba(255,255,255,0.4));
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 0;
}

/* Placeholder animation on focus */
.nv-futuristic-input.is-focused .nv-input-placeholder-ghost,
.nv-input-field:not(:placeholder-shown) + .nv-input-placeholder-ghost {
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
}

/* Hint text */
.pulse-overlay-comment-hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--nv-muted, rgba(255,255,255,0.4));
  text-align: right;
}

.pulse-overlay-comment-hint kbd {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.7rem;
  color: var(--nv-text, #fff);
}

/* Make overlay meta area a flex column to push comment bar to bottom */
.pulse-asset-overlay-meta {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pulse-overlay-comments-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  border-top: 1px solid var(--nv-border);
  padding-top: 16px;
  overflow: visible;
  min-height: 150px;
  max-height: 280px;
}

.pulse-overlay-comments-list {
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  margin-bottom: 0;
  padding-right: 8px;
  /* Always visible scrollbar styling - Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--nv-accent, #a855f7) rgba(255,255,255,0.1);
}

/* Gap simulation for block layout */
.pulse-overlay-comments-list .pulse-overlay-comment-item + .pulse-overlay-comment-item {
  margin-top: 10px;
}

/* Always visible scrollbar - WebKit/Chrome/Safari */
.pulse-overlay-comments-list::-webkit-scrollbar {
  width: 8px;
  display: block;
}

.pulse-overlay-comments-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.pulse-overlay-comments-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--nv-accent, #a855f7), var(--nv-accent-2, #6366f1));
  border-radius: 4px;
  min-height: 30px;
}

.pulse-overlay-comments-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--nv-accent-2, #6366f1), var(--nv-accent, #a855f7));
}

/* =============================================================================
   PROFILE WORKS OVERLAY - View own creations in larger view
   ============================================================================= */

.profile-works-overlay-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nv-accent, #a855f7);
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.profile-works-overlay-stats {
  display: flex;
  gap: 20px;
  margin: 12px 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-works-overlay-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--nv-text);
}

.profile-works-overlay-stats .stat-item i {
  color: var(--nv-accent, #a855f7);
  font-size: 0.85rem;
}

.profile-works-overlay-stats .stat-item:first-child {
  color: var(--nv-accent, #a855f7);
  font-weight: 700;
}

/* Like Button Styling */
.profile-works-overlay-stats .stat-item--like {
  background: transparent;
  border: none;
  padding: 8px 14px;
  margin: -8px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nv-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-works-overlay-stats .stat-item--like:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.profile-works-overlay-stats .stat-item--like:hover i {
  color: #ef4444;
  transform: scale(1.15);
}

.profile-works-overlay-stats .stat-item--like i {
  font-size: 1rem;
  color: var(--nv-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-works-overlay-stats .stat-item--like.liked {
  color: #ef4444;
}

.profile-works-overlay-stats .stat-item--like.liked i {
  color: #ef4444;
  animation: likeHeartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes likeHeartPop {
  0% { transform: scale(1); }
  25% { transform: scale(1.35); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Profile work card hover effect for clickability */
.profile-work-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-work-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.profile-work-card:focus {
  outline: 2px solid var(--nv-accent, #a855f7);
  outline-offset: 4px;
}

.profile-work-card:active {
  transform: translateY(-2px) scale(1.01);
}

/* Large fallback for media in overlay */
.profile-work-media-fallback.large {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.15));
  border-radius: 16px;
  font-size: 4rem;
  font-weight: 700;
  color: var(--nv-accent, #a855f7);
}

/* =============================================================================
   OTHER USER PROFILE TAB - View other users' profiles (tab-based, not overlay)
   ============================================================================= */

/* Tab container */
#tab-user-profile {
  height: 100%;
  overflow-y: auto;
}

.other-user-profile-view {
  padding-bottom: 40px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Fixed width for other user profile card - matches first-person profile */
.other-user-profile-view .community-profile-card {
  width: min(960px, 100%);
  min-width: min(960px, 100%);
}

/* Fixed width for profile body content */
.other-user-profile-view .community-profile-body {
  min-width: 100%;
  width: 100%;
}

.other-user-profile-view .profile-view-back span {
  display: inline;
}

/* Loading state */
.other-user-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--nv-muted);
  min-height: 400px;
}

.other-user-loading-state .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(168, 85, 247, 0.2);
  border-top-color: var(--nv-accent, #a855f7);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.other-user-loading-state p {
  font-size: 1rem;
  color: var(--nv-muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Other user stats row */
.other-user-stats {
  margin-bottom: 24px;
}

/* Other user header actions (follow button) */
.other-user-profile-actions {
  flex-shrink: 0;
}

/* Profile tier badge */
.profile-tier-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 12px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--nv-accent, #a855f7);
  text-transform: uppercase;
  letter-spacing: 1px;
  vertical-align: middle;
}

/* Badges section for other users */
.other-user-badges-section {
  margin-bottom: 24px;
}

.other-user-badges-section .section-title h3 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nv-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.other-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.other-user-badges:empty {
  display: none;
}

.user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--nv-accent, #a855f7);
  transition: all 0.3s ease;
}

.user-profile-badge:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

.user-profile-badge i {
  font-size: 0.85rem;
}

/* =============================================================================
   ENHANCED OTHER-USER PROFILE - FUTURISTIC GLASSMORPHIC DESIGN
   ============================================================================= */

/* Other User Profile Body - Enhanced */
.other-user-profile-view .community-profile-body {
  position: relative;
  background: linear-gradient(180deg, rgba(7,11,25,0.5) 0%, rgba(7,11,25,0.9) 100%);
}

.other-user-profile-view .community-profile-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(168,85,247,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Other User Header - Enhanced */
.other-user-profile-view .community-profile-header {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 20px;
  margin-bottom: 4px;
}

.other-user-profile-view .community-profile-header > div:first-child {
  flex: 1;
  min-width: 200px;
}

.other-user-profile-view .community-profile-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--nv-text) 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

/* Profile Tier Badge - Enhanced */
.profile-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 5px 14px;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--nv-accent, #a855f7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
}

.profile-tier-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.2), transparent);
  transform: translateX(-100%);
  animation: tierBadgeShimmer 3s infinite;
}

@keyframes tierBadgeShimmer {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

/* Other User Stats - Enhanced Glassmorphic Cards */
.other-user-stats {
  display: flex;
  gap: 12px;
  margin: 20px 0 28px;
  position: relative;
  z-index: 1;
}

.other-user-stats .stat {
  flex: 1;
  min-width: 90px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.other-user-stats .stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.other-user-stats .stat:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.25);
  box-shadow: 0 12px 32px rgba(168,85,247,0.12);
}

.other-user-stats .stat:hover::before {
  opacity: 1;
}

.other-user-stats .stat small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nv-muted);
  margin-bottom: 6px;
}

.other-user-stats .stat strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--nv-text) 0%, var(--nv-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Other User About Section - Enhanced */
.other-user-profile-view .community-profile-about {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.other-user-profile-view .community-profile-about .section-title h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--nv-accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.other-user-profile-view .community-profile-about .section-title h3::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--nv-accent);
  border-radius: 2px;
}

.other-user-profile-view .about-display {
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(7,11,25,0.5);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.other-user-profile-view .about-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.3), transparent);
}

.other-user-profile-view .about-display p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}

/* Other User Badges Section - Enhanced */
.other-user-badges-section {
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.other-user-badges-section .section-title h3 {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nv-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.other-user-badges-section .section-title h3::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--nv-accent);
  border-radius: 2px;
}

.other-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 24px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nv-accent, #a855f7);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.user-profile-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-profile-badge:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 8px 24px rgba(168,85,247,0.2);
}

.user-profile-badge:hover::before {
  opacity: 1;
}

.user-profile-badge i {
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.user-profile-badge span {
  position: relative;
  z-index: 1;
}

/* Other User Works Section - Enhanced */
.other-user-profile-view .community-profile-works {
  position: relative;
  z-index: 1;
}

.other-user-profile-view .community-profile-works::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* Other User Works Filters - Enhanced Tabs */
.other-user-profile-view .profile-works-filters {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(255,255,255,0.015);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 20px;
}

.other-user-profile-view .profile-works-chip {
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  border: none;
}

.other-user-profile-view .profile-works-chip.active {
  background: rgba(168,85,247,0.12);
  color: var(--nv-text);
  border-bottom: none;
}

/* Other User Works Grid - Fixed 3x3 */
.other-user-profile-view .profile-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  min-width: 100%;
  position: relative;
}

/* Base sizing for ALL cells in other-user works grid */
.other-user-profile-view .profile-works-grid > * {
  aspect-ratio: 4/5;
  width: 100%;
  border-radius: 16px;
}

/* Other User Work Items - Consistent with main profile */
.other-user-profile-view .profile-work-item {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.3s ease;
}

.other-user-profile-view .profile-work-item:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.25);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.other-user-profile-view .profile-work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.other-user-profile-view .profile-work-item:hover img {
  transform: scale(1.05);
}

.other-user-profile-view .profile-work-item-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(99,102,241,0.1));
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--nv-accent, #a855f7);
}

.other-user-profile-view .profile-work-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  z-index: 2;
}

.other-user-profile-view .profile-work-item:hover .profile-work-item-overlay {
  opacity: 1;
}

.other-user-profile-view .profile-work-item-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Other User Placeholder Cells - inherits sizing from grid > * rule */
.other-user-placeholder {
  border: 1px dashed rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.01);
  display: flex;
  align-items: center;
  justify-content: center;
}

.other-user-placeholder i {
  color: rgba(124,92,255,0.15);
  font-size: 1.2rem;
}

/* Responsive: 2 columns on smaller screens */
@media (max-width: 600px) {
  .other-user-profile-view .profile-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Make user avatar clickable in pulse overlay */
.pulse-asset-overlay-user {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 4px;
  margin: -4px;
}

.pulse-asset-overlay-user:hover {
  background: rgba(168, 85, 247, 0.1);
}

.pulse-asset-overlay-user:hover .pulse-asset-overlay-avatar {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* =============================================================================
   SEARCH TAB - Minimal Discovery Interface with Professional Glassmorphic Style
   ============================================================================= */

/* Search container - minimal style */
.search-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 20px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--nv-border);
  border-radius: 999px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  isolation: isolate;
  overflow: hidden;
  min-width: 100%; /* Extended width */
}

/* Cinematic moving shadow */
.search-input-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(124,92,255,0.08) 50%, transparent 60%);
  background-size: 300% 300%;
  animation: cinematicShadowMove 8s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.search-input-wrapper:hover::before,
.search-input-wrapper:focus-within::before {
  opacity: 1;
}

.search-input-wrapper:focus-within {
  border-color: var(--nv-accent);
  background: rgba(0,0,0,0.35);
  box-shadow: 
    0 0 40px rgba(124,92,255,0.18),
    0 0 80px rgba(124,92,255,0.06),
    inset 0 0 25px rgba(124,92,255,0.03);
  transform: translateY(-1px);
}

.search-icon {
  font-size: 1.1rem;
  color: var(--nv-muted);
  transition: color 0.3s;
  flex-shrink: 0;
}
.search-input-wrapper:focus-within .search-icon {
  color: var(--nv-accent);
}
.global-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--nv-text);
  padding: 10px 0;
}
.global-search-input::placeholder {
  color: var(--nv-muted);
}

.search-filters {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--nv-border);
}
.search-filter-chip {
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--nv-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--nv-transition);
}
.search-filter-chip:hover {
  background: rgba(255,255,255,0.03);
  color: var(--nv-text);
}
.search-filter-chip.active {
  color: var(--nv-text);
  border-bottom-color: var(--nv-accent);
}

/* Trending section - minimal */
.trending-section {
  margin-bottom: 20px;
}
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.trending-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--nv-border);
  cursor: pointer;
  transition: background 0.15s;
}
.trending-item:hover {
  background: rgba(255,255,255,0.02);
}
.trending-category {
  font-size: 0.78rem;
  color: var(--nv-muted);
  margin-bottom: 2px;
}
.trending-topic {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nv-text);
}
.trending-count {
  font-size: 0.78rem;
  color: var(--nv-muted);
  margin-top: 2px;
}

.search-results-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.search-result-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--nv-border);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 8px;
}
.search-result-card:hover {
  background: rgba(255,255,255,0.03);
}
.search-result-card:last-child {
  border-bottom: none;
}

.result-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--nv-border);
}

.result-avatar, .result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--nv-muted);
  flex-shrink: 0;
}

.result-thumb {
  border-radius: 8px;
}
.result-thumb.project { color: var(--nv-accent); }
.result-thumb.post { color: var(--nv-accent-2); }

.result-info {
  flex: 1;
  min-width: 0;
}

.result-info h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: var(--nv-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-handle, .result-creator {
  font-size: 0.85rem;
  color: var(--nv-accent);
  display: block;
  margin-bottom: 4px;
}

.result-bio {
  font-size: 0.8rem;
  color: var(--nv-muted);
  margin: 0;
  line-height: 1.3;
}

.result-meta {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.result-stat {
  font-size: 0.75rem;
  color: var(--nv-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.follow-btn.small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* --- Enhanced Search Results Sections --- */
.search-section {
  margin-bottom: 32px;
}
.search-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nv-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-section-title i {
  color: var(--nv-accent);
  font-size: 1rem;
}

/* --- Search Assets Grid (matches home bar) --- */
.search-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 180px;
  gap: 12px;
}
.pulse-search-asset-card {
  position: relative;
  border: none;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  font: inherit;
  color: inherit;
  transition: transform 0.2s var(--nv-transition), box-shadow 0.2s var(--nv-transition);
  display: flex;
  flex-direction: column;
}
.pulse-search-asset-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--nv-accent);
}
.pulse-search-asset-card:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--nv-accent);
}
.pulse-search-asset-media {
  position: absolute;
  inset: 0;
  background: rgba(4,6,12,0.7);
  z-index: 0;
}
.pulse-search-asset-media img,
.pulse-search-asset-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pulse-search-asset-media video { pointer-events: none; }
.pulse-search-asset-media--audio,
.pulse-search-asset-media--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(4,6,12,0.9));
  color: var(--nv-accent);
  font-size: 1.6rem;
}
.pulse-search-asset-media--audio audio {
  width: 80%;
  max-width: 140px;
}
.pulse-search-asset-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(to top, rgba(4,6,12,0.95), transparent);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pulse-search-asset-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pulse-search-asset-creator {
  font-size: 0.75rem;
  color: var(--nv-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pulse-search-asset-stats {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 10px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s;
}
.pulse-search-asset-card:hover .pulse-search-asset-stats {
  opacity: 1;
}
.pulse-search-asset-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.5);
  padding: 4px 8px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.pulse-search-asset-stats i {
  color: var(--nv-accent);
  font-size: 0.7rem;
}

/* --- Search Creators Grid --- */
.search-creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.search-creator-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--nv-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s var(--nv-transition);
}
.search-creator-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--nv-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.search-creator-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1);
}
.search-creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-creator-avatar i {
  font-size: 1.3rem;
  color: #fff;
}
.search-creator-info {
  flex: 1;
  min-width: 0;
}
.search-creator-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nv-text);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-creator-handle {
  font-size: 0.85rem;
  color: var(--nv-accent);
  margin-bottom: 4px;
  display: block;
}
.search-creator-bio {
  font-size: 0.8rem;
  color: var(--nv-muted);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-creator-stats {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.search-creator-stat {
  font-size: 0.75rem;
  color: var(--nv-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.search-creator-stat i {
  color: var(--nv-accent);
  font-size: 0.7rem;
}
.search-creator-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.search-creator-follow-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--nv-accent);
  background: transparent;
  color: var(--nv-accent);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.search-creator-follow-btn:hover {
  background: var(--nv-accent);
  color: #fff;
}
.search-creator-follow-btn.following {
  background: rgba(124,92,255,0.2);
  border-color: transparent;
  color: var(--nv-accent);
}

/* --- Search Empty & Loading States --- */
.search-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--nv-muted);
}
.search-empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--nv-accent);
  opacity: 0.5;
}
.search-empty-state h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--nv-text);
  margin: 0 0 8px 0;
}
.search-empty-state p {
  font-size: 0.9rem;
  margin: 0;
}

/* --- Detailed Search Asset Card (for projects) --- */
.search-asset-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--nv-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.2s var(--nv-transition);
  animation: searchCardFadeIn 0.35s ease both;
}
.search-asset-card:hover {
  border-color: var(--nv-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}

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

.search-asset-media {
  height: 180px;
  position: relative;
  background: rgba(4,6,12,0.7);
  overflow: hidden;
}
.search-asset-media img,
.search-asset-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.search-asset-media video { pointer-events: none; }
.search-asset-media--audio,
.search-asset-media--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(4,6,12,0.9));
  color: var(--nv-accent);
  font-size: 2.5rem;
}
.search-asset-media--audio .audio-wave-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.search-asset-media--audio audio {
  width: 85%;
  max-width: 200px;
  margin-top: 8px;
}
.search-asset-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.search-asset-card:hover .search-asset-play-icon {
  opacity: 1;
}

.search-asset-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.search-asset-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(124,92,255,0.18);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--nv-accent);
  text-transform: capitalize;
  width: fit-content;
}
.search-asset-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nv-text);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-asset-summary {
  font-size: 0.85rem;
  color: var(--nv-muted);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-asset-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.search-asset-creator {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.search-asset-creator:hover {
  opacity: 0.8;
}
.search-asset-creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--nv-border);
}
.search-asset-creator-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(124,92,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nv-accent);
  font-size: 0.75rem;
}
.search-asset-creator-text {
  display: flex;
  flex-direction: column;
}
.search-asset-creator-text .creator-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--nv-text);
}
.search-asset-creator-text .creator-handle {
  font-size: 0.7rem;
  color: var(--nv-muted);
}
.search-asset-stats {
  display: flex;
  gap: 12px;
}
.search-asset-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--nv-muted);
}
.search-asset-stats i {
  font-size: 0.7rem;
  color: var(--nv-accent);
}

/* --- Search Post Card --- */
.search-post-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--nv-border);
  border-radius: 16px;
  transition: all 0.2s var(--nv-transition);
  animation: searchCardFadeIn 0.35s ease both;
}
.search-post-card:hover {
  border-color: var(--nv-accent);
  background: rgba(255,255,255,0.04);
}
.search-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.search-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.search-post-author:hover {
  opacity: 0.8;
}
.search-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--nv-border);
}
.search-post-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.search-post-author-text {
  display: flex;
  flex-direction: column;
}
.search-post-author-text .author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nv-text);
}
.search-post-author-text .author-handle {
  font-size: 0.8rem;
  color: var(--nv-muted);
}
.search-post-time {
  font-size: 0.75rem;
  color: var(--nv-muted);
}
.search-post-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-post-text {
  font-size: 0.95rem;
  color: var(--nv-text);
  line-height: 1.5;
  margin: 0;
}
.search-post-media {
  border-radius: 12px;
  overflow: hidden;
  max-height: 300px;
}
.search-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.search-post-footer {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.search-post-footer .post-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--nv-muted);
}
.search-post-footer .post-stat i {
  color: var(--nv-accent);
  font-size: 0.85rem;
}

/* --- Search Creator Card (Enhanced) --- */
.search-result-card.search-creator-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--nv-border);
  border-radius: 18px;
  animation: searchCardFadeIn 0.35s ease both;
}
.search-result-card.search-creator-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--nv-accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.search-creator-visual {
  position: relative;
  flex-shrink: 0;
}
.search-creator-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
}
.search-creator-avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}
.search-creator-tier {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(124,92,255,0.85);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.search-creator-info {
  flex: 1;
  min-width: 0;
}
.search-creator-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.search-creator-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nv-text);
  margin: 0;
}
.search-creator-handle {
  font-size: 0.85rem;
  color: var(--nv-accent);
}
.search-creator-bio {
  font-size: 0.82rem;
  color: var(--nv-muted);
  margin: 0 0 8px 0;
  line-height: 1.35;
}
.search-creator-stats {
  display: flex;
  gap: 14px;
}
.search-creator-stats .stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--nv-muted);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 999px;
}
.search-creator-stats .stat-pill i {
  font-size: 0.7rem;
  color: var(--nv-accent);
}
.search-creator-actions {
  flex-shrink: 0;
}
.search-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--nv-accent);
  background: transparent;
  color: var(--nv-accent);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.search-follow-btn:hover {
  background: var(--nv-accent);
  color: #fff;
}
.search-follow-btn.following {
  background: rgba(124,92,255,0.2);
  border-color: transparent;
}
.search-follow-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================================================
   MESSAGES TAB - Cinematic Single-Panel Interface
   ============================================================================= */

.messages-unified {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(10,12,20,0.92), rgba(6,8,16,0.96));
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow);
}

.messages-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.messages-heading { min-height: 1px; }

.message-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--nv-border);
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(124,92,255,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.message-search-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(124,92,255,0.45); }
.message-search-btn:active { transform: translateY(0); }

.recent-conversations {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}
.recent-conversations::-webkit-scrollbar { display: none; }

.recent-placeholder {
  color: var(--nv-muted);
  padding: 10px 6px;
  font-size: 0.95rem;
}

.conversation-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--nv-border);
  background: rgba(255,255,255,0.02);
  color: var(--nv-text);
  cursor: pointer;
  min-width: 240px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.conversation-chip:hover {
  transform: translateY(-2px);
  border-color: var(--nv-accent);
  background: rgba(124,92,255,0.06);
}
.conversation-chip::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: radial-gradient(circle at 10% 10%, rgba(124,92,255,0.18), transparent 40%),
              radial-gradient(circle at 90% 20%, rgba(41,182,246,0.12), transparent 30%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.conversation-chip:hover::after { opacity: 1; }

.chip-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.chip-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.chip-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-handle {
  font-size: 0.85rem;
  color: var(--nv-accent);
}
.chip-preview {
  font-size: 0.82rem;
  color: var(--nv-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-arrow { color: var(--nv-muted); margin-left: auto; }
.chip-unread {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  color: #fff;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(124,92,255,0.35);
}

.message-search-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 12000;
}
.message-search-overlay.active { display: flex; }
.message-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}
.message-search-dialog {
  position: relative;
  width: min(720px, 90vw);
  border-radius: 20px;
  padding: 20px 20px 16px;
  background: rgba(14,16,26,0.96);
  border: 1px solid var(--nv-border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  animation: dialogFloat 0.35s ease;
  z-index: 1;
}
@keyframes dialogFloat {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.overlay-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--nv-border);
  background: rgba(255,255,255,0.04);
  color: var(--nv-text);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.overlay-close-btn:hover { transform: scale(1.05); border-color: var(--nv-accent); }

.overlay-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nv-border);
}
.overlay-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--nv-text);
  font-size: 1rem;
}

.message-search-results {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}

.message-search-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--nv-border);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.message-search-item:hover {
  transform: translateY(-2px);
  border-color: var(--nv-accent);
  background: rgba(124,92,255,0.08);
}
.message-search-meta { display: grid; gap: 3px; min-width: 0; }
.message-search-name { font-weight: 600; color: var(--nv-text); }
.message-search-handle { font-size: 0.88rem; color: var(--nv-accent); }
.message-search-bio { font-size: 0.85rem; color: var(--nv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-search-cta { color: var(--nv-accent-2); font-weight: 600; }

.search-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--nv-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.search-avatar.fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  color: #fff;
  font-weight: 700;
}

.pulse-glow { box-shadow: 0 0 25px rgba(124,92,255,0.35); animation: softGlow 6s ease-in-out infinite; }
@keyframes softGlow {
  0%, 100% { box-shadow: 0 0 22px rgba(124,92,255,0.28); }
  50% { box-shadow: 0 0 38px rgba(124,92,255,0.5); }
}

.chat-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.soft {
  border-radius: 18px;
  border: 1px solid var(--nv-border);
  background: radial-gradient(circle at 18% 12%, rgba(124,92,255,0.05), transparent 40%),
              radial-gradient(circle at 82% 18%, rgba(41,182,246,0.05), transparent 40%),
              rgba(12,14,24,0.82);
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--nv-border);
  background: rgba(0,0,0,0.2);
}
.chat-recipient-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chat-avatar-status {
  position: relative;
}
.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--nv-organic);
  border: 2px solid var(--nv-panel);
}
.chat-recipient-meta h4 {
  margin: 0 0 2px;
  font-size: 1rem;
}
.recipient-status {
  font-size: 0.82rem;
  color: var(--nv-organic);
}
.chat-actions {
  display: flex;
  gap: 8px;
}
.chat-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nv-border);
  color: var(--nv-text);
  cursor: pointer;
  transition: all 0.2s;
}
.chat-action-btn:hover {
  background: var(--nv-accent-soft);
  border-color: var(--nv-accent);
  transform: scale(1.05);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--nv-muted);
}

.message-bubble {
  max-width: 70%;
  padding: 14px 18px;
  border-radius: 18px;
  position: relative;
  animation: messagePop 0.3s ease;
}
@keyframes messagePop {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.message-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.message-bubble.received {
  align-self: flex-start;
  background: var(--nv-panel);
  border: 1px solid var(--nv-border);
  border-bottom-left-radius: 4px;
}
.message-time {
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 6px;
  text-align: right;
}

.chat-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--nv-border);
  background: rgba(0,0,0,0.15);
}
.composer-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--nv-border);
  border-radius: 999px;
  padding: 4px 8px 4px 18px;
  transition: all 0.2s;
}
.composer-input-wrap:focus-within {
  border-color: var(--nv-accent);
  box-shadow: 0 0 25px rgba(124,92,255,0.2);
}
.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--nv-text);
  font-size: 0.95rem;
  padding: 10px 0;
}

/* =============================================================================
   NOTIFICATIONS TAB - Minimal Feed Style
   ============================================================================= */

.notifications-toolbar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--nv-border);
  margin-bottom: 0;
}
.notification-filters {
  display: flex;
  gap: 0;
  flex: 1;
}
.notif-filter-btn {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--nv-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.notif-filter-btn:hover {
  background: rgba(255,255,255,0.03);
  color: var(--nv-text);
}
.notif-filter-btn.active {
  color: var(--nv-text);
  border-bottom-color: var(--nv-accent);
}

.mark-all-read-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--nv-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.mark-all-read-btn:hover {
  color: var(--nv-accent);
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--nv-border);
  cursor: pointer;
  transition: background 0.15s;
}
.notification-item:hover {
  background: rgba(255,255,255,0.02);
}
.notification-item.unread {
  background: rgba(124,92,255,0.03);
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
}
.notif-icon.mention { color: var(--nv-accent); }
.notif-icon.like { color: #ff6b6b; }
.notif-icon.follow { color: var(--nv-accent-2); }
.notif-icon.system { color: var(--nv-organic); }

.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-text {
  margin-bottom: 6px;
  line-height: 1.5;
}
.notif-text strong {
  color: var(--nv-text);
}
.notif-time {
  font-size: 0.82rem;
  color: var(--nv-muted);
}
.notif-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.notif-action-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--nv-border);
  color: var(--nv-text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.notif-action-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--nv-accent);
}
.notif-action-btn.primary {
  background: var(--nv-text);
  border-color: var(--nv-text);
  color: var(--nv-bg-deep);
}
.notif-action-btn.primary:hover {
  background: var(--nv-accent);
  border-color: var(--nv-accent);
  color: #fff;
}

/* Haptic feedback simulation via visual pulse */
.haptic-pulse {
  animation: hapticFeedback 0.15s ease;
}
@keyframes hapticFeedback {
  0% { transform: scale(1); }
  50% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* Dynamic color shifting for accent elements */
.dynamic-accent {
  animation: colorShift 8s ease-in-out infinite;
}
@keyframes colorShift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(30deg); }
}

/* =============================================================================
   FUTURISTIC THREE-DOTS LOADER - Cinematic Dynamic Animation
   ============================================================================= */

.nv-search-loader {
  position: absolute;
  right: 80px; /* Positioned far from close/action buttons */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2;
}
.nv-search-loader.active {
  opacity: 1;
  animation: loaderFadeIn 0.3s ease-out forwards;
}
@keyframes loaderFadeIn {
  0% { opacity: 0; transform: translateY(-50%) scale(0.8); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* Three Dots Container - replaces old ring/core */
.nv-loader-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nv-loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a1d8c; /* Dark purple base */
  animation: dotFuturisticPulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(74, 29, 140, 0.6);
  transform: translateY(0); /* No hopping */
}
.nv-loader-dot:nth-child(1) {
  animation-delay: 0s;
  background: #4a1d8c; /* Dark purple */
}
.nv-loader-dot:nth-child(2) {
  animation-delay: 0.3s;
  background: linear-gradient(135deg, #4a1d8c, #6b2fb3); /* Dark to medium purple */
}
.nv-loader-dot:nth-child(3) {
  animation-delay: 0.6s;
  background: #5c2d91; /* Medium dark purple */
}

/* Futuristic opacity/brightness pulse - NO hopping */
@keyframes dotFuturisticPulse {
  0%, 100% {
    opacity: 0.35;
    filter: brightness(0.7);
    box-shadow: 0 0 4px rgba(74, 29, 140, 0.3);
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    filter: brightness(1.3);
    box-shadow: 0 0 18px rgba(74, 29, 140, 0.9), 0 0 30px rgba(92, 45, 145, 0.5);
    transform: scale(1.1);
  }
}

/* Legacy support - hide old ring/core if present */
.nv-loader-ring,
.nv-loader-core {
  display: none;
}

/* Global search loader positioning - far from edge to not overlap buttons */
.nv-global-search-loader {
  right: 60px;
}
.search-input-wrapper {
  position: relative;
  isolation: isolate; /* Create stacking context */
}

/* Ensure input is always clickable */
.search-input-wrapper .global-search-input {
  position: relative;
  z-index: 2;
}

.nv-global-search-placeholder {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nv-muted);
  font-size: 1rem;
  pointer-events: none; /* Ensure clicks pass through */
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1; /* Below input */
}
.global-search-input:placeholder-shown ~ .nv-global-search-placeholder {
  animation: placeholderFlow 4s ease-in-out infinite;
}
@keyframes placeholderFlow {
  0%, 100% { 
    opacity: 0.5;
    background: linear-gradient(90deg, var(--nv-muted), var(--nv-accent), var(--nv-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: 0% 50%;
  }
  50% { 
    opacity: 0.8;
    background-position: 100% 50%;
  }
}

/* =============================================================================
   MESSAGES TAB - Advanced Glassmorphic Cinematic UI
   ============================================================================= */

.nv-messages-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  min-height: 500px;
  gap: 0;
  overflow: hidden;
  position: relative;
}

/* --- Chat Panel --- */
.nv-chat-panel {
  flex: 1;
  min-height: 0; /* Essential for flex children to respect overflow */
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(12,14,24,0.95), rgba(8,10,18,0.98));
  border: 1px solid rgba(124,92,255,0.15);
  border-radius: 24px;
  overflow: hidden; /* Keep hidden to constrain messages height */
  position: relative;
  box-shadow: 
    0 4px 24px rgba(0,0,0,0.4),
    0 0 80px rgba(124,92,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Maintain border-radius clipping for header */
.nv-chat-panel > header:first-child {
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.nv-chat-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(124,92,255,0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(41,182,246,0.05), transparent 40%);
  pointer-events: none;
}

/* --- Chat Header --- */
.nv-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 1;
}
.nv-chat-header-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nv-accent), var(--nv-accent-2), transparent);
  opacity: 0.6;
}

.nv-chat-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.nv-chat-user-info::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,92,255,0.12), rgba(41,182,246,0.08));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.nv-chat-user-info:hover::before {
  opacity: 1;
}
.nv-chat-user-info:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(124,92,255,0.15);
}
.nv-chat-user-info:active {
  transform: scale(0.97);
}

.nv-chat-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.nv-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  box-shadow: 0 4px 16px rgba(124,92,255,0.25);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.nv-chat-user-info:hover .nv-chat-avatar {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(124,92,255,0.35);
}
.nv-avatar-core {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  overflow: hidden;
}
.nv-avatar-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nv-online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--nv-organic);
  border: 3px solid rgba(12,14,24,0.95);
  box-shadow: 0 0 12px rgba(0,255,136,0.6);
  display: none;
}
.nv-online-indicator.online {
  display: block;
  animation: onlinePulse 2s ease-in-out infinite;
}
@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0,255,136,0.4); }
  50% { box-shadow: 0 0 20px rgba(0,255,136,0.8); }
}

.nv-chat-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nv-chat-display-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nv-text);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}
.nv-chat-user-info:hover .nv-chat-display-name {
  color: var(--nv-accent);
}
/* Handle hidden for minimalist design */
.nv-chat-handle {
  display: none;
}

/* Text Shimmer Effect */
.nv-text-shimmer {
  background: linear-gradient(90deg, var(--nv-text) 0%, var(--nv-accent) 50%, var(--nv-text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 3s ease-in-out infinite;
}
@keyframes textShimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* Single action button - no wrapper needed for minimalist design */
.nv-chat-action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: var(--nv-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  flex-shrink: 0;
}
.nv-chat-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.nv-chat-action-btn:hover {
  border-color: var(--nv-accent);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(124,92,255,0.3);
}
.nv-chat-action-btn:hover::before {
  opacity: 0.15;
}
.nv-chat-action-btn:active {
  transform: scale(0.92);
}
.nv-chat-action-btn i {
  position: relative;
  z-index: 1;
}

/* --- Chat Messages Area --- */
.nv-chat-messages {
  flex: 1;
  min-height: 0; /* Essential for flex child to scroll properly */
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.nv-chat-messages::-webkit-scrollbar {
  width: 4px;
}
.nv-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.nv-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(124,92,255,0.3);
  border-radius: 3px;
}

/* Empty State - Minimalist */
.nv-chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 40px 20px;
  animation: emptyFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes emptyFadeIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.nv-empty-icon {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--nv-accent);
  background: rgba(124,92,255,0.1);
  border-radius: 16px;
  transition: all 0.3s;
}
.nv-empty-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(124,92,255,0.3);
}
.nv-chat-empty-state h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nv-text);
  margin: 0;
}
.nv-chat-empty-state p {
  display: none; /* Minimalist - removed for cleaner look */
}
.nv-start-chat-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(124,92,255,0.3);
  background: linear-gradient(135deg, rgba(124,92,255,0.12), rgba(41,182,246,0.08));
  color: var(--nv-accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}
.nv-start-chat-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.nv-start-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,92,255,0.35);
  color: #fff;
  border-color: transparent;
}
.nv-start-chat-btn:hover::before {
  opacity: 1;
}
.nv-start-chat-btn i,
.nv-start-chat-btn span {
  position: relative;
  z-index: 1;
}
.nv-start-chat-btn:active {
  transform: scale(0.96);
}
/* Legacy support */
.nv-start-chat-btn .nv-btn-glow {
  display: none;
  transition: opacity 0.3s;
}
.nv-start-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,92,255,0.35);
  color: #fff;
}
.nv-start-chat-btn:hover .nv-btn-glow {
  opacity: 1;
}
.nv-start-chat-btn i,
.nv-start-chat-btn span {
  position: relative;
  z-index: 1;
}

/* Message Bubbles */
.nv-message-bubble {
  max-width: 70%;
  padding: 14px 18px;
  border-radius: 20px;
  position: relative;
  animation: bubblePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  transition: all 0.2s ease;
}
@keyframes bubblePop {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.nv-message-bubble:hover {
  transform: translateX(4px);
}
.nv-message-bubble.sent:hover {
  transform: translateX(-4px);
}

.nv-message-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 20px rgba(124,92,255,0.3);
}
.nv-message-bubble.received {
  align-self: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 6px;
  color: var(--nv-text);
}
.nv-message-content {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}
.nv-message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.72rem;
  opacity: 0.7;
}
.nv-message-status {
  font-size: 0.7rem;
}

/* Message Actions (on hover) */
.nv-message-actions {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.nv-message-bubble:hover .nv-message-actions {
  opacity: 1;
}
.nv-message-bubble.sent .nv-message-actions {
  left: -36px;
}
.nv-message-bubble.received .nv-message-actions {
  right: -36px;
}
.nv-msg-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--nv-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s;
}
.nv-msg-action-btn:hover {
  background: rgba(255,80,80,0.2);
  color: #ff5050;
}

/* --- Chat Composer --- */
.nv-chat-composer {
  padding: 16px 24px 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 10;
  width: 100%;
  overflow: visible;
}
.nv-composer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nv-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.nv-chat-composer:focus-within .nv-composer-glow {
  opacity: 0.8;
}
.nv-composer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.nv-composer-input-wrap {
  flex: 1 1 100%;
  min-width: 0;
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  box-sizing: border-box;
}
.nv-composer-input-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(124,92,255,0.06) 50%, transparent 60%);
  background-size: 300% 300%;
  animation: cinematicShadowMove 8s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
}
.nv-composer-input-wrap:hover::before,
.nv-composer-input-wrap:focus-within::before {
  opacity: 1;
}
@keyframes cinematicShadowMove {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}
.nv-composer-input-wrap:focus-within {
  border-color: var(--nv-accent);
  box-shadow: 
    0 0 40px rgba(124,92,255,0.2),
    0 0 80px rgba(124,92,255,0.08),
    inset 0 0 30px rgba(124,92,255,0.05);
  transform: translateY(-1px);
}
.nv-chat-input {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--nv-text);
  font-size: 0.95rem;
}
.nv-chat-input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.nv-input-placeholder-anim {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nv-muted);
  font-size: 0.95rem;
  pointer-events: none; /* CRITICAL: Clicks pass through to input */
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
  z-index: 1; /* Below input which has higher z-index */
}

/* Ensure chat input is always on top and clickable */
.nv-composer-input-wrap .nv-chat-input {
  position: relative;
  z-index: 5;
}

.nv-chat-input:placeholder-shown:not(:focus) ~ .nv-input-placeholder-anim {
  animation: placeholderFadeFlow 5s ease-in-out infinite;
}
@keyframes placeholderFadeFlow {
  0% {
    opacity: 0;
    background: linear-gradient(90deg, var(--nv-muted) 0%, var(--nv-accent) 50%, var(--nv-muted) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-position: 0% 50%;
    transform: translateY(-50%) translateX(-5px);
  }
  15% {
    opacity: 0.9;
    transform: translateY(-50%) translateX(0);
  }
  50% {
    opacity: 0.7;
    background-position: 100% 50%;
  }
  85% {
    opacity: 0.9;
    transform: translateY(-50%) translateX(0);
  }
  100% {
    opacity: 0;
    background-position: 200% 50%;
    transform: translateY(-50%) translateX(5px);
  }
}
/* Focus transition - fade out placeholder */
.nv-chat-input:focus ~ .nv-input-placeholder-anim {
  opacity: 0 !important;
  animation: none;
  transform: translateY(-50%) translateX(10px);
}

.nv-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 16px rgba(124,92,255,0.3);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.nv-send-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--nv-accent-2), var(--nv-organic));
  opacity: 0;
  transition: opacity 0.3s;
}
.nv-send-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 8px 28px rgba(124,92,255,0.5);
}
.nv-send-btn:hover:not(:disabled)::before {
  opacity: 1;
}
.nv-send-btn:active:not(:disabled) {
  transform: scale(0.92);
}
.nv-send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(124,92,255,0.3);
}
.nv-send-btn i {
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
}
.nv-send-btn:hover:not(:disabled) i {
  transform: translateY(-2px);
}

/* =============================================================================
   MESSAGE SEARCH OVERLAY - Redesigned with Recent Chats Panel
   ============================================================================= */

.nv-message-search-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 15000;
  padding: 20px;
}
.nv-message-search-overlay[aria-hidden="false"],
.nv-message-search-overlay.active {
  display: flex;
}
.nv-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,6,12,0.75);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  animation: backdropFadeIn 0.3s ease;
}
@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nv-search-dialog {
  position: relative;
  width: min(900px, 92vw);
  max-height: 80vh;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(14,16,28,0.98), rgba(10,12,22,0.99));
  border: 1px solid rgba(124,92,255,0.2);
  box-shadow: 
    0 32px 80px rgba(0,0,0,0.5),
    0 0 100px rgba(124,92,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  animation: dialogSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
@keyframes dialogSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.nv-dialog-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nv-accent), var(--nv-accent-2), var(--nv-accent));
  background-size: 200% 100%;
  animation: glowFlow 3s linear infinite;
}
@keyframes glowFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.nv-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nv-search-title {
  display: flex;
  align-items: center;
}
/* Minimalist - hide icon */
.nv-title-icon {
  display: none;
}
.nv-eyebrow {
  display: none;
}
.nv-search-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nv-text);
  margin: 0;
}
.nv-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: var(--nv-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.nv-close-btn:hover {
  background: rgba(255,80,80,0.12);
  border-color: rgba(255,80,80,0.25);
  color: #ff6b6b;
  transform: rotate(90deg);
}

.nv-search-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  max-height: calc(80vh - 100px);
}

/* Left Panel: Search */
.nv-search-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.nv-search-bar {
  padding: 16px 20px;
}
.nv-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}
.nv-search-input-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(124,92,255,0.05) 50%, transparent 60%);
  background-size: 300% 300%;
  animation: cinematicShadowMove 8s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.nv-search-input-wrap:hover::before,
.nv-search-input-wrap:focus-within::before {
  opacity: 1;
}
.nv-search-input-wrap:focus-within {
  border-color: var(--nv-accent);
  box-shadow: 0 0 40px rgba(124,92,255,0.15), inset 0 0 20px rgba(124,92,255,0.03);
}
.nv-search-icon {
  padding: 0 0 0 14px;
  color: var(--nv-muted);
  font-size: 0.88rem;
  transition: color 0.3s;
  z-index: 1;
  flex-shrink: 0;
}
.nv-search-input-wrap:focus-within .nv-search-icon {
  color: var(--nv-accent);
}
.nv-search-input {
  flex: 1;
  padding: 12px 14px;
  padding-right: 60px; /* Space for loader */
  background: transparent;
  border: none;
  outline: none;
  color: var(--nv-text);
  font-size: 0.92rem;
  position: relative;
  z-index: 3; /* Ensure input is on top */
}
.nv-search-placeholder-anim {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nv-muted);
  font-size: 0.92rem;
  pointer-events: none; /* Clicks pass through */
  white-space: nowrap;
  z-index: 1; /* Below input */
}
.nv-search-input:placeholder-shown:not(:focus) ~ .nv-search-placeholder-anim {
  animation: placeholderFadeFlow 5s ease-in-out infinite;
}
.nv-search-input:focus ~ .nv-search-placeholder-anim {
  opacity: 0 !important;
  animation: none;
  transform: translateY(-50%) translateX(8px);
  transition: all 0.3s;
}

.nv-search-results-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
}
.nv-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Search Result Card */
.nv-search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  animation: resultFadeIn 0.35s ease both;
}
@keyframes resultFadeIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.nv-search-result-card:hover {
  background: rgba(124,92,255,0.08);
  border-color: var(--nv-accent);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(124,92,255,0.15);
}
.nv-search-result-card:active {
  transform: scale(0.98);
}

.nv-result-avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.nv-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nv-result-info {
  flex: 1;
  min-width: 0;
}
.nv-result-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--nv-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nv-result-handle {
  font-size: 0.8rem;
  color: var(--nv-accent);
}
/* Bio hidden for minimalist design */
.nv-result-bio {
  display: none;
}
.nv-result-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  color: #fff;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
}
.nv-result-action:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(124,92,255,0.4);
}

/* Right Panel: Recent Chats */
.nv-search-right {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.1);
  overflow: hidden;
}
.nv-recent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--nv-muted);
}
.nv-recent-header i {
  color: var(--nv-accent);
}
.nv-recent-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Recent Chat Card */
.nv-recent-chat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.nv-recent-chat-card:hover {
  background: rgba(124,92,255,0.1);
  border-color: rgba(124,92,255,0.25);
  transform: translateX(-3px);
}
.nv-recent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s;
}
.nv-recent-chat-item:hover .nv-recent-avatar {
  transform: scale(1.08);
}
.nv-recent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nv-recent-info {
  flex: 1;
  min-width: 0;
}
.nv-recent-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nv-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}
.nv-recent-chat-item:hover .nv-recent-name {
  color: var(--nv-accent);
}
/* Hide preview for minimalist design */
.nv-recent-preview {
  display: none;
  text-overflow: ellipsis;
}
.nv-recent-unread {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(124,92,255,0.5);
}

/* =============================================================================
   DELETE MESSAGE OVERLAY - Professional Confirmation Dialog
   ============================================================================= */

.nv-delete-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 16000;
  padding: 20px;
}
.nv-delete-overlay[aria-hidden="false"],
.nv-delete-overlay.active {
  display: flex;
}
.nv-delete-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,6,12,0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nv-delete-dialog {
  position: relative;
  width: min(380px, 90vw);
  padding: 32px 28px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(14,16,28,0.98), rgba(10,12,22,0.99));
  border: 1px solid rgba(255,80,80,0.15);
  box-shadow: 
    0 24px 60px rgba(0,0,0,0.5),
    0 0 40px rgba(255,80,80,0.08);
  text-align: center;
  animation: deleteDialogIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
@keyframes deleteDialogIn {
  from { opacity: 0; transform: scale(0.92); filter: blur(4px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
/* Hidden for minimalist design */
.nv-delete-icon {
  display: none;
}
.nv-delete-dialog h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--nv-text);
  margin: 0 0 16px;
}
.nv-delete-dialog p {
  display: none;
}
.nv-delete-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.nv-delete-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  color: var(--nv-text);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.nv-delete-option:hover {
  background: rgba(255,80,80,0.12);
  border-color: rgba(255,80,80,0.25);
  transform: translateY(-1px);
}
.nv-delete-option:active {
  transform: scale(0.97);
}
/* Hidden icons/descriptions for minimalist design */
.nv-delete-option i,
.nv-delete-option small {
  display: none;
}
.nv-delete-option span {
  font-weight: 500;
  font-size: 0.9rem;
}
.nv-delete-cancel {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--nv-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.nv-delete-cancel:hover {
  background: rgba(255,255,255,0.05);
  color: var(--nv-text);
}

/* =============================================================================
   CLICK FLASH & CINEMATIC INTERACTION EFFECTS
   ============================================================================= */

/* Click Flash Effect - Enhanced */
.nv-click-flash {
  position: relative;
  overflow: hidden;
}
.nv-click-flash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--flash-x, 50%) var(--flash-y, 50%), rgba(124,92,255,0.5), transparent 50%);
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}
.nv-click-flash.flash::after {
  animation: clickFlashBurst 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes clickFlashBurst {
  0% { 
    opacity: 1; 
    transform: scale(0);
    filter: brightness(1.5);
  }
  50% {
    opacity: 0.6;
    filter: brightness(1.2);
  }
  100% { 
    opacity: 0; 
    transform: scale(2.5);
    filter: brightness(1);
  }
}

/* Color Flash Effect for Buttons */
.nv-color-flash {
  position: relative;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.nv-color-flash::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2), var(--nv-organic));
  background-size: 300% 300%;
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
  filter: blur(8px);
}
.nv-color-flash:hover::before {
  opacity: 0.6;
  animation: colorFlashGlow 2s ease-in-out infinite;
}
.nv-color-flash:active::before {
  opacity: 1;
  animation: colorFlashPulse 0.3s ease-out;
}
@keyframes colorFlashGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes colorFlashPulse {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.3); }
}

/* Container Fade Animation */
.nv-container-fade {
  animation: containerFadeIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes containerFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Cinematic Moving Shadow Effect */
.nv-cinematic-shadow {
  position: relative;
}
.nv-cinematic-shadow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(124,92,255,0.08) 45%,
    rgba(41,182,246,0.06) 55%,
    transparent 70%
  );
  background-size: 400% 400%;
  animation: cinematicShadowSweep 12s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes cinematicShadowSweep {
  0%, 100% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

/* Interactive Glow Border */
.nv-glow-border {
  position: relative;
}
.nv-glow-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2), var(--nv-accent));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.nv-glow-border:hover::after,
.nv-glow-border:focus-within::after {
  opacity: 1;
  animation: glowBorderFlow 3s linear infinite;
}
@keyframes glowBorderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* =============================================================================
   MESSAGE BUBBLES - New Glassmorphic Design with Delete Buttons
   ============================================================================= */

.nv-message-group {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: messageSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.nv-message-group.sent {
  align-self: flex-end;
  align-items: flex-end;
}
.nv-message-group.received {
  align-self: flex-start;
  align-items: flex-start;
}
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nv-message-bubble {
  position: relative;
  padding: 12px 16px;
  border-radius: 20px;
  max-width: 100%;
  word-wrap: break-word;
  transition: all 0.2s ease;
}
.nv-message-bubble.sent {
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 20px rgba(124,92,255,0.25);
}
.nv-message-bubble.received {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--nv-text);
  border-bottom-left-radius: 6px;
}
.nv-message-bubble:hover {
  transform: translateY(-2px);
}
.nv-message-bubble.sent:hover {
  box-shadow: 0 8px 30px rgba(124,92,255,0.35);
}
.nv-message-bubble.received:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

.nv-message-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.nv-message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.72rem;
}
.nv-message-bubble.sent .nv-message-meta {
  color: rgba(255,255,255,0.7);
}
.nv-message-bubble.received .nv-message-meta {
  color: var(--nv-muted);
}

.nv-message-time {
  opacity: 0.8;
}

.nv-message-delete {
  opacity: 0;
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 0.7rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: inherit;
}
.nv-message-bubble:hover .nv-message-delete {
  opacity: 0.6;
}
.nv-message-delete:hover {
  opacity: 1 !important;
  background: rgba(255,80,80,0.2);
  color: #ff6b6b;
}

/* Chat Welcome / Empty State */
.nv-chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
  color: var(--nv-muted);
  animation: fadeIn 0.5s ease;
}
.nv-welcome-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(41,182,246,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--nv-accent);
}
.nv-chat-welcome span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nv-text);
}
.nv-chat-welcome p {
  font-size: 0.9rem;
  margin: 0;
}

/* Chat Error State */
.nv-chat-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  text-align: center;
  color: var(--nv-muted);
}
.nv-chat-error i {
  font-size: 2rem;
  color: #ff6b6b;
}
.nv-chat-error span {
  font-size: 1rem;
  font-weight: 500;
}

/* Recent Chat Item in Overlay */
.nv-recent-chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--nv-text);
  transition: all 0.25s ease;
  animation: resultFadeIn 0.35s ease both;
}
.nv-recent-chat-item:hover {
  background: rgba(124,92,255,0.08);
  border-color: rgba(124,92,255,0.3);
  transform: translateX(-4px);
}
.nv-recent-chat-item:active {
  transform: scale(0.98);
}
.nv-recent-chat-item .initials {
  font-weight: 700;
  font-size: 0.85rem;
}
.nv-recent-handle {
  font-size: 0.78rem;
  color: var(--nv-accent);
  margin-top: 2px;
}
.nv-recent-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(124,92,255,0.5);
}
.nv-recent-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  color: var(--nv-muted);
  text-align: center;
}
.nv-recent-empty i {
  font-size: 1.5rem;
  opacity: 0.5;
}
.nv-recent-empty span {
  font-size: 0.85rem;
}

/* Search Empty State */
.nv-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  text-align: center;
  color: var(--nv-muted);
}
.nv-search-empty i {
  font-size: 2rem;
  opacity: 0.5;
  color: var(--nv-accent);
}
.nv-search-empty span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nv-text);
}
.nv-search-empty p {
  font-size: 0.85rem;
  margin: 0;
}

/* Search Result Item (Button Style) */
.nv-search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--nv-text);
  transition: all 0.25s ease;
  animation: resultFadeIn 0.35s ease both;
}
.nv-search-result-item:hover {
  background: rgba(124,92,255,0.08);
  border-color: var(--nv-accent);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(124,92,255,0.15);
}
.nv-search-result-item:active {
  transform: scale(0.98);
}
.nv-result-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nv-result-avatar-initials {
  font-weight: 700;
  font-size: 1rem;
}
.nv-result-action {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.2s;
}
.nv-search-result-item:hover .nv-result-action {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(124,92,255,0.4);
}

/* Avatar Image in Chat Header */
.nv-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.nv-avatar-initials {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

/* Send Button Sending State */
.nv-send-btn.sending {
  animation: sendPulse 0.6s ease infinite;
}
@keyframes sendPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.9); }
}

/* Responsive adjustments for search overlay */
@media (max-width: 768px) {
  .nv-search-content {
    grid-template-columns: 1fr;
  }
  .nv-search-right {
    display: none;
  }
  .nv-search-dialog {
    width: 95vw;
    max-height: 85vh;
  }
  .nv-message-group {
    max-width: 90%;
  }
}

/* =============================================================================
   PROFESSIONAL MESSAGE INPUT - Extended Width with Emoji & Enter Icon
   ============================================================================= */

.nv-pro-composer {
  gap: 0;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

.nv-extended-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  width: 100%;
  min-width: 0;
  flex: 1 1 100%;
  border-radius: 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-sizing: border-box;
}

.nv-extended-input:focus-within {
  border-color: var(--nv-accent);
  background: rgba(255,255,255,0.04);
  box-shadow: 
    0 0 40px rgba(124,92,255,0.15),
    0 0 80px rgba(124,92,255,0.06),
    inset 0 0 25px rgba(124,92,255,0.03);
  transform: translateY(-1px);
}

.nv-extended-input .nv-chat-input {
  flex: 1 1 auto;
  padding: 12px 16px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--nv-text);
  font-size: 0.95rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.nv-extended-input .nv-input-placeholder-anim {
  left: 56px;
}

/* Emoji Button */
.nv-emoji-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.04);
  color: var(--nv-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
  pointer-events: auto;
}

.nv-emoji-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,200,50,0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.nv-emoji-btn:hover {
  background: rgba(255,200,50,0.15);
  color: #ffc832;
  transform: scale(1.1) rotate(5deg);
}

.nv-emoji-btn:hover::before {
  opacity: 1;
}

.nv-emoji-btn:active {
  transform: scale(0.95);
}

.nv-emoji-btn.active {
  background: rgba(255,200,50,0.2);
  color: #ffc832;
  box-shadow: 0 0 20px rgba(255,200,50,0.3);
}

/* Inline Send Button - Professional Minimal Design */
.nv-inline-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--nv-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  pointer-events: none;
}

/* Show send button only when input has text (handled via JS adding active class) */
.nv-inline-send-btn.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.nv-inline-send-btn:hover:not(:disabled) {
  color: var(--nv-accent-2);
  transform: scale(1.15);
  text-shadow: 0 0 20px rgba(124,92,255,0.6);
}

.nv-inline-send-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.nv-inline-send-btn:disabled {
  cursor: not-allowed;
}

.nv-inline-send-btn i {
  position: relative;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.nv-inline-send-btn:hover:not(:disabled) i {
  transform: translateX(2px);
}

/* =============================================================================
   EMOJI PICKER OVERLAY
   ============================================================================= */

.nv-emoji-picker-overlay {
  position: fixed;
  bottom: 100px; /* Position above the chat composer */
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 9999;
  pointer-events: none;
}

.nv-emoji-picker-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nv-emoji-picker {
  width: 420px;
  max-width: 95vw;
  background: linear-gradient(145deg, rgba(12,14,24,0.98), rgba(8,10,18,0.99));
  border: 1px solid rgba(124,92,255,0.2);
  border-radius: 24px;
  box-shadow: 
    0 24px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(124,92,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  animation: emojiPickerIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes emojiPickerIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.nv-emoji-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.25);
}

.nv-emoji-picker-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nv-text);
  letter-spacing: 0.03em;
}

.nv-emoji-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.04);
  color: var(--nv-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nv-emoji-close-btn:hover {
  background: rgba(255,80,80,0.15);
  color: #ff6b6b;
  transform: rotate(90deg);
}

.nv-emoji-categories {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.15);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nv-emoji-categories::-webkit-scrollbar {
  display: none;
}

.nv-emoji-cat-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  color: var(--nv-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
}

.nv-emoji-cat-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--nv-text);
  transform: scale(1.08);
}

.nv-emoji-cat-btn.active {
  background: rgba(124,92,255,0.2);
  border-color: var(--nv-accent);
  color: var(--nv-accent);
  box-shadow: 0 0 18px rgba(124,92,255,0.25);
  transform: scale(1.05);
}

/* Emoji Search Styling */
.nv-emoji-search-wrap {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.1);
}

.nv-emoji-search {
  width: 100%;
  padding: 10px 14px;
  padding-left: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  color: var(--nv-text);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nv-emoji-search::placeholder {
  color: var(--nv-muted);
}

.nv-emoji-search:focus {
  border-color: rgba(124,92,255,0.4);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 20px rgba(124,92,255,0.15);
}

.nv-emoji-search-wrap {
  position: relative;
}

.nv-emoji-search-wrap::before {
  content: '\f002';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nv-muted);
  font-size: 0.75rem;
  pointer-events: none;
}

.nv-emoji-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  padding: 14px;
  max-height: 280px;
  overflow-y: auto;
}

.nv-emoji-grid::-webkit-scrollbar {
  width: 6px;
}

.nv-emoji-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
  border-radius: 3px;
}

.nv-emoji-grid::-webkit-scrollbar-thumb {
  background: rgba(124,92,255,0.3);
  border-radius: 3px;
}

.nv-emoji-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.nv-emoji-item:hover {
  background: rgba(124,92,255,0.15);
  transform: scale(1.25);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nv-emoji-item:active {
  transform: scale(0.9);
}

.nv-emoji-item.selected {
  animation: emojiPop 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes emojiPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Empty state for search */
.nv-emoji-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 20px;
  color: var(--nv-muted);
  font-size: 0.85rem;
}

.nv-emoji-empty i {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 1200px) {
  .community-body { grid-template-columns: 68px 1fr; max-width: none; }
  .sidebar-right { display: none; }
  .messages-container { grid-template-columns: 280px 1fr; }
}
@media (max-width: 960px) {
  .community-body { grid-template-columns: 1fr; border: none; }
  .sidebar-left { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    flex-direction: row; 
    justify-content: space-around;
    padding: 8px 0;
    background: var(--nv-panel);
    border-top: 1px solid var(--nv-border);
    border-right: none;
    z-index: 100;
  }
  .sidebar-nav { flex-direction: row; gap: 0; }
  .sidebar-btn { width: 48px; height: 48px; }
  .content-area { padding-bottom: 70px; }
  .pulse-cards-container { grid-template-columns: 1fr 1fr; }
  .messages-container { grid-template-columns: 1fr; }
  .conversations-list { max-height: 300px; }
}
@media (max-width: 640px) {
  .community-header { padding: 12px 16px; }
  .pulse-cards-container { grid-template-columns: 1fr; }
}

/* =============================================================================
   TAGGED USERS PANEL IN ASSET OVERLAY
   ============================================================================= */

.pulse-overlay-tagged-btn {
  min-width: auto;
  padding: 8px 12px;
}

.pulse-overlay-tagged-btn .nv-btn-text {
  font-size: 0.85rem;
}

.pulse-overlay-tagged-users-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  max-width: 90%;
  max-height: 400px;
  background: linear-gradient(145deg, rgba(12, 14, 24, 0.98), rgba(8, 10, 18, 0.99));
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 20px;
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(124, 92, 255, 0.18);
  z-index: 100;
  overflow: hidden;
  animation: taggedPanelIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes taggedPanelIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.pulse-overlay-tagged-users-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pulse-overlay-tagged-users-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nv-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-overlay-tagged-users-header h5 i {
  color: var(--nv-accent);
}

.pulse-overlay-tagged-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--nv-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.pulse-overlay-tagged-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--nv-text);
}

.pulse-overlay-tagged-users-list {
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pulse-overlay-tagged-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pulse-overlay-tagged-user-item:hover {
  background: rgba(124, 92, 255, 0.12);
}

.pulse-overlay-tagged-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.pulse-overlay-tagged-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pulse-overlay-tagged-user-info {
  flex: 1;
  min-width: 0;
}

.pulse-overlay-tagged-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nv-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-overlay-tagged-user-handle {
  font-size: 0.8rem;
  color: var(--nv-muted);
}

.pulse-overlay-tagged-empty {
  padding: 24px;
  text-align: center;
  color: var(--nv-muted);
  font-size: 0.9rem;
}

/* =============================================================================
   MOBILE VIEW STYLES - COMMUNITY NEXUS
   Studio-like mobile layout with community aesthetics
   ============================================================================= */

/* CSS Variables for mobile */
:root {
  --nv-mobile-nav-height: 65px;
  --nv-mobile-header-height: 53px;
}

/* === MOBILE PROFILE AVATAR IN HEADER === */
.mobile-profile-avatar {
  display: none; /* Hidden on desktop */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  border: 2px solid var(--nv-border);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s var(--nv-transition);
  box-shadow: 0 4px 15px rgba(124, 92, 255, 0.25);
}

.mobile-profile-avatar:hover {
  transform: scale(1.08);
  border-color: var(--nv-accent);
  box-shadow: 0 6px 25px rgba(124, 92, 255, 0.4);
}

.mobile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.mobile-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* === MOBILE BOTTOM NAVIGATION === */
.mobile-nav {
  display: none; /* Hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nv-mobile-nav-height);
  background: linear-gradient(145deg, rgba(12, 14, 26, 0.96), rgba(8, 10, 18, 0.98));
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid var(--nv-border);
  z-index: 1005;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
}

.mobile-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.4), transparent);
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  color: var(--nv-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  gap: 4px;
  cursor: pointer;
  transition: all 0.25s var(--nv-transition);
  position: relative;
}

.mobile-nav-link i {
  font-size: 1.2rem;
  transition: all 0.25s var(--nv-transition);
}

.mobile-nav-link span {
  letter-spacing: 0.02em;
}

.mobile-nav-link:hover {
  color: var(--nv-text);
}

.mobile-nav-link.active {
  color: var(--nv-accent);
}

.mobile-nav-link.active i {
  text-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
  transform: scale(1.1);
}

/* Home button special styling (center, elevated) */
.mobile-nav-link[data-tab="home"].active {
  position: relative;
}

.mobile-nav-link[data-tab="home"].active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(0, 229, 160, 0.15));
  border-radius: 50%;
  z-index: -1;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

/* === MOBILE PROFILE PANEL OVERLAY === */
.mobile-profile-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1010;
  visibility: hidden;
  opacity: 0;
  transition: all 0.35s var(--nv-transition);
}

.mobile-profile-panel-overlay.visible {
  visibility: visible;
  opacity: 1;
}

.mobile-profile-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mobile-profile-panel {
  position: absolute;
  top: var(--nv-mobile-header-height);
  right: 0;
  width: min(320px, 90vw);
  max-height: calc(100vh - var(--nv-mobile-header-height) - var(--nv-mobile-nav-height) - 20px);
  background: linear-gradient(145deg, rgba(12, 14, 26, 0.98), rgba(8, 10, 18, 0.99));
  border: 1px solid var(--nv-border);
  border-radius: 0 0 0 24px;
  box-shadow: -10px 20px 60px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--nv-transition);
}

.mobile-profile-panel-overlay.visible .mobile-profile-panel {
  transform: translateX(0);
}

.mobile-profile-panel-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-profile-banner {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  min-height: 100px;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.35), rgba(18, 194, 233, 0.3));
}

.mobile-profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.mobile-profile-avatar-large {
  position: absolute;
  left: 12px;
  bottom: -35px;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(7, 11, 25, 0.9);
  border: 3px solid var(--nv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nv-text);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.mobile-profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-profile-info {
  margin-top: 30px;
  padding: 0 4px;
}

.mobile-profile-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.mobile-profile-handle {
  color: var(--nv-muted);
  font-size: 0.9rem;
}

.mobile-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-profile-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-profile-stats .stat span {
  font-size: 1rem;
  font-weight: 700;
}

.mobile-profile-stats .stat label {
  font-size: 0.65rem;
  color: var(--nv-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.mobile-profile-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--nv-border);
  background: rgba(124, 92, 255, 0.15);
  color: var(--nv-text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--nv-transition);
}

.mobile-profile-view-btn:hover {
  background: rgba(124, 92, 255, 0.25);
  border-color: var(--nv-accent);
}

/* === MOBILE-SPECIFIC RESPONSIVE STYLES === */
@media (max-width: 768px) {
  /* Show mobile elements */
  .mobile-nav {
    display: flex;
  }
  
  .mobile-profile-avatar {
    display: block;
  }
  
  /* Hide desktop elements */
  .desktop-profile-link {
    display: none;
  }
  
  .sidebar-left {
    display: none !important;
  }
  
  .sidebar-right {
    display: none !important;
  }
  
  /* Update main body grid for mobile */
  .community-body {
    display: block;
    padding: 16px 12px calc(var(--nv-mobile-nav-height) + 20px);
    max-width: 100%;
  }
  
  .content-area {
    padding-bottom: 0;
  }
  
  /* Header adjustments for mobile */
  .community-header {
    padding: 0 12px;
    height: var(--nv-mobile-header-height);
  }
  
  .logo-text {
    font-size: 0.7rem;
  }
  
  /* === MOBILE HOME TAB - 2x2 CARDS GRID === */
  .pulse-cards-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  
  .pulse-card {
    min-height: 90px;
    padding: 16px 12px;
    border-radius: 14px;
  }
  
  .pulse-card-icon {
    font-size: 1.3rem;
  }
  
  .pulse-card-label {
    font-size: 0.75rem;
  }
  
  /* Pulse Query Bar mobile */
  .pulse-query-container {
    padding: 12px;
  }
  
  .pulse-query-bar {
    padding: 4px 4px 4px 14px;
  }
  
  .pulse-query-input {
    font-size: 0.9rem;
    padding: 10px 0;
  }
  
  .pulse-query-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  /* === INSTAGRAM-STYLE ASSET GRID FOR MOBILE === */
  .pulse-card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 3px !important;
  }
  
  .pulse-asset-card {
    border-radius: 0 !important;
    min-height: 0;
    aspect-ratio: 1;
  }
  
  /* Instagram-style varying heights pattern */
  .pulse-asset-card:nth-child(6n+3) {
    grid-row: span 2;
    aspect-ratio: auto;
  }
  
  .pulse-asset-card:nth-child(6n+4) {
    grid-row: span 2;
    aspect-ratio: auto;
  }
  
  /* Home feed card grid - Instagram style */
  .pulse-card-stage {
    padding: 12px;
    border-radius: 12px;
    margin-top: 12px;
  }
  
  .pulse-card-stage-header {
    margin-bottom: 12px;
  }
  
  .pulse-card-back {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  /* === FEED TAB MOBILE STYLES === */
  .composer {
    padding: 12px;
    gap: 10px;
  }
  
  .composer-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .composer textarea {
    min-height: 60px;
    font-size: 0.9rem;
  }
  
  .feed-filters {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .filter-chip {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  
  /* Feed post cards mobile - Instagram grid */
  #pulse-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 0;
  }
  
  .home-feed-card {
    border-radius: 0;
    min-height: 0;
    aspect-ratio: 1;
  }
  
  .home-feed-card:nth-child(6n+3) {
    grid-row: span 2;
    aspect-ratio: auto;
  }
  
  .home-feed-card:nth-child(6n+4) {
    grid-row: span 2;
    aspect-ratio: auto;
  }
  
  .home-feed-body {
    padding: 8px 10px;
    gap: 4px;
  }
  
  .home-feed-pill {
    font-size: 0.6rem;
    display: none;
  }
  
  .home-feed-body h4 {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .home-feed-body p {
    display: none;
  }
  
  .home-feed-stats {
    font-size: 0.7rem;
    gap: 8px;
    display: none;
  }
  
  /* === SEARCH TAB MOBILE === */
  .search-container {
    padding: 12px;
  }
  
  .search-input-wrapper {
    padding: 6px 12px;
  }
  
  .global-search-input {
    font-size: 0.9rem;
    padding: 10px 0;
  }
  
  .search-filters {
    gap: 6px;
    margin-top: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  
  .search-filter-chip {
    padding: 6px 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  
  .search-results-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 8px 0;
  }
  
  /* === MESSAGES TAB MOBILE === */
  .nv-messages-container {
    padding: 0;
  }
  
  .nv-chat-panel {
    border-radius: 0;
    height: calc(100vh - var(--nv-mobile-header-height) - var(--nv-mobile-nav-height) - 32px);
  }
  
  .nv-chat-header {
    padding: 12px;
  }
  
  .nv-chat-messages {
    padding: 12px;
  }
  
  .nv-chat-composer {
    padding: 10px 12px;
  }
  
  /* Message Search Overlay mobile */
  .nv-search-dialog {
    width: 95vw;
    max-height: 80vh;
    border-radius: 20px;
  }
  
  .nv-search-content {
    flex-direction: column;
  }
  
  .nv-search-left,
  .nv-search-right {
    width: 100%;
    max-width: none;
  }
  
  /* === NOTIFICATIONS TAB MOBILE === */
  .notifications-toolbar {
    padding: 12px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .notification-filters {
    gap: 6px;
  }
  
  .notif-filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .notifications-list {
    padding: 0 12px;
  }
  
  /* === PROFILE TABS MOBILE === */
  .community-profile-view {
    padding: 0 12px 20px;
  }
  
  .profile-view-back {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .community-profile-card {
    border-radius: 20px;
  }
  
  .community-profile-banner {
    height: 160px;
  }
  
  .community-profile-avatar {
    left: 16px;
    bottom: -45px;
  }
  
  .community-profile-avatar .avatar-visual {
    width: 90px;
    height: 90px;
    border-radius: 24px;
  }
  
  .community-profile-body {
    padding: 60px 16px 32px;
    gap: 24px;
  }
  
  .community-profile-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .community-profile-header h2 {
    font-size: 1.3rem;
  }
  
  .profile-panel-stats {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .profile-panel-stats .stat {
    min-width: 100px;
    flex: 1;
    padding: 10px 12px;
  }
  
  .profile-works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }
  
  .profile-work-card {
    border-radius: 0;
    min-height: 0;
    aspect-ratio: 1;
  }
  
  .profile-work-media {
    padding-top: 100%;
  }
  
  .profile-work-body {
    display: none;
  }
  
  /* === ASSET OVERLAY MOBILE === */
  .pulse-asset-overlay {
    padding: 0;
  }
  
  .pulse-asset-overlay-panel {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 50vh 1fr;
  }
  
  .pulse-asset-overlay-media {
    max-height: 50vh;
  }
  
  .pulse-asset-overlay-meta {
    padding: 16px;
    overflow-y: auto;
    max-height: calc(50vh - 20px);
  }
  
  .pulse-asset-overlay-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
  
  /* Comments section mobile */
  .pulse-overlay-comments-section {
    max-height: 150px;
  }
  
  .pulse-overlay-comments-list {
    max-height: 100px;
  }
  
  /* === ABOUT EDITOR MODAL MOBILE === */
  .about-editor-modal {
    padding: 16px;
  }
  
  .about-editor-panel {
    width: 100%;
    border-radius: 20px;
    padding: 20px;
  }
  
  .about-editor-body textarea {
    min-height: 120px;
    font-size: 0.9rem;
  }
  
  /* === ROUTER RESULTS MOBILE === */
  .pulse-router-results {
    min-height: 300px;
    padding: 12px;
  }
  
  .router-decision-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .router-intent-badge,
  .router-content-type {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .alternatives-grid {
    grid-template-columns: 1fr;
  }
}

/* === EXTRA SMALL MOBILE (< 480px) === */
@media (max-width: 480px) {
  .pulse-cards-container {
    gap: 8px;
  }
  
  .pulse-card {
    min-height: 80px;
    padding: 14px 10px;
  }
  
  .pulse-card-icon {
    font-size: 1.1rem;
  }
  
  .pulse-card-label {
    font-size: 0.7rem;
  }
  
  .mobile-nav-link {
    font-size: 0.6rem;
  }
  
  .mobile-nav-link i {
    font-size: 1.1rem;
  }
  
  .community-header {
    padding: 0 10px;
  }
  
  .logo-text {
    font-size: 0.65rem;
  }
  
  /* Smaller grid assets */
  .pulse-card-grid,
  #pulse-feed,
  .search-results-grid,
  .profile-works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }
}

/* =============================================================================
   INSTAGRAM EXPLORE-STYLE MASONRY GRID
   Pure CSS Grid implementation for tight-packing 3-column masonry layout.
   
   PATTERN LOGIC (repeating every 10 items):
   - Items 1-5: Card 3 (index 2) is tall → right column, spans 2 rows
   - Items 6-10: Card 6 (index 5) is tall → left column, spans 2 rows
   - Then repeats: Card 13 tall (right), Card 16 tall (left), etc.
   
   Visual representation (3-column grid):
   Row 1:  [1] [2] [3]     ← Card 3 spans rows 1-2 (tall, right)
   Row 2:  [4] [5] [3]
   Row 3:  [6] [7] [8]     ← Card 6 spans rows 3-4 (tall, left)
   Row 4:  [6] [9] [10]
   ============================================================================= */

/* === BASE MASONRY GRID (Mobile-First) === */
.nv-masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 100%;
  padding: 0;
}

/* Standard square cards */
.nv-masonry-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--nv-bg-mid);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* Smooth loading animation */
  animation: nvMasonryFadeIn 0.3s ease-out forwards;
}

@keyframes nvMasonryFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* Tall card - spans 2 rows while keeping 1 column width */
.nv-masonry-card--tall {
  aspect-ratio: 1 / 2;
  grid-row: span 2;
}

/* === CARD MEDIA === */
.nv-masonry-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--nv-bg-mid);
  transition: transform 0.3s var(--nv-transition);
}

/* Video cards */
.nv-masonry-media[data-type="video"] {
  object-fit: cover;
}

/* Audio/Fallback placeholder */
.nv-masonry-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, 
    rgba(124, 92, 255, 0.15) 0%, 
    rgba(41, 182, 246, 0.1) 50%,
    rgba(0, 229, 160, 0.08) 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MUSIC VISUALIZER - Dynamic Frequency Bars
   ═══════════════════════════════════════════════════════════════════════════ */
.nv-audio-visualizer--music {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, 
    #050508 0%,
    #0a0a12 30%,
    #0d0d18 70%,
    #050508 100%);
  overflow: hidden;
}

/* Futuristic smoke background layers */
.nv-audio-visualizer--music::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 90%, rgba(75, 0, 130, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(30, 30, 60, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(20, 10, 40, 0.6) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 10% 30%, rgba(60, 20, 80, 0.35) 0%, transparent 50%);
  filter: blur(30px);
  animation: nvMusicSmoke1 12s ease-in-out infinite;
}

.nv-audio-visualizer--music::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: 
    radial-gradient(ellipse 50% 70% at 75% 80%, rgba(100, 50, 150, 0.25) 0%, transparent 45%),
    radial-gradient(ellipse 80% 50% at 25% 20%, rgba(40, 20, 70, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 60% 40%, rgba(80, 30, 120, 0.2) 0%, transparent 55%);
  filter: blur(25px);
  animation: nvMusicSmoke2 15s ease-in-out infinite reverse;
}

/* Smoke animation keyframes */
@keyframes nvMusicSmoke1 {
  0%, 100% { 
    transform: translate(0%, 0%) scale(1) rotate(0deg);
    opacity: 0.8;
  }
  25% {
    transform: translate(5%, -8%) scale(1.1) rotate(3deg);
    opacity: 1;
  }
  50% { 
    transform: translate(-3%, 5%) scale(0.95) rotate(-2deg);
    opacity: 0.7;
  }
  75% {
    transform: translate(-6%, -3%) scale(1.05) rotate(1deg);
    opacity: 0.9;
  }
}

@keyframes nvMusicSmoke2 {
  0%, 100% { 
    transform: translate(0%, 0%) scale(1) rotate(0deg);
    opacity: 0.6;
  }
  33% {
    transform: translate(-8%, 6%) scale(1.15) rotate(-4deg);
    opacity: 0.8;
  }
  66% { 
    transform: translate(6%, -4%) scale(0.9) rotate(3deg);
    opacity: 0.5;
  }
}

/* Subtle particle/dust overlay */
.nv-music-smoke-particles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 20% 30%, rgba(168, 85, 247, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 70%, rgba(139, 92, 246, 0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 50%, rgba(168, 85, 247, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 60%, rgba(139, 92, 246, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(99, 102, 241, 0.25) 0%, transparent 100%),
    radial-gradient(2px 2px at 50% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 90%, rgba(139, 92, 246, 0.2) 0%, transparent 100%);
  animation: nvMusicParticles 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes nvMusicParticles {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-10px) translateX(5px); }
}

/* Frequency bars container */
.nv-music-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 60%;
  padding: 0 12%;
  position: relative;
  z-index: 2;
}

/* Individual frequency bar */
.nv-music-bar {
  width: 4px;
  min-height: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, 
    #a855f7 0%, 
    #6366f1 50%, 
    #8b5cf6 100%);
  box-shadow: 
    0 0 8px rgba(168, 85, 247, 0.6),
    0 0 16px rgba(99, 102, 241, 0.3);
  animation: nvMusicPulse var(--bar-delay, 1s) ease-in-out infinite;
  transform-origin: bottom;
}

.nv-music-bar:nth-child(1) { --bar-delay: 0.8s; height: 25%; }
.nv-music-bar:nth-child(2) { --bar-delay: 0.6s; height: 45%; animation-delay: 0.1s; }
.nv-music-bar:nth-child(3) { --bar-delay: 0.5s; height: 65%; animation-delay: 0.05s; }
.nv-music-bar:nth-child(4) { --bar-delay: 0.7s; height: 85%; animation-delay: 0.15s; }
.nv-music-bar:nth-child(5) { --bar-delay: 0.4s; height: 100%; animation-delay: 0.08s; }
.nv-music-bar:nth-child(6) { --bar-delay: 0.55s; height: 75%; animation-delay: 0.12s; }
.nv-music-bar:nth-child(7) { --bar-delay: 0.65s; height: 55%; animation-delay: 0.03s; }
.nv-music-bar:nth-child(8) { --bar-delay: 0.75s; height: 35%; animation-delay: 0.18s; }
.nv-music-bar:nth-child(9) { --bar-delay: 0.5s; height: 60%; animation-delay: 0.07s; }
.nv-music-bar:nth-child(10) { --bar-delay: 0.6s; height: 40%; animation-delay: 0.14s; }
.nv-music-bar:nth-child(11) { --bar-delay: 0.45s; height: 70%; animation-delay: 0.02s; }
.nv-music-bar:nth-child(12) { --bar-delay: 0.7s; height: 50%; animation-delay: 0.11s; }

@keyframes nvMusicPulse {
  0%, 100% { 
    transform: scaleY(0.3); 
    opacity: 0.6;
  }
  50% { 
    transform: scaleY(1); 
    opacity: 1;
  }
}

/* Reflection effect */
.nv-music-reflection {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) scaleY(-0.3);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 40%;
  opacity: 0.15;
  filter: blur(2px);
  -webkit-mask-image: linear-gradient(to top, transparent, black);
  mask-image: linear-gradient(to top, transparent, black);
}

.nv-music-reflection .nv-music-bar {
  box-shadow: none;
}

/* Music label */
.nv-music-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(168, 85, 247, 0.7);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PODCAST VISUALIZER - Concentric Voice Rings
   ═══════════════════════════════════════════════════════════════════════════ */
.nv-audio-visualizer--podcast {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, 
    #080810 0%,
    #0c0c16 40%,
    #10101c 100%);
  overflow: hidden;
}

/* Subtle grid pattern */
.nv-audio-visualizer--podcast::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 229, 160, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

/* Voice wave container */
.nv-podcast-rings {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Concentric rings */
.nv-podcast-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  animation: nvPodcastPulse 2s ease-out infinite;
}

.nv-podcast-ring:nth-child(1) {
  width: 30px;
  height: 30px;
  border-color: rgba(0, 229, 160, 0.9);
  box-shadow: 
    0 0 12px rgba(0, 229, 160, 0.6),
    inset 0 0 8px rgba(0, 229, 160, 0.3);
  animation-delay: 0s;
}

.nv-podcast-ring:nth-child(2) {
  width: 55px;
  height: 55px;
  border-color: rgba(45, 212, 191, 0.6);
  animation-delay: 0.3s;
}

.nv-podcast-ring:nth-child(3) {
  width: 80px;
  height: 80px;
  border-color: rgba(20, 184, 166, 0.4);
  animation-delay: 0.6s;
}

.nv-podcast-ring:nth-child(4) {
  width: 105px;
  height: 105px;
  border-color: rgba(13, 148, 136, 0.25);
  animation-delay: 0.9s;
}

@keyframes nvPodcastPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.3;
  }
}

/* Center microphone icon */
.nv-podcast-center {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5a0 0%, #14b8a6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 20px rgba(0, 229, 160, 0.5),
    0 0 40px rgba(0, 229, 160, 0.2);
}

.nv-podcast-center i {
  font-size: 10px;
  color: #080810;
}

/* Sound wave lines emanating */
.nv-podcast-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.nv-podcast-wave-line {
  position: absolute;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 229, 160, 0.4) 20%,
    rgba(0, 229, 160, 0.6) 50%,
    rgba(0, 229, 160, 0.4) 80%,
    transparent 100%);
  border-radius: 1px;
  animation: nvWaveExpand 1.5s ease-out infinite;
}

.nv-podcast-wave-line:nth-child(1) {
  left: -60px;
  width: 40px;
  transform: translateY(-50%);
  animation-delay: 0s;
}

.nv-podcast-wave-line:nth-child(2) {
  right: -60px;
  width: 40px;
  transform: translateY(-50%) rotate(180deg);
  animation-delay: 0s;
}

.nv-podcast-wave-line:nth-child(3) {
  left: -50px;
  width: 30px;
  transform: translateY(-12px);
  animation-delay: 0.5s;
}

.nv-podcast-wave-line:nth-child(4) {
  right: -50px;
  width: 30px;
  transform: translateY(-12px) rotate(180deg);
  animation-delay: 0.5s;
}

.nv-podcast-wave-line:nth-child(5) {
  left: -50px;
  width: 30px;
  transform: translateY(8px);
  animation-delay: 0.25s;
}

.nv-podcast-wave-line:nth-child(6) {
  right: -50px;
  width: 30px;
  transform: translateY(8px) rotate(180deg);
  animation-delay: 0.25s;
}

@keyframes nvWaveExpand {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(-50%) scaleX(0.6);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
}

.nv-podcast-wave-line:nth-child(3),
.nv-podcast-wave-line:nth-child(4) {
  animation-name: nvWaveExpandAlt;
}

.nv-podcast-wave-line:nth-child(5),
.nv-podcast-wave-line:nth-child(6) {
  animation-name: nvWaveExpandAlt2;
}

@keyframes nvWaveExpandAlt {
  0%, 100% {
    opacity: 0.2;
    transform: translateY(-12px) scaleX(0.5);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-12px) scaleX(1.1);
  }
}

@keyframes nvWaveExpandAlt2 {
  0%, 100% {
    opacity: 0.2;
    transform: translateY(8px) scaleX(0.5);
  }
  50% {
    opacity: 0.8;
    transform: translateY(8px) scaleX(1.1);
  }
}

/* Podcast label */
.nv-podcast-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 229, 160, 0.7);
  text-shadow: 0 0 10px rgba(0, 229, 160, 0.5);
  z-index: 2;
}

/* Pause animation on hover for interaction feedback */
.nv-masonry-card:hover .nv-music-bar,
.nv-masonry-card:hover .nv-podcast-ring {
  animation-play-state: running;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .nv-music-bar,
  .nv-podcast-ring,
  .nv-podcast-wave-line,
  .nv-audio-visualizer--music::before {
    animation: none;
  }
  
  .nv-music-bar {
    transform: scaleY(0.7);
    opacity: 0.8;
  }
  
  .nv-podcast-ring {
    opacity: 0.6;
  }
}

.nv-masonry-placeholder-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.4);
}

.nv-masonry-placeholder-icon i {
  font-size: 16px;
  color: #fff;
}

.nv-masonry-placeholder-label {
  font-size: 0.65rem;
  color: var(--nv-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === OVERLAY (Likes/Comments) - Touch/Hover Triggered === */
.nv-masonry-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

/* Show overlay on hover (desktop) */
.nv-masonry-card:hover .nv-masonry-overlay {
  opacity: 1;
  visibility: visible;
}

/* Touch state for mobile - managed via JS */
.nv-masonry-card.is-touched .nv-masonry-overlay {
  opacity: 1;
  visibility: visible;
}

.nv-masonry-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.nv-masonry-stat i {
  font-size: 0.9rem;
}

.nv-masonry-stat--likes i {
  color: #ff6b6b;
}

.nv-masonry-stat--comments i {
  color: #fff;
}

/* === CATEGORY INDICATOR (subtle badge) === */
.nv-masonry-category {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nv-masonry-category i {
  font-size: 10px;
  color: #fff;
}

.nv-masonry-card:hover .nv-masonry-category {
  opacity: 1;
}

/* === VIDEO PLAY INDICATOR === */
.nv-masonry-video-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nv-masonry-video-indicator i {
  font-size: 12px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* === MULTI-ITEM INDICATOR (for collections/albums) === */
.nv-masonry-multi {
  position: absolute;
  top: 6px;
  right: 6px;
}

.nv-masonry-multi i {
  font-size: 14px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

/* === LOADING SKELETON === */
.nv-masonry-skeleton {
  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: nvMasonryShimmer 1.5s infinite;
}

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

/* === RESPONSIVE ADJUSTMENTS === */

/* Tablet portrait */
@media (min-width: 481px) and (max-width: 768px) {
  .nv-masonry-grid {
    gap: 3px;
  }
  
  .nv-masonry-category {
    width: 28px;
    height: 28px;
  }
  
  .nv-masonry-category i {
    font-size: 11px;
  }
  
  .nv-masonry-stat {
    font-size: 0.85rem;
    gap: 6px;
  }
}

/* Tablet landscape and small desktop */
@media (min-width: 769px) and (max-width: 1024px) {
  .nv-masonry-grid {
    gap: 4px;
    max-width: 640px;
    margin: 0 auto;
  }
  
  .nv-masonry-card {
    border-radius: 4px;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .nv-masonry-grid {
    gap: 6px;
    max-width: 720px;
    margin: 0 auto;
  }
  
  .nv-masonry-card {
    border-radius: 6px;
    transition: transform 0.25s var(--nv-transition);
  }
  
  .nv-masonry-card:hover {
    transform: scale(1.015);
    z-index: 2;
  }
  
  .nv-masonry-card:hover .nv-masonry-media {
    transform: scale(1.05);
  }
  
  .nv-masonry-category {
    width: 32px;
    height: 32px;
  }
  
  .nv-masonry-category i {
    font-size: 12px;
  }
  
  .nv-masonry-stat {
    font-size: 0.95rem;
    gap: 8px;
  }
}

/* === APPLY MASONRY TO FEED CONTAINERS === */
@media (max-width: 768px) {
  /* Feed tab - Instagram explore grid */
  #pulse-feed.nv-masonry-grid {
    padding: 0;
  }
  
  /* Search results grid */
  .search-results-grid.nv-masonry-grid {
    padding: 8px 0;
  }
  
  /* Profile works grid */
  .profile-works-grid.nv-masonry-grid {
    padding: 0;
  }
  
  /* Pulse card grid (home showcases) */
  .pulse-card-grid.nv-masonry-grid {
    padding: 0;
  }
}

/* =============================================================================
   MASONRY GRID - BACKWARD COMPATIBILITY & POLISH
   Ensures existing .pulse-asset-card works with .nv-masonry-card classes
   ============================================================================= */

/* Hybrid class support: .pulse-asset-card.nv-masonry-card */
.pulse-asset-card.nv-masonry-card {
  border-radius: 0;
  padding: 0;
  min-height: 0;
}

/* === HOME TAB CARD GRID - Curved & Compact Layout === */
/* Match feed styling: rounded corners with tight spacing */
.pulse-card-grid.nv-masonry-grid {
  gap: 4px;
}

.pulse-card-grid.nv-masonry-grid .pulse-asset-card.nv-masonry-card {
  border-radius: 12px;
  overflow: hidden;
}

.pulse-card-grid.nv-masonry-grid .nv-masonry-media {
  border-radius: 12px;
}

.pulse-card-grid.nv-masonry-grid .nv-masonry-placeholder {
  border-radius: 12px;
}

.pulse-card-grid.nv-masonry-grid .nv-masonry-overlay {
  border-radius: 12px;
}

/* Ensure overlay stats are visible on hover for home tab cards */
.pulse-card-grid .pulse-asset-card .pulse-asset-card-hover {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pulse-card-grid .pulse-asset-card:hover .pulse-asset-card-hover,
.pulse-card-grid .pulse-asset-card.is-touched .pulse-asset-card-hover {
  opacity: 1;
  visibility: visible;
}

/* Override icon colors for home tab cards */
.pulse-card-grid .pulse-asset-card-hover .nv-masonry-stat--likes i {
  color: #ff6b6b !important;
}

.pulse-card-grid .pulse-asset-card-hover .nv-masonry-stat--comments i {
  color: #fff !important;
}

.pulse-card-grid.nv-masonry-grid .nv-masonry-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.pulse-card-grid.nv-masonry-grid .nv-masonry-stat i {
  font-size: 0.9rem;
}

.pulse-card-grid.nv-masonry-grid .nv-masonry-category {
  border-radius: 8px;
}

.pulse-asset-card.nv-masonry-card .pulse-asset-card-media {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.pulse-asset-card.nv-masonry-card .pulse-asset-card-hover {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

/* When masonry overlay is used inside pulse-asset-card */
.pulse-asset-card .nv-masonry-overlay {
  border-radius: 0;
}

/* Ensure proper stacking for tall cards */
.nv-masonry-card--tall {
  z-index: 1;
}

/* Improved image loading transition */
.nv-masonry-media {
  opacity: 0;
  transition: opacity 0.3s ease-out, transform 0.3s var(--nv-transition);
}

.nv-masonry-media.loaded,
.nv-masonry-media[src]:not([src=""]) {
  opacity: 1;
}

/* Force opacity on images with src */
img.nv-masonry-media {
  opacity: 1;
}

video.nv-masonry-media {
  opacity: 1;
}

/* Infinite scroll loading indicator */
.nv-masonry-grid::after {
  content: '';
  display: none;
}

.nv-masonry-grid.is-loading::after {
  content: '';
  display: block;
  grid-column: 1 / -1;
  height: 60px;
  background: transparent;
  position: relative;
}

.nv-masonry-grid.is-loading::after {
  animation: nvMasonryLoadPulse 1s ease-in-out infinite;
}

@keyframes nvMasonryLoadPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Touch feedback enhancement */
.nv-masonry-card:active {
  transform: scale(0.98);
}

.nv-masonry-card.is-touched {
  transform: scale(0.98);
}

/* Focus states for accessibility */
.nv-masonry-card:focus {
  outline: 2px solid var(--nv-accent);
  outline-offset: 2px;
  z-index: 3;
}

.nv-masonry-card:focus:not(:focus-visible) {
  outline: none;
}

.nv-masonry-card:focus-visible {
  outline: 2px solid var(--nv-accent);
  outline-offset: 2px;
}

/* Category badge hover animation */
.nv-masonry-category {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nv-masonry-card:hover .nv-masonry-category,
.nv-masonry-card.is-touched .nv-masonry-category {
  transform: scale(1.1);
}

/* Overlay gradient enhancement for better text readability */
.nv-masonry-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* Stat icons pulse animation on hover */
.nv-masonry-stat i {
  transition: transform 0.2s ease;
}

.nv-masonry-card:hover .nv-masonry-stat--likes i,
.nv-masonry-card.is-touched .nv-masonry-stat--likes i {
  animation: nvHeartBeat 0.6s ease infinite;
}

@keyframes nvHeartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Mobile-specific overlay timing */
@media (max-width: 768px) {
  .nv-masonry-overlay {
    /* Faster transition for touch */
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }
  
  /* Hide category badge on small mobile for cleaner look */
  .nv-masonry-category {
    display: none;
  }
  
  /* Feed grid: no border radius for Instagram-style grid */
  #pulse-feed.nv-masonry-grid .nv-masonry-card {
    border-radius: 0 !important;
  }
  
  /* Home tab cards: keep rounded corners with tight spacing */
  .pulse-card-grid.nv-masonry-grid .pulse-asset-card.nv-masonry-card {
    border-radius: 10px !important;
  }
  
  .pulse-card-grid.nv-masonry-grid .nv-masonry-media,
  .pulse-card-grid.nv-masonry-grid .nv-masonry-placeholder,
  .pulse-card-grid.nv-masonry-grid .nv-masonry-overlay {
    border-radius: 10px !important;
  }
  
  /* Touch state for home tab cards on mobile */
  .pulse-card-grid .pulse-asset-card.is-touched .pulse-asset-card-hover {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Remove hover transform on touch devices */
  .nv-masonry-card:hover {
    transform: none;
  }
  
  /* Only apply transform on active touch */
  .nv-masonry-card:active,
  .nv-masonry-card.is-touched {
    transform: scale(0.97);
  }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
  .nv-masonry-stat {
    font-size: 0.7rem;
    gap: 4px;
  }
  
  .nv-masonry-stat i {
    font-size: 0.75rem;
  }
  
  .nv-masonry-placeholder-icon {
    width: 32px;
    height: 32px;
  }
  
  .nv-masonry-placeholder-icon i {
    font-size: 14px;
  }
  
  .nv-masonry-placeholder-label {
    font-size: 0.55rem;
  }
}

/* Theme alt mode adjustments */
body.theme-alt .nv-masonry-card {
  background: var(--nv-bg-mid);
}

body.theme-alt .nv-masonry-placeholder {
  background: linear-gradient(135deg, 
    rgba(92, 107, 255, 0.12) 0%, 
    rgba(31, 157, 217, 0.1) 50%,
    rgba(13, 201, 139, 0.08) 100%);
}

body.theme-alt .nv-masonry-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

body.theme-alt .nv-masonry-category {
  background: rgba(255, 255, 255, 0.8);
}

body.theme-alt .nv-masonry-category i {
  color: var(--nv-accent);
}

/* =============================================================================
   BANNER EDITOR STUDIO OVERLAY
   Professional image editing interface for banner customization
   ============================================================================= */

.banner-editor-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--nv-transition), visibility 0s linear 0.4s;
  z-index: 100;
}

.banner-editor-overlay.visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.banner-editor-backdrop {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  background: rgba(4, 6, 12, 0.85);
}

.banner-editor-panel {
  position: relative;
  width: min(1200px, 95vw);
  max-height: 90vh;
  border-radius: 28px;
  padding: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(12, 14, 26, 0.98), rgba(7, 11, 25, 0.95));
  border: 1px solid var(--nv-border-strong);
  box-shadow: 
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 80px rgba(124, 92, 255, 0.1);
  overflow: hidden;
  animation: bannerEditorSlideIn 0.5s var(--nv-transition);
}

@keyframes bannerEditorSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.banner-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--nv-border);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08), transparent);
}

.banner-editor-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner-editor-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}

.banner-editor-title-wrap .editor-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--nv-accent);
  font-weight: 600;
}

.banner-editor-title-wrap h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.banner-editor-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-editor-reset-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--nv-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--nv-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s var(--nv-transition);
}

.banner-editor-reset-btn:hover {
  background: rgba(255, 107, 107, 0.15);
  color: var(--nv-danger);
  border-color: var(--nv-danger);
}

.banner-editor-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--nv-border);
  font-size: 1.1rem;
}

.banner-editor-close:hover {
  background: rgba(255, 107, 107, 0.15);
  color: var(--nv-danger);
}

/* Body */
.banner-editor-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  flex: 1;
  overflow: hidden;
  max-height: calc(90vh - 180px);
  scroll-behavior: smooth;
}

/* Canvas Section */
.banner-editor-canvas-section {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 20px;
  border-right: 1px solid var(--nv-border);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  max-height: calc(90vh - 180px);
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.5) rgba(0, 0, 0, 0.15);
}

/* Canvas section specific scrollbar styling */
.banner-editor-canvas-section::-webkit-scrollbar {
  width: 8px;
}

.banner-editor-canvas-section::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  margin: 8px 0;
}

.banner-editor-canvas-section::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.5) 0%,
    rgba(18, 194, 233, 0.5) 100%
  );
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 8px rgba(124, 92, 255, 0.25);
}

.banner-editor-canvas-section::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.8) 0%,
    rgba(18, 194, 233, 0.8) 100%
  );
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.4);
}

.banner-editor-canvas-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* Upload Zone */
.banner-editor-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  border: 2px dashed var(--nv-border-strong);
  border-radius: 24px;
  background: rgba(124, 92, 255, 0.04);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--nv-transition);
  width: 100%;
  max-width: 500px;
}

.banner-editor-upload-zone:hover,
.banner-editor-upload-zone.drag-over {
  border-color: var(--nv-accent);
  background: rgba(124, 92, 255, 0.1);
  transform: scale(1.02);
}

.banner-editor-upload-zone.drag-over {
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.25);
}

.banner-upload-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  animation: uploadIconFloat 3s ease-in-out infinite;
}

@keyframes uploadIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.banner-editor-upload-zone h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.banner-editor-upload-zone p {
  margin: 0;
  color: var(--nv-muted);
  font-size: 0.9rem;
}

.banner-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: var(--nv-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s var(--nv-transition);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}

.banner-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.45);
}

.banner-upload-hint {
  font-size: 0.75rem;
  color: var(--nv-muted);
  opacity: 0.7;
}

/* Canvas Container */
.banner-editor-canvas-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.banner-canvas-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--nv-border);
  cursor: move;
}

.banner-canvas-viewport canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: none;
  transition: filter 0.3s ease;
}

/* Crop Frame */
.banner-crop-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.crop-frame-border {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 0 9999px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(124, 92, 255, 0.3);
  border-radius: 8px;
}

.crop-frame-corners {
  position: absolute;
  inset: -4px;
}

.crop-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid var(--nv-accent);
  background: transparent;
}

.crop-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.crop-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.crop-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.crop-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

.crop-frame-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  white-space: nowrap;
}

.banner-canvas-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.banner-canvas-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--nv-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--nv-text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s var(--nv-transition);
}

.banner-canvas-action-btn:hover {
  background: rgba(124, 92, 255, 0.15);
  border-color: var(--nv-accent);
  color: var(--nv-accent);
}

/* Preview Strip */
.banner-editor-preview-strip {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--nv-border);
}

.preview-strip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--nv-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.preview-strip-label i {
  color: var(--nv-accent);
}

.preview-strip-banner {
  position: relative;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(124,92,255,0.35), rgba(18,194,233,0.3));
}

.preview-strip-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-strip-avatar {
  position: absolute;
  left: 16px;
  bottom: -20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(7, 11, 25, 0.9);
  border: 2px solid var(--nv-border);
}

/* Controls Section */
.banner-editor-controls-section {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  max-height: calc(90vh - 180px);
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.6) rgba(0, 0, 0, 0.2);
}

/* Tabs */
.banner-editor-tabs {
  display: flex;
  border-bottom: 1px solid var(--nv-border);
}

.banner-editor-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  border: none;
  background: transparent;
  color: var(--nv-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s var(--nv-transition);
  position: relative;
}

.banner-editor-tab i {
  font-size: 1.1rem;
}

.banner-editor-tab:hover {
  color: var(--nv-text);
  background: rgba(255, 255, 255, 0.03);
}

.banner-editor-tab.active {
  color: var(--nv-accent);
  background: rgba(124, 92, 255, 0.08);
}

.banner-editor-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--nv-accent);
}

/* Tab Content */
.banner-editor-tab-content {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.5) transparent;
}

.banner-editor-tab-content.active {
  display: flex;
}

/* Control Groups */
.banner-control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-control-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--nv-text);
}

.banner-control-label i {
  width: 20px;
  text-align: center;
  color: var(--nv-accent);
  font-size: 0.9rem;
}

/* Sliders */
.banner-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: background 0.2s;
}

.banner-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nv-accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.banner-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.6);
}

.banner-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nv-accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.5);
}

.banner-slider-value {
  min-width: 45px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nv-muted);
  font-family: 'Orbitron', monospace;
}

/* Rotate Presets */
.banner-rotate-presets {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.banner-preset-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--nv-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--nv-text);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s var(--nv-transition);
}

.banner-preset-btn:hover {
  background: rgba(124, 92, 255, 0.15);
  border-color: var(--nv-accent);
  color: var(--nv-accent);
  transform: scale(1.05);
}

/* Flip Buttons */
.banner-flip-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.banner-flip-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--nv-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--nv-text);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s var(--nv-transition);
}

.banner-flip-btn i {
  font-size: 1.1rem;
}

.banner-flip-btn:hover {
  background: rgba(124, 92, 255, 0.12);
  border-color: var(--nv-accent);
}

.banner-flip-btn.active {
  background: rgba(124, 92, 255, 0.2);
  border-color: var(--nv-accent);
  color: var(--nv-accent);
}

/* Filters Grid */
.banner-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.banner-filter-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--nv-text);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s var(--nv-transition);
}

.banner-filter-preset:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--nv-border);
}

.banner-filter-preset.active {
  border-color: var(--nv-accent);
  background: rgba(124, 92, 255, 0.12);
}

.filter-preview {
  width: 50px;
  height: 35px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #66a6ff 100%);
  position: relative;
  overflow: hidden;
}

.filter-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.filter-preview.grayscale { filter: grayscale(100%) contrast(110%); }
.filter-preview.sepia { filter: sepia(85%) brightness(105%) contrast(105%); }
.filter-preview.vintage { filter: sepia(45%) contrast(90%) brightness(95%) saturate(75%); }
.filter-preview.cold { filter: hue-rotate(190deg) saturate(85%); }
.filter-preview.warm { filter: sepia(25%) saturate(125%) brightness(108%) hue-rotate(-10deg); }
.filter-preview.dramatic { filter: contrast(155%) brightness(85%) saturate(115%); }
.filter-preview.neon { filter: saturate(220%) brightness(115%) contrast(120%) hue-rotate(10deg); }
.filter-preview.cyberpunk { filter: hue-rotate(290deg) saturate(160%) contrast(125%) brightness(105%); }

/* Cinematic Filters */
.filter-preview.cinematic { filter: contrast(125%) brightness(90%) saturate(85%) sepia(10%); }
.filter-preview.noir { filter: grayscale(100%) contrast(160%) brightness(80%); }
.filter-preview.matte { filter: brightness(115%) contrast(80%) saturate(85%) sepia(5%); }

/* Vibrant Filters */
.filter-preview.vivid { filter: saturate(180%) brightness(110%) contrast(115%); }
.filter-preview.chrome { filter: contrast(130%) saturate(80%) brightness(105%); }

/* Professional Film Filters */
.filter-preview.kodak { filter: sepia(15%) saturate(115%) brightness(105%) contrast(110%) hue-rotate(-5deg); }
.filter-preview.fuji { filter: saturate(125%) contrast(115%) brightness(100%) sepia(5%) hue-rotate(5deg); }
.filter-preview.polaroid { filter: sepia(30%) brightness(115%) contrast(90%) saturate(90%) hue-rotate(-5deg); }
.filter-preview.cross { filter: saturate(130%) contrast(120%) brightness(110%) hue-rotate(15deg); }

/* Mood Filters */
.filter-preview.dreamy { filter: brightness(120%) contrast(85%) saturate(90%) sepia(15%) blur(0.3px); }
.filter-preview.moody { filter: brightness(75%) contrast(130%) saturate(80%) sepia(5%); }
.filter-preview.haze { filter: brightness(125%) contrast(75%) saturate(80%) sepia(10%); }
.filter-preview.twilight { filter: hue-rotate(260deg) saturate(110%) brightness(90%) contrast(115%) sepia(10%); }

/* Footer */
.banner-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 20px 28px;
  border-top: 1px solid var(--nv-border);
  background: rgba(0, 0, 0, 0.2);
}

.banner-editor-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid var(--nv-border);
  background: transparent;
  color: var(--nv-text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--nv-transition);
}

.banner-editor-cancel-btn:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: var(--nv-danger);
  color: var(--nv-danger);
}

.banner-editor-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--nv-transition);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.banner-editor-save-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.45);
}

.banner-editor-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.banner-editor-save-btn .btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnLoaderSpin 0.8s linear infinite;
}

.banner-editor-save-btn.loading .btn-loader {
  display: block;
}

.banner-editor-save-btn.loading span {
  opacity: 0;
}

@keyframes btnLoaderSpin {
  to { transform: rotate(360deg); }
}

/* =============================================================================
   PROFESSIONAL COLORFUL GRADIENT BANNER ANIMATION
   Elegant aurora borealis effect with smooth color transitions
   Best practice: GPU-accelerated animations, no layout thrashing
   ============================================================================= */

/* Community Profile Banner Dynamic Animation */
.community-profile-banner.no-banner-image {
  background: linear-gradient(
    -45deg,
    #7c5cff,
    #12c2e9,
    #c471ed,
    #00e5a0,
    #7c5cff
  );
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  position: relative;
  cursor: pointer;
  overflow: visible;
  border: none;
  border-radius: 28px 28px 0 0;
}

/* Smooth flowing orb layer */
.community-profile-banner.no-banner-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(124, 92, 255, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(18, 194, 233, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse 60% 70% at 50% 90%, rgba(0, 229, 160, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(196, 113, 237, 0.35) 0%, transparent 45%);
  animation: orbPulse 15s ease-in-out infinite;
  pointer-events: none;
}

/* Subtle shimmer overlay */
.community-profile-banner.no-banner-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: shimmerWave 8s linear infinite;
  pointer-events: none;
}

/* Smooth gradient shift animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Gentle orb pulsing */
@keyframes orbPulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  33% {
    opacity: 0.9;
    transform: scale(1.02);
  }
  66% {
    opacity: 0.7;
    transform: scale(0.98);
  }
}

/* Shimmer wave effect */
@keyframes shimmerWave {
  0% {
    background-position: -200% -200%;
  }
  100% {
    background-position: 200% 200%;
  }
}

/* Hide the edit hint text */
.community-profile-banner.no-banner-image .profile-banner-edit-hint {
  display: none;
}

/* Mobile Profile Banner Dynamic Animation */
.mobile-profile-banner.no-banner-image {
  background: linear-gradient(
    -45deg,
    #7c5cff,
    #12c2e9,
    #c471ed,
    #00e5a0,
    #7c5cff
  );
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  position: relative;
  overflow: visible;
  border: none;
}

.mobile-profile-banner.no-banner-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(124, 92, 255, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(18, 194, 233, 0.45) 0%, transparent 50%);
  animation: orbPulse 15s ease-in-out infinite;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 900px) {
  .banner-editor-body {
    grid-template-columns: 1fr;
    max-height: calc(90vh - 160px);
  }

  .banner-editor-canvas-section {
    border-right: none;
    border-bottom: 1px solid var(--nv-border);
    max-height: 50vh;
  }

  .banner-editor-controls-section {
    max-height: 35vh;
  }

  .banner-editor-panel {
    max-height: 95vh;
    width: 95vw;
  }

  .banner-filters-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .banner-editor-header {
    padding: 16px 20px;
  }

  .banner-editor-title-wrap h3 {
    font-size: 1rem;
  }

  .banner-editor-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .banner-editor-tabs {
    overflow-x: auto;
  }

  .banner-editor-tab {
    padding: 12px 10px;
  }

  .banner-editor-tab span {
    display: none;
  }

  .banner-editor-tab i {
    font-size: 1.2rem;
  }

  .banner-filters-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banner-editor-footer {
    padding: 16px 20px;
    flex-direction: column;
  }

  .banner-editor-cancel-btn,
  .banner-editor-save-btn {
    justify-content: center;
    width: 100%;
  }

  .banner-editor-upload-zone {
    padding: 32px 24px;
  }

  .banner-upload-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Theme Alt Mode */
body.theme-alt .banner-editor-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 254, 0.95));
}

body.theme-alt .banner-editor-backdrop {
  background: rgba(20, 23, 50, 0.75);
}

body.theme-alt .banner-editor-upload-zone {
  background: rgba(92, 107, 255, 0.06);
}

body.theme-alt .banner-slider {
  background: rgba(0, 0, 0, 0.08);
}

body.theme-alt .banner-editor-controls-section {
  background: rgba(0, 0, 0, 0.03);
}

body.theme-alt .filter-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #66a6ff 100%);
}

/* =============================================================================
   BANNER EDITOR SCROLLBAR & SCROLL ENHANCEMENTS
   Futuristic custom scrollbar with neon accents and smooth navigation
   ============================================================================= */

/* Enable proper scrolling on editor body */
.banner-editor-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  flex: 1;
  overflow: hidden;
  max-height: calc(90vh - 180px);
  scroll-behavior: smooth;
}

/* Controls section - make it scrollable */
.banner-editor-controls-section {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  max-height: calc(90vh - 180px);
}

/* Canvas section - also scrollable for smaller screens */
.banner-editor-canvas-section {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 20px;
  border-right: 1px solid var(--nv-border);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Tab content - scrollable with proper height */
.banner-editor-tab-content {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  scroll-behavior: smooth;
}

.banner-editor-tab-content.active {
  display: flex;
}

/* =============================================================================
   FUTURISTIC CUSTOM SCROLLBAR - WEBKIT
   ============================================================================= */

/* Base scrollbar styling for banner editor */
.banner-editor-panel ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.banner-editor-panel ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin: 4px 0;
}

.banner-editor-panel ::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.6) 0%,
    rgba(18, 194, 233, 0.6) 50%,
    rgba(124, 92, 255, 0.6) 100%
  );
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 
    0 0 10px rgba(124, 92, 255, 0.3),
    inset 0 0 4px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.banner-editor-panel ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.9) 0%,
    rgba(18, 194, 233, 0.9) 50%,
    rgba(124, 92, 255, 0.9) 100%
  );
  box-shadow: 
    0 0 20px rgba(124, 92, 255, 0.5),
    0 0 40px rgba(18, 194, 233, 0.3),
    inset 0 0 6px rgba(255, 255, 255, 0.2);
}

.banner-editor-panel ::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 1) 0%,
    rgba(18, 194, 233, 1) 50%,
    rgba(124, 92, 255, 1) 100%
  );
}

.banner-editor-panel ::-webkit-scrollbar-corner {
  background: transparent;
}

/* Controls section specific scrollbar - wider for better UX */
.banner-editor-controls-section::-webkit-scrollbar {
  width: 6px;
}

.banner-editor-controls-section::-webkit-scrollbar-track {
  background: rgba(124, 92, 255, 0.05);
  border-radius: 8px;
  margin: 8px 4px;
}

.banner-editor-controls-section::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--nv-accent) 0%,
    rgba(18, 194, 233, 0.8) 100%
  );
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.4);
}

/* Canvas section scrollbar */
.banner-editor-canvas-section::-webkit-scrollbar {
  width: 6px;
}

.banner-editor-canvas-section::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.banner-editor-canvas-section::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.5) 0%,
    rgba(18, 194, 233, 0.5) 100%
  );
  border-radius: 8px;
}

/* =============================================================================
   FIREFOX SCROLLBAR SUPPORT
   ============================================================================= */

.banner-editor-controls-section {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.6) rgba(0, 0, 0, 0.2);
}

.banner-editor-canvas-section {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.5) rgba(0, 0, 0, 0.15);
}

.banner-editor-tab-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.5) transparent;
}

/* =============================================================================
   SCROLL INDICATOR FADE EFFECTS
   ============================================================================= */

.banner-editor-controls-section::before,
.banner-editor-controls-section::after {
  content: '';
  position: sticky;
  left: 0;
  right: 0;
  height: 24px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.banner-editor-controls-section::before {
  top: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 25, 0.9) 0%,
    transparent 100%
  );
}

.banner-editor-controls-section::after {
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgba(7, 11, 25, 0.9) 0%,
    transparent 100%
  );
}

.banner-editor-controls-section.has-scroll-top::before,
.banner-editor-controls-section.has-scroll-bottom::after {
  opacity: 1;
}

/* =============================================================================
   THEME ALT SCROLLBAR ADJUSTMENTS
   ============================================================================= */

body.theme-alt .banner-editor-panel ::-webkit-scrollbar-track {
  background: rgba(92, 107, 255, 0.08);
}

body.theme-alt .banner-editor-panel ::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(92, 107, 255, 0.7) 0%,
    rgba(102, 166, 255, 0.7) 100%
  );
  box-shadow: 0 0 8px rgba(92, 107, 255, 0.25);
}

body.theme-alt .banner-editor-panel ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(92, 107, 255, 0.9) 0%,
    rgba(102, 166, 255, 0.9) 100%
  );
  box-shadow: 0 0 16px rgba(92, 107, 255, 0.4);
}

body.theme-alt .banner-editor-controls-section {
  scrollbar-color: rgba(92, 107, 255, 0.5) rgba(0, 0, 0, 0.05);
}

body.theme-alt .banner-editor-controls-section::before {
  background: linear-gradient(
    180deg,
    rgba(245, 247, 254, 0.95) 0%,
    transparent 100%
  );
}

body.theme-alt .banner-editor-controls-section::after {
  background: linear-gradient(
    0deg,
    rgba(245, 247, 254, 0.95) 0%,
    transparent 100%
  );
}

/* =============================================================================
   MOBILE RESPONSIVE SCROLLBAR
   ============================================================================= */

@media (max-width: 768px) {
  .banner-editor-body {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
  }

  .banner-editor-controls-section {
    max-height: none;
    overflow: visible;
    border-top: 1px solid var(--nv-border);
  }

  .banner-editor-canvas-section {
    border-right: none;
    overflow: visible;
  }

  /* Thinner scrollbar on mobile */
  .banner-editor-panel ::-webkit-scrollbar {
    width: 4px;
  }
}

/* =============================================================================
   AVATAR EDIT OVERLAY - Hover Edit Button on Profile Image
   ============================================================================= */

.community-profile-avatar {
  position: absolute;
  left: clamp(24px, 8vw, 64px);
  bottom: -54px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  cursor: pointer;
  z-index: 10;
}

.community-profile-avatar .avatar-visual {
  position: relative;
}

.avatar-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  
  /* Semi-transparent overlay background on hover */
  background: rgba(0, 0, 0, 0.4);
  padding: 0;
  border: none;
  
  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  /* Smooth transitions */
  transition: 
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  z-index: 15;
}

/* Avatar initials fallback */
.community-profile-avatar .avatar-visual .avatar-initials {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 700;
  color: var(--nv-text);
  text-transform: uppercase;
}

/* Show on hover */
.community-profile-avatar:hover .avatar-edit-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Glassmorphic Icon Container */
.avatar-edit-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  
  /* Glassmorphism - Grey/Silver tones */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(200, 200, 210, 0.08) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  
  /* Subtle silver border */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
  
  /* Organic floating animation */
  animation: avatarIconFloat 5s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes avatarIconFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(0.5deg);
  }
  50% { 
    transform: translateY(-5px) rotate(0deg);
  }
  75% {
    transform: translateY(-2px) rotate(-0.5deg);
  }
}

/* Icon styling */
.avatar-edit-icon i {
  font-size: 1.1rem;
  color: rgba(220, 220, 230, 0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hover state - icon container */
.community-profile-avatar:hover .avatar-edit-overlay .avatar-edit-icon {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(210, 210, 220, 0.12) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(255, 255, 255, 0.05);
}

/* Hover state - icon */
.community-profile-avatar:hover .avatar-edit-overlay .avatar-edit-icon i {
  color: rgba(255, 255, 255, 0.95);
  transform: scale(1.08);
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
}

/* Text styling */
.avatar-edit-text {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(200, 200, 210, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Subtle text animation */
  animation: avatarTextBreath 4s ease-in-out infinite;
}

@keyframes avatarTextBreath {
  0%, 100% { 
    opacity: 0.85;
    letter-spacing: 0.18em;
  }
  50% { 
    opacity: 0.95;
    letter-spacing: 0.2em;
  }
}

/* Hover state - text */
.community-profile-avatar:hover .avatar-edit-overlay .avatar-edit-text {
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.22em;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 255, 255, 0.1);
}

/* Theme alt mode - light theme adjustments */
body.theme-alt .avatar-edit-icon {
  background: linear-gradient(
    145deg,
    rgba(100, 100, 110, 0.15) 0%,
    rgba(80, 80, 90, 0.1) 50%,
    rgba(100, 100, 110, 0.08) 100%
  );
  border-color: rgba(80, 80, 90, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

body.theme-alt .avatar-edit-icon i {
  color: rgba(60, 60, 70, 0.85);
  text-shadow: none;
}

body.theme-alt .avatar-edit-text {
  color: rgba(60, 60, 70, 0.8);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
}

body.theme-alt .community-profile-avatar:hover .avatar-edit-overlay .avatar-edit-icon {
  background: linear-gradient(
    145deg,
    rgba(100, 100, 110, 0.22) 0%,
    rgba(80, 80, 90, 0.15) 50%,
    rgba(100, 100, 110, 0.12) 100%
  );
}

body.theme-alt .community-profile-avatar:hover .avatar-edit-overlay .avatar-edit-icon i {
  color: rgba(40, 40, 50, 0.95);
}

body.theme-alt .community-profile-avatar:hover .avatar-edit-overlay .avatar-edit-text {
  color: rgba(40, 40, 50, 0.95);
}

/* =============================================================================
   AVATAR/PROFILE IMAGE EDITOR OVERLAY - Studio Editor
   ============================================================================= */

.avatar-editor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.avatar-editor-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.avatar-editor-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 11, 25, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.avatar-editor-panel {
  position: relative;
  width: 95vw;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(20, 24, 42, 0.97) 0%, rgba(12, 16, 32, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(80, 100, 240, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  animation: avatarEditorSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes avatarEditorSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.avatar-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.avatar-editor-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-editor-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(80, 100, 240, 0.2), rgba(160, 80, 220, 0.15));
  border: 1px solid rgba(120, 140, 255, 0.2);
  border-radius: 14px;
  font-size: 1.4rem;
  color: var(--nv-accent, #7b8cff);
}

.avatar-editor-header .editor-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(160, 170, 200, 0.7);
  margin: 0;
}

.avatar-editor-header h3 {
  margin: 4px 0 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--nv-text, #e5e7f0);
}

.avatar-editor-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-editor-reset-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(180, 190, 220, 0.7);
  cursor: pointer;
  transition: all 0.25s;
}

.avatar-editor-reset-btn:hover {
  background: rgba(255, 100, 100, 0.1);
  border-color: rgba(255, 100, 100, 0.3);
  color: #ff7070;
}

.avatar-editor-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(180, 190, 220, 0.7);
  cursor: pointer;
  transition: all 0.25s;
}

.avatar-editor-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--nv-text, #e5e7f0);
}

/* Body Layout */
.avatar-editor-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Canvas Section */
.avatar-editor-canvas-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.15);
  overflow: auto;
}

.avatar-editor-canvas-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Upload Zone */
.avatar-editor-upload-zone {
  width: 100%;
  aspect-ratio: 1;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(120, 140, 255, 0.25);
  border-radius: 32px;
  cursor: pointer;
  transition: all 0.3s;
}

.avatar-editor-upload-zone:hover,
.avatar-editor-upload-zone.dragover {
  background: rgba(120, 140, 255, 0.05);
  border-color: rgba(120, 140, 255, 0.45);
}

.avatar-upload-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(80, 100, 240, 0.15), rgba(160, 80, 220, 0.1));
  border-radius: 50%;
  font-size: 2rem;
  color: var(--nv-accent, #7b8cff);
}

.avatar-editor-upload-zone h4 {
  margin: 8px 0 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nv-text, #e5e7f0);
  text-align: center;
}

.avatar-editor-upload-zone p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(160, 170, 200, 0.7);
  text-align: center;
}

.avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(80, 100, 240, 0.2), rgba(160, 80, 220, 0.15));
  border: 1px solid rgba(120, 140, 255, 0.3);
  border-radius: 12px;
  color: var(--nv-accent, #7b8cff);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}

.avatar-upload-btn:hover {
  background: linear-gradient(135deg, rgba(80, 100, 240, 0.3), rgba(160, 80, 220, 0.25));
  border-color: rgba(120, 140, 255, 0.5);
  transform: translateY(-2px);
}

.avatar-upload-hint {
  font-size: 0.75rem;
  color: rgba(140, 150, 180, 0.5);
}

/* Canvas Container */
.avatar-editor-canvas-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.avatar-editor-canvas-container.is-hidden {
  display: none;
}

.avatar-canvas-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 360px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.avatar-canvas-viewport canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: grab;
}

.avatar-canvas-viewport canvas:active {
  cursor: grabbing;
}

/* Square Crop Frame - Rounded Corners */
.avatar-crop-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  pointer-events: none;
  z-index: 2;
}

.avatar-crop-frame .crop-frame-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow:
    0 0 0 4000px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(120, 140, 255, 0.1);
}

.avatar-crop-frame .crop-frame-corners {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.avatar-crop-frame .crop-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
}

.avatar-crop-frame .crop-corner.tl {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
  border-radius: 16px 0 0 0;
}

.avatar-crop-frame .crop-corner.tr {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 16px 0 0;
}

.avatar-crop-frame .crop-corner.bl {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 16px;
}

.avatar-crop-frame .crop-corner.br {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 16px 0;
}

.avatar-crop-frame .crop-frame-hint {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(160, 170, 200, 0.6);
  white-space: nowrap;
}

/* Canvas Actions */
.avatar-canvas-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.avatar-canvas-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(180, 190, 220, 0.8);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
}

.avatar-canvas-action-btn:hover {
  background: rgba(120, 140, 255, 0.1);
  border-color: rgba(120, 140, 255, 0.3);
  color: var(--nv-accent, #7b8cff);
}

.avatar-canvas-action-btn i {
  font-size: 0.9rem;
}

/* Controls Section */
.avatar-editor-controls-section {
  width: 340px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
}

/* Tabs */
.avatar-editor-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 16px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-editor-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(160, 170, 200, 0.6);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.25s;
}

.avatar-editor-tab i {
  font-size: 1rem;
}

.avatar-editor-tab:hover {
  color: rgba(180, 190, 220, 0.85);
}

.avatar-editor-tab.active {
  color: var(--nv-accent, #7b8cff);
  border-bottom-color: var(--nv-accent, #7b8cff);
}

/* Tab Content */
.avatar-editor-tab-content {
  display: none;
  padding: 20px;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex: 1;
}

.avatar-editor-tab-content.active {
  display: flex;
}

/* Control Groups */
.avatar-control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.avatar-control-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(180, 190, 220, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.avatar-control-label i {
  font-size: 0.85rem;
  color: var(--nv-accent, #7b8cff);
}

/* Sliders */
.avatar-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.avatar-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #7b8cff, #9b6dff);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(80, 100, 240, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.avatar-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(80, 100, 240, 0.45);
}

.avatar-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #7b8cff, #9b6dff);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(80, 100, 240, 0.3);
}

.avatar-slider-value {
  min-width: 48px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--nv-accent, #7b8cff);
  font-family: 'Orbitron', monospace;
}

/* Rotate Presets */
.avatar-rotate-presets {
  display: flex;
  gap: 10px;
}

.avatar-preset-btn {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(180, 190, 220, 0.7);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s;
}

.avatar-preset-btn:hover {
  background: rgba(120, 140, 255, 0.1);
  border-color: rgba(120, 140, 255, 0.3);
  color: var(--nv-accent, #7b8cff);
}

/* Flip Buttons */
.avatar-flip-buttons {
  display: flex;
  gap: 12px;
}

.avatar-flip-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(180, 190, 220, 0.7);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s;
}

.avatar-flip-btn:hover {
  background: rgba(120, 140, 255, 0.1);
  border-color: rgba(120, 140, 255, 0.3);
  color: var(--nv-accent, #7b8cff);
}

.avatar-flip-btn.active {
  background: rgba(120, 140, 255, 0.15);
  border-color: var(--nv-accent, #7b8cff);
  color: var(--nv-accent, #7b8cff);
}

/* Filters Grid */
.avatar-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.avatar-filter-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
}

.avatar-filter-preset:hover {
  background: rgba(120, 140, 255, 0.08);
  border-color: rgba(120, 140, 255, 0.25);
}

.avatar-filter-preset.active {
  background: rgba(120, 140, 255, 0.12);
  border-color: var(--nv-accent, #7b8cff);
}

.avatar-filter-preset .filter-preview {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.avatar-filter-preset span {
  font-size: 0.7rem;
  color: rgba(180, 190, 220, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.avatar-filter-preset.active span {
  color: var(--nv-accent, #7b8cff);
}

/* Footer */
.avatar-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.avatar-editor-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(180, 190, 220, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
}

.avatar-editor-cancel-btn:hover {
  background: rgba(255, 100, 100, 0.1);
  border-color: rgba(255, 100, 100, 0.3);
  color: #ff7070;
}

.avatar-editor-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(80, 100, 240, 0.3), rgba(160, 80, 220, 0.25));
  border: 1px solid rgba(120, 140, 255, 0.4);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.avatar-editor-save-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(80, 100, 240, 0.45), rgba(160, 80, 220, 0.4));
  border-color: rgba(120, 140, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(80, 100, 240, 0.25);
}

.avatar-editor-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.avatar-editor-save-btn.loading .btn-loader {
  display: block;
}

.avatar-editor-save-btn .btn-loader {
  display: none;
  position: absolute;
  right: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnLoaderSpin 0.8s linear infinite;
}

/* Scrollbar styling for avatar editor */
.avatar-editor-panel ::-webkit-scrollbar {
  width: 6px;
}

.avatar-editor-panel ::-webkit-scrollbar-track {
  background: transparent;
}

.avatar-editor-panel ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(120, 140, 255, 0.3), rgba(160, 100, 240, 0.2));
  border-radius: 3px;
}

.avatar-editor-panel ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(120, 140, 255, 0.5), rgba(160, 100, 240, 0.4));
}

/* Light theme adjustments */
body.theme-alt .avatar-editor-panel {
  background: linear-gradient(165deg, rgba(245, 247, 255, 0.98) 0%, rgba(235, 238, 250, 0.99) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-alt .avatar-editor-header {
  background: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-alt .avatar-editor-header h3 {
  color: #1a1a2e;
}

body.theme-alt .avatar-editor-backdrop {
  background: rgba(255, 255, 255, 0.85);
}

body.theme-alt .avatar-control-label {
  color: rgba(40, 50, 80, 0.85);
}

body.theme-alt .avatar-slider {
  background: rgba(0, 0, 0, 0.08);
}

body.theme-alt .avatar-editor-footer {
  background: rgba(255, 255, 255, 0.5);
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .avatar-editor-panel {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    border-radius: 0;
  }

  .avatar-editor-body {
    flex-direction: column;
  }

  .avatar-editor-canvas-section {
    padding: 20px;
  }

  .avatar-editor-controls-section {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 45vh;
  }

  .avatar-filters-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .avatar-filter-preset .filter-preview {
    width: 48px;
    height: 48px;
  }
}

/* =============================================================================
   REMIX FEATURE STYLES
   Professional glassmorphic remixing UI with cinematic animations
   ============================================================================= */

/* Remix Button - Glassmorphic overlay button on asset hover */
.nv-remix-btn-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  
  /* Glassmorphism */
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.25) 0%,
    rgba(99, 102, 241, 0.18) 50%,
    rgba(168, 85, 247, 0.15) 100%
  );
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  
  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Show on media hover */
.pulse-asset-overlay-media:hover .nv-remix-btn-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nv-remix-btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 100%,
    rgba(168, 85, 247, 0.5) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.nv-remix-btn-border {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.8) 0%,
    rgba(99, 102, 241, 0.4) 50%,
    rgba(168, 85, 247, 0.8) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: nvRemixBorderFlow 3s linear infinite;
}

@keyframes nvRemixBorderFlow {
  0% { filter: hue-rotate(0deg); opacity: 0.7; }
  50% { filter: hue-rotate(20deg); opacity: 1; }
  100% { filter: hue-rotate(0deg); opacity: 0.7; }
}

.nv-remix-btn-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.nv-remix-btn-content i {
  font-size: 1rem;
  color: rgba(168, 85, 247, 1);
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* Remix button hover */
.nv-remix-btn-overlay:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 15px 50px rgba(168, 85, 247, 0.4),
    0 0 40px rgba(168, 85, 247, 0.2);
}

.nv-remix-btn-overlay:hover .nv-remix-btn-glow {
  opacity: 1;
}

.nv-remix-btn-overlay:hover .nv-remix-btn-content i {
  transform: rotate(15deg) scale(1.15);
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.9);
}

.nv-remix-btn-overlay:active {
  transform: translateY(-1px) scale(1.02);
}

/* Remix Badge - Shows on remixed assets */
.nv-remix-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 15;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  
  /* Glassmorphism - Purple accent */
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.35) 0%,
    rgba(99, 102, 241, 0.25) 50%,
    rgba(168, 85, 247, 0.2) 100%
  );
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(168, 85, 247, 0.15) inset,
    0 0 20px rgba(168, 85, 247, 0.15);
  
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  
  animation: nvRemixBadgeFloat 4s ease-in-out infinite;
}

.nv-remix-badge.visible {
  display: flex;
}

.nv-remix-badge i {
  font-size: 0.9rem;
  color: rgba(168, 85, 247, 1);
  animation: nvRemixBadgeSpin 8s linear infinite;
}

@keyframes nvRemixBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes nvRemixBadgeSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =============================================================================
   REMIX STUDIO OVERLAY
   Professional minimalistic remix UI with cinematic animations
   ============================================================================= */

.nv-remix-studio-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nv-remix-studio-overlay.visible {
  visibility: visible;
  opacity: 1;
}

.nv-remix-studio-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.nv-remix-studio-panel {
  position: relative;
  width: min(1200px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 32px;
  overflow: hidden;
  
  /* Enhanced glassmorphism */
  background: linear-gradient(
    165deg,
    rgba(15, 18, 35, 0.95) 0%,
    rgba(10, 12, 25, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 60px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(168, 85, 247, 0.1) inset,
    0 0 100px rgba(168, 85, 247, 0.08);
  
  transform: scale(0.95) translateY(20px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nv-remix-studio-overlay.visible .nv-remix-studio-panel {
  transform: scale(1) translateY(0);
}

.nv-remix-studio-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--nv-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.nv-remix-studio-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Remix Studio Body */
.nv-remix-studio-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  overflow: hidden;
}

@media (max-width: 900px) {
  .nv-remix-studio-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}

/* Asset Section */
.nv-remix-asset-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4);
  min-height: 400px;
  overflow: hidden;
}

.nv-remix-asset-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(20, 25, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.nv-remix-asset-wrapper img,
.nv-remix-asset-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nv-remix-asset-wrapper audio {
  width: 90%;
  margin: auto;
}

.nv-remix-asset-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--nv-muted);
}

.nv-remix-asset-placeholder i {
  font-size: 3rem;
  opacity: 0.5;
}

/* Category & Model Badges */
.nv-remix-category-badge,
.nv-remix-model-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--nv-text);
}

.nv-remix-category-badge {
  bottom: 20px;
  left: 20px;
}

.nv-remix-category-badge i {
  color: var(--nv-accent);
}

.nv-remix-model-tag {
  bottom: 20px;
  right: 20px;
  font-size: 0.75rem;
  padding: 8px 14px;
  opacity: 0.8;
}

.nv-remix-model-tag i {
  color: var(--nv-organic);
  font-size: 0.8rem;
}

/* Prompt Section */
.nv-remix-prompt-section {
  display: flex;
  flex-direction: column;
  padding: 40px;
  overflow-y: auto;
  background: rgba(8, 10, 20, 0.4);
}

.nv-remix-prompt-header {
  margin-bottom: 32px;
}

.nv-remix-prompt-header h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.nv-remix-prompt-header h3 i {
  color: var(--nv-accent);
  font-size: 1.4rem;
}

.nv-remix-prompt-subtitle {
  margin: 0;
  color: var(--nv-muted);
  font-size: 0.95rem;
}

/* Prompt Container */
.nv-remix-prompt-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nv-remix-prompt-bar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 20px;
  
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.nv-remix-prompt-bar:focus-within {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.1);
}

.nv-remix-prompt-input-wrapper {
  position: relative;
}

.nv-remix-prompt-input {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--nv-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s ease;
}

.nv-remix-prompt-input::placeholder {
  color: var(--nv-muted);
}

.nv-remix-prompt-input:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.4);
}

.nv-remix-char-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.75rem;
  color: var(--nv-muted);
  pointer-events: none;
}

/* Prompt Action Buttons */
.nv-remix-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Enhance Button */
.nv-remix-enhance-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  
  background: linear-gradient(
    135deg,
    rgba(0, 229, 160, 0.15) 0%,
    rgba(0, 180, 130, 0.1) 100%
  );
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nv-enhance-btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 80% at 50% 100%,
    rgba(0, 229, 160, 0.4) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.nv-enhance-btn-border {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 160, 0.6) 0%,
    rgba(0, 180, 130, 0.3) 50%,
    rgba(0, 229, 160, 0.6) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nv-enhance-btn-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
  color: var(--nv-organic);
  font-weight: 600;
  font-size: 0.95rem;
}

.nv-enhance-btn-content i {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nv-remix-enhance-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 229, 160, 0.25);
}

.nv-remix-enhance-btn:hover .nv-enhance-btn-glow {
  opacity: 1;
}

.nv-remix-enhance-btn:hover .nv-enhance-btn-content i {
  transform: rotate(-10deg) scale(1.1);
}

/* Enhance Loader */
.nv-enhance-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: inherit;
  border-radius: inherit;
}

.nv-remix-enhance-btn.loading .nv-enhance-btn-content {
  visibility: hidden;
}

.nv-remix-enhance-btn.loading .nv-enhance-loader {
  display: flex;
}

.nv-loader-dots {
  display: flex;
  gap: 6px;
}

.nv-loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nv-organic);
  animation: nvLoaderDotBounce 1.4s ease-in-out infinite;
}

.nv-loader-dot:nth-child(1) { animation-delay: 0s; }
.nv-loader-dot:nth-child(2) { animation-delay: 0.2s; }
.nv-loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes nvLoaderDotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Submit Button */
.nv-remix-submit-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.3) 0%,
    rgba(99, 102, 241, 0.2) 100%
  );
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nv-submit-btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 80% at 50% 100%,
    rgba(168, 85, 247, 0.5) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.nv-submit-btn-border {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.8) 0%,
    rgba(99, 102, 241, 0.4) 50%,
    rgba(168, 85, 247, 0.8) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: nvSubmitBorderFlow 2.5s linear infinite;
}

@keyframes nvSubmitBorderFlow {
  0% { filter: hue-rotate(0deg); opacity: 0.8; }
  50% { filter: hue-rotate(15deg); opacity: 1; }
  100% { filter: hue-rotate(0deg); opacity: 0.8; }
}

.nv-submit-btn-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.nv-submit-btn-content i {
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nv-remix-submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 50px rgba(168, 85, 247, 0.35),
    0 0 50px rgba(168, 85, 247, 0.15);
}

.nv-remix-submit-btn:hover .nv-submit-btn-glow {
  opacity: 1;
}

.nv-remix-submit-btn:hover .nv-submit-btn-content i {
  transform: translateX(4px);
}

.nv-remix-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Submit Loader */
.nv-submit-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: inherit;
  border-radius: inherit;
}

.nv-remix-submit-btn.loading .nv-submit-btn-content {
  visibility: hidden;
}

.nv-remix-submit-btn.loading .nv-submit-loader {
  display: flex;
}

.nv-loader-ring {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--nv-accent);
  border-radius: 50%;
  animation: nvLoaderRingSpin 0.8s linear infinite;
}

@keyframes nvLoaderRingSpin {
  to { transform: rotate(360deg); }
}

/* Enhancement Preview */
.nv-remix-enhance-preview {
  display: none;
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.2);
  animation: nvEnhancePreviewSlide 0.4s ease-out;
}

.nv-remix-enhance-preview.visible {
  display: block;
}

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

.nv-enhance-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.nv-enhance-preview-header i {
  color: var(--nv-organic);
}

.nv-enhance-preview-header span {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--nv-organic);
}

.nv-enhance-preview-use {
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  background: var(--nv-organic);
  color: #000;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nv-enhance-preview-use:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 229, 160, 0.4);
}

.nv-enhance-preview-text {
  margin: 0;
  color: var(--nv-text);
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Processing State */
.nv-remix-processing {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  animation: nvProcessingFadeIn 0.5s ease-out;
}

.nv-remix-processing.visible {
  display: flex;
}

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

.nv-remix-processing-visual {
  margin-bottom: 32px;
}

.nv-processing-orb {
  position: relative;
  width: 100px;
  height: 100px;
}

.nv-orb-core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  animation: nvOrbCorePulse 2s ease-in-out infinite;
}

@keyframes nvOrbCorePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.nv-orb-ring {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--nv-accent);
  border-radius: 50%;
}

.nv-orb-ring-1 {
  animation: nvOrbRingSpin 2s linear infinite;
}

.nv-orb-ring-2 {
  inset: 10%;
  border-top-color: var(--nv-accent-2);
  animation: nvOrbRingSpin 1.5s linear infinite reverse;
}

.nv-orb-ring-3 {
  inset: 20%;
  border-top-color: var(--nv-organic);
  animation: nvOrbRingSpin 1s linear infinite;
}

@keyframes nvOrbRingSpin {
  to { transform: rotate(360deg); }
}

.nv-processing-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nv-processing-subtitle {
  margin: 0 0 32px;
  color: var(--nv-muted);
  font-size: 0.95rem;
}

.nv-processing-steps {
  display: flex;
  gap: 24px;
}

.nv-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--nv-muted);
  font-size: 0.85rem;
  transition: all 0.4s ease;
}

.nv-step.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--nv-accent);
}

.nv-step.active i {
  animation: nvStepIconPulse 1s ease-in-out infinite;
}

.nv-step.complete {
  background: rgba(0, 229, 160, 0.15);
  border-color: rgba(0, 229, 160, 0.4);
  color: var(--nv-organic);
}

@keyframes nvStepIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Success State */
.nv-remix-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  animation: nvSuccessBounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nv-remix-success.visible {
  display: flex;
}

@keyframes nvSuccessBounceIn {
  0% { opacity: 0; transform: scale(0.8); }
  50% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.nv-remix-success-visual {
  position: relative;
  margin-bottom: 24px;
}

.nv-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-organic), #00b894);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 15px 40px rgba(0, 229, 160, 0.4);
  animation: nvSuccessIconPop 0.5s ease-out 0.2s both;
}

@keyframes nvSuccessIconPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.nv-success-confetti {
  position: absolute;
  inset: -50px;
  background: 
    radial-gradient(circle at 20% 30%, var(--nv-accent) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, var(--nv-organic) 2px, transparent 2px),
    radial-gradient(circle at 60% 80%, var(--nv-accent-2) 2px, transparent 2px),
    radial-gradient(circle at 30% 70%, var(--nv-accent) 2px, transparent 2px);
  animation: nvConfettiSpread 1s ease-out forwards;
  pointer-events: none;
}

@keyframes nvConfettiSpread {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.nv-remix-success h4 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.nv-remix-success p {
  margin: 0 0 32px;
  color: var(--nv-muted);
  font-size: 0.95rem;
}

.nv-remix-success-actions {
  display: flex;
  gap: 16px;
}

.nv-remix-view-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--nv-accent), var(--nv-accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nv-remix-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.nv-remix-close-success-btn {
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--nv-text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nv-remix-close-success-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Light Theme */
body.theme-alt .nv-remix-studio-panel {
  background: linear-gradient(
    165deg,
    rgba(250, 252, 255, 0.98) 0%,
    rgba(240, 243, 250, 0.99) 100%
  );
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-alt .nv-remix-studio-backdrop {
  background: rgba(255, 255, 255, 0.9);
}

body.theme-alt .nv-remix-prompt-input {
  background: rgba(0, 0, 0, 0.05);
}

body.theme-alt .nv-remix-prompt-input:focus {
  background: rgba(0, 0, 0, 0.08);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .nv-remix-studio-panel {
    max-height: 100vh;
    border-radius: 0;
  }
  
  .nv-remix-asset-section {
    min-height: 300px;
    padding: 24px;
  }
  
  .nv-remix-asset-wrapper {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
  
  .nv-remix-prompt-section {
    padding: 24px;
  }
  
  .nv-remix-prompt-actions {
    flex-direction: column;
  }
  
  .nv-remix-enhance-btn,
  .nv-remix-submit-btn {
    width: 100%;
    justify-content: center;
  }
  
  .nv-processing-steps {
    flex-direction: column;
    gap: 12px;
  }
}

/* =============================================================================
   FOLLOWERS/FOLLOWING CONNECTIONS OVERLAY
   Professional Glassmorphic UI for viewing followers and following
   ============================================================================= */

/* Overlay Container */
.nv-connections-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  z-index: 70;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
}

.nv-connections-overlay.visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

/* Backdrop */
.nv-connections-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

/* Main Panel */
.nv-connections-panel {
  position: relative;
  width: min(480px, 95vw);
  max-height: min(700px, 90vh);
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    165deg,
    rgba(18, 22, 38, 0.97) 0%,
    rgba(10, 12, 24, 0.99) 100%
  );
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 100px rgba(124, 92, 255, 0.1);
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nv-connections-overlay.visible .nv-connections-panel {
  transform: translateY(0) scale(1);
}

/* Close Button */
.nv-connections-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--nv-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 5;
  transition: all 0.3s ease;
}

.nv-connections-close:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  color: var(--nv-danger);
  transform: rotate(90deg);
}

/* Header */
.nv-connections-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nv-connections-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nv-connections-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(124, 92, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--nv-accent);
}

.nv-connections-header h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--nv-text);
  letter-spacing: 0.3px;
}

.nv-connections-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--nv-muted);
}

/* Tabs */
.nv-connections-tabs {
  display: flex;
  padding: 0 20px;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nv-connections-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--nv-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nv-connections-tab:hover {
  color: var(--nv-text);
  background: rgba(255, 255, 255, 0.02);
}

.nv-connections-tab.active {
  color: var(--nv-accent);
  border-bottom-color: var(--nv-accent);
}

.nv-connections-tab i {
  font-size: 0.95rem;
}

.nv-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.nv-connections-tab.active .nv-tab-count {
  background: rgba(124, 92, 255, 0.2);
  color: var(--nv-accent);
}

/* Search Bar */
.nv-connections-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 20px 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.nv-connections-search:focus-within {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 92, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

.nv-connections-search i {
  color: var(--nv-muted);
  font-size: 0.9rem;
}

.nv-connections-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--nv-text);
  font-size: 0.9rem;
  font-family: inherit;
}

.nv-connections-search input::placeholder {
  color: var(--nv-muted);
}

/* Connection Lists Body */
.nv-connections-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.nv-connections-list {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px 20px 20px;
}

.nv-connections-list.active {
  display: flex;
}

.nv-connections-list::-webkit-scrollbar {
  width: 6px;
}

.nv-connections-list::-webkit-scrollbar-track {
  background: transparent;
}

.nv-connections-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.nv-connections-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Loader */
.nv-connections-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 16px;
  color: var(--nv-muted);
  font-size: 0.9rem;
}

.nv-loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--nv-accent);
  border-radius: 50%;
  animation: nvSpinLoader 0.8s linear infinite;
}

@keyframes nvSpinLoader {
  to { transform: rotate(360deg); }
}

/* Empty State */
.nv-connections-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}

.nv-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--nv-muted);
  margin-bottom: 20px;
}

.nv-connections-empty h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nv-text);
}

.nv-connections-empty p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--nv-muted);
  max-width: 280px;
}

/* Connection Items Container */
.nv-connections-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Connection Item Card */
.nv-connection-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;
}

.nv-connection-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 92, 255, 0.2);
  transform: translateX(4px);
}

/* Avatar */
.nv-connection-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.3), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nv-text);
  text-transform: uppercase;
  overflow: hidden;
  flex-shrink: 0;
}

.nv-connection-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* User Info */
.nv-connection-info {
  flex: 1;
  min-width: 0;
}

.nv-connection-name {
  margin: 0 0 3px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nv-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-connection-handle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--nv-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Follow Button in Connection Item */
.nv-connection-action {
  flex-shrink: 0;
}

.nv-connection-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--nv-accent);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nv-connection-follow-btn:hover {
  background: rgba(124, 92, 255, 0.25);
  border-color: rgba(124, 92, 255, 0.5);
  transform: scale(1.02);
}

.nv-connection-follow-btn.following {
  background: rgba(0, 229, 160, 0.1);
  border-color: rgba(0, 229, 160, 0.3);
  color: var(--nv-organic);
}

.nv-connection-follow-btn.following:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  color: var(--nv-danger);
}

.nv-connection-follow-btn.following:hover .nv-follow-text {
  display: none;
}

.nv-connection-follow-btn.following:hover .nv-unfollow-text {
  display: inline;
}

.nv-connection-follow-btn .nv-unfollow-text {
  display: none;
}

.nv-connection-follow-btn i {
  font-size: 0.75rem;
}

/* Mutual Badge */
.nv-mutual-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.2);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--nv-organic);
  margin-left: 8px;
}

.nv-mutual-badge i {
  font-size: 0.65rem;
}

/* Light Theme Adjustments */
body.theme-alt .nv-connections-backdrop {
  background: rgba(255, 255, 255, 0.92);
}

body.theme-alt .nv-connections-panel {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 255, 0.99) 100%
  );
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.03) inset;
}

body.theme-alt .nv-connection-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

body.theme-alt .nv-connections-search {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-alt .nv-connections-search:focus-within {
  background: rgba(0, 0, 0, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .nv-connections-overlay {
    padding: 0;
  }
  
  .nv-connections-panel {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .nv-connections-header {
    padding: 20px;
  }
  
  .nv-connections-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .nv-connections-header h3 {
    font-size: 1.2rem;
  }
  
  .nv-connections-tabs {
    padding: 0 16px;
  }
  
  .nv-connections-tab {
    padding: 14px 8px;
    font-size: 0.85rem;
  }
  
  .nv-connections-search {
    margin: 12px 16px 8px;
  }
  
  .nv-connections-list {
    padding: 12px 16px 24px;
  }
  
  .nv-connection-item {
    padding: 12px 14px;
  }
  
  .nv-connection-avatar {
    width: 42px;
    height: 42px;
  }
}

/* Clickable Stats Enhancement */
.profile-panel-stats .stat.clickable-stat,
.other-user-stats .stat.clickable-stat {
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-panel-stats .stat.clickable-stat:hover,
.other-user-stats .stat.clickable-stat:hover {
  background: rgba(124, 92, 255, 0.1);
  border-color: rgba(124, 92, 255, 0.3);
  transform: translateY(-2px);
}

.profile-panel-stats .stat.clickable-stat:active,
.other-user-stats .stat.clickable-stat:active {
  transform: translateY(0);
}

