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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1400px; /* Reduced from 1600px for better consistency with other pages */
  margin: 0 auto;
  padding: 0;
}

.main-layout {
  display: flex;
  gap: 24px;
  padding: 20px;
  align-items: flex-start;
}

.content-area {
  flex: 1;
  min-width: 0;
}

.filters-sidebar {
  width: 320px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom scrollbar for filters sidebar */
.filters-sidebar::-webkit-scrollbar {
  width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}

/* Legacy header styles - kept for other pages */
header {
  text-align: center;
  padding: 40px 20px 30px;
  background: white;
  margin-bottom: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-weight: 700;
}

header p {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 400;
}

.search-section {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

/* Search Input Container */
.search-input-container {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.search-buttons-inline {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.search-btn-primary {
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.search-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.search-btn-primary .search-icon {
  font-size: 1.1rem;
}

.clear-btn-secondary {
  padding: 14px 24px;
  background: white;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clear-btn-secondary:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.clear-btn-secondary .clear-icon {
  font-size: 1.1rem;
  font-weight: bold;
}

.dropdown-container {
  flex: 1;
  position: relative;
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #667eea;
  border-radius: 10px;
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
  z-index: 1000;
  display: none;
}

.dropdown-item {
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s;
  color: #1f2937;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-left-color: #667eea;
  outline: none;
  padding-left: 22px;
}

.dropdown-item.active {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-left-color: #764ba2;
  font-weight: 600;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-list::-webkit-scrollbar {
  width: 8px;
}

.dropdown-list::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}

.dropdown-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

/* Popular Roles Section */
/* ============================================
   REVAMPED POPULAR ROLES SECTION - ENHANCED UX
   ============================================ */
.popular-roles-revamped {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.popular-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.popular-header svg {
  color: #667eea;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.popular-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.popular-roles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.role-card:hover {
  background: #f3f4f6;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-1px);
}

.role-card.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.role-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.role-name {
  font-size: 0.8rem;
}

/* Selected Roles Display - Enhanced */
.selected-roles-revamped {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0; /* Remove margin when empty */
  min-height: 0; /* No min-height when empty */
  padding: 0; /* No padding when empty */
  transition: all 0.3s;
}

.selected-roles-revamped:not(:empty) {
  margin-bottom: 20px; /* Add margin only when has content */
  min-height: 44px;
  padding: 12px;
  background: white;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.selected-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.2s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.selected-role-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.selected-role-tag .role-icon {
  font-size: 1rem;
}

.selected-role-tag .remove-role {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.selected-role-tag .remove-role:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.roles-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  color: #9ca3af;
  font-size: 0.875rem;
  font-style: italic;
  margin-bottom: 20px;
  transition: all 0.3s;
  animation: pulse-placeholder 3s ease-in-out infinite;
}

@keyframes pulse-placeholder {
  0%, 100% { border-color: #cbd5e1; background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%); }
  50% { border-color: #94a3b8; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); }
}

.roles-placeholder svg {
  color: #cbd5e1;
  flex-shrink: 0;
  animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.roles-placeholder:hover {
  border-color: #94a3b8;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #6b7280;
}

/* Shake animation for already selected roles */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.role-card.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-color: #f59e0b;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .popular-roles-revamped {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
  }
  
  .popular-header {
    border-bottom-color: #374151;
  }
  
  .popular-title {
    color: #f9fafb;
  }
  
  .popular-subtitle {
    background: #374151;
    color: #9ca3af;
  }
  
  .popular-roles-revamped:hover .popular-subtitle {
    background: #4c1d95;
    color: #c4b5fd;
  }
  
  .role-card {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }
  
  .selected-roles-revamped {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  }
  
  .selected-roles-revamped:not(:empty) {
    border-color: #4b5563;
    background: #1f2937;
  }
  
  .roles-placeholder {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #4b5563;
    color: #6b7280;
  }
  
  .roles-placeholder:hover {
    border-color: #6b7280;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .popular-roles-revamped {
    padding: 16px 18px;
  }
  
  .popular-roles-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 8px;
  }
  
  .role-card {
    padding: 10px 12px;
    font-size: 0.75rem;
  }
  
  .role-icon {
    font-size: 1.125rem;
  }
  
  .popular-subtitle {
    display: none;
  }
  
  .selected-role-tag {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  
  .role-card {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  
  .role-icon {
    font-size: 1rem;
  }
}

/* Selected Roles Chips Container */
.roles-container-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px dashed #dee2e6;
  transition: all 0.3s;
}

.roles-container-chips:empty::before {
  content: '✨ No roles selected - Search all jobs or select roles above';
  color: #9ca3af;
  font-size: 0.9rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.roles-container-chips:not(:empty) {
  background: white;
  border-color: #667eea;
  border-style: solid;
}

.role-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  animation: slideIn 0.3s ease;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.role-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.role-tag .remove-role {
  cursor: pointer;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.role-tag .remove-role:hover {
  color: white;
  background: rgba(239, 68, 68, 0.8);
  transform: scale(1.1);
}



.filters-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e9ecef;
}

.filters-header h3 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin: 0;
  font-weight: 600;
}

.filters-sidebar .filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.filters-sidebar .filter-group label {
  font-weight: 500;
  color: #495057;
  font-size: 0.9rem;
}

.filter-hint {
  font-size: 0.75rem;
  color: #6c757d;
  font-style: italic;
  margin-top: -4px;
}

.filters-sidebar .filter-group select,
.filters-sidebar .filter-group input[type="text"] {
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  width: 100%;
}

.filters-sidebar .filter-group select:focus,
.filters-sidebar .filter-group input[type="text"]:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.filters-sidebar .filter-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-divider {
  height: 1px;
  background: #e9ecef;
  margin: 20px 0;
}

.filter-actions-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #495057;
  cursor: pointer;
}

.notify-btn-sidebar {
  padding: 12px 20px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
}

.notify-btn-sidebar:hover {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.clear-btn-sidebar {
  padding: 12px 20px;
  background: white;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
}

.clear-btn-sidebar:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

#searchInput {
  flex: 1;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
  background: white;
}

#searchInput:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#searchInput::placeholder {
  color: #9ca3af;
}

.search-btn-main {
  padding: 14px 32px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 150px;
}

.search-btn-main:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.browse-all-btn {
  padding: 14px 32px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 150px;
}

.browse-all-btn:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.browse-all-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.stats {
  background: white;
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-left: 3px solid #2563eb;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.loading {
  text-align: center;
  color: #495057;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.spinner {
  border: 4px solid #e9ecef;
  border-top: 4px solid #0066cc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

/* ============================================
   LOADING SKELETONS
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

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

.skeleton-job-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
  margin-bottom: 15px;
}

.skeleton-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.skeleton-title {
  height: 28px;
  width: 60%;
  margin-bottom: 8px;
}

.skeleton-company {
  height: 20px;
  width: 40%;
  margin-bottom: 12px;
}

.skeleton-badge {
  height: 24px;
  width: 80px;
  border-radius: 12px;
}

.skeleton-location {
  height: 18px;
  width: 35%;
  margin-bottom: 8px;
}

.skeleton-date {
  height: 16px;
  width: 25%;
  margin-bottom: 16px;
}

.skeleton-actions {
  display: flex;
  gap: 10px;
}

.skeleton-button {
  height: 40px;
  width: 120px;
  border-radius: 6px;
}

.jobs-container {
  display: grid;
  gap: 8px; /* Reduced from 15px for compact design */
}

/* ============================================
   REVAMPED JOB STATS SECTION
   ============================================ */
.job-stats-revamped {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Inline results header - sits above job cards */
/* Compact Search Results Header */
.search-results-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.results-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-text {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

@media (max-width: 768px) {
  .search-results-compact {
    padding: 10px 14px;
  }
  
  .results-text {
    font-size: 13px;
  }
}

/* Legacy styles for backwards compatibility */
.job-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.results-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
}

.results-count svg {
  color: #6366f1;
  flex-shrink: 0;
}

.ai-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.ai-indicator.ai-off {
  background: #e5e7eb;
  color: #6b7280;
  box-shadow: none;
}

.ai-indicator.ai-off svg {
  color: #9ca3af;
}

.ai-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.ai-indicator svg {
  flex-shrink: 0;
  color: white;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.job-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1f2937;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.job-count-badge svg {
  color: #3b82f6;
  flex-shrink: 0;
}

.ai-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8125rem;
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.ai-active-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

.ai-pulse {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.ai-active-badge svg {
  flex-shrink: 0;
}

.sources-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%; /* Force full width */
}

.sources-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  flex-shrink: 0; /* Prevent label from shrinking */
}

.source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1; /* Take remaining space */
  min-width: 0; /* Allow flex item to shrink below content size */
}

/* Responsive */
@media (max-width: 768px) {
  .job-stats-revamped {
    padding: 14px 16px;
  }
  
  .stats-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sources-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .job-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
  }
  
  .results-count {
    font-size: 0.875rem;
  }
  
  .ai-indicator {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}

.job-card {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  border: 1px solid #e9ecef;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #0066cc;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
  gap: 15px;
}

.job-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  flex: 1;
}

.job-badges {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.job-source {
  background: #e9ecef;
  color: #495057;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.job-role-tag {
  background: #0066cc;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.job-company {
  font-size: 1rem;
  color: #666;
  margin-bottom: 8px;
}

.job-location {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 8px;
}

.job-posted {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 15px;
}

.job-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.job-link {
  display: inline-block;
  padding: 10px 20px;
  background: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.job-link:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* Button styles moved to unified section below (line 4080+) */

/* Tooltip styles */
.job-action-tooltip {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.job-action-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
}

.job-action-tooltip.show {
  opacity: 1;
}

/* Success badge that appears after action */
.success-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  animation: popIn 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Match score banners */
.match-banner-card {
  padding: 10px 15px;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  margin: -20px -20px 15px -20px;
}

.match-excellent {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.match-good {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
}

.match-fair {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #1a1a1a;
}

/* ============================================
   MODERN NAVIGATION
   ============================================ */

.modern-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.modern-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  color: #667eea;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
  font-size: 0.95rem;
  position: relative;
}

.nav-item:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.08);
}

.nav-item.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.12);
  font-weight: 600;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px 2px 0 0;
}

/* Auth Section */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid #e5e7eb;
}

.user-status {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.cta-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.nav-logout {
  padding: 8px 18px;
  background: white;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-logout:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.toggle-line {
  width: 24px;
  height: 2px;
  background: #4b5563;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.nav-toggle.active .toggle-line:nth-child(2) {
  opacity: 0;
}

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

/* Hero Section (replaces old header) */
/* ============================================
   HERO SECTION WITH AI FEATURES
   ============================================ */

/* ============================================
   PREMIUM HERO SECTION
   ============================================ */

.hero-section {
  text-align: center;
  padding: 30px 20px 20px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.03) 0%, 
    rgba(118, 75, 162, 0.05) 50%,
    rgba(56, 189, 248, 0.03) 100%
  );
}

/* Animated Background Shapes */
.hero-background-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  top: -100px;
  left: -50px;
  animation: float 25s infinite ease-in-out;
  animation-delay: 0s;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #38bdf8, #667eea);
  top: 50px;
  right: -80px;
  animation: float 30s infinite ease-in-out reverse;
  animation-delay: 0s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #764ba2, #f472b6);
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 35s infinite ease-in-out;
  animation-delay: 5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(40px, -40px) scale(1.15) rotate(90deg);
  }
  50% {
    transform: translate(20px, 30px) scale(0.95) rotate(180deg);
  }
  75% {
    transform: translate(-30px, 20px) scale(1.05) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

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

/* Premium AI Badge with Glassmorphism */
.ai-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
  animation: badgeFloat 3s ease-in-out infinite;
  cursor: default;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-badge-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.4);
}

.ai-badge-hero:hover .ai-badge-icon {
  transform: scale(1.2) rotate(180deg);
}

@keyframes badgeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.ai-badge-icon {
  color: #667eea;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg); 
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.2) rotate(180deg); 
  }
}

