:root {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  
  /* Gliter color scheme */
  --primary-color: #ff6b35;
  --primary-dark: #e55a00;
  --secondary-color: #ffb74d;
  --background-color: #000000;
  --surface-color: #1a1a1a;
  --card-color: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --success-color: #4caf50;
  --error-color: #f44336;
  --border-color: #333333;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  
  /* Plan-specific gradients */
  --xtra-gradient-start: #ff6b35;
  --xtra-gradient-end: #ff8e53;
  --unlimited-gradient-start: #8b5cf6;
  --unlimited-gradient-end: #a78bfa;
  --plan-gradient-start: var(--xtra-gradient-start);
  --plan-gradient-end: var(--xtra-gradient-end);
  
  /* Plan colors */
  --xtra-color: #ff6b35;
  --unlimited-color: #8b5cf6;
  --plan-color: var(--xtra-color);
  
  color: var(--text-primary);
  background-color: var(--background-color);
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background-color);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

/* App Container - Compensar navegación fija */
.app-container {
  min-height: 100vh;
  padding-bottom: 80px; /* Altura aproximada de la navegación + margen */
  box-sizing: border-box;
}

/* Verification Styles */
.verification-section {
  margin-top: 20px;
  padding: 15px;
  background-color: var(--surface-color);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.verification-section h3 {
  margin-top: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.verification-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verification-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.verification-btn:hover {
  background-color: var(--primary-dark);
}

.not-verified {
  color: var(--error-color);
  font-weight: 500;
}

.email-verified {
  color: var(--secondary-color);
  font-weight: 500;
}

.photo-verified {
  color: #64b5f6;
  font-weight: 500;
}

.fully-verified {
  color: var(--success-color);
  font-weight: 500;
}

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--background-color) 0%, var(--surface-color) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.loading-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.loading-title {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 0 30px 0;
  animation: slideInDown 0.8s ease;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
  animation: fadeIn 1s ease 0.5s both;
}

/* Loading Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

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

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

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

/* App Hidden State */
.app-hidden {
  display: none;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-icon:hover {
  transform: scale(1.05);
}

.logo h1 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Favorite button styles */
.favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn:hover {
  background-color: rgba(255, 107, 53, 0.1);
  transform: scale(1.1);
}

.favorite-btn img {
  width: 20px;
  height: 20px;
}

.favorite-btn.active img {
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Estilos para el contenedor del indicador de saldo en el header */
#creditBalanceContainer {
  margin-right: 10px;
}

.icon-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: var(--surface-color);
  border-right: 1px solid var(--border-color);
  padding: 1rem 0;
  min-height: calc(100vh - 80px);
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-item:hover {
  background-color: var(--card-color);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--primary-color);
  color: white;
}

/* Content Area */
.content-area {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.view {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view.active {
  display: block;
  opacity: 1;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.view-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.filters {
  display: flex;
  gap: 0.5rem;
}

.filter-btn, .refresh-btn {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-btn:hover, .refresh-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Users Layout */
.users-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 0;
}

.current-user-section {
  margin-bottom: 1rem;
}

.other-users-section {
  flex: 1;
}

.section-title {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-left: 0.25rem;
  font-weight: 600;
}

/* Current user card (large, prominent) */
.current-user-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  padding: 2rem;
  color: white;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.current-user-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 0, 0.4);
}

.current-user-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  flex-shrink: 0;
}

.current-user-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.current-user-info {
  flex: 1;
}

.current-user-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.you-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: normal;
  margin-left: 0.5rem;
}

.current-user-info .user-age {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.current-user-info .user-bio {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
  font-size: 0.9rem;
}

.current-user-actions {
  display: flex;
  gap: 0.75rem;
}

.edit-profile-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-profile-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.moderation-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(240, 147, 251, 0.4);
  margin: 5px;
}

.moderation-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(240, 147, 251, 0.6);
}

/* Other users grid */
.other-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* Other user cards (small, grid style) */
.other-user-card {
  background-color: var(--card-color);
  border-radius: 15px;
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.other-user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.other-user-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.75rem auto;
  position: relative;
  color: white;
}

.other-user-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.other-user-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.other-user-info .user-age {
  color: var(--text-secondary);
  margin: 0 0 0.25rem 0;
  font-size: 0.8rem;
}

.user-distance {
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  font-size: 0.75rem;
  font-weight: 500;
}

.other-user-actions {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 0.75rem;
}

/* Users Grid - Modern Card Layout */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
}

.user-card {
  background: var(--card-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  aspect-ratio: 3/4;
  border: 1px solid var(--border-color);
}

.user-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  border-color: var(--primary-color);
}

.user-photo {
  position: relative;
  width: 100%;
  height: 45%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.user-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-photo .avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  color: #666;
}

/* Indicador de múltiples fotos */
.photo-count-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* Indicador de boost de perfil */
.boost-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
}

.user-photo:hover .photo-count-indicator {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.user-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px 15px 15px;
  pointer-events: none;
}

