/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arimo', Arial, sans-serif;
  background: #f4f8fb;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
  /* Fix for fixed navigation - add padding to prevent content overlap */
  padding-top: 60px; /* Reduced padding to remove white space */
}

:root {
  --primary: #2563eb;
  --accent: #4fc3f7;
  --background: #f4f8fb;
  --card: #fff;
  --text: #222;
  --nav-gradient: linear-gradient(90deg, #2563eb 0%, #4fc3f7 100%);
}

/* Navigation */
.navbar {
  background: var(--nav-gradient);
  color: #fff;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.7rem 0;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}

.nav-logo i {
  font-size: 2.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: left 0.3s;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.nav-link i {
  font-size: 1.1rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.user-anon {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-anon:empty {
  display: none;
}

/* Notification Bell */
.notif-bell-link {
  position: relative;
  cursor: pointer;
}

.notif-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  min-width: 18px;
  min-height: 18px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid #1e40af;
  padding: 2px;
  box-sizing: border-box;
  min-height: 18px;
  padding: 0;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-left: 1.2rem;
}
.nav-toggle .bar {
  width: 26px;
  height: 4px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile Navigation Styles - Company Blue & Centered */
@media (max-width: 768px) {
  /* Fix body padding for mobile */
  body {
    padding-top: 55px; /* Reduced padding to remove white space */
  }
  
  /* Mobile Post Layout Improvements */
.post-card, .modern-post-card {
  margin: 1rem 0.5rem !important;
  width: calc(100% - 1rem) !important;
  max-width: none !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
}

.feed-container {
  max-width: 100% !important;
  margin: 0 0.5rem !important;
  padding: 0 !important;
}

/* Ensure proper spacing on mobile */
.post-header, .post-content, .post-media, .post-time, .post-actions {
  margin: 0.5rem 0 !important;
}

/* Mobile-specific post improvements */
.post-tag {
  font-size: 0.85rem !important;
  padding: 0.3rem 0.6rem !important;
}

.post-content {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* Mobile Profile Section Improvements */
.profile-container {
  margin: 0 0.5rem !important;
  width: calc(100% - 1rem) !important;
  box-sizing: border-box !important;
}

/* Temporarily hide Stories section (non-destructive; easy to revert) */
#stories-section {
  display: none !important;
}

/* Ensure tag labels on feed are visible */
.post-card .post-tag {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.post-card .tag-label {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.profile-header {
  margin: 4rem 0 1.5rem 0 !important;
  padding: 1.5rem !important;
}

.profile-posts-section {
  margin: 0 !important;
  width: 100% !important;
}
  
  /* Fix post actions z-index */
  .post-actions {
    position: relative !important;
    z-index: 10 !important;
  }
  
  .post-actions .dropdown-menu {
    z-index: 1000 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    min-width: 120px !important;
  }
  
  .nav-menu {
    position: fixed !important;
    top: 60px !important;
    left: -100% !important;
    width: 100% !important;
    height: auto !important;
    background: linear-gradient(90deg, #2563eb 0%, #4fc3f7 100%) !important;
    flex-direction: column !important;
    padding: 2rem 0 !important;
    transition: left 0.3s ease !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2) !important;
  }
  
  .nav-menu.active {
    left: 0 !important;
  }
  
  .nav-menu .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 200px !important;
    padding: 1rem 1.5rem !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 8px !important;
    margin: 0.5rem auto !important;
    transition: background-color 0.2s ease !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }
  
  .nav-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px) !important;
  }
  
  .nav-menu .nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1) !important;
  }
  
  .nav-menu .nav-link span {
    font-weight: 500 !important;
    text-align: center !important;
  }
  
  .nav-menu .nav-link i {
    margin-right: 1rem !important;
    font-size: 1.25rem !important;
    width: 24px !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }
  
  .nav-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    width: 28px !important;
    height: 22px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 10000 !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-toggle .bar {
    width: 100% !important;
    height: 2.5px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg) !important;
  }
  
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0 !important;
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg) !important;
  }
  
  .nav-user {
    margin: 0 !important;
    padding: 2rem !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    text-align: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.1) !important;
    align-items: center !important;
  }
  
  .user-anon {
    width: 80% !important;
    max-width: 300px !important;
    text-align: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.9375rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    margin: 0 auto !important;
  }
  
  .notif-bell-link {
    width: 80% !important;
    max-width: 300px !important;
    text-align: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.9375rem !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    margin: 0 auto !important;
  }
  
  .notif-bell-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  .notif-badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    width: 14px !important;
    height: 14px !important;
    background: #ef4444 !important;
    border: 2px solid #2563eb !important;
    color: transparent !important;
    border-radius: 50% !important;
  }
  
  /* Hide login/register when user is logged in */
  .nav-menu .nav-link[href*="login"],
  .nav-menu .nav-link[href*="register"] {
    display: none !important;
  }
  
  /* Show login/register only when not logged in */
  .nav-menu:not(.user-logged-in) .nav-link[href*="login"],
  .nav-menu:not(.user-logged-in) .nav-link[href*="register"] {
    display: flex !important;
  }
  
  /* Hide profile link when user is not logged in */
  .nav-menu:not(.user-logged-in) .nav-link[href*="profile"] {
    display: none !important;
  }
  
  /* Show profile link only when user is logged in */
  .nav-menu.user-logged-in .nav-link[href*="profile"] {
    display: flex !important;
  }
}

/* Extra small mobile devices - Company Blue & Centered */
@media (max-width: 480px) {
  .nav-menu {
    padding: 1.5rem 0 !important;
  }
  
  .nav-menu .nav-link {
    padding: 0.875rem 1.25rem !important;
    font-size: 0.9375rem !important;
    min-width: 180px !important;
  }
  
  .nav-menu .nav-link i {
    font-size: 1.125rem !important;
    margin-right: 0.875rem !important;
  }
  
  .nav-user {
    padding: 1.5rem !important;
    gap: 1.25rem !important;
  }
  
  .user-anon, .notif-bell-link {
    width: 90% !important;
    padding: 0.875rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
  
  .nav-toggle {
    width: 26px !important;
    height: 20px !important;
  }
  
  .nav-toggle .bar {
    height: 2px !important;
  }
  
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg) !important;
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg) !important;
  }
}

/* Hero Section */
.hero {
  background: var(--nav-gradient);
  color: #fff;
  padding: 7rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid #e3eaf2;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.1rem;
  color: #e3eaf2;
  margin-bottom: 2rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 2rem;
}

.hero-create-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.hero-create-btn:active {
  transform: translateY(0);
}

.hero-create-btn i {
  font-size: 1.2rem;
}



/* Main Content */
.main-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0.5rem 5rem 0.5rem;
}

/* Enhanced Search Section */
.search-section {
  margin-bottom: 2rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Ensure proper spacing when welcome section is hidden */
.user-logged-in .search-section {
  margin-top: 1rem;
}

.search-section[style*="display: none"] {
  opacity: 0;
  visibility: hidden;
}

.search-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 3rem;
  box-shadow: 0 4px 20px rgba(25,118,210,0.15);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 6px 25px rgba(25,118,210,0.25);
  transform: translateY(-2px);
}

.search-icon {
  padding: 0 1.2rem;
  color: #888;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.search-box:focus-within .search-icon {
  color: var(--primary);
}

.search-input {
  flex: 1;
  border: none;
  padding: 1.2rem 0;
  font-size: 1.1rem;
  outline: none;
  background: transparent;
  color: var(--text);
}

.search-input::placeholder {
  color: #aaa;
  font-weight: 400;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 0.5rem;
}

.search-clear-btn {
  background: none;
  border: none;
  color: #888;
  padding: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  background: #f5f5f5;
  color: #666;
}

.search-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(25,118,210,0.3);
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25,118,210,0.4);
}

.search-btn:active {
  transform: translateY(0);
}

.search-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #e3f2fd;
  border-radius: 0.5rem;
  color: #1976d2;
  font-size: 0.85rem;
  font-weight: 500;
}