.ai-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.ai-badge-glow {
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  opacity: 0;
  z-index: -1;
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
}

/* Hero Title - Larger and More Impactful */
.hero-title {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: #1f2937;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  animation: titleScale 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes titleScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-title-gradient {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
  background: linear-gradient(120deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Hero Subtitle - Darker and More Readable */
.hero-subtitle {
  font-size: 1.15rem;
  color: #4b5563;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: #667eea;
  font-weight: 600;
  position: relative;
  display: inline-block;
  cursor: default;
}

.hero-subtitle strong::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-subtitle strong:hover::after {
  width: 100%;
}

/* Social Proof Stats */
.social-proof {
  margin: 16px auto;
  max-width: 600px;
}

.social-proof-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.85) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(238, 238, 242, 0.8);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 900px;
  margin: 0 auto;
}

.social-proof-stats:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 14px 50px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(102, 126, 234, 0.2);
}

.social-proof-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(102, 126, 234, 0.2), 
    transparent
  );
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

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

.stat-item:hover .stat-number {
  transform: scale(1.05);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
}

/* Feature Pills - Enhanced with Colors */
.feature-highlights {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px auto 32px;
}

.feature-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 9px 18px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 2px solid !important;
  border-radius: 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  line-height: 1 !important;
  position: relative !important;
  height: 36px !important;
}

.feature-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.feature-pill-match {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.12) 100%) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.feature-pill-match:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(220, 38, 38, 0.18) 100%) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25) !important;
}

.feature-pill-apply {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.feature-pill-apply:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(5, 150, 105, 0.18) 100%) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25) !important;
}

.feature-pill-ai {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
}

.feature-pill-ai:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(124, 58, 237, 0.18) 100%) !important;
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25) !important;
}

.feature-pill-alerts {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.12) 100%) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
}

.feature-pill-alerts:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.18) 100%) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.25) !important;
}

.feature-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: iconBob 2s ease-in-out infinite;
}

@keyframes iconBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.feature-pill .feature-icon {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.feature-pill .feature-icon svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
}

.feature-pill-match .feature-icon {
  color: #dc2626 !important;
}

.feature-pill-apply .feature-icon {
  color: #059669 !important;
}

.feature-pill-ai .feature-icon {
  color: #7c3aed !important;
}

.feature-pill-alerts .feature-icon {
  color: #d97706 !important;
}

/* New Auto-Apply pill styles */
.feature-pill-autoapply {
  background: #a7f3d0 !important;
  border-color: #059669 !important;
}

.feature-pill-autoapply:hover {
  background: #6ee7b7 !important;
  border-color: #047857 !important;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.5) !important;
}

.feature-pill-autoapply .feature-icon {
  color: #065f46 !important;
}

/* Updated pill colors for better visibility */
.feature-pill {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  border-width: 2.5px !important;
}

.feature-pill-match {
  background: #fecaca !important;
  border-color: #dc2626 !important;
}

.feature-pill-match:hover {
  background: #fca5a5 !important;
  border-color: #b91c1c !important;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.5) !important;
}

.feature-pill-apply {
  background: #bfdbfe !important;
  border-color: #2563eb !important;
}

.feature-pill-apply:hover {
  background: #93c5fd !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5) !important;
}

.feature-pill-apply .feature-icon {
  color: #1e40af !important;
}

.feature-pill-ai {
  background: #ddd6fe !important;
  border-color: #7c3aed !important;
}

.feature-pill-ai:hover {
  background: #c4b5fd !important;
  border-color: #6d28d9 !important;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.5) !important;
}

.feature-pill-alerts {
  background: #fef08a !important;
  border-color: #ca8a04 !important;
}

.feature-pill-alerts:hover {
  background: #fde047 !important;
  border-color: #a16207 !important;
  box-shadow: 0 8px 20px rgba(202, 138, 4, 0.5) !important;
}

.feature-pill .feature-text {
  display: block !important;
  line-height: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  white-space: nowrap !important;
}

.feature-pill:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Feature Pill Tooltips */
.feature-pill {
  position: relative;
}

.feature-pill[data-tooltip]:hover::after,
.feature-pill[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(31, 41, 55, 0.95);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  max-width: 280px;
  width: max-content;
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: tooltipFadeIn 0.2s ease-out;
  pointer-events: none;
  text-align: center;
}

.feature-pill[data-tooltip]:hover::before,
.feature-pill[data-tooltip]:focus-visible::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.92);
  z-index: 1001;
  animation: tooltipFadeIn 0.2s ease-out;
}

.feature-text {
  white-space: nowrap;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal[style*="display: flex"],
.modal[style*="display: block"] {
  display: flex !important; /* Use flex when shown */
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.modal-content h2 {
  margin-bottom: 10px;
  color: #333;
}

.modal-content p {
  color: #666;
  margin-bottom: 20px;
}

#notifyForm input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  margin-bottom: 15px;
}

.notify-criteria {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.notify-criteria p {
  margin: 5px 0;
  color: #333;
}

#notifyForm button {
  width: 100%;
  padding: 12px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

#notifyForm button:hover {
  background: #45a049;
}

.notify-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
}

