/* static/css/main.css */
/* UCC Filing Manager - Professional Legal Tech Color System */

/* Sophisticated Professional Palette - Premium, Trustworthy, Legal */
:root {
  /* Brand Primary - Deep Navy (Sophisticated & Trustworthy) */
  --primary-50: #f0f2f9;
  --primary-100: #e1e6f3;
  --primary-200: #c8d1e9;
  --primary-300: #a7b4db;
  --primary-400: #8593ca;
  --primary-500: #6b7ab8;
  --primary-600: #5862a3;
  --primary-700: #4a5085;
  --primary-800: #3d426c;
  --primary-900: #1b2951;
  --primary: var(--primary-900);

  /* Secondary - Rich Gold (Premium & Professional) */
  --secondary-50: #fefef5;
  --secondary-100: #fefce8;
  --secondary-200: #fef9c3;
  --secondary-300: #fef08a;
  --secondary-400: #fde047;
  --secondary-500: #eab308;
  --secondary-600: #daa520;
  --secondary-700: #b45309;
  --secondary-800: #92400e;
  --secondary-900: #78350f;

  /* Neutral Grays - Sophisticated Slate */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic Colors - Professional & Sophisticated */
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-200: #bbf7d0;
  --success-300: #86efac;
  --success-400: #4ade80;
  --success-500: #22c55e;
  --success-600: #228B22;
  --success-700: #15803d;
  --success-800: #166534;
  --success-900: #14532d;

  --warning-50: #fff8e1;
  --warning-100: #ffecb3;
  --warning-200: #ffe082;
  --warning-300: #ffd54f;
  --warning-400: #ffca28;
  --warning-500: #ff8c00;
  --warning-600: #ff9800;
  --warning-700: #f57c00;
  --warning-800: #ef6c00;
  --warning-900: #e65100;

  --error-50: #fdf2f2;
  --error-100: #fde2e2;
  --error-200: #fbc2c2;
  --error-300: #f89595;
  --error-400: #f45858;
  --error-500: #dc2626;
  --error-600: #8b0000;
  --error-700: #b91c1c;
  --error-800: #991b1b;
  --error-900: #7f1d1d;

  --info-50: #f0fdfd;
  --info-100: #ccfbf1;
  --info-200: #99f6e4;
  --info-300: #5eead4;
  --info-400: #2dd4bf;
  --info-500: #14b8a6;
  --info-600: #2d7d7d;
  --info-700: #0f766e;
  --info-800: #115e59;
  --info-900: #134e4a;

  /* Background Colors - Ultra Light & Readable */
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: var(--gray-50);
  --bg-surface: #ffffff;
  --bg-elevated: var(--gray-50);

  /* Text Colors - Professional & Readable */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --text-muted: #9ca3af;
  --text-white: #ffffff;
  --text-inverse: #ffffff;

  /* Border Colors - Subtle and Clean */
  --border-primary: var(--gray-200);
  --border-secondary: var(--gray-100);
  --border-light: var(--gray-50);
  --border-strong: var(--gray-300);

  /* Interactive States */
  --hover-bg: rgba(27, 41, 81, 0.08);
  --focus-ring: rgba(27, 41, 81, 0.2);
  --active-bg: rgba(27, 41, 81, 0.12);

  /* Shadows - Sophisticated & Elegant */
  --shadow-sm: 0 1px 2px 0 rgba(17, 24, 39, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(17, 24, 39, 0.1), 0 1px 2px 0 rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(17, 24, 39, 0.1), 0 2px 4px -1px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(17, 24, 39, 0.1), 0 4px 6px -2px rgba(17, 24, 39, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(17, 24, 39, 0.1), 0 10px 10px -5px rgba(17, 24, 39, 0.04);

  /* Layout - Refined for Visual Excellence */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;
  --border-radius-sm: 6px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;

  /* Refined Spacing System */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Enhanced Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale - Proper Layering System */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1090;
  --z-max: 9999;
}

/* Dark Mode - Sophisticated & Professional */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Mode Backgrounds - Rich Dark Tones */
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --bg-surface: #1f2937;
    --bg-elevated: #374151;

    /* Dark Mode Text - High Contrast */
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --text-muted: #6b7280;
    --text-white: #ffffff;

    /* Dark Mode Borders */
    --border-primary: #4b5563;
    --border-secondary: #374151;
    --border-light: #1f2937;
    --border-strong: #6b7280;

    /* Adjusted colors for dark mode */
    --primary: var(--primary-400);
    --hover-bg: rgba(133, 147, 202, 0.15);
    --focus-ring: rgba(133, 147, 202, 0.3);
    --active-bg: rgba(133, 147, 202, 0.2);
  }
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

main {
  flex: 1;
  padding: 0;
}

main.container {
  padding: 32px 15px;
}

/* Typography - Refined for Maximum Readability & Impact */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin: 0 0 24px 0;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
h4 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.35;
}
h5 {
  font-size: 1.125rem;
  font-weight: 600;
}
h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 20px 0;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