.user-name-overlay h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info {
  padding: 12px 15px;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.user-details {
  flex: 1;
}

.user-age {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 4px 0;
}

.user-distance {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0 0 8px 0;
}

.user-status-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.user-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

/* Icon-only buttons */
.like-btn-icon,
.message-btn-icon {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.like-btn-icon {
  background: var(--success-color);
  color: white;
}

.like-btn-icon:hover {
  background: #45a049;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

.message-btn-icon:hover {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Block button in corner */
.block-btn-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(66, 66, 66, 0.8);
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.block-btn-corner:hover {
  background: rgba(33, 33, 33, 0.9);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Responsive design for user cards */
@media (max-width: 768px) {
  .users-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 15px;
  }
  
  .like-btn-icon,
  .message-btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .block-btn-corner {
    width: 28px;
    height: 28px;
    top: 6px;
    right: 6px;
    font-size: 0.8rem;
  }
  
  .user-card {
    aspect-ratio: 2.5/4;
  }
  
  .user-photo .avatar-placeholder {
    font-size: 2.5rem;
  }
  
  .user-name-overlay {
    padding: 15px 10px 10px;
  }
  
  .user-name-overlay h4 {
    font-size: 0.95rem;
  }
  
  .user-info {
    padding: 10px 12px;
  }
  
  .action-btn {
    padding: 5px 3px;
    font-size: 0.9rem;
    min-height: 28px;
  }
}

@media (max-width: 480px) {
  .users-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    padding: 10px;
  }
  
  .user-card {
    aspect-ratio: 2/4;
  }
  
  .user-photo .avatar-placeholder {
    font-size: 2rem;
  }
  
  .user-name-overlay h4 {
    font-size: 0.85rem;
  }
  
  .user-age, .user-distance, .user-status-text {
    font-size: 0.75rem;
  }
  
  .action-btn {
    padding: 4px 2px;
    font-size: 0.8rem;
    min-height: 24px;
  }
}

.user-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--text-muted);
  z-index: 2;
}

.user-status.online {
  background: var(--success-color);
  animation: pulse-online 2s infinite;
}

.user-status.offline {
  background: var(--text-muted);
}

/* Online badge */
.online-badge {
  font-size: 0.8em;
  margin-left: 5px;
  opacity: 0.9;
  color: var(--success-color);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: pulse-online 2s ease-in-out infinite;
}

.online-badge.current {
  color: var(--success-color);
  font-weight: bold;
  font-size: 0.9em;
}

/* Online status text */
.online-status {
  color: var(--success-color) !important;
  font-weight: 500;
  position: relative;
}

.online-status::before {
  content: '●';
  color: var(--success-color);
  margin-right: 4px;
  animation: pulse-online 2s ease-in-out infinite;
}

/* Online indicator animation */
@keyframes pulse-online {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* User status improvements */
.user-status-text {
  font-size: 0.85em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-status-text.online-status {
  color: var(--success-color) !important;
}

.user-status-text:not(.online-status) {
  color: var(--text-muted);
}

/* Online indicator dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.status-dot.online {
  background-color: var(--success-color);
  animation: pulse-online 2s ease-in-out infinite;
}

.status-dot.offline {
  background-color: var(--text-muted);
}

/* Fix subscription button positioning */
.subscription-management-btn {
  position: relative !important;
  margin: 15px auto !important;
  max-width: 300px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure proper container for subscription button */
#profile-view .profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* Profile avatar fixes */
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  position: relative;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.profile-avatar:hover .avatar-upload-overlay {
  opacity: 1;
}

/* Avatar upload overlay */
.avatar-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 0.8rem;
  text-align: center;
}

.avatar-upload-overlay .upload-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.avatar-upload-overlay .upload-text {
  font-weight: 500;
}

.profile-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.profile-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

/* Profile card improvements */
.profile-card {
  background: var(--card-color);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.profile-info h2 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.profile-info p {
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Photo upload improvements for new users */
.photo-upload-prompt {
  background: var(--surface-color);
  border: 2px dashed var(--primary-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.photo-upload-prompt:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: var(--primary-dark);
}

.photo-upload-prompt .upload-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.photo-upload-prompt .upload-text {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.photo-upload-prompt .upload-hint {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.user-status-text {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-status-text.online-status {
  color: var(--success-color);
  font-weight: 500;
}

/* Pulse animation for online status */
@keyframes pulse-online {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.error {
  background-color: var(--error-color);
  color: white;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  text-align: center;
}

.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hidden.instant {
  display: none !important;
  transition: none;
}

.no-users, .no-matches, .no-messages, .no-favorites {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content {
  background-color: var(--surface-color);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

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

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background-color: var(--error-color);
  color: white;
}

.modal-body {
  padding: 1rem;
}

/* User Detail Styles */
.user-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.user-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.user-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  color: white;
  position: relative;
}

/* Profile Modal Styles */
.profile-modal {
  max-width: 600px;
  width: 95%;
}

.profile-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.profile-photo {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.verification-indicator {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  border: 2px solid var(--surface-color);
}

.profile-info h2 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.user-age-distance {
  color: var(--text-secondary);
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
}

.user-status {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.8rem;
}

.online-badge {
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.profile-details {
  margin-bottom: 1.5rem;
}

.profile-section {
  margin-bottom: 1rem;
}

.profile-section h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1rem;
}

.profile-section p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.like-btn-large,
.message-btn-large,
.pass-btn-large {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.like-btn-large {
  background: linear-gradient(135deg, #ff6b35, #ff8e53);
  color: white;
}

.like-btn-large:hover {
  background: linear-gradient(135deg, #e55a00, #ff6b35);
  transform: translateY(-2px);
}

.message-btn-large {
  background: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.message-btn-large:hover {
  background: var(--card-color);
  border-color: var(--primary-color);
}

.pass-btn-large {
  background: var(--error-color);
  color: white;
}

.pass-btn-large:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1rem;
}

/* Large status indicator for profile modal */
.user-status-large {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
  background: #ccc;
  z-index: 3;
}

.user-status-large.online {
  background: #4CAF50;
  animation: pulse-online 2s infinite;
}

.user-status-large.offline {
  background: #ccc;
}

.user-basic-info h2 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.user-age-distance {
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 0 0.25rem 0;
}

.user-last-seen {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-section {
  background: var(--card-color);
  padding: 1rem;
  border-radius: 8px;
}

.detail-section h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* User actions for profile detail view */
.user-detail .user-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* User actions for user cards in grid */
.user-card .user-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.action-btn {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.action-btn .btn-icon {
  font-size: 1.2rem;
}

.action-btn .btn-text {
  font-size: 0.8rem;
}

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

.like-btn:hover {
  background: #45a049;
  transform: translateY(-1px);
}

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

.message-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

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

.pass-btn:hover {
  background: #d32f2f;
  transform: translateY(-1px);
}

/* Profile Form Styles */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

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

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

/* Photo Upload System */
.photo-upload-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.photo-upload-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.main-photo {
  align-self: center;
  max-width: 200px;
}

.additional-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.photo-preview {
  position: relative;
  width: 100%;
  height: 150px;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--background-secondary);
}

.main-photo .photo-preview {
  height: 200px;
}

.photo-preview:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem;
}

.photo-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.photo-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.photo-input {
  display: none;
}

.remove-photo-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.remove-photo-btn:hover {
  background-color: rgba(255, 0, 0, 1);
}

.photo-upload-info {
  margin-top: 0.5rem;
  text-align: center;
}

.photo-upload-info small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

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

.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #e55a2b);
  color: white;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e55a2b, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

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

.btn-secondary:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 300px;
}

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

.notification-success {
  background: var(--success-color);
}

.notification-error {
  background: var(--error-color);
}

.notification-info {
  background: var(--primary-color);
}

.notification-warning {
  background: #ff9800;
}

/* Chat Modal Styles */
.chat-modal {
  width: 90%;
  max-width: 500px;
  height: 80vh;
  max-height: 600px;
  padding: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chat-modal.show {
  opacity: 1;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 12px 12px 0 0;
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-user-details h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chat-status {
  font-size: 12px;
  opacity: 0.8;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-action-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.chat-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.favorite-btn {
  position: relative;
}

.favorite-btn.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.favorite-btn.active .star-icon {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.star-icon {
  transition: all 0.2s ease;
}

/* Favorites View Styles */
.favorites-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.favorite-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--card-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.favorite-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
}

.favorite-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.favorite-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  font-size: 1.5rem;
}

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

.favorite-info h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.favorite-age {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.favorite-status {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.favorite-status.online {
  color: var(--success-color);
}

.favorite-actions {
  display: flex;
  gap: 8px;
}

.favorite-action-btn {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

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

.favorite-action-btn.remove-btn:hover {
  background: var(--error-color);
  border-color: var(--error-color);
}

.no-favorites {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 16px;
}

.close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-chat:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  word-wrap: break-word;
  position: relative;
}

.message.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-bottom-right-radius: 6px;
}

.message.received {
  align-self: flex-start;
  background: var(--card-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 6px;
}

.message-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
  display: block;
}

/* Enhanced message status styles */
.message-status {
  font-size: 0.7rem;
  margin-left: 5px;
  opacity: 0.7;
  transition: all 0.3s ease;
  display: inline-block;
}

.message-status.read {
  color: #4CAF50;
  opacity: 1;
}

.message-status.delivered {
  color: #2196F3;
  opacity: 0.8;
}

.message-status.sent {
  color: #FF9800;
  opacity: 0.6;
  animation: pulse 2s infinite;
}

/* Status animation */
.message-status.status-animated {
  animation: statusPulse 0.5s ease;
}

@keyframes statusPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Message appearance animation */
.message-appear {
  animation: messageSlideIn 0.3s ease-out;
}

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

/* Typing indicator styles */
.typing-indicator {
  animation: messageSlideIn 0.3s ease-out;
  margin-bottom: 8px;
}

.typing-indicator .message-content {
  background: #f0f0f0;
  border-radius: 18px;
  padding: 12px 16px;
  max-width: 200px;
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #007bff;
  animation: typingDots 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.typing-text {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

@keyframes typingDots {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Message status classes for styling */
.message.status-read .message-status {
  color: #4CAF50;
}

.message.status-delivered .message-status {
  color: #2196F3;
}

.message.status-sending .message-status {
  color: #FF9800;
}

/* Message footer styling */
.message-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.7;
}

.chat-input-container {
  display: flex;
  padding: 20px;
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 12px 12px;
  gap: 12px;
}

#chatInput {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  background: var(--background-color);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

#chatInput:focus {
  border-color: var(--primary-color);
}

.send-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  max-width: 80px;
  align-self: flex-start;
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

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

/* Match Modal Styles */
.match-modal {
  z-index: 2000;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e, #ffa8a8);
  animation: matchAppear 0.5s ease-out;
}

.match-content {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  max-width: 400px;
  margin: 10% auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: matchBounce 0.6s ease-out;
}

.match-header h2 {
  color: #ff6b6b;
  font-size: 28px;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.match-header p {
  color: #666;
  font-size: 16px;
  margin: 0 0 30px 0;
}

.match-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.match-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ff6b6b;
  animation: matchPulse 2s infinite;
}

.match-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-heart {
  font-size: 40px;
  animation: heartBeat 1.5s infinite;
}

.match-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.match-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.match-btn.send-message {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
}

.match-btn.send-message:hover {
  background: linear-gradient(135deg, #ff5252, #ff7979);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.match-btn.keep-playing {
  background: transparent;
  color: #666;
  border: 2px solid #ddd;
}

.match-btn.keep-playing:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

@keyframes matchAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes matchBounce {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

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

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

/* Matches Section Styles */
.matches-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.match-card {
  background: var(--card-color);
  border-radius: 20px;
  padding: 0;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.match-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.3);
  border-color: var(--primary-color);
}

.match-photo {
  position: relative;
  width: 100%;
  height: 70%;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  cursor: pointer;
}

.match-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.match-photo:hover img {
  transform: scale(1.1);
}

.match-photo .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.match-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.match-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px 15px 15px;
  text-align: center;
}

.match-name-overlay h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.match-info {
  padding: 15px;
  text-align: center;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.match-info h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-age {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.match-status {
  margin: 0 0 10px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.chat-btn, .profile-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.chat-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.chat-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), #cc4a00);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.profile-btn {
  background: var(--surface-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

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

/* Responsive design for matches */
@media (max-width: 768px) {
  .matches-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 15px;
  }
  
  .match-card {
    aspect-ratio: 2.5/4;
  }
  
  .match-photo .avatar-placeholder {
    font-size: 3rem;
  }
  
  .match-name-overlay {
    padding: 15px 10px 10px;
  }
  
  .match-name-overlay h4 {
    font-size: 0.95rem;
  }
  
  .match-info {
    padding: 12px;
  }
  
  .chat-btn, .profile-btn {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .matches-list {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    padding: 10px;
  }
  
  .match-card {
    aspect-ratio: 2/4;
  }
  
  .match-photo .avatar-placeholder {
    font-size: 2.5rem;
  }
  
  .match-name-overlay h4 {
    font-size: 0.85rem;
  }
  
  .match-age, .match-status {
    font-size: 0.75rem;
  }
  
  .chat-btn, .profile-btn {
    padding: 5px 6px;
    font-size: 0.7rem;
  }
}

.match-action-btn.profile-btn:hover {
  background: #e9ecef;
  border-color: #ccc;
}

.no-matches {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
  grid-column: 1 / -1;
}

/* Messages Section Styles */
.messages-list {
  padding: 20px;
}

.conversation-card {
  display: flex;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.conversation-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border-left-color: #ff6b6b;
}

.conversation-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  margin-right: 15px;
  flex-shrink: 0;
}

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

.conversation-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid white;
}

.conversation-status.online {
  background: #4CAF50;
}

.conversation-status.offline {
  background: #ccc;
}

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

.conversation-info h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.last-message {
  margin: 0 0 5px 0;
  color: #666;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-time {
  font-size: 12px;
  color: #999;
}

.unread-indicator {
  font-size: 20px;
  margin-left: 10px;
  animation: pulse 2s infinite;
}

.no-messages {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
}

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

/* Scrollbar styling for chat messages */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--surface-color);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Group Chat Styles */
.group-chat-modal {
  max-width: 800px;
  width: 90vw;
  height: 80vh;
  max-height: 600px;
}

.groups-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.group-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.group-item:hover {
  background: var(--hover-bg);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.group-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 16px;
  flex-shrink: 0;
}

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

.group-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-members {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.group-last-message {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.group-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.group-unread {
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.create-group-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.create-group-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Group Chat Interface */
.group-chat-interface {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.group-chat-header {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.back-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  margin-right: 16px;
  transition: background 0.2s ease;
}

.back-btn:hover {
  background: var(--hover-bg);
}

.group-info h4 {
  margin: 0 0 4px 0;
  color: var(--text-primary);
  font-size: 18px;
}

.group-info span {
  color: var(--text-secondary);
  font-size: 14px;
}

.group-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
}

.group-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.group-message.own {
  flex-direction: row-reverse;
}

.group-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.group-message.own .group-message-avatar {
  background: var(--accent-color);
}

.group-message-content {
  max-width: 70%;
  display: flex;
  flex-direction: column;
}

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

.group-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.group-message.own .group-message-header {
  flex-direction: row-reverse;
}

.group-message-sender {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
}

.group-message-time {
  font-size: 11px;
  color: var(--text-secondary);
}

.group-message-bubble {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 16px;
  color: var(--text-primary);
  word-wrap: break-word;
}

.group-message.own .group-message-bubble {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.group-chat-input-container {
  display: flex;
  gap: 12px;
  padding: 16px 0 0 0;
  border-top: 1px solid var(--border-color);
}

#groupChatInput {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

#groupChatInput:focus {
  border-color: var(--primary-color);
}

.send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

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

.send-btn:disabled {
  background: var(--border-color);
  cursor: not-allowed;
  transform: none;
}

/* Create Group Form */
.create-group-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.create-group-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.create-group-form label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.create-group-form input,
.create-group-form textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.create-group-form input:focus,
.create-group-form textarea:focus {
  border-color: var(--primary-color);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-secondary {
  padding: 12px 24px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.btn-primary {
  padding: 12px 24px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

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

.btn-primary:disabled {
  background: var(--border-color);
  cursor: not-allowed;
}

/* Empty State */
.groups-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.groups-empty h4 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.groups-empty p {
  margin: 0;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .group-chat-modal {
    width: 95vw;
    height: 90vh;
    margin: 5vh auto;
  }
  
  .group-item {
    padding: 12px;
  }
  
  .group-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin-right: 12px;
  }
  
  .group-name {
    font-size: 15px;
  }
  
  .group-members,
  .group-last-message {
    font-size: 13px;
  }
  
  .group-chat-messages {
    max-height: 250px;
  }
  
  .group-message-content {
    max-width: 85%;
  }
}

/* Video Call Styles */
.video-call-modal {
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
}

.video-call-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.video-streams {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.local-video {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--primary-color);
  background: #000;
  z-index: 10001;
}

.video-call-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 25px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.control-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--surface-color);
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.control-btn.end-call {
  background: var(--error-color);
}

.control-btn.end-call:hover {
  background: #d32f2f;
}

.control-btn.muted {
  background: var(--error-color);
}

.control-btn.video-off {
  background: var(--error-color);
}

/* Incoming Call Modal */
.incoming-call-modal {
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
}

.incoming-call-content {
  background: var(--surface-color);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.caller-info {
  margin-bottom: 30px;
}

.caller-avatar {
  font-size: 80px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

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

.incoming-caller-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 10px 0;
}

.call-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.call-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

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

.accept-btn:hover {
  background: #45a049;
  transform: translateY(-2px);
}

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

.decline-btn:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

/* Calling Modal */
.calling-modal {
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
}

.calling-content {
  background: var(--surface-color);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.calling-info {
  margin-bottom: 30px;
}

.calling-avatar {
  font-size: 80px;
  margin-bottom: 20px;
  animation: ring 1s infinite;
}

@keyframes ring {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(10deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-10deg); }
  50% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.calling-user-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 10px 0;
}

.calling-actions {
  display: flex;
  justify-content: center;
}

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

.cancel-btn:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

/* Video Call Button */
.video-call-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.video-call-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Responsive Design for Video Calls */
@media (max-width: 768px) {
  .local-video {
    width: 120px;
    height: 90px;
    top: 10px;
    right: 10px;
  }
  
  .video-call-controls {
    bottom: 20px;
    padding: 10px 20px;
  }
  
  .control-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .incoming-call-content,
  .calling-content {
    padding: 30px 20px;
  }
  
  .caller-avatar,
  .calling-avatar {
    font-size: 60px;
  }
  
  .call-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .call-btn {
    width: 100%;
  }
}

/* Message Compose Modal */
.compose-message-form {
  padding: 20px 0;
}

.recipient-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.recipient-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--card-color);
  border: 2px solid var(--primary-color);
  overflow: hidden;
}

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

.recipient-details h4 {
  margin: 0 0 5px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.recipient-details p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.message-input-container {
  margin-bottom: 20px;
}

.message-input-container textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--surface-color);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.3s ease;
}

.message-input-container textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.message-input-container textarea::placeholder {
  color: var(--text-muted);
}

.character-count {
  text-align: right;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.character-count.warning {
  color: var(--error-color);
}

.compose-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.compose-actions .btn {
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.compose-actions .btn-secondary:hover {
  background: var(--surface-color);
  color: var(--text-primary);
}

.compose-actions .btn-primary {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.compose-actions .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.compose-actions .btn-primary:disabled {
  background: var(--text-muted);
  border-color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

/* Responsive design for compose modal */
@media (max-width: 768px) {
  .compose-message-form {
    padding: 15px 0;
  }
  
  .recipient-info {
    padding: 12px;
  }
  
  .recipient-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .compose-actions {
    flex-direction: column;
  }
  
  .compose-actions .btn {
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-items {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem 1rem;
  }
  
  .nav-item {
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
  }
  
  .users-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .header-content {
    padding: 0 0.5rem;
  }
  
  .logo h1 {
    font-size: 1.2rem;
    color: var(--primary-color);
  }
  
  .content-area {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .users-grid {
    grid-template-columns: 1fr;
  }
  
  .view-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .filters {
    justify-content: center;
  }
}

/* Filters Modal */
.filters-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.filters-modal.hidden {
  display: none;
}

.filters-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.filters-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.close-filters {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-filters:hover {
  background: #f5f5f5;
  color: #666;
}

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

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.age-range {
  display: flex;
  gap: 15px;
  align-items: center;
}

.age-input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.age-input:focus {
  outline: none;
  border-color: #ff6b6b;
}

.age-separator {
  color: #999;
  font-weight: 600;
}

.distance-container {
  position: relative;
}

.distance-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.distance-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff6b6b;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.distance-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff6b6b;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.distance-value {
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
  color: #ff6b6b;
  font-size: 18px;
}

.filter-select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  background: white;
  transition: border-color 0.2s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #ff6b6b;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.filter-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #ff6b6b;
}

.checkbox-label {
  margin: 0;
  font-weight: 500;
  color: #555;
  cursor: pointer;
}

.filters-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.filter-btn {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-btn {
  background: #f5f5f5;
  color: #666;
}

.reset-btn:hover {
  background: #e0e0e0;
  color: #333;
}

.apply-btn {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
}

.apply-btn:hover {
  background: linear-gradient(135deg, #ff5252, #ff7979);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* Settings Section */
.settings-content {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin-bottom: 15px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.setting-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.setting-info {
  flex: 1;
}

.setting-info h3 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.setting-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.toggle-btn.active {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.toggle-btn:not(.active) {
  background: #f5f5f5;
  color: #666;
}

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

.setting-select {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.setting-select:focus {
  outline: none;
  border-color: #ff6b6b;
}

.distance-slider {
  width: 100px;
  height: 4px;
  border-radius: 2px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.distance-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff6b6b;
  cursor: pointer;
}

.distance-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff6b6b;
  cursor: pointer;
  border: none;
}

#distanceDisplay {
  font-weight: 600;
  color: #ff6b6b;
  min-width: 50px;
  text-align: center;
}

/* Dark mode styles */
body.dark-mode {
  background: #1a1a1a;
  color: #fff;
}

body.dark-mode .setting-item {
  background: #2d2d2d;
  color: #fff;
}

body.dark-mode .setting-info h3 {
  color: #fff;
}

body.dark-mode .setting-info p {
  color: #ccc;
}

body.dark-mode .setting-select {
  background: #3d3d3d;
  color: #fff;
  border-color: #555;
}

/* Moderation Stats Styles */
.setting-btn {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.setting-btn:hover {
  background: #e55a2b;
  transform: translateY(-1px);
}

.admin-section {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border-radius: 12px;
}

.admin-section .setting-info h3,
.admin-section .setting-info p {
  color: white;
}

.moderation-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stat-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e9ecef;
}

.stat-item h4 {
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 14px;
  font-weight: 600;
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: #ff6b35;
  display: block;
}

.recent-reports {
  margin-top: 30px;
}

.recent-reports h4 {
  margin-bottom: 15px;
  color: #495057;
}

.reports-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
}

.report-item {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.report-info {
  flex: 1;
}

.report-reason {
  font-weight: 600;
  color: #dc3545;
  font-size: 14px;
}

.report-date {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}

.report-user {
  font-size: 13px;
  color: #495057;
}

/* Dark mode styles for moderation */
.dark-mode .stat-item {
  background: #2a2a2a;
  border-color: #444;
}

.dark-mode .stat-item h4 {
  color: #e9ecef;
}

.dark-mode .recent-reports h4 {
  color: #e9ecef;
}

.dark-mode .reports-list {
  background: #2a2a2a;
  border-color: #444;
}

.dark-mode .report-item {
  border-color: #444;
}

.dark-mode .report-user {
  color: #e9ecef;
}

.dark-mode .report-date {
  color: #adb5bd;
}

/* Report Modal Styles */
.report-content {
  max-width: 500px;
  width: 90%;
}

.report-user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 20px;
}

.report-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.report-user-details h3 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 18px;
}

.report-user-details p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.report-reasons {
  margin-bottom: 20px;
}

.report-reason {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  margin-bottom: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-reason:hover {
  border-color: #ff6b6b;
  background: #fff5f5;
}

.report-reason input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #ff6b6b;
}

.report-reason input[type="radio"]:checked + .reason-text {
  color: #ff6b6b;
}

.reason-text {
  flex: 1;
}

.reason-text strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.reason-text small {
  color: #666;
  font-size: 13px;
  line-height: 1.3;
}

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

.report-details label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.report-details textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.report-details textarea:focus {
  outline: none;
  border-color: #ff6b6b;
}

.report-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.report-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn {
  background: #f5f5f5;
  color: #666;
}

.cancel-btn:hover {
  background: #e0e0e0;
}

.submit-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Moderation Stats Modal */
#moderationStatsModal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#moderationStatsModal.show {
  opacity: 1;
}

/* Dark mode for report modal */
body.dark-mode .report-user-info {
  background: #2d2d2d;
}

body.dark-mode .report-user-details h3 {
  color: #fff;
}

body.dark-mode .report-user-details p {
  color: #ccc;
}

body.dark-mode .report-reason {
  border-color: #555;
  background: #2d2d2d;
}

body.dark-mode .report-reason:hover {
  border-color: #ff6b6b;
  background: #3d2d2d;
}

body.dark-mode .reason-text small {
  color: #aaa;
}

body.dark-mode .report-details label {
  color: #fff;
}

body.dark-mode .report-details textarea {
  background: #3d3d3d;
  color: #fff;
  border-color: #555;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-card {
  animation: fadeIn 0.5s ease-out;
}

/* Chat Input Enhancements */
.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--surface-color);
  border-radius: 25px;
  border: 1px solid var(--border-color);
}

.emoji-btn, .photo-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.emoji-btn:hover, .photo-btn:hover {
  background: var(--background-color);
}

.chat-input-container #chatInput {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  color: var(--text-primary);
}

/* Emoji Picker */
.emoji-picker {
  position: absolute;
  bottom: 70px;
  left: 12px;
  right: 12px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 300px;
  overflow: hidden;
}

.emoji-categories {
  display: flex;
  background: var(--background-color);
  border-bottom: 1px solid var(--border-color);
  padding: 8px;
  gap: 4px;
}

.emoji-category {
  background: none;
  border: none;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.emoji-category:hover {
  background: var(--surface-color);
}

.emoji-category.active {
  background: var(--primary-color);
  color: white;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.emoji-item {
  background: none;
  border: none;
  font-size: 20px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.emoji-item:hover {
  background: var(--background-color);
}

/* Photo Message Styles */
.message-photo {
  max-width: 200px;
  max-height: 200px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.message-photo:hover {
  transform: scale(1.02);
}

.photo-preview {
  position: relative;
  display: inline-block;
}

.photo-preview::after {
  content: "🔒";
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Photo modal styles */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-modal.show {
  opacity: 1;
}

.photo-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-photo-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.close-photo-modal:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Premium Store Styles */
.premium-store-modal {
  max-width: 800px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.store-header {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  margin: -1.5rem -1.5rem 2rem -1.5rem;
  border-radius: 12px 12px 0 0;
  color: white;
}

.store-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.store-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.store-products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.store-product-card {
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.store-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.store-product-card.popular {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b35, #ff8e53);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 16px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  100% {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6), 0 4px 8px rgba(0, 0, 0, 0.15);
  }
}

.product-header {
  padding: 2rem 1.5rem 1rem 1.5rem;
  text-align: center;
  color: white;
  position: relative;
  background: linear-gradient(135deg, var(--plan-gradient-start, #ff6b35), var(--plan-gradient-end, #ff8e53));
  border-radius: 16px 16px 0 0;
}

.product-name {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.product-duration {
  opacity: 0.9;
  font-size: 1rem;
}

.product-pricing {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.current-price {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b35, #ff8e53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.original-price {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.discount-badge {
  display: inline-block;
  background: var(--success-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-features {
  padding: 1.5rem;
}

/* Plan-specific styles */
.payment-plan-card[data-plan="unlimited"],
.store-product-card[data-plan="unlimited"] {
  --plan-color: var(--unlimited-color);
  --plan-gradient-start: var(--unlimited-gradient-start);
  --plan-gradient-end: var(--unlimited-gradient-end);
}

.payment-plan-card[data-plan="unlimited"] .product-header,
.store-product-card[data-plan="unlimited"] .product-header {
  background: linear-gradient(135deg, var(--unlimited-gradient-start), var(--unlimited-gradient-end));
}

.payment-plan-card[data-plan="unlimited"] .current-price,
.store-product-card[data-plan="unlimited"] .current-price {
  background: linear-gradient(135deg, var(--unlimited-gradient-start), var(--unlimited-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-plan-card[data-plan="unlimited"] .popular-badge,
.store-product-card[data-plan="unlimited"] .popular-badge {
  background: linear-gradient(135deg, var(--unlimited-gradient-start), var(--unlimited-gradient-end));
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.payment-plan-card[data-plan="unlimited"].popular,
.store-product-card[data-plan="unlimited"].popular {
  border-color: var(--unlimited-color);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Hover effects */
.payment-plan-card:hover,
.store-product-card:hover {
  transform: translateY(-4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-plan-card[data-plan="unlimited"]:hover {
  border-color: var(--unlimited-color);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.payment-plan-card[data-plan="xtra"]:hover,
.store-product-card[data-plan="xtra"]:hover {
  border-color: var(--xtra-color);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .payment-plan-card,
  .store-product-card {
    margin: 0.5rem;
    padding: 1rem;
    min-height: auto;
  }
  
  .payment-plan-card .plan-title,
  .store-product-card .product-name {
    font-size: 1.1rem;
  }
  
  .payment-plan-card .plan-price,
  .store-product-card .current-price {
    font-size: 1.8rem;
  }
  
  .mercadopago-button,
  .subscribe-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .payment-plan-card,
  .store-product-card {
    margin: 0.25rem;
    padding: 0.75rem;
  }
  
  .popular-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
  }
  
  .features-list {
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .features-list li {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.feature-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.feature-name {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.subscribe-btn {
  width: calc(100% - 2rem);
  margin: 0 1rem 1rem;
  background: linear-gradient(135deg, var(--primary-color), #e55a2b);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 1.25rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  font-weight: 600;
  border-radius: 0 0 16px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  background: linear-gradient(135deg, #e55a2b, var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.subscribe-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.store-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.terms-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.store-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Upgrade Prompt Modal */
.upgrade-prompt-modal {
  max-width: 400px;
  width: 90vw;
}

.upgrade-content {
  text-align: center;
  padding: 2rem;
}

.upgrade-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.feature-icon-large {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.upgrade-feature h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.upgrade-feature p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.upgrade-text {
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 1rem;
}

.upgrade-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.upgrade-actions button {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Premium indicators */
.premium-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Subscription status */
.subscription-active {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--success-color);
  color: white;
  border-radius: 8px;
}

.subscription-inactive {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.status-icon {
  font-size: 1.2rem;
}

.status-info {
  flex: 1;
}

.plan-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.expiry-date, .upgrade-text {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Responsive design for premium store */
@media (max-width: 768px) {
  .store-products-container {
    grid-template-columns: 1fr;
  }
  
  .premium-store-modal {
    width: 95vw;
    margin: 1rem;
  }
  
  .upgrade-actions {
    flex-direction: column;
  }
  
  .upgrade-actions button {
    width: 100%;
  }
}

/* ===== MODERATION SYSTEM ===== */
.moderation-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.btn-report, .btn-block {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-report:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-report.reported {
  background: var(--text-muted);
  cursor: not-allowed;
}

/* Icon styles for moderation buttons */
.icon-flag::before {
  content: "🚩";
  margin-right: 5px;
}

.icon-lock::before {
  content: "🔒";
  margin-right: 5px;
}

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

.btn-block:hover {
  background: #d32f2f;
  transform: translateY(-1px);
}

.btn-block.blocked {
  background: var(--success-color);
}

.btn-block.blocked:hover {
  background: #43a047;
}

/* Report Modal */
.report-modal {
  max-width: 500px;
}

.report-modal .form-group {
  margin-bottom: 20px;
}

.report-modal label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.report-modal select,
.report-modal textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: var(--surface-color);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.report-modal select:focus,
.report-modal textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.report-modal textarea {
  min-height: 100px;
  resize: vertical;
}

.char-count {
  display: block;
  text-align: right;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkmark {
  font-size: 14px;
}

/* Blocked Users Modal */
.blocked-users-modal {
  max-width: 600px;
}

.blocked-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--card-color);
}

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

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 500;
  color: var(--text-primary);
}

.blocked-date {
  font-size: 12px;
  color: var(--text-muted);
}

.unblock-btn {
  padding: 6px 12px;
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.unblock-btn:hover {
  background: #43a047;
}

/* My Reports Modal */
.my-reports-modal {
  max-width: 700px;
}

.report-item {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--card-color);
}

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

.report-reason {
  font-weight: 500;
  color: var(--text-primary);
}

.report-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.status-reviewed {
  background: rgba(23, 162, 184, 0.2);
  color: #17a2b8;
}

.status-resolved {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success-color);
}

.status-dismissed {
  background: rgba(244, 67, 54, 0.2);
  color: var(--error-color);
}

.report-details {
  color: var(--text-secondary);
}

.report-date {
  font-size: 12px;
  margin: 0;
}

.report-description {
  margin: 8px 0 0 0;
  font-style: italic;
}

/* Empty and Error States */
.empty-state, .error-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-style: italic;
}

.error-state {
  color: var(--error-color);
}

/* Loading State */
.loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: slideInRight 0.3s ease;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  gap: 10px;
}

.notification-success {
  background: rgba(76, 175, 80, 0.2);
  border-left: 4px solid var(--success-color);
  color: var(--success-color);
}

.notification-error {
  background: rgba(244, 67, 54, 0.2);
  border-left: 4px solid var(--error-color);
  color: var(--error-color);
}

.notification-info {
  background: rgba(23, 162, 184, 0.2);
  border-left: 4px solid #17a2b8;
  color: #17a2b8;
}

.notification-message {
  flex: 1;
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.notification-close:hover {
  opacity: 1;
}

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

/* Icons */
.icon-flag::before { content: '🚩'; }
.icon-lock::before { content: '🔒'; }
.icon-unlock::before { content: '🔓'; }
.icon-user::before { content: '👤'; }

/* Responsive design for moderation */
@media (max-width: 768px) {
  .moderation-buttons {
    flex-direction: column;
    gap: 4px;
  }
  
  .btn-report, .btn-block {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .blocked-user-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .report-modal, .blocked-users-modal, .my-reports-modal {
    max-width: none;
    margin: 10px;
  }
}
/**
 * Estilos para el Panel de Administración de Verificaciones
 */

/* Contenedor principal del panel de administración */
.admin-panel-container {
  z-index: 1050;
}

.admin-panel-popup {
  background-color: var(--surface-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 0;
  max-width: 100%;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
}

.admin-panel-close {
  color: var(--text-primary);
  font-size: 1.5rem;
  top: 10px;
  right: 10px;
}

/* Estructura del panel */
.admin-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 80vh;
  overflow: hidden;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--surface-color);
}

.admin-panel-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.admin-panel-header .badge {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Tabs de navegación */
.admin-panel-tabs {
  display: flex;
  background-color: var(--card-color);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-panel-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.tab-btn.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  background-color: rgba(255, 107, 53, 0.1);
}

/* Contenido del panel */
.admin-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--surface-color);
}

/* Filtros */
.admin-panel-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-panel-filters select {
  background-color: var(--card-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  min-width: 180px;
}

/* Contenedor de solicitudes */
.verification-requests-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

/* Tarjeta de solicitud */
.verification-request-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-color);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.verification-request-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .verification-request-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Información de usuario */
.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .user-info {
    margin-bottom: 0;
    flex: 1;
  }
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.user-details h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.user-details p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Información de solicitud */
.request-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .request-info {
    margin-bottom: 0;
    flex: 1;
    align-items: center;
  }
}

.request-type {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.request-type.photo {
  background-color: rgba(25, 118, 210, 0.2);
  color: #42a5f5;
}

.request-type.identity {
  background-color: rgba(156, 39, 176, 0.2);
  color: #ce93d8;
}

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

/* Acciones de solicitud */
.request-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .request-actions {
    justify-content: flex-end;
    flex: 1;
  }
}

.request-actions button {
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-view {
  background-color: var(--card-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color) !important;
}

.btn-view:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-approve {
  background-color: rgba(76, 175, 80, 0.2);
  color: #81c784;
}

.btn-approve:hover {
  background-color: rgba(76, 175, 80, 0.3);
}

.btn-reject {
  background-color: rgba(244, 67, 54, 0.2);
  color: #e57373;
}

.btn-reject:hover {
  background-color: rgba(244, 67, 54, 0.3);
}

/* Paginación */
.admin-panel-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.admin-panel-pagination button {
  padding: 8px 15px;
  background-color: var(--card-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-panel-pagination button:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-panel-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-panel-pagination span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Estado vacío */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
  background-color: var(--card-color);
  border-radius: 10px;
  border: 1px dashed var(--border-color);
}

/* Perfil de usuario en modal */
.admin-user-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user-profile-header {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.user-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.user-profile-info h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
}

.user-profile-info p {
  margin: 5px 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.user-profile-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.user-profile-details h4 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.user-profile-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-profile-details li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
}

.user-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.user-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.user-photo:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* Botón de administración */
.btn-admin {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: rgba(244, 67, 54, 0.2);
  color: #e57373;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin:hover {
  background-color: rgba(244, 67, 54, 0.3);
}

.icon-shield {
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 767px) {
  .admin-panel-popup {
    width: 95%;
    max-height: 95vh;
  }
  
  .admin-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .admin-panel-header .badge {
    align-self: flex-start;
  }
  
  .admin-panel-filters {
    flex-direction: column;
  }
  
  .request-actions {
    justify-content: center;
  }
}

/* Estilos para el contenedor de métricas */
.verification-metrics-wrapper {
  width: 100%;
  min-height: 500px;
  padding: 20px;
}

/* Estados de carga y error */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  color: #666;
}

.loading-state .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  color: #e74c3c;
  padding: 20px;
}

.error-state i {
  font-size: 48px;
  margin-bottom: 20px;
}

.error-state h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.error-state p {
  margin-bottom: 20px;
  max-width: 600px;
}

.retry-button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.retry-button:hover {
  background-color: #2980b9;
}/* Estilos para formularios accesibles */
.accessible-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: var(--form-bg, #ffffff);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  .accessible-form {
    --form-bg: #2a2a2a;
    --text-color: #f0f0f0;
    --border-color: #444;
    --error-color: #ff6b6b;
    --primary-color: #6b9fff;
    --disabled-bg: #333;
    --disabled-color: #888;
  }
}

/* Estilos para el título del formulario */
.form-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color, #333);
}

/* Estilos para la descripción del formulario */
.form-description {
  margin-bottom: 1.5rem;
  color: var(--text-color, #666);
  font-size: 0.9rem;
}

/* Estilos para los mensajes de error del formulario */
.form-error {
  background-color: rgba(255, 107, 107, 0.1);
  border-left: 4px solid var(--error-color, #ff6b6b);
  color: var(--error-color, #ff6b6b);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Estilos para el contenedor de campos */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Estilos para el contenedor de acciones */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Estilos para el botón de envío */
.submit-button {
  background-color: var(--primary-color, #ff6b6b);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.submit-button:hover {
  background-color: var(--primary-hover, #ff5252);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(255, 107, 107, 0.5);
  outline-offset: 2px;
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  background-color: var(--disabled-bg, #cccccc);
  color: var(--disabled-color, #888888);
  cursor: not-allowed;
  transform: none;
}

/* Estilos para el botón de cancelar */
.cancel-button {
  background-color: transparent;
  color: var(--text-color, #666);
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.cancel-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.cancel-button:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.1);
  outline-offset: 2px;
}

.cancel-button:active {
  transform: translateY(1px);
}

.cancel-button:disabled {
  color: var(--disabled-color, #cccccc);
  border-color: var(--disabled-border, #eeeeee);
  cursor: not-allowed;
  transform: none;
}

/* Estilos para campos accesibles */
.accessible-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  font-weight: 500;
  color: var(--text-color, #333);
  display: flex;
  align-items: center;
}

.required-mark {
  color: var(--error-color, #ff6b6b);
  margin-left: 0.25rem;
}

.accessible-input {
  padding: 0.75rem;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  background-color: var(--input-bg, #fff);
  color: var(--text-color, #333);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.accessible-input:focus {
  border-color: var(--primary-color, #ff6b6b);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
  outline: none;
}

.accessible-input.input-error {
  border-color: var(--error-color, #ff6b6b);
}

.accessible-input:disabled {
  background-color: var(--disabled-bg, #f5f5f5);
  color: var(--disabled-color, #aaa);
  cursor: not-allowed;
}

.help-text {
  font-size: 0.85rem;
  color: var(--text-color, #666);
}

.error-message {
  font-size: 0.85rem;
  color: var(--error-color, #ff6b6b);
  font-weight: 500;
}

/* Estilos para select */
select.accessible-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* Estilos para textarea */
textarea.accessible-input {
  min-height: 100px;
  resize: vertical;
}

/* Estilos responsivos */
@media (max-width: 600px) {
  .accessible-form {
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .submit-button,
  .cancel-button {
    width: 100%;
    padding: 0.875rem;
  }
}