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

/* Force website theme to override browser preferences */
html {
  color-scheme: light;
}

/* CSS Custom Properties for Neumorphism Design */
:root {
  /* Neumorphism Light Mode Colors */
  --bg-primary: #e0e5ec;
  --bg-secondary: #f0f4f8;
  --bg-tertiary: #f8fafc;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  
  /* Enhanced Neumorphic Shadow System */
  --shadow-light: #ffffff;
  --shadow-dark: #a3b1c6;
  
  /* Large Elements */
  --shadow-neumorphic: 15px 15px 30px #bebebe, -15px -15px 30px #ffffff;
  --shadow-neumorphic-inset: inset 15px 15px 30px #bebebe, inset -15px -15px 30px #ffffff;
  
  /* Medium Elements */
  --shadow-neumorphic-medium: 10px 10px 20px #bebebe, -10px -10px 20px #ffffff;
  --shadow-neumorphic-medium-inset: inset 10px 10px 20px #bebebe, inset -10px -10px 20px #ffffff;
  
  /* Small Elements */
  --shadow-neumorphic-small: 6px 6px 12px #bebebe, -6px -6px 12px #ffffff;
  --shadow-neumorphic-small-inset: inset 6px 6px 12px #bebebe, inset -6px -6px 12px #ffffff;
  
  /* Micro Elements */
  --shadow-neumorphic-micro: 3px 3px 6px #bebebe, -3px -3px 6px #ffffff;
  --shadow-neumorphic-micro-inset: inset 3px 3px 6px #bebebe, inset -3px -3px 6px #ffffff;
  
  /* Button States */
  --shadow-button: 6px 6px 12px #bebebe, -6px -6px 12px #ffffff;
  --shadow-button-hover: 8px 8px 16px #bebebe, -8px -8px 16px #ffffff;
  --shadow-button-pressed: inset 4px 4px 8px #bebebe, inset -4px -4px 8px #ffffff;
  
  /* Card Shadows */
  --shadow-card: 12px 12px 24px #bebebe, -12px -12px 24px #ffffff;
  --shadow-card-hover: 16px 16px 32px #bebebe, -16px -16px 32px #ffffff;
  
  /* Input Shadows - More Authentic Inset */
  --shadow-input: inset 8px 8px 16px #bebebe, inset -8px -8px 16px #ffffff;
  --shadow-input-focus: inset 6px 6px 12px #bebebe, inset -6px -6px 12px #ffffff, 0 0 0 2px rgba(102, 126, 234, 0.15);
  
  /* Message Shadows */
  --shadow-message: 4px 4px 8px #bebebe, -4px -4px 8px #ffffff;
  --shadow-message-hover: 6px 6px 12px #bebebe, -6px -6px 12px #ffffff;
  
  /* Legacy support */
  --border-primary: transparent;
  --border-secondary: transparent;
  --shadow-primary: var(--shadow-neumorphic);
  --shadow-secondary: var(--shadow-neumorphic-small);
  --shadow-accent: var(--shadow-button);
  --gradient-primary: linear-gradient(135deg, #667eea, #764ba2);
  --gradient-secondary: linear-gradient(135deg, #667eea, #764ba2);
}

/* Dark Mode Neumorphism Colors */
[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #2d3748;
  --bg-secondary: #1a202c;
  --bg-tertiary: #171923;
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --text-tertiary: #a0aec0;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  
  /* Enhanced Dark Neumorphic Shadow System */
  --shadow-light: #4a5568;
  --shadow-dark: #1a202c;
  
  /* Large Elements */
  --shadow-neumorphic: 15px 15px 30px #1a202c, -15px -15px 30px #4a5568;
  --shadow-neumorphic-inset: inset 15px 15px 30px #1a202c, inset -15px -15px 30px #4a5568;
  
  /* Medium Elements */
  --shadow-neumorphic-medium: 10px 10px 20px #1a202c, -10px -10px 20px #4a5568;
  --shadow-neumorphic-medium-inset: inset 10px 10px 20px #1a202c, inset -10px -10px 20px #4a5568;
  
  /* Small Elements */
  --shadow-neumorphic-small: 6px 6px 12px #1a202c, -6px -6px 12px #4a5568;
  --shadow-neumorphic-small-inset: inset 6px 6px 12px #1a202c, inset -6px -6px 12px #4a5568;
  
  /* Micro Elements */
  --shadow-neumorphic-micro: 3px 3px 6px #1a202c, -3px -3px 6px #4a5568;
  --shadow-neumorphic-micro-inset: inset 3px 3px 6px #1a202c, inset -3px -3px 6px #4a5568;
  
  /* Dark Button States */
  --shadow-button: 6px 6px 12px #1a202c, -6px -6px 12px #4a5568;
  --shadow-button-hover: 8px 8px 16px #1a202c, -8px -8px 16px #4a5568;
  --shadow-button-pressed: inset 4px 4px 8px #1a202c, inset -4px -4px 8px #4a5568;
  
  /* Dark Card Shadows */
  --shadow-card: 12px 12px 24px #1a202c, -12px -12px 24px #4a5568;
  --shadow-card-hover: 16px 16px 32px #1a202c, -16px -16px 32px #4a5568;
  
  /* Dark Input Shadows - More Authentic Inset */
  --shadow-input: inset 8px 8px 16px #1a202c, inset -8px -8px 16px #4a5568;
  --shadow-input-focus: inset 6px 6px 12px #1a202c, inset -6px -6px 12px #4a5568, 0 0 0 2px rgba(102, 126, 234, 0.25);
  
  /* Dark Message Shadows */
  --shadow-message: 4px 4px 8px #1a202c, -4px -4px 8px #4a5568;
  --shadow-message-hover: 6px 6px 12px #1a202c, -6px -6px 12px #4a5568;
  
  /* Legacy support */
  --border-primary: transparent;
  --border-secondary: transparent;
  --shadow-primary: var(--shadow-neumorphic);
  --shadow-secondary: var(--shadow-neumorphic-small);
  --shadow-accent: var(--shadow-button);
  --gradient-primary: linear-gradient(135deg, #667eea, #764ba2);
  --gradient-secondary: linear-gradient(135deg, #667eea, #764ba2);
}

html, body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: 
    radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(102, 126, 234, 0.04) 0%, transparent 50%),
    var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

html::before, body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.015) 0%, transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-y: auto;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

#root {
  height: 100%;
  overflow-y: auto;
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.App {
  text-align: left;
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
  justify-content: flex-start;
  padding-top: 0;
  position: relative;
  z-index: 1;
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}

/* Neumorphic Base Styles */
.neumorphic {
  background: var(--bg-primary);
  box-shadow: var(--shadow-neumorphic);
  border-radius: 20px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.neumorphic:active {
  box-shadow: var(--shadow-neumorphic-pressed);
  transform: translateY(0);
}

.neumorphic-inset {
  background: var(--bg-primary);
  box-shadow: var(--shadow-neumorphic-inset);
  border-radius: 20px;
  border: none;
}

.neumorphic-small {
  background: var(--bg-primary);
  box-shadow: var(--shadow-neumorphic-small);
  border-radius: 12px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neumorphic-small:hover {
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-1px);
}

.neumorphic-small:active {
  box-shadow: var(--shadow-button-pressed);
  transform: translateY(0);
}

/* Neumorphic Button Base */
.btn-neumorphic {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-neumorphic:hover {
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-2px);
}

.btn-neumorphic:active {
  box-shadow: var(--shadow-button-pressed);
  transform: translateY(0);
}

.btn-neumorphic:focus {
  outline: none;
  box-shadow: var(--shadow-button), 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Neumorphic Input Base */
.input-neumorphic {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  box-shadow: var(--shadow-input);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.input-neumorphic:focus {
  outline: none;
  box-shadow: var(--shadow-input-focus);
}

.input-neumorphic::placeholder {
  color: var(--text-tertiary);
}

/* Neumorphic Card Base */
.card-neumorphic {
  background: var(--bg-primary);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

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

/* Remove Chrome-specific fixes - they were making things worse */
/* Header Styles - Template Exact Match */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 70%),
    var(--bg-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-neumorphic-small-inset);
}

/* Ensure header is always clickable even when chat is open */
.header {
  pointer-events: auto;
}

/* Enhanced visibility when chat overlay is present */
body:has(.chat-overlay) .header {
  box-shadow: 
    var(--shadow-neumorphic-small-inset),
    0 0 0 1px rgba(102, 126, 234, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] body:has(.chat-overlay) .header {
  background: rgba(15, 23, 42, 0.95);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-primary);
  border-radius: 8px;
  box-shadow: var(--shadow-neumorphic);
  transition: all 0.3s ease;
}

.logo-icon svg {
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.logo-link:hover .logo-icon {
  transform: translateY(-1px);
  box-shadow: var(--shadow-neumorphic-hover);
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
  margin: 0;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: -2px;
  letter-spacing: 0.5px;
}

.logo-link:hover h1 {
  color: var(--accent-primary);
}

.navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  position: relative;
  background: transparent;
  box-shadow: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
  transform: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.cta-button {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-button);
  position: relative;
}

.cta-text-mobile {
  display: none;
}

.cta-text-full {
  display: inline;
}

.cta-button:hover {
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-2px);
}

.cta-button:active {
  box-shadow: var(--shadow-button-pressed);
  transform: translateY(0);
}


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

/* Dark Mode Toggle Switch */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  border: none;
  background: none;
  padding: 0;
}

.dark-mode-toggle:focus {
  outline: 2px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
  border-radius: 20px;
}

.toggle-track {
  width: 50px;
  height: 24px;
  background: var(--bg-primary);
  border-radius: 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.1),
    -4px -4px 8px rgba(255, 255, 255, 0.8),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2),
    inset -1px -1px 2px rgba(0, 0, 0, 0.1);
  border: none;
}

