/**
 * Elite+ Community Premium Design System
 * Ultra-premium social experience with glass morphism, animations & polish
 * v2.0 - Complete Visual Overhaul
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS VARIABLES - COMMUNITY THEME
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --comm-gradient-1: linear-gradient(135deg, #00f0ff, #0090ff);
  --comm-gradient-2: linear-gradient(135deg, #a855f7, #6366f1);
  --comm-gradient-3: linear-gradient(135deg, #ffd700, #ff8c00);
  --comm-gradient-4: linear-gradient(135deg, #22c55e, #10b981);
  --comm-gradient-hero: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.08), rgba(99, 102, 241, 0.05));
  --comm-glass-bg: rgba(20, 21, 31, 0.85);
  --comm-glass-border: rgba(255, 255, 255, 0.08);
  --comm-glow-cyan: 0 0 30px rgba(0, 240, 255, 0.3);
  --comm-glow-purple: 0 0 30px rgba(168, 85, 247, 0.3);
  --comm-glow-gold: 0 0 30px rgba(255, 215, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   AMBIENT BACKGROUND & FLOATING ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.community-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.community-container::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: ambientPulse 8s ease-in-out infinite;
}

.community-container::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: ambientPulse 10s ease-in-out infinite reverse;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM TAB NAVIGATION - GLASSMORPHISM
   ═══════════════════════════════════════════════════════════════════════════ */

.community-tabs {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.75rem;
  background: var(--comm-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--comm-glass-border);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.community-tabs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), rgba(168, 85, 247, 0.3), transparent);
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: 14px;
  color: var(--text-secondary, #8b8fa3);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-btn:hover {
  color: var(--text-primary, #fff);
  transform: translateY(-2px);
}

.tab-btn:hover::before {
  opacity: 0.5;
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.2));
  box-shadow: 
    var(--comm-glow-cyan),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--comm-gradient-1);
  border-radius: 3px;
}

.tab-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.tab-btn:hover svg {
  transform: scale(1.1);
}

.tab-btn.active svg {
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: var(--comm-gradient-1);
  color: var(--bg-primary, #0a0a0f);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 11px;
  animation: badgePulse 2s ease-in-out infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   FEED PANEL - PREMIUM LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.feed-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Premium New Post Card */
.new-post-card {
  position: relative;
  background: var(--comm-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--comm-glass-border);
  border-radius: 24px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.new-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
}

.new-post-card:focus-within {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: var(--comm-glow-cyan);
}

.new-post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--comm-gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--bg-primary, #0a0a0f);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
  position: relative;
}

.user-avatar-sm::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--comm-gradient-1) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0.5;
}

.new-post-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--comm-glass-border);
  border-radius: 25px;
  color: var(--text-primary, #fff);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.new-post-input:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.2);
}

.new-post-input::placeholder {
  color: var(--text-secondary, #8b8fa3);
}

.new-post-expanded {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--comm-glass-border);
  animation: expandIn 0.3s ease;
}

@keyframes expandIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.new-post-textarea {
  width: 100%;
  min-height: 140px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--comm-glass-border);
  border-radius: 16px;
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s ease;
}

.new-post-textarea:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.new-post-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: center;
}

.post-type-selector {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.post-type-selector label {
  font-size: 0.875rem;
  color: var(--text-secondary, #8b8fa3);
  font-weight: 500;
}

.post-type-selector select {
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--comm-glass-border);
  border-radius: 10px;
  color: var(--text-primary, #fff);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-type-selector select:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

.post-type-selector select:focus {
  outline: none;
  border-color: var(--accent, #00f0ff);
}

.new-post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

#submitPostBtn {
  background: var(--comm-gradient-1);
  color: #0a0a0f;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

#submitPostBtn:hover {
  transform: translateY(-2px);
  box-shadow: var(--comm-glow-cyan);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM FEED FILTERS - PILL STYLE
   ═══════════════════════════════════════════════════════════════════════════ */

.feed-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem;
  background: var(--comm-glass-bg);
  border-radius: 16px;
  border: 1px solid var(--comm-glass-border);
}

.filter-btn {
  padding: 0.625rem 1.125rem;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-secondary, #8b8fa3);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.filter-btn:hover {
  color: var(--text-primary, #fff);
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.15));
  box-shadow: 0 2px 12px rgba(0, 240, 255, 0.2);
}

.filter-btn.active::before {
  content: '✓';
  margin-right: 0.375rem;
  font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM POST CARDS - GLASSMORPHISM
   ═══════════════════════════════════════════════════════════════════════════ */

.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card {
  position: relative;
  background: var(--comm-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--comm-glass-border);
  border-radius: 24px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 240, 255, 0.08);
}

.post-card:hover::before {
  opacity: 1;
}

/* Post Header */
.post-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.post-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--comm-gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  transition: transform 0.3s ease;
}

.post-card:hover .post-avatar {
  transform: scale(1.05);
}

.post-meta {
  flex: 1;
  min-width: 0;
}

.post-author-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 0.375rem;
}

