/* ========================================
   AFG Services Finder - Modern E-Commerce Theme
   ======================================== */

:root {
  /* Primary Colors */
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --primary-light: #a5b4fc;
  --secondary: #22d3ee;
  --secondary-dark: #06b6d4;
  
  /* Accent Colors */
  --accent: #fbbf24;
  --accent-dark: #f59e0b;
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --info: #60a5fa;
  
  /* Dark Background Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-dark: #020617;
  --bg-card: rgba(30, 41, 59, 0.8);
  
  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  
  /* Border & Shadows */
  --border-color: rgba(148, 163, 184, 0.1);
  --border-light: rgba(148, 163, 184, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Global Styles
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  direction: rtl;
  font-family: 'Vazirmatn', 'Segoe UI', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Glassmorphism Effect for Dark Theme */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

/* Glowing Effects */
.glow-primary {
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
}

.glow-secondary {
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

/* ========================================
   Modern Navbar
   ======================================== */

.navbar-modern {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-modern {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-modern i {
  -webkit-text-fill-color: var(--primary);
  font-size: 2rem;
}

.nav-menu-modern {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.nav-link-modern {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  position: relative;
}

.nav-link-modern:hover,
.nav-link-modern.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

/* Hide mobile menu toggle by default (desktop) */
.mobile-menu-toggle {
  display: none;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Hide mobile buttons on desktop */
.mobile-auth-buttons {
  display: none;
}

/* Show desktop buttons by default */
.desktop-only {
  display: flex;
}

/* ========================================
   Buttons
   ======================================== */

.btn-modern {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary-modern {
  background: var(--bg-primary);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary-modern:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline-modern {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(148, 163, 184, 0.3);
}

.btn-outline-modern:hover {
  background: rgba(129, 140, 248, 0.1);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-danger-modern {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
}

.btn-danger-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(248, 113, 113, 0.4);
}

.btn-ghost-modern {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost-modern:hover {
  background: var(--bg-tertiary);
  color: var(--primary);
}

/* ========================================
   Hero Section - Modern E-commerce
   ======================================== */

.hero-modern {
  position: relative;
  padding: 6rem 0 8rem;
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(129, 140, 248, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.hero-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(148,163,184,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(129, 140, 248, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(241, 245, 249, 0.85);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-search {
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
}

.hero-search-input {
  width: 100%;
  padding: 1.25rem 3.5rem 1.25rem 1.5rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  font-size: 1.1rem;
  color: var(--text-primary);
  transition: var(--transition-base);
  box-shadow: var(--shadow-xl);
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1), var(--shadow-xl);
}

.hero-search-icon {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 4rem auto 0;
}

.hero-stat {
  text-align: center;
  color: var(--text-light);
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.95rem;
  color: rgba(241, 245, 249, 0.8);
}

/* ========================================
   Section Headers
   ======================================== */

.section-modern {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title-modern {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Service Cards - Modern E-commerce
   ======================================== */

.services-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card-modern {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: var(--transition-slow);
  border: 1px solid var(--border-color);
  position: relative;
}

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

.card-image-modern {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-image-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-card-modern:hover .card-image-modern img {
  transform: scale(1.1);
}

.card-badge-modern {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.card-content-modern {
  padding: 1.75rem;
}

.card-title-modern {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-description-modern {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.card-meta-modern {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card-meta-item i {
  color: var(--primary);
  width: 20px;
}

.card-actions-modern {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.btn-card-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-align: center;
  transition: var(--transition-base);
}

.btn-card-primary:hover {
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.btn-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  color: var(--primary);
  transition: var(--transition-base);
}

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

/* ========================================
   Features Section
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  transition: var(--transition-slow);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.feature-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(129, 140, 248, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="rgba(148,163,184,0.08)"/></svg>');
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-subtitle {
  font-size: 1.25rem;
  color: rgba(241, 245, 249, 0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition-base);
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.4);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(129, 140, 248, 0.5);
}

.btn-cta-secondary {
  background: rgba(30, 41, 59, 0.6);
  color: var(--text-light);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid rgba(148, 163, 184, 0.3);
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ========================================
   Footer - Modern
   ======================================== */

.footer-modern {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-modern {
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: white;
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-base);
}

.footer-link:hover {
  color: var(--primary-light);
  padding-right: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .section-title-modern {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block !important;
  }
  
  .nav-menu-modern {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 80px);
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem;
    gap: 0.5rem;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-2xl);
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-menu-modern.active {
    right: 0;
  }
  
  .nav-menu-modern li {
    width: 100%;
  }
  
  .nav-link-modern {
    display: block;
    padding: 1rem;
    border-radius: var(--radius-lg);
  }
  
  /* Show mobile buttons, hide desktop buttons */
  .mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
  }
  
  .mobile-auth-buttons .btn-modern {
    width: 100%;
    justify-content: center;
  }
  
  .desktop-only {
    display: none !important;
  }
  
  /* Profile Page Mobile */
  .profile-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-title {
    font-size: 2rem;
  }
  
  /* General Mobile */
  .hero-modern {
    padding: 4rem 0 6rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .section-modern {
    padding: 3rem 0;
  }
  
  .section-title-modern {
    font-size: 1.75rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   Profile Page - Modern Dark Theme
   ======================================== */

.profile-page-modern {
  min-height: calc(100vh - 200px);
  padding: 3rem 0 5rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-primary) 100%);
}

.profile-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.profile-avatar-upload {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  position: relative;
  border-radius: 50%;
  overflow: visible;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 24px rgba(129, 140, 248, 0.4);
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: white;
  box-shadow: 0 8px 24px rgba(129, 140, 248, 0.4);
}

.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.4);
  transition: var(--transition-base);
  border: 3px solid var(--bg-card);
}

.avatar-upload-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(129, 140, 248, 0.5);
}

.avatar-upload-btn i {
  font-size: 1rem;
}

.profile-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.profile-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-slow);
}

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

.profile-card-danger {
  border-color: rgba(248, 113, 113, 0.3);
}

.profile-card-danger:hover {
  border-color: var(--danger);
}

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

.profile-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.profile-card-icon.icon-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
}

.profile-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.profile-card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-label-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-label-modern i {
  color: var(--primary);
}

.form-input-modern {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1);
}

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

.form-error {
  font-size: 0.875rem;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-lg);
  color: var(--success);
  font-weight: 500;
}

.verification-warning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-lg);
  color: var(--warning);
  font-size: 0.9rem;
}

.verification-warning i {
  font-size: 1.25rem;
}

.btn-verification {
  background: none;
  border: none;
  color: var(--warning);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.btn-verification:hover {
  color: var(--text-light);
}

.verification-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-lg);
  color: var(--success);
  font-size: 0.9rem;
}

.btn-profile-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

.btn-profile-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.4);
}

.btn-profile-primary:active {
  transform: translateY(0);
}

.danger-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.danger-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--radius-lg);
  color: var(--danger);
  font-size: 0.95rem;
  line-height: 1.6;
}

.danger-text i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.btn-profile-danger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
}

.btn-profile-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(248, 113, 113, 0.4);
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-2xl);
  animation: modalSlideIn 0.3s ease-out;
}

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

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

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.modal-close {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-base);
}

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

