/* .fylr Premium Dark Theme Styles */
:root {
  /* Primary Brand Colors */
  --fylr-orange: #FF6B00;
  --fylr-orange-hover: #FF7D1A;
  --fylr-orange-light: rgba(255, 107, 0, 0.1);
  
  /* Dark Theme Foundation */
  --bg-primary: #0A0A0B;
  --bg-secondary: #1A1A1D;
  --bg-tertiary: #2A2A2D;
  --bg-glass: rgba(26, 26, 29, 0.8);
  
  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #B4B4B8;
  --text-muted: #9E9EA3;
  
  /* Status Colors */
  --success: #00D084;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Interactive Elements */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-focus: var(--fylr-orange);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.5);
  
  /* Animation Easing */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Resets & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Premium Dark Theme Foundation */
.dark-theme {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s var(--ease-smooth);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 0, 0.3);
}

/* Premium Cards */
.premium-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.2s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fylr-orange), transparent);
  opacity: 0;
  transition: opacity 0.2s var(--ease-smooth);
}

.premium-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--fylr-orange);
}

.premium-card:hover::before {
  opacity: 1;
}

/* Premium Buttons */
.btn-orange {
  background: linear-gradient(45deg, var(--fylr-orange), var(--fylr-orange-hover));
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

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

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4);
  filter: brightness(1.1);
  text-decoration: none;
  color: white;
}

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

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

/* Glass Buttons */
.btn-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s var(--ease-smooth);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-glass:hover {
  border-color: var(--fylr-orange);
  background: rgba(255, 107, 0, 0.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text-primary);
}

/* Form Styling */
.form-control-dark {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  transition: all 0.2s var(--ease-smooth);
  width: 100%;
}

.form-control-dark:focus {
  outline: none;
  border-color: var(--fylr-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
  background: var(--bg-tertiary);
}

.form-control-dark::placeholder {
  color: var(--text-muted);
}

/* Form Groups */
.form-group-dark {
  margin-bottom: 1.5rem;
}

.form-label-dark {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

/* Animated Progress Bars */
.progress-container {
  background: var(--bg-tertiary);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.progress-bar-orange {
  background: linear-gradient(90deg, var(--fylr-orange), var(--fylr-orange-hover));
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

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

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

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, var(--bg-secondary), var(--bg-tertiary), var(--bg-secondary));
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
  height: 1rem;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner-orange {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--bg-tertiary);
  border-top: 3px solid var(--fylr-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Navigation Styling */
.navbar-dark {
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s var(--ease-smooth);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fylr-orange) !important;
  text-decoration: none;
}

.nav-link {
  color: var(--text-secondary) !important;
  transition: color 0.2s var(--ease-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

.nav-link.active {
  color: var(--fylr-orange) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fylr-orange);
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, 
    var(--bg-primary) 0%, 
    rgba(255, 107, 0, 0.1) 50%, 
    var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 107, 0, 0.1), transparent 50%);
}

/* Success Messages */
.alert-success-dark {
  background: rgba(0, 208, 132, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  border-radius: 8px;
  padding: 1rem 1rem 1rem 3rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.alert-success-dark::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Error Messages */
.alert-error-dark {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: 8px;
  padding: 1rem 1rem 1rem 3rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.alert-error-dark::before {
  content: '⚠';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Animated Counters */
.counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fylr-orange);
  display: inline-block;
  transition: all 0.2s var(--ease-smooth);
}

.counter.animate {
  animation: countUp 0.8s var(--ease-bounce);
}

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

/* Hover Effects */
.hover-lift {
  transition: transform 0.2s var(--ease-smooth);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-glow {
  transition: all 0.2s var(--ease-smooth);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

/* Dashboard Grid - 5 Column Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Feature Cards */
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

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

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(45deg, var(--fylr-orange), var(--fylr-orange-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

/* Pricing Cards */
.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.2s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.pricing-card.featured {
  border-color: var(--fylr-orange);
  position: relative;
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--fylr-orange);
  color: white;
  padding: 0.5rem 3rem;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--fylr-orange);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--fylr-orange);
  margin: 1rem 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Form Progress */
.form-progress {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.progress-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: -1;
}

.progress-step.completed::after {
  background: var(--fylr-orange);
}

.progress-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
}

.progress-step.completed .progress-circle {
  background: var(--fylr-orange);
  border-color: var(--fylr-orange);
  color: white;
}

.progress-step.active .progress-circle {
  border-color: var(--fylr-orange);
  color: var(--fylr-orange);
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .premium-card {
    padding: 1.5rem;
  }
  
  .glass-card {
    padding: 1rem;
  }
  
  .btn-orange {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-gradient {
    padding: 2rem 0;
  }
  
  .counter {
    font-size: 2rem;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .pricing-card {
    padding: 2rem;
  }
  
  .pricing-price {
    font-size: 2.5rem;
  }
}

/* Focus Accessibility */
*:focus {
  outline: 2px solid var(--fylr-orange);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline: 2px solid var(--fylr-orange);
  outline-offset: 2px;
}

/* Utility Classes */
.text-orange { color: var(--fylr-orange); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-muted { color: #B8B8BC !important; }

.bg-dark { background: var(--bg-primary); }
.bg-dark-secondary { background: var(--bg-secondary); }
.bg-dark-tertiary { background: var(--bg-tertiary); }

.border-orange { border-color: var(--fylr-orange); }
.border-dark { border-color: var(--border-color); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }