/* Modern 2025 Design System */
:root {
  /* Colors - Professional blue palette with warm accents */
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-primary-light: #3b82f6;
  --color-secondary: #f59e0b;
  --color-accent: #10b981;
  --color-background: #ffffff;
  --color-surface: #f8fafc;
  --color-border: #e2e8f0;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", var(--font-sans);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Added notification bar styles */
.notification-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-bar .container {
  max-width: 100%;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.2s ease;
}

body.loading {
  opacity: 0.7;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Enhanced navbar with modern 2025 styling */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  transition: transform 0.2s ease;
}

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

.logo svg {
  transition: transform 0.3s ease;
}

.logo:hover svg {
  transform: rotate(5deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 60%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 101;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--color-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  display: block;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  animation: slideInLeft 0.8s ease-out;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 1.375rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-price {
  color: var(--color-text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-price strong {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.5rem;
}

.hero-image {
  flex: 1;
  animation: slideInRight 0.8s ease-out;
}

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

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Stats Section */
.stats {
  padding: 4rem 0;
  background: white;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  cursor: default;
}

.stat-item:hover {
  background: var(--color-surface);
  transform: translateY(-5px);
}

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

.stat-label {
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-weight: 600;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--color-surface) 0%, white 100%);
}

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

.section-header h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-wrap: balance;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
  border-color: var(--color-primary);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Pricing Section */
.pricing {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0f9ff 0%, white 100%);
}

.pricing-card {
  max-width: 550px;
  margin: 0 auto;
  background: white;
  border: 3px solid var(--color-primary);
  border-radius: 2rem;
  /* Reduced padding to make card more condensed */
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.price {
  text-align: center;
  /* Reduced margin to condense pricing card */
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 1rem;
}

.price-amount {
  /* Reduced font size for more compact design */
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.price-period {
  /* Reduced font size */
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.pricing-features {
  list-style: none;
  /* Reduced margin for more compact design */
  margin-bottom: 1.5rem;
}

.pricing-features li {
  /* Reduced padding for more compact list */
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Reduced font size */
  font-size: 0.9375rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li:before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 900;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pricing-features-two-column {
  display: grid;
  /* Changed from 2 columns to 3 columns for wider, less tall layout */
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1.5rem;
}

@media (max-width: 640px) {
  .pricing-features-two-column {
    grid-template-columns: 1fr;
  }
}

.pricing-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  /* Reduced margin */
  margin-top: 1rem;
  font-weight: 500;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

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

.cta-content h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-content p {
  font-size: 1.375rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-wrap: pretty;
}

.cta .btn-primary {
  background: white;
  color: var(--color-primary);
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
  background: var(--color-surface);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Enhanced auth container with modern styling */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
  padding: var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.auth-card {
  background: white;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

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

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

.auth-header h1 {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-header p {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
}

.auth-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
  color: var(--color-text-secondary);
}

.auth-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Enhanced dashboard with modern styling */
.dashboard {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.dashboard-header {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dashboard-title {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.dashboard-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dashboard-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.dashboard-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.card-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

/* Table Styles */
.table-container {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: var(--color-surface);
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background: var(--color-surface);
}

/* Alerts */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideDown 0.3s ease;
}

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

.alert::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
}

.alert-success::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d1fae5;
  color: #065f46;
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
}

.alert-error::before {
  content: "✕";
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
}

.alert-info::before {
  content: "i";
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

.btn .spinner {
  margin-right: 0.5rem;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Better Link Hover States */
a {
  transition: color 0.2s ease;
}

/* Skeleton Loading States */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-border) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

/* Tooltip Styles */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 0.75rem;
  background: var(--color-text);
  color: white;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Footer Styles */
.footer {
  background: var(--color-text);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: auto;
}

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

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-section p,
.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Remove list bullets and padding from footer lists */
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li:last-child {
  margin-bottom: 0;
}

.footer ul li a {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer ul li a:hover {
  color: white;
  transform: translateX(3px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .hero-text {
    text-align: center;
  }

  .hero-title {
    font-size: 2.25rem !important;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.0625rem !important;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  /* Stats Grid Mobile */
  .stats {
    padding: 2rem 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  .stat-number {
    font-size: 2rem !important;
  }

  .stat-label {
    font-size: 0.875rem !important;
  }

  /* Features Grid Mobile */
  .features {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem !important;
  }

  .section-header p {
    font-size: 1rem !important;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-icon {
    width: 52px;
    height: 52px;
  }

  .feature-card h3 {
    font-size: 1.125rem;
  }

  /* Pricing Mobile */
  .pricing {
    padding: 3rem 0;
  }

  .pricing-card {
    padding: 1.75rem;
    margin: 0 1rem;
  }

  .price-amount {
    font-size: 3rem !important;
  }

  .pricing-features-two-column {
    grid-template-columns: 1fr !important;
  }

  /* CTA Mobile */
  .cta {
    padding: 3rem 0;
  }

  .cta-content h2 {
    font-size: 2rem !important;
  }

  .cta-content p {
    font-size: 1.0625rem !important;
  }

  /* Navigation Mobile */
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 99;
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 101;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

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

  /* Enhanced mobile footer styles for better appearance */
  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    text-align: center;
  }

  .footer-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-section h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
  }

  .footer-section h4 {
    font-size: 1.0625rem;
    margin-bottom: 0.875rem;
  }

  .footer-section p {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }

  .footer-section ul li a {
    display: block;
    padding: 0.5rem;
    font-size: 0.9375rem;
  }

  .footer-bottom {
    padding-top: 1.25rem;
    font-size: 0.875rem;
  }
}

/* Enhanced mobile form styles for contact and all forms */
@media (max-width: 768px) {
  /* Contact page specific */
  .auth-container {
    padding: 1.25rem;
    min-height: auto;
  }

  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .auth-header {
    margin-bottom: 1.75rem;
  }

  .auth-header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.625rem;
  }

  .auth-header p {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

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

  .form-label {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
    color: var(--color-text);
  }

  /* Form inputs - optimized for mobile */
  .form-input,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  textarea,
  select {
    width: 100%;
    padding: 1rem;
    font-size: 16px !important; /* Prevents iOS zoom */
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    min-height: 48px;
    background: white;
    color: var(--color-text);
    -webkit-appearance: none;
    appearance: none;
  }

  textarea.form-input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
  }

  .form-input:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }

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

  .form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.4;
  }

  /* Buttons in forms */
  .btn-block {
    width: 100%;
    margin-top: 0.75rem;
  }

  .btn-lg {
    min-height: 52px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
  }

  /* Auth footer */
  .auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  /* Contact page specific styles */
  .auth-container[style*="min-height"] {
    min-height: auto !important;
    padding: 1.5rem 1rem;
  }

  /* Direct contact info section */
  .auth-card > div[style*="margin-top"] {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
  }

  .auth-card > div[style*="margin-top"] p {
    font-size: 0.9375rem !important;
    margin-bottom: 1rem !important;
  }

  .auth-card > div[style*="margin-top"] > div {
    gap: 1rem !important;
  }

  .auth-card > div[style*="margin-top"] > div p {
    font-size: 0.9375rem !important;
  }
}

/* Extra small mobile optimizations */
@media (max-width: 480px) {
  .footer {
    padding: 2rem 0 1.25rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-section {
    padding-bottom: 1.25rem;
  }

  .footer-section h3 {
    font-size: 1.25rem;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section p,
  .footer-section ul li a {
    font-size: 0.875rem;
  }

  .footer-bottom {
    font-size: 0.8125rem;
  }

  /* Forms on very small screens */
  .auth-container {
    padding: 1rem 0.75rem;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: 1rem;
  }

  .auth-header h1 {
    font-size: 1.625rem;
  }

  .auth-header p {
    font-size: 0.875rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-label {
    font-size: 0.875rem;
  }

  .form-input,
  input,
  textarea,
  select {
    padding: 0.875rem;
    min-height: 46px;
  }

  textarea.form-input {
    min-height: 110px;
  }

  .form-help {
    font-size: 0.8125rem;
  }

  .btn-lg {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    font-size: 0.875rem;
  }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 2rem 0;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  .hero-text {
    text-align: left;
  }

  .hero-image {
    order: 1;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  a,
  button,
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Remove hover effects on touch devices */
  .feature-card:hover,
  .dashboard-card:hover {
    transform: none;
  }

  /* Better tap highlighting */
  * {
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper borders and shadows */
  .feature-card,
  .pricing-card,
  .dashboard-card {
    border-width: 0.5px;
  }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support (if device prefers dark mode) */
@media (prefers-color-scheme: dark) {
  /* Optional: Add dark mode styles here if needed */
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .notification-bar,
  .mobile-menu-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .dashboard-card,
  .table-container,
  .feature-card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* Added comprehensive form styles for desktop and all screens */
/* Form Styles - Base (Desktop and All Screens) */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  min-height: 48px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

textarea.form-input,
textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
  padding: 1rem;
}

.form-input:hover,
input:hover,
textarea:hover,
select:hover {
  border-color: var(--color-primary-light);
}

.form-input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: white;
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.form-input:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  background: var(--color-surface);
  cursor: not-allowed;
  opacity: 0.6;
}

.form-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #dc2626;
  font-weight: 500;
}

/* Select dropdown styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Checkbox and Radio Styles */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  margin-right: 0.5rem;
  cursor: pointer;
}

/* Form validation states */
.form-input.is-valid,
input.is-valid,
textarea.is-valid {
  border-color: var(--color-accent);
}

.form-input.is-invalid,
input.is-invalid,
textarea.is-invalid {
  border-color: #dc2626;
}