.toggle-thumb {
  width: 20px;
  height: 20px;
  background: var(--bg-primary);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 
    3px 3px 6px rgba(0, 0, 0, 0.15),
    -3px -3px 6px rgba(255, 255, 255, 0.7),
    inset 1px 1px 2px rgba(255, 255, 255, 0.3),
    inset -1px -1px 2px rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  border: none;
}

.toggle-thumb.active {
  transform: translateX(26px);
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.2),
    -2px -2px 4px rgba(255, 255, 255, 0.8),
    inset 1px 1px 2px rgba(255, 255, 255, 0.4),
    inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle:hover .toggle-track {
  background: var(--bg-primary);
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.15),
    -6px -6px 12px rgba(255, 255, 255, 0.9),
    inset 2px 2px 4px rgba(255, 255, 255, 0.3),
    inset -2px -2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle:hover .toggle-thumb {
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.2),
    -4px -4px 8px rgba(255, 255, 255, 0.8),
    inset 2px 2px 3px rgba(255, 255, 255, 0.4),
    inset -2px -2px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Design - Template Exact */
@media (max-width: 1400px) {
  .header-container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .header-container {
    max-width: 1000px;
  }
  
  /* Show hamburger menu on tablet and below */
  .mobile-menu-button {
    display: block !important;
  }
  
  /* Hide desktop navigation on tablet and below */
  .navigation {
    display: none;
  }
}