.search-hint i {
  color: #1976d2;
  font-size: 0.9rem;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 1rem;
  right: 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-suggestions.active,
.search-suggestions[style*="block"] {
  display: block;
}

.search-result,
.search-history-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.search-result:hover,
.search-history-item:hover,
.search-result.selected,
.search-history-item.selected {
  background-color: #f8f9ff;
}

.search-result:last-child,
.search-history-item:last-child {
  border-bottom: none;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-result-name {
  font-weight: 600;
  color: #333;
}

.search-result-name .anonymous-name {
  color: #1976d2;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.name-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.name-type.real {
  background: #e8f5e8;
  color: #2e7d32;
}

.name-type.anonymous {
  background: #fff3e0;
  color: #f57c00;
}

.search-result-username {
  color: #1976d2;
  font-size: 0.9rem;
}

.search-result-posts {
  color: #666;
  font-size: 0.85rem;
}

.search-history-header {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.search-history-item i {
  margin-right: 0.5rem;
  color: #999;
}

.search-loading,
.search-error,
.search-no-results {
  padding: 1rem;
  text-align: center;
  color: #666;
}

.search-examples {
  padding: 1rem;
}

.search-example-header {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.search-example-item {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  padding-left: 0.5rem;
}

.search-error {
  color: #d32f2f;
}

.suggestions-content {
  padding: 1rem;
}

.suggestion-section {
  margin-bottom: 1.5rem;
}

.suggestion-section:last-child {
  margin-bottom: 0;
}

.suggestion-section h4 {
  margin: 0 0 0.8rem 0;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.suggestion-item:hover,
.suggestion-item.active {
  background: #f8f9fa;
  color: var(--primary);
}

.suggestion-item i {
  color: #888;
  width: 16px;
  text-align: center;
}

.suggestion-item:hover i,
.suggestion-item.active i {
  color: var(--primary);
}

.search-loading,
.search-error {
  padding: 2rem;
  text-align: center;
  color: #666;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-posts {
  text-align: center;
  color: #666;
  margin: 2rem 0;
  font-size: 1.1rem;
}

.loading-posts::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

.error-message {
  text-align: center;
  color: #d32f2f;
  margin: 2rem 0;
  padding: 1rem;
  background: #ffebee;
  border-radius: 8px;
  border: 1px solid #ffcdd2;
}

.error-message i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.error-message p {
  margin: 0;
  font-size: 1rem;
}

.search-error i {
  font-size: 2rem;
  color: #dc3545;
  margin-bottom: 1rem;
}

/* Enhanced Search Results */
.search-results-content {
  padding: 1rem;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
}

.filter-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.search-results-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all-results {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.view-all-results:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.search-users-dropdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.search-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #eee;
  background: #fff;
  position: relative;
}

.search-user-item:hover {
  background: #f8f9fa;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(25,118,210,0.1);
}

.search-user-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-profile-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.view-profile-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.search-user-item:hover {
  background: #f8f9fa;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(25,118,210,0.1);
}

.search-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.search-user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.search-user-details {
  flex: 1;
}

.search-user-name {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.search-user-name .anonymous-name {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.search-user-stats {
  display: flex;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #666;
}

.post-count {
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.name-type {
  padding: 0.2rem 0.5rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.name-type.real {
  background: #e8f5e8;
  color: #2e7d32;
}

.name-type.anonymous {
  background: #fff3e0;
  color: #f57c00;
}

.more-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.8rem;
  margin-top: 0.5rem;
}

.more-results span {
  color: #666;
  font-size: 0.9rem;
}

.more-results button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.more-results button:hover {
  background: var(--accent);
}

.search-suggestions-help {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.8rem;
}

.search-suggestions-help h5 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

.search-suggestions-help ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #666;
  font-size: 0.85rem;
}

.search-suggestions-help li {
  margin-bottom: 0.3rem;
}

.search-help-large {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 0.8rem;
  color: #856404;
}

.search-help-large p {
  margin: 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Enhanced Search Modal */
.search-modal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.result-count {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  animation: fadeIn 0.3s;
}

.search-modal.hidden {
  display: none;
}

.search-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 95vw;
  max-width: 500px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: slideUp 0.3s;
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.search-modal-header h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-search-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-search-modal:hover {
  background: #f5f5f5;
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.search-users {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid #eee;
}

.search-user-item:hover {
  background: #f8f9fa;
  border-color: var(--primary);
}

.search-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.search-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.search-user-details {
  flex: 1;
}

.search-user-name {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.search-user-name .real-name {
  color: var(--accent);
  font-weight: 500;
}

.search-user-name .anonymous-name {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.search-user-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.post-count {
  color: var(--primary);
  font-weight: 500;
}

.name-type {
  background: #e3f2fd;
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

.no-search-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}

.no-search-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.no-search-results p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.no-search-results small {
  color: #999;
}

/* Post Sharing Screen */
.post-sharing-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  animation: fadeIn 0.3s;
}

.post-sharing-modal.hidden {
  display: none;
}

.post-sharing-content {
  background: #fff;
  border-radius: 16px;
  width: 95vw;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: slideUp 0.3s;
}

.sharing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: #fff;
}

.sharing-header h3 {
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-sharing-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-sharing-modal:hover {
  background: rgba(255,255,255,0.2);
}

.sharing-preview {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.sharing-post-content {
  margin-bottom: 1rem;
}

.sharing-post-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}

.sharing-media-preview {
  border-radius: 8px;
  overflow: hidden;
  max-height: 200px;
}

.sharing-preview-img,
.sharing-preview-video {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

.sharing-actions {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sharing-action-btn {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
}

.sharing-action-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.sharing-action-btn.secondary {
  background: #f5f5f5;
  color: var(--text);
}

.sharing-action-btn.secondary:hover {
  background: #e0e0e0;
}

/* Tags Section */
.tags-section {
  margin-bottom: 2rem;
}

/* Ensure proper spacing when welcome section is hidden */
.user-logged-in .tags-section {
  margin-top: 0.5rem;
}

.tags-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 auto;
  max-width: 900px;
}

.tag-btn {
  background: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
  min-width: 110px;
  text-align: center;
  box-sizing: border-box;
}

.tag-btn.active, .tag-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tag-btn i {
  font-size: 1rem;
}

.tag-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-btn img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  height: 20px;
  width: auto;
}

/* Stories Section */
.stories-section {
  margin-bottom: 2rem;
}

.stories-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.stories-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 8px;
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.stories-row::-webkit-scrollbar {
  height: 4px;
}

.stories-row::-webkit-scrollbar-track {
  background: transparent;
}

.stories-row::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.story-item {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #0095f6;
  padding: 2px;
  background: white;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0095f6;
  font-weight: 600;
}

.story-username {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 6px;
}

/* Friends Section */
.friends-section {
  margin-top: 3rem;
}

.friends-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.friend-requests, .suggested-friends {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid #f1f3f4;
  margin-bottom: 20px;
}

.requests-list, .suggested-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.friend-request-item, .suggested-friend-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.friend-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: 600;
}

.friend-info {
  flex: 1;
}

.friend-name {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 5px;
}

.friend-username {
  font-size: 14px;
  color: #666;
}

.friend-actions {
  display: flex;
  gap: 10px;
}

.accept-btn, .ignore-btn, .send-request-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accept-btn {
  background: #0095f6;
  color: white;
}

.accept-btn:hover {
  background: #0081d6;
}

.ignore-btn {
  background: #dc3545;
  color: white;
}

.ignore-btn:hover {
  background: #c82333;
}

.send-request-btn {
  background: #28a745;
  color: white;
}

.send-request-btn:hover {
  background: #218838;
}

/* Notification Modal Styles */
.notification-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background-color: #f0f8ff;
  font-weight: 600;
  border-left: 3px solid #007bff;
  padding-left: 12px;
}

.notif-icon {
  font-size: 18px;
  color: #6c757d;
  margin-top: 2px;
  flex-shrink: 0;
}

.notification-item.unread .notif-icon {
  color: #007bff;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-user {
  font-weight: 600;
  color: #007bff;
}

.notif-action {
  color: #495057;
}

.notif-comment-preview {
  margin-top: 6px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-left: 3px solid #dee2e6;
  border-radius: 4px;
  font-style: italic;
  color: #6c757d;
  font-size: 14px;
}

.notif-time {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6c757d;
}

.notif-post-preview {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 12px;
  flex-shrink: 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-post-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notif-post-preview.video-preview {
  background: #e9ecef;
  color: #6c757d;
}

.notif-post-preview.video-preview i {
  font-size: 18px;
}

/* Modal Styles for Friend Requests */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #262626;
}

.close-btn {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f0f0f0;
  color: #666;
}

.modal-body {
  padding: 20px;
}

/* Polls Section Styles */
.polls-section {
  margin-top: 3rem;
}

.polls-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.create-poll-btn-container {
  text-align: center;
  margin-bottom: 2rem;
}

.create-poll-btn {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 149, 246, 0.3);
}

.create-poll-btn:hover {
  background: linear-gradient(135deg, #0081d6 0%, #0066cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 149, 246, 0.4);
}

.active-polls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.poll-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid #f1f3f4;
  transition: all 0.3s ease;
}

.poll-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.poll-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.poll-question {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  line-height: 1.4;
  flex: 1;
  margin-right: 15px;
}

.poll-meta {
  text-align: right;
  font-size: 12px;
  color: #666;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.poll-option {
  position: relative;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.poll-option:hover {
  border-color: #0095f6;
  background: #f0f8ff;
}

.poll-option.selected {
  border-color: #0095f6;
  background: #e3f2fd;
}

.poll-option-text {
  font-size: 16px;
  color: #262626;
  font-weight: 500;
  margin-bottom: 8px;
}

.poll-option-bar {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.poll-option-fill {
  height: 100%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.poll-option-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

.poll-option-percentage {
  font-weight: 600;
  color: #0095f6;
}

.poll-option-votes {
  color: #999;
}

.poll-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

.poll-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  font-weight: 600;
}

.poll-total-votes {
  font-weight: 600;
  color: #0095f6;
}

/* Poll Creator Modal Styles */
.poll-creator-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.poll-creator-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.poll-creator-header {
  text-align: center;
  margin-bottom: 25px;
}

.poll-creator-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #262626;
  margin-bottom: 10px;
}

.poll-creator-header p {
  color: #666;
  font-size: 16px;
}

.poll-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #262626;
  font-size: 16px;
}

.form-group input, .form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #0095f6;
}

.poll-options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.poll-option-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.poll-option-input input {
  flex: 1;
}

.remove-option-btn {
  background: #dc3545;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.remove-option-btn:hover {
  background: #c82333;
  transform: scale(1.1);
}

.add-option-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}

.add-option-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.poll-settings {
  display: flex;
  gap: 20px;
  align-items: center;
}

.poll-setting {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-setting input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0095f6;
}

.poll-setting label {
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.poll-creator-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.cancel-poll-btn, .create-poll-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cancel-poll-btn {
  background: #6c757d;
  color: white;
}

.cancel-poll-btn:hover {
  background: #5a6268;
}

.create-poll-btn {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  color: white;
}

.create-poll-btn:hover {
  background: linear-gradient(135deg, #0081d6 0%, #0066cc 100%);
  transform: translateY(-1px);
}

/* Feed Section */
.feed-section {
  margin-bottom: 5rem;
}

.feed-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.modern-post-card, .post-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px rgba(25,118,210,0.10);
  margin: 1.5rem auto;
  max-width: 600px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: box-shadow 0.2s;
}
.post-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.profile-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #1976d2;
}
.anon-name {
  color: #1976d2;
  font-weight: 700;
  font-size: 1.1rem;
}

.clickable-username {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
}

.clickable-username:hover {
  background: #f3f4f6;
  color: #1f2937;
  transform: translateY(-1px);
}
.post-tag {
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 0.5rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.95rem;
  margin-left: auto;
}
.post-content {
  font-size: 1.13rem;
  color: #222;
  margin: 0.5rem 0;
  word-break: break-word;
  line-height: 1.6;
}
.post-media {
  margin: 0.5rem 0;
  text-align: center;
}
.modern-post-img, .post-media img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #f7fafd;
  border-radius: 1rem;
  box-shadow: 0 1px 8px rgba(25,118,210,0.08);
}
.modern-post-video, .post-media video {
  max-width: 100%;
  max-height: 320px;
  border-radius: 0.7rem;
  box-shadow: 0 1px 8px rgba(25,118,210,0.08);
}
.post-time {
  color: #888;
  font-size: 0.98rem;
  margin-top: 0.5rem;
  text-align: right;
}
.post-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.support-btn, .dislike-btn, .comment-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(25,118,210,0.08);
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.support-btn:disabled, .dislike-btn:disabled, .comment-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.support-btn:hover:not(:disabled), .dislike-btn:hover:not(:disabled), .comment-btn:hover:not(:disabled) {
  background: #fff;
  color: #1976d2;
  border: 2px solid #1976d2;
}

/* Floating Action Button */
.fab {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(37,99,235,0.18);
  transition: all 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab:hover {
  background: var(--accent);
  color: #fff;
}

/* Instagram-style Story Creator */
.create-story-item {
  border: 2px dashed #ccc;
  background: white;
}

.create-story-avatar {
  border: 2px dashed #ccc;
  background: white;
  color: #666;
  font-size: 20px;
}

.create-story-item:hover .create-story-avatar {
  border-color: #0095f6;
  color: #0095f6;
}

/* ===== INSTAGRAM-QUALITY STORY CREATOR ===== */
.story-creator-content {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 25px 80px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.1);
}

.story-creator-header {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  padding: 30px;
  margin: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.story-creator-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  pointer-events: none;
}

.story-creator-header h3 {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 15px 0;
}

.story-creator-tabs {
  display: flex;
  gap: 20px;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  padding: 12px;
  border-radius: 16px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
}

.story-tab {
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(15px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 100px;
  justify-content: center;
}

.story-tab.active {
  background: rgba(255,255,255,0.95);
  color: #0095f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border: 2px solid rgba(255,255,255,0.3);
}

.story-tab:hover:not(.active) {
  background: rgba(255,255,255,0.3);
  color: white;
  transform: translateY(-1px);
}

.story-creator-body {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  min-height: 500px;
}

.story-editor {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.story-input-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 16px;
  border: 2px solid #e9ecef;
  margin-bottom: 20px;
}

.story-input-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-input-section h4::before {
  content: '✏️';
  font-size: 16px;
}

.story-input-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-input-section h4::before {
  content: '✏️';
  font-size: 16px;
}

.story-text-input {
  width: 100%;
  min-height: 120px;
  padding: 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Arimo', Arial, sans-serif;
  resize: vertical;
  outline: none;
  transition: all 0.3s ease;
  background: white;
  line-height: 1.5;
}

.story-text-input:focus {
  border-color: #0095f6;
  box-shadow: 0 0 0 3px rgba(0,149,246,0.1);
}

.story-text-input::placeholder {
  color: #999;
  font-style: italic;
}

.story-text-input:focus {
  border-color: #0095f6;
  box-shadow: 0 0 0 3px rgba(0,149,246,0.1);
}

.story-text-input::placeholder {
  color: #999;
  font-style: italic;
}

.story-preview {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  background: #0095f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid #f0f0f0;
}

.story-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  pointer-events: none;
}

.story-preview-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.story-preview-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.story-preview-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  font-family: 'Arimo', Arial, sans-serif;
  line-height: 1.4;
  word-wrap: break-word;
  padding: 20px;
}

.story-preview-content img,
.story-preview-content video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

.story-preview-content textarea::placeholder {
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.story-customization {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.anonymous-option {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 16px;
  border: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 15px;
}

.anonymous-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #0095f6;
  cursor: pointer;
}

.anonymous-label {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  cursor: pointer;
}

.anonymous-hint {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

.customization-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.customization-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.customization-section h4::before {
  content: '⚙️';
  font-size: 14px;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.color-option {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-option.active {
  border-color: #0095f6;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,149,246,0.4);
}

.color-option:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.color-option[data-color="#0095f6"] { background: #0095f6; }
.color-option[data-color="#ff6b6b"] { background: #ff6b6b; }
.color-option[data-color="#4ecdc4"] { background: #4ecdc4; }
.color-option[data-color="#45b7d1"] { background: #45b7d1; }
.color-option[data-color="#96ceb4"] { background: #96ceb4; }
.color-option[data-color="#feca57"] { background: #feca57; }
.color-option[data-color="#ff9ff3"] { background: #ff9ff3; }
.color-option[data-color="#54a0ff"] { background: #54a0ff; }

.custom-color {
  border: 2px dashed #0095f6;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.custom-color::after {
  content: '+';
  color: #0095f6;
  font-size: 18px;
  font-weight: bold;
}

.custom-color input[type="color"] {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  position: absolute;
}

.text-style-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.text-style-options select {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  font-family: 'Arimo', Arial, sans-serif;
  transition: all 0.3s ease;
}

.text-style-options select:focus {
  outline: none;
  border-color: #0095f6;
  box-shadow: 0 0 0 3px rgba(0,149,246,0.1);
}

/* ===== MEDIA UPLOAD SECTION ===== */
.story-media-upload {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.story-media-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 16px;
  border: 2px solid #e9ecef;
  margin-bottom: 20px;
}

.story-media-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-media-section h4::before {
  content: '📷';
  font-size: 16px;
}

.story-media-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-media-section h4::before {
  content: '📷';
  font-size: 16px;
}

.media-upload-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.media-upload-tab {
  padding: 10px 20px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #666;
}

.media-upload-tab.active {
  border-color: #0095f6;
  background: #0095f6;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,149,246,0.3);
}

.media-upload-tab:hover:not(.active) {
  border-color: #0095f6;
  color: #0095f6;
}

.upload-area {
  border: 3px dashed #0095f6;
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f8ff 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.upload-area.dragover {
  border-color: #0081d6;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  transform: scale(1.02);
}

.file-input-hidden {
  display: none;
}

.upload-instructions {
  margin-bottom: 20px;
}

.upload-instructions h5 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.upload-instructions p {
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}

.upload-formats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.format-badge {
  background: rgba(0,149,246,0.1);
  color: #0095f6;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.upload-preview {
  margin-top: 20px;
  text-align: center;
}

.upload-preview img, 
.upload-preview video {
  max-width: 100%;
  max-height: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 2px solid #e9ecef;
}

.upload-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(0,149,246,0.05) 50%, transparent 70%);
  pointer-events: none;
}

.upload-area:hover {
  border-color: #0081d6;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,149,246,0.15);
}

.upload-area i {
  font-size: 42px;
  color: #0095f6;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.upload-area:hover i {
  color: #0081d6;
  transform: scale(1.1);
}

.upload-area p {
  font-size: 16px;
  color: #333;
  margin: 8px 0;
  font-weight: 500;
}

.upload-hint {
  font-size: 13px;
  color: #666;
  font-style: italic;
  background: rgba(0,149,246,0.1);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 10px;
}

.upload-preview {
  margin-top: 15px;
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.upload-preview img,
.upload-preview video {
  max-width: 100%;
  max-height: 250px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 2px solid #f0f0f0;
}

/* Story Options */
.story-options {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #666;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0095f6;
}

/* Story Creator Footer - Simplified & Tech-wise */
.story-creator-footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
  padding: 25px 30px;
  border-top: 1px solid #e9ecef;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.story-creator-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #0095f6 50%, transparent 100%);
}

.story-creator-footer .btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Arimo', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.story-creator-footer .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.story-creator-footer .btn:hover::before {
  left: 100%;
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(108,117,125,0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,117,125,0.4);
}

.btn-primary {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0,149,246,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0081d6 0%, #0066cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,149,246,0.4);
}

/* Story Viewer Modal */
.story-viewer-modal {
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
}

.story-viewer-wrapper {
  background: black;
  border-radius: 20px;
  overflow: hidden;
  max-width: 400px;
  width: 95%;
  max-height: 80vh;
  position: relative;
}

.story-viewer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.story-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 600;
}

.close-story-btn {
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-story-btn:hover {
  background: rgba(255,255,255,0.2);
}

.story-viewer-content {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
  text-align: center;
}

.story-text-content {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 100%;
}

.story-viewer-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 20px;
  text-align: center;
  color: white;
  font-size: 14px;
}

/* ===== FRIENDS PAGE STYLES ===== */

/* Friends Header */
.friends-header {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 3rem;
}

.friends-header-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.friends-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.friends-header p {
  font-size: 20px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Friends Dashboard */
.friends-dashboard {
  padding: 0 2rem 4rem;
}

.friends-dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

.friends-section {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid #f1f3f4;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #262626;
  margin: 0;
}

.section-header p {
  color: #666;
  margin: 5px 0 0 0;
}

.request-count, .friends-count, .suggested-count {
  background: #0095f6;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Friend Requests */
.requests-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.friend-request-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.friend-request-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.friend-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.friend-info {
  flex: 1;
}

.friend-name {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 5px;
}

.friend-username {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
}

.request-time {
  font-size: 14px;
  color: #999;
}

.friend-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.accept-btn, .decline-btn, .view-btn, .send-request-btn, .view-profile-btn, .message-btn, .unfriend-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.accept-btn {
  background: #28a745;
  color: white;
}

.accept-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.decline-btn {
  background: #dc3545;
  color: white;
}

.decline-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.view-btn {
  background: #6c757d;
  color: white;
}

.view-btn:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.send-request-btn {
  background: #0095f6;
  color: white;
}

.send-request-btn:hover {
  background: #0081d6;
  transform: translateY(-1px);
}

.view-profile-btn {
  background: #17a2b8;
  color: white;
}

.view-profile-btn:hover {
  background: #138496;
  transform: translateY(-1px);
}

.message-btn {
  background: #28a745;
  color: white;
}

.message-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.unfriend-btn {
  background: #dc3545;
  color: white;
}

.unfriend-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Current Friends Grid */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.friend-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 25px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.friend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.friend-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  font-weight: 600;
  margin: 0 auto 20px;
}

.friend-card-info {
  text-align: center;
  margin-bottom: 20px;
}

.friend-card-name {
  font-size: 20px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 8px;
}

.friend-card-username {
  font-size: 16px;
  color: #666;
  margin-bottom: 12px;
}

.friend-card-status {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

.friend-card-status.online {
  background: #d4edda;
  color: #155724;
}

.friend-card-status.offline {
  background: #f8d7da;
  color: #721c24;
}

.friend-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Suggested Friends Grid */
.suggested-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.suggested-friend-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  border: 2px solid #f1f3f4;
  transition: all 0.3s ease;
}

.suggested-friend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: #0095f6;
}

.suggested-friend-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  font-weight: 600;
  margin: 0 auto 20px;
}

.suggested-friend-info {
  text-align: center;
  margin-bottom: 20px;
}

.suggested-friend-name {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 8px;
}

.suggested-friend-username {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.mutual-friends {
  font-size: 14px;
  color: #0095f6;
  font-weight: 500;
}

.suggested-friend-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Discover People Grid */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.discover-person-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  border: 2px solid #f1f3f4;
  transition: all 0.3s ease;
}

.discover-person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-color: #0095f6;
}

.discover-person-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  font-weight: 600;
  margin: 0 auto 25px;
}

.discover-person-info {
  text-align: center;
  margin-bottom: 25px;
}

.discover-person-name {
  font-size: 22px;
  font-weight: 700;
  color: #262626;
  margin-bottom: 10px;
}

.discover-person-username {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
}

.discover-person-bio {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 0 10px;
}

.discover-person-interests {
  font-size: 14px;
  color: #0095f6;
  font-weight: 500;
  font-style: italic;
}

.discover-person-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Empty States */
.no-requests, .no-friends, .no-suggestions, .no-discoveries {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

/* Friend Profile Modal */
.friend-profile-modal {
  z-index: 2000;
}

.friend-profile-content {
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
}

.friend-profile-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.friend-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.friend-profile-details h3 {
  font-size: 28px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 10px 0;
}

.friend-profile-username {
  font-size: 18px;
  color: #666;
  margin-bottom: 15px;
}

.friend-profile-bio {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.friend-profile-stats {
  display: flex;
  gap: 20px;
}

.friend-profile-stats span {
  font-size: 16px;
  color: #666;
}

.friend-profile-stats strong {
  color: #0095f6;
}

.friend-profile-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.friend-profile-posts {
  max-height: 400px;
  overflow-y: auto;
}

.friend-post-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  font-weight: 600;
}

.post-author-info {
  display: flex;
  flex-direction: column;
}

.post-author-name {
  font-weight: 600;
  color: #262626;
}

.post-time {
  font-size: 12px;
  color: #999;
}

.post-content {
  margin-bottom: 15px;
}

.post-content p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.post-media img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}

.post-actions {
  display: flex;
  gap: 15px;
}

.post-action-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.post-action-btn:hover {
  background: #f0f0f0;
  color: #0095f6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .friends-header h1 {
    font-size: 36px;
  }
  
  .friends-header p {
    font-size: 18px;
  }
  
  .friends-dashboard {
    padding: 0 1rem 2rem;
  }
  
  .friends-section {
    padding: 20px;
  }
  
  .section-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .friend-request-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .friend-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .friends-grid, .suggested-grid, .discover-grid {
    grid-template-columns: 1fr;
  }
  
  .friend-profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .friend-profile-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===== FRIEND POST STYLING ===== */

.friend-post {
  border-left: 4px solid #0095f6;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.friend-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0095f6 0%, #4ecdc4 100%);
  border-radius: 3px 3px 0 0;
}

.friend-badge {
  background: linear-gradient(135deg, #0095f6 0%, #4ecdc4 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(0, 149, 246, 0.3);
}

.friend-badge i {
  font-size: 10px;
}

/* Friend post header enhancement */
.friend-post .post-header {
  background: rgba(0, 149, 246, 0.05);
  border-radius: 12px 12px 0 0;
  padding: 15px 20px;
  margin: -20px -20px 15px -20px;
}

/* Friend post content enhancement */
.friend-post .post-content {
  font-weight: 500;
  color: #2c3e50;
}

/* Friend post actions enhancement */
.friend-post .post-actions {
  background: rgba(0, 149, 246, 0.02);
  border-radius: 0 0 12px 12px;
  margin: 15px -20px -20px -20px;
  padding: 15px 20px;
}

/* Hide FAB when any modal is open */
.share-modal:not(.hidden) ~ .fab,
.share-modal:not(.hidden) + .fab,
.share-modal:not(.hidden) .fab,
.comments-modal:not(.hidden) ~ .fab,
.comments-modal:not(.hidden) + .fab,
.comments-modal:not(.hidden) .fab,
.notifications-modal:not(.hidden) ~ .fab,
.notifications-modal:not(.hidden) + .fab,
.notifications-modal:not(.hidden) .fab,
.modal:not(.hidden) ~ .fab,
.modal:not(.hidden) + .fab,
.modal:not(.hidden) .fab {
  display: none !important;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37,99,235,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--card);
  border: 1px solid #e3eaf2;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(37,99,235,0.08);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e3eaf2;
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.close-modal {
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: #fff;
  background: var(--primary);
}

/* Forms */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 2rem;
}

.auth-container {
  background: var(--card);
  border: 1px solid #e3eaf2;
  border-radius: 1rem;
  padding: 3rem 2rem;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(37,99,235,0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.auth-logo {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  object-fit: contain;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arimo', Arial, sans-serif;
  background: #f4f8fb;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
  /* Fix for fixed navigation - add padding to prevent content overlap */
  padding-top: 60px; /* Reduced padding to remove white space */
}

:root {
  --primary: #2563eb;
  --accent: #4fc3f7;
  --background: #f4f8fb;
  --card: #fff;
  --text: #222;
  --nav-gradient: linear-gradient(90deg, #2563eb 0%, #4fc3f7 100%);
}

/* Navigation */
.navbar {
  background: var(--nav-gradient);
  color: #fff;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.7rem 0;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}

.nav-logo i {
  font-size: 2.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: left 0.3s;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.nav-link i {
  font-size: 1.1rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.user-anon {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-anon:empty {
  display: none;
}

/* Notification Bell */
.notif-bell-link {
  position: relative;
  cursor: pointer;
}

.notif-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  min-width: 18px;
  min-height: 18px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid #1e40af;
  padding: 2px;
  box-sizing: border-box;
  min-height: 18px;
  padding: 0;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-left: 1.2rem;
}
.nav-toggle .bar {
  width: 26px;
  height: 4px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile Navigation Styles - Company Blue & Centered */
@media (max-width: 768px) {
  /* Fix body padding for mobile */
  body {
    padding-top: 55px; /* Reduced padding to remove white space */
  }
  
  /* Mobile Post Layout Improvements */
.post-card, .modern-post-card {
  margin: 1rem 0.5rem !important;
  width: calc(100% - 1rem) !important;
  max-width: none !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
}

.feed-container {
  max-width: 100% !important;
  margin: 0 0.5rem !important;
  padding: 0 !important;
}

/* Ensure proper spacing on mobile */
.post-header, .post-content, .post-media, .post-time, .post-actions {
  margin: 0.5rem 0 !important;
}

/* Mobile-specific post improvements */
.post-tag {
  font-size: 0.85rem !important;
  padding: 0.3rem 0.6rem !important;
}

.post-content {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* Mobile Profile Section Improvements */
.profile-container {
  margin: 0 0.5rem !important;
  width: calc(100% - 1rem) !important;
  box-sizing: border-box !important;
}

.profile-header {
  margin: 4rem 0 1.5rem 0 !important;
  padding: 1.5rem !important;
}

.profile-posts-section {
  margin: 0 !important;
  width: 100% !important;
}
  
  /* Fix post actions z-index */
  .post-actions {
    position: relative !important;
    z-index: 10 !important;
  }
  
  .post-actions .dropdown-menu {
    z-index: 1000 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    min-width: 120px !important;
  }
  
  .nav-menu {
    position: fixed !important;
    top: 60px !important;
    left: -100% !important;
    width: 100% !important;
    height: auto !important;
    background: linear-gradient(90deg, #2563eb 0%, #4fc3f7 100%) !important;
    flex-direction: column !important;
    padding: 2rem 0 !important;
    transition: left 0.3s ease !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2) !important;
  }
  
  .nav-menu.active {
    left: 0 !important;
  }
  
  .nav-menu .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 200px !important;
    padding: 1rem 1.5rem !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 8px !important;
    margin: 0.5rem auto !important;
    transition: background-color 0.2s ease !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }
  
  .nav-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px) !important;
  }
  
  .nav-menu .nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1) !important;
  }
  
  .nav-menu .nav-link span {
    font-weight: 500 !important;
    text-align: center !important;
  }
  
  .nav-menu .nav-link i {
    margin-right: 1rem !important;
    font-size: 1.25rem !important;
    width: 24px !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }
  
  .nav-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    width: 28px !important;
    height: 22px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 10000 !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-toggle .bar {
    width: 100% !important;
    height: 2.5px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg) !important;
  }
  
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0 !important;
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg) !important;
  }
  
  .nav-user {
    margin: 0 !important;
    padding: 2rem !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    text-align: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.1) !important;
    align-items: center !important;
  }
  
  .user-anon {
    width: 80% !important;
    max-width: 300px !important;
    text-align: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.9375rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    margin: 0 auto !important;
  }
  
  .notif-bell-link {
    width: 80% !important;
    max-width: 300px !important;
    text-align: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.9375rem !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    margin: 0 auto !important;
  }
  
  .notif-bell-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  .notif-badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    width: 14px !important;
    height: 14px !important;
    background: #ef4444 !important;
    border: 2px solid #2563eb !important;
    color: transparent !important;
    border-radius: 50% !important;
  }
  
  /* Hide login/register when user is logged in */
  .nav-menu .nav-link[href*="login"],
  .nav-menu .nav-link[href*="register"] {
    display: none !important;
  }
  
  /* Show login/register only when not logged in */
  .nav-menu:not(.user-logged-in) .nav-link[href*="login"],
  .nav-menu:not(.user-logged-in) .nav-link[href*="register"] {
    display: flex !important;
  }
  
  /* Hide profile link when user is not logged in */
  .nav-menu:not(.user-logged-in) .nav-link[href*="profile"] {
    display: none !important;
  }
  
  /* Show profile link only when user is logged in */
  .nav-menu.user-logged-in .nav-link[href*="profile"] {
    display: flex !important;
  }
}

/* Extra small mobile devices - Company Blue & Centered */
@media (max-width: 480px) {
  .nav-menu {
    padding: 1.5rem 0 !important;
  }
  
  .nav-menu .nav-link {
    padding: 0.875rem 1.25rem !important;
    font-size: 0.9375rem !important;
    min-width: 180px !important;
  }
  
  .nav-menu .nav-link i {
    font-size: 1.125rem !important;
    margin-right: 0.875rem !important;
  }
  
  .nav-user {
    padding: 1.5rem !important;
    gap: 1.25rem !important;
  }
  
  .user-anon, .notif-bell-link {
    width: 90% !important;
    padding: 0.875rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
  
  .nav-toggle {
    width: 26px !important;
    height: 20px !important;
  }
  
  .nav-toggle .bar {
    height: 2px !important;
  }
  
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg) !important;
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg) !important;
  }
}

/* Hero Section */
.hero {
  background: var(--nav-gradient);
  color: #fff;
  padding: 7rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid #e3eaf2;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.1rem;
  color: #e3eaf2;
  margin-bottom: 2rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 2rem;
}

.hero-create-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.hero-create-btn:active {
  transform: translateY(0);
}

.hero-create-btn i {
  font-size: 1.2rem;
}



/* Main Content */
.main-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0.5rem 5rem 0.5rem;
}

/* Enhanced Search Section */
.search-section {
  margin-bottom: 2rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Ensure proper spacing when welcome section is hidden */
.user-logged-in .search-section {
  margin-top: 1rem;
}

.search-section[style*="display: none"] {
  opacity: 0;
  visibility: hidden;
}

.search-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 3rem;
  box-shadow: 0 4px 20px rgba(25,118,210,0.15);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 6px 25px rgba(25,118,210,0.25);
  transform: translateY(-2px);
}

.search-icon {
  padding: 0 1.2rem;
  color: #888;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.search-box:focus-within .search-icon {
  color: var(--primary);
}

.search-input {
  flex: 1;
  border: none;
  padding: 1.2rem 0;
  font-size: 1.1rem;
  outline: none;
  background: transparent;
  color: var(--text);
}

.search-input::placeholder {
  color: #aaa;
  font-weight: 400;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 0.5rem;
}

.search-clear-btn {
  background: none;
  border: none;
  color: #888;
  padding: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  background: #f5f5f5;
  color: #666;
}

.search-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(25,118,210,0.3);
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25,118,210,0.4);
}

.search-btn:active {
  transform: translateY(0);
}

.search-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #e3f2fd;
  border-radius: 0.5rem;
  color: #1976d2;
  font-size: 0.85rem;
  font-weight: 500;
}

.search-hint i {
  color: #1976d2;
  font-size: 0.9rem;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 1rem;
  right: 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-suggestions.active,
.search-suggestions[style*="block"] {
  display: block;
}

.search-result,
.search-history-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.search-result:hover,
.search-history-item:hover,
.search-result.selected,
.search-history-item.selected {
  background-color: #f8f9ff;
}

.search-result:last-child,
.search-history-item:last-child {
  border-bottom: none;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-result-name {
  font-weight: 600;
  color: #333;
}

.search-result-name .anonymous-name {
  color: #1976d2;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.name-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.name-type.real {
  background: #e8f5e8;
  color: #2e7d32;
}

.name-type.anonymous {
  background: #fff3e0;
  color: #f57c00;
}

.search-result-username {
  color: #1976d2;
  font-size: 0.9rem;
}

.search-result-posts {
  color: #666;
  font-size: 0.85rem;
}

.search-history-header {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.search-history-item i {
  margin-right: 0.5rem;
  color: #999;
}

.search-loading,
.search-error,
.search-no-results {
  padding: 1rem;
  text-align: center;
  color: #666;
}

.search-examples {
  padding: 1rem;
}

.search-example-header {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.search-example-item {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  padding-left: 0.5rem;
}

.search-error {
  color: #d32f2f;
}

.suggestions-content {
  padding: 1rem;
}

.suggestion-section {
  margin-bottom: 1.5rem;
}

.suggestion-section:last-child {
  margin-bottom: 0;
}

.suggestion-section h4 {
  margin: 0 0 0.8rem 0;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.suggestion-item:hover,
.suggestion-item.active {
  background: #f8f9fa;
  color: var(--primary);
}

.suggestion-item i {
  color: #888;
  width: 16px;
  text-align: center;
}

.suggestion-item:hover i,
.suggestion-item.active i {
  color: var(--primary);
}

.search-loading,
.search-error {
  padding: 2rem;
  text-align: center;
  color: #666;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-posts {
  text-align: center;
  color: #666;
  margin: 2rem 0;
  font-size: 1.1rem;
}

.loading-posts::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

.error-message {
  text-align: center;
  color: #d32f2f;
  margin: 2rem 0;
  padding: 1rem;
  background: #ffebee;
  border-radius: 8px;
  border: 1px solid #ffcdd2;
}

.error-message i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.error-message p {
  margin: 0;
  font-size: 1rem;
}

.search-error i {
  font-size: 2rem;
  color: #dc3545;
  margin-bottom: 1rem;
}

/* Enhanced Search Results */
.search-results-content {
  padding: 1rem;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
}

.filter-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.search-results-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all-results {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.view-all-results:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.search-users-dropdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.search-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #eee;
  background: #fff;
  position: relative;
}

.search-user-item:hover {
  background: #f8f9fa;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(25,118,210,0.1);
}

.search-user-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-profile-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.view-profile-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.search-user-item:hover {
  background: #f8f9fa;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(25,118,210,0.1);
}

.search-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.search-user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.search-user-details {
  flex: 1;
}

.search-user-name {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.search-user-name .anonymous-name {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.search-user-stats {
  display: flex;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #666;
}

.post-count {
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.name-type {
  padding: 0.2rem 0.5rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.name-type.real {
  background: #e8f5e8;
  color: #2e7d32;
}

.name-type.anonymous {
  background: #fff3e0;
  color: #f57c00;
}

.more-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.8rem;
  margin-top: 0.5rem;
}

.more-results span {
  color: #666;
  font-size: 0.9rem;
}

.more-results button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.more-results button:hover {
  background: var(--accent);
}

.search-suggestions-help {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.8rem;
}

.search-suggestions-help h5 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

.search-suggestions-help ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #666;
  font-size: 0.85rem;
}

.search-suggestions-help li {
  margin-bottom: 0.3rem;
}

.search-help-large {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 0.8rem;
  color: #856404;
}

.search-help-large p {
  margin: 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Enhanced Search Modal */
.search-modal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.result-count {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  animation: fadeIn 0.3s;
}

.search-modal.hidden {
  display: none;
}

.search-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 95vw;
  max-width: 500px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: slideUp 0.3s;
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.search-modal-header h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-search-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-search-modal:hover {
  background: #f5f5f5;
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.search-users {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid #eee;
}

.search-user-item:hover {
  background: #f8f9fa;
  border-color: var(--primary);
}

.search-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.search-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.search-user-details {
  flex: 1;
}

.search-user-name {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.search-user-name .real-name {
  color: var(--accent);
  font-weight: 500;
}

.search-user-name .anonymous-name {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.search-user-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.post-count {
  color: var(--primary);
  font-weight: 500;
}

.name-type {
  background: #e3f2fd;
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

.no-search-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}

.no-search-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.no-search-results p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.no-search-results small {
  color: #999;
}

/* Post Sharing Screen */
.post-sharing-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  animation: fadeIn 0.3s;
}

.post-sharing-modal.hidden {
  display: none;
}

.post-sharing-content {
  background: #fff;
  border-radius: 16px;
  width: 95vw;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: slideUp 0.3s;
}

.sharing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: #fff;
}

.sharing-header h3 {
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-sharing-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-sharing-modal:hover {
  background: rgba(255,255,255,0.2);
}

.sharing-preview {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.sharing-post-content {
  margin-bottom: 1rem;
}

.sharing-post-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}

.sharing-media-preview {
  border-radius: 8px;
  overflow: hidden;
  max-height: 200px;
}

.sharing-preview-img,
.sharing-preview-video {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

.sharing-actions {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sharing-action-btn {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
}

.sharing-action-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.sharing-action-btn.secondary {
  background: #f5f5f5;
  color: var(--text);
}

.sharing-action-btn.secondary:hover {
  background: #e0e0e0;
}

/* Tags Section */
.tags-section {
  margin-bottom: 2rem;
}

/* Ensure proper spacing when welcome section is hidden */
.user-logged-in .tags-section {
  margin-top: 0.5rem;
}

.tags-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 auto;
  max-width: 900px;
}

.tag-btn {
  background: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
  min-width: 110px;
  text-align: center;
  box-sizing: border-box;
}

.tag-btn.active, .tag-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tag-btn i {
  font-size: 1rem;
}

.tag-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-btn img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  height: 20px;
  width: auto;
}

/* Stories Section */
.stories-section {
  margin-bottom: 2rem;
}

.stories-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.stories-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.stories-row::-webkit-scrollbar {
  height: 4px;
}

.stories-row::-webkit-scrollbar-track {
  background: transparent;
}

.stories-row::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.story-item {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  cursor: pointer;
}

.story-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #0095f6;
  padding: 2px;
  background: white;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0095f6;
  font-weight: 600;
}

.story-username {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Friends Section */
.friends-section {
  margin-top: 3rem;
}

.friends-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.friend-requests, .suggested-friends {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid #f1f3f4;
  margin-bottom: 20px;
}

.requests-list, .suggested-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.friend-request-item, .suggested-friend-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.friend-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: 600;
}

.friend-info {
  flex: 1;
}

.friend-name {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 5px;
}

.friend-username {
  font-size: 14px;
  color: #666;
}

.friend-actions {
  display: flex;
  gap: 10px;
}

.accept-btn, .ignore-btn, .send-request-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accept-btn {
  background: #0095f6;
  color: white;
}

.accept-btn:hover {
  background: #0081d6;
}

.ignore-btn {
  background: #dc3545;
  color: white;
}

.ignore-btn:hover {
  background: #c82333;
}

.send-request-btn {
  background: #28a745;
  color: white;
}

.send-request-btn:hover {
  background: #218838;
}

/* Notification Modal Styles */
.notification-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background-color: #f0f8ff;
  font-weight: 600;
  border-left: 3px solid #007bff;
  padding-left: 12px;
}

.notif-icon {
  font-size: 18px;
  color: #6c757d;
  margin-top: 2px;
  flex-shrink: 0;
}

.notification-item.unread .notif-icon {
  color: #007bff;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-user {
  font-weight: 600;
  color: #007bff;
}

.notif-action {
  color: #495057;
}

.notif-comment-preview {
  margin-top: 6px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-left: 3px solid #dee2e6;
  border-radius: 4px;
  font-style: italic;
  color: #6c757d;
  font-size: 14px;
}

.notif-time {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6c757d;
}

.notif-post-preview {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 12px;
  flex-shrink: 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-post-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notif-post-preview.video-preview {
  background: #e9ecef;
  color: #6c757d;
}

.notif-post-preview.video-preview i {
  font-size: 18px;
}

/* Modal Styles for Friend Requests */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #262626;
}

.close-btn {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f0f0f0;
  color: #666;
}

.modal-body {
  padding: 20px;
}

/* Polls Section Styles */
.polls-section {
  margin-top: 3rem;
}

.polls-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.create-poll-btn-container {
  text-align: center;
  margin-bottom: 2rem;
}

.create-poll-btn {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 149, 246, 0.3);
}

.create-poll-btn:hover {
  background: linear-gradient(135deg, #0081d6 0%, #0066cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 149, 246, 0.4);
}

.active-polls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.poll-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid #f1f3f4;
  transition: all 0.3s ease;
}

.poll-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.poll-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.poll-question {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  line-height: 1.4;
  flex: 1;
  margin-right: 15px;
}

.poll-meta {
  text-align: right;
  font-size: 12px;
  color: #666;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.poll-option {
  position: relative;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.poll-option:hover {
  border-color: #0095f6;
  background: #f0f8ff;
}

.poll-option.selected {
  border-color: #0095f6;
  background: #e3f2fd;
}

.poll-option-text {
  font-size: 16px;
  color: #262626;
  font-weight: 500;
  margin-bottom: 8px;
}

.poll-option-bar {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.poll-option-fill {
  height: 100%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.poll-option-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

.poll-option-percentage {
  font-weight: 600;
  color: #0095f6;
}

.poll-option-votes {
  color: #999;
}

.poll-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

.poll-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  font-weight: 600;
}

.poll-total-votes {
  font-weight: 600;
  color: #0095f6;
}

/* Poll Creator Modal Styles */
.poll-creator-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.poll-creator-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.poll-creator-header {
  text-align: center;
  margin-bottom: 25px;
}

.poll-creator-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #262626;
  margin-bottom: 10px;
}

.poll-creator-header p {
  color: #666;
  font-size: 16px;
}

.poll-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #262626;
  font-size: 16px;
}

.form-group input, .form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #0095f6;
}

.poll-options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.poll-option-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.poll-option-input input {
  flex: 1;
}

.remove-option-btn {
  background: #dc3545;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.remove-option-btn:hover {
  background: #c82333;
  transform: scale(1.1);
}

.add-option-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}

.add-option-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.poll-settings {
  display: flex;
  gap: 20px;
  align-items: center;
}

.poll-setting {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-setting input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0095f6;
}

.poll-setting label {
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.poll-creator-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.cancel-poll-btn, .create-poll-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cancel-poll-btn {
  background: #6c757d;
  color: white;
}

.cancel-poll-btn:hover {
  background: #5a6268;
}

.create-poll-btn {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  color: white;
}

.create-poll-btn:hover {
  background: linear-gradient(135deg, #0081d6 0%, #0066cc 100%);
  transform: translateY(-1px);
}

/* Feed Section */
.feed-section {
  margin-bottom: 5rem;
}

.feed-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.modern-post-card, .post-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px rgba(25,118,210,0.10);
  margin: 1.5rem auto;
  max-width: 600px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: box-shadow 0.2s;
}
.post-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.profile-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #1976d2;
}
.anon-name {
  color: #1976d2;
  font-weight: 700;
  font-size: 1.1rem;
}

.clickable-username {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
}

.clickable-username:hover {
  background: #f3f4f6;
  color: #1f2937;
  transform: translateY(-1px);
}
.post-tag {
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 0.5rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.95rem;
  margin-left: auto;
}
.post-content {
  font-size: 1.13rem;
  color: #222;
  margin: 0.5rem 0;
  word-break: break-word;
  line-height: 1.6;
}
.post-media {
  margin: 0.5rem 0;
  text-align: center;
}
.modern-post-img, .post-media img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #f7fafd;
  border-radius: 1rem;
  box-shadow: 0 1px 8px rgba(25,118,210,0.08);
}
.modern-post-video, .post-media video {
  max-width: 100%;
  max-height: 320px;
  border-radius: 0.7rem;
  box-shadow: 0 1px 8px rgba(25,118,210,0.08);
}
.post-time {
  color: #888;
  font-size: 0.98rem;
  margin-top: 0.5rem;
  text-align: right;
}
.post-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.support-btn, .dislike-btn, .comment-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(25,118,210,0.08);
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.support-btn:disabled, .dislike-btn:disabled, .comment-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.support-btn:hover:not(:disabled), .dislike-btn:hover:not(:disabled), .comment-btn:hover:not(:disabled) {
  background: #fff;
  color: #1976d2;
  border: 2px solid #1976d2;
}

/* Floating Action Button */
.fab {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(37,99,235,0.18);
  transition: all 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab:hover {
  background: var(--accent);
  color: #fff;
}

/* Instagram-style Story Creator */
.create-story-item {
  border: 2px dashed #ccc;
  background: white;
}

.create-story-avatar {
  border: 2px dashed #ccc;
  background: white;
  color: #666;
  font-size: 20px;
}

.create-story-item:hover .create-story-avatar {
  border-color: #0095f6;
  color: #0095f6;
}

/* ===== INSTAGRAM-QUALITY STORY CREATOR ===== */
.story-creator-content {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 25px 80px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.1);
}

.story-creator-header {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  padding: 30px;
  margin: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.story-creator-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  pointer-events: none;
}

.story-creator-header h3 {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 15px 0;
}

.story-creator-tabs {
  display: flex;
  gap: 20px;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  padding: 12px;
  border-radius: 16px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
}

.story-tab {
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(15px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 100px;
  justify-content: center;
}

.story-tab.active {
  background: rgba(255,255,255,0.95);
  color: #0095f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border: 2px solid rgba(255,255,255,0.3);
}

.story-tab:hover:not(.active) {
  background: rgba(255,255,255,0.3);
  color: white;
  transform: translateY(-1px);
}

.story-creator-body {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  min-height: 500px;
}

.story-editor {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.story-input-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 16px;
  border: 2px solid #e9ecef;
  margin-bottom: 20px;
}

.story-input-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-input-section h4::before {
  content: '✏️';
  font-size: 16px;
}

.story-input-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-input-section h4::before {
  content: '✏️';
  font-size: 16px;
}

.story-text-input {
  width: 100%;
  min-height: 120px;
  padding: 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Arimo', Arial, sans-serif;
  resize: vertical;
  outline: none;
  transition: all 0.3s ease;
  background: white;
  line-height: 1.5;
}

.story-text-input:focus {
  border-color: #0095f6;
  box-shadow: 0 0 0 3px rgba(0,149,246,0.1);
}

.story-text-input::placeholder {
  color: #999;
  font-style: italic;
}

.story-text-input:focus {
  border-color: #0095f6;
  box-shadow: 0 0 0 3px rgba(0,149,246,0.1);
}

.story-text-input::placeholder {
  color: #999;
  font-style: italic;
}

.story-preview {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  background: #0095f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid #f0f0f0;
}

.story-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  pointer-events: none;
}

.story-preview-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.story-preview-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.story-preview-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  font-family: 'Arimo', Arial, sans-serif;
  line-height: 1.4;
  word-wrap: break-word;
  padding: 20px;
}

.story-preview-content img,
.story-preview-content video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

.story-preview-content textarea::placeholder {
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.story-customization {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.anonymous-option {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 16px;
  border: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 15px;
}

.anonymous-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #0095f6;
  cursor: pointer;
}

.anonymous-label {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  cursor: pointer;
}

.anonymous-hint {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

.customization-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.customization-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.customization-section h4::before {
  content: '⚙️';
  font-size: 14px;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.color-option {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-option.active {
  border-color: #0095f6;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,149,246,0.4);
}

.color-option:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.color-option[data-color="#0095f6"] { background: #0095f6; }
.color-option[data-color="#ff6b6b"] { background: #ff6b6b; }
.color-option[data-color="#4ecdc4"] { background: #4ecdc4; }
.color-option[data-color="#45b7d1"] { background: #45b7d1; }
.color-option[data-color="#96ceb4"] { background: #96ceb4; }
.color-option[data-color="#feca57"] { background: #feca57; }
.color-option[data-color="#ff9ff3"] { background: #ff9ff3; }
.color-option[data-color="#54a0ff"] { background: #54a0ff; }

.custom-color {
  border: 2px dashed #0095f6;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.custom-color::after {
  content: '+';
  color: #0095f6;
  font-size: 18px;
  font-weight: bold;
}

.custom-color input[type="color"] {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  position: absolute;
}

.text-style-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.text-style-options select {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  font-family: 'Arimo', Arial, sans-serif;
  transition: all 0.3s ease;
}

.text-style-options select:focus {
  outline: none;
  border-color: #0095f6;
  box-shadow: 0 0 0 3px rgba(0,149,246,0.1);
}

/* ===== MEDIA UPLOAD SECTION ===== */
.story-media-upload {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.story-media-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 16px;
  border: 2px solid #e9ecef;
  margin-bottom: 20px;
}

.story-media-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-media-section h4::before {
  content: '📷';
  font-size: 16px;
}

.story-media-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-media-section h4::before {
  content: '📷';
  font-size: 16px;
}

.media-upload-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.media-upload-tab {
  padding: 10px 20px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #666;
}

.media-upload-tab.active {
  border-color: #0095f6;
  background: #0095f6;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,149,246,0.3);
}

.media-upload-tab:hover:not(.active) {
  border-color: #0095f6;
  color: #0095f6;
}

.upload-area {
  border: 3px dashed #0095f6;
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f8ff 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.upload-area.dragover {
  border-color: #0081d6;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  transform: scale(1.02);
}

.file-input-hidden {
  display: none;
}

.upload-instructions {
  margin-bottom: 20px;
}

.upload-instructions h5 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.upload-instructions p {
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}

.upload-formats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.format-badge {
  background: rgba(0,149,246,0.1);
  color: #0095f6;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.upload-preview {
  margin-top: 20px;
  text-align: center;
}

.upload-preview img, 
.upload-preview video {
  max-width: 100%;
  max-height: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 2px solid #e9ecef;
}

.upload-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(0,149,246,0.05) 50%, transparent 70%);
  pointer-events: none;
}

.upload-area:hover {
  border-color: #0081d6;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,149,246,0.15);
}

.upload-area i {
  font-size: 42px;
  color: #0095f6;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.upload-area:hover i {
  color: #0081d6;
  transform: scale(1.1);
}

.upload-area p {
  font-size: 16px;
  color: #333;
  margin: 8px 0;
  font-weight: 500;
}

.upload-hint {
  font-size: 13px;
  color: #666;
  font-style: italic;
  background: rgba(0,149,246,0.1);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 10px;
}

.upload-preview {
  margin-top: 15px;
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.upload-preview img,
.upload-preview video {
  max-width: 100%;
  max-height: 250px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 2px solid #f0f0f0;
}

/* Story Options */
.story-options {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #666;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0095f6;
}

/* Story Creator Footer - Simplified & Tech-wise */
.story-creator-footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
  padding: 25px 30px;
  border-top: 1px solid #e9ecef;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.story-creator-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #0095f6 50%, transparent 100%);
}

.story-creator-footer .btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Arimo', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.story-creator-footer .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.story-creator-footer .btn:hover::before {
  left: 100%;
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(108,117,125,0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,117,125,0.4);
}

.btn-primary {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0,149,246,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0081d6 0%, #0066cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,149,246,0.4);
}

/* Story Viewer Modal */
.story-viewer-modal {
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
}

.story-viewer-wrapper {
  background: black;
  border-radius: 20px;
  overflow: hidden;
  max-width: 400px;
  width: 95%;
  max-height: 80vh;
  position: relative;
}

.story-viewer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.story-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 600;
}

.close-story-btn {
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-story-btn:hover {
  background: rgba(255,255,255,0.2);
}

.story-viewer-content {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
  text-align: center;
}

.story-text-content {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 100%;
}

.story-viewer-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 20px;
  text-align: center;
  color: white;
  font-size: 14px;
}

/* ===== FRIENDS PAGE STYLES ===== */

/* Friends Header */
.friends-header {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 3rem;
}

.friends-header-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.friends-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.friends-header p {
  font-size: 20px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Friends Dashboard */
.friends-dashboard {
  padding: 0 2rem 4rem;
}

.friends-dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

.friends-section {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid #f1f3f4;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #262626;
  margin: 0;
}

.section-header p {
  color: #666;
  margin: 5px 0 0 0;
}

.request-count, .friends-count, .suggested-count {
  background: #0095f6;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Friend Requests */
.requests-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.friend-request-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.friend-request-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.friend-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.friend-info {
  flex: 1;
}

.friend-name {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 5px;
}

.friend-username {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
}

.request-time {
  font-size: 14px;
  color: #999;
}

.friend-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.accept-btn, .decline-btn, .view-btn, .send-request-btn, .view-profile-btn, .message-btn, .unfriend-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.accept-btn {
  background: #28a745;
  color: white;
}

.accept-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.decline-btn {
  background: #dc3545;
  color: white;
}

.decline-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.view-btn {
  background: #6c757d;
  color: white;
}

.view-btn:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.send-request-btn {
  background: #0095f6;
  color: white;
}

.send-request-btn:hover {
  background: #0081d6;
  transform: translateY(-1px);
}

.view-profile-btn {
  background: #17a2b8;
  color: white;
}

.view-profile-btn:hover {
  background: #138496;
  transform: translateY(-1px);
}

.message-btn {
  background: #28a745;
  color: white;
}

.message-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.unfriend-btn {
  background: #dc3545;
  color: white;
}

.unfriend-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Current Friends Grid */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.friend-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 25px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.friend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.friend-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  font-weight: 600;
  margin: 0 auto 20px;
}

.friend-card-info {
  text-align: center;
  margin-bottom: 20px;
}

.friend-card-name {
  font-size: 20px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 8px;
}

.friend-card-username {
  font-size: 16px;
  color: #666;
  margin-bottom: 12px;
}

.friend-card-status {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

.friend-card-status.online {
  background: #d4edda;
  color: #155724;
}

.friend-card-status.offline {
  background: #f8d7da;
  color: #721c24;
}

.friend-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Suggested Friends Grid */
.suggested-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.suggested-friend-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  border: 2px solid #f1f3f4;
  transition: all 0.3s ease;
}

.suggested-friend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: #0095f6;
}

.suggested-friend-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  font-weight: 600;
  margin: 0 auto 20px;
}

.suggested-friend-info {
  text-align: center;
  margin-bottom: 20px;
}

.suggested-friend-name {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 8px;
}

.suggested-friend-username {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.mutual-friends {
  font-size: 14px;
  color: #0095f6;
  font-weight: 500;
}

.suggested-friend-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Discover People Grid */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.discover-person-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  border: 2px solid #f1f3f4;
  transition: all 0.3s ease;
}

.discover-person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-color: #0095f6;
}

.discover-person-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  font-weight: 600;
  margin: 0 auto 25px;
}

.discover-person-info {
  text-align: center;
  margin-bottom: 25px;
}

.discover-person-name {
  font-size: 22px;
  font-weight: 700;
  color: #262626;
  margin-bottom: 10px;
}

.discover-person-username {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
}

.discover-person-bio {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 0 10px;
}

.discover-person-interests {
  font-size: 14px;
  color: #0095f6;
  font-weight: 500;
  font-style: italic;
}

.discover-person-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Empty States */
.no-requests, .no-friends, .no-suggestions, .no-discoveries {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

/* Friend Profile Modal */
.friend-profile-modal {
  z-index: 2000;
}

.friend-profile-content {
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
}

.friend-profile-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.friend-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.friend-profile-details h3 {
  font-size: 28px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 10px 0;
}

.friend-profile-username {
  font-size: 18px;
  color: #666;
  margin-bottom: 15px;
}

.friend-profile-bio {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.friend-profile-stats {
  display: flex;
  gap: 20px;
}

.friend-profile-stats span {
  font-size: 16px;
  color: #666;
}

.friend-profile-stats strong {
  color: #0095f6;
}

.friend-profile-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.friend-profile-posts {
  max-height: 400px;
  overflow-y: auto;
}

.friend-post-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  font-weight: 600;
}

.post-author-info {
  display: flex;
  flex-direction: column;
}

.post-author-name {
  font-weight: 600;
  color: #262626;
}

.post-time {
  font-size: 12px;
  color: #999;
}

.post-content {
  margin-bottom: 15px;
}

.post-content p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.post-media img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}

.post-actions {
  display: flex;
  gap: 15px;
}

.post-action-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.post-action-btn:hover {
  background: #f0f0f0;
  color: #0095f6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .friends-header h1 {
    font-size: 36px;
  }
  
  .friends-header p {
    font-size: 18px;
  }
  
  .friends-dashboard {
    padding: 0 1rem 2rem;
  }
  
  .friends-section {
    padding: 20px;
  }
  
  .section-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .friend-request-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .friend-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .friends-grid, .suggested-grid, .discover-grid {
    grid-template-columns: 1fr;
  }
  
  .friend-profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .friend-profile-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===== FRIEND POST STYLING ===== */

.friend-post {
  border-left: 4px solid #0095f6;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.friend-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0095f6 0%, #4ecdc4 100%);
  border-radius: 3px 3px 0 0;
}

.friend-badge {
  background: linear-gradient(135deg, #0095f6 0%, #4ecdc4 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(0, 149, 246, 0.3);
}

.friend-badge i {
  font-size: 10px;
}

/* Friend post header enhancement */
.friend-post .post-header {
  background: rgba(0, 149, 246, 0.05);
  border-radius: 12px 12px 0 0;
  padding: 15px 20px;
  margin: -20px -20px 15px -20px;
}

/* Friend post content enhancement */
.friend-post .post-content {
  font-weight: 500;
  color: #2c3e50;
}

/* Friend post actions enhancement */
.friend-post .post-actions {
  background: rgba(0, 149, 246, 0.02);
  border-radius: 0 0 12px 12px;
  margin: 15px -20px -20px -20px;
  padding: 15px 20px;
}

/* Hide FAB when any modal is open */
.share-modal:not(.hidden) ~ .fab,
.share-modal:not(.hidden) + .fab,
.share-modal:not(.hidden) .fab,
.comments-modal:not(.hidden) ~ .fab,
.comments-modal:not(.hidden) + .fab,
.comments-modal:not(.hidden) .fab,
.notifications-modal:not(.hidden) ~ .fab,
.notifications-modal:not(.hidden) + .fab,
.notifications-modal:not(.hidden) .fab,
.modal:not(.hidden) ~ .fab,
.modal:not(.hidden) + .fab,
.modal:not(.hidden) .fab {
  display: none !important;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37,99,235,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--card);
  border: 1px solid #e3eaf2;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(37,99,235,0.08);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e3eaf2;
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.close-modal {
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: #fff;
  background: var(--primary);
}

/* Forms */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 2rem;
}

.auth-container {
  background: var(--card);
  border: 1px solid #e3eaf2;
  border-radius: 1rem;
  padding: 3rem 2rem;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(37,99,235,0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.auth-logo {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  object-fit: contain;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .auth-logo {
    width: 2.8rem;
    height: 2.8rem;
  }
  
  /* Mobile Search */
  .search-container {
    padding: 0 0.5rem;
  }
  
  .search-input {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .search-btn {
    padding: 0.8rem 1rem;
  }
  
  .search-user-item {
    padding: 0.8rem;
  }
  
  .search-user-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .search-user-stats {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .search-results-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .search-filters {
    width: 100%;
    justify-content: center;
  }
  
  .search-user-actions {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .view-profile-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .search-users-dropdown {
    max-height: 300px;
  }
  
  /* Mobile Profile */
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  .profile-name-section {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .profile-display-name {
    font-size: 1.5rem;
  }
  
  .profile-stats {
    justify-content: center;
  }
  
  .profile-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .profile-post-card {
    padding: 0.8rem;
  }
  
  .profile-post-content {
    font-size: 0.9rem;
  }
  
  /* Mobile Search Modal */
  .search-modal-content {
    width: 95vw;
    max-height: 80vh;
  }
  
  .search-user-item {
    padding: 0.8rem;
  }
  
  .search-user-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  /* Mobile Post Sharing */
  .post-sharing-content {
    width: 95vw;
    max-height: 85vh;
  }
  
  .sharing-actions {
    padding: 1rem;
  }
  
  .sharing-action-btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .auth-logo {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  /* Small Mobile Search */
  .search-input {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .search-btn {
    padding: 0.7rem 0.8rem;
  }
  
  /* Small Mobile Profile */
  .profile-header {
    padding: 1rem;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .profile-display-name {
    font-size: 1.3rem;
  }
  
  .profile-posts-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.8rem;
  }
  
  .profile-post-full {
    padding: 1rem;
  }
  
  .profile-post-full .post-actions {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .profile-post-full .support-btn,
  .profile-post-full .dislike-btn,
  .profile-post-full .comment-btn,
  .profile-post-full .share-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    justify-content: center;
  }
  
  /* Mobile User Selection Modal */
  .user-selection-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .user-selection-header {
    padding: 1rem;
  }
  
  .user-selection-header h3 {
    font-size: 1.1rem;
  }
  
  .user-selection-item {
    padding: 0.8rem;
  }
  
  .user-selection-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .user-selection-stats {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  /* Small Mobile Search Modal */
  .search-modal-header {
    padding: 1rem;
  }
  
  .search-modal-header h3 {
    font-size: 1rem;
  }
  
  .search-user-item {
    padding: 0.7rem;
  }
  
  .search-user-avatar {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .search-user-name {
    font-size: 1rem;
  }
  
  .search-user-stats {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  /* Small Mobile Post Sharing */
  .sharing-header {
    padding: 1rem;
  }
  
  .sharing-header h3 {
    font-size: 1rem;
  }
  
  .sharing-preview {
    padding: 1rem;
  }
  
  .sharing-actions {
    padding: 0.8rem;
  }
  
  .sharing-action-btn {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .auth-logo {
    width: 4rem;
    height: 4rem;
  }
}

.auth-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.auth-header p {
  color: #888;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--primary);
}

.form-group label i {
  color: var(--accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1rem;
  background: #f4f8fb;
  border: 1px solid #e3eaf2;
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

/* Password input wrapper with toggle button */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 3rem;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--primary);
}

.password-toggle:focus {
  outline: none;
  color: var(--primary);
}

.password-toggle i {
  font-size: 1rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Checkbox styling - removed duplicate */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-btn,
.post-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.auth-btn:hover,
.post-btn:hover {
  background: var(--accent);
  color: #fff;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e3eaf2;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Instagram-like Profile Styles */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 4.5rem 0 2rem 0;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(25,118,210,0.10);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-name-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-display-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.profile-username {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
}

.profile-username:empty {
  display: none;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-bio {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

.profile-join-date {
  color: #888;
  font-size: 0.9rem;
}

.profile-posts-section {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(25,118,210,0.10);
  overflow: hidden;
}

.posts-grid-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
}

.posts-grid-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
}

.profile-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.profile-post-card {
  background: #f8f9fa;
  border-radius: 0.8rem;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #eee;
}

.profile-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-post-content {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
}

.profile-post-stats {
  display: flex;
  gap: 0.8rem;
}

.profile-post-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.no-posts-message {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
  grid-column: 1 / -1;
}

.no-posts-message i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.no-posts-message p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.no-posts-message small {
  color: #999;
}

/* Profile posts with full interaction capabilities */
.profile-post-full {
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  padding: 1.5rem;
}

.profile-post-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-post-full .post-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #f1f5f9;
}

.profile-post-full .profile-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.profile-post-full .anon-name {
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
}

.profile-post-full .post-tag {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-post-full .tag-label {
  background: #f3f4f6;
  color: #6b7280;
  padding: 0.3rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.profile-post-full .post-content {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.profile-post-full .post-media {
  margin-bottom: 1rem;
}

.profile-post-full .post-time {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.profile-post-full .post-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.profile-post-full .support-btn,
.profile-post-full .dislike-btn,
.profile-post-full .comment-btn,
.profile-post-full .share-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-post-full .support-btn:hover,
.profile-post-full .dislike-btn:hover,
.profile-post-full .comment-btn:hover,
.profile-post-full .share-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.profile-post-full .support-btn:disabled,
.profile-post-full .dislike-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.profile-post-full .support-btn:disabled {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.profile-post-full .dislike-btn:disabled {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

/* User Selection Modal */
.user-selection-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.user-selection-content {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.user-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.user-selection-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
}

.close-user-selection {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.close-user-selection:hover {
  background: #e5e7eb;
  color: #374151;
}

.user-selection-list {
  max-height: 60vh;
  overflow-y: auto;
  padding: 1rem;
}

.user-selection-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.user-selection-item:hover {
  background: #f8fafc;
  border-color: #e5e7eb;
  transform: translateY(-1px);
}

.user-selection-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.user-selection-info {
  flex: 1;
  min-width: 0;
}

.user-selection-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.user-selection-stats {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
}

.user-post-count {
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
}

.name-type {
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.name-type.real {
  background: #dcfce7;
  color: #166534;
}

.name-type.anonymous {
  background: #fef3c7;
  color: #92400e;
}

.user-selection-item i.fa-chevron-right {
  color: #9ca3af;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Made in India Badge */
.made-in-india {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background: var(--card);
  border: 1px solid #e3eaf2;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(37,99,235,0.04);
}

.made-in-india i {
  color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 900px) {
  .nav-container {
    padding: 0 1rem;
  }
}

@media (max-width: 700px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background: var(--nav-gradient);
    width: 100%;
    text-align: center;
    transition: left 0.3s;
    padding: 2rem 0;
    border-top: 1px solid #e3eaf2;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .main-content {
    padding: 1rem 0.2rem 5rem 0.2rem;
  }
  .feed-container {
    gap: 1rem;
  }
  .modern-post-card, .post-card {
    max-width: 98vw;
    padding: 1rem 0.5rem;
  }
  .post-header {
    font-size: 1rem;
  }
  .post-tag {
    font-size: 0.85rem;
    padding: 0.15rem 0.5rem;
  }
  .post-content {
    font-size: 1rem;
  }
  .support-btn, .dislike-btn {
    font-size: 0.98rem;
    padding: 0.5rem 1rem;
  }
  .fab {
    right: 1rem;
    bottom: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .made-in-india {
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 0.5rem 2rem;
  }
  .auth-container {
    padding: 2rem 1rem;
  }
  
  /* Mobile Post Container Fixes */
.post-card, .modern-post-card {
  padding: 1rem !important;
  margin: 1rem 0.5rem !important;
  width: calc(100% - 1rem) !important;
  max-width: none !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* Mobile Profile Posts Layout Fix */
.profile-posts-grid {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  padding: 1rem !important;
  width: 100% !important;
  margin: 0 !important;
}

.profile-post-card {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

/* Ensure profile posts section is full width on mobile */
.profile-posts-section {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.profile-posts-section .posts-grid-header {
  padding: 1rem !important;
  margin: 0 !important;
}

/* Ensure post actions are properly positioned */
.post-actions {
  position: relative !important;
  z-index: 20 !important;
}

/* Fix dropdown positioning on mobile */
.post-actions .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  min-width: 120px !important;
  margin-top: 0.5rem !important;
}

/* Additional dropdown positioning fixes */
.post-actions .dropdown-menu {
  z-index: 9999 !important;
  position: fixed !important;
  transform: translateY(0) !important;
}

/* Ensure dropdown is above all other elements */
.post-actions .dropdown-menu,
.post-actions .dropdown-menu * {
  z-index: 9999 !important;
}
  
  .feed-container {
    max-width: 100% !important;
    margin: 0 0.5rem !important;
    padding: 0 !important;
  }
  
  /* Fix z-index for post actions */
.post-actions {
  position: relative !important;
  z-index: 50 !important;
}

.post-actions .dropdown-menu {
  z-index: 9999 !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  min-width: 120px !important;
  margin-top: 0.5rem !important;
}

/* Ensure post cards have proper stacking context */
.post-card, .modern-post-card {
  position: relative !important;
  z-index: 1 !important;
}

/* Force dropdown above everything */
.post-actions .dropdown-menu,
.post-actions .dropdown-menu * {
  z-index: 9999 !important;
  position: relative !important;
}

/* Global z-index hierarchy for post elements */
.post-card, .modern-post-card {
  z-index: 1 !important;
}

.post-actions {
  z-index: 50 !important;
}

.post-actions .dropdown-menu {
  z-index: 9999 !important;
}

/* Ensure dropdown items are clickable */
.post-actions .dropdown-menu .dropdown-item {
  position: relative !important;
  z-index: 10000 !important;
}
  
  .post-actions .dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem !important;
    border: none !important;
    background: none !important;
    width: 100% !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
  }
  
  .post-actions .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa !important;
  }
  
  .post-actions .dropdown-menu .dropdown-item.delete {
    color: #dc3545 !important;
  }
  
  .post-actions .dropdown-menu .dropdown-item.delete:hover {
    background-color: #f8d7da !important;
  }
}

/* Enhanced Post Modal Styles */
.post-modal-content {
  max-width: 600px;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-post {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.post-user-info {
  display: flex;
  flex-direction: column;
}

.post-username {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 14px;
}

.post-privacy {
  font-size: 12px;
  color: #666;
}

/* Post Form Styles */
.content-group {
  position: relative;
  margin-bottom: 20px;
}

.content-group textarea {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  font-family: inherit;
  background: transparent;
}

.content-counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 12px;
  color: #999;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Media Preview */
.media-preview {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.media-preview-content {
  position: relative;
  display: inline-block;
}

.media-preview img,
.media-preview video {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  display: block;
}

.remove-media {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-media:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Post Options */
.post-options {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}

.option-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.option-label i {
  font-size: 16px;
}

.file-input-hidden {
  display: none;
}

.option-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.option-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* Categories Styles */
.categories-group {
  margin-bottom: 24px;
}

.categories-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-size: 14px;
}

.categories-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f0f0f0;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  color: #666;
}

.category-chip:hover {
  background: #e8f4fd;
  border-color: var(--primary);
  color: var(--primary);
}

.category-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.category-chip i:first-child {
  font-size: 12px;
}

.remove-category {
  font-size: 10px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.category-chip:hover .remove-category {
  opacity: 1;
}

.selected-categories {
  min-height: 40px;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.no-categories {
  color: #999;
  font-style: italic;
  font-size: 14px;
}

.selected-category-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-size: 12px;
}

.selected-category-tag .remove-tag {
  cursor: pointer;
  font-size: 10px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.selected-category-tag .remove-tag:hover {
  opacity: 1;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #e1e5e9;
}

.cancel-btn {
  background: linear-gradient(90deg, #757575 0%, #bdbdbd 100%);
  color: #fff;
  border: 2px solid #bdbdbd;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 6px rgba(97,97,97,0.08);
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.cancel-btn:hover {
  background: #fff;
  color: #424242;
  border: 2px solid #757575;
}

.post-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
} 

.login-required-box {
  max-width: 420px;
  margin: 5rem auto 0 auto;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px rgba(25,118,210,0.10);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-required-box h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2.2rem;
  line-height: 1.3;
}
.login-btns-row {
  display: flex;
  gap: 1.2rem;
  width: 100%;
  justify-content: center;
}
.login-btn, .register-btn {
  display: inline-block;
  min-width: 120px;
  padding: 0.7rem 0;
  border-radius: 2rem;
  border: 2px solid #1976d2;
  background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  transition: background 0.2s, color 0.2s, border 0.2s;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  margin: 0;
  flex: 1 1 0;
}
.login-btn:hover, .register-btn:hover {
  background: #fff;
  color: #1976d2;
  border: 2px solid #1976d2;
}
@media (max-width: 600px) {
  .login-required-box {
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .login-btns-row {
    flex-direction: column;
    gap: 0.7rem;
  }
  .login-btn, .register-btn {
    width: 100%;
    font-size: 1rem;
    min-width: 0;
    padding: 0.7rem 0;
  }
} 

@media (min-width: 901px) {
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-toggle {
    display: none !important;
  }
} 

/* Modern Info Box for Login Required */
.modern-info-box {
  background: linear-gradient(135deg, #f4f8fb 60%, #e3f2fd 100%);
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px rgba(25, 118, 210, 0.10);
  border-left: 6px solid #1976d2;
  padding: 2.5rem 2rem 2rem 2rem;
  margin: 2rem auto;
  max-width: 520px;
  text-align: center;
  position: relative;
}
.modern-info-icon {
  color: #1976d2;
  font-size: 2.1rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}
.modern-info-text {
  color: #1976d2;
  font-size: 1.18rem;
  font-weight: 400;
  margin: 1.2rem 0 2rem 0;
  line-height: 1.8;
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .modern-info-box {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    max-width: 98vw;
  }
  .modern-info-text {
    font-size: 1.05rem;
  }
} 

/* Cursor-style Login Info Box (only for login-required message) */
.cursor-login-info-box {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 32px rgba(25, 118, 210, 0.10), 0 1.5px 6px rgba(0,0,0,0.03);
  border: 1.5px solid #e3eaf2;
  padding: 2.2rem 2rem 2rem 2rem;
  margin: 2.5rem auto 2rem auto;
  max-width: 480px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s;
}
.cursor-login-info-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1.3rem;
  letter-spacing: 0.01em;
}
.cursor-login-info-text {
  color: #2563eb;
  font-size: 1.08rem;
  font-weight: 400;
  margin: 0 0 2.1rem 0;
  line-height: 1.85;
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .cursor-login-info-box {
    padding: 1.1rem 0.5rem 1.1rem 0.5rem;
    max-width: 98vw;
  }
  .cursor-login-info-title {
    font-size: 1.08rem;
  }
  .cursor-login-info-text {
    font-size: 0.98rem;
  }
} 

@media (max-width: 600px) {
  .nav-logo {
    font-size: 1.2rem;
  }
  .nav-logo img {
    height: 24px !important;
  }
} 

/* Burger to X animation */
.nav-toggle .bar {
  transition: 0.3s;
}
.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
} 

/* Modern Post Card Styles - Cursor Level UI */
.post-card, .modern-post-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10), 0 1.5px 6px rgba(0,0,0,0.03);
  margin: 2rem auto 2.5rem auto;
  max-width: 600px;
  padding: 2rem 2.2rem 1.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: box-shadow 0.2s;
  border: 1.5px solid #e3eaf2;
}
.post-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.profile-icon {
  font-size: 1.7rem;
  color: #1976d2;
}
.anon-name {
  color: #1976d2;
  font-weight: 700;
  font-size: 1.08rem;
}
.post-tag {
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 0.5rem;
  padding: 0.18rem 0.7rem;
  font-size: 0.95rem;
  margin-left: auto;
  font-weight: 500;
}
.post-content {
  font-size: 1.13rem;
  color: #222;
  margin: 0.5rem 0 0.2rem 0;
  word-break: break-word;
  line-height: 1.7;
}
.post-media {
  margin: 0.5rem 0 0.7rem 0;
  text-align: center;
}
.modern-post-img, .post-media img {
  max-width: 100%;
  border-radius: 0.9rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
.modern-post-video, .post-media video {
  max-width: 100%;
  border-radius: 0.9rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
.post-time {
  color: #888;
  font-size: 1.01rem;
  margin-top: 0.2rem;
  text-align: right;
  font-weight: 400;
}
.post-actions {
  display: flex;
  justify-content: flex-start;
  gap: 1.2rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}
.support-btn, .dislike-btn, .comment-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.55rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(25, 99, 235, 0.07);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  outline: none;
}
.support-btn:disabled, .dislike-btn:disabled, .comment-btn:disabled {
  background: #b3c6f7;
  color: #fff;
  cursor: not-allowed;
}
.support-btn:hover:not(:disabled), .dislike-btn:hover:not(:disabled), .comment-btn:hover:not(:disabled) {
  background: #1746a2;
  color: #fff;
  box-shadow: 0 2px 8px rgba(25, 99, 235, 0.13);
}
@media (max-width: 700px) {
  .post-card, .modern-post-card {
    max-width: 98vw;
    padding: 1.1rem 0.5rem 1.1rem 0.5rem;
    margin: 1.2rem auto 1.5rem auto;
    gap: 0.8rem;
  }
  .post-header {
    font-size: 0.98rem;
    gap: 0.5rem;
  }
  .profile-icon {
    font-size: 1.3rem;
  }
  .anon-name {
    font-size: 0.98rem;
  }
  .post-tag {
    font-size: 0.85rem;
    padding: 0.13rem 0.5rem;
  }
  .post-content {
    font-size: 1.01rem;
  }
  .post-time {
    font-size: 0.93rem;
  }
  .support-btn, .dislike-btn {
    font-size: 0.97rem;
    padding: 0.45rem 1.1rem;
  }
  .post-actions {
    gap: 0.7rem;
    margin-top: 0.4rem;
  }
} 

/* Uniform Post Card Width and Media Fit */
.post-card, .modern-post-card {
  width: 100%;
  max-width: 600px;
  min-width: 260px;
  box-sizing: border-box;
}
.post-media, .modern-post-img, .post-media img, .modern-post-video, .post-media video {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  object-fit: cover;
  border-radius: 0.9rem;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .post-card, .modern-post-card {
    width: 100%;
    max-width: 98vw;
    min-width: 0;
  }
} 

/* Simple, Clean Profile Header Layout */
.profile-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  max-width: 520px;
  margin: 3.5rem auto 2.2rem auto;
  padding: 0;
  position: relative;
  min-height: unset;
  z-index: 1;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e3e3e3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #1976d2;
  border: none;
  box-shadow: none;
  margin-right: 1.2rem;
  flex-shrink: 0;
}
.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-left: 0;
  width: 100%;
  min-width: 0;
  gap: 0.13rem;
}
.profile-name {
  color: #1976d2;
  font-weight: 700;
  font-size: 1.18rem;
  margin-bottom: 0.03rem;
  letter-spacing: 0.01em;
  text-align: left;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-email {
  font-size: 1.01rem;
  color: #1976d2;
  margin-bottom: 0.03rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  opacity: 0.85;
  word-break: break-all;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-post-count {
  background: #e3f2fd;
  color: #1976d2;
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: 1.2rem;
  padding: 0.18rem 0.9rem;
  margin-top: 0.08rem;
  display: inline-block;
  letter-spacing: 0.01em;
  text-align: left;
  box-shadow: none;
}
@media (max-width: 700px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0.7rem;
    max-width: 100vw;
    width: 100%;
    min-width: 0;
    min-height: unset;
    margin: 3.5rem 0 2.2rem 0;
  }
  .profile-avatar {
    display: block;
    margin: 0 auto 0.5rem auto !important;
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
  }
  .profile-info {
    margin: 0 auto !important;
    align-items: center !important;
    justify-content: center;
    width: 100% !important;
    gap: 0.09rem;
  }
  .profile-name, .profile-post-count {
    text-align: center !important;
    width: 100% !important;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .profile-email {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
    width: 100% !important;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 0.97rem;
    font-weight: 500;
    color: #1976d2;
    opacity: 0.85;
  }
  .profile-post-count {
    margin-top: 0.13rem;
    font-size: 0.89rem;
    padding: 0.13rem 0.7rem;
  }
} 

/* --- MODERN COMMENTS MODAL --- */
.comments-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.comments-modal.hidden {
  display: none;
}

.comments-modal-content {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: slideUp 0.4s ease;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.comments-modal-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.close-comments-modal {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  color: #4a5568 !important;
  font-size: 1.4rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  z-index: 10 !important;
  padding: 0 !important;
}

.close-comments-modal:hover {
  background: #f7fafc !important;
  color: #2d3748 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

.comments-list::-webkit-scrollbar {
  width: 6px;
}

.comments-list::-webkit-scrollbar-track {
  background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
  background: #c0c0c0;
}

.comment-item {
  padding: 20px 24px;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s ease;
  animation: fadeIn 0.5s ease;
}

.comment-item:hover {
  background: #fafbfc;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.comment-avatar::before {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.2;
  z-index: -1;
}

.comment-main > div {
  flex: 1;
  min-width: 0;
}

.comment-anon {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 2px;
}

.comment-time {
  font-size: 0.8rem;
  color: #a0aec0;
  font-weight: 500;
  margin-left: 8px;
}

.comment-content {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 4px;
  word-wrap: break-word;
}

.reply-btn {
  background: none;
  border: none;
  color: #667eea;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reply-btn:hover {
  background: #f7fafc;
  color: #5a67d8;
  transform: translateY(-1px);
}

.replies-list {
  margin-left: 52px;
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid #e2e8f0;
}

.reply-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  animation: fadeIn 0.4s ease;
  border: 1px solid #e2e8f0;
}

.reply-anon {
  font-weight: 600;
  color: #4a5568;
  font-size: 0.85rem;
}

.reply-content {
  color: #4a5568;
  margin: 4px 0 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.reply-time {
  font-size: 0.75rem;
  color: #a0aec0;
  margin-top: 4px;
  display: block;
}

#add-comment-form {
  display: flex;
  border-top: 1px solid #e2e8f0;
  padding: 20px 24px;
  background: #ffffff;
  gap: 12px;
  align-items: flex-end;
}

#comment-input {
  flex: 1;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  background: #f8fafc;
  color: #4a5568;
  font-family: inherit;
  resize: none;
  min-height: 44px;
  max-height: 120px;
}

#comment-input:focus {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#comment-input::placeholder {
  color: #a0aec0;
  font-weight: 500;
}

#add-comment-form button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#add-comment-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#add-comment-form button:active {
  transform: translateY(0);
}

#add-comment-form button:disabled {
  background: #e2e8f0;
  color: #a0aec0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loading-comments {
  text-align: center;
  color: #a0aec0;
  margin: 40px 0;
  font-size: 0.9rem;
  font-weight: 500;
}

#load-more-comments {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 16px 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#load-more-comments:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.reply-form {
  margin-top: 12px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.reply-form form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.reply-form .reply-input {
  flex: 1;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #4a5568;
  font-family: inherit;
}

.reply-form .reply-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.reply-form button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.reply-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

.reply-form button[type="button"] {
  background: #e2e8f0;
  color: #4a5568;
  box-shadow: none;
}

.reply-form button[type="button"]:hover {
  background: #cbd5e0;
  transform: translateY(-1px);
}

.new-comment-anim {
  animation: newCommentFlash 0.6s ease;
}

@keyframes newCommentFlash {
  0% { 
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(-10px);
  }
  50% { 
    background: rgba(102, 126, 234, 0.05);
  }
  100% { 
    background: transparent;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from { 
    transform: translateY(60px) scale(0.95); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0) scale(1); 
    opacity: 1; 
  }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .comments-modal {
    padding: 10px;
  }
  
  .comments-modal-content {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px;
  }
  
  .comments-modal-content h3 {
    padding: 20px 20px 12px 20px;
    font-size: 1.2rem;
  }
  
  .close-comments-modal {
    top: 16px !important;
    right: 16px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.2rem !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }
  
  .comment-item {
    padding: 16px 20px;
  }
  
  .comment-avatar {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .replies-list {
    margin-left: 48px;
    padding-left: 12px;
  }
  
  #add-comment-form {
    padding: 16px 20px;
    gap: 8px;
  }
  
  #comment-input {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  #add-comment-form button {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-width: 70px;
  }
  
  #load-more-comments {
    margin: 12px 20px;
    padding: 10px 20px;
    font-size: 0.85rem;
  }
} 

/* --- Notification Bell and Modal Styles --- */
.notif-bell-link {
  position: relative;
  margin-right: 1.2rem;
  cursor: pointer;
}

/* Responsive Story Creator */
@media (max-width: 768px) {
  .story-creator-modal .modal-content {
    width: 98%;
    max-height: 90vh;
    margin: 10px;
  }
  
  .story-creator-modal .modal-header {
    padding: 12px 16px;
  }
  
  .story-creator-modal .modal-body {
    padding: 16px;
    gap: 16px;
  }
  
  .story-type-selector {
    flex-direction: row;
    gap: 4px;
  }
  
  .type-btn {
    padding: 8px 4px;
    font-size: 11px;
  }
  
  .type-btn i {
    font-size: 16px;
  }
  
  .story-customization {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .preview-content {
    width: 160px;
    height: 240px;
  }
}
.notif-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  min-width: 18px;
  min-height: 18px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid #1e40af;
  padding: 2px;
  box-sizing: border-box;
  min-height: 18px;
  padding: 0;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}
.notifications-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  animation: fadeIn 0.3s;
}
.notifications-modal.hidden {
  display: none;
}
.notifications-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 95vw;
  max-width: 400px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: slideUp 0.3s;
}
.close-notifications-modal {
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  align-self: flex-end;
  margin: 8px 16px 0 0;
  transition: color 0.2s;
}
.close-notifications-modal:hover {
  color: #222;
}
.notifications-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f7fafd;
}
.notification-item {
  padding: 12px 10px;
  border-bottom: 1px solid #eaeaea;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeIn 0.4s;
}
.notification-item.unread {
  background: #e3f2fd;
  font-weight: 600;
}
.notif-user {
  color: #2a5dff;
  font-weight: 600;
  margin-right: 4px;
}
.notif-time {
  font-size: 0.85em;
  color: #888;
  margin-top: 2px;
}
.no-notifications {
  color: #888;
  text-align: center;
  margin: 2rem 0;
  font-size: 1.1rem;
} 

/* --- New Comment Animation --- */
.new-comment-anim {
  animation: newCommentFlash 1.2s;
  background: #e3f2fd !important;
}
@keyframes newCommentFlash {
  0% { background: #fffbe7; opacity: 0.2; }
  30% { background: #e3f2fd; opacity: 1; }
  100% { background: #fff; opacity: 1; }
}

/* --- Notification Toast Animations --- */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* Modern distinct Comments button style */
.comment-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #1976d2;
  border: 2px solid #1976d2;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(25,118,210,0.08);
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.comment-btn i {
  color: #1976d2;
  transition: color 0.2s;
}
.comment-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.comment-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
  color: #fff;
  border: 2px solid #1976d2;
}
.comment-btn:hover:not(:disabled) i {
  color: #fff;
} 

/* --- Improved Reply Styles --- */
.reply-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  animation: fadeIn 0.4s ease;
  border: 1px solid #e2e8f0;
}
.reply-anon {
  font-weight: 600;
  color: #4a5568;
  font-size: 0.85rem;
}
.reply-content {
  color: #4a5568;
  margin: 4px 0 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.reply-time {
  font-size: 0.75rem;
  color: #a0aec0;
  margin-top: 4px;
  display: block;
}
.reply-btn {
  background: none;
  border: none;
  color: #667eea;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.reply-btn:hover, .reply-btn:focus {
  background: #f7fafc;
  color: #5a67d8;
  transform: translateY(-1px);
} 

/* --- Modern Reply Form Styles --- */
.reply-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.3rem 0 0.7rem 2.2rem;
}
.reply-form .reply-input {
  flex: 1;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1em;
  outline: none;
  transition: border 0.2s;
}
.reply-form .reply-input:focus {
  border: 1.5px solid #1976d2;
}
.reply-form button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}
.reply-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
} 

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(25,118,210,0.08);
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.share-btn i {
  color: #fff;
  transition: color 0.2s;
}
.share-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.share-btn:hover:not(:disabled) {
  background: #fff;
  color: #1976d2;
  border: 2px solid #1976d2;
}
.share-btn:hover:not(:disabled) i {
  color: #1976d2;
}

/* Old share styles removed - using new share modal styles above */ 

.beta-notice {
  color: #888;
  font-size: 1.01rem;
  margin-top: 0.2rem;
  margin-bottom: 0.7rem;
  text-align: center;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .beta-notice {
    font-size: 0.97rem;
    padding: 0 0.5rem;
  }
} 

@media (max-width: 600px) {
  .tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.7rem;
    max-width: 98vw;
    margin: 0 auto;
  }
  .tag-btn {
    min-width: 44%;
    flex: 1 1 44%;
    font-size: 1rem;
    padding: 0.5rem 0.2rem;
    margin: 0.2rem 0;
    box-sizing: border-box;
  }
  .tag-btn img, .tag-btn i {
    font-size: 1.1em;
    margin-right: 0.3em;
  }
} 

.hashtag {
  color: #1976d2;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}
.hashtag:hover {
  color: #1251a3;
  text-decoration: underline;
} 

.post-modal-content .cancel-btn {
  background: #f3f4f6;
  color: #222;
  border: 2px solid #bdbdbd;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 6px rgba(97,97,97,0.06);
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.post-modal-content .cancel-btn:hover {
  background: #e0e0e0;
  color: #111;
  border: 2px solid #757575;
}
.post-modal-content .cancel-btn i {
  font-size: 1.1em;
} 

.post-modal-content .post-options {
  background: #f8fafc;
  border: 1.5px solid #e3eaf2;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(37,99,235,0.06);
  padding: 1rem 1.2rem;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  transition: box-shadow 0.25s, border-color 0.2s;
}
.post-modal-content .post-options:hover {
  box-shadow: 0 4px 24px rgba(37,99,235,0.10);
  border-color: #b6d0fa;
}
.post-modal-content .option-btn {
  background: linear-gradient(90deg, #2563eb 0%, #4fc3f7 100%);
  color: #fff;
  border: 2px solid #2563eb;
  border-radius: 1rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(37,99,235,0.10);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s;
  outline: none;
}
.post-modal-content .option-btn i {
  color: #fff;
  font-size: 1.1em;
  pointer-events: none;
}
.post-modal-content .option-btn:hover, .post-modal-content .option-btn:focus {
  transform: scale(1.13) rotate(-6deg);
  box-shadow: 0 4px 18px rgba(37,99,235,0.18);
  border-color: #1976d2;
  background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
}
.post-modal-content .option-label {
  color: #2563eb;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.5rem;
} 

/* --- Share Modal Styles (matching comments modal) --- */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.share-modal.hidden {
  display: none;
}

.share-modal-content {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: slideUp 0.4s ease;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.share-modal-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-share-modal {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  color: #4a5568 !important;
  font-size: 1.4rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  z-index: 10 !important;
  padding: 0 !important;
}

.close-share-modal:hover {
  background: #f7fafc !important;
  color: #2d3748 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.share-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.share-options button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  flex: 1;
  min-width: 120px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.share-options button:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.share-options button i {
  font-size: 1.1rem;
}

.share-preview {
  flex: 1;
  padding: 20px 24px;
  background: #ffffff;
  overflow-y: auto;
}

.share-preview-img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-content {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.share-instructions {
  padding: 20px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.share-instructions-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}

.share-instructions-content h4 {
  color: #2d3748;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-instructions-content ol {
  margin: 0 0 12px 0;
  padding-left: 20px;
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.5;
}

.share-instructions-content li {
  margin-bottom: 8px;
}

.share-instructions-content a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.share-instructions-content a:hover {
  text-decoration: underline;
}

.share-instructions-content code {
  background: #f7fafc;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.share-instructions-content p {
  margin: 12px 0 0 0;
  color: #718096;
  font-size: 0.85rem;
  font-style: italic;
}

/* Mobile responsive for share modal */
@media (max-width: 600px) {
  .share-modal-content {
    width: 95vw;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px;
  }
  
  .share-modal-content h3 {
    padding: 20px 20px 12px 20px;
    font-size: 1.2rem;
  }
  
  .close-share-modal {
    top: 16px !important;
    right: 16px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.2rem !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }
  
  .share-options {
    padding: 16px 20px;
    gap: 8px;
  }
  
  .share-options button {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .share-preview {
    padding: 16px 20px;
  }
  
  .share-instructions {
    padding: 16px 20px;
  }
} 

@media (max-width: 600px) {
  .post-modal-content .post-options {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.7rem 0.5rem;
  }
  .post-modal-content .option-group {
    background: #e3f2fd;
    border-radius: 0.9rem;
    padding: 0.6rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 1px 6px rgba(25,118,210,0.07);
    margin: 0;
  }
  .post-modal-content .option-label {
    font-size: 1rem;
    color: #1976d2;
    margin: 0;
    min-width: 0;
  }
  .post-modal-content .option-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 0.7rem;
    margin-left: auto;
  }
}

/* Media Viewer Modal */
.media-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.media-viewer-modal.active {
  opacity: 1;
  visibility: visible;
}

.media-viewer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
}

.media-viewer-instruction {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-align: center;
  z-index: 10001;
  pointer-events: none;
}

.media-viewer-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Allow content to size naturally */
  width: auto;
  height: auto;
}

.media-viewer-image {
  /* Show image in natural size */
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: block;
  /* Ensure proper scaling */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.media-viewer-video {
  /* Show video in natural size */
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: block;
}

.media-viewer-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10001;
}

.media-viewer-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.media-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.media-viewer-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Mobile responsive media viewer */
@media (max-width: 768px) {
  .media-viewer-content {
    padding: 10px;
  }
  
  .media-viewer-image,
  .media-viewer-video {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .media-viewer-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
  
  /* Mobile gesture hint */
  .media-viewer-modal::before {
    content: "Swipe down to close";
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10001;
    opacity: 0.8;
    animation: fadeInOut 3s ease-in-out;
    pointer-events: none;
  }
}

.media-viewer-prev {
  left: -70px;
}

.media-viewer-next {
  right: -70px;
}

.media-viewer-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
}

/* Make post media clickable */
.post-media {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.post-media:hover {
  opacity: 0.9;
}

.post-media img,
.post-media video {
  cursor: pointer;
}

/* Make usernames clickable */
.clickable-username {
  cursor: pointer;
  color: #1976d2;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

/* Main feed action buttons styling - same as profile */
.support-btn, .dislike-btn, .comment-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #495057;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.support-btn:hover, .dislike-btn:hover, .comment-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.support-btn i, .dislike-btn i, .comment-btn i {
  font-size: 0.9rem;
}

/* Share button styling to match */
.share-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #495057;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.share-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.share-btn i {
  font-size: 0.9rem;
}

.clickable-username:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* User selection modal styles */
.user-selection-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-selection-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.user-selection-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-selection-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.2rem;
}

.close-user-selection {
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-user-selection:hover {
  background: #f5f5f5;
}

.user-selection-list {
  max-height: 60vh;
  overflow-y: auto;
}

.user-selection-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.2s;
}

.user-selection-item:hover {
  background: #f8f9fa;
}

.user-selection-item:last-child {
  border-bottom: none;
}

.user-selection-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #1976d2;
  font-size: 1.2rem;
}

.user-selection-info {
  flex: 1;
}

.user-selection-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.user-selection-stats {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: #666;
}

.user-post-count {
  color: #1976d2;
}

.name-type {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.name-type.real {
  background: #e8f5e8;
  color: #2e7d32;
}

.name-type.anonymous {
  background: #fff3e0;
  color: #f57c00;
}

.user-selection-item i.fa-chevron-right {
  color: #ccc;
  margin-left: 10px;
}

/* Mobile responsive for clickable usernames */
@media (max-width: 768px) {
  .clickable-username {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(25, 118, 210, 0.1);
  }
  
  .clickable-username:hover {
    background: rgba(25, 118, 210, 0.2);
  }
  
  .user-selection-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .user-selection-item {
    padding: 12px 15px;
  }
  
  .user-selection-avatar {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  /* Mobile responsive for action buttons */
  .support-btn, .dislike-btn, .comment-btn, .share-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }
}

/* Make profile post media clickable */
.profile-post-media {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.profile-post-media:hover {
  opacity: 0.9;
}

.profile-post-media img,
.profile-post-media video {
  cursor: pointer;
}

/* Mobile responsive for media viewer */
@media (max-width: 768px) {
  .media-viewer-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .media-viewer-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .media-viewer-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .media-viewer-prev {
    left: 10px;
  }
  
  .media-viewer-next {
    right: 10px;
  }
  
  .media-viewer-counter {
    bottom: 10px;
  }
  
  /* Enhanced mobile touch experience */
  .media-viewer-modal {
    touch-action: pan-y pinch-zoom;
  }
  
  .media-viewer-image,
  .media-viewer-video {
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  
  /* Mobile gesture hints */
  .media-viewer-modal::before {
    content: "Swipe down to close";
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10001;
    opacity: 0.8;
    animation: fadeInOut 3s ease-in-out;
  }
}

/* Animation for mobile gesture hint */
@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 0.8; }
}

/* Dark Theme Override */
body {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

.navbar {
  background-color: #2d2d2d !important;
  border-bottom: 1px solid #404040 !important;
}

.nav-link {
  color: #ffffff !important;
}

.nav-link:hover {
  color: #cccccc !important;
}

.post-card, .modern-post-card {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
  border: 1px solid #404040 !important;
}

.post-header, .post-content, .post-time {
  color: #ffffff !important;
}

.auth-container {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

.auth-form input {
  background-color: #404040 !important;
  color: #ffffff !important;
  border: 1px solid #606060 !important;
}

.auth-btn {
  background-color: #606060 !important;
  color: #ffffff !important;
}

.auth-btn:hover {
  background-color: #707070 !important;
}

.tag-btn {
  background-color: #404040 !important;
  color: #ffffff !important;
  border: 1px solid #606060 !important;
}

.tag-btn.active {
  background-color: #606060 !important;
}

.fab {
  background-color: #606060 !important;
  color: #ffffff !important;
}

.modal {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

.modal-content {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

.friend-requests, .suggested-friends {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

.profile-container {
  background-color: #1a1a1a !important;
}

.profile-header {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

.profile-name, .profile-username {
  color: #ffffff !important;
}

.posts-feed .post-card {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

.post-action-btn {
  background-color: #404040 !important;
  color: #ffffff !important;
}

.post-action-btn:hover {
  background-color: #606060 !important;
}

.comments-modal-content {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

.comment-item {
  background-color: #404040 !important;
  color: #ffffff !important;
}

.add-comment-form textarea {
  background-color: #404040 !important;
  color: #ffffff !important;
  border: 1px solid #606060 !important;
}

.add-comment-form button {
  background-color: #606060 !important;
  color: #ffffff !important;
}

.add-comment-form button:hover {
  background-color: #707070 !important;
}

/* Profile Dark Theme Styles - UI Only */
.profile-container {
  background-color: #1a1a1a !important;
}

.profile-header {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
  border: 1px solid #404040 !important;
}

.profile-name {
  color: #ffffff !important;
}

.profile-username {
  color: #cccccc !important;
}

.stat-number {
  color: #ffffff !important;
}

.stat-label {
  color: #cccccc !important;
}

.profile-posts {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
  border: 1px solid #404040 !important;
}

.posts-title {
  color: #ffffff !important;
}

.posts-count {
  color: #cccccc !important;
}

.posts-grid .post-card {
  background-color: #404040 !important;
  color: #ffffff !important;
  border: 1px solid #606060 !important;
}

.posts-grid .post-card:hover {
  background-color: #505050 !important;
}

.posts-grid .post-content {
  color: #ffffff !important;
}

.posts-grid .post-meta {
  color: #cccccc !important;
}

.loading, .no-posts {
  color: #cccccc !important;
}

/* Mobile gesture hint for media viewer */
@media (max-width: 768px) {
  .media-viewer-modal::before {
    content: "Swipe down to close";
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10001;
    opacity: 0.8;
    animation: fadeInOut 3s ease-in-out;
    pointer-events: none;
  }
}

/* Ensure login/register links are properly styled */
#login-link, #register-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

#login-link:hover, #register-link:hover {
  color: #1976d2;
}

/* Profile link styling - Hidden by default on all screen sizes */
.nav-link[href="profile.html"] {
  display: none !important; /* Hidden by default */
  align-items: center;
  gap: 0.5rem;
}

/* Ensure profile is hidden before JavaScript runs */
.nav-menu .nav-link[href="profile.html"] {
  display: none !important;
}

/* Global profile link visibility rules - apply to all screen sizes */
.nav-menu:not(.user-logged-in) .nav-link[href*="profile"] {
  display: none !important;
}

.nav-menu.user-logged-in .nav-link[href*="profile"] {
  display: flex !important;
}

/* Override the general nav-link display rule for profile when not logged in */
.nav-menu:not(.user-logged-in) .nav-link[href="profile.html"] {
  display: none !important;
}

/* Ensure profile link is hidden by default and only shown when logged in */
.nav-menu .nav-link[href="profile.html"] {
  display: none;
}

.nav-menu.user-logged-in .nav-link[href="profile.html"] {
  display: flex !important;
}

/* Additional specificity to ensure profile is hidden when not logged in */
.nav-menu:not(.user-logged-in) .nav-link[href="profile.html"],
.nav-menu:not(.user-logged-in) .nav-link[href*="profile"] {
  display: none !important;
}

/* Force show profile only when logged in */
.nav-menu.user-logged-in .nav-link[href="profile.html"],
.nav-menu.user-logged-in .nav-link[href*="profile"] {
  display: flex !important;
}

/* Fallback: Hide profile link by default on all screen sizes */
.nav-menu .nav-link[href="profile.html"] {
  display: none !important;
}

/* Only show profile when explicitly logged in */
.nav-menu.user-logged-in .nav-link[href="profile.html"] {
  display: flex !important;
}

/* Ensure these rules work on both desktop and mobile */
@media (min-width: 769px) {
  .nav-menu .nav-link[href="profile.html"] {
    display: none !important;
  }
  
  .nav-menu.user-logged-in .nav-link[href="profile.html"] {
    display: flex !important;
  }
}



/* Logout button styling */
.nav-link[onclick="logout()"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #d32f2f;
  transition: color 0.2s;
}

.nav-link[onclick="logout()"]:hover {
  color: #b71c1c;
}

/* Checkbox styling for registration form */
.checkbox-group {
  margin-top: 1rem;
}

.checkbox-group .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
}

.checkbox-group .checkbox-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #1976d2 !important;
  cursor: pointer !important;
  margin-right: 0.5rem !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 0 !important;
  border: 2px solid #e9ecef !important;
  border-radius: 4px !important;
  background: white !important;
}

/* Search results header */
.search-results-header {
  padding: 12px 16px;
  font-weight: 600;
  color: #666;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  font-size: 0.9rem;
}

/* Search suggestions content */
.suggestions-content {
  max-height: 400px;
  overflow-y: auto;
}

/* Section Titles */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.section-title i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Trending Section */
.trending-section {
  margin: 2rem 0;
  padding: 0 1rem;
}

.trending-container {
  max-width: 1200px;
  margin: 0 auto;
}

.trending-content {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.trending-placeholder {
  text-align: center;
  color: #666;
  padding: 2rem;
}

.trending-placeholder i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.trending-placeholder p {
  font-size: 1rem;
  margin: 0;
}

/* Trending Posts */
.trending-post {
  background: #f8f9fa;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trending-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.trending-post:last-child {
  margin-bottom: 0;
}

.trending-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.trending-post-author {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.trending-post-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #666;
}

.trending-post-stats i {
  margin-right: 0.25rem;
  color: var(--accent);
}

.trending-post-content {
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.trending-post-tag {
  display: flex;
  justify-content: flex-end;
}

.tag-badge {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Suggested Friends Section */
.suggested-friends-section {
  margin: 2rem 0;
  padding: 0 1rem;
}

.suggested-friends-container {
  max-width: 1200px;
  margin: 0 auto;
}

.suggested-friends-content {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.suggested-friends-placeholder {
  text-align: center;
  color: #666;
  padding: 2rem;
}

.suggested-friends-placeholder i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.suggested-friends-placeholder p {
  font-size: 1rem;
  margin: 0;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  .trending-section,
  .suggested-friends-section {
    padding: 0 0.5rem;
  }
  
  .trending-content,
  .suggested-friends-content {
    padding: 1rem;
  }
  
  .section-title {
    padding: 0 0.5rem;
    font-size: 1.1rem;
  }
}

/* Quick Actions Section */
.quick-actions {
  background: var(--card);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-top: -1px;
}

.quick-actions-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #666;
}

.quick-action-item:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary);
  transform: translateY(-2px);
}

.quick-action-item i {
  font-size: 1.5rem;
  color: var(--accent);
}

.quick-action-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsive quick actions */
@media (max-width: 768px) {
  .quick-actions-container {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .quick-action-item {
    padding: 0.75rem;
  }
  
  .quick-action-item i {
    font-size: 1.3rem;
  }
  
  .quick-action-item span {
    font-size: 0.8rem;
  }
}

/* Story Highlights Section */
.story-highlights {
  background: var(--card);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.story-highlights-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.story-highlights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.story-highlights-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.view-all-stories {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.view-all-stories:hover {
  background: rgba(37, 99, 235, 0.05);
}

.story-highlights-content {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.story-item:hover {
  transform: scale(1.05);
}

.story-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

.story-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.story-avatar i {
  color: #fff;
  font-size: 1.2rem;
}

.story-item.add-story .story-avatar {
  background: #e9ecef;
  border: 2px dashed #adb5bd;
}

.story-item.add-story .story-avatar i {
  color: #6c757d;
}

.story-item span {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive story highlights */
@media (max-width: 768px) {
  .story-highlights {
    padding: 1rem 0;
  }
  
  .story-highlights-container {
    padding: 0 0.5rem;
  }
  
  .story-highlights-content {
    gap: 0.75rem;
  }
  
  .story-item {
    min-width: 70px;
  }
  
  .story-avatar {
    width: 50px;
    height: 50px;
  }
  
  .story-item span {
    font-size: 0.75rem;
  }
}

/* Compelling Tagline Section */
.tagline-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tagline-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.tagline-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: center;
}

.tagline-item {
  padding: 2rem 1.5rem;
  background: var(--card);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tagline-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.tagline-item i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.tagline-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.tagline-item p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive tagline */
@media (max-width: 768px) {
  .tagline-section {
    padding: 2rem 0;
  }
  
  .tagline-container {
    padding: 0 0.5rem;
  }
  
  .tagline-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tagline-item {
    padding: 1.5rem 1rem;
  }
  
  .tagline-item i {
    font-size: 2.5rem;
  }
  
  .tagline-item h3 {
    font-size: 1.2rem;
  }
  
  .tagline-item p {
    font-size: 0.95rem;
  }
}

/* ===== NEW SOCIAL MEDIA FEATURES CSS ===== */

/* Navigation Links - Hide Profile and Friends by default */
#profile-link,
#friends-link {
  display: none;
}

/* Show Profile and Friends when user is logged in */
.user-logged-in #profile-link,
.user-logged-in #friends-link {
  display: inline-flex !important;
}

/* Force show profile and friends when user is logged in (backup) */
#profile-link[style*="display: flex"],
#friends-link[style*="display: flex"] {
  display: inline-flex !important;
}

/* Ensure profile link is visible when user-anon is visible */
#nav-user:has(.user-anon[style*="display: inline"]) #profile-link,
#nav-user:has(.user-anon[style*="display: inline"]) #friends-link {
  display: inline-flex !important;
}

/* Welcome Section */
.welcome-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  text-align: center;
  color: white;
  margin-top: 0;
}

/* When user is logged in, hide welcome section and show feed prominently */
.user-logged-in .welcome-section {
  display: none !important;
}

/* Ensure feed section is visible when logged in */
.user-logged-in .feed-section {
  display: block !important;
}

.user-logged-in .feed-section {
  margin-top: 0;
  padding-top: 20px;
}

/* Ensure proper spacing for all content sections */
.main-content {
  margin-top: 0;
}

/* Additional spacing for feed when welcome section is hidden */
.user-logged-in .main-content {
  padding-top: 1rem;
}

.welcome-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.welcome-section h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.welcome-section .highlight {
  color: #ffd700;
}

.welcome-section p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.welcome-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 150px;
}

.feature-item i {
  font-size: 1.5rem;
  color: #fff;
}

.feature-item span {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.welcome-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.welcome-btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.welcome-btn.primary {
  background: white;
  color: #0095f6;
}

.welcome-btn.primary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.welcome-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.welcome-btn.secondary:hover {
  background: white;
  color: #0095f6;
  transform: translateY(-2px);
}



/* About Page Styles */
.about-hero {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  color: white;
  text-align: center;
  padding: 100px 0;
  margin-top: 0;
}

.about-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-hero .hero-subtitle {
  font-size: 24px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.about-hero .hero-description {
  font-size: 18px;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  padding: 60px 0;
}

.about-section {
  padding: 60px 0;
}

.about-section:nth-child(even) {
  background: #f8f9fa;
}

.about-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-section h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #262626;
}

/* About Intro */
.about-intro {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Highlight Section */
.highlight-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* USP Grid */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.usp-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.usp-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.usp-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.usp-icon i {
  font-size: 36px;
  color: white;
}

.usp-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 15px;
}

.usp-card p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
  font-size: 16px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.feature-item {
  background: white;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f1f3f4;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-item i {
  font-size: 32px;
  color: #0095f6;
  margin-bottom: 20px;
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 12px;
}

.feature-item p {
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
  font-size: 14px;
}

/* Reasons Grid */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.reason-item {
  background: white;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f1f3f4;
}

.reason-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.reason-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 15px;
}

.reason-item p {
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
  font-size: 15px;
}

/* Mission Content */
.mission-content {
  max-width: 900px;
  margin: 0 auto;
}

.mission-text {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  text-align: center;
  margin-bottom: 50px;
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.value-item {
  background: white;
  padding: 25px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f1f3f4;
}

.value-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.value-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 12px;
}

.value-item p {
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.btn-primary {
  background: white;
  color: #0095f6;
  border-color: white;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: white;
  color: #0095f6;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 60px 0 20px;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0095f6;
}

.footer-section h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #0095f6;
}

.mission-highlight {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 149, 246, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(0, 149, 246, 0.2);
}

.mission-highlight h4 {
  color: #0095f6;
  margin-bottom: 10px;
  font-size: 16px;
}

.mission-highlight p {
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.footer-section p {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #0095f6;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #888;
  margin: 0;
  font-size: 14px;
}

/* Legal Content Styles */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-section {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f3f4;
}

.legal-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 20px;
  text-align: center;
}

.legal-section h4 {
  font-size: 18px;
  font-weight: 600;
  color: #0095f6;
  margin: 25px 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 16px;
}

.legal-section ul {
  margin: 15px 0 20px 20px;
  padding: 0;
}

.legal-section ul li {
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
  font-size: 15px;
}

.legal-section ul li:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: #0095f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.legal-section a:hover {
  color: #0081d6;
  text-decoration: underline;
}

/* Highlight section for Terms of Service */
.highlight-section .legal-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.about-intro {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: #6c757d;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.usp-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.usp-card:hover {
  transform: translateY(-5px);
}

.usp-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.usp-icon i {
  font-size: 32px;
  color: white;
}

.usp-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #262626;
}

.usp-card p {
  color: #6c757d;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.feature-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
}

.feature-item i {
  font-size: 28px;
  color: #0095f6;
  margin-bottom: 15px;
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #262626;
}

.feature-item p {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.reason-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.reason-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #262626;
}

.reason-item p {
  color: #6c757d;
  line-height: 1.6;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
}

.mission-text {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 40px;
  color: #6c757d;
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.value-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.value-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0095f6;
}

.value-item p {
  color: #6c757d;
  line-height: 1.6;
}

.cta-section {
  background: linear-gradient(135deg, #0095f6 0%, #0081d6 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer Styles */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: #0095f6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #0095f6;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #ccc;
}

/* Story Creator Modal - Simple & Clean */
.story-creator-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
}

.story-creator-modal.hidden {
  display: none !important;
}

/* Force modal to be visible when not hidden */
.story-creator-modal:not(.hidden) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.story-creator-modal .modal-content {
  max-width: 450px;
  width: 95%;
  max-height: 85vh;
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.story-creator-modal .modal-header {
  background: white;
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #495057;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.back-btn:hover {
  background-color: #e9ecef;
}

.story-creator-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #495057;
}

.share-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.share-btn:hover {
  background: #0056b3;
}

.share-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.story-creator-modal .modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Story Type Selector */
.story-type-selector {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.type-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: none;
  background: transparent;
  color: #6c757d;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 500;
}

.type-btn i {
  font-size: 20px;
}

.type-btn.active {
  background: #007bff;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.type-btn:hover:not(.active) {
  color: #495057;
}

/* Story Content Area */
.story-content-area {
  min-height: 120px;
}

.story-text-editor {
  display: block;
}

.story-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: white;
}

.story-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: #6c757d;
  margin-top: 8px;
}

/* Media Upload */
.story-media-upload {
  display: none;
  border: 2px dashed #e9ecef;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s ease;
  background: white;
}

.story-media-upload:hover {
  border-color: #007bff;
}

.upload-area {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.upload-area:hover {
  transform: scale(1.02);
}

.upload-area i {
  font-size: 32px;
  color: #6c757d;
  margin-bottom: 12px;
}

.upload-area p {
  margin: 0 0 8px 0;
  color: #495057;
  font-size: 14px;
  font-weight: 500;
}

.upload-area small {
  color: #6c757d;
  font-size: 12px;
}

.upload-preview {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.upload-preview img,
.upload-preview video {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
}

/* Story Customization */
.story-customization {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.customization-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customization-label {
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.color-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-picker input[type="color"] {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}

.color-label {
  font-size: 12px;
  color: #6c757d;
  font-family: monospace;
}

/* Story Preview */
.story-preview-container {
  text-align: center;
}

.story-preview-container h4 {
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.story-preview {
  display: flex;
  justify-content: center;
}

.preview-content {
  width: 200px;
  height: 300px;
  background: #007bff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.preview-content span {
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.preview-content span {
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.customization-item label {
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.color-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-picker input[type="color"] {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}

.color-label {
  font-size: 12px;
  color: #8e8e93;
  font-family: monospace;
}

.customization-item select {
  padding: 10px 12px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  color: #262626;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.customization-item select:focus {
  outline: none;
  border-color: #0095f6;
}

.story-media-upload {
  display: none;
  border: 2px dashed #e1e5e9;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.story-media-upload:hover {
  border-color: #0095f6;
}

.upload-area {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.upload-area:hover {
  transform: scale(1.02);
}

.upload-area i {
  font-size: 32px;
  color: #8e8e93;
  margin-bottom: 12px;
}

.upload-area p {
  margin: 0;
  color: #8e8e93;
  font-size: 14px;
}

.upload-area input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.upload-preview {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.upload-preview img,
.upload-preview video {
  max-width: 100%;
  border-radius: 8px;
}

.preview-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-info {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 12px;
}

.file-info span {
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.file-info small {
  opacity: 0.8;
}

.story-options {
  margin: 0 24px 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #262626;
}

/* Removed display: none to make checkbox visible */

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #0095f6;
  border-color: #0095f6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.story-creator-modal .modal-footer {
  border-top: 1px solid #e1e5e9;
  padding: 16px 24px 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.story-creator-modal .btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-creator-modal .btn-secondary {
  background: transparent;
  color: #8e8e93;
  border: 1px solid #e1e5e9;
}

.story-creator-modal .btn-secondary:hover {
  background: #f8f9fa;
  border-color: #c7c7cc;
}

.story-creator-modal .btn-primary {
  background: #0095f6;
  color: white;
}

.story-creator-modal .btn-primary:hover {
  background: #0081d6;
}

.story-creator-modal .btn-primary:disabled {
  background: #b2dffc;
  cursor: not-allowed;
}

/* Event Creator Modal - Instagram Style */
.event-creator-modal .modal-content {
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.event-creator-modal .modal-header {
  border-bottom: 1px solid #e1e5e9;
  padding: 20px 24px 16px;
}

.event-creator-modal .modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  margin: 0;
}

.event-creator-modal .modal-body {
  padding: 24px;
}

.event-creator-modal .form-group {
  margin-bottom: 20px;
}

.event-creator-modal .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 8px;
}

.event-creator-modal .form-group input,
.event-creator-modal .form-group textarea,
.event-creator-modal .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.event-creator-modal .form-group input:focus,
.event-creator-modal .form-group textarea:focus,
.event-creator-modal .form-group select:focus {
  outline: none;
  border-color: #0095f6;
}

.event-creator-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.event-creator-modal .modal-footer {
  border-top: 1px solid #e1e5e9;
  padding: 16px 24px 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Poll Creator Modal - Instagram Style */
.poll-creator-modal .modal-content {
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.poll-creator-modal .modal-header {
  border-bottom: 1px solid #e1e5e9;
  padding: 20px 24px 16px;
}

.poll-creator-modal .modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  margin: 0;
}

.poll-creator-modal .modal-body {
  padding: 24px;
}

.poll-creator-modal .form-group {
  margin-bottom: 20px;
}

.poll-creator-modal .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 8px;
}

.poll-creator-modal .form-group input,
.poll-creator-modal .form-group textarea,
.poll-creator-modal .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.poll-creator-modal .form-group input:focus,
.poll-creator-modal .form-group textarea:focus,
.poll-creator-modal .form-group select:focus {
  outline: none;
  border-color: #0095f6;
}

.poll-creator-modal .poll-option {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.poll-creator-modal .poll-option input {
  flex: 1;
}

.poll-creator-modal .btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.poll-creator-modal .modal-footer {
  border-top: 1px solid #e1e5e9;
  padding: 16px 24px 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.story-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.story-options input[type="text"] {
  padding: 0.5rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  width: 100%;
}

/* Event Creator Modal */
.event-creator-modal .modal-content {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

.event-creator-content form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.form-group input[type="url"] {
  margin-top: 0.5rem;
}

/* Poll Creator Modal */
.poll-creator-modal .modal-content {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.poll-creator-content form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.poll-option {
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
}

/* Suggested Friends */
.suggested-friend-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.suggested-friend-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.friend-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-info {
  flex: 1;
  min-width: 0;
}

.friend-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.friend-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.friend-bio {
  margin-top: 0.5rem !important;
  font-size: 0.85rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.4;
}

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--text-secondary);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--card);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: var(--border);
  color: var(--text);
}

.modal-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Responsive Design for New Features */
@media (max-width: 768px) {
  .story-creator-modal .modal-content,
  .event-creator-modal .modal-content,
  .poll-creator-modal .modal-content {
    max-width: 95vw;
    margin: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .story-customization {
    flex-direction: column;
    align-items: stretch;
  }
  
  .suggested-friend-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .friend-avatar {
    width: 60px;
    height: 60px;
  }
}

/* Additional responsive body padding for different screen sizes */
@media (max-width: 480px) {
  body {
    padding-top: 55px; /* Reduced padding to remove white space */
  }
}

@media (min-width: 1200px) {
  body {
    padding-top: 65px; /* Reduced padding to remove white space */
  }
}

/* Responsive About Page Styles */
@media (max-width: 768px) {
  .about-hero {
    padding: 60px 0;
  }
  
  .about-hero h1 {
    font-size: 36px;
  }
  
  .about-hero .hero-subtitle {
    font-size: 20px;
  }
  
  .about-hero .hero-description {
    font-size: 16px;
  }
  
  .about-section {
    padding: 40px 0;
  }
  
  .about-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .about-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .usp-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .usp-card {
    padding: 30px 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .mission-values {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-container {
    padding: 0 1rem;
  }
  
  .mission-highlight {
    margin-top: 15px;
    padding: 15px;
  }
  
  .legal-section {
    padding: 30px 25px;
  }
  
  .legal-section h3 {
    font-size: 22px;
  }
  
  .legal-section h4 {
    font-size: 17px;
    margin: 22px 0 15px 0;
  }
}

@media (max-width: 480px) {
  .about-hero h1 {
    font-size: 32px;
  }
  
  .about-hero .hero-subtitle {
    font-size: 18px;
  }
  
  .about-section h2 {
    font-size: 24px;
  }
  
  .usp-card, .feature-item, .reason-item, .value-item {
    padding: 25px 20px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .legal-section {
    padding: 25px 20px;
  }
  
  .legal-section h3 {
    font-size: 20px;
  }
  
  .legal-section h4 {
    font-size: 16px;
    margin: 20px 0 12px 0;
  }
  
  .legal-section p {
    font-size: 14px;
  }
  
  .legal-section ul li {
    font-size: 14px;
  }
  
  .footer-container {
    padding: 0 1rem;
  }
  
  .footer-content {
    gap: 20px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .stories-row {
    gap: 10px;
  }
  
  .story-item {
    width: 70px;
  }
  
  .story-avatar {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .friend-request-item, .suggested-friend-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .friend-actions {
    justify-content: center;
  }
  
  .poll-card {
    padding: 20px;
  }
  
  .poll-creator-content {
    padding: 20px;
    margin: 20px;
  }
  
  .poll-settings {
    flex-direction: column;
    gap: 15px;
  }
  
  .story-creator-body {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px;
  }
  
  .story-preview {
    width: 100%;
    height: 280px;
  }
  
  .story-customization {
    gap: 20px;
  }
  
  .story-creator-content {
    width: 98%;
    margin: 10px;
    max-height: 95vh;
  }
  
  .story-creator-header {
    padding: 20px;
  }
  
  .story-creator-header h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .story-creator-tabs {
    gap: 8px;
    padding: 6px;
  }
  
  .story-tab {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .customization-section {
    padding: 15px;
  }
  
  .color-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .color-option {
    width: 40px;
    height: 40px;
  }
  
  .story-creator-footer {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }
  
  .story-creator-footer .btn {
    width: 100%;
    padding: 12px 24px;
  }
}

/* ===== STORIES LOADING SPINNER ===== */
.stories-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 30px;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #f0f0f0;
  border-top: 3px solid #0095f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== STORY ITEM ENHANCEMENTS ===== */
.story-item {
  position: relative;
  transition: all 0.3s ease;
}

.story-item:hover {
  transform: translateY(-2px);
}

.story-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #0095f6;
  transition: width 0.3s ease;
}

.story-item:hover::after {
  width: 60%;
}

.story-avatar {
  position: relative;
  overflow: hidden;
}

.story-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-item:hover .story-avatar::before {
  opacity: 1;
}

/* ===== FRIEND REQUEST SYSTEM STYLES ===== */

/* Connection Button Styles */
.connection-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.connect-btn {
  background: #2563eb;
  color: white;
}

.connect-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.pending-btn {
  background: #f59e0b;
  color: white;
  cursor: not-allowed;
}

.connected-btn {
  background: #10b981;
  color: white;
  cursor: not-allowed;
}

/* Friend Requests Container */
.friend-requests-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.friend-request-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e5e7eb;
}

.friend-request-item:last-child {
  border-bottom: none;
}

.request-info {
  flex: 1;
}

.request-user {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.request-time {
  font-size: 12px;
  color: #6b7280;
}

.request-actions {
  display: flex;
  gap: 10px;
}

.accept-btn, .decline-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.accept-btn {
  background: #10b981;
  color: white;
}

.accept-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.decline-btn {
  background: #ef4444;
  color: white;
}

.decline-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.no-requests {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 20px;
}

/* User Profile Connection Button */
.user-profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Connection Status Indicators */
.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.connection-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.connection-status.connected {
  background: #d1fae5;
  color: #065f46;
}

.connection-status.none {
  background: #e5e7eb;
  color: #374151;
}

/* ===== ENHANCED STORY SYSTEM STYLES ===== */

/* Story Modal Styles */
.story-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.story-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
}

.story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: white;
}

.story-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-user-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.story-user-info div {
  display: flex;
  flex-direction: column;
}

.story-time {
  font-size: 12px;
  color: #6b7280;
}

.close-story-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 5px;
}

.story-content {
  padding: 20px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.story-text {
  font-size: 18px;
  text-align: center;
  line-height: 1.5;
}

.story-media {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
}

.story-text-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

/* Story Viewers Modal */
.story-viewers-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.story-viewers-modal .modal-content {
  background: white;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
}

.story-viewers-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.story-viewers-modal .modal-body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.viewer-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.viewer-item:last-child {
  border-bottom: none;
}

.viewer-info {
  display: flex;
  flex-direction: column;
}

.view-time {
  font-size: 12px;
  color: #6b7280;
}

.no-viewers {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 20px;
}

/* My Stories Container */
.my-stories-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.my-story-item {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.my-story-item:hover {
  transform: translateY(-2px);
}

.story-preview {
  aspect-ratio: 9/16;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 160px;
}

.story-text-preview {
  font-size: 14px;
  text-align: center;
  padding: 10px;
  color: white;
}

.story-media-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-stats {
  padding: 10px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}

.view-count {
  cursor: pointer;
  font-weight: 500;
}

/* Own Story Indicator */
.own-story {
  position: relative;
}

.own-story .view-count {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}

/* Desktop Story Support */
@media (min-width: 768px) {
  .story-modal-content {
    max-width: 500px;
  }
  
  .story-content {
    min-height: 400px;
  }
  
  .my-stories-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .story-preview {
    min-height: 200px;
  }
}

/* ===== NOTIFICATION BADGE STYLES ===== */

.nav-notifications {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.notification-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  border: 2px solid white;
}

/* ===== SEARCH RESULT CONNECT BUTTONS ===== */

.search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result:hover {
  background-color: #f8fafc;
}

.search-result-info {
  flex: 1;
}

.search-result-actions {
  margin-left: 10px;
}

.connect-btn-small, .pending-btn-small, .connected-btn-small {
  padding: 6px 12px;
  border: none;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.connect-btn-small {
  background: #2563eb;
  color: white;
}

.connect-btn-small:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.pending-btn-small {
  background: #f59e0b;
  color: white;
  cursor: not-allowed;
}

.connected-btn-small {
  background: #10b981;
  color: white;
  cursor: not-allowed;
}

/* ===== FRIENDS MODAL STYLES ===== */

.friends-container {
  max-height: 400px;
  overflow-y: auto;
}

.friend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e5e7eb;
}

.friend-item:last-child {
  border-bottom: none;
}

.friend-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.friend-avatar {
  width: 40px;
  height: 40px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.friend-details {
  display: flex;
  flex-direction: column;
}

.friend-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.friend-date {
  font-size: 12px;
  color: #6b7280;
}

.friend-actions {
  display: flex;
  gap: 8px;
}

.view-profile-btn, .unfriend-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-profile-btn {
  background: #2563eb;
  color: white;
}

.view-profile-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.unfriend-btn {
  background: #ef4444;
  color: white;
}

.unfriend-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.no-friends {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 20px;
}

/* Facebook-style Friend Request Styles */
.friends-section {
  margin-bottom: 2rem;
}

.friends-section h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.friend-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: #f9fafb;
  transition: all 0.2s;
}

.friend-request-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.friend-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.friend-actions {
  display: flex;
  gap: 0.5rem;
}

.accept-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.accept-btn:hover {
  background: #059669;
}

.decline-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.decline-btn:hover {
  background: #dc2626;
}

.no-requests {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 2rem;
}

/* Enhanced Search Results Styles */
.search-results {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 1rem;
  position: relative;
  z-index: 100;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.search-results-header h3 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
}

.close-search-btn {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-search-btn:hover {
  background: #b91c1c;
  transform: scale(1.05);
}

.search-results-content {
  max-height: 500px;
  overflow-y: auto;
}

.search-results-summary {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #f0f0f0;
  color: #666;
  font-size: 0.9rem;
}

.search-results-list {
  padding: 0.5rem 0;
}

.search-no-results {
  padding: 3rem 2rem;
  text-align: center;
}

.search-no-results i {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.search-no-results h4 {
  color: #333;
  margin-bottom: 0.5rem;
}

.search-no-results p {
  color: #666;
  font-size: 0.9rem;
}
/* Forgot Password Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-auth {
  background: #1a1a1a;
  border: 1px solid #333;
  max-width: 450px;
  width: 90%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-auth .modal-header {
  border-bottom: 1px solid #333;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-auth .modal-header h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 20px;
  padding: 0.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-auth .modal-body {
  padding: 1.5rem;
}

.modal-auth .form-group {
  margin-bottom: 1.5rem;
}

.modal-auth .form-group label {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 14px;
  font-weight: 500;
}

.modal-auth .form-group input {
  background: #2a2a2a;
  border: 1px solid #333;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  width: 100%;
  font-size: 14px;
  transition: all 0.2s ease;
}

.modal-auth .form-group input:focus {
  outline: none;
  border-color: #1976d2;
  background: #2f2f2f;
}

.modal-auth .auth-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-auth .auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive styles for auth pages */
@media (max-width: 768px) {
  .auth-wrapper {
    padding: 2rem 1rem;
    min-height: 100vh;
  }
  
  .auth-container {
    padding: 2rem 1.5rem;
    max-width: 100%;
    border-radius: 12px;
  }
  
  .auth-header h1 {
    font-size: 24px;
  }
  
  .auth-header p {
    font-size: 14px;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-group label {
    font-size: 14px;
  }
  
  .form-group input {
    padding: 0.75rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-primary,
  .auth-btn {
    padding: 0.875rem 1.5rem;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .auth-wrapper {
    padding: 1rem;
  }
  
  .auth-container {
    padding: 1.5rem 1rem;
  }
  
  .auth-header {
    margin-bottom: 1.5rem;
  }
  
  .auth-header h1 {
    font-size: 20px;
  }
}

/* Reset Password Form Specific Styles */
#resetPasswordForm .form-group {
  margin-bottom: 1.5rem;
}

#resetPasswordForm .form-group:last-of-type {
  margin-bottom: 1rem;
}

#resetPasswordForm #resetButton {
  margin-top: 0 !important;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

#resetPasswordForm #resetButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