.modal-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

.btn-modal-secondary {
  flex: 1;
  padding: 0.875rem;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

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

.btn-modal-danger {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--danger), #dc2626);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
}

.btn-modal-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(248, 113, 113, 0.4);
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-search-input {
    padding: 1rem 3rem 1rem 1.25rem;
    font-size: 1rem;
  }
  
  .card-content-modern {
    padding: 1.25rem;
  }
  
  .btn-modern {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* ========================================
   Utilities
   ======================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-pattern {
  background-image: radial-gradient(circle at 1px 1px, var(--border-color) 1px, transparent 0);
  background-size: 40px 40px;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

.animate-pulse-slow {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* ========================================
   Authentication Pages (Dark Theme)
   ======================================== */

.auth-section-modern {
  min-height: calc(100vh - 250px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-primary));
  position: relative;
  overflow: hidden;
}

.auth-section-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.auth-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.auth-card-modern {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-2xl);
  transition: var(--transition-slow);
}

.auth-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.3);
}

.auth-icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-label-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-label-modern i {
  color: var(--secondary);
  font-size: 0.9rem;
}

.form-input-modern {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
  background: var(--bg-tertiary);
}

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

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

.remember-group-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-checkbox-modern {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
  cursor: pointer;
}

.remember-label-modern {
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0;
}

.forgot-password-link {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-base);
}

.forgot-password-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.btn-submit-modern {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.3);
  margin-top: 0.5rem;
}

.btn-submit-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(129, 140, 248, 0.4);
}

.btn-submit-modern i {
  transition: var(--transition-base);
}

.btn-submit-modern:hover i {
  transform: translateX(-4px);
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 1.5rem 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.auth-divider span {
  background: var(--bg-card);
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.auth-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-link-modern {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-base);
}

.auth-link-modern:hover {
  color: var(--primary);
  text-decoration: underline;
}

.error-message-modern {
  color: var(--danger);
  font-size: 0.85rem;
  background: rgba(248, 113, 113, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.2);
  margin-top: 0.25rem;
}

.is-invalid {
  border-color: var(--danger) !important;
}

/* Verification Page */
.verification-message {
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.verification-message i {
  color: var(--secondary);
  margin-left: 0.5rem;
}

.verification-success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.verification-success i {
  font-size: 1.2rem;
}

.verification-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-verify {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.3);
}

.btn-verify:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(129, 140, 248, 0.4);
}

.btn-verify i {
  font-size: 1.1rem;
}

.btn-logout {
  width: 100%;
  padding: 1rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--danger);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-logout:hover {
  background: rgba(248, 113, 113, 0.2);
  transform: translateY(-2px);
}

/* ========================================
   About Page (Dark Theme)
   ======================================== */

.about-card-modern {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
}

.about-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 10px 30px rgba(129, 140, 248, 0.3);
}

.about-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text {
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: justify;
}

.about-stats-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-slow);
}

.about-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.stat-icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  color: white;
}

.about-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.about-stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}
