/* ===============================
   CRITICAL PERFORMANCE CSS
   =============================== */

/* Prevent layout shifts with immediate font fallbacks */
body, html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-display: swap !important;
}

/* Critical layout to prevent CLS */
.hero-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
  contain: layout !important;
}

.login-card {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 20px 40px rgba(0, 132, 255, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1) !important;
  contain: layout style !important;
}

/* Prevent font loading layout shift */
.font-inter {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Optimized navbar scroll effects */
.navbar {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease !important;
  will-change: background-color, backdrop-filter !important;
}

/* Optimized loading animations */
.loading {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: opacity 0.6s ease, transform 0.6s ease !important;
}

.loading.animate-in,
.loaded .loading {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Hero content should load immediately for better LCP */
.hero-content .loading {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

/* Template styles are loaded from /css/style.css in layout.tsx */
/* Modern font family override */

/* Modern typography improvements */
.hero-title, .section-title, h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

.hero-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

p, .hero-description, .form-label, .form-input {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.005em !important;
}

/* Mobile responsive overrides - MUST come first to establish priority */

/* CRITICAL: Mobile responsive fixes for template CSS */
@media (max-width: 768px) {
  /* Force benefits grid to single column */
  body .benefits .benefits-grid,
  body section.benefits .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Force about section to flex column layout */
  body .about .about-container,
  body section.about .about-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 2rem !important;
    text-align: center !important;
  }
  
  body .about .about-content {
    order: 2 !important;
    max-width: 100% !important;
  }
  
  body .about .about-image {
    order: 1 !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
}

/* Dashboard CSS Reset - Prevent any global styles from affecting dashboard */
.dashboard-page {
  /* Reset any potential global margins/padding */
  margin: 0 !important;
  padding: 0 !important;
}

/* Force zero margins on html and body when dashboard is active */
html:has(.dashboard-page),
body:has(.dashboard-page) {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

/* Fallback for browsers without :has() support */
body.dashboard-active,
html.dashboard-active {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

/* Critical CSS to prevent flash on page refresh - Dashboard Navbar */
.dashboard-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  padding: 0 2rem !important;
  z-index: 1000 !important;
  height: 70px !important;
  background: var(--bg-primary) !important;
  border-bottom: 1px solid var(--border-color) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Prevent any margin/padding on dashboard pages */
.dashboard-page * {
  box-sizing: border-box;
}

/* Additional auth-specific styles */
.social-buttons {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.social-buttons p {
  text-align: center;
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 14px;
}

.btn-github {
  background-color: #333;
  color: white;
}

.btn-github:hover {
  background-color: #24292e;
}

.btn-google {
  background-color: #db4437;
  color: white;
}

.btn-google:hover {
  background-color: #c23321;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0084FF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #0066CC;
}

.user-info {
  text-align: center;
  margin: 50px auto;
  max-width: 500px;
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading {
  text-align: left;
  margin: 10px;
  font-size: 18px;
}

/* Login Card Container */
.login-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 132, 255, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 132, 255, 0.2), 0 12px 24px rgba(0, 0, 0, 0.15);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.login-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0, 132, 255, 0.1), rgba(0, 132, 255, 0.05));
  border-radius: 0 1rem 0 100%;
  z-index: 0;
}

/* Ensure content is above the decorative elements */
.login-card > * {
  position: relative;
  z-index: 1;
}

/* Center the login section properly */
#login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-top: calc(2rem + 120px); /* Account for navbar height + some padding */
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  box-sizing: border-box;
}

/* Onboarding sections (no navbar, so no top padding needed) */
.onboarding-page {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

#login .hero-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.onboarding-page .hero-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#login .hero-content,
.onboarding-page .hero-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Desktop and large screen login optimization */
@media (min-width: 1025px) {
  .login-card {
    max-width: 600px !important;
    padding: 3.5rem 4rem !important;
  }
  
  /* Onboarding cards should be wider for better grid layout */
  .onboarding-page .login-card {
    max-width: 1200px !important;
    padding: 4rem 5rem !important;
  }
  
  #login .hero-container,
  .onboarding-page .hero-container {
    max-width: 1300px !important;
  }
}

/* Ultra-wide screens (>1200px) - Enhanced centering for all resolutions */
@media (min-width: 1200px) {
  .onboarding-page {
    min-height: 100vh !important;
    width: 100vw !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3rem !important;
    position: relative !important;
  }
  
  .onboarding-page .hero-container {
    width: 100% !important;
    max-width: none !important; /* Remove max-width constraint */
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
  }
  
  .onboarding-page .hero-content {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
  }
  
  .onboarding-page .login-card {
    max-width: 1200px !important;
    width: auto !important; /* Let it size naturally within max-width */
    padding: 4rem 5rem !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
}

/* Extra ultra-wide screens (>1600px) - Increase card max-width for better proportions */
@media (min-width: 1600px) {
  .onboarding-page .login-card {
    max-width: 1400px !important;
    padding: 5rem 6rem !important;
  }
}

/* Extreme ultra-wide screens (>2400px) - Further increase for 4K+ displays */
@media (min-width: 2400px) {
  .onboarding-page {
    padding: 5rem !important;
  }
  
  .onboarding-page .login-card {
    max-width: 1800px !important;
    padding: 6rem 8rem !important;
  }
}

/* Tablet login optimization */
@media (max-width: 1024px) and (min-width: 769px) {
  .login-card {
    max-width: 700px !important;
    padding: 3rem !important;
  }
  
  /* Onboarding tablet optimization */
  .onboarding-page .login-card {
    max-width: 900px !important;
    padding: 3.5rem !important;
  }
  
  #login .hero-container,
  .onboarding-page .hero-container {
    max-width: 1000px !important;
  }
}

/* Enhanced login form styles */
.login-form {
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.alert {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

[data-theme="dark"] .alert {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  color: #ff6b6b;
}

.full-width {
  width: 100%;
}

/* Login Button Responsive Sizing */
.login-button.full-width {
  width: 100% !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

/* Desktop: Make login button smaller and centered */
@media (min-width: 769px) {
  .login-button.full-width {
    width: 70% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

/* Large Desktop: Even more refined */
@media (min-width: 1200px) {
  .login-button.full-width {
    width: 60% !important;
    max-width: 280px !important;
  }
}

/* Mobile: Keep full width */
@media (max-width: 768px) {
  .login-button.full-width {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Enhanced Login Footer Styling */
.login-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-text {
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
  margin-bottom: 1.5rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
}

.footer-text button {
  background: none !important;
  border: none !important;
  color: var(--accent-primary) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  font: inherit !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  border-bottom: 1px solid transparent !important;
  padding: 0 2px !important;
}

.footer-text button:hover {
  color: var(--accent-secondary) !important;
  border-bottom: 1px solid var(--accent-primary) !important;
  transform: translateY(-1px) !important;
}

.security-features {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 2rem !important;
  margin-top: 1.5rem !important;
  flex-wrap: wrap !important;
}

.security-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: var(--text-secondary) !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s ease !important;
}

.security-item:hover {
  opacity: 1 !important;
}

.security-item i {
  color: var(--accent-primary) !important;
  font-size: 0.9rem !important;
}

/* Mobile: Stack security features */
@media (max-width: 480px) {
  .security-features {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}

/* Forgot Password Link Styling */
.forgot-password-link {
  display: inline-block !important;
  text-align: right !important;
  margin-top: 0.75rem !important;
  padding: 0.5rem 1rem !important;
  color: var(--accent-primary) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  background: rgba(0, 132, 255, 0.08) !important;
  border: 1px solid rgba(0, 132, 255, 0.2) !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.1) !important;
}

.forgot-password-link:hover {
  color: #ffffff !important;
  background: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(0, 132, 255, 0.3) !important;
}

.forgot-password-link:active {
  transform: translateY(0px) !important;
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.2) !important;
}

/* Forgot Password Modal */
.forgot-password-modal {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  margin: 1.5rem 0 !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 32px rgba(0, 132, 255, 0.1) !important;
}

.forgot-password-modal h3 {
  color: var(--text-primary) !important;
  margin-bottom: 1rem !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
}

.forgot-password-modal p {
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  margin-bottom: 1.5rem !important;
}

/* Success Alert */
.alert.success {
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #22c55e !important;
}

.alert.success i {
  color: #22c55e !important;
}

/* Password Input with Toggle Button */
.password-input-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.password-input {
  padding-right: 3rem !important; /* Make space for the toggle button */
}

.password-toggle-btn {
  position: absolute !important;
  right: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  padding: 0.5rem !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2rem !important;
  height: 2rem !important;
}

.password-toggle-btn:hover {
  color: var(--accent-primary) !important;
  background: rgba(0, 132, 255, 0.1) !important;
}

.password-toggle-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.password-toggle-btn i {
  font-size: 0.9rem !important;
}

/* ===============================
   BUTTON SPACING IMPROVEMENTS
   =============================== */

/* Improve all button spacing globally */
.cta-button, .login-button, .secondary-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important; /* Space between icon and text */
}

/* Fix social login buttons */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important; /* Add space between icon and text */
}

/* Remove any existing margins from icons since we use gap */
.cta-button i, 
.login-button i, 
.secondary-button i,
.btn i {
  margin: 0 !important;
}

/* Dashboard button spacing */
.dashboard-btn, 
.nav-link, 
.action-button,
.sidebar-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important; /* Slightly larger gap for dashboard */
}

/* Dashboard specific improvements */
.stats-card .icon, 
.tool-card .icon {
  margin-right: 0.75rem !important;
}

/* Navbar button spacing */
.navbar .nav-link,
.navbar .dropdown-toggle,
.navbar .theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* Footer link spacing */
.footer-text button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

/* Forgot password link styling - simple text link */
.forgot-password-link {
  color: var(--accent-primary) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

/* Alert message spacing and styling */
.alert {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 1rem !important;
  margin: 1rem 0 !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  background: rgba(220, 38, 38, 0.1) !important;
  border: 1px solid rgba(220, 38, 38, 0.3) !important;
  color: #dc2626 !important;
  animation: shake 0.3s ease-in-out !important;
}

.alert.success {
  background: rgba(34, 197, 94, 0.1) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  color: #22c55e !important;
  animation: none !important;
}

.alert i {
  color: #dc2626 !important;
  font-size: 1rem !important;
  flex-shrink: 0 !important;
}

.alert.success i {
  color: #22c55e !important;
}

/* Shake animation for error alerts */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* Onboarding button spacing */
.role-option,
.discovery-option {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

/* Security features spacing */
.security-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.auth-toggle {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.auth-toggle p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.auth-toggle button {
  background: none;
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  font-size: 0.875rem;
}

.auth-toggle button:hover {
  color: var(--accent-secondary);
}

/* Mobile Responsive Styles for Homepage Sections */
@media (max-width: 768px) {
  /* How It Works Section - Benefits Grid */
  .benefits .benefits-container .benefits-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .benefits .benefit-card {
    margin-bottom: 1rem !important;
  }
  
  /* About Section - Override the grid layout completely */
  .about .about-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 2rem !important;
    text-align: center !important;
    align-items: center !important;
  }
  
  .about .about-content {
    max-width: 100% !important;
    margin-bottom: 2rem !important;
    padding-right: 0 !important;
    order: 2 !important;
  }
  
  .about .about-image {
    order: 1 !important; /* Move image above text on mobile */
    margin-bottom: 2rem !important;
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }
  
  .about .team-visual {
    height: 250px !important;
  }
  
  /* Stats Section - Single Column */
  .stats .stats-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  /* Pricing Grid - Single Column */
  .pricing .pricing-container .pricing-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Force all grid containers to be single column on mobile */
  section .benefits-grid,
  section .pricing-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Force all about containers to be flex column */
  section .about-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
  
  /* Section Headers - Better Mobile Spacing */
  .section-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  .section-subtitle {
    font-size: 1.1rem !important;
  }
  
  /* Hero Section Mobile Adjustments */
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.8rem !important;
  }
  
  .hero-description {
    font-size: 1.1rem !important;
  }
  
      /* Login Card Mobile Responsiveness */
      .login-card {
        padding: 2.5rem !important;
        margin: 1rem !important;
        max-width: calc(100vw - 2rem) !important;
        width: calc(100vw - 2rem) !important;
      }
      
      #login {
        padding: 1rem !important;
        padding-top: calc(1rem + 120px) !important; /* Account for navbar on mobile */
        min-height: 100vh !important;
      }
      
      /* Onboarding mobile (no navbar) */
      .onboarding-page {
        padding: 1rem !important;
        min-height: 100vh !important;
      }
      
      #login .hero-container,
      .onboarding-page .hero-container {
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
      }
      
      #login .hero-content,
      .onboarding-page .hero-content {
        display: flex !important;
        justify-content: center !important;
      }
  
  /* General Mobile Container Adjustments */
  .benefits-container,
  .about-container,
  .stats-container,
  .pricing-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Mobile section spacing */
  .benefits,
  .about,
  .stats,
  .pricing {
    padding-block: 3rem !important;
  }
}

/* Mobile Navigation Visibility Controls */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
  
  .desktop-only {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: flex !important;
  }
  
  /* Mobile navbar adjustments */
  .navbar {
    padding: 0.75rem 1rem !important;
  }
  
  .nav-container {
    justify-content: space-between !important;
  }
  
  .logo {
    font-size: 1.2rem !important;
  }
  
  .mobile-menu-toggle {
    background: none !important;
    border: none !important;
    color: var(--text-primary) !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
  }
  
  .mobile-menu-toggle:hover {
    background: rgba(0, 132, 255, 0.1) !important;
    color: var(--accent-primary) !important;
  }
  
  /* Mobile menu styling */
  .mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: var(--bg-primary) !important;
    backdrop-filter: blur(20px) !important;
    border-left: 1px solid var(--border-color) !important;
    z-index: 9999 !important;
    transition: right 0.3s ease !important;
    padding: 2rem 1.5rem !important;
    overflow-y: auto !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
  }
  
  .mobile-menu.active {
    right: 0 !important;
  }
  
  .mobile-nav-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
  }
  
  .mobile-nav-links li {
    margin-bottom: 1rem !important;
  }
  
  .mobile-nav-links a {
    display: block !important;
    padding: 0.75rem 0 !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: all 0.3s ease !important;
  }
  
  .mobile-nav-links a:hover {
    color: var(--accent-primary) !important;
    padding-left: 0.5rem !important;
  }
  
  .mobile-cta {
    margin-top: 2rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid var(--border-color) !important;
  }
  
  .mobile-cta .cta-button {
    width: 100% !important;
    margin-bottom: 1rem !important;
    justify-content: center !important;
  }
  
  .mobile-theme-toggle {
    margin: 2rem 0 !important;
    padding: 1rem 0 !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
  }
  
  .mobile-theme-toggle-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  .mobile-theme-label {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
  }
  
  /* Mobile menu overlay */
  .mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9998 !important;
    backdrop-filter: blur(2px) !important;
  }
}

/* Extra Small Mobile Screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.5rem !important;
  }
  
  .section-title {
    font-size: 1.75rem !important;
  }
  
  .mobile-menu {
    width: 90% !important;
    max-width: none !important;
  }
  
  .stats-container {
    grid-template-columns: 1fr !important;
  }
  
  .benefit-card {
    padding: 1.5rem !important;
  }
  
  .about-image {
    max-width: 250px !important;
  }
  
  /* Extra small login card adjustments */
  .login-card {
    padding: 2rem !important;
    margin: 0.5rem !important;
    width: calc(100vw - 1rem) !important;
    max-width: calc(100vw - 1rem) !important;
  }
  
  #login {
    padding: 0.5rem !important;
    padding-top: calc(0.5rem + 120px) !important; /* Account for navbar */
  }
  
  .login-card .hero-title {
    font-size: 1.75rem !important;
  }
  
  .login-card .hero-subtitle {
    font-size: 1.25rem !important;
  }
}