.notify-message.success {
  background: #d4edda;
  color: #155724;
}

.notify-message.error {
  background: #f8d7da;
  color: #721c24;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  .search-section {
    flex-direction: column;
  }
  
  .filters-section {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-group {
    width: 100%;
    justify-content: center;
  }

  .job-header {
    flex-direction: column;
    gap: 10px;
  }

  .job-badges {
    flex-direction: row;
    align-items: flex-start;
  }
}


/* Connection banner and tags */
.connection-banner {
  padding: 10px 15px;
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  margin: -20px -20px 15px -20px;
  border-radius: 0;
}

.connections-section {
  margin: 15px 0;
  padding: 12px;
  background: #f9f9ff;
  border-radius: 8px;
  border-left: 4px solid #9C27B0;
}

.connections-section strong {
  display: block;
  margin-bottom: 8px;
  color: #333;
}

.connection-tag {
  display: inline-block;
  background: #9C27B0;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  margin-right: 8px;
  margin-bottom: 5px;
}

/* Message button styles moved to unified section */

.ai-badge-btn {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.9rem;
  animation: sparkle 2s infinite;
}

/* Message modal */
.message-modal-content {
  max-width: 700px;
}

.close-message {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-message:hover {
  color: #000;
}

#messageJobInfo {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #333;
}

.message-type-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.message-type-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  background: white;
  color: #666;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.message-type-btn:hover {
  border-color: #9C27B0;
  color: #9C27B0;
}

.message-type-btn.active {
  background: #9C27B0;
  color: white;
  border-color: #9C27B0;
}

#messageTemplate {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
}

#messageTemplate[readonly] {
  background: #f9f9f9;
}

.message-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn-linkedin {
  padding: 12px 24px;
  background: #0077b5;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  min-width: 180px;
}

.btn-linkedin:hover {
  background: #006399;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.btn-secondary-action {
  padding: 12px 24px;
  background: white;
  color: #9C27B0;
  border: 2px solid #9C27B0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary-action:hover {
  background: #f5f5f5;
}

.message-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.message-status.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

.message-status.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}


/* Responsive Design */
@media (max-width: 1200px) {
  .main-layout {
    flex-direction: column;
  }

  .filters-sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }

  .search-input-container {
    flex-direction: column;
  }

  .search-buttons-inline {
    width: 100%;
  }

  .search-btn-primary,
  .clear-btn-secondary {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .search-section {
    padding: 16px;
  }

  .popular-roles-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .popular-roles-chips {
    width: 100%;
  }

  .popular-role-chip {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .search-buttons-inline {
    flex-direction: column;
  }

  .search-btn-primary,
  .clear-btn-secondary {
    width: 100%;
  }
}

/* Mobile Navigation */
@media (max-width: 968px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-item {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
  }

  .nav-item.active::after {
    display: none;
  }

  .nav-auth {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    gap: 12px;
  }

  .user-status {
    text-align: center;
    padding: 8px;
  }

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

  .nav-logout {
    width: 100%;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  
  .social-proof-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
    height: 60px;
  }

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

  .logo-icon {
    width: 20px;
    height: 20px;
  }

  .hero-section {
    padding: 30px 16px 20px;
  }

  .hero-title {
    font-size: 1.75rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .feature-pill {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .ai-badge-hero {
    font-size: 0.8rem;
    padding: 6px 14px;
  }
  
  .btn-demo-cta {
    padding: 16px 28px;
    font-size: 0.95rem;
    height: auto;
  }

  .feature-highlights {
    gap: 6px;
  }

  .feature-pill {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
  
  /* Adjust tooltips for mobile */
  .feature-pill[data-tooltip]:hover::after,
  .feature-pill[data-tooltip]:focus-visible::after {
    max-width: 220px;
    font-size: 0.8rem;
    padding: 10px 12px;
    left: 50%;
    right: auto;
  }

  .job-header {
    flex-direction: column;
  }

  .job-badges {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Clear Location Button */
.btn-clear-location {
  padding: 8px 12px;
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-top: 5px;
}

.btn-clear-location:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #adb5bd;
}

/* Match Insights Modal */
.match-insights-modal-content {
  max-width: 650px !important;
  width: 90% !important;
  background: white !important;
  border-radius: 16px !important;
  padding: 32px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
}

/* Upgrade Modal */
.upgrade-modal-content {
  max-width: 500px;
  text-align: center;
}

.upgrade-modal-content h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.upgrade-modal-content p {
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.upgrade-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.upgrade-actions .btn-primary {
  padding: 14px 30px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.upgrade-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.close-upgrade {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.close-upgrade:hover {
  color: #333;
}

/* Premium Badge */
.premium-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Feature Locked Overlay */
.feature-locked {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.feature-locked::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

/* Premium Badge for Filters */
/* ============================================
   AI FEATURE BADGES
   ============================================ */

.ai-badge-inline {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0.5px;
  animation: pulse-glow 2s infinite;
}

.ai-badge-button {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ai-icon-small {
  font-size: 1rem;
  margin-right: 6px;
  animation: sparkle 2s infinite;
}

.ai-feature-description {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
  border-left: 3px solid #667eea;
}

.premium-badge-small {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
}

/* Disabled Filter State */
.filter-group.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.filter-group.disabled select {
  background: #f8f9fa;
  cursor: not-allowed;
}

.filter-group.disabled label {
  color: #6c757d;
}

/* Source Filter Styling */
#sourceFilter {
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

#sourceFilter:hover {
  border-color: #3b82f6;
  background: #ffffff;
}

#sourceFilter:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  outline: none;
}

/* Source badge in job cards */
.job-source-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}


/* Job cards styling */
/* Removed margin-bottom - using gap in container instead for compact design */


/* ============================================
   IMPROVED MESSAGE TEMPLATES MODAL
   ============================================ */

.message-modal-content-new {
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}

.message-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 30px;
  border-bottom: 2px solid #e5e7eb;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.message-modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  color: white;
}

.message-job-info {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
  color: white;
}

.message-modal-header .close-message {
  color: white;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: transform 0.2s;
  line-height: 1;
  padding: 0;
  margin: -5px 0 0 0;
}

.message-modal-header .close-message:hover {
  transform: scale(1.1);
}

/* Two-Pane Layout */
.message-modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 500px;
}

/* Left Pane: Message Types */
.message-types-pane {
  width: 280px;
  background: #f8f9fa;
  border-right: 1px solid #e5e7eb;
  padding: 20px;
  overflow-y: auto;
}

.message-types-pane h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin: 0 0 16px 0;
  font-weight: 600;
}

.message-type-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-type-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.message-type-btn:hover {
  border-color: #667eea;
  background: #f9fafb;
  transform: translateX(4px);
}

.message-type-btn.active {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.message-type-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.message-type-info {
  flex: 1;
}

.message-type-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.message-type-desc {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Right Pane: Message Editor */
.message-editor-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 30px;
  background: white;
}

.message-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.message-editor-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #1f2937;
}

.btn-regenerate {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-regenerate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.regenerate-icon {
  font-size: 16px;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.message-editor-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.message-editor-container textarea {
  flex: 1;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: none;
  transition: border-color 0.2s;
  line-height: 1.6;
}

.message-editor-container textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.message-char-count {
  text-align: right;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 8px;
}

.message-char-count #charCount {
  font-weight: 600;
  color: #667eea;
}

/* Message Actions */
.message-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.btn-copy {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: white;
  border: 2px solid #667eea;
  color: #667eea;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-copy:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-copy.copied {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.copy-success {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  animation: copySuccess 0.5s ease;
}

@keyframes copySuccess {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.btn-linkedin {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #0077b5;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-linkedin:hover {
  background: #006399;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.message-status {
  padding: 16px 30px;
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .message-modal-content-new {
    width: 95%;
    max-height: 95vh;
  }
  
  .message-modal-body {
    flex-direction: column;
    min-height: auto;
  }
  
  .message-types-pane {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    max-height: 200px;
  }
  
  .message-type-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
  }
  
  .message-type-btn {
    min-width: 180px;
  }
  
  .message-actions {
    flex-direction: column;
  }
  
  .btn-copy,
  .btn-linkedin {
    width: 100%;
  }
}

/* Loading State for Regenerate */
.btn-regenerate.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-regenerate.loading .regenerate-icon {
  animation: spin 1s linear infinite;
}

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


/* ============================================
   IMPROVED FILTERS SIDEBAR - ACCORDION DESIGN
   ============================================ */

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.filters-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1f2937;
}

.btn-reset-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset-filters:hover {
  background: #e5e7eb;
  color: #374151;
  border-color: #9ca3af;
}

.btn-reset-filters .reset-icon {
  font-size: 16px;
  transition: transform 0.3s;
}

.btn-reset-filters:hover .reset-icon {
  transform: rotate(180deg);
}

/* Active Filters Indicator */
.active-filters-indicator {
  background: white;
  border: 2px solid #667eea;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  animation: slideDown 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

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

.active-filters-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.active-filter-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
  padding: 6px 10px;
  background: #f3f4f6;
  border-radius: 6px;
}

.active-filter-tag strong {
  color: #667eea;
  margin-right: 6px;
  font-weight: 700;
}

/* Filter Accordion */
.filter-accordion {
  margin-bottom: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  overflow: visible;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.2s;
}

.filter-accordion:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.filter-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #fafbfc;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  position: relative;
}

.filter-accordion-header:hover {
  background: #f3f4f6;
}

.filter-accordion-header.active {
  background: white;
  border-bottom-color: #e5e7eb;
}

.accordion-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.accordion-title {
  flex: 1;
  font-weight: 700;
  color: #1f2937;
  font-size: 1rem;
}

.accordion-badge {
  padding: 3px 10px;
  background: #667eea;
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.accordion-arrow {
  font-size: 14px;
  color: #6b7280;
  transition: transform 0.3s;
  flex-shrink: 0;
  font-weight: bold;
}

.filter-accordion-header.active .accordion-arrow {
  transform: rotate(180deg);
  color: #667eea;
}

.filter-accordion-content {
  display: none;
  padding: 20px 16px 16px 16px;
  background: white;
  border-top: 1px solid #f3f4f6;
}

.filter-accordion-content .filter-group {
  margin-bottom: 16px;
}

.filter-accordion-content .filter-group:last-child {
  margin-bottom: 0;
}

.filter-accordion-content label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.filter-accordion-content select,
.filter-accordion-content input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: white;
}

.filter-accordion-content select:hover,
.filter-accordion-content input[type="text"]:hover {
  border-color: #d1d5db;
}

.filter-accordion-content select:focus,
.filter-accordion-content input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-hint {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.4;
  font-style: italic;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  margin-top: 8px;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.premium-badge-small {
  padding: 3px 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
  margin-right: 8px;
}

.filter-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

.filter-actions-sidebar {
  margin-top: 16px;
}

.notify-btn-sidebar {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.notify-btn-sidebar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .filters-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    margin-bottom: 20px;
  }
  
  .main-layout {
    flex-direction: column;
  }
}


/* Disabled Filter State (for Pro features) */
.filter-accordion.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.filter-accordion.disabled .filter-accordion-header {
  background: #f3f4f6;
  cursor: not-allowed;
}

.filter-accordion.disabled .accordion-title {
  color: #9ca3af;
}

.filter-accordion.disabled select {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Allow clicking on disabled filter to show upgrade hint */
.filter-accordion.disabled {
  pointer-events: auto;
}

.filter-accordion.disabled .filter-accordion-header {
  cursor: pointer;
}

.filter-accordion.disabled select {
  pointer-events: none;
}


/* ============================================
   IMPROVED SEARCH BAR AREA
   ============================================ */

.search-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.search-input-container {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.dropdown-container {
  flex: 1;
  position: relative;
}

.dropdown-container input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s;
}

.dropdown-container input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-buttons-inline {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.search-btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.search-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.search-btn-primary .search-icon {
  font-size: 18px;
}

.clear-btn-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: white;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.clear-btn-secondary:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.clear-icon {
  font-size: 16px;
  font-weight: bold;
}

/* Popular Roles Section */
.popular-roles-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 16px;
}

.popular-roles-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  flex-shrink: 0;
}

.popular-roles-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.popular-role-chip {
  padding: 6px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.popular-role-chip:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Selected Roles Chips */
.roles-container-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
  border: 2px dashed #e5e7eb;
}

.roles-container-chips:empty::before {
  content: 'No roles selected. Type above or click popular roles to add.';
  color: #9ca3af;
  font-size: 0.9rem;
  font-style: italic;
}

.role-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: chipSlideIn 0.3s ease;
}

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

.role-chip-remove {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.role-chip-remove:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-input-container {
    flex-direction: column;
  }
  
  .search-buttons-inline {
    width: 100%;
  }
  
  .search-btn-primary,
  .clear-btn-secondary {
    flex: 1;
  }
  
  .popular-roles-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .popular-roles-chips {
    width: 100%;
  }
}


/* ============================================
   AUTO-FILL DEMO STYLES
   ============================================ */

/* Demo CTA Button */
/* Premium Demo CTA */
.autofill-demo-cta {
  margin-top: 32px;
  text-align: center;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.btn-demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
  height: 68px;
}

.btn-demo-cta::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.5s;
}

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

.btn-demo-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

.btn-demo-cta:active {
  transform: translateY(-1px);
}

.demo-icon {
  font-size: 1.8rem;
  animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
  }
  50% { 
    transform: translateY(-6px) rotate(-5deg); 
  }
}