.post-author {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary, #fff);
  transition: color 0.2s ease;
}

.post-author:hover {
  color: var(--accent, #00f0ff);
}

/* Premium Plan Badges */
.post-badge {
  padding: 0.1875rem 0.625rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-badge.pro {
  background: var(--comm-gradient-1);
  color: #0a0a0f;
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.3);
}

.post-badge.premium {
  background: var(--comm-gradient-3);
  color: #0a0a0f;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  animation: premiumShine 3s ease-in-out infinite;
}

@keyframes premiumShine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.post-badge.free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #8b8fa3);
}

/* Post Type Badge */
.post-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary, #8b8fa3);
}

.post-time {
  font-size: 0.8125rem;
  color: var(--text-muted, #6b7280);
}

/* Post Content */
.post-content {
  margin-bottom: 1.25rem;
}

.post-content p {
  color: var(--text-primary, #fff);
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-clip {
  margin-top: 1rem;
}

.post-clip a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  color: var(--accent-purple, #a855f7);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.post-clip a:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(99, 102, 241, 0.3));
  transform: translateY(-2px);
  box-shadow: var(--comm-glow-purple);
}

/* Post Actions - Premium Interaction Buttons */
.post-actions {
  display: flex;
  gap: 0.625rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--comm-glass-border);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-secondary, #8b8fa3);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #fff);
  transform: translateY(-2px);
}

.action-btn svg {
  transition: transform 0.2s ease;
}

.action-btn:hover svg {
  transform: scale(1.15);
}

/* Like Button States */
.action-btn.like-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.action-btn.liked {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.action-btn.liked svg {
  fill: currentColor;
  animation: likeHeart 0.4s ease;
}

@keyframes likeHeart {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
}

/* Comment Button */
.action-btn.comment-btn:hover {
  color: var(--accent, #00f0ff);
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.2);
}

/* DM Button */
.action-btn.dm-btn:hover {
  color: var(--accent-purple, #a855f7);
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM COMMENTS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.post-comments {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--comm-glass-border);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.comments-list::-webkit-scrollbar {
  width: 4px;
}

.comments-list::-webkit-scrollbar-track {
  background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 2px;
}

.comment-item {
  display: flex;
  gap: 0.875rem;
  animation: commentFadeIn 0.3s ease;
}

@keyframes commentFadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--comm-gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0a0a0f;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.875rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--comm-glass-border);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.comment-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary, #fff);
}

.comment-badge {
  padding: 0.0625rem 0.375rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
}

.comment-badge.pro {
  background: var(--comm-gradient-1);
  color: #0a0a0f;
}

.comment-badge.premium {
  background: var(--comm-gradient-3);
  color: #0a0a0f;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
}

.comment-text {
  font-size: 0.9375rem;
  color: var(--text-primary, #fff);
  line-height: 1.5;
}

/* Add Comment */
.add-comment {
  display: flex;
  gap: 0.625rem;
}

.comment-input {
  flex: 1;
  padding: 0.75rem 1.125rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--comm-glass-border);
  border-radius: 25px;
  color: var(--text-primary, #fff);
  font-size: 0.9375rem;
  transition: all 0.25s ease;
}

.comment-input:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.send-comment-btn {
  background: var(--comm-gradient-1) !important;
  color: #0a0a0f !important;
  font-weight: 600;
  border-radius: 25px !important;
  padding: 0.75rem 1.25rem !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM CLUBS PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.clubs-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.clubs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.clubs-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.clubs-header h3::before {
  content: '👥';
  font-size: 1.25rem;
}

#createClubBtn {
  background: var(--comm-gradient-3);
  color: #0a0a0f;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

#createClubBtn:hover {
  transform: translateY(-2px);
  box-shadow: var(--comm-glow-gold);
}

.premium-hint {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
}

.premium-hint .premium-badge {
  padding: 0.25rem 0.625rem;
  background: var(--comm-gradient-3);
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #0a0a0f;
}

.premium-hint span:last-child {
  font-size: 0.875rem;
  color: var(--text-secondary, #8b8fa3);
}

/* Club Filters */
.clubs-filters {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.875rem 1.25rem;
  background: var(--comm-glass-bg);
  border: 1px solid var(--comm-glass-border);
  border-radius: 14px;
  color: var(--text-primary, #fff);
  font-size: 0.9375rem;
  transition: all 0.25s ease;
}

.search-input:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: var(--comm-glow-cyan);
}

.search-input::placeholder {
  color: var(--text-secondary, #8b8fa3);
}

.clubs-filters select {
  padding: 0.875rem 1.25rem;
  background: var(--comm-glass-bg);
  border: 1px solid var(--comm-glass-border);
  border-radius: 14px;
  color: var(--text-primary, #fff);
  font-size: 0.9375rem;
  cursor: pointer;
}

/* Premium Club Cards */
.clubs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--comm-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--comm-glass-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.club-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--comm-gradient-2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.club-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(168, 85, 247, 0.1);
}

.club-card:hover::before {
  opacity: 1;
}

.club-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.club-card:hover .club-icon {
  transform: scale(1.1) rotate(5deg);
}

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

.club-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 0.375rem;
}

.club-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary, #8b8fa3);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.club-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted, #6b7280);
}

.club-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.club-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.member-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #22c55e;
  font-size: 0.875rem;
  font-weight: 600;
}

.join-club-btn {
  background: var(--comm-gradient-2) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM MESSAGES PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.messages-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  min-height: 550px;
}

@media (min-width: 768px) {
  .messages-panel {
    grid-template-columns: 320px 1fr;
  }
}

.messages-sidebar {
  background: var(--comm-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--comm-glass-border);
  border-radius: 20px;
  padding: 1.25rem;
  overflow: hidden;
}

.messages-sidebar h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary, #fff);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.messages-sidebar h3::before {
  content: '💬';
}

.conversations-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.conversation-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.conversation-item.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 247, 0.1));
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
}

.conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--comm-gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #0a0a0f;
  flex-shrink: 0;
  position: relative;
}

.conv-avatar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid var(--card-bg, #14151f);
  border-radius: 50%;
}

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

.conv-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary, #fff);
  margin-bottom: 0.25rem;
}

.conv-preview {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary, #8b8fa3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: var(--comm-gradient-1);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: unreadPulse 2s ease-in-out infinite;
}

@keyframes unreadPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
}

/* Messages Content */
.messages-content {
  background: var(--comm-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--comm-glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  overflow: hidden;
}

.no-conversation-selected {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary, #8b8fa3);
  padding: 2rem;
}

.no-conversation-selected .empty-icon {
  font-size: 4rem;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.no-conversation-selected h3 {
  font-size: 1.25rem;
  color: var(--text-primary, #fff);
  margin-bottom: 0.5rem;
}

.conversation-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--comm-glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.conversation-header h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
}

.conversation-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* DM Messages */
.dm-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: dmFadeIn 0.3s ease;
}

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

.dm-message.own {
  align-items: flex-end;
}

.dm-bubble {
  max-width: 75%;
  padding: 0.875rem 1.125rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--comm-glass-border);
  border-radius: 20px;
  border-bottom-left-radius: 6px;
}

.dm-message.own .dm-bubble {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.15));
  border-color: rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  border-bottom-right-radius: 6px;
}

.dm-bubble p {
  font-size: 0.9375rem;
  color: var(--text-primary, #fff);
  line-height: 1.5;
  margin-bottom: 0.375rem;
}

.dm-time {
  font-size: 0.6875rem;
  color: var(--text-muted, #6b7280);
}

.conversation-input {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--comm-glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.conversation-input .chat-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--comm-glass-border);
  border-radius: 25px;
  color: var(--text-primary, #fff);
  font-size: 0.9375rem;
}

.conversation-input .chat-input:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.3);
}

.send-dm-btn {
  background: var(--comm-gradient-1) !important;
  color: #0a0a0f !important;
  font-weight: 600;
  border-radius: 25px !important;
  padding: 0.875rem 1.5rem !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM MODALS
   ═══════════════════════════════════════════════════════════════════════════ */

.community-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10000;
  animation: modalOverlayIn 0.25s ease;
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.community-modal {
  position: relative;
  background: var(--card-bg, #14151f);
  border: 1px solid var(--comm-glass-border);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 240, 255, 0.1);
}

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

.community-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--comm-gradient-1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--comm-glass-border);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 10px;
  color: var(--text-secondary, #8b8fa3);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #fff);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--comm-glass-border);
  border-radius: 14px;
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.875rem;
  padding: 1.5rem 1.75rem;
  border-top: 1px solid var(--comm-glass-border);
}