/* Navigation - Elevated & Modern */
.navbar,
.navbar-custom,
.navbar.navbar-custom {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 50%, var(--primary-800) 100%) !important;
  box-shadow: 0 4px 20px rgba(27, 41, 81, 0.15), 0 1px 3px rgba(27, 41, 81, 0.08);
  padding: 16px 0;
  border: none;
  backdrop-filter: blur(8px);
  position: relative;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2) 50%, transparent);
}

.navbar-brand {
  color: var(--text-white) !important;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  transition: transform var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-brand i {
  font-size: 1.75rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  padding: 10px 18px !important;
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--text-white) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white) !important;
}

.navbar-nav .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Dropdown Menus - Enhanced & Professional */
.dropdown-menu {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-secondary);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12), 0 4px 12px rgba(17, 24, 39, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 8px;
  min-width: 240px;
  z-index: var(--z-dropdown);
  margin-top: 8px;
}

.dropdown-item {
  color: var(--text-primary);
  padding: 12px 16px;
  transition: all var(--transition-base);
  font-weight: 500;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  opacity: 0.7;
}

.dropdown-item:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
  transform: translateX(3px);
}

.dropdown-item:hover i {
  opacity: 1;
  color: var(--primary);
}

.dropdown-item:active {
  background-color: var(--primary-100);
}

.dropdown-divider {
  margin: 8px 0;
  border-top-color: var(--border-primary);
}

/* Cards - Beautifully Elevated */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-secondary);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
  margin-bottom: 28px;
  transition: all var(--transition-base);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5) 50%, transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1), 0 4px 12px rgba(17, 24, 39, 0.08);
  transform: translateY(-4px);
  border-color: var(--border-primary);
}

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

.card-header {
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-secondary);
  color: var(--text-primary);
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.125rem;
}

.card-body {
  padding: 24px;
  background-color: var(--bg-surface);
}

.card-footer {
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border-secondary);
  padding: 16px 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Buttons - Polished & Delightful */
.btn {
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  padding: 13px 28px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(27, 41, 81, 0.15), 0 1px 3px rgba(27, 41, 81, 0.08);
  position: relative;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
  box-shadow: 0 8px 20px rgba(27, 41, 81, 0.25), 0 2px 6px rgba(27, 41, 81, 0.12);
  transform: translateY(-2px);
  color: var(--text-white);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(27, 41, 81, 0.2);
}

.btn-secondary {
  background-color: var(--gray-500);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: var(--gray-600);
  transform: translateY(-1px);
  color: var(--text-white);
}

.btn-success {
  background-color: var(--success-500);
  color: var(--text-white);
}

.btn-success:hover {
  background-color: var(--success-600);
  transform: translateY(-1px);
  color: var(--text-white);
}

.btn-warning {
  background-color: var(--warning-500);
  color: var(--text-primary);
}

.btn-warning:hover {
  background-color: var(--warning-600);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.btn-danger {
  background-color: var(--error-500);
  color: var(--text-white);
}

.btn-danger:hover {
  background-color: var(--error-600);
  transform: translateY(-1px);
  color: var(--text-white);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-1px);
}

/* Forms - Refined and Delightful */
.form-control,
.form-select {
  border: 2px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  padding: 14px 18px;
  font-size: 1rem;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  transition: all var(--transition-base);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.form-control:hover,
.form-select:hover {
  border-color: var(--border-strong);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring), 0 1px 3px rgba(17, 24, 39, 0.06);
  background-color: var(--bg-surface);
  transform: translateY(-1px);
}

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.form-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Tables - Clean and Professional */
.table {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-collapse: collapse;
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
}