.btn-demo-cta:hover .demo-icon {
  animation: rocketTilt 0.6s ease-in-out infinite;
}

@keyframes rocketTilt {
  0%, 100% { 
    transform: rotate(-10deg); 
  }
  50% { 
    transform: rotate(10deg); 
  }
}

.demo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.demo-text strong {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.demo-text small {
  font-size: 0.9rem;
  opacity: 0.95;
  font-weight: 400;
}

.demo-arrow {
  font-size: 1.4rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: arrowPulse 2s ease-in-out infinite;
}

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

.btn-demo-cta:hover .demo-arrow {
  transform: translateX(8px);
  animation: none;
  opacity: 1;
}

/* Demo Modal */
.demo-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.demo-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.demo-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.demo-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f3f4f6;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.demo-modal-close:hover {
  background: #e5e7eb;
  transform: rotate(90deg);
}

.demo-header {
  padding: 40px 40px 20px;
  text-align: center;
  border-bottom: 2px solid #f3f4f6;
}

.demo-header h2 {
  margin: 0 0 10px 0;
  font-size: 2rem;
  color: #1f2937;
}

.demo-header p {
  margin: 0;
  color: #6b7280;
  font-size: 1.05rem;
}

.demo-body {
  padding: 30px 40px 40px;
}

/* Demo Form */
.demo-form-container {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 2px solid #e5e7eb;
}

.demo-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.demo-form-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #374151;
}

.demo-badge {
  padding: 4px 12px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.demo-form-group {
  margin-bottom: 16px;
}

.demo-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.demo-form-group input,
.demo-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  background: white;
}

.demo-form-group input:focus,
.demo-form-group textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.demo-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Filling Animation */
.demo-form-group input.filling,
.demo-form-group textarea.filling {
  border-color: #10b981;
  background: linear-gradient(90deg, #ecfdf5 0%, white 100%);
  animation: fillPulse 0.5s ease;
}

@keyframes fillPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Demo Controls */
.demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.demo-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f3f4f6;
  border-radius: 8px;
  font-weight: 600;
}

.timer-label {
  color: #6b7280;
  font-size: 0.9rem;
}

.timer-value {
  color: #10b981;
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 60px;
  text-align: center;
}

.btn-start-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-start-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

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

.btn-start-demo .btn-icon {
  font-size: 1.3rem;
}