.modal-create-btn {
  background: var(--comm-gradient-3) !important;
  color: #0a0a0f !important;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATES - PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */

.empty-feed,
.empty-clubs,
.loading-posts,
.loading-clubs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-secondary, #8b8fa3);
}

.empty-feed .empty-icon,
.empty-clubs .empty-icon {
  font-size: 4rem;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.empty-feed h3,
.empty-clubs h3 {
  font-size: 1.25rem;
  color: var(--text-primary, #fff);
  margin-bottom: 0.625rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--comm-glass-border);
  border-top-color: var(--accent, #00f0ff);
  border-radius: 50%;
  animation: spinPremium 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   UPGRADE OVERLAY - PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */

.community-upgrade-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  padding: 2rem;
}

.upgrade-content {
  text-align: center;
  max-width: 550px;
  padding: 3rem;
  background: var(--comm-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--comm-glass-border);
  border-radius: 28px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 240, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.upgrade-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--comm-gradient-1);
}

.upgrade-content .upgrade-icon {
  font-size: 5rem;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 30px rgba(0, 240, 255, 0.3));
}

.upgrade-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: var(--comm-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upgrade-content > p {
  color: var(--text-secondary, #8b8fa3);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.upgrade-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 14px;
  color: var(--text-primary, #fff);
  transition: all 0.25s ease;
}

.feature-item:hover {
  background: rgba(0, 240, 255, 0.08);
  transform: translateX(5px);
}

.feature-item .feature-icon {
  font-size: 1.5rem;
}

.upgrade-content .btn-premium {
  background: var(--comm-gradient-1);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 1rem 2rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.3);
}

.upgrade-content .btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.4);
}