.table th {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-secondary);
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--bg-secondary);
}

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

/* Alerts - Warm and Informative */
.alert {
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  border-left: 4px solid;
  font-weight: 500;
}

.alert-primary {
  background-color: var(--primary-50);
  color: var(--primary-800);
  border-left-color: var(--primary);
}

.alert-success {
  background-color: var(--success-50);
  color: var(--success-800);
  border-left-color: var(--success-500);
}

.alert-warning {
  background-color: var(--warning-50);
  color: var(--warning-800);
  border-left-color: var(--warning-500);
}

.alert-danger {
  background-color: var(--error-50);
  color: var(--error-800);
  border-left-color: var(--error-500);
}

.alert-info {
  background-color: var(--info-50);
  color: var(--info-800);
  border-left-color: var(--info-500);
}

/* Badges */
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--border-radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.badge-secondary {
  background-color: var(--gray-500);
  color: var(--text-white);
}

.badge-success {
  background-color: var(--success-500);
  color: var(--text-white);
}

.badge-warning {
  background-color: var(--warning-500);
  color: var(--text-primary);
}

.badge-danger {
  background-color: var(--error-500);
  color: var(--text-white);
}

/* Dashboard Specific */
.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-secondary);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-base);
  transition: all 0.2s ease;
  border-left: 4px solid var(--primary);
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.stat-value {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Search Form */
.search-form {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-secondary);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-base);
}

/* Utility Classes */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary { background-color: var(--primary) !important; color: var(--text-white) !important; }
.bg-secondary { background-color: var(--gray-500) !important; color: var(--text-white) !important; }
.bg-success { background-color: var(--success-500) !important; color: var(--text-white) !important; }
.bg-warning { background-color: var(--warning-500) !important; color: var(--text-primary) !important; }
.bg-danger { background-color: var(--error-500) !important; color: var(--text-white) !important; }
.bg-info { background-color: var(--info-500) !important; color: var(--text-white) !important; }

/* Footer - Elegant and Professional */
.footer {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: var(--text-white);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer h5 {
  color: var(--text-white);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--text-white);
}

/* Pagination */
.pagination .page-link {
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-primary);
  padding: 10px 16px;
  border-radius: var(--border-radius);
  margin: 0 2px;
}

.pagination .page-link:hover {
  background-color: var(--hover-bg);
  color: var(--text-primary);
  border-color: var(--primary);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: 20px 0;
  }
  
  .card-body {
    padding: 20px;
  }
  
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  
  .stat-value {
    font-size: 2.25rem;
  }
  
  .search-form {
    padding: 20px;
  }
}

/* Loading States */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-secondary);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

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

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-primary: var(--gray-800);
    --border-secondary: var(--gray-600);
  }
  
  .card {
    border-width: 2px;
  }
  
  .btn {
    border: 2px solid transparent;
  }
  
  .btn-outline-primary {
    border-width: 2px;
  }
}

/* Homepage Specific Styles */
.hero-section {
  position: relative;
  min-height: auto;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: white;
  padding: 80px 0;
}

.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 41, 81, 0.9) 0%, rgba(61, 66, 108, 0.9) 100%);
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, var(--secondary-600), var(--info-600));
  top: -200px;
  right: -200px;
  animation: float 20s infinite ease-in-out;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, var(--info-600), var(--secondary-600));
  bottom: -150px;
  left: -150px;
  animation: float 25s infinite ease-in-out reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--success-600), var(--info-600));
  top: 50%;
  left: 20%;
  animation: float 30s infinite ease-in-out;
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, var(--warning-600), var(--secondary-600));
  bottom: 20%;
  right: 30%;
  animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(-60px) rotate(240deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 60px 0;
}

.hero-content .row {
  min-height: auto !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.9375rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-base);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-badge:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.badge-new {
  background: linear-gradient(135deg, var(--warning-600), var(--warning-700));
  color: white;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.045em;
  -webkit-font-smoothing: antialiased;
}

.gradient-text {
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  font-weight: 900;
}

.gradient-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  text-shadow: 0 4px 20px rgba(253, 224, 71, 0.5), 0 0 40px rgba(253, 224, 71, 0.3);
}