/* Tablet Responsive Styles */
@media (max-width: 1024px) and (min-width: 769px) {
  /* About Section - Better tablet layout */
  .about-container {
    gap: 2rem !important;
  }
  
  .about-content {
    flex: 1.2 !important;
  }
  
  .about-image {
    flex: 0.8 !important;
  }
  
  /* Benefits Grid - Two columns on tablet */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Stats - Two columns on tablet */
  .stats-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Dashboard responsive styles */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: block !important;
  }
  
  /* Hide sidebar on mobile by default */
  aside {
    left: -280px !important;
  }
  
  /* Adjust main content on mobile */
  main {
    margin-left: 0 !important;
    padding: 1rem !important;
  }
  
  /* Make stats grid single column on mobile */
  .dashboard-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Onboarding Flow Specific Styles */
.role-option:hover,
.discovery-option:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 132, 255, 0.15) !important;
}

    /* Onboarding Grid Layouts */
    @media (min-width: 1200px) {
      /* 3xN grid for onboarding choices on large screens (since we have fewer options now) */
      .onboarding-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
      }
    }

    @media (min-width: 769px) and (max-width: 1199px) {
      /* 2xN grid for onboarding choices on medium screens */
      .onboarding-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
      }
    }

/* Onboarding Mobile Responsiveness */
@media (max-width: 768px) {
  /* Make onboarding grids single column on mobile */
  .onboarding-grid,
  .login-card div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Onboarding card specific mobile adjustments */
  .role-option,
  .discovery-option {
    padding: 1rem !important;
  }
  
  .role-option div[style*="flex"],
  .discovery-option div[style*="flex"] {
    gap: 0.75rem !important;
  }
  
  .role-option h3,
  .discovery-option h3 {
    font-size: 1rem !important;
  }
  
  .role-option p,
  .discovery-option p {
    font-size: 0.85rem !important;
  }
}