.btn-reset-demo {
  padding: 12px 24px;
  background: #f3f4f6;
  color: #374151;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-reset-demo:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

/* Demo Result */
.demo-result {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 12px;
  animation: fadeIn 0.5s ease;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.demo-result h3 {
  margin: 0 0 12px 0;
  font-size: 1.75rem;
  color: #065f46;
}

.demo-result p {
  margin: 0 0 24px 0;
  color: #047857;
  font-size: 1.1rem;
}

.btn-signup-demo {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-signup-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .demo-modal-content {
    max-height: 95vh;
  }

  .demo-header {
    padding: 30px 20px 15px;
  }

  .demo-header h2 {
    font-size: 1.5rem;
  }

  .demo-body {
    padding: 20px;
  }

  .demo-form-container {
    padding: 16px;
  }

  .demo-form-row {
    grid-template-columns: 1fr;
  }

  .btn-demo-cta {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .demo-text strong {
    font-size: 1rem;
  }

  .demo-text small {
    font-size: 0.8rem;
  }

  .demo-controls {
    flex-direction: column;
  }

  .demo-timer {
    width: 100%;
    justify-content: center;
  }

  .btn-start-demo {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================
   ENHANCED JOB CARDS
   ============================================ */

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.job-header-left {
  flex: 1;
}

.company-icon {
  margin-right: 4px;
}

.fortune-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.9rem;
  animation: pulse 2s infinite;
}

/* Match Score Container */
.match-score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Match Score Indicator with Colored Ring */
.match-score-indicator {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.score-ring {
  transform-origin: center;
  transition: all 0.3s;
}

.match-score-indicator:hover .score-ring {
  transform: scale(1.05);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 800;
  color: #1f2937;
}

/* Match Score Label */
.match-score-label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.score-text {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Info Icon with Tooltip */
.score-info-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  cursor: help;
  color: #9ca3af;
  transition: color 0.3s;
}

.score-info-icon:hover {
  color: #667eea;
}

.score-info-icon[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: -10px;
  width: 240px;
  padding: 10px 12px;
  background: #1f2937;
  color: white;
  font-size: 0.75rem;
  line-height: 1.4;
  border-radius: 8px;
  white-space: normal;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: tooltipFadeIn 0.2s ease-out;
}

.score-info-icon[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  right: 4px;
  border: 6px solid transparent;
  border-top-color: #1f2937;
  z-index: 101;
}

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

/* Score Color Classes */
.match-score-indicator.excellent .score-ring circle:last-child {
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
}

.match-score-indicator.good .score-ring circle:last-child {
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
}

.match-score-indicator.low .score-ring circle:last-child {
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4));
}

/* Job Meta Information */
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #6b7280;
}

.job-salary {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #10b981;
}

/* Match Score Bar with Dot */
.match-score-bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 100px;
  cursor: help;
}

.match-score-label-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
}

.match-score-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.match-label-text {
  color: #6b7280;
  font-weight: 500;
}

.match-score-value {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-left: auto;
}

.match-progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.match-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.match-progress-fill.excellent {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.match-progress-fill.good {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.match-progress-fill.low {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Job Indicators */
.job-indicators {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.job-indicator {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.job-indicator.hot-job {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fbbf24;
}

.job-indicator.high-salary {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid #10b981;
}

/* Enhanced Badges Row */
.job-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* Benefits Section */
.benefits-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-radius: 8px;
  border: 1px solid #10b981;
}

.benefit-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: white;
  color: #059669;
  border: 1px solid #10b981;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
}

.benefit-tag:hover {
  background: #ecfdf5;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

/* Employment Type Badge */
.employment-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #ede9fe;
  color: #7c3aed;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #a78bfa;
}

/* Work Type Badges */
.work-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid;
}

.work-type-badge.remote {
  background: #ecfdf5;
  color: #059669;
  border-color: #10b981;
}

.work-type-badge.hybrid {
  background: #fef3c7;
  color: #d97706;
  border-color: #f59e0b;
}

.work-type-badge.onsite {
  background: #ede9fe;
  color: #7c3aed;
  border-color: #8b5cf6;
}

/* Seniority Badges */
.seniority-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid;
}

.seniority-badge.junior {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #3b82f6;
}

.seniority-badge.mid {
  background: #e0e7ff;
  color: #4f46e5;
  border-color: #6366f1;
}

.seniority-badge.senior {
  background: #fce7f3;
  color: #be123c;
  border-color: #f43f5e;
}

.seniority-badge.lead {
  background: #fef2f2;
  color: #991b1b;
  border-color: #dc2626;
}

/* Role and Source Badges */
.role-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

.source-badge {
  display: inline-block;
  padding: 4px 12px;
  background: white;
  color: #6b7280;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

/* Platform-Specific Source Badges */
.source-badge.source-linkedin {
  background: #eef3ff;
  color: #0a66c2;
  border-color: #0a66c2;
}

.source-badge.source-indeed {
  background: #fff4e6;
  color: #2164f3;
  border-color: #2164f3;
}

.source-badge.source-ziprecruiter {
  background: #e8f5e9;
  color: #1b7e3a;
  border-color: #1b7e3a;
}

.source-badge.source-glassdoor {
  background: #e8f5e9;
  color: #0caa41;
  border-color: #0caa41;
}

.source-badge.source-dice {
  background: #fff3e0;
  color: #e65100;
  border-color: #e65100;
}

.source-badge.source-remoteok {
  background: #f3e5f5;
  color: #7b1fa2;
  border-color: #7b1fa2;
}

.source-badge.source-google-jobs {
  background: #e8f5e9;
  color: #1e8e3e;
  border-color: #1e8e3e;
}

.source-badge.source-jsearch {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #1565c0;
}

/* Enhanced Job Actions */
.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* Unified Button System - All Pages */
.job-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.job-action-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Save Button */
.job-action-btn.save-btn {
  background: #ffc107;
  color: #1a1a1a;
}

.job-action-btn.save-btn:hover:not(:disabled) {
  background: #ffb300;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.job-action-btn.save-btn.saved {
  background: #10b981;
  color: white;
}

/* Preview Button */
.job-action-btn.preview-btn {
  background: #6c757d;
  color: white;
}

.job-action-btn.preview-btn:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Apply Button */
.job-action-btn.apply-btn {
  background: #28a745;
  color: white;
}

.job-action-btn.apply-btn:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.job-action-btn.apply-btn.applied {
  background: #1976D2;
  color: white;
}

/* AI Message Button */
.job-action-btn.message-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.job-action-btn.message-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Cover Letter Button */
.job-action-btn.cover-letter-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.job-action-btn.cover-letter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* AI Badge */
.ai-badge-btn {
  font-size: 0.75rem;
  margin-left: 4px;
}

/* Sparkle Animation for AI Buttons */
.job-action-btn.message-btn svg,
.job-action-btn.cover-letter-btn svg {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* Disabled State */
.job-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.job-action-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
  .job-card-header {
    flex-direction: column;
  }
  
  .match-score-indicator {
    align-self: flex-start;
  }
  
  .job-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .job-actions {
    flex-direction: column;
  }
  
  .job-action-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================
   ACCESSIBILITY - FOCUS STATES & KEYBOARD NAV
   ============================================ */

/* Global Focus Styles */
*:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Button Focus States */
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.job-action-btn:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

/* Feature Pills - Make Keyboard Focusable */
.feature-pill {
  cursor: pointer;
}

.feature-pill:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 2px;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Popular Role Chips - Keyboard Focusable */
.popular-role-chip:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 2px;
  transform: translateY(-2px);
}

/* Navigation Focus */
.nav-item:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}

/* Form Input Focus */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 0;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tab Focus */
.dash-tab:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: -2px;
}

/* Link Focus */
a:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Modal Close Button Focus */
.close:focus-visible,
.close-upgrade:focus-visible,
.close-consent:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
  opacity: 1;
}

/* Filter Accordion Focus */
.filter-accordion-header:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: -2px;
}

/* Checkbox and Radio Focus */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #667eea;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 10000;
  font-weight: 600;
}

.skip-to-main:focus {
  top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  *:focus-visible {
    outline-width: 4px;
    outline-color: currentColor;
  }
}

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


/* ===== COMPREHENSIVE ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus States for All Interactive Elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #667eea !important;
  outline-offset: 2px !important;
}

/* High Contrast Focus for Buttons */
.btn-primary:focus-visible,
.search-btn-primary:focus-visible,
.plan-button:focus-visible,
.job-action-btn:focus-visible,
.btn-demo-cta:focus-visible,
.btn-start-demo:focus-visible {
  outline: 3px solid #667eea !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2) !important;
}

