/* Main styles for Nova Giggles - Neumorphism & Glassmorphism Theme */

/* AI Image Generation Styles */
.ai-modal {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 10px;
  box-sizing: border-box;
}
.ai-modal.open { display: flex; }
.ai-modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
  transition: background 0.2s;
}
.ai-modal-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 0.95));
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  padding: 32px;
  max-width: 90vw;
  max-height: 90vh;
  width: 500px;
  overflow-y: auto;
  animation: fadeInScale 0.3s ease-out;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ai-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #bfc7e0;
  cursor: pointer;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.ai-modal-close:hover {
  background: rgba(102,126,234,0.10);
  color: #fff;
}
.ai-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.ai-modal-label {
  font-weight: 500;
  color: #e0e6ff;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.ai-modal-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  min-height: 70px;
  margin-bottom: 14px;
  background: rgba(40, 42, 60, 0.9);
  color: #ffffff;
  transition: border-color 0.3s, background 0.3s;
}
.ai-modal-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(50, 52, 70, 0.95);
  box-shadow: 0 0 0 2px rgba(102,126,234,0.2);
}
.ai-modal-generate-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 13px 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  margin-bottom: 10px;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
  width: 100%;
}
.ai-modal-generate-btn:hover {
  box-shadow: 0 6px 20px rgba(102,126,234,0.4);
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #7c8fff 0%, #8a5fb8 100%);
}
.ai-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8c5ff;
  font-weight: 500;
  font-size: 1.08rem;
  margin: 18px 0 10px 0;
  min-height: 36px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.ai-spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #b8c5ff;
  border-radius: 50%;
  margin-right: 10px;
  animation: ai-spin 1s linear infinite;
}
@keyframes ai-spin {
  to { transform: rotate(360deg); }
}
.ai-modal-image-preview {
  margin-top: 20px;
  text-align: center;
  min-height: 100px;
  max-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ai-modal-img {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}
.ai-modal-use-btn {
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
  color: #fff;
  border: none;
  padding: 13px 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 0;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  box-shadow: 0 4px 12px rgba(40,167,69,0.3);
  width: 100%;
  display: block;
}
.ai-modal-use-btn:hover {
  box-shadow: 0 6px 20px rgba(40,167,69,0.4);
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
}
.ai-modal-error {
  background: rgba(220, 53, 69, 0.2);
  color: #ff6b6b;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(220, 53, 69, 0.3);
  margin-top: 15px;
  text-align: center;
  font-size: 1rem;
  min-height: 0;
  backdrop-filter: blur(10px);
}
@media (max-width: 600px) {
  .ai-modal-card {
    max-width: 95vw;
    max-height: 95vh;
    width: 95vw;
    padding: 20px;
    margin: 10px;
  }
  
  .ai-modal-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
}

/* Landscape orientation handling */
@media (max-height: 600px) and (orientation: landscape) {
  .ai-modal-card {
    max-height: 85vh;
    padding: 20px;
    overflow-y: auto;
  }
  
  .ai-modal-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .ai-modal-textarea {
    max-height: 80px;
    min-height: 60px;
  }
  
  .ai-modal-image-preview {
    max-height: 200px;
  }
  
  .ai-modal-img {
    max-height: 180px;
  }
  
  .ai-edit-preview-img {
    max-height: 120px;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .ai-modal-card {
    max-width: 600px;
    width: 600px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .ai-modal-card {
    max-width: 98vw;
    width: 98vw;
    padding: 15px;
    margin: 5px;
  }
  
  .ai-modal-title {
    font-size: 1.1rem;
  }
  
  .ai-mode-tabs {
    flex-direction: column;
    gap: 1px;
  }
  
  .ai-tab-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}
/* --- End AI Modal Dark Theme Styles --- */

/* Announcement Banner */
.announcement-banner {
  position: relative;
  width: 100%;
  padding: 12px 0;
  color: white;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: slideInDown 0.5s ease-out;
  margin-bottom: 20px;
  border-radius: 50px;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.announcement-icon {
  font-size: 1.2rem;
  opacity: 0.9;
}

.announcement-text {
  font-size: 1rem;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.announcement-time {
  font-size: 0.85rem;
  opacity: 0.8;
  white-space: nowrap;
}

.announcement-time i {
  margin-right: 5px;
}

/* Responsive design for announcement */
@media (max-width: 768px) {
  .announcement-content {
    flex-direction: column;
    gap: 8px;
  }
  
  .announcement-text {
    font-size: 0.9rem;
  }
  
  .announcement-time {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .announcement-banner {
    padding: 10px 0;
  }
  
  .announcement-content {
    padding: 0 15px;
  }
  
  .announcement-text {
    font-size: 0.85rem;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Lexend', 'Segoe UI', Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  background-attachment: fixed;
  line-height: 1.6;
  color: #e2e8f0;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Chat notification for background changes */
.chat-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.95);
  color: #2d3748;
  border-radius: 20px;
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.1),
    -20px -20px 60px rgba(255, 255, 255, 0.8),
    inset 5px 5px 10px rgba(255, 255, 255, 0.5),
    inset -5px -5px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  font-weight: 600;
  text-align: center;
  min-width: 280px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
}

/* Different notification styles */
.chat-notification.error {
  background: rgba(245, 101, 101, 0.95);
  color: white;
  box-shadow: 
    20px 20px 60px rgba(245, 101, 101, 0.3),
    -20px -20px 60px rgba(255, 255, 255, 0.8),
    inset 5px 5px 10px rgba(255, 255, 255, 0.3),
    inset -5px -5px 10px rgba(0, 0, 0, 0.1);
}

.chat-notification.success {
  background: rgba(72, 187, 120, 0.95);
  color: white;
  box-shadow: 
    20px 20px 60px rgba(72, 187, 120, 0.3),
    -20px -20px 60px rgba(255, 255, 255, 0.8),
    inset 5px 5px 10px rgba(255, 255, 255, 0.3),
    inset -5px -5px 10px rgba(0, 0, 0, 0.1);
}

.chat-notification::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.chat-notification.error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

.chat-notification.success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E");
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Add top padding to main content to account for fixed header */
main.container {
  padding-top: 80px;
}

/* Header */
header {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 0;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-radius: 0 0 25px 25px;
  margin: 0 20px;
  position: relative;
  overflow: visible;
}

/* Progressive blur layers */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.3) 0%,
    rgba(26, 26, 46, 0.5) 30%,
    rgba(26, 26, 46, 0.7) 60%,
    rgba(26, 26, 46, 0.9) 100%
  );
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  z-index: -1;
}

header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  gap: 20px;
  overflow: visible;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e2e8f0;
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 15px;
  background: rgba(31, 31, 56, 0.8);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.05),
    inset 2px 2px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2);
}

.logo span {
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Enhanced Navigation Styles */
.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 50;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-link i {
    font-size: 1rem;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    overflow: visible;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-dropdown-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-dropdown-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-btn i:last-child {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(31, 31, 56, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    min-width: 180px;
    margin-top: 5px;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px;
}

.nav-dropdown-content a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.nav-dropdown-content a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* User Profile Section */
.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
}

.nav-profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(31, 31, 56, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    min-width: 150px;
    margin-top: 10px;
}

.nav-user:hover .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px;
}

.nav-user-dropdown a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.nav-user-dropdown a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Deleted Post Styling */
.deleted-post {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.7;
}

/* Main styles for Nova Giggles - Neumorphism & Glassmorphism Theme */

/* AI Image Generation Styles */
.ai-modal {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 10px;
  box-sizing: border-box;
}
.ai-modal.open { display: flex; }
.ai-modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
  transition: background 0.2s;
}
.ai-modal-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 0.95));
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  padding: 32px;
  max-width: 90vw;
  max-height: 90vh;
  width: 500px;
  overflow-y: auto;
  animation: fadeInScale 0.3s ease-out;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ai-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #bfc7e0;
  cursor: pointer;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.ai-modal-close:hover {
  background: rgba(102,126,234,0.10);
  color: #fff;
}
.ai-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.ai-modal-label {
  font-weight: 500;
  color: #e0e6ff;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.ai-modal-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  min-height: 70px;
  margin-bottom: 14px;
  background: rgba(40, 42, 60, 0.9);
  color: #ffffff;
  transition: border-color 0.3s, background 0.3s;
}
.ai-modal-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(50, 52, 70, 0.95);
  box-shadow: 0 0 0 2px rgba(102,126,234,0.2);
}
.ai-modal-generate-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 13px 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  margin-bottom: 10px;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
  width: 100%;
}
.ai-modal-generate-btn:hover {
  box-shadow: 0 6px 20px rgba(102,126,234,0.4);
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #7c8fff 0%, #8a5fb8 100%);
}
.ai-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8c5ff;
  font-weight: 500;
  font-size: 1.08rem;
  margin: 18px 0 10px 0;
  min-height: 36px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.ai-spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #b8c5ff;
  border-radius: 50%;
  margin-right: 10px;
  animation: ai-spin 1s linear infinite;
}
@keyframes ai-spin {
  to { transform: rotate(360deg); }
}
.ai-modal-image-preview {
  margin-top: 20px;
  text-align: center;
  min-height: 100px;
  max-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ai-modal-img {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}
.ai-modal-use-btn {
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
  color: #fff;
  border: none;
  padding: 13px 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 0;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  box-shadow: 0 4px 12px rgba(40,167,69,0.3);
  width: 100%;
  display: block;
}
.ai-modal-use-btn:hover {
  box-shadow: 0 6px 20px rgba(40,167,69,0.4);
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
}
.ai-modal-error {
  background: rgba(220, 53, 69, 0.2);
  color: #ff6b6b;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(220, 53, 69, 0.3);
  margin-top: 15px;
  text-align: center;
  font-size: 1rem;
  min-height: 0;
  backdrop-filter: blur(10px);
}
@media (max-width: 600px) {
  .ai-modal-card {
    max-width: 95vw;
    max-height: 95vh;
    width: 95vw;
    padding: 20px;
    margin: 10px;
  }
  
  .ai-modal-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
}

/* Landscape orientation handling */
@media (max-height: 600px) and (orientation: landscape) {
  .ai-modal-card {
    max-height: 85vh;
    padding: 20px;
    overflow-y: auto;
  }
  
  .ai-modal-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .ai-modal-textarea {
    max-height: 80px;
    min-height: 60px;
  }
  
  .ai-modal-image-preview {
    max-height: 200px;
  }
  
  .ai-modal-img {
    max-height: 180px;
  }
  
  .ai-edit-preview-img {
    max-height: 120px;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .ai-modal-card {
    max-width: 600px;
    width: 600px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .ai-modal-card {
    max-width: 98vw;
    width: 98vw;
    padding: 15px;
    margin: 5px;
  }
  
  .ai-modal-title {
    font-size: 1.1rem;
  }
  
  .ai-mode-tabs {
    flex-direction: column;
    gap: 1px;
  }
  
  .ai-tab-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}
/* --- End AI Modal Dark Theme Styles --- */

/* Announcement Banner */
.announcement-banner {
  position: relative;
  width: 100%;
  padding: 12px 0;
  color: white;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: slideInDown 0.5s ease-out;
  margin-bottom: 20px;
  border-radius: 50px;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.announcement-icon {
  font-size: 1.2rem;
  opacity: 0.9;
}

.announcement-text {
  font-size: 1rem;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.announcement-time {
  font-size: 0.85rem;
  opacity: 0.8;
  white-space: nowrap;
}

.announcement-time i {
  margin-right: 5px;
}

/* Responsive design for announcement */
@media (max-width: 768px) {
  .announcement-content {
    flex-direction: column;
    gap: 8px;
  }
  
  .announcement-text {
    font-size: 0.9rem;
  }
  
  .announcement-time {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .announcement-banner {
    padding: 10px 0;
  }
  
  .announcement-content {
    padding: 0 15px;
  }
  
  .announcement-text {
    font-size: 0.85rem;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Lexend', 'Segoe UI', Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  background-attachment: fixed;
  line-height: 1.6;
  color: #e2e8f0;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Chat notification for background changes */
.chat-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.95);
  color: #2d3748;
  border-radius: 20px;
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.1),
    -20px -20px 60px rgba(255, 255, 255, 0.8),
    inset 5px 5px 10px rgba(255, 255, 255, 0.5),
    inset -5px -5px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  font-weight: 600;
  text-align: center;
  min-width: 280px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
}

/* Different notification styles */
.chat-notification.error {
  background: rgba(245, 101, 101, 0.95);
  color: white;
  box-shadow: 
    20px 20px 60px rgba(245, 101, 101, 0.3),
    -20px -20px 60px rgba(255, 255, 255, 0.8),
    inset 5px 5px 10px rgba(255, 255, 255, 0.3),
    inset -5px -5px 10px rgba(0, 0, 0, 0.1);
}

.chat-notification.success {
  background: rgba(72, 187, 120, 0.95);
  color: white;
  box-shadow: 
    20px 20px 60px rgba(72, 187, 120, 0.3),
    -20px -20px 60px rgba(255, 255, 255, 0.8),
    inset 5px 5px 10px rgba(255, 255, 255, 0.3),
    inset -5px -5px 10px rgba(0, 0, 0, 0.1);
}

.chat-notification::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.chat-notification.error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

.chat-notification.success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E");
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Add top padding to main content to account for fixed header */
main.container {
  padding-top: 80px;
}

/* Header */
header {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 0;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-radius: 0 0 25px 25px;
  margin: 0 20px;
  position: relative;
  overflow: visible;
}

/* Progressive blur layers */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.3) 0%,
    rgba(26, 26, 46, 0.5) 30%,
    rgba(26, 26, 46, 0.7) 60%,
    rgba(26, 26, 46, 0.9) 100%
  );
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  z-index: -1;
}

header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  gap: 20px;
  overflow: visible;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e2e8f0;
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 15px;
  background: rgba(31, 31, 56, 0.8);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.05),
    inset 2px 2px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2);
}