@media (max-width: 1024px) {
  .header-container {
    padding: 0 1.5rem;
  }
  
  .navigation {
    gap: 1.5rem;
  }
  
  .header-actions {
    gap: 0.8rem;
  }
  
  /* Ensure register button looks proper in tablet mode */
  .register-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .header-container {
    padding: 0 1.25rem;
  }
  
  .logo-text h1 {
    font-size: 1.7rem;
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  
  .navigation {
    gap: 1.25rem;
  }
  
  .nav-link {
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
  }
  
  .cta-button {
    padding: 0.65rem 1.35rem;
    font-size: 0.95rem;
  }
  
  .register-button {
    padding: 0.65rem 1.35rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .logo-text h1 {
    font-size: 1.6rem;
  }
  
  .logo-icon {
    width: 34px;
    height: 34px;
  }
  
  .navigation {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .header-actions {
    gap: 0.6rem;
  }
}


/* Hide hamburger menu on desktop/laptop screens */
@media (min-width: 1201px) {
  .mobile-menu-button {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .header-container {
    padding: 0 1rem;
    height: 60px;
  }
  
  .logo-text h1 {
    font-size: 1.4rem;
  }
  
  .logo-icon {
    width: 30px;
    height: 30px;
  }
  
  .logo-subtitle {
    font-size: 0.7rem;
  }
  
  .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .cta-text-full {
    display: none;
  }
  
  .cta-text-mobile {
    display: inline;
  }
  
  .header-actions {
    gap: 0.5rem;
  }
  
  .toggle-track {
    width: 45px;
    height: 22px;
  }
  
  .toggle-thumb {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
  
  .toggle-thumb.active {
    transform: translateX(23px);
  }
  
  /* Adjust mobile nav width for smaller screens */
  .mobile-nav-content {
    width: 280px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 0.75rem;
    height: 55px;
  }
  
  .logo-text h1 {
    font-size: 1.2rem;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  
  .logo-subtitle {
    font-size: 0.65rem;
  }
  
  .cta-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .toggle-track {
    width: 40px;
    height: 20px;
  }
  
  .toggle-thumb {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
  }
  
  .toggle-thumb.active {
    transform: translateX(20px);
  }
  
  /* Further adjust mobile nav for very small screens */
  .mobile-nav-content {
    width: 100vw;
    right: 0;
  }
  
  .mobile-nav-links {
    padding: 0 1.5rem;
  }
  
  .mobile-nav-actions {
    padding: 1.5rem;
  }
}

/* Dark Mode Support */
[data-theme="dark"] .header {
  background: 
    radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.04) 0%, transparent 70%),
    var(--bg-primary);
  box-shadow: var(--shadow-neumorphic-small-inset);
}

[data-theme="dark"] .nav-link {
  color: var(--text-secondary);
}

[data-theme="dark"] .nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

[data-theme="dark"] .toggle-track {
  background: var(--bg-primary);
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.3),
    -4px -4px 8px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.1),
    inset -1px -1px 2px rgba(0, 0, 0, 0.3);
  border: none;
}

[data-theme="dark"] .toggle-thumb {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 
    3px 3px 6px rgba(0, 0, 0, 0.4),
    -3px -3px 6px rgba(255, 255, 255, 0.1),
    inset 1px 1px 2px rgba(255, 255, 255, 0.1),
    inset -1px -1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .toggle-thumb.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.5),
    -2px -2px 4px rgba(255, 255, 255, 0.1),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2),
    inset -1px -1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .dark-mode-toggle:hover .toggle-track {
  background: var(--bg-primary);
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.4),
    -6px -6px 12px rgba(255, 255, 255, 0.08),
    inset 2px 2px 4px rgba(255, 255, 255, 0.15),
    inset -2px -2px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dark-mode-toggle:hover .toggle-thumb {
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.5),
    -4px -4px 8px rgba(255, 255, 255, 0.1),
    inset 2px 2px 3px rgba(255, 255, 255, 0.2),
    inset -2px -2px 3px rgba(0, 0, 0, 0.4);
}