.hero-lead {
  font-size: 1.375rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  max-width: 620px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-700) 50%, var(--warning-600) 100%);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(218, 165, 32, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.015em;
}

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

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

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(218, 165, 32, 0.45), 0 6px 16px rgba(0, 0, 0, 0.25);
  color: white;
}

.btn-hero-primary:active {
  transform: translateY(-1px) scale(1);
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid rgba(255,255,255,0.25);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.015em;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: white;
}

.btn-hero-secondary:active {
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, rgba(253, 224, 71, 0.8), transparent);
}

.stat-item {
  text-align: left;
  transition: transform var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-3px);
}

.stat-number {
  font-size: 2.375rem;
  font-weight: 800;
  color: #fde047;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  margin-top: 6px;
}

/* Activity Ticker */
.activity-ticker {
  background: linear-gradient(90deg, var(--primary-900) 0%, var(--primary-800) 100%);
  padding: 15px 0;
  overflow: hidden;
  position: relative;
}

.ticker-container {
  width: 100%;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 60px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background: white;
}

.section-header {
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 3.25rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  color: #1b2951;
  line-height: 1.15;
  letter-spacing: -0.04em;
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #4b5563;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.015em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  position: relative;
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 48px 36px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06), 0 2px 6px rgba(17, 24, 39, 0.04);
  transition: all var(--transition-base);
  overflow: hidden;
  border: 1px solid var(--border-secondary);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(107, 122, 184, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.12), 0 8px 16px rgba(17, 24, 39, 0.08);
  border-color: var(--primary-300);
}

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

.feature-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
}

.feature-icon .icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
  border-radius: 50%;
  z-index: -1;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111827;
  text-align: center;
}

.feature-card p {
  color: #4b5563;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}

.feature-hover-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-hover-content {
  opacity: 1;
  max-height: 200px;
}

.feature-hover-content ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}

.feature-hover-content ul li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-light);
}

.feature-hover-content ul li:last-child {
  border-bottom: none;
}

.feature-hover-content ul li:before {
  content: "✓";
  color: var(--success-500);
  font-weight: bold;
  margin-right: 10px;
}

/* Hero Visual Elements */
.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interactive-map-preview {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.3) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.map-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
}

.map-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border: 2px solid rgba(218, 165, 32, 0.5);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

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

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
  display: flex;
  justify-content: center;
}

.wheel {
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  margin-top: 8px;
  animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* Responsive Design - Mobile Perfection */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  .hero-lead {
    font-size: 1.125rem;
    line-height: 1.65;
  }

  .section-title {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 1.125rem;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .stat-item {
    min-width: calc(50% - 12px);
  }

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

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card {
    padding: 36px 28px;
  }

  .hero-visual {
    margin-top: 48px;
  }

  .interactive-map-preview {
    max-width: 100%;
  }

  .pricing-card {
    padding: 36px;
    margin-bottom: 24px;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .cta-title {
    font-size: 2.25rem;
  }

  .cta-subtitle {
    font-size: 1.125rem;
  }

  .testimonial-card {
    padding: 36px 28px;
  }

  .testimonial-text {
    font-size: 1.125rem;
  }
}

/* Map Preview Section */
.map-preview-section {
  padding: 100px 0;
  background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
}

.map-showcase {
  position: relative;
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-secondary);
}

.map-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-map-control {
  padding: 12px 30px;
  border: 2px solid var(--border-primary);
  background: white;
  color: var(--text-primary);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-map-control:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-map-control.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.map-display {
  position: relative;
  min-height: 500px;
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#showcase-map-container {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.map-stats-overlay {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  background: white;
  padding: 25px 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.map-stat {
  text-align: center;
}

.map-stat .stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1b2951;
  line-height: 1;
  margin-bottom: 8px;
}

.map-stat .stat-label {
  display: block;
  font-size: 0.9rem;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.btn-explore-states {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-explore-states:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background: white;
}

.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
}

.testimonial-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 56px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.1), 0 4px 12px rgba(17, 24, 39, 0.06);
  border: 2px solid var(--border-secondary);
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  transition: all var(--transition-slow);
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-500), var(--primary-700));
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
}