.logo span {
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Enhanced Navigation Styles */
.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 50;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-link i {
    font-size: 1rem;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    overflow: visible;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-dropdown-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-dropdown-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-btn i:last-child {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(31, 31, 56, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    min-width: 180px;
    margin-top: 5px;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px;
}

.nav-dropdown-content a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.nav-dropdown-content a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* User Profile Section */
.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
}

.nav-profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(31, 31, 56, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    min-width: 150px;
    margin-top: 10px;
}

.nav-user:hover .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px;
}

.nav-user-dropdown a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.nav-user-dropdown a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Deleted Post Styling */
.deleted-post {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.7;
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
    .nav-links {
        gap: 10px;
    }
    
    .nav-link,
    .nav-dropdown-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .nav-link span,
    .nav-dropdown-btn span {
        display: none;
    }
    
    .nav-link i,
    .nav-dropdown-btn i:not(:last-child) {
        font-size: 1.1rem;
    }
    
    .nav-dropdown-content,
    .nav-user-dropdown {
        min-width: 140px;
    }
    
    .nav-dropdown-content a,
    .nav-user-dropdown a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .nav-profile-img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 8px;
    }
    
    .nav-link,
    .nav-dropdown-btn {
        padding: 6px 10px;
    }
    
    .nav-dropdown-content,
    .nav-user-dropdown {
        min-width: 120px;
    }
}

.hero {
  text-align: center;
  padding: 80px 0;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #e2e8f0;
  margin-top: 20px;
  margin-bottom: 40px;
  border-radius: 30px;
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.3),
    -20px -20px 60px rgba(255, 255, 255, 0.05),
    inset 5px 5px 10px rgba(255, 255, 255, 0.1),
    inset -5px -5px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  background: rgba(31, 31, 56, 0.9);
  color: #e2e8f0;
  padding: 16px 32px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.05),
    inset 2px 2px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.4),
    -12px -12px 24px rgba(255, 255, 255, 0.08),
    inset 2px 2px 4px rgba(255, 255, 255, 0.15),
    inset -2px -2px 4px rgba(0, 0, 0, 0.25);
  color: #667eea;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.3),
    -4px -4px 8px rgba(255, 255, 255, 0.05),
    inset 4px 4px 8px rgba(0, 0, 0, 0.3),
    inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-alt {
  background: rgba(102, 126, 234, 0.1);
  border: 2px solid rgba(102, 126, 234, 0.3);
  color: #667eea;
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.1),
    -6px -6px 12px rgba(255, 255, 255, 0.8),
    inset 2px 2px 4px rgba(255, 255, 255, 0.6),
    inset -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.btn-alt:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: #667eea;
  color: #4c51bf;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.15),
    -8px -8px 16px rgba(255, 255, 255, 0.9),
    inset 2px 2px 4px rgba(255, 255, 255, 0.7),
    inset -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.hero-sub-text {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.post-card {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 
    15px 15px 30px rgba(0, 0, 0, 0.3),
    -15px -15px 30px rgba(255, 255, 255, 0.05),
    inset 3px 3px 6px rgba(255, 255, 255, 0.1),
    inset -3px -3px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

/* Blurred background effect */
.post-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: 25px;
}

.blur-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.3) contrast(1.2);
  transform: scale(1.5);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.post-card:hover .blur-bg {
  filter: blur(25px) brightness(0.4) contrast(1.3);
  transform: scale(1.6);
  opacity: 0.7;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.post-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    20px 20px 40px rgba(0, 0, 0, 0.4),
    -20px -20px 40px rgba(255, 255, 255, 0.08),
    inset 3px 3px 6px rgba(255, 255, 255, 0.15),
    inset -3px -3px 6px rgba(0, 0, 0, 0.25);
}

.post-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.post-image img, .post-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.post-card:hover .post-image img,
.post-card:hover .post-image video {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
  transform: scale(1.02);
}

.post-content {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.post-content h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 600;
}

.post-content h3 a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-content h3 a:hover {
  color: #667eea;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.post-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  font-style: italic;
}

.post-content .date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Post author styles */
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-author {
  display: flex;
  align-items: center;
}

.post-author a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: all 0.3s;
}

.post-author a:hover {
  color: #a78bfa;
}

.post-author-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  border: 2px solid rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

/* Single post page */
.single-post {
  background: rgba(45, 45, 65, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-header {
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.post-header h1 {
  margin-bottom: 15px;
  color: white;
  font-weight: 700;
}

.post-media {
  margin: 20px 0;
  text-align: center;
}

.post-media img, .post-media video {
  max-width: 100%;
  max-height: 600px;
  border-radius: 5px;
}

.post-description {
  margin-bottom: 40px;
}

/* Comments section */
.comments-section {
  margin-top: 50px;
}

.comments-section h3 {
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.comment {
  background: rgba(30, 30, 45, 0.6);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.comment p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.comment .date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.comment-form {
  margin-top: 35px;
}

.comment-form textarea {
  width: 100%;
  padding: 15px;
  background: rgba(30, 30, 45, 0.3);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 12px;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 20px;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.comment-form textarea:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.25);
}

/* Comment author styles */
.comment-header {
  margin-bottom: 12px;
}

.comment-author {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: all 0.3s;
}

.comment-author:hover {
  color: #a78bfa;
}

.comment-author-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
  border: 2px solid rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.comment .date {
  margin-top: 8px;
}

/* Upload form */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(31, 31, 56, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 1rem;
  color: #e2e8f0;
  font-weight: 500;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.3),
    -6px -6px 12px rgba(255, 255, 255, 0.05),
    inset 2px 2px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.4),
    -8px -8px 16px rgba(255, 255, 255, 0.08),
    inset 2px 2px 4px rgba(255, 255, 255, 0.15),
    inset -2px -2px 4px rgba(0, 0, 0, 0.25),
    0 0 0 3px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.5;
}

/* Enhanced bio textarea styling */
.form-group textarea[name="bio"] {
  min-height: 180px;
  max-height: 500px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-group textarea[name="bio"]:focus {
  background: rgba(26, 26, 46, 0.98);
  border-color: #667eea;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.4),
    -8px -8px 16px rgba(255, 255, 255, 0.08),
    inset 2px 2px 4px rgba(255, 255, 255, 0.15),
    inset -2px -2px 4px rgba(0, 0, 0, 0.25),
    0 0 0 3px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.submit-btn {
  background: rgba(31, 31, 56, 0.9);
  color: #e2e8f0;
  border: none;
  padding: 16px 32px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.05),
    inset 2px 2px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.submit-btn:hover {
  transform: translateY(-3px);
  color: #667eea;
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.4),
    -12px -12px 24px rgba(255, 255, 255, 0.08),
    inset 2px 2px 4px rgba(255, 255, 255, 0.15),
    inset -2px -2px 4px rgba(0, 0, 0, 0.25);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(-1px);
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.3),
    -4px -4px 8px rgba(255, 255, 255, 0.05),
    inset 4px 4px 8px rgba(0, 0, 0, 0.3),
    inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
  background: rgba(26, 26, 46, 0.9);
  color: #e2e8f0;
  text-align: center;
  padding: 40px;
  margin-top: 80px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px 25px 0 0;
  margin: 80px 20px 0 20px;
  box-shadow: 
    0 -8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

footer p {
  margin: 0;
  font-size: 0.95rem;
}

footer a {
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(31, 31, 56, 0.8);
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.3),
    -2px -2px 4px rgba(255, 255, 255, 0.05);
}

footer a:hover {
  color: #8b9dc3;
  transform: translateY(-1px);
  box-shadow: 
    3px 3px 6px rgba(0, 0, 0, 0.4),
    -3px -3px 6px rgba(255, 255, 255, 0.08);
}

/* Authentication styles */
.auth-container {
  max-width: 600px;
  margin: 60px auto;
}

.auth-card {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 50px;
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.3),
    -20px -20px 60px rgba(255, 255, 255, 0.05),
    inset 5px 5px 10px rgba(255, 255, 255, 0.1),
    inset -5px -5px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  pointer-events: none;
}

.auth-card h1 {
  margin-bottom: 30px;
  text-align: center;
  color: #e2e8f0;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.auth-card h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.auth-form {
  margin-bottom: 20px;
}

.auth-form small {
  color: #a0aec0;
  font-size: 0.8rem;
}

.auth-links {
  text-align: center;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-links a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  padding: 8px 16px;
  border-radius: 15px;
  background: rgba(31, 31, 56, 0.8);
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.3),
    -4px -4px 8px rgba(255, 255, 255, 0.05),
    inset 2px 2px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2);
}

.auth-links a:hover {
  color: #8b9dc3;
  transform: translateY(-2px);
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.4),
    -6px -6px 12px rgba(255, 255, 255, 0.08),
    inset 2px 2px 4px rgba(255, 255, 255, 0.15),
    inset -2px -2px 4px rgba(0, 0, 0, 0.25);
}

.alert {
  padding: 16px;
  margin-bottom: 25px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.alert-danger {
  background-color: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fecaca;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

/* Profile styles */
.nav-profile-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  border: 2px solid rgba(180, 180, 180, 0.5);
  box-shadow: 0 0 10px rgba(150, 150, 150, 0.3);
}

.aura-badge {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  color: #667eea;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-left: 10px;
  box-shadow: 
    0 4px 15px rgba(102, 126, 234, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(102, 126, 234, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.aura-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.aura-badge:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(102, 126, 234, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(102, 126, 234, 0.6);
}

.aura-badge:hover::before {
  left: 100%;
}

.aura-badge i {
  margin-right: 4px;
  font-size: 0.9rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.profile-container {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.3),
    -20px -20px 60px rgba(255, 255, 255, 0.05),
    inset 5px 5px 10px rgba(255, 255, 255, 0.1),
    inset -5px -5px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.profile-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  pointer-events: none;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.profile-avatar {
  margin-right: 25px;
}

.profile-avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid rgba(200, 200, 200, 0.7);
  object-fit: cover;
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
}

.profile-info {
  flex: 1;
}

.profile-info h1 {
  margin-bottom: 8px;
  color: white;
  font-weight: 700;
}

.profile-info .username {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
  font-weight: 500;
}

.profile-info .bio {
  margin: 20px 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  padding: 15px;
  background: rgba(30, 30, 45, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-info .aura {
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  background: rgba(30, 30, 45, 0.4);
  display: inline-block;
  padding: 8px 16px;
  border-radius: 30px;
}

.profile-info .aura i {
  color: #a78bfa;
  margin-right: 5px;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.7);
}

.profile-actions {
  margin-top: 20px;
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 25px;
  gap: 5px;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
  border-radius: 10px 10px 0 0;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(79, 70, 229, 0.1);
}

.tab-btn.active {
  color: white;
  border-bottom: 3px solid #a78bfa;
  background: rgba(79, 70, 229, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.comment-card {
  background: rgba(30, 30, 45, 0.6);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 3px solid #a78bfa;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-post-info {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-post-info a {
  color: #a78bfa;
  text-decoration: none;
  transition: all 0.3s;
}

.comment-post-info a:hover {
  color: #4f46e5;
}

.profile-image-upload {
  text-align: center;
  margin-bottom: 40px;
  padding: 25px;
  background: rgba(30, 30, 45, 0.4);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.current-profile-image {
  margin-bottom: 20px;
}

.current-profile-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
}

.error-container {
  text-align: center;
  padding: 60px 0;
  background: rgba(45, 45, 65, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 40px 0;
}

.error-content h1 {
  font-size: 3rem;
  color: #a78bfa;
  margin-bottom: 25px;
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
  font-weight: 700;
}

.error-content p {
  margin-bottom: 30px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Aura notice styles */
.aura-notice {
  background: rgba(79, 70, 229, 0.15);
  border-left: 4px solid #a78bfa;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 12px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.aura-notice i {
  color: #a78bfa;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.7);
}

.current-aura {
  font-weight: 700;
  color: #a78bfa;
  padding: 2px 8px;
  background: rgba(79, 70, 229, 0.2);
  border-radius: 6px;
}

.login-to-comment {
  background: rgba(79, 70, 229, 0.15);
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.login-to-comment a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  padding: 5px 15px;
  background: rgba(79, 70, 229, 0.2);
  border-radius: 20px;
  display: inline-block;
  margin-top: 10px;
}

.login-to-comment a:hover {
  background: rgba(79, 70, 229, 0.4);
  transform: translateY(-2px);
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 50px 0;
  background: rgba(45, 45, 65, 0.3);
  border-radius: 16px;
  margin: 30px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-state p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Messages Styling */
.messages-container {
  max-width: 900px;
  margin: 40px auto;
  background: rgba(45, 45, 65, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.messages-title {
  margin-bottom: 30px;
  color: white;
  font-weight: 700;
  position: relative;
}

.messages-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #4f46e5, #a78bfa);
  border-radius: 3px;
}

.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.conversation-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: rgba(30, 30, 45, 0.6);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.conversation-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: rgba(30, 30, 45, 0.8);
  border-color: rgba(167, 139, 250, 0.3);
}

.conversation-avatar {
  position: relative;
  margin-right: 15px;
}

.conversation-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(167, 139, 250, 0.5);
}

.unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #a78bfa;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.conversation-info {
  flex: 1;
  overflow: hidden;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.conversation-header h3 {
  margin: 0;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.conversation-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.conversation-preview {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.you-prefix {
  color: rgba(167, 139, 250, 0.8);
  font-weight: 500;
}

/* Conversation view */
.conversation-container {
  max-width: 1000px;
  height: calc(100vh - 160px);
  margin: 30px auto;
  background: linear-gradient(135deg, rgba(45, 45, 65, 0.8) 0%, rgba(35, 35, 55, 0.9) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 30px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  background: linear-gradient(135deg, rgba(40, 40, 60, 0.9) 0%, rgba(30, 30, 50, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.conversation-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.back-button {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 10px 15px;
  border-radius: 20px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  position: relative;
  overflow: hidden;
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.2), transparent);
  transition: left 0.6s;
}

.back-button:hover {
  color: white;
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(167, 139, 250, 0.3);
}

.back-button:hover::before {
  left: 100%;
}

.conversation-user {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.conversation-user:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.conversation-user-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 3px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.conversation-user:hover .conversation-user-img {
  border-color: rgba(167, 139, 250, 0.5);
  transform: scale(1.05);
}

.conversation-user h2 {
  margin: 0;
  font-size: 1.3rem;
  color: white;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-customize {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(139, 92, 246, 0.3) 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #e0e7ff;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-customize::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.2), transparent);
  transition: left 0.6s;
}

.btn-customize:hover {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.3) 0%, rgba(139, 92, 246, 0.4) 100%);
  border-color: rgba(167, 139, 250, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.4);
}

.btn-customize:hover::before {
  left: 100%;
}

.btn-customize i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.btn-customize:hover i {
  transform: rotate(15deg);
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(135deg, rgba(25, 25, 40, 0.6) 0%, rgba(15, 15, 30, 0.8) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.messages-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.empty-conversation {
  text-align: center;
  padding: 60px 30px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  position: relative;
  animation: fadeInUp 0.8s ease-out;
}

.empty-conversation::before {
  content: '💬';
  font-size: 3rem;
  display: block;
  margin-bottom: 20px;
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

.empty-conversation p {
  font-size: 1.1rem;
  margin: 0;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  padding: 15px 25px;
  border-radius: 20px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

.message {
  max-width: 70%;
  padding: 15px 20px;
  border-radius: 22px;
  position: relative;
  animation: messageSlideIn 0.4s ease-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.message.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(167, 139, 250, 0.9) 100%);
  color: white;
  border-bottom-right-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  position: relative;
}

.message.sent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}

.message.received {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(45, 45, 65, 0.9) 0%, rgba(35, 35, 55, 0.9) 100%);
  color: rgba(255, 255, 255, 0.95);
  border-bottom-left-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.message.received::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}

.message-content {
  margin-bottom: 8px;
  word-break: break-word;
  line-height: 1.5;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.message-time {
  text-align: right;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.read-status {
  color: #4ade80;
  margin-left: 5px;
  animation: readPulse 1.5s ease-in-out infinite;
}

@keyframes readPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.message-form {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(135deg, rgba(40, 40, 60, 0.9) 0%, rgba(30, 30, 50, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.message-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.3), transparent);
}

.message-form textarea {
  flex: 1;
  background: linear-gradient(135deg, rgba(25, 25, 40, 0.8) 0%, rgba(15, 15, 30, 0.9) 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 25px;
  padding: 15px 20px;
  color: white;
  resize: none;
  max-height: 120px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

.message-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.message-form textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.6);
  background: linear-gradient(135deg, rgba(30, 30, 45, 0.9) 0%, rgba(20, 20, 35, 0.95) 100%);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
  transform: translateY(-1px);
}

.message-form button {
  background: linear-gradient(135deg, #4f46e5 0%, #a78bfa 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  margin-left: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.message-form button::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.6s;
}

.message-form button:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
  background: linear-gradient(135deg, #a78bfa 0%, #4f46e5 100%);
}

.message-form button:hover::before {
  left: 100%;
}

.message-form button i {
  transition: transform 0.3s ease;
}

.message-form button:hover i {
  transform: translateX(2px);
}

.message-form button.sending {
  animation: pulse 0.3s ease;
  background: linear-gradient(45deg, #a78bfa, #4f46e5);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); box-shadow: 0 0 15px rgba(167, 139, 250, 0.6); }
  100% { transform: scale(1); }
}

.message-form-hint {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 0;
  font-style: italic;
  background: linear-gradient(135deg, rgba(35, 35, 55, 0.8) 0%, rgba(25, 25, 45, 0.9) 100%);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

.message-form-hint::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.3), transparent);
}

/* Modal for customization */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(30, 30, 45, 0.95);
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.close:hover {
  color: white;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 25px;
  color: white;
}

.background-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: center;
}

.background-option {
  text-align: center;
}

.background-option input[type="radio"] {
  display: none;
}

.background-option label {
  cursor: pointer;
}

.background-preview {
  width: 180px;
  height: 120px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  transition: all 0.3s;
  border: 3px solid transparent;
}

input[type="radio"]:checked + label .background-preview {
  border-color: #a78bfa;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.6);
}

.default-bg {
  background: linear-gradient(45deg, rgba(30, 30, 45, 0.7), rgba(45, 45, 65, 0.7));
}

.custom-bg-upload {
  background: rgba(45, 45, 65, 0.5);
  background-size: cover;
  background-position: center;
  position: relative;
}

.custom-bg-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.modal-actions {
  margin-top: 20px;
  text-align: center;
}

/* Post Actions */
.post-actions {
  margin: 20px 0;
  padding: 20px;
  background: rgba(31, 31, 56, 0.6);
  border-radius: 20px;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.2),
    -8px -8px 16px rgba(255, 255, 255, 0.05),
    inset 2px 2px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(45, 45, 75, 0.8);
  border: none;
  border-radius: 15px;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.2),
    -4px -4px 8px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.1),
    inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.3),
    -6px -6px 12px rgba(255, 255, 255, 0.08),
    inset 1px 1px 2px rgba(255, 255, 255, 0.15),
    inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.action-btn.liked {
  background: rgba(231, 76, 60, 0.8);
  color: white;
}

.action-btn.liked i {
  color: #e74c3c;
  animation: heartBeat 0.6s ease-in-out;
}

.action-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.action-btn i {
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.liked-by {
  color: #a0aec0;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Post Stats (for post cards) */
.post-stats {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a0aec0;
  font-size: 0.9rem;
  font-weight: 500;
}

.stat i {
  font-size: 1rem;
  opacity: 0.8;
}

/* Comment Actions */
.comment-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-left: auto;
}

.comment-like-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(45, 45, 75, 0.6);
  border: none;
  border-radius: 10px;
  color: #a0aec0;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.2),
    -2px -2px 4px rgba(255, 255, 255, 0.05);
}

.comment-like-btn:hover {
  background: rgba(45, 45, 75, 0.8);
  color: #e2e8f0;
  transform: translateY(-1px);
}

.comment-like-btn.liked {
  background: rgba(231, 76, 60, 0.8);
  color: white;
}

.comment-like-btn.liked i {
  color: #e74c3c;
}

.reply-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(45, 45, 75, 0.6);
  border: none;
  border-radius: 10px;
  color: #a0aec0;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.2),
    -2px -2px 4px rgba(255, 255, 255, 0.05);
}

.reply-btn:hover {
  background: rgba(45, 45, 75, 0.8);
  color: #e2e8f0;
  transform: translateY(-1px);
}

/* Reply Form */
.reply-form {
  margin: 15px 0;
  padding: 15px;
  background: rgba(31, 31, 56, 0.4);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  background: rgba(45, 45, 75, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.9rem;
  resize: vertical;
  transition: all 0.3s ease;
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.2),
    inset -2px -2px 4px rgba(255, 255, 255, 0.05);
}

.reply-form textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.2),
    inset -2px -2px 4px rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(102, 126, 234, 0.2);
}

.reply-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.reply-form .submit-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.cancel-reply-btn {
  padding: 8px 16px;
  background: rgba(108, 117, 125, 0.8);
  border: none;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-reply-btn:hover {
  background: rgba(108, 117, 125, 1);
  transform: translateY(-1px);
}

/* Replies */
.replies {
  margin-left: 30px;
  margin-top: 15px;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.reply {
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(31, 31, 56, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.reply .comment-header {
  margin-bottom: 8px;
}

.reply .comment-author-img {
  width: 24px;
  height: 24px;
}

/* Animations */
@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1.2); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .action-buttons {
    gap: 15px;
  }
  
  .action-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .post-stats {
    gap: 15px;
  }
  
  .comment-actions {
    gap: 10px;
  }
  
  .replies {
    margin-left: 20px;
    padding-left: 15px;
  }
}

/* Aura Info Page - Modern Redesign */
.aura-info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow-x: hidden;
}

/* Hero Section */
.aura-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-auras {
  position: absolute;
  width: 100%;
  height: 100%;
}

.aura-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
}

.aura-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.aura-particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 1s;
  animation-duration: 7s;
}

.aura-particle:nth-child(3) {
  top: 80%;
  left: 20%;
  animation-delay: 2s;
  animation-duration: 9s;
}

.aura-particle:nth-child(4) {
  top: 30%;
  left: 70%;
  animation-delay: 3s;
  animation-duration: 6s;
}

.aura-particle:nth-child(5) {
  top: 70%;
  left: 60%;
  animation-delay: 4s;
  animation-duration: 8s;
}

.aura-particle:nth-child(6) {
  top: 40%;
  left: 30%;
  animation-delay: 5s;
  animation-duration: 7s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-title h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #a0aec0;
  margin-bottom: 40px;
  font-weight: 300;
}

.current-aura-display {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.aura-circle {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 60px rgba(102, 126, 234, 0.4),
    0 0 120px rgba(118, 75, 162, 0.2),
    inset 0 0 60px rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.aura-circle:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 80px rgba(102, 126, 234, 0.6),
    0 0 160px rgba(118, 75, 162, 0.3),
    inset 0 0 80px rgba(255, 255, 255, 0.15);
}

.aura-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  opacity: 0.3;
  filter: blur(20px);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.aura-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 5px;
}

.aura-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.aura-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header h2 i {
  margin-right: 15px;
  color: #667eea;
}

.section-header p {
  font-size: 1.1rem;
  color: #a0aec0;
  font-weight: 300;
}

/* Milestones Section */
.milestone-section {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.milestone-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: rgba(45, 45, 75, 0.3);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.milestone-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(102, 126, 234, 0.3);
}

.milestone-item.achieved {
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.2), rgba(56, 178, 172, 0.2));
  border-color: rgba(72, 187, 120, 0.4);
  box-shadow: 0 5px 20px rgba(72, 187, 120, 0.2);
}

.milestone-icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(45, 45, 75, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.milestone-item.achieved .milestone-icon {
  background: linear-gradient(135deg, #48bb78, #38b2ac);
  color: white;
  box-shadow: 0 0 20px rgba(72, 187, 120, 0.4);
}

.achievement-sparkle {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #ffd700;
  border-radius: 50%;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
}

.milestone-info {
  flex: 1;
}

.milestone-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 5px;
}

.milestone-bonus {
  font-size: 0.9rem;
  color: #48bb78;
  font-weight: 500;
}

/* Next Milestone Progress */
.next-milestone {
  max-width: 600px;
  margin: 0 auto;
}

.milestone-progress-card {
  background: rgba(45, 45, 75, 0.4);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.milestone-progress-card h3 {
  font-size: 1.5rem;
  color: #e2e8f0;
  margin-bottom: 20px;
  text-align: center;
}

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

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(45, 45, 75, 0.8);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 6px;
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.progress-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #a0aec0;
}

.current-progress {
  color: #667eea;
  font-weight: 600;
}

.progress-separator {
  color: #718096;
}

.total-progress {
  color: #e2e8f0;
  font-weight: 600;
}

.progress-unit {
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Maxed Out State */
.maxed-out {
  text-align: center;
  padding: 40px;
}

.maxed-out-content {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.1));
  border-radius: 20px;
  padding: 40px;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.maxed-out-icon {
  font-size: 4rem;
  color: #ffd700;
  margin-bottom: 20px;
  animation: crownGlow 2s ease-in-out infinite;
}

@keyframes crownGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
  }
}

.maxed-out h3 {
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 15px;
}

.maxed-out p {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.maxed-out-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 60%;
  right: 20%;
  animation-delay: 1s;
}

.sparkle:nth-child(3) {
  bottom: 20%;
  left: 50%;
  animation-delay: 2s;
}

@keyframes sparkleFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 0.8;
  }
}

/* Earning Section */
.earning-section {
  padding: 60px 20px;
}

.earning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.earning-item {
  background: rgba(45, 45, 75, 0.3);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.earning-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.earning-item:hover::before {
  left: 100%;
}

.earning-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(102, 126, 234, 0.3);
}

.earning-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: white;
}

.icon-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  opacity: 0.3;
  filter: blur(10px);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.earning-info h3 {
  font-size: 1.4rem;
  color: #e2e8f0;
  margin-bottom: 10px;
  font-weight: 600;
}

.earning-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: #48bb78;
  margin-bottom: 8px;
}

.earning-desc {
  font-size: 0.95rem;
  color: #a0aec0;
  line-height: 1.4;
}

/* Statistics Section */
.stats-section {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(45, 45, 75, 0.3);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(102, 126, 234, 0.3);
}

.stat-icon {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: white;
}

.stat-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  opacity: 0.3;
  filter: blur(10px);
  animation: statGlow 3s ease-in-out infinite;
}