/* Mobile Menu Button */
.mobile-menu-button {
  display: block; /* Temporarily always visible for testing */
  background: var(--bg-primary);
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.1),
    -4px -4px 8px rgba(255, 255, 255, 0.8),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2),
    inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-menu-button:hover {
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.15),
    -6px -6px 12px rgba(255, 255, 255, 0.9),
    inset 2px 2px 4px rgba(255, 255, 255, 0.3),
    inset -2px -2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.mobile-menu-button:active {
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.2),
    -2px -2px 4px rgba(255, 255, 255, 0.7),
    inset 1px 1px 2px rgba(255, 255, 255, 0.1),
    inset -1px -1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}


.mobile-menu-button:focus {
  outline: 2px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}

.mobile-menu-button:hover {
  background: var(--bg-secondary);
}

/* Hamburger Icon */
.hamburger {
  display: flex;
  flex-direction: column;
  width: 24px;
  height: 18px;
  position: relative;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-navigation.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: 
    -10px 0 30px rgba(0, 0, 0, 0.1),
    -4px 0 20px rgba(0, 0, 0, 0.05);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Mobile Nav Header */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 1;
}

.mobile-nav-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.mobile-nav-close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
  transform: scale(1.1);
}

.mobile-nav-close:active {
  transform: scale(0.95);
}

.mobile-nav-close:focus {
  outline: 2px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}

.mobile-navigation.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 2rem 0;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.1) 0%, 
    rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.mobile-nav-link:hover::before {
  opacity: 1;
}

.mobile-nav-link:hover {
  color: var(--text-primary);
  text-decoration: none;
  transform: translateX(8px);
  background: var(--bg-secondary);
}

.mobile-nav-link.register-mobile {
  background: transparent;
  border: none;
  box-shadow: none;
}