.upgrade-hint {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--accent-gold, #ffd700);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .community-container {
    padding: 1rem;
  }

  .community-tabs {
    flex-direction: column;
    padding: 0.625rem;
  }

  .tab-btn {
    justify-content: flex-start;
    padding: 0.875rem 1rem;
  }

  .clubs-list {
    grid-template-columns: 1fr;
  }

  .messages-panel {
    grid-template-columns: 1fr;
  }

  .messages-sidebar {
    max-height: 280px;
    overflow-y: auto;
  }

  .post-author-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

  .dm-bubble {
    max-width: 85%;
  }
  
  .community-layout {
    grid-template-columns: 1fr !important;
  }
  
  .community-sidebar {
    display: none !important;
  }
  
  .community-hero {
    margin-bottom: 1rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
  }
  
  .hero-stat {
    flex: 1 1 45%;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .post-card,
  .new-post-card,
  .club-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .post-avatar,
  .user-avatar-sm {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .clubs-header {
    flex-direction: column;
    align-items: stretch;
  }

  .clubs-filters {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMMUNITY HERO STATS
   ═══════════════════════════════════════════════════════════════════════════ */

.community-hero {
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--comm-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--comm-glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hero-stat .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--comm-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat.online .stat-value {
  background: var(--comm-gradient-4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-stat.online .stat-value::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-stat .stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary, #8b8fa3);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMMUNITY LAYOUT - MAIN + SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */

.community-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.community-main {
  min-width: 0;
}

.community-sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-section {
  background: var(--comm-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--comm-glass-border);
  border-radius: 18px;
  padding: 1.25rem;
}

.sidebar-section h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Active Users List */
.active-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.active-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.active-user:hover {
  background: rgba(255, 255, 255, 0.03);
}

.user-avatar-xs {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--comm-gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #0a0a0f;
  flex-shrink: 0;
}

.active-user .user-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary, #fff);
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: onlinePulse 2s ease-in-out infinite;
}

/* Your Stats */
.your-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.your-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.875rem 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.your-stat:hover {
  background: rgba(0, 240, 255, 0.05);
  transform: translateY(-2px);
}

.your-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent, #00f0ff);
}

.your-stat-label {
  font-size: 0.6875rem;
  color: var(--text-secondary, #8b8fa3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Leaderboard */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.5rem;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard-item .rank {
  width: 28px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary, #8b8fa3);
}

.leaderboard-item .rank.top-1 { color: #ffd700; }
.leaderboard-item .rank.top-2 { color: #c0c0c0; }
.leaderboard-item .rank.top-3 { color: #cd7f32; }

.leader-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary, #fff);
  font-weight: 500;
}

.leader-score {
  font-size: 0.75rem;
  color: var(--accent, #00f0ff);
  font-weight: 600;
}

/* Suggested Clubs */
.suggested-clubs {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.suggested-club {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.suggested-club:hover {
  background: rgba(168, 85, 247, 0.08);
  transform: translateX(3px);
}

.club-emoji {
  font-size: 1.5rem;
}

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

.club-name-mini {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-members-mini {
  font-size: 0.75rem;
  color: var(--text-secondary, #8b8fa3);
}

.btn-xs {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.empty-hint {
  text-align: center;
  color: var(--text-secondary, #8b8fa3);
  font-size: 0.8125rem;
  padding: 1rem 0;
}

.loading-spinner.small {
  width: 24px;
  height: 24px;
  border-width: 2px;
  margin: 1rem auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRENDING PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.trending-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trending-header {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 20px;
}

.trending-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 0.375rem;
}

.trending-header p {
  color: var(--text-secondary, #8b8fa3);
  font-size: 0.9375rem;
}

.trending-posts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trending-post {
  position: relative;
}

.trending-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REACTIONS & INTERACTIONS ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.reaction-container {
  position: relative;
}

.reaction-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--card-bg, #14151f);
  border: 1px solid var(--comm-glass-border);
  border-radius: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: pickerFadeIn 0.2s ease;
  z-index: 10;
}

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

.reaction-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.3);
}

.reaction-animate {
  animation: reactionPop 0.3s ease;
}

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

.post-reactions-summary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

.reaction-emoji {
  font-size: 1rem;
}

.reaction-count {
  font-size: 0.8125rem;
  color: var(--text-secondary, #8b8fa3);
  margin-left: 0.25rem;
}

.like-animate svg {
  animation: likeHeart 0.4s ease;
}

/* Mentions and Hashtags */
.mention {
  color: var(--accent, #00f0ff);
  font-weight: 500;
  cursor: pointer;
}

.mention:hover {
  text-decoration: underline;
}

.hashtag {
  color: var(--accent-purple, #a855f7);
  font-weight: 500;
  cursor: pointer;
}

.hashtag:hover {
  text-decoration: underline;
}

/* Post Footer / Attachments */
.new-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--comm-glass-border);
}

.post-attachments {
  display: flex;
  gap: 0.5rem;
}

.attach-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--comm-glass-border);
  border-radius: 10px;
  color: var(--text-secondary, #8b8fa3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.attach-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--accent, #00f0ff);
}

/* Bookmark button states */
.bookmark-btn:hover {
  color: var(--accent-gold, #ffd700);
  background: rgba(255, 215, 0, 0.1);
}

.bookmark-btn.bookmarked {
  color: var(--accent-gold, #ffd700);
}

/* Load More Button */
.load-more-container {
  text-align: center;
  padding: 1.5rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#loadMoreBtn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--comm-glass-border);
  color: var(--text-secondary, #8b8fa3);
  transition: all 0.25s ease;
}

#loadMoreBtn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--accent, #00f0ff);
}

/* Quick Join Button */
.quick-join-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.suggested-club:hover .quick-join-btn {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REAL-TIME FEATURES STYLING
   ═══════════════════════════════════════════════════════════════════════════ */

/* New Posts Toast */
.new-posts-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--comm-gradient-1);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
  animation: slideDown 0.3s ease, pulse 2s ease-in-out infinite;
}

.new-posts-toast:hover {
  transform: translateX(-50%) scale(1.05);
}

.new-posts-toast svg {
  animation: bounce 1s infinite;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

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

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary, #8b8fa3);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.typing-user {
  font-weight: 500;
  color: var(--accent, #00f0ff);
}

.typing-dots {
  display: inline-flex;
  gap: 2px;
  margin-left: 0.25rem;
}

.typing-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent, #00f0ff);
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { 
    opacity: 0.4;
    transform: translateY(0);
  }
  30% { 
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* Online Dot */
.online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: onlinePulse 2s infinite;
  margin-left: auto;
}

@keyframes onlinePulse {
  0%, 100% { 
    opacity: 1;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  }
  50% { 
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
  }
}

/* Active User Item in Sidebar */
.active-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.active-user:hover {
  background: rgba(255, 255, 255, 0.03);
}

.user-avatar-xs {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background: var(--comm-gradient-1);
}

.user-avatar-xs.premium {
  background: var(--comm-gradient-3);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.user-avatar-xs.pro {
  background: var(--comm-gradient-1);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.active-user .user-name {
  font-size: 0.8125rem;
  color: var(--text-primary, #e8eaf0);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Connection Status Indicator */
.connection-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--comm-glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--comm-glass-border);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-secondary, #8b8fa3);
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.connection-status.visible {
  opacity: 1;
  transform: translateY(0);
}

.connection-status.connected {
  border-color: rgba(34, 197, 94, 0.3);
}

.connection-status.disconnected {
  border-color: rgba(239, 68, 68, 0.3);
}

.connection-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.connection-status.connected .status-dot {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.connection-status.disconnected .status-dot {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* Read Receipt */
.read-receipt {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: var(--text-muted, #6b7080);
}

.read-receipt.seen {
  color: var(--accent, #00f0ff);
}

.read-receipt svg {
  width: 14px;
  height: 14px;
}

/* Live Badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: livePulse 1s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Message Bubble with Real-time Effects */
.message-bubble.incoming {
  position: relative;
  overflow: hidden;
}

.message-bubble.incoming.new::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
  animation: messageHighlight 0.5s ease-out forwards;
}

@keyframes messageHighlight {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Post Update Animation */
.post-card.updated {
  animation: postUpdated 0.5s ease;
}

@keyframes postUpdated {
  0% {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 2px 16px rgba(0, 240, 255, 0.3);
  }
  100% {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* STORIES BAR - Premium Styles                                                */
/* ═══════════════════════════════════════════════════════════════════════════ */

.stories-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  overflow: hidden;
}

.add-story-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  transition: transform 0.2s ease;
}

.add-story-btn:hover {
  transform: scale(1.05);
}

.add-story-btn:hover .add-story-circle {
  border-color: var(--comm-accent-primary, #00f0ff);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.add-story-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.05));
  border: 2px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
}

.add-story-btn span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.stories-scroll-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.stories-scroll-container::-webkit-scrollbar {
  display: none;
}

.stories-scroll {
  display: flex;
  gap: 12px;
  padding: 4px;
}

.story-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.story-item:hover {
  transform: scale(1.05);
}

.story-item.unviewed .story-avatar {
  padding: 3px;
  background: linear-gradient(135deg, #ff00ff, #00f0ff, #ff6b00);
}

.story-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.story-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a2e;
}

.story-name {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.stories-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stories-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.stories-nav-btn.prev {
  left: 80px;
  display: none;
}

.stories-nav-btn.next {
  right: 8px;
  display: none;
}

.no-stories-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding: 20px;
  text-align: center;
  width: 100%;
}

/* Story Viewer Overlay */
.story-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.story-viewer {
  width: 100%;
  max-width: 420px;
  height: 90vh;
  max-height: 750px;
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.story-progress-bar {
  display: flex;
  gap: 4px;
  padding: 12px 16px 8px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.progress-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-segment.viewed {
  background: white;
}

.progress-segment.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  width: var(--progress, 0%);
  transition: width 0.05s linear;
}

.story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 16px 12px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.story-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
}

.story-user-name {
  font-weight: 600;
  color: white;
  font-size: 14px;
}

.story-time {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.story-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.story-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.story-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.story-image,
.story-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-text-overlay {
  position: absolute;
  bottom: 80px;
  left: 16px;
  right: 16px;
  text-align: center;
}

.story-text-overlay p {
  color: white;
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
}

.story-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.story-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.story-action-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.story-action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.story-reply-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 8px 12px;
}

.story-reply-input input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  outline: none;
}

.story-reply-input input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.story-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--comm-gradient-1, linear-gradient(135deg, #00f0ff, #0080ff));
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.story-send-btn:hover {
  transform: scale(1.1);
}

/* Add Story Modal */
.add-story-modal {
  max-width: 480px;
}

.story-type-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.story-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.story-type-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.story-type-btn.selected {
  border-color: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.story-type-btn .type-icon {
  font-size: 24px;
}

.story-type-btn .type-label {
  font-size: 10px;
  color: white;
  font-weight: 500;
}

.story-content-input textarea {
  width: 100%;
  min-height: 100px;
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  color: white;
  font-size: 15px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.story-content-input textarea:focus {
  border-color: var(--comm-accent-primary, #00f0ff);
}

.story-media-upload {
  margin-top: 16px;
}

.story-media-upload .upload-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.05));
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.story-media-upload .upload-btn:hover {
  border-color: var(--comm-accent-primary, #00f0ff);
  background: rgba(0, 240, 255, 0.05);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* LIVE ACTIVITY TICKER                                                         */
/* ═══════════════════════════════════════════════════════════════════════════ */

.live-activity-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.03));
  border-radius: 12px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticker-pulse {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: tickerPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

@keyframes tickerPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.ticker-content-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.ticker-item strong {
  color: var(--comm-accent-primary, #00f0ff);
  font-weight: 600;
}

.ticker-icon {
  font-size: 14px;
}

.ticker-target {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.ticker-divider {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* QUICK ACTIONS BAR                                                            */
/* ═══════════════════════════════════════════════════════════════════════════ */

.quick-actions-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.03));
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-actions-bar::-webkit-scrollbar {
  display: none;
}

.quick-action-btn {
  flex: 1;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.quick-action-btn:hover .action-icon {
  transform: scale(1.1);
}

.action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.quick-action-btn .action-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* POLL BUILDER                                                                  */
/* ═══════════════════════════════════════════════════════════════════════════ */

.poll-builder {
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.03));
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.poll-builder h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.poll-option-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.poll-option-input:focus {
  border-color: var(--comm-accent-primary, #00f0ff);
  background: rgba(0, 240, 255, 0.05);
}

.poll-option-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.add-poll-option-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-poll-option-btn:hover {
  border-color: var(--comm-accent-primary, #00f0ff);
  color: var(--comm-accent-primary, #00f0ff);
  background: rgba(0, 240, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MEDIA PREVIEW                                                                 */
/* ═══════════════════════════════════════════════════════════════════════════ */

.media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  padding: 12px;
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.03));
  border-radius: 12px;
  margin-top: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.media-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}

.media-preview-item img,
.media-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview-item .remove-media-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.media-preview-item:hover .remove-media-btn {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ENHANCED ATTACHMENT BUTTONS                                                   */
/* ═══════════════════════════════════════════════════════════════════════════ */

.enhanced-attachment-btns {
  display: flex;
  gap: 4px;
}

.attach-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.attach-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: scale(1.05);
}

.attach-btn.active {
  background: var(--comm-gradient-1, linear-gradient(135deg, #00f0ff, #0080ff));
  color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FEATURED CAROUSEL                                                             */
/* ═══════════════════════════════════════════════════════════════════════════ */

.featured-carousel {
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.03));
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.carousel-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-nav button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.carousel-content {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}

.carousel-content::-webkit-scrollbar {
  display: none;
}

.featured-card {
  flex-shrink: 0;
  width: 280px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

.featured-card .card-image {
  height: 140px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.featured-card .card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6));
}

.featured-card .card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #ff00ff, #ff6b00);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  z-index: 1;
}

.featured-card .card-body {
  padding: 16px;
}

.featured-card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.featured-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.featured-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* CHALLENGES GRID                                                               */
/* ═══════════════════════════════════════════════════════════════════════════ */

.challenges-section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header .view-all-link {
  font-size: 13px;
  color: var(--comm-accent-primary, #00f0ff);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.section-header .view-all-link:hover {
  opacity: 0.8;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.challenge-card {
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.03));
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.challenge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--challenge-gradient, linear-gradient(90deg, #00f0ff, #0080ff));
}

.challenge-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.challenge-card .challenge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--challenge-gradient, linear-gradient(135deg, #00f0ff, #0080ff));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.challenge-card .challenge-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.challenge-card .challenge-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  line-height: 1.4;
}

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

.challenge-card .participants {
  display: flex;
  align-items: center;
}

.challenge-card .participants .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: white;
  margin-left: -8px;
}

.challenge-card .participants .avatar:first-child {
  margin-left: 0;
}

.challenge-card .participants .count {
  margin-left: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.challenge-card .reward {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #ffd700;
}

.challenge-card .join-btn {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  background: var(--challenge-gradient, linear-gradient(135deg, #00f0ff, #0080ff));
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.challenge-card .join-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* WEEKLY HIGHLIGHT                                                              */
/* ═══════════════════════════════════════════════════════════════════════════ */

.weekly-highlight {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 0, 0.05));
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.weekly-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.5;
  }
  50% {
    transform: translate(-10%, 10%);
    opacity: 1;
  }
}

.weekly-highlight .highlight-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}

.weekly-highlight .highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd700, #ff6b00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.weekly-highlight .highlight-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.weekly-highlight .highlight-header p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.weekly-highlight .rewards-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
}

.weekly-highlight .reward-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.weekly-highlight .reward-item .rank {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.weekly-highlight .reward-item .rank.gold {
  color: #ffd700;
}

.weekly-highlight .reward-item .rank.silver {
  color: #c0c0c0;
}

.weekly-highlight .reward-item .rank.bronze {
  color: #cd7f32;
}

.weekly-highlight .reward-item .prize {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.weekly-highlight .reward-item .xp-reward {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MEDIA GALLERY                                                                 */
/* ═══════════════════════════════════════════════════════════════════════════ */

.media-gallery-section {
  margin-bottom: 24px;
}

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

.media-gallery-item {
  aspect-ratio: 1;
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.05));
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.media-gallery-item:hover {
  transform: scale(1.02);
}

.media-gallery-item img,
.media-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-gallery-item .media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.media-gallery-item:hover .media-overlay {
  opacity: 1;
}

.media-gallery-item .media-stats {
  display: flex;
  gap: 12px;
  color: white;
  font-size: 13px;
}

.media-gallery-item .media-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.media-gallery-item.more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.media-gallery-item.more span {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* COMMUNITY PULSE                                                               */
/* ═══════════════════════════════════════════════════════════════════════════ */

.community-pulse {
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.03));
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.community-pulse h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pulse-stat {
  text-align: center;
}

.pulse-stat .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.pulse-stat .stat-value.live {
  color: #00ff88;
}

.pulse-stat .stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ACHIEVEMENTS GRID                                                             */
/* ═══════════════════════════════════════════════════════════════════════════ */

.achievements-section {
  margin-top: 24px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.achievement-item {
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.03));
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.achievement-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.achievement-item.locked {
  opacity: 0.5;
  filter: grayscale(0.5);
}

.achievement-item .achievement-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.achievement-item .achievement-name {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.achievement-item .achievement-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RANK PROGRESS                                                                 */
/* ═══════════════════════════════════════════════════════════════════════════ */

.rank-progress {
  margin-top: 20px;
}

.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--comm-gradient-1, linear-gradient(90deg, #00f0ff, #0080ff));
  border-radius: 4px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  animation: progressShine 1.5s ease-in-out infinite;
}

@keyframes progressShine {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(20px);
  }
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.progress-labels .current {
  color: var(--comm-accent-primary, #00f0ff);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* STREAK TRACKER                                                                */
/* ═══════════════════════════════════════════════════════════════════════════ */

.streak-tracker {
  background: linear-gradient(145deg, rgba(255, 107, 0, 0.1), rgba(255, 0, 255, 0.05));
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.streak-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.streak-header .streak-icon {
  font-size: 24px;
}

.streak-header .streak-count {
  font-size: 28px;
  font-weight: 700;
  color: #ff6b00;
}

.streak-header .streak-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.streak-calendar {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.streak-day {
  flex: 1;
  text-align: center;
}

.streak-day .day-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.streak-day .day-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.streak-day .day-dot.active {
  background: linear-gradient(135deg, #ff6b00, #ff00ff);
  color: white;
}

.streak-day .day-dot.today {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ff6b00;
  color: white;
}

.streak-day .day-dot.inactive {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* STATS CHART                                                                   */
/* ═══════════════════════════════════════════════════════════════════════════ */

.stats-chart {
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.03));
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-chart h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--comm-accent-primary, #00f0ff), rgba(0, 240, 255, 0.3));
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  transition: height 0.3s ease;
}

.chart-bar:hover {
  background: linear-gradient(to top, #00f0ff, #0080ff);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* SAVED POSTS                                                                   */
/* ═══════════════════════════════════════════════════════════════════════════ */

.saved-posts-section {
  margin-bottom: 16px;
}

.saved-posts-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.saved-posts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-post-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.03));
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.saved-post-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.saved-post-item .post-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.saved-post-item .post-info {
  flex: 1;
  min-width: 0;
}

.saved-post-item .post-title {
  font-size: 12px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-post-item .post-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* QUICK LINKS                                                                   */
/* ═══════════════════════════════════════════════════════════════════════════ */

.quick-links-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.quick-link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--comm-glass-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-link-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.quick-link-btn .link-icon {
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HERO SECTION ENHANCEMENTS                                                     */
/* ═══════════════════════════════════════════════════════════════════════════ */

.hero-live-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #00ff88;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
  }
}

.hero-live-badge .live-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: liveDotPulse 1s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.ambient-bg .gradient-orb:nth-child(3) {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.15), transparent 70%);
  top: 30%;
  left: 50%;
  animation: orbFloat 14s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE ADJUSTMENTS                                                        */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .stories-bar {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .story-avatar,
  .add-story-circle {
    width: 56px;
    height: 56px;
  }

  .quick-actions-bar {
    gap: 4px;
    padding: 8px 12px;
  }

  .quick-action-btn {
    min-width: 60px;
    padding: 8px 4px;
  }

  .action-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .challenges-grid {
    grid-template-columns: 1fr;
  }

  .pulse-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-viewer {
    max-width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .story-type-selector {
    grid-template-columns: repeat(3, 1fr);
  }

  .rewards-breakdown {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .streak-calendar {
    gap: 4px;
  }

  .streak-day .day-dot {
    width: 24px;
    height: 24px;
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .media-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