@keyframes statGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.stat-info h3 {
  font-size: 1.3rem;
  color: #e2e8f0;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-info p {
  font-size: 0.9rem;
  color: #a0aec0;
  margin-bottom: 15px;
  line-height: 1.4;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #48bb78;
  background: rgba(72, 187, 120, 0.1);
  padding: 8px 16px;
  border-radius: 10px;
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .aura-info-container {
    padding: 0;
  }
  
  .aura-hero {
    min-height: 50vh;
    padding: 40px 20px;
  }
  
  .hero-title h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .aura-circle {
    width: 200px;
    height: 200px;
  }
  
  .aura-number {
    font-size: 2.8rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .milestone-progress {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .earning-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .milestone-item {
    padding: 20px;
  }
  
  .earning-item {
    padding: 25px;
  }
  
  .stat-card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .hero-title h1 {
    font-size: 2rem;
  }
  
  .aura-circle {
    width: 180px;
    height: 180px;
  }
  
  .aura-number {
    font-size: 2.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .milestone-progress-card {
    padding: 20px;
  }
  
  .maxed-out-content {
    padding: 30px 20px;
  }
}

/* Aura Wheel Styles */
.aura-randomizer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.randomizer-header {
  text-align: center;
  margin-bottom: 30px;
}

.wheel-header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.current-aura-display {
  display: flex;
  justify-content: center;
}

.aura-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 25px;
  color: white;
  font-weight: 600;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.1);
}

.aura-badge i {
  font-size: 1.5rem;
}

.aura-number {
  font-size: 1.8rem;
  font-weight: 700;
}

.wheel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.wheel-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wheel-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.3),
    -20px -20px 60px rgba(255, 255, 255, 0.1);
}

.wheel-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.segment-text {
  position: absolute;
  top: 20%;
  left: 50%;
  transform-origin: 0 0;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #e74c3c;
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.1);
  z-index: 5;
}

.spin-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.spin-button:hover {
  transform: scale(1.1);
}

.spin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spin-button i {
  font-size: 1.5rem;
}

.spin-button span {
  font-size: 0.8rem;
  font-weight: 600;
}

.betting-section {
  display: flex;
  align-items: center;
}

.betting-card {
  width: 100%;
  background: rgba(31, 31, 56, 0.6);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.2),
    -8px -8px 16px rgba(255, 255, 255, 0.05),
    inset 2px 2px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.betting-card h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: #e2e8f0;
  text-align: center;
}

.bet-amount-controls {
  margin-bottom: 25px;
}

.bet-amount-controls label {
  display: block;
  margin-bottom: 10px;
  color: #e2e8f0;
  font-weight: 500;
}