/* Focus States for Pills and Chips - Make them keyboard focusable */
.role-tag,
.popular-role-chip,
.feature-pill,
.work-type-badge,
.seniority-badge,
.role-badge,
.source-badge,
.connection-tag {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.role-tag:focus-visible,
.popular-role-chip:focus-visible,
.feature-pill:focus-visible,
.work-type-badge:focus-visible,
.seniority-badge:focus-visible,
.role-badge:focus-visible,
.source-badge:focus-visible,
.connection-tag:focus-visible {
  outline: 3px solid #667eea !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
  transform: translateY(-2px);
  z-index: 10;
}

.role-tag:hover,
.popular-role-chip:hover,
.feature-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Match Score Indicator Focus */
.match-score-container:focus-visible,
.match-score-indicator:focus-visible {
  outline: 3px solid #667eea !important;
  outline-offset: 2px !important;
  border-radius: 8px;
}

/* Filter Accordion Focus */
.filter-accordion-header:focus-visible {
  outline: 3px solid #667eea !important;
  outline-offset: -2px !important;
  background: rgba(102, 126, 234, 0.05);
}

/* Modal Close Button Focus */
.close:focus-visible,
.close-message:focus-visible,
.close-upgrade:focus-visible,
.demo-modal-close:focus-visible {
  outline: 3px solid #667eea !important;
  outline-offset: 2px !important;
  transform: scale(1.1);
  background: rgba(102, 126, 234, 0.1);
}

/* Navigation Focus States */
.nav-item:focus-visible,
.nav-cta:focus-visible,
.nav-logout:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid #667eea !important;
  outline-offset: 2px !important;
  background: rgba(102, 126, 234, 0.1);
}

/* Job Card Focus */
.job-card:focus-within {
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2) !important;
  border-color: #667eea !important;
  transform: translateY(-2px);
}

/* Message Type Button Focus */
.message-type-btn:focus-visible {
  outline: 3px solid #667eea !important;
  outline-offset: 2px !important;
  background: rgba(102, 126, 234, 0.1);
}

/* Dropdown Item Focus */
.dropdown-item:focus-visible {
  outline: 3px solid #667eea !important;
  outline-offset: -2px !important;
  background: rgba(102, 126, 234, 0.1);
}

/* Skip to Main Content Link (for screen readers) */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #667eea;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 10000;
  font-weight: 600;
}

.skip-to-main:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Remove Role Button Focus */
.remove-role:focus-visible {
  outline: 3px solid #ef4444 !important;
  outline-offset: 2px !important;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
}

/* Checkbox and Radio Focus */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 3px solid #667eea !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* Plan Card Focus */
.plan-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25) !important;
}

/* Notification Button Focus */
.notify-btn-sidebar:focus-visible,
#notifyBtn:focus-visible {
  outline: 3px solid #667eea !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

/* Reset Filters Button Focus */
.btn-reset-filters:focus-visible,
.clear-btn-secondary:focus-visible {
  outline: 3px solid #ef4444 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* Ensure all interactive elements have visible focus */
*:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible {
    outline-width: 4px !important;
    outline-color: currentColor !important;
  }
}

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


/* ===== ENHANCED DEMO EXPERIENCE ===== */

/* Progress Container */
.demo-progress-container {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  animation: slideDown 0.3s ease;
}

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

/* Progress Header */
.demo-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.demo-progress-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.demo-progress-percentage {
  font-size: 16px;
  font-weight: 700;
  color: #667eea;
}

/* Progress Bar */
.demo-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.demo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
}

.demo-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s infinite;
}

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

/* Step Indicators */
.demo-step-indicators {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.demo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.demo-step.active .step-dot {
  background: #667eea;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.demo-step.completed .step-dot {
  background: #10b981;
  border-color: #10b981;
}

.demo-step.completed .step-dot::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin-top: -2px;
  margin-left: -2px;
}

.step-label {
  font-size: 10px;
  color: #6b7280;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.3s ease;
}

.demo-step.active .step-label {
  color: #667eea;
  font-weight: 600;
}

.demo-step.completed .step-label {
  color: #10b981;
  font-weight: 600;
}

/* Form Field Animations */
.demo-form input.filling,
.demo-form textarea.filling {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  animation: fieldPulse 0.5s ease;
}

@keyframes fieldPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Typing Cursor Effect */
.demo-form input.typing::after,
.demo-form textarea.typing::after {
  content: '|';
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Success Checkmark Animation */
.demo-form input.filled::before,
.demo-form textarea.filled::before {
  content: '✓';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-weight: 700;
  font-size: 16px;
  animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
  0% {
    transform: translateY(-50%) scale(0);
  }
  50% {
    transform: translateY(-50%) scale(1.2);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

/* Demo Form Group Enhancement */
.demo-form-group {
  position: relative;
}

.demo-form-group input,
.demo-form-group textarea {
  transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .demo-step-indicators {
    gap: 4px;
  }

  .step-label {
    font-size: 9px;
  }

  .step-dot {
    width: 10px;
    height: 10px;
  }

  .demo-progress-container {
    padding: 16px;
  }
}

/* Timer Enhancement */
.demo-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 8px;
  margin-bottom: 16px;
}

.timer-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.timer-value {
  font-size: 20px;
  font-weight: 700;
  color: #667eea;
  font-family: 'Courier New', monospace;
  min-width: 60px;
  text-align: center;
}


/* ===== HOW IT WORKS SECTION ===== */

.how-it-works-section {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  padding: 40px 20px;
  margin: 0 0 30px 0;
  position: relative;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding: 0 20px;
  }
  to {
    opacity: 1;
    max-height: 2000px;
    padding: 40px 20px;
  }
}

/* Dismiss Button */
.how-it-works-dismiss {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.how-it-works-dismiss:hover {
  background: #fee;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.how-it-works-dismiss i {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.how-it-works-dismiss:hover i {
  color: #ef4444;
}

.how-it-works-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Steps Container */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* Step Card */
.step-card {
  background: white;
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.step-card-highlight {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-color: #667eea;
}

.step-card-highlight::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Step Number */
.step-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Step Icon */
.step-icon-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.step-icon {
  width: 40px;
  height: 40px;
  color: #667eea;
  stroke-width: 2;
}

/* Step Content */
.step-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.step-description {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* Step Features */
.step-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #374151;
}

.feature-check {
  width: 18px;
  height: 18px;
  color: #10b981;
  stroke-width: 3;
  flex-shrink: 0;
}

/* How It Works CTA */
.how-it-works-cta {
  text-align: center;
}

.btn-how-it-works {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.btn-how-it-works:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.btn-how-it-works .btn-icon {
  width: 20px;
  height: 20px;
  stroke-width: 3;
}

.cta-subtext {
  margin-top: 16px;
  font-size: 14px;
  color: #9ca3af;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .steps-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-card-highlight::before {
    top: 20px;
    left: 20px;
    transform: none;
  }
}

@media (max-width: 640px) {
  .how-it-works-section {
    padding: 30px 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .step-card {
    padding: 24px 20px;
  }

  .step-title {
    font-size: 18px;
  }

  .btn-how-it-works {
    width: 100%;
    justify-content: center;
  }
  
  .how-it-works-dismiss {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
}

/* Lucide Icon Styling */
.lucide {
  display: inline-block;
  vertical-align: middle;
}


/* ===== SITE FOOTER ===== */

.site-footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #d1d5db;
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

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

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #667eea;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

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

.footer-social a {
  color: #9ca3af;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  color: #667eea;
}

.footer-social i {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .site-footer {
    padding: 40px 16px 20px;
    margin-top: 60px;
  }
}


/* ===== SECURITY SECTION ===== */

.security-section {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  padding: 60px 20px;
  margin: 60px 0;
}

.security-container {
  max-width: 1200px;
  margin: 0 auto;
}

.security-header {
  text-align: center;
  margin-bottom: 50px;
}

.security-icon-large {
  width: 64px;
  height: 64px;
  color: #10b981;
  margin: 0 auto 20px;
  stroke-width: 2;
}

.security-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 12px;
}

.security-header p {
  font-size: 18px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.security-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.security-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}

.security-icon {
  width: 32px;
  height: 32px;
  color: #10b981;
  margin-bottom: 16px;
  stroke-width: 2;
}

.security-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.security-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.security-cta {
  text-align: center;
}

.btn-security {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #10b981;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-security:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-security i {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

@media (max-width: 1024px) {
  .security-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .security-section {
    padding: 40px 16px;
  }
  
  .security-header h2 {
    font-size: 28px;
  }
  
  .security-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .security-card {
    padding: 24px;
  }
}


/* ===== COMPANY LOGOS ===== */

.company-logo-wrapper {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  position: relative;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  padding: 4px;
  border: 1px solid #e5e7eb;
}

.company-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.job-card-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.job-header-left {
  flex: 1;
  min-width: 0;
}


/* ===== DARK MODE ===== */

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  margin-right: 12px;
}

.theme-toggle:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: rotate(180deg);
}

.theme-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: all 0.3s;
  stroke-width: 2;
}

.theme-icon-light {
  opacity: 1;
  color: #f59e0b;
}

.theme-icon-dark {
  opacity: 0;
  color: #6366f1;
}

[data-theme="dark"] .theme-icon-light {
  opacity: 0;
}

[data-theme="dark"] .theme-icon-dark {
  opacity: 1;
}

/* Dark Mode Styles */
[data-theme="dark"] .search-results-compact {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

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

[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --border-color: #374151;
}

[data-theme="dark"] body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.1) 0%, 
    rgba(118, 75, 162, 0.15) 50%,
    rgba(56, 189, 248, 0.1) 100%
  );
}