.quote-icon {
  font-size: 4.5rem;
  background: linear-gradient(135deg, var(--primary-200), var(--primary-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 1.375rem;
  line-height: 1.8;
  color: #111827;
  margin-bottom: 36px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-100);
}

.author-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
  margin-bottom: 5px;
}

.author-title {
  color: #4b5563;
  font-size: 0.95rem;
}

/* Pricing Section */
.pricing-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.pricing-cards {
  margin-top: 50px;
}

.pricing-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 44px;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08), 0 2px 8px rgba(17, 24, 39, 0.04);
  border: 2px solid var(--border-secondary);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600), var(--primary-400));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.15), 0 8px 20px rgba(17, 24, 39, 0.1);
  border-color: var(--primary-200);
}

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

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(107, 122, 184, 0.2), 0 6px 16px rgba(107, 122, 184, 0.1);
  transform: scale(1.05);
  background: linear-gradient(135deg, #ffffff 0%, rgba(107, 122, 184, 0.02) 100%);
}

.pricing-card.featured::before {
  opacity: 1;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 24px 56px rgba(107, 122, 184, 0.25), 0 12px 24px rgba(107, 122, 184, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 8px 25px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 30px;
}

.pricing-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.period {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.custom-pricing {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  flex: 1;
}

.pricing-features li {
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #111827;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
}

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

.pricing-features li i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.6;
}

.pricing-features li .bi-check-circle-fill {
  color: var(--success-500);
}

.pricing-features li .bi-x-circle {
  color: var(--error-500);
}

.btn-pricing {
  width: 100%;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  transition: all 0.3s ease;
}

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

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

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

/* Final CTA Section */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.15;
  color: white;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.04em;
  -webkit-font-smoothing: antialiased;
}

.cta-subtitle {
  font-size: 1.375rem;
  margin-bottom: 48px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.015em;
}

.cta-buttons {
  margin-bottom: 40px;
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-700) 100%);
  color: white;
  padding: 18px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.cta-note {
  margin-top: 20px;
  font-size: 0.95rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.trust-item i {
  font-size: 1.5rem;
  color: #fde047;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Modern Footer Styles */
.footer-modern {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding-top: 80px;
  margin-top: auto;
}

.footer-content {
  padding-bottom: 40px;
}

.footer-brand {
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
  transition: transform var(--transition-base);
}

.footer-logo:hover {
  transform: scale(1.02);
}

.footer-logo i {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-description {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 28px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: white;
  transition: all var(--transition-base);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.125rem;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transform: translateY(-4px) scale(1.05);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(107, 122, 184, 0.3);
}

.footer-links {
  margin-bottom: 30px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

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

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-nav a i {
  font-size: 0.8rem;
  color: var(--primary);
}

.footer-newsletter {
  margin-bottom: 30px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.newsletter-form .input-group {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form .form-control {
  background: transparent;
  border: none;
  color: white;
  padding: 12px 20px;
  font-size: 0.95rem;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
  background: transparent;
  color: white;
  box-shadow: none;
  border: none;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  border: none;
  color: white;
  padding: 12px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
  color: white;
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.security-badge {
  height: 30px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.security-badge:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  margin-top: 40px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: left;
}

.footer-legal {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: white;
}

.footer-legal .separator {
  color: rgba(255, 255, 255, 0.3);
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
  .footer-modern {
    padding-top: 50px;
  }

  .footer-brand,
  .footer-links,
  .footer-newsletter {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-nav a {
    justify-content: center;
  }

  .footer-copyright,
  .footer-legal {
    text-align: center;
    justify-content: center;
  }

  .footer-bottom .col-md-6 {
    margin-bottom: 15px;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-subtitle {
    font-size: 1.1rem;
  }

  .trust-indicators {
    gap: 30px;
  }

  .map-stats-overlay {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .testimonial-card {
    padding: 30px;
  }

  .testimonial-text {
    font-size: 1.1rem;
  }

  .pricing-card {
    margin-bottom: 30px;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
}

/* Portal & Dashboard Specific Readability */
.portal-content,
.dashboard-content,
.main-content {
  background-color: #ffffff;
  min-height: calc(100vh - 140px);
}

.content-wrapper {
  background-color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}

/* Minimal Footer for Portal and Admin Pages */
.footer-minimal {
  background-color: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}

.footer-minimal a {
  text-decoration: none;
  color: var(--gray-600);
}

.footer-minimal a:hover {
  text-decoration: underline;
  color: var(--primary);
}

/* Dark mode support for minimal footer */
[data-bs-theme="dark"] .footer-minimal {
  background-color: var(--gray-800);
  border-top-color: var(--gray-700);
}

[data-bs-theme="dark"] .footer-minimal a {
  color: var(--gray-400);
}

[data-bs-theme="dark"] .footer-minimal a:hover {
  color: var(--primary-300);
}

/* ========================================
   FINAL POLISH & REFINEMENTS
   ======================================== */

/* Beautiful Text Selection */
::selection {
  background-color: var(--primary-300);
  color: white;
  text-shadow: none;
}

::-moz-selection {
  background-color: var(--primary-300);
  color: white;
  text-shadow: none;
}

/* Enhanced Focus Rings for Accessibility */
*:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 4px;
}

/* Smooth Page Transitions */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

/* Reduce 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;
    scroll-behavior: auto !important;
  }
}

/* Link Styles - Refined */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-700);
}

/* Image Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Better List Spacing */
ul, ol {
  margin: 0 0 1.5rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Code Blocks (if used) */
code, pre {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.9em;
}

code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--error-600);
  font-weight: 500;
}

pre {
  background: var(--gray-100);
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  overflow-x: auto;
  border: 1px solid var(--border-secondary);
}

/* Horizontal Rules */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-primary) 50%, transparent);
  margin: 2rem 0;
}

/* Blockquotes */
blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary);
  background: var(--gray-50);
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
  font-style: italic;
  color: var(--text-secondary);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Improved Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 6px;
  border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 0%,
    var(--gray-100) 50%,
    var(--gray-200) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--border-radius);
}

/* Utility Classes for Enhanced Design */
.shadow-soft {
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08), 0 2px 6px rgba(17, 24, 39, 0.04) !important;
}