.bet-input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bet-input-group input {
  width: 100%;
  padding: 15px;
  background: rgba(45, 45, 75, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.bet-input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.bet-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bet-btn {
  padding: 12px;
  background: rgba(45, 45, 75, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bet-btn:hover {
  background: rgba(102, 126, 234, 0.8);
  transform: translateY(-2px);
}

.bet-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(45, 45, 75, 0.4);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-label {
  font-size: 0.9rem;
  color: #a0aec0;
  margin-bottom: 5px;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.wheel-odds h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #e2e8f0;
  text-align: center;
}

.odds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.odds-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.odds-item.lose {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.odds-item.lose-half {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.odds-item.break-even {
  background: rgba(149, 165, 166, 0.2);
  color: #95a5a6;
  border: 1px solid rgba(149, 165, 166, 0.3);
}

.odds-item.win {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.odds-item.win-big {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.odds-item.jackpot {
  background: rgba(155, 89, 182, 0.2);
  color: #9b59b6;
  border: 1px solid rgba(155, 89, 182, 0.3);
}

.help-section {
  margin-top: 30px;
}

.help-card {
  background: rgba(31, 31, 56, 0.6);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.2),
    -8px -8px 16px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.help-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #e2e8f0;
}

.help-card ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

.help-card li {
  margin-bottom: 10px;
  color: #e2e8f0;
}

.responsible-gaming {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.responsible-gaming h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #e2e8f0;
}

.responsible-gaming ul {
  padding-left: 20px;
}

.responsible-gaming li {
  margin-bottom: 8px;
  color: #a0aec0;
}

/* Warning Modal Styles */
.warning-modal {
  max-width: 500px;
  background: rgba(31, 31, 56, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 3px solid #f39c12;
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.warning-header i {
  font-size: 2.2rem;
  color: #f39c12;
  background: rgba(243, 156, 18, 0.1);
  padding: 10px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-header h2 {
  margin: 0;
  color: #f39c12;
  font-size: 1.8rem;
  font-weight: 700;
}

.warning-body {
  margin-bottom: 25px;
}

.warning-body p {
  margin-bottom: 15px;
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.warning-body ul {
  margin-bottom: 20px;
  padding-left: 25px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 20px 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.warning-body li {
  margin-bottom: 12px;
  color: #a0aec0;
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
}

.warning-body li:last-child {
  margin-bottom: 0;
}

.warning-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(243, 156, 18, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(243, 156, 18, 0.2);
}

.warning-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #f39c12;
  cursor: pointer;
}

.warning-checkbox label {
  color: #e2e8f0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
}

.warning-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding-top: 10px;
}

.btn-warning {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(45deg, #e67e22, #f39c12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-secondary {
  background: rgba(108, 117, 125, 0.8);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(108, 117, 125, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Result Modal Styles - REMOVED CONFLICTING RULE */

.result-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: #f39c12;
}

.result-header i {
  font-size: 2rem;
}

.result-header h2 {
  margin: 0;
  color: #e2e8f0;
}

.result-body {
  text-align: center;
  margin-bottom: 25px;
}

.result-text {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.result-details {
  margin-bottom: 20px;
}

.result-details p {
  margin-bottom: 8px;
  color: #e2e8f0;
}

.new-balance {
  padding: 15px;
  background: rgba(45, 45, 75, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.new-balance p {
  margin: 0;
  color: #e2e8f0;
  font-weight: 600;
}

.result-actions {
  text-align: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.result-actions .btn-pay-now,
.result-actions .btn-pay-later {
  flex: 1;
  max-width: 200px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.result-actions .btn-pay-now {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.result-actions .btn-pay-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.result-actions .btn-pay-later {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  color: white;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.result-actions .btn-pay-later:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Responsive adjustments for Aura wheel */
@media (max-width: 768px) {
  .wheel-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .wheel-container {
    width: 300px;
    height: 300px;
  }
  
  .wheel-center {
    width: 60px;
    height: 60px;
  }
  
  .spin-button i {
    font-size: 1.2rem;
  }
  
  .spin-button span {
    font-size: 0.7rem;
  }
  
  .bet-info {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .odds-grid {
    grid-template-columns: 1fr;
  }
  
  .warning-actions {
    flex-direction: column;
  }
}

/* Floating Search Button Styles */
.floating-search-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-search-btn {
    background: rgba(102, 126, 234, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.floating-search-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-search-btn:hover::before {
    left: 100%;
}

.floating-search-btn:active {
    transform: scale(0.95);
}

/* Search Modal Styles */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    background: rgba(31, 31, 56, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    max-width: 500px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.search-modal.active .search-modal-content {
    transform: scale(1) translateY(0);
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.search-modal-header h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-modal-close {
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-modal-close:hover {
    background: var(--secondary-hover);
    transform: scale(1.1);
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    border: none;
    background: var(--card-bg);
    padding: 15px 20px;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
    border-radius: 15px;
    box-shadow: var(--neumorphic-shadow);
    border: 1px solid var(--border-color);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.2),
        var(--neumorphic-shadow);
}

.search-submit-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: var(--neumorphic-shadow);
}

.search-submit-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.search-tips {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.search-tips p {
    color: var(--text-color);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.search-tips ul {
    color: var(--text-muted);
    margin: 0;
    padding-left: 20px;
}

.search-tips li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-color);
    outline: none;
    min-width: 200px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neumorphic-shadow);
    font-size: 0.9rem;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.search-close-btn {
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neumorphic-shadow);
    font-size: 0.9rem;
}

.search-close-btn:hover {
    background: var(--secondary-hover);
    transform: scale(1.05);
}

/* Search Results Container */
.search-results-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.search-results-modal {
    background: rgba(31, 31, 56, 0.95);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.3s ease;
}

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

.search-results-header {
    background: var(--card-bg);
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.search-results-header h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-results-header h1 i {
    background: var(--primary-color);
    color: white;
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.search-results-header p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translateY(-50%);
}

.close-search-results {
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: var(--neumorphic-shadow);
}

.close-search-results:hover {
    background: var(--secondary-hover);
    transform: scale(1.1);
}

.search-results-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.search-section {
    margin-bottom: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--neumorphic-shadow);
    border: 1px solid var(--border-color);
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.search-section h2 i {
    font-size: 1.2rem;
    background: var(--primary-color);
    color: white;
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Post Cards */
.search-post-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--neumorphic-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--neumorphic-shadow-hover);
}

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

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.post-info h3 {
    color: var(--text-color);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-title {
    color: var(--text-color);
    margin: 15px 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-description {
    color: var(--text-muted);
    margin: 10px 0 15px 0;
    line-height: 1.6;
    font-size: 1rem;
}

.post-media {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-image, .post-video {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.search-post-card:hover .post-image,
.search-post-card:hover .post-video {
    transform: scale(1.02);
}

.post-stats {
    display: flex;
    gap: 25px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.post-stats i {
    color: var(--primary-color);
    font-size: 1rem;
}

.view-post-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--neumorphic-shadow);
    border: none;
    cursor: pointer;
}

.view-post-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Search User Cards */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.search-user-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--neumorphic-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-user-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--neumorphic-shadow-hover);
}

.search-user-card:hover::before {
    opacity: 1;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.user-info {
    flex: 1;
}

.user-info h3 {
    color: var(--text-color);
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.username {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.view-profile-btn {
    background: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--neumorphic-shadow);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.view-profile-btn:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* Search Comment Cards */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-comment-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--neumorphic-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-comment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-comment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--neumorphic-shadow-hover);
}

.search-comment-card:hover::before {
    opacity: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.comment-info h4 {
    color: var(--text-color);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.comment-content {
    color: var(--text-color);
    line-height: 1.6;
    margin: 15px 0;
    font-size: 1rem;
    padding: 15px;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comment-context {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 15px 0;
    padding: 12px 16px;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.comment-context strong {
    color: var(--primary-color);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--glass-bg);
    border-radius: 15px;
    box-shadow: var(--neumorphic-shadow);
    border: 1px solid var(--border-color);
}

.no-results i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-results h2 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .floating-search-container {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-search-btn {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }
    
    .search-modal-content {
        margin: 20px;
        padding: 25px;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-submit-btn {
        width: 100%;
    }
    
    /* Search Results Mobile */
    .search-results-container {
        padding: 10px;
    }
    
    .search-results-modal {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .search-results-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .search-results-header h1 {
        font-size: 1.5rem;
    }
    
    .search-results-header p {
        position: static;
        transform: none;
    }
    
    .search-results-content {
        padding: 20px;
    }
    
    .search-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .search-section h2 {
        font-size: 1.3rem;
    }
    
    .search-section h2 i {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-user-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .view-profile-btn {
        margin-top: 15px;
        width: 100%;
    }
    
    .search-post-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .post-header {
        gap: 12px;
    }
    
    .post-avatar {
        width: 45px;
        height: 45px;
    }
    
    .post-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-stats span {
        justify-content: center;
    }
    
    .search-comment-card {
        padding: 20px;
    }
    
    .comment-header {
        gap: 12px;
    }
    
    .comment-avatar {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: 15px;
    }
    
    .search-post-card,
    .search-user-card,
    .search-comment-card {
        padding: 15px;
    }
    
    .post-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* Login Bonus Notification */
.login-bonus-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    max-width: 350px;
    animation: slideInRight 0.5s ease;
    border-left: 4px solid var(--primary-color);
}

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

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.bonus-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.bonus-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

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

.bonus-info {
    flex: 1;
}

.bonus-info h3 {
    color: var(--text-color);
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.bonus-info p {
    color: var(--text-muted);
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bonus-points {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.points-earned {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.streak-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.tax-info {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.tax-info p {
    color: #e2e8f0;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.tax-info p:last-child {
    margin-bottom: 0;
}

.tax-choices {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-pay-now, .btn-pay-later {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-pay-now {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-pay-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-pay-later {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-pay-later:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.close-bonus {
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.close-bonus:hover {
    background: var(--secondary-hover);
    transform: scale(1.1);
}

/* Login Bonus Mobile */
@media (max-width: 768px) {
    .login-bonus-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .bonus-content {
        gap: 12px;
    }
    
    .bonus-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .bonus-info h3 {
        font-size: 1.1rem;
    }
    
    .bonus-info p {
        font-size: 0.9rem;
    }
}

/* Enhanced Post Management Styles */
.manage-posts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Hero Section */
.manage-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
}

.manage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-icon i {
    font-size: 2.5rem;
    color: white;
}

.hero-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 400;
}

.hero-actions {
    position: relative;
    z-index: 2;
}

.btn-create-post {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-create-post:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Stats Dashboard */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card.primary .stat-icon { color: var(--primary-color); }
.stat-card.success .stat-icon { color: #27ae60; }
.stat-card.warning .stat-icon { color: #f39c12; }
.stat-card.info .stat-icon { color: #3498db; }

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.stat-content {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-glow {
    opacity: 1;
}

/* Filters Section */
.filters-section {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--glass-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.media-container {
    width: 100%;
    height: 100%;
}

.media-container img,
.media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .media-container img,
.post-card:hover .media-container video {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.post-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-status-badge.public {
    background: rgba(39, 174, 96, 0.9);
}

.post-status-badge.private {
    background: rgba(243, 156, 18, 0.9);
}

.post-actions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-actions-overlay {
    opacity: 1;
}

.action-btn {
    background: var(--glass-bg);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.edit-btn {
    background: var(--primary-color);
}

.edit-btn:hover {
    background: var(--primary-hover);
}

.visibility-btn {
    background: var(--secondary-color);
}

.visibility-btn:hover {
    background: var(--secondary-hover);
}

.delete-btn {
    background: #e74c3c;
}

.delete-btn:hover {
    background: #c0392b;
}

.post-content {
    padding: 25px;
}

.post-title {
    color: var(--text-color);
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-description {
    color: var(--text-muted);
    margin: 0 0 20px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.more {
    background: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--glass-bg);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.3);
}

.empty-icon i {
    font-size: 3rem;
    color: white;
}

.empty-state h2 {
    color: var(--text-color);
    font-size: 2rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.btn-create-first {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

.btn-create-first:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.4);
}

/* Enhanced Modal Styles */
.enhanced-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.enhanced-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-container {
    background: var(--glass-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: modalSlideIn 0.3s ease;
    position: relative;
    z-index: 2;
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header.danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-title i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.modal-header.danger .modal-title i {
    color: white;
}

.modal-title h2 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header.danger .modal-title h2 {
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--secondary-color);
    color: white;
}

.modal-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1rem;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group small {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 5px;
}

.modal-body {
    padding: 30px;
}

.warning-content {
    text-align: center;
}

.warning-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.3);
}

.warning-icon i {
    font-size: 2.5rem;
    color: white;
}

.warning-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.warning-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 25px 30px;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #27ae60;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i {
    color: #27ae60;
}

.notification.error i {
    color: #e74c3c;
}

.notification-text {
    color: var(--text-color);
    font-weight: 500;
}

/* Animations */
.fade-in {
    animation: fadeInUp 0.5s ease;
}

.fade-out {
    animation: fadeOutDown 0.3s ease forwards;
}

.visibility-changed {
    animation: pulse 0.5s ease;
}

.edit-success {
    animation: successPulse 0.5s ease;
}

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

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

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

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .manage-hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .manage-posts-container {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-dashboard {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meta-stats {
        gap: 15px;
    }
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-secondary {
    background: var(--text-muted);
    color: white;
}

.btn-secondary:hover {
    background: #6c757d;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Delete Modal Specific */
.delete-modal .modal-body {
    padding: 25px;
    text-align: center;
}

.warning-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.delete-modal p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h2 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .manage-posts-container {
        padding: 15px;
    }
    
    .manage-header h1 {
        font-size: 2rem;
    }
    
    .manage-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .posts-management-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-actions {
        gap: 10px;
    }
    
    .action-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Billing Page Styles */
.billing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.billing-header {
  text-align: center;
  margin-bottom: 40px;
}

.billing-header h1 {
  color: #e2e8f0;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.billing-header h1 i {
  color: #f39c12;
  margin-right: 15px;
}

.billing-header p {
  color: #a0aec0;
  font-size: 1.1rem;
}

.billing-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.billing-stats .stat-card {
  background: rgba(31, 31, 56, 0.9);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.billing-stats .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.4),
    -12px -12px 24px rgba(255, 255, 255, 0.08);
}

.billing-stats .stat-icon {
  font-size: 2.5rem;
  color: #f39c12;
  margin-bottom: 15px;
}

.billing-stats .stat-info h3 {
  color: #e2e8f0;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.billing-stats .stat-number {
  color: #f39c12;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.billing-stats .stat-label {
  color: #a0aec0;
  font-size: 0.9rem;
}

.taxes-section {
  margin-bottom: 40px;
}

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

.section-header h2 {
  color: #e2e8f0;
  font-size: 1.8rem;
  font-weight: 600;
}

.section-header h2 i {
  color: #f39c12;
  margin-right: 10px;
}

.btn-pay-all {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-pay-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.taxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.tax-card {
  background: rgba(31, 31, 56, 0.9);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.tax-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.4),
    -12px -12px 24px rgba(255, 255, 255, 0.08);
}

.tax-card.paid {
  border-color: rgba(46, 204, 113, 0.3);
  background: rgba(31, 31, 56, 0.7);
}

.tax-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tax-source {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-weight: 600;
}

.tax-source i {
  color: #f39c12;
  font-size: 1.2rem;
}

.tax-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
}

.tax-status.pending {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
}

.tax-status.overdue {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.tax-status.paid {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.tax-details {
  margin-bottom: 20px;
}

.tax-amount {
  text-align: center;
  margin-bottom: 15px;
}

.tax-amount .amount {
  color: #f39c12;
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.tax-amount .currency {
  color: #a0aec0;
  font-size: 0.9rem;
}

.tax-info p {
  color: #a0aec0;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.tax-info .late-fee {
  color: #e74c3c;
  font-weight: 600;
}

.tax-actions {
  text-align: center;
}

.btn-pay-tax {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-pay-tax:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.empty-taxes {
  text-align: center;
  padding: 60px 20px;
  background: rgba(31, 31, 56, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.empty-taxes .empty-icon {
  font-size: 4rem;
  color: #2ecc71;
  margin-bottom: 20px;
}

.empty-taxes h2 {
  color: #e2e8f0;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.empty-taxes p {
  color: #a0aec0;
  font-size: 1.1rem;
}

.tax-info-section {
  margin-top: 40px;
}

.info-card {
  background: rgba(31, 31, 56, 0.9);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.info-card h3 {
  color: #e2e8f0;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card li {
  color: #a0aec0;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.info-card li::before {
  content: '•';
  color: #f39c12;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 10000;
  animation: slideInRight 0.3s ease;
}

.notification.success {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.notification.error {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
}

@media (max-width: 768px) {
  .billing-container {
    padding: 15px;
  }
  
  .billing-header h1 {
    font-size: 2rem;
  }
  
  .billing-stats {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .taxes-grid {
    grid-template-columns: 1fr;
  }
  
  .tax-card {
    padding: 20px;
  }
}

/* Randomizer Styles */
.randomizer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.randomizer-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.randomizer-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.randomizer-display {
  width: 300px;
  height: 400px;
  perspective: 1000px;
}

.randomizer-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.randomizer-card.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 10px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-front {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.card-front i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

.card-front span {
  font-size: 1.2rem;
  font-weight: 600;
}

.card-back {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  transform: rotateY(180deg);
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.result-icon i {
  color: white;
}

.display-result-text {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.randomize-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 10px 30px rgba(102, 126, 234, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.2);
}

.randomize-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(102, 126, 234, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.3);
}

.randomize-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.randomize-button i {
  font-size: 2rem;
}

.randomize-button span {
  font-size: 1rem;
}

.randomizer-odds h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #e2e8f0;
  text-align: center;
}

@media (max-width: 768px) {
  .randomizer-content {
    grid-template-columns: 1fr;
  }
  
  .randomizer-display {
    width: 250px;
    height: 350px;
  }
  
  .randomize-button {
    padding: 15px 30px;
  }
  
  .randomize-button i {
    font-size: 1.5rem;
  }
  
  .randomize-button span {
    font-size: 0.9rem;
  }
}

/* Groups Styles */
.groups-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.groups-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(31, 31, 56, 0.6);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.groups-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #e2e8f0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.groups-header h1 i {
  color: #667eea;
  margin-right: 15px;
}

.groups-header p {
  font-size: 1.1rem;
  color: #a0aec0;
  margin-bottom: 25px;
}

.btn-create-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-create-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  color: white;
}

.search-groups-section {
  margin-bottom: 40px;
}

.search-groups-form {
  max-width: 500px;
  margin: 0 auto;
}

.search-groups-input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(45, 45, 75, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-groups-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-groups-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #667eea;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 10px;
}

.search-input-group {
  position: relative;
}

.groups-section {
  margin-bottom: 50px;
}

.groups-section h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.groups-section h2 i {
  color: #667eea;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.group-card {
  background: rgba(31, 31, 56, 0.6);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.group-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.group-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.group-card.my-group {
  border-left: 4px solid #2ecc71;
}

.group-card.public-group {
  border-left: 4px solid #667eea;
}

.group-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.group-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.group-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.group-info {
  flex: 1;
}

.group-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.group-info h3 a {
  color: inherit;
  text-decoration: none;
}

.group-info h3 a:hover {
  color: #667eea;
}

.group-description {
  color: #a0aec0;
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.group-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #a0aec0;
}

.group-meta i {
  color: #667eea;
}

.group-privacy {
  color: #f39c12 !important;
}

.group-creator {
  margin-top: 10px;
}

.group-creator a {
  color: #667eea;
  text-decoration: none;
}

.group-creator a:hover {
  text-decoration: underline;
}

.group-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-view-group,
.btn-join-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-view-group {
  background: rgba(45, 45, 75, 0.8);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-view-group:hover {
  background: rgba(102, 126, 234, 0.8);
  color: white;
  transform: translateY(-2px);
}

.btn-join-group {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
}

.btn-join-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

.group-invite-only {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.empty-groups {
  text-align: center;
  padding: 60px 20px;
  background: rgba(31, 31, 56, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.empty-icon {
  font-size: 4rem;
  color: #667eea;
  margin-bottom: 20px;
}

.empty-groups h3 {
  color: #e2e8f0;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.empty-groups p {
  color: #a0aec0;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.btn-discover-groups {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-discover-groups:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  color: white;
}

@media (max-width: 768px) {
  .groups-container {
    padding: 15px;
  }
  
  .groups-header h1 {
    font-size: 2rem;
  }
  
  .groups-grid {
    grid-template-columns: 1fr;
  }
  
  .group-header {
    flex-direction: column;
    text-align: center;
  }
  
  .group-image {
    align-self: center;
  }
  
  .group-actions {
    justify-content: center;
  }
}

/* Group Creation Styles */
.create-group-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.create-group-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(31, 31, 56, 0.6);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.create-group-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #e2e8f0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.create-group-header h1 i {
  color: #667eea;
  margin-right: 15px;
}

.create-group-header p {
  font-size: 1.1rem;
  color: #a0aec0;
}

.create-group-form-container {
  background: rgba(31, 31, 56, 0.6);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section {
  margin-bottom: 40px;
}

.form-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section h3 i {
  color: #667eea;
}

.image-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.image-upload-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-upload-group label {
  font-weight: 600;
  color: #e2e8f0;
}

.image-upload-area {
  position: relative;
  width: 100%;
  height: 200px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.image-upload-area:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.image-upload-area input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #a0aec0;
  text-align: center;
}

.upload-placeholder i {
  font-size: 2rem;
  color: #667eea;
}

.upload-placeholder span {
  font-weight: 600;
}

.upload-placeholder small {
  font-size: 0.8rem;
  opacity: 0.7;
}

.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #e2e8f0;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: rgba(45, 45, 75, 0.8);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: rgba(231, 76, 60, 0.8);
  color: white;
}

.btn-create {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Group View Styles */
.group-view-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.group-header-section {
  position: relative;
  margin-bottom: 30px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(31, 31, 56, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.group-background {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.group-header-content {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.group-header-info {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.group-avatar {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.group-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.group-details h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #e2e8f0;
}

.group-details .group-description {
  color: #a0aec0;
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.group-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-leave-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(231, 76, 60, 0.8);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-leave-group:hover {
  background: rgba(231, 76, 60, 1);
  transform: translateY(-2px);
}

.btn-edit-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(45, 45, 75, 0.8);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-edit-group:hover {
  background: rgba(102, 126, 234, 0.8);
  color: white;
  transform: translateY(-2px);
}

.group-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

.group-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  background: rgba(31, 31, 56, 0.6);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-section h3 i {
  color: #667eea;
}

.group-about p {
  color: #a0aec0;
  line-height: 1.5;
  margin-bottom: 15px;
}

.group-tags h4 {
  color: #e2e8f0;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.group-rules ol {
  color: #a0aec0;
  padding-left: 20px;
}

.group-rules li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.group-members-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

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

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-name {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

.member-role {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 600;
}

.member-role.admin {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.member-role.moderator {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
}

.member-role.member {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.more-members {
  text-align: center;
  padding: 10px;
  color: #a0aec0;
  font-size: 0.9rem;
}

.group-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.create-post-section {
  background: rgba(31, 31, 56, 0.6);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.create-post-section h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.create-post-section h3 i {
  color: #667eea;
}

.btn-create-post {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-create-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  color: white;
}

.group-posts h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-posts h3 i {
  color: #667eea;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.post-card {
  background: rgba(31, 31, 56, 0.6);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.post-header {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-info h4 {
  color: #e2e8f0;
  margin-bottom: 5px;
  font-size: 1rem;
}

.post-author {
  color: #a0aec0;
  font-size: 0.85rem;
}

.post-author a {
  color: #667eea;
  text-decoration: none;
}

.post-date {
  color: #a0aec0;
  font-size: 0.8rem;
  margin-left: 10px;
}

.post-description {
  color: #a0aec0;
  margin-bottom: 15px;
  line-height: 1.4;
}

.post-media {
  margin-bottom: 15px;
}

.post-media img,
.post-media video {
  width: 100%;
  border-radius: 8px;
  max-height: 300px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.post-media {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.1);
}

.post-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-view-post {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(45, 45, 75, 0.8);
  color: #e2e8f0;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-view-post:hover {
  background: rgba(102, 126, 234, 0.8);
  color: white;
}

.empty-posts {
  text-align: center;
  padding: 60px 20px;
  background: rgba(31, 31, 56, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.empty-posts .empty-icon {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 20px;
}

.empty-posts h3 {
  color: #e2e8f0;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.empty-posts p {
  color: #a0aec0;
  font-size: 1rem;
  margin-bottom: 25px;
}

/* Group Search Styles */
.groups-search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.search-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(31, 31, 56, 0.6);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #e2e8f0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.search-header h1 i {
  color: #667eea;
  margin-right: 15px;
}

.search-header p {
  font-size: 1.1rem;
  color: #a0aec0;
  margin-bottom: 25px;
}

.btn-back-to-groups {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(45, 45, 75, 0.8);
  color: #e2e8f0;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-back-to-groups:hover {
  background: rgba(102, 126, 234, 0.8);
  color: white;
  transform: translateY(-2px);
}

.search-form-section {
  margin-bottom: 30px;
}

.results-header {
  margin-bottom: 25px;
}

.results-header h2 {
  color: #e2e8f0;
  font-size: 1.5rem;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  background: rgba(31, 31, 56, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.no-results .empty-icon {
  font-size: 4rem;
  color: #667eea;
  margin-bottom: 20px;
}

.no-results h2 {
  color: #e2e8f0;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.no-results p {
  color: #a0aec0;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.no-results-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .create-group-container {
    padding: 15px;
  }
  
  .create-group-header h1 {
    font-size: 2rem;
  }
  
  .image-upload-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .group-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .group-header-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .group-content {
    grid-template-columns: 1fr;
  }
  
  .group-actions {
    justify-content: center;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .no-results-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Group Post Notice */
.group-post-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 20px;
}

.group-post-notice i {
  font-size: 1.1rem;
}

/* Group Chat Styles */
.group-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  background: rgba(45, 45, 75, 0.8);
  border-radius: 12px;
  padding: 4px;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #a0aec0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.group-chat {
  background: rgba(31, 31, 56, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  height: 600px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-content {
  flex: 1;
  background: rgba(45, 45, 75, 0.8);
  border-radius: 12px;
  padding: 12px;
  position: relative;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.message-author {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.message-time {
  color: #a0aec0;
  font-size: 0.8rem;
}

.message-edited {
  color: #a0aec0;
  font-size: 0.8rem;
  font-style: italic;
}

.message-text {
  color: #e2e8f0;
  line-height: 1.4;
  word-wrap: break-word;
}

.message-text .mention {
  color: #667eea;
  font-weight: 600;
}

.message-text a {
  color: #667eea;
  text-decoration: none;
}

.message-text a:hover {
  text-decoration: underline;
}

.message-reactions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.reaction {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.reaction:hover {
  background: rgba(102, 126, 234, 0.3);
  transform: scale(1.05);
}

.message-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.message-content:hover .message-actions {
  opacity: 1;
}

.message-action-btn {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  color: #a0aec0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.message-action-btn:hover {
  background: rgba(102, 126, 234, 0.3);
  color: #667eea;
}

.chat-input-container {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-form {
  display: flex;
  gap: 12px;
}

.chat-input-wrapper {
  flex: 1;
  display: flex;
  background: rgba(45, 45, 75, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: #e2e8f0;
  font-size: 1rem;
  outline: none;
}

.chat-input::placeholder {
  color: #a0aec0;
}

.chat-send-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  padding: 12px 16px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.join-to-chat {
  text-align: center;
  padding: 60px 20px;
  background: rgba(31, 31, 56, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.join-to-chat .empty-icon {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 20px;
}

.join-to-chat p {
  color: #a0aec0;
  font-size: 1rem;
}

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

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

.notification.success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.notification.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

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

@media (max-width: 768px) {
  .group-chat {
    height: 500px;
  }
  
  .chat-message {
    gap: 8px;
  }
  
  .message-avatar {
    width: 32px;
    height: 32px;
  }
  
  .message-content {
    padding: 10px;
  }
  
  .chat-input-wrapper {
    flex-direction: column;
  }
  
  .chat-send-btn {
    padding: 8px 12px;
  }
}

/* Group Management Styles */
.group-manage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--glass-bg);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.group-manage-header h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: 2rem;
}

.back-button {
  margin-right: 20px;
}

.group-owner-badge {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.group-manage-content {
  display: grid;
  gap: 30px;
}

.manage-section {
  background: var(--glass-bg);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.manage-section h2 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.manage-form {
  display: grid;
  gap: 20px;
}

.manage-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manage-form label {
  font-weight: 600;
  color: var(--text-primary);
}

.manage-form input,
.manage-form textarea,
.manage-form select {
  padding: 12px;
  border: 2px solid var(--glass-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.manage-form input:focus,
.manage-form textarea:focus,
.manage-form select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(100, 100, 255, 0.1);
}

.image-upload-section {
  margin-top: 20px;
}

.current-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.image-item {
  text-align: center;
}

.image-item h4 {
  color: var(--text-primary);
  margin-bottom: 15px;
}

.current-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid var(--glass-border);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.current-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-form {
  margin-top: 10px;
}

.members-list h4 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  position: relative;
}

.member-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
}

.role-badge.owner {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
}

.role-badge.admin {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.member-info {
  flex: 1;
}

.member-info h5 {
  margin: 0 0 5px 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.member-info p {
  margin: 0 0 5px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.member-role {
  background: var(--accent-color);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.role-select {
  padding: 6px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.danger-zone {
  border: 2px solid #ff6b6b;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 142, 0.05));
}

.danger-zone h2 {
  color: #ff6b6b;
}

.danger-actions {
  display: grid;
  gap: 20px;
}

.danger-item {
  padding: 20px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.danger-item h4 {
  color: #ff6b6b;
  margin-bottom: 10px;
}

.danger-item p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .group-manage-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .group-manage-header h1 {
    font-size: 1.5rem;
  }
  
  .current-images {
    grid-template-columns: 1fr;
  }
  
  .members-grid {
    grid-template-columns: 1fr;
  }
  
  .member-card {
    flex-direction: column;
    text-align: center;
  }
  
  .member-actions {
    justify-content: center;
    margin-top: 10px;
  }
}

/* Custom scrollbar for messages list */
.messages-list::-webkit-scrollbar {
  width: 8px;
}

.messages-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.messages-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.6) 0%, rgba(139, 92, 246, 0.6) 100%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.messages-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: rgba(45, 45, 65, 0.8);
  border-radius: 20px;
  margin: 10px 0;
  max-width: 100px;
  animation: fadeIn 0.3s ease-out;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: rgba(167, 139, 250, 0.8);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Message status indicators */
.message-status {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 5px;
}

.status-icon {
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

.status-icon.sent {
  color: rgba(255, 255, 255, 0.6);
}

.status-icon.delivered {
  color: #60a5fa;
}

.status-icon.read {
  color: #4ade80;
  animation: readPulse 1.5s ease-in-out infinite;
}

/* Enhanced message hover effects */
.message:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.message.sent:hover {
  box-shadow: 0 8px 25px rgba(167, 139, 250, 0.4);
}

.message.received:hover {
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Message timestamp tooltip */
.message-time {
  position: relative;
}

.message-time:hover::after {
  content: attr(data-full-time);
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
  animation: fadeIn 0.2s ease-out;
}

/* Enhanced focus states */
.message-form textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.6);
  background: linear-gradient(135deg, rgba(30, 30, 45, 0.9) 0%, rgba(20, 20, 35, 0.95) 100%);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
  transform: translateY(-1px);
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .conversation-container {
    margin: 15px auto;
    height: calc(100vh - 120px);
    border-radius: 20px;
  }
  
  .conversation-header {
    padding: 20px;
  }
  
  .messages-list {
    padding: 20px;
  }
  
  .message {
    max-width: 85%;
    padding: 12px 16px;
  }
  
  .message-form {
    padding: 15px 20px;
  }
  
  .message-form textarea {
    font-size: 0.9rem;
    padding: 12px 16px;
  }
  
  .message-form button {
    width: 40px;
    height: 40px;
  }
}

/* Message input wrapper and actions */
.message-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-upload-btn {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.3) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.image-upload-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.6s;
}

.image-upload-btn:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(22, 163, 74, 0.4) 100%);
  border-color: rgba(34, 197, 94, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.image-upload-btn:hover::before {
  left: 100%;
}

.image-upload-btn i {
  transition: transform 0.3s ease;
}

.image-upload-btn:hover i {
  transform: scale(1.1);
}

/* Image preview container */
.image-preview-container {
  margin-bottom: 15px;
  animation: slideInDown 0.3s ease-out;
}

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

.image-preview-wrapper {
  position: relative;
  display: inline-block;
  max-width: 200px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.image-preview-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.remove-image-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.remove-image-btn:hover {
  background: rgba(220, 38, 38, 0.8);
  transform: scale(1.1);
}

/* Message images */
.message-image {
  margin-bottom: 8px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 300px;
}

.message-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.message-image img {
  width: 100%;
  height: auto;
  display: block;
}

.message-text {
  margin-bottom: 8px;
  word-break: break-word;
  line-height: 1.5;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Image modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
}

.image-modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2001;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.image-modal-close:hover {
  background: rgba(220, 38, 38, 0.8);
  transform: scale(1.1);
}

#modalImage {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Update message form for new layout */
.message-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 20px 25px;
  background: linear-gradient(135deg, rgba(40, 40, 60, 0.9) 0%, rgba(30, 30, 50, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.message-form textarea {
  flex: 1;
  background: linear-gradient(135deg, rgba(25, 25, 40, 0.8) 0%, rgba(15, 15, 30, 0.9) 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 25px;
  padding: 15px 20px;
  color: white;
  resize: none;
  max-height: 120px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .message-image {
    max-width: 250px;
  }
  
  .image-preview-wrapper {
    max-width: 150px;
  }
  
  .message-actions {
    gap: 6px;
  }
  
  .image-upload-btn,
  .message-form button {
    width: 40px;
    height: 40px;
  }
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
  .ai-mode-tabs {
    flex-direction: column;
    gap: 1px;
  }
  
  .ai-tab-btn {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}

/* AI Edit Result Container */
#ai-edit-result {
  margin-top: 20px;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .ai-modal-img {
    max-height: 250px;
  }
  
  .ai-edit-preview-img {
    max-height: 150px;
  }
  
  .ai-modal-textarea {
    min-height: 80px;
    max-height: 120px;
  }
  
  .ai-modal-generate-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .ai-modal-use-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

/* Tablet landscape and small desktop */
@media (min-width: 768px) and (max-width: 1024px) {
  .ai-modal-card {
    max-width: 80vw;
    width: 600px;
    max-height: 85vh;
  }
  
  .ai-modal-img {
    max-height: 280px;
  }
  
  .ai-edit-preview-img {
    max-height: 180px;
  }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
  .ai-modal-card {
    max-width: 700px;
    width: 700px;
  }
  
  .ai-modal-img {
    max-height: 350px;
  }
  
  .ai-edit-preview-img {
    max-height: 220px;
  }
}

/* Portrait mobile with high aspect ratio */
@media (max-width: 480px) and (min-height: 800px) {
  .ai-modal-card {
    max-height: 80vh;
  }
  
  .ai-modal-img {
    max-height: 200px;
  }
  
  .ai-edit-preview-img {
    max-height: 120px;
  }
}

/* Ensure image upload button is visible and properly styled */
.message-form .message-input-wrapper .message-actions .image-upload-btn {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.3) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-right: 8px;
}

.message-form .message-input-wrapper .message-actions .image-upload-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.6s;
}

.message-form .message-input-wrapper .message-actions .image-upload-btn:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(22, 163, 74, 0.4) 100%);
  border-color: rgba(34, 197, 94, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.message-form .message-input-wrapper .message-actions .image-upload-btn:hover::before {
  left: 100%;
}

.message-form .message-input-wrapper .message-actions .image-upload-btn i {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.message-form .message-input-wrapper .message-actions .image-upload-btn:hover i {
  transform: scale(1.1);
}

/* Ensure message input wrapper is properly displayed */
.message-form .message-input-wrapper {
  display: flex !important;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.message-form .message-input-wrapper .message-actions {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

/* Paste functionality visual indicator */
.message-form textarea:focus {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.message-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.message-form textarea:focus::placeholder {
  color: rgba(34, 197, 94, 0.8);
}

/* Enhanced notification for paste success */
.chat-notification.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.95) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: white;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.chat-notification.success::before {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.8) 0%, rgba(22, 163, 74, 0.9) 100%);
}

/* Enhanced notification for errors */
.chat-notification.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: white;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.chat-notification.error::before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.8) 0%, rgba(220, 38, 38, 0.9) 100%);
}

/* Paste indicator animation */
@keyframes pasteIndicator {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.message-form textarea.paste-active {
  animation: pasteIndicator 0.3s ease-in-out;
  border-color: rgba(34, 197, 94, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* Paste shortcut indicator */
.message-form .paste-hint {
  position: absolute;
  top: -25px;
  right: 10px;
  background: rgba(34, 197, 94, 0.1);
  color: rgba(34, 197, 94, 0.8);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.message-form textarea:focus + .paste-hint {
  opacity: 1;
  transform: translateY(0);
}

.paste-hint i {
  margin-right: 4px;
  font-size: 0.7rem;
}

/* Drag and drop functionality */
.message-form textarea.drag-over {
  border-color: rgba(34, 197, 94, 0.8);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.15) 100%);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  transform: scale(1.02);
}

.message-form textarea.drag-over::placeholder {
  color: rgba(34, 197, 94, 0.9);
}

.message-form textarea.drag-over + .paste-hint {
  opacity: 1;
  transform: translateY(0);
  background: rgba(34, 197, 94, 0.2);
  color: rgba(34, 197, 94, 1);
  border-color: rgba(34, 197, 94, 0.4);
}

/* Comment and Reply Image Functionality */

/* Add Comment Section */
.add-comment-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
  margin: 30px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.add-comment-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.5), transparent);
}

.add-comment-section h3 {
  color: #86efac;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Comment form with image */
.comment-form-with-image {
  margin-top: 0;
}

/* Comment form textarea styling */
.comment-form-with-image textarea {
  flex: 1;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 15px;
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-family: inherit;
}

.comment-form-with-image textarea:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.comment-form-with-image textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.comment-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Comment submit button */
.comment-form-with-image .submit-btn {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.8) 0%, rgba(22, 163, 74, 0.9) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comment-form-with-image .submit-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.6s;
}

.comment-form-with-image .submit-btn:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 1) 100%);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.comment-form-with-image .submit-btn:hover::before {
  left: 100%;
}

.comment-form-with-image .submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.comment-image-upload-btn {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.3) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.comment-image-upload-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.6s;
}

.comment-image-upload-btn:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(22, 163, 74, 0.4) 100%);
  border-color: rgba(34, 197, 94, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.comment-image-upload-btn:hover::before {
  left: 100%;
}

.comment-image-upload-btn i {
  transition: transform 0.3s ease;
  font-size: 1rem;
}

.comment-image-upload-btn:hover i {
  transform: scale(1.1);
}

/* Comment image preview */
.comment-image-preview-container {
  margin-bottom: 15px;
  animation: slideInDown 0.3s ease-out;
}

.comment-image-preview-wrapper {
  position: relative;
  display: inline-block;
  max-width: 150px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.comment-image-preview-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.remove-comment-image-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem;
}

.remove-comment-image-btn:hover {
  background: rgba(220, 38, 38, 0.8);
  transform: scale(1.1);
}

/* Comment images display */
.comment-image {
  margin: 10px 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 250px;
}

.comment-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.comment-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Reply image functionality */
.reply-form-with-image {
  margin-top: 15px;
}

.reply-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}

.reply-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reply-image-upload-btn {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.3) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.reply-image-upload-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.6s;
}

.reply-image-upload-btn:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(22, 163, 74, 0.4) 100%);
  border-color: rgba(34, 197, 94, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.reply-image-upload-btn:hover::before {
  left: 100%;
}

.reply-image-upload-btn i {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.reply-image-upload-btn:hover i {
  transform: scale(1.1);
}

/* Reply image preview */
.reply-image-preview-container {
  margin-bottom: 12px;
  animation: slideInDown 0.3s ease-out;
}

.reply-image-preview-wrapper {
  position: relative;
  display: inline-block;
  max-width: 120px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.reply-image-preview-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.remove-reply-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.7rem;
}

.remove-reply-image-btn:hover {
  background: rgba(220, 38, 38, 0.8);
  transform: scale(1.1);
}

/* Reply images display */
.reply-image {
  margin: 8px 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 200px;
}

.reply-image:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.reply-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Comment image modal */
.comment-image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
}

.comment-image-modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.comment-image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2001;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.comment-image-modal-close:hover {
  background: rgba(220, 38, 38, 0.8);
  transform: scale(1.1);
}

#commentModalImage {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Post image modal */
.post-image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
}

.post-image-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.post-image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2001;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.post-image-modal-close:hover {
  background: rgba(220, 38, 38, 0.8);
  transform: scale(1.1);
}

#postModalImage {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.post-image-modal-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 20px;
  text-align: center;
  max-width: 80%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Post image clickable cursor */
.post-image-clickable {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.post-image-clickable:hover {
  transform: scale(1.02);
}

/* Drag and drop styles for comment textarea */
.comment-form-with-image textarea.drag-over {
  border-color: rgba(34, 197, 94, 0.8);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.15) 100%);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  transform: scale(1.02);
}

.comment-form-with-image textarea.drag-over::placeholder {
  color: rgba(34, 197, 94, 0.9);
}

/* Drag and drop styles for reply textarea */
.reply-form-with-image textarea.drag-over {
  border-color: rgba(34, 197, 94, 0.8);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.15) 100%);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  transform: scale(1.02);
}

.reply-form-with-image textarea.drag-over::placeholder {
  color: rgba(34, 197, 94, 0.9);
}

/* Responsive design for comment form */
@media (max-width: 768px) {
  .add-comment-section {
    padding: 20px;
    margin: 20px 0;
  }
  
  .add-comment-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .comment-input-wrapper {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .comment-form-with-image textarea {
    min-height: 80px;
    font-size: 14px;
  }
  
  .comment-actions {
    justify-content: center;
    gap: 10px;
  }
  
  .comment-image-upload-btn {
    width: 45px;
    height: 45px;
  }
  
  .comment-form-with-image .submit-btn {
    padding: 15px 30px;
    font-size: 13px;
    width: 100%;
  }
  
  .comment-image-preview-wrapper {
    max-width: 120px;
  }
  
  .reply-image-preview-wrapper {
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .add-comment-section {
    padding: 15px;
    margin: 15px 0;
  }
  
  .comment-input-wrapper {
    padding: 12px;
  }
  
  .comment-form-with-image textarea {
    padding: 15px;
    font-size: 13px;
  }
  
  .comment-actions {
    gap: 8px;
  }
  
  .comment-image-upload-btn {
    width: 40px;
    height: 40px;
  }
  
  .comment-form-with-image .submit-btn {
    padding: 12px 20px;
    font-size: 12px;
  }
}

/* Aura Card Flip Game Styles */
.aura-cards-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

.cards-header {
  text-align: center;
  margin-bottom: 40px;
}

.cards-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.current-balance {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.balance-label {
  font-size: 0.9rem;
  color: #a0aec0;
}

.balance-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f7fafc;
}

.balance-currency {
  font-size: 0.9rem;
  color: #667eea;
  font-weight: 600;
}

.main-game-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.card-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
}

.single-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card {
  width: 400px;
  height: 600px;
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin: 0 auto;
  transform-origin: center center;
}

.card:hover:not(.flipped) {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 15px 45px rgba(0, 0, 0, 0.3);
}

.card.flipped {
  transform: none !important;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.card-front {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card-front::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: cardShine 3s ease-in-out infinite;
}

.card-front i {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.card-hint {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.card-back {
  background: var(--card-color, #667eea);
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.card-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: cardGlow 2s ease-in-out infinite;
}

.card-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.result-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 1;
  position: relative;
}

.result-multiplier {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 1;
  position: relative;
}

.betting-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 500px;
}

.bet-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  width: 100%;
  position: sticky;
  top: 20px;
}

.bet-form h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: #f7fafc;
}

.bet-input-group {
  margin-bottom: 25px;
}

.bet-input-group label {
  display: block;
  margin-bottom: 10px;
  color: #a0aec0;
  font-weight: 500;
}

.bet-input {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #f7fafc;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.bet-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.quick-bet-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.quick-bet {
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #f7fafc;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-bet:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: #667eea;
  transform: translateY(-2px);
}

.flip-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.flip-button::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;
}

.flip-button:hover::before {
  left: 100%;
}

.flip-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.flip-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cards-stats {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cards-stats h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: #f7fafc;
}

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

.stat-item {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
  font-size: 0.9rem;
  color: #a0aec0;
  margin-bottom: 5px;
}

.stat-probability {
  font-size: 1.2rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 5px;
}

.stat-multiplier {
  font-size: 1rem;
  font-weight: 600;
  color: #f7fafc;
}

.result-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  max-width: 500px;
  width: 90%;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header h2 {
  font-size: 1.8rem;
  color: #f7fafc;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #a0aec0;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: #f7fafc;
  background: rgba(255, 255, 255, 0.1);
}

.result-text {
  text-align: center;
  font-size: 1.2rem;
  color: #f7fafc;
  margin-bottom: 20px;
}

.result-details {
  margin-bottom: 25px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.detail-label {
  color: #a0aec0;
  font-weight: 500;
}

.detail-value {
  color: #f7fafc;
  font-weight: 600;
}

.modal-footer {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-button:first-child {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.modal-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f7fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

@keyframes cardShine {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg);
  }
}

@keyframes cardGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

@media (max-width: 768px) {
  .main-game-section {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  
  .card-section {
    max-width: 500px;
  }
  
  .betting-section {
    max-width: 500px;
  }
  
  .card {
    width: 350px;
    height: 525px;
  }
  
  .card-front i {
    font-size: 6rem;
  }
  
  .card-hint {
    font-size: 1.2rem;
  }
  
  .result-text {
    font-size: 2rem;
  }
  
  .result-multiplier {
    font-size: 2.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-bet-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-content {
    width: 95%;
    padding: 20px;
  }
  
  .modal-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .main-game-section {
    gap: 30px;
  }
  
  .card-section {
    max-width: 400px;
  }
  
  .betting-section {
    max-width: 400px;
  }
  
  .card {
    width: 300px;
    height: 450px;
  }
  
  .card-front i {
    font-size: 5rem;
  }
  
  .card-hint {
    font-size: 1rem;
  }
  
  .result-text {
    font-size: 1.8rem;
  }
  
  .result-multiplier {
    font-size: 2.2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .cards-header h1 {
    font-size: 2rem;
  }
  
  .current-balance {
    flex-direction: column;
    gap: 5px;
  }
}

/* Card Flip Styles */
.card-flip-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card-flip-header {
  text-align: center;
  margin-bottom: 40px;
}

.card-flip-header h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.card-flip-header h1 i {
  color: #ffd700;
  margin-right: 15px;
}

.card-balance {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 15px 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-game-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.card-display {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px;
}

.card-wrapper {
  position: relative;
  width: 300px;
  height: 450px;
  perspective: 1000px;
}

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
  animation: cardFloat 3s ease-in-out infinite;
}

.card.flipped {
  transform: rotateY(180deg);
}

.card.flipping {
  animation: cardFlip 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0px) rotateY(0deg);
  }
  50% {
    transform: translateY(-10px) rotateY(0deg);
  }
}

@keyframes cardFlip {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

.card-content {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  transition: all 0.3s ease;
}

.card-front:hover {
  transform: scale(1.02);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.4),
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.card-front {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.card-back {
  background: var(--result-color, #667eea);
  transform: rotateY(180deg);
  color: white;
  position: relative;
  overflow: hidden;
}

.card-back::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: cardShine 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardShine {
  0% {
    transform: rotate(0deg) translate(-50%, -50%);
  }
  100% {
    transform: rotate(360deg) translate(-50%, -50%);
  }
}

.card-symbol {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  animation: symbolPulse 2s ease-in-out infinite;
  position: relative;
}

.card-symbol::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: symbolGlow 3s ease-in-out infinite;
  z-index: -1;
}

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

@keyframes symbolGlow {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.card-text {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.8;
}

.result-symbol {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  animation: resultPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

.result-symbol::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: resultRipple 0.8s ease-out;
  z-index: -1;
}

@keyframes resultPop {
  0% {
    transform: scale(0) rotate(180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(90deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes resultRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.result-text {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.betting-panel {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

.betting-panel h3 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.5rem;
  text-align: center;
}

.bet-input-group {
  margin-bottom: 20px;
}

.bet-input-group label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.bet-input-group input {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.bet-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.bet-input-group input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.quick-bet-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.quick-bet {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-bet:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: translateY(-2px);
}

.flip-btn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.flip-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.flip-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.flip-btn i {
  font-size: 1.2rem;
}

.card-odds {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.card-odds h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-align: center;
}

.odds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.odds-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.odds-item:hover {
  transform: translateY(-2px);
}

.odds-item.lose {
  border-color: #e74c3c;
}

.odds-item.lose-half {
  border-color: #f39c12;
}

.odds-item.break-even {
  border-color: #95a5a6;
}

.odds-item.win {
  border-color: #3498db;
}

.odds-item.win-big {
  border-color: #2ecc71;
}

.odds-item.jackpot {
  border-color: #9b59b6;
}

.odds-label {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.odds-chance {
  color: #ffd700;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.odds-multiplier {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
}

.game-history {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.game-history h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-history h3 i {
  color: #ffd700;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}

.history-result {
  font-weight: 600;
  font-size: 0.9rem;
}

.history-multiplier {
  color: #ffd700;
  font-weight: 600;
  font-size: 0.9rem;
}

.history-bet {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.history-change {
  font-weight: 700;
  font-size: 1rem;
}

.history-change.positive {
  color: #2ecc71;
}

.history-change.negative {
  color: #e74c3c;
}

.history-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* Result Modal */
.result-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
  padding: 25px 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: #fff;
  font-size: 1.8rem;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

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

.modal-body {
  padding: 30px;
}

.result-display {
  text-align: center;
}

.result-icon {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.result-message {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 500;
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.detail-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.detail-value {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.detail-value.tax-amount {
  color: #e74c3c;
  font-weight: 700;
}

.detail-value.net-after-tax {
  color: #ffd700;
  font-weight: 700;
}

.tax-info-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 8px;
  padding-top: 12px;
}

.modal-footer {
  padding: 20px 30px 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.modal-btn.primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
}

.modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.modal-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-game-section {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  
  .card-wrapper {
    width: 250px;
    height: 375px;
  }
  
  .betting-panel {
    max-width: 100%;
  }
  
  .odds-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .history-item {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .card-flip-header h1 {
    font-size: 2rem;
  }
  
  .card-wrapper {
    width: 200px;
    height: 300px;
  }
  
  .card-symbol {
    font-size: 3rem;
  }
  
  .result-symbol {
    font-size: 2.5rem;
  }
  
  .odds-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-bet-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tax Section Styles */
.tax-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.tax-section h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tax-section h3 i {
  color: #ffd700;
}

.tax-info {
  margin-bottom: 20px;
}

.tax-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tax-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tax-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tax-item:last-child {
  border-bottom: none;
  font-weight: 700;
  color: #ffd700;
}

.tax-item span:first-child {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.tax-item span:last-child {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.tax-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.pay-tax-btn,
.pay-later-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
}

.pay-tax-btn {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
}

.pay-tax-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.pay-tax-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pay-later-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pay-later-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.pay-later-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pay-tax-btn i,
.pay-later-btn i {
  font-size: 1.1rem;
}

/* Notification animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Responsive design for tax section */
@media (max-width: 768px) {
  .tax-actions {
    flex-direction: column;
  }
  
  .pay-tax-btn,
  .pay-later-btn {
    width: 100%;
  }
  
  .tax-summary {
    padding: 15px;
  }
}

/* Casino Styles */
.casino-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.casino-header {
  text-align: center;
  margin-bottom: 40px;
}

.casino-header h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.casino-header h1 i {
  color: #ffd700;
  margin-right: 15px;
}

.casino-balance {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 15px 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.balance-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.balance-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffd700;
}

.balance-currency {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.casino-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.game-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.game-header {
  text-align: center;
  margin-bottom: 20px;
}

.game-header h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.game-header h3 i {
  color: #ffd700;
  margin-right: 10px;
}

.game-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.game-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Coin Flip Styles */
.coin-display {
  width: 120px;
  height: 120px;
  perspective: 1000px;
}

.coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.coin.flipping {
  animation: coinFlip 2s ease-in-out;
}

.coin.heads {
  transform: rotateY(0deg);
}

.coin.tails {
  transform: rotateY(180deg);
}

.coin-front,
.coin-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.coin-front {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: 3px solid #fff;
}

.coin-back {
  background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%);
  border: 3px solid #fff;
  transform: rotateY(180deg);
}

@keyframes coinFlip {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(1800deg); }
  100% { transform: rotateY(180deg); }
}

/* Dice Styles */
.dice-display {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dice {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  border: 3px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.dice.rolling {
  animation: diceRoll 2s ease-in-out;
}

@keyframes diceRoll {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(0.9); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Number Guess Styles */
.guess-display {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guess-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.guess-number.revealing {
  animation: numberReveal 2s ease-in-out;
}

@keyframes numberReveal {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* Game Controls */
.game-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 250px;
}

.game-controls input {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-controls input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.game-controls input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.game-btn {
  padding: 15px 25px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.game-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Quick Bet Section */
.quick-bet-section {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.quick-bet-section h3 {
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.quick-bet-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.quick-bet {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-bet:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: translateY(-2px);
}

/* Billing Section */
.billing-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.billing-section h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.billing-section h3 i {
  color: #ffd700;
}

.tax-info {
  margin-bottom: 20px;
}

.tax-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tax-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.tax-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tax-item span:first-child {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.tax-item span:last-child {
  color: #ffd700;
  font-weight: 700;
  font-size: 1.1rem;
}

.billing-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.pay-btn,
.pay-later-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pay-btn {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #fff;
}

.pay-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pay-later-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pay-later-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Game History */
.game-history {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.game-history h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-history h3 i {
  color: #ffd700;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr 1fr;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}

.history-game {
  color: #ffd700;
  font-weight: 600;
  font-size: 0.9rem;
}

.history-result {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.history-bet {
  color: #ffd700;
  font-size: 0.9rem;
  font-weight: 600;
}

.history-winnings {
  font-weight: 700;
  font-size: 1rem;
}

.history-winnings.won {
  color: #2ecc71;
}

.history-winnings.lost {
  color: #e74c3c;
}

.history-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .casino-games {
    grid-template-columns: 1fr;
  }
  
  .game-controls {
    max-width: 100%;
  }
  
  .quick-bet-buttons {
    gap: 10px;
  }
  
  .quick-bet {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .tax-summary {
    grid-template-columns: 1fr;
  }
  
  .billing-actions {
    flex-direction: column;
  }
  
  .history-item {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  
  .history-bet {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .casino-header h1 {
    font-size: 2rem;
  }
  
  .casino-balance {
    flex-direction: column;
    gap: 5px;
  }
  
  .game-card {
    padding: 20px;
  }
  
  .coin-display,
  .dice-display,
  .guess-display {
    width: 80px;
    height: 80px;
  }
  
  .coin-front,
  .coin-back {
    font-size: 1rem;
  }
  
  .dice {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .guess-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Modal Tax Button Styles */
.modal-btn.pay-tax {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
}

.modal-btn.pay-tax:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.modal-btn.pay-later {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn.pay-later:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.modal-btn.pay-tax i,
.modal-btn.pay-later i {
  font-size: 1rem;
  margin-right: 5px;
}

/* What's New Page Styles */
.whats-new-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.whats-new-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 0;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.3),
    -20px -20px 60px rgba(255, 255, 255, 0.05),
    inset 5px 5px 10px rgba(255, 255, 255, 0.1),
    inset -5px -5px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whats-new-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.whats-new-header h1 i {
  margin-right: 15px;
  color: #667eea;
  -webkit-text-fill-color: #667eea;
}

.whats-new-header p {
  font-size: 1.2rem;
  color: #e2e8f0;
  max-width: 600px;
  margin: 0 auto;
}

.updates-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 1px;
}

.update-item {
  position: relative;
  margin-bottom: 50px;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    10px 10px 30px rgba(0, 0, 0, 0.3),
    -10px -10px 30px rgba(255, 255, 255, 0.05),
    inset 2px 2px 5px rgba(255, 255, 255, 0.1),
    inset -2px -2px 5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.update-item:hover {
  transform: translateY(-5px);
  box-shadow: 
    15px 15px 40px rgba(0, 0, 0, 0.4),
    -15px -15px 40px rgba(255, 255, 255, 0.08),
    inset 2px 2px 5px rgba(255, 255, 255, 0.15),
    inset -2px -2px 5px rgba(0, 0, 0, 0.25);
}

.update-item.latest {
  border: 2px solid #667eea;
  box-shadow: 
    10px 10px 30px rgba(0, 0, 0, 0.3),
    -10px -10px 30px rgba(255, 255, 255, 0.05),
    inset 2px 2px 5px rgba(255, 255, 255, 0.1),
    inset -2px -2px 5px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(102, 126, 234, 0.3);
}

.update-item::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 30px;
  width: 20px;
  height: 20px;
  background: #667eea;
  border-radius: 50%;
  border: 4px solid rgba(26, 26, 46, 0.9);
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.update-item.latest::before {
  background: #667eea;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
  animation: pulse 2s infinite;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.update-badge i {
  font-size: 1rem;
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.update-header h2 {
  font-size: 1.8rem;
  color: #e2e8f0;
  margin: 0;
}

.update-date {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.update-description p {
  font-size: 1.1rem;
  color: #cbd5e0;
  margin-bottom: 25px;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateX(5px);
}

.feature-item i {
  color: #667eea;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.feature-item span {
  color: #e2e8f0;
  font-size: 0.95rem;
}

.update-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.update-actions .btn {
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.whats-new-footer {
  text-align: center;
  margin-top: 80px;
  padding: 40px;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  box-shadow: 
    20px 20px 60px rgba(0, 0, 0, 0.3),
    -20px -20px 60px rgba(255, 255, 255, 0.05),
    inset 5px 5px 10px rgba(255, 255, 255, 0.1),
    inset -5px -5px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whats-new-footer h3 {
  font-size: 1.8rem;
  color: #e2e8f0;
  margin-bottom: 15px;
}

.whats-new-footer p {
  font-size: 1.1rem;
  color: #cbd5e0;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .whats-new-container {
    padding: 20px 15px;
  }
  
  .whats-new-header h1 {
    font-size: 2rem;
  }
  
  .updates-timeline {
    padding-left: 40px;
  }
  
  .updates-timeline::before {
    left: 20px;
  }
  
  .update-item::before {
    left: -30px;
  }
  
  .update-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .update-header h2 {
    font-size: 1.5rem;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
  }
  
  .update-actions {
    flex-direction: column;
  }
  
  .update-actions .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .whats-new-header h1 {
    font-size: 1.8rem;
  }
  
  .update-item {
    padding: 20px;
  }
  
  .update-header h2 {
    font-size: 1.3rem;
  }
  
  .feature-item {
    padding: 10px 12px;
  }
}

/* --- AI Image Indicator Styles --- */
.ai-image-indicator {
  margin: 15px 0;
  padding: 16px;
  background: rgba(24, 26, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.3s ease-out;
}

.ai-indicator-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-indicator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.remove-ai-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-ai-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: rgba(255, 59, 48, 0.4);
  color: #ff6b6b;
}

.ai-indicator-body {
  display: flex;
  gap: 16px;
  align-items: center;
}

.ai-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ai-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.regenerate-ai-btn {
  align-self: flex-start;
  padding: 8px 16px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.regenerate-ai-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.ai-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* File Input Wrapper Styles */
.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.file-input-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.file-select-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.file-select-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.file-name {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  flex: 1;
}

/* Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .ai-indicator-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .ai-thumbnail {
    width: 100%;
    height: 120px;
  }
  
  .ai-actions {
    width: 100%;
  }
  
  .regenerate-ai-btn {
    align-self: stretch;
    text-align: center;
  }
}

/* --- AI Image Editing Modal Styles --- */
.ai-edit-section {
  margin-bottom: 20px;
}

.ai-edit-image-upload {
  position: relative;
  margin-top: 8px;
}

.ai-edit-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.ai-edit-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 120px;
}

.ai-edit-upload-area:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.ai-edit-upload-area.drag-over {
  background: rgba(79, 172, 254, 0.1);
  border-color: #4facfe;
  transform: scale(1.02);
}

.ai-edit-upload-area i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.ai-edit-upload-area span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 5px;
  text-align: center;
}

.ai-edit-upload-area small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  text-align: center;
}

.ai-edit-image-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-height: 120px;
  max-height: 250px;
  overflow: hidden;
}

.ai-edit-preview-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.ai-edit-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 59, 48, 0.9);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
}

.ai-edit-remove-btn:hover {
  background: rgba(255, 59, 48, 1);
  transform: scale(1.1);
}

/* Responsive adjustments for edit modal */
@media (max-width: 768px) {
  .ai-edit-upload-area {
    padding: 20px 15px;
    min-height: 100px;
  }
  
  .ai-edit-upload-area i {
    font-size: 1.5rem;
  }
  
  .ai-edit-upload-area span {
    font-size: 0.9rem;
  }
  
  .ai-edit-preview-img {
    max-height: 150px;
  }
}

/* Landscape orientation for edit modal */
@media (max-height: 600px) and (orientation: landscape) {
  .ai-edit-upload-area {
    padding: 15px 10px;
    min-height: 80px;
  }
  
  .ai-edit-upload-area i {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .ai-edit-upload-area span {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }
  
  .ai-edit-upload-area small {
    font-size: 0.7rem;
  }
  
  .ai-edit-image-preview {
    padding: 10px;
    min-height: 80px;
  }
  
  .ai-edit-preview-img {
    max-height: 100px;
  }
}

/* --- AI Mode Tabs Styles --- */
.ai-mode-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 4px;
}

.ai-tab-btn {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-tab-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.ai-tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-mode-section {
  display: none;
}

.ai-mode-section.active {
  display: block;
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
  .ai-mode-tabs {
    flex-direction: column;
    gap: 1px;
  }
  
  .ai-tab-btn {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}

/* AI Edit Result Container */
#ai-edit-result {
  margin-top: 20px;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .ai-modal-img {
    max-height: 250px;
  }
  
  .ai-edit-preview-img {
    max-height: 150px;
  }
}

/* Upload Page Redesign */
.upload-hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.upload-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.upload-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.upload-hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  animation: float 3s ease-in-out infinite;
}

.upload-hero-icon i {
  font-size: 2rem;
  color: white;
}

.upload-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upload-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  line-height: 1.6;
}

.upload-aura-notice {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 400px;
  margin: 0 auto;
}

.aura-notice-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.aura-notice-content i {
  font-size: 1.5rem;
  color: #ffd700;
  animation: pulse 2s ease-in-out infinite;
}

.aura-notice-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.aura-notice-main {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 1rem;
}

.aura-notice-current {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.current-aura {
  color: #ffd700;
  font-weight: 700;
  font-size: 1.1rem;
}

.upload-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.upload-form-card {
  background: rgba(31, 31, 56, 0.8);
  border-radius: 25px;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.upload-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 1rem;
}

.form-label i {
  color: #667eea;
  font-size: 1.1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(26, 26, 46, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  font-size: 1rem;
  color: #e2e8f0;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 3px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.6;
}

.ai-section {
  background: rgba(102, 126, 234, 0.1);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

.ai-generate-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.ai-generate-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;
}

.ai-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.ai-generate-btn:hover::before {
  left: 100%;
}

.ai-generate-btn i {
  font-size: 1.1rem;
}

.ai-section-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.ai-section-hint i {
  color: #ffd700;
}

.file-upload-group {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.file-upload-group:hover {
  border-color: rgba(102, 126, 234, 0.4);
  background: rgba(102, 126, 234, 0.05);
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.file-select-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.file-select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.file-select-btn i {
  font-size: 1rem;
}

.file-name {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  flex: 1;
}

.file-upload-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.file-upload-hint i {
  color: #667eea;
}

.form-actions {
  margin-top: 40px;
  text-align: center;
}

.upload-submit-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 18px 36px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.upload-submit-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;
}

.upload-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.upload-submit-btn:hover::before {
  left: 100%;
}

.upload-submit-btn i {
  font-size: 1.2rem;
}

.group-notice-group {
  background: rgba(118, 75, 162, 0.1);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(118, 75, 162, 0.3);
}

.group-post-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-weight: 600;
}

.group-post-notice i {
  color: #764ba2;
  font-size: 1.1rem;
}

/* Enhanced AI Image Indicator */
.ai-image-indicator {
  background: rgba(102, 126, 234, 0.1);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  margin-bottom: 20px;
  animation: slideInUp 0.3s ease-out;
}

.ai-indicator-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ai-indicator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.remove-ai-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-ai-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: scale(1.1);
}

.ai-indicator-body {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ai-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.ai-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.regenerate-ai-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.regenerate-ai-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ai-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .upload-hero {
    padding: 40px 15px;
  }
  
  .upload-hero-title {
    font-size: 2rem;
  }
  
  .upload-hero-subtitle {
    font-size: 1rem;
  }
  
  .upload-hero-icon {
    width: 60px;
    height: 60px;
  }
  
  .upload-hero-icon i {
    font-size: 1.5rem;
  }
  
  .upload-form-card {
    padding: 25px;
    margin: 0 10px;
  }
  
  .ai-indicator-body {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .ai-thumbnail {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .upload-hero-title {
    font-size: 1.8rem;
  }
  
  .upload-form-card {
    padding: 20px;
  }
  
  .form-input,
  .form-textarea {
    padding: 14px 16px;
  }
  
  .ai-generate-btn,
  .upload-submit-btn {
    width: 100%;
    justify-content: center;
  }
  
  .file-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  
  .file-select-btn {
    width: 100%;
    justify-content: center;
  }
}

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

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