[data-theme="dark"] .job-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

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

[data-theme="dark"] .job-company,
[data-theme="dark"] .job-location,
[data-theme="dark"] .job-posted {
  color: var(--text-secondary);
}

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

[data-theme="dark"] .nav-item:hover,
[data-theme="dark"] .nav-item.active {
  color: #667eea;
}

[data-theme="dark"] .filters-sidebar {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .filter-accordion-header {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-theme="dark"] #searchInput,
[data-theme="dark"] select,
[data-theme="dark"] input {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-list {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
  color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .how-it-works-section {
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.5) 0%, var(--bg-primary) 100%);
}

[data-theme="dark"] .step-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

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

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

[data-theme="dark"] .security-section {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-primary) 100%);
}

[data-theme="dark"] .security-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .security-card h3 {
  color: var(--text-primary);
}

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

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


/* ===== AI MESSAGE PREVIEW MODAL ===== */

.message-preview-modal {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  position: relative;
  z-index: 1001;
}

.preview-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 24px;
}

.message-preview-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
  overflow-x: auto;
}

.preview-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #6b7280;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.preview-tab:hover {
  color: #667eea;
}

.preview-tab.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.message-preview-content {
  position: relative;
  min-height: 300px;
}

.preview-sample {
  display: none;
}

.preview-sample.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.preview-sample h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.message-box {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.message-box p {
  margin: 0 0 12px 0;
}

.message-box p:last-child {
  margin-bottom: 0;
}

.preview-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-badge {
  padding: 6px 12px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.preview-cta {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.preview-note {
  margin-top: 12px;
  font-size: 14px;
  color: #6b7280;
}

[data-theme="dark"] .message-box {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

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

[data-theme="dark"] .preview-tab.active {
  color: #667eea;
}

[data-theme="dark"] .preview-sample h3 {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .message-preview-tabs {
    gap: 4px;
  }
  
  .preview-tab {
    padding: 10px 12px;
    font-size: 13px;
  }
}


/* ===== FEATURES PAGE ===== */

.features-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.features-hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.features-hero-content p {
  font-size: 20px;
  opacity: 0.9;
}

.features-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.feature-card-large {
  grid-column: span 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon i {
  width: 24px;
  height: 24px;
  color: #667eea;
  stroke-width: 2;
}

.feature-icon-large {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon-large i {
  width: 32px;
  height: 32px;
  color: #667eea;
  stroke-width: 2;
}

.feature-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #374151;
}

.feature-list i {
  width: 18px;
  height: 18px;
  color: #10b981;
  stroke-width: 3;
  flex-shrink: 0;
}

.features-cta {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.features-cta h2 {
  font-size: 36px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 16px;
}

.features-cta p {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 32px;
}

.btn-large {
  padding: 16px 48px;
  font-size: 18px;
}

.cta-note {
  margin-top: 16px;
  font-size: 14px;
  color: #9ca3af;
}

@media (max-width: 1024px) {
  .features-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-hero-content h1 {
    font-size: 32px;
  }
  
  .features-container {
    grid-template-columns: 1fr;
  }
  
  .feature-card-large {
    grid-column: span 1;
  }
}

[data-theme="dark"] .feature-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .feature-card h2,
[data-theme="dark"] .feature-card h3 {
  color: var(--text-primary);
}

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

/* Why Choose Us Section */
.why-choose-section {
  padding: 80px 20px;
  background: #f8f9fa;
}

.why-choose-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.why-choose-container h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.section-subtitle {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 48px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.comparison-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  text-align: left;
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.comparison-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.comparison-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.comparison-card p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* Responsive for Why Choose & Stats */
@media (max-width: 1024px) {
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .why-choose-container h2 {
    font-size: 28px;
  }
  
  .stat-number {
    font-size: 36px;
  }
}

/* Dark Mode for New Sections */
[data-theme="dark"] .why-choose-section {
  background: var(--bg-primary);
}

[data-theme="dark"] .comparison-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .comparison-card h3 {
  color: var(--text-primary);
}

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

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


/* Ultra-Compact Dual-Action Banner */
.dual-action-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
  position: relative;
  animation: slideDown 0.3s ease-out;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}

.action-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

.action-card.completed {
  opacity: 0.6;
  pointer-events: none;
}

.action-card.completed::before {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.action-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.action-content {
  flex: 1;
  color: white;
  min-width: 0;
}

.action-content h4 {
  margin: 0 0 2px 0;
  font-size: 13px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-content p {
  margin: 0;
  font-size: 11px;
  opacity: 0.85;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-btn {
  background: white;
  color: #667eea;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.action-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
  align-self: stretch;
  margin: 4px 0;
}

.banner-close-dual {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  line-height: 1;
}

.banner-close-dual:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

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

@media (max-width: 768px) {
  .dual-action-banner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px 10px 12px;
  }
  
  .action-divider {
    display: none;
  }
  
  .action-card {
    padding: 8px 10px;
  }
  
  .action-icon {
    font-size: 24px;
  }
  
  .action-content h4 {
    font-size: 12px;
  }
  
  .action-content p {
    font-size: 10px;
  }
  
  .action-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* Match Score Prompt Banner - DEPRECATED, replaced by smart-action-banner */
.match-score-prompt {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  position: relative;
  animation: slideDown 0.3s ease-out;
}

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

.match-score-prompt .prompt-icon {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
}

.match-score-prompt .prompt-content {
  flex: 1;
}

.match-score-prompt h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.match-score-prompt p {
  margin: 0 0 16px 0;
  font-size: 14px;
  opacity: 0.95;
  line-height: 1.5;
}

.match-score-prompt .prompt-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.match-score-prompt .btn-prompt-primary {
  background: white;
  color: #667eea;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-block;
}

.match-score-prompt .btn-prompt-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.match-score-prompt .btn-prompt-dismiss {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.match-score-prompt .btn-prompt-dismiss:hover {
  background: rgba(255, 255, 255, 0.3);
}

.match-score-prompt .prompt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.match-score-prompt .prompt-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .match-score-prompt {
    flex-direction: column;
    text-align: center;
  }
  
  .match-score-prompt .prompt-actions {
    justify-content: center;
  }
  
  .match-score-prompt .prompt-close {
    top: 8px;
    right: 8px;
  }
}
/* ============================================
   OPTION 2: COMPACT DENSE JOB CARD
   Information-dense, minimal padding, efficient
   ============================================ */

.job-card-option2 {
  background: white;
  padding: 12px 16px; /* Reduced from 14px 18px */
  border-radius: 8px; /* Reduced from 10px */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother, faster */
  border: 1px solid #e5e7eb;
}

.job-card-option2:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12); /* Blue tint */
  border-color: #3b82f6;
}

/* Header Row */
.job-card-option2 .header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px; /* Reduced from 12px */
  margin-bottom: 5px; /* Reduced from 6px */
}

.job-card-option2 .left-section {
  display: flex;
  align-items: center;
  gap: 8px; /* Reduced from 10px */
  flex: 1;
  min-width: 0;
}

.job-card-option2 .company-logo-small {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.job-card-option2 .title-company {
  flex: 1;
  min-width: 0;
}

.job-card-option2 .job-title-compact {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card-option2 .company-name-compact {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 500;
}

/* Match Score - Slick & Efficient Style */
.job-card-option2 .match-section-slick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.job-card-option2 .match-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-card-option2 .match-label-slick {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

.job-card-option2 .match-dot-slick {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.job-card-option2 .match-value-slick {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.job-card-option2 .match-bar-slick {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.job-card-option2 .match-fill-slick {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card-option2 .match-label-text-slick {
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: right;
}

/* Old Match Score (keep for backwards compatibility) */
.job-card-option2 .match-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 90px;
}

.job-card-option2 .match-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.job-card-option2 .match-dot-small {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.job-card-option2 .match-text {
  font-size: 0.8125rem;
  color: #6b7280;
}

.job-card-option2 .match-bar-mini {
  width: 90px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.job-card-option2 .match-fill-mini {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

/* Info Row */
.job-card-option2 .info-row-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Reduced from 12px */
  align-items: center;
  margin-bottom: 5px; /* Reduced from 6px */
  font-size: 0.8125rem;
  color: #4b5563;
}

.job-card-option2 .info-item-compact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.job-card-option2 .info-item-compact.salary-compact {
  font-weight: 700;
  color: #10b981;
}

.job-card-option2 .inline-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.job-card-option2 .inline-indicator.hot {
  background: #fef3c7;
  color: #92400e;
}

.job-card-option2 .inline-indicator.high {
  background: #d1fae5;
  color: #065f46;
}

/* Badges Row Compact */
.job-card-option2 .badges-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 5px; /* Reduced from 6px */
  margin-bottom: 8px; /* Reduced from 10px */
}

.job-card-option2 .badge-mini {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 600;
  background: #f3f4f6;
  color: #4b5563;
}

.job-card-option2 .badge-mini.work-type {
  background: #dbeafe;
  color: #1e40af;
}

.job-card-option2 .badge-mini.seniority {
  background: #fce7f3;
  color: #9f1239;
}

/* Actions Compact */
.job-card-option2 .actions-compact {
  display: flex;
  gap: 5px; /* Reduced from 6px */
}

.job-card-option2 .btn-mini {
  flex: 1;
  padding: 5px 8px; /* Reduced from 6px 10px */
  border-radius: 5px; /* Reduced from 6px */
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1); /* Faster, smoother */
  white-space: nowrap;
}

.job-card-option2 .btn-mini:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-0.5px); /* Subtle lift */
}

.job-card-option2 .btn-mini.primary {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.job-card-option2 .btn-mini.primary:hover {
  background: #2563eb;
}

/* AI Buttons - Magical Style */
.job-card-option2 .btn-mini.ai-button {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  border-color: #8b5cf6;
  position: relative;
  overflow: hidden;
}

.job-card-option2 .btn-mini.ai-button:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  border-color: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.job-card-option2 .btn-mini.ai-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .job-card-option2 .header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .job-card-option2 .match-section {
    align-items: flex-start;
    width: 100%;
  }
  
  .job-card-option2 .match-bar-mini {
    width: 100%;
  }
  
  .job-card-option2 .btn-mini {
    flex: 1 1 45%;
  }
}

/* Dark Mode */
[data-theme="dark"] .job-card-option2 {
  background: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .job-card-option2 .job-title-compact {
  color: #f9fafb;
}

[data-theme="dark"] .job-card-option2 .company-name-compact,
[data-theme="dark"] .job-card-option2 .info-row-compact {
  color: #9ca3af;
}

[data-theme="dark"] .job-card-option2 .btn-mini {
  background: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

[data-theme="dark"] .job-card-option2 .btn-mini:hover {
  background: #4b5563;
  border-color: #3b82f6;
  color: #60a5fa;
}


/* AI Analysis Styling */
.ai-analysis-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
  color: white !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.ai-analysis-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.ai-analysis-btn.ai-ready {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.5);
  }
}

.ai-analysis-result {
  animation: slideDown 0.3s ease-out;
}

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

/* Spinner for AI loading */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

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


/* New Hero CTA Buttons */
.cta-buttons-hero {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 32px auto 40px;
  flex-wrap: wrap;
}

.btn-primary-hero {
  background: white;
  color: #667eea;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.15);
  color: #1f2937;
  padding: 18px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid rgba(31, 41, 55, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(31, 41, 55, 0.5);
  transform: translateY(-2px);
}

/* Stats Grid for 4 items */
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 20px !important;
  max-width: 900px !important;
  padding: 24px !important;
}

.stats-grid .stat-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}

.stats-grid .stat-number {
  font-size: 1.75rem !important;
}

.stats-grid .stat-label {
  font-size: 0.8rem !important;
}

@media (max-width: 768px) {
  .cta-buttons-hero {
    flex-direction: column;
  }
  
  .btn-primary-hero, .btn-secondary-hero {
    width: 100%;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* Extension Banner for Search/Saved Jobs Pages */
.extension-banner-search {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  animation: slideDown 0.4s ease-out;
}

.banner-content-search {
  display: flex;
  align-items: center;
  flex: 1;
}

.btn-banner-get {
  padding: 10px 20px;
  background: #FFD700;
  color: #333;
  border: 2px solid #FFD700;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-banner-get:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: #FFC700;
}

.btn-banner-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s;
  line-height: 1;
}

.btn-banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .extension-banner-search {
    flex-direction: column;
    text-align: center;
  }
  
  .banner-content-search {
    flex-direction: column;
    text-align: center;
  }
}

/* Profile Save Message */
.profile-message {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

.profile-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.profile-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

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

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

/* OLD SECTION REMOVED - See line 8199 for current styles */

/* ============================================
   DUAL-ACTION BANNER (Profile + Extension)
   ============================================ */

.dual-action-banner {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: slideDown 0.3s ease-out;
}

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

.banner-close-dual {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: all 0.2s;
  z-index: 2;
}

.banner-close-dual:hover {
  color: #ef4444;
  transform: scale(1.1);
}

.action-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s;
}

.action-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.action-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.action-content {
  flex: 1;
  min-width: 0;
}

.action-content h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.action-content p {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.3;
}

.action-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-block;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-divider {
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .dual-action-banner {
    flex-direction: column;
    padding: 16px;
  }
  
  .action-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
  }
  
  .action-card {
    flex-direction: column;
    text-align: center;
  }
  
  .action-btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   POPULAR ROLES SECTION - ULTRA COMPACT
   ============================================ */

.popular-roles-revamped {
  background: white;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.popular-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
}

.popular-header svg {
  width: 14px;
  height: 14px;
  color: #667eea;
}

.popular-title {
  color: #1f2937;
  font-weight: 600;
  font-size: 0.85rem;
}

.popular-roles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.role-card:hover {
  background: #f3f4f6;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-1px);
}

.role-card.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.role-card .role-icon {
  font-size: 1rem;
  line-height: 1;
}

.role-card .role-name {
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .popular-roles-grid {
    gap: 6px;
  }
  
  .role-card {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* ============================================
   JOBS CONTROLS BOX - 2 ROW LAYOUT
   ============================================ */

.jobs-controls-box {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 10px 14px;
}

/* Row 1: Job Count Only */
.controls-row-1 {
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.stats-text {
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 500;
}

/* Row 2: AI Matching Status and Sort */
.controls-row-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.ai-matching-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-control-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sort-label-box {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
}

.sort-select-box {
  padding: 6px 28px 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 140px;
}

.sort-select-box:hover {
  border-color: #667eea;
}

.sort-select-box:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sort-select-box option {
  padding: 8px 12px;
  background: white;
  color: #1f2937;
  font-size: 0.875rem;
}

.ai-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.ai-status-on {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #10b981;
}

.ai-status-on .status-text {
  color: #10b981;
}

.ai-status-off {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ef4444;
}

.ai-status-off .status-text {
  color: #ef4444;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

.status-dot-green {
  background: #10b981;
}

.status-dot-red {
  background: #ef4444;
}

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

.ai-description {
  font-size: 0.8rem;
  color: #9333ea;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .controls-row-1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .sort-control-box {
    width: 100%;
    justify-content: space-between;
  }
  
  .sort-select-box {
    flex: 1;
  }
}

/* Responsive - Stack on mobile */
@media (max-width: 768px) {
  .jobs-controls-bar-single {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .stats-inline {
    min-width: 100%;
  }
  
  .match-indicator-inline {
    justify-content: center;
  }
  
  .sort-inline {
    width: 100%;
    justify-content: space-between;
  }
  
  .sort-select-inline {
    flex: 1;
  }
}


/* Job Card Overflow Menu */
.job-menu-container {
  position: relative;
  display: inline-block;
}

.btn-menu {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px !important;
  min-width: auto !important;
  line-height: 1;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: white !important;
}

.btn-menu:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.job-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  min-width: 220px;
  z-index: 10000;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.menu-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: white !important;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: #1f2937;
  font-family: inherit;
}

.menu-item:hover {
  background: #f9fafb !important;
}

.menu-item:not(:last-child) {
  border-bottom: 1px solid #f3f4f6;
}

.menu-icon {
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-text {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  color: #374151;
}

.btn-pro-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary-action {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  font-weight: 600 !important;
}

.btn-primary-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-primary-action:disabled {
  background: #d1d5db !important;
  cursor: not-allowed;
}


/* Ensure actions container allows dropdown overflow */
.actions-compact {
  overflow: visible !important;
  position: relative;
}