.shadow-strong {
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.15), 0 8px 16px rgba(17, 24, 39, 0.1) !important;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-border {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Pulse Animation for CTAs */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(107, 122, 184, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(107, 122, 184, 0);
  }
}

.pulse-on-hover:hover {
  animation: pulse-glow 2s infinite;
}

/* Performance Optimization */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Modern Tabs - Enterprise-Grade Design */
.nav-tabs-modern {
  border-bottom: 2px solid var(--border-primary);
  gap: 8px;
  margin-bottom: 32px;
}

.nav-tabs-modern .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  padding: 16px 24px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all var(--transition-base);
  background: transparent;
  margin-bottom: -2px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  position: relative;
}

.nav-tabs-modern .nav-link i {
  font-size: 1.25rem;
  margin-right: 8px;
  vertical-align: middle;
}

.nav-tabs-modern .nav-link small {
  font-weight: 400;
  font-size: 0.8125rem;
  margin-top: 4px;
  opacity: 0.7;
}

.nav-tabs-modern .nav-link:hover {
  background-color: var(--gray-50);
  color: var(--primary);
  border-bottom-color: var(--primary-200);
}

.nav-tabs-modern .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-50);
  border-bottom-color: var(--primary);
}

.nav-tabs-modern .nav-link.active small {
  opacity: 0.9;
}

/* Tab Content Styling */
.tab-content {
  animation: fadeIn var(--transition-base);
}

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

/* Keyboard Shortcuts Modal Styling */
.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.shortcut-item:last-child {
  border-bottom: none;
}

.shortcut-keys {
  display: flex;
  gap: 4px;
}

.shortcut-keys kbd {
  background: var(--gray-100);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  border: 1px solid var(--border-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-width: 28px;
  text-align: center;
}

.shortcut-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  flex: 1;
  text-align: right;
  margin-left: 16px;
}

[data-bs-theme="dark"] .shortcut-keys kbd {
  background: var(--gray-800);
  border-color: var(--gray-700);
  color: var(--text-primary);
}

/* Beautiful Empty States */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.empty-state-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-action {
  margin-top: 24px;
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a, a:visited {
    text-decoration: underline;
  }

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

  thead {
    display: table-header-group;
  }

  tr, img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  @page {
    margin: 2cm;
  }

  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }

  h2, h3 {
    page-break-after: avoid;
  }
}