.mobile-nav-link.register-mobile:hover {
  background: var(--bg-secondary);
  box-shadow: none;
  transform: translateX(8px);
}


.mobile-nav-actions {
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.mobile-cta-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-button);
  font-size: 1rem;
}

.mobile-cta-button:hover {
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-2px);
}

.mobile-cta-button:active {
  box-shadow: var(--shadow-button-pressed);
  transform: translateY(0);
}

/* Dark Mode Mobile Navigation */
[data-theme="dark"] .mobile-nav-content {
  background: var(--bg-primary);
  box-shadow: 
    -10px 0 30px rgba(0, 0, 0, 0.3),
    -4px 0 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .mobile-nav-link.register-mobile {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .mobile-nav-link.register-mobile:hover {
  background: var(--bg-secondary);
  box-shadow: none;
  transform: translateX(8px);
}

[data-theme="dark"] .mobile-nav-actions {
  border-color: var(--border-color);
}

[data-theme="dark"] .mobile-nav-header {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .mobile-nav-title {
  color: var(--text-primary);
}

[data-theme="dark"] .mobile-nav-close {
  color: var(--text-secondary);
}

[data-theme="dark"] .mobile-nav-close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* Dark Mode Mobile Menu Button */
[data-theme="dark"] .mobile-menu-button {
  background: var(--bg-primary);
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.3),
    -4px -4px 8px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.1),
    inset -1px -1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mobile-menu-button:hover {
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.4),
    -6px -6px 12px rgba(255, 255, 255, 0.08),
    inset 2px 2px 4px rgba(255, 255, 255, 0.15),
    inset -2px -2px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .mobile-menu-button:active {
  box-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.5),
    -2px -2px 4px rgba(255, 255, 255, 0.03),
    inset 1px 1px 2px rgba(255, 255, 255, 0.05),
    inset -1px -1px 2px rgba(0, 0, 0, 0.5);
}

/* Remove Chrome-specific fixes - they were making things worse */

/* Footer Styles */
.footer {
  background: var(--bg-primary);
  border-top: none;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-neumorphic-small-inset);
}

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

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 2rem 0;
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.footer-logo p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-links span {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
  background: var(--bg-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-neumorphic-micro);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: var(--bg-primary);
  box-shadow: var(--shadow-neumorphic-micro);
}

.social-link:hover {
  color: var(--accent-primary);
  box-shadow: var(--shadow-neumorphic-small);
  transform: translateX(4px);
}

.social-link svg {
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--bg-primary);
  border: none;
  font-weight: 500;
  box-shadow: var(--shadow-neumorphic-small);
}

.contact-link:hover {
  color: var(--accent-primary);
  box-shadow: var(--shadow-button-hover);
  transform: translateX(4px);
}

.contact-link svg {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}

.contact-link:hover svg {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: none;
  padding: 2rem 0;
  box-shadow: var(--shadow-neumorphic-micro-inset);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 2rem;
}

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

.footer-legal {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent-primary);
}

.footer-disclaimer {
  background: var(--bg-primary);
  border: none;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 2rem 0 2rem;
  box-shadow: var(--shadow-neumorphic-small);
}

.footer-disclaimer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-disclaimer strong {
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-container {
    padding: 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem 0;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .footer-disclaimer {
    margin: 2rem 1rem 0 1rem;
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 2rem 0 1.5rem 0;
  }
  
  .footer-section h3 {
    font-size: 1.3rem;
  }
  
  .footer-section h4 {
    font-size: 1rem;
  }
  
  .footer-bottom-content {
    padding: 0 0.5rem;
  }
  
  .footer-disclaimer {
    margin: 2rem 0.5rem 0 0.5rem;
    padding: 1rem 1.25rem;
  }
  
  .footer-disclaimer p {
    font-size: 0.85rem;
  }
}

/* Error Boundary Styles */
.error-boundary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.error-content {
  text-align: center;
  max-width: 500px;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-primary);
  box-shadow: 0 4px 20px var(--shadow-primary);
}

.error-content h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.error-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.retry-button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-accent);
}

/* Dark mode support */
[data-theme="dark"] .error-content {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
}

[data-theme="dark"] .error-content h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .error-content p {
  color: var(--text-secondary);
}



/*# sourceMappingURL=main.5b398cac12efb5181069.css.map*/