:root {
  --primary-color: #6366F1;
  --secondary-color: #8B5CF6;
  --accent-color: #A855F7;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1f2937;
  --light-color: #ffffff;
  --bg-gradient: linear-gradient(135deg, #f9f9ff 0%, #f4f6ff 100%);
  --purple-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

/* Simple navbar override for RTL */
[dir="rtl"] .navbar .d-flex {
  flex-direction: row !important;
}

[dir="rtl"] .me-2 {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
}

[dir="rtl"] .me-3 {
  margin-left: 1rem !important;
  margin-right: 0 !important;
}

[dir="rtl"] .ms-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Typography */
body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  background: var(--light-color);
  color: var(--dark-color);
  overflow-x: hidden;
}

body.ar {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Enhanced Arabic text styling for hero section */
body.ar .hero-section h1 {
  font-weight: 900 !important;
  font-size: 3.2rem !important; /* Decreased by ~20% from 4rem */
  letter-spacing: 0.5px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4) !important;
  line-height: 1.1 !important; /* Improved line-height for better readability */
}

body.ar .hero-section .lead {
  font-weight: 600 !important;
  font-size: 1.15rem !important; /* Slightly reduced from 1.4rem */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
  line-height: 1.3 !important; /* Better line spacing */
  margin-bottom: 1.5rem !important; /* Reduced vertical spacing */
}

/* Mobile optimizations for Arabic text */
@media (max-width: 768px) {
  .hero-section {
    min-height: 65vh !important;
    padding: 3rem 0 !important;
  }
  
  body.ar .hero-section h1 {
    font-size: 2.2rem !important; /* Further optimized for mobile */
    line-height: 1.2 !important;
    text-align: center !important;
    word-spacing: 0.1em !important;
    margin-bottom: 1.5rem !important;
  }
  
  body.ar .hero-section .lead {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  body.ar .hero-buttons {
    justify-content: center !important;
    align-items: center !important;
  }
  
  body.ar .hero-buttons .btn {
    min-width: 200px !important;
    text-align: center !important;
  }
  
  .hero-content {
    padding: 2rem 1.5rem !important;
    margin-top: 1rem !important;
  }
  
  .hero-buttons {
    margin-bottom: 2rem !important;
  }
}

.display-4 {
  font-weight: 700;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

/* ===== MODERN LANDING PAGE DESIGN - REZI/RESUMENOW STYLE ===== */

/* Navigation */
.navbar {
  padding: 0.75rem 0; /* Reduced header height */
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.4rem 0; /* Reduced mobile header height */
  box-shadow: var(--box-shadow);
}

/* Mobile header height reduction */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar.scrolled {
    padding: 0.3rem 0;
  }
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--purple-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section */
.hero-section {
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%236366F1" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.hero-section .lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-buttons .btn {
  border-radius: var(--border-radius-sm);
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: var(--box-shadow);
}

.hero-buttons .btn-primary {
  background: var(--purple-gradient);
  color: white !important;
  font-weight: 700;
  transform: translateY(0);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.3);
}

.hero-buttons .btn-outline-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color) !important;
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}



/* Hero Illustration */
.hero-illustration {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-robot {
  width: 400px;
  height: 400px;
  background: var(--purple-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  animation: float 6s ease-in-out infinite;
}

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

.ai-robot i {
  font-size: 8rem;
  color: white;
}

/* ATS Score Widget */
.ats-score-widget {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  margin-top: 3rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.ats-score-widget h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.upload-zone {
  border: 2px dashed var(--primary-color);
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  background: rgba(99, 102, 241, 0.02);
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-zone:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--secondary-color);
}

.upload-zone.dragover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--secondary-color);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.upload-zone h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-zone p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.score-display {
  text-align: center;
  padding: 2rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--purple-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--box-shadow);
}

.score-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
}

.score-progress {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.score-progress-bar {
  height: 100%;
  background: var(--purple-gradient);
  transition: width 2s ease;
  border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .trust-badges {
    flex-direction: column;
    gap: 1rem;
  }
  
  .ai-robot {
    width: 280px;
    height: 280px;
    margin-top: 2rem;
  }
  
  .ai-robot i {
    font-size: 5rem;
  }
  
  .hero-section {
    padding: 2rem 0;
    min-height: 90vh;
  }
  
  .hero-content {
    text-align: center;
  }
}

/* Form Sections Styling */
.form-scroll-container {
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    background: #ffffff;
    /* Custom scrollbar for webkit browsers */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f5f9;
}

.form-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.form-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.form-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.form-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.form-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.section-title i {
    color: var(--secondary-color);
}

/* Enhanced form fields */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(92, 89, 242, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(92, 89, 242, 0.25);
}

/* Apply to All button styling */
.btn-outline-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Form validation styles */
.is-invalid {
    border-color: var(--danger-color) !important;
}

.is-valid {
    border-color: var(--success-color) !important;
}

/* RTL support for form sections */
[dir="rtl"] .section-title {
    text-align: right;
}

[dir="rtl"] .form-text {
    text-align: right;
}

/* Header buttons - much smaller size */
.btn-xs {
  font-size: 0.65rem !important;
  padding: 0.15rem 0.5rem !important;
  border-radius: 3px !important;
  height: 24px !important;
  line-height: 1 !important;
  border-width: 1px !important;
}

.header-account-btn {
  font-size: 0.65rem !important;
  padding: 0.15rem 0.5rem !important;
  border-radius: 3px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  color: #6c757d !important;
  border-color: #dee2e6 !important;
  border-width: 1px !important;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.header-account-btn i {
  font-size: 0.6rem !important;
  margin-right: 0.3rem !important;
}

.header-account-btn:hover {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  background-color: rgba(92, 89, 242, 0.05) !important;
  text-decoration: none !important;
}

.language-toggle-header .btn {
  font-size: 0.65rem !important;
  padding: 0.15rem 0.4rem !important;
  border-radius: 3px !important;
  height: 24px !important;
  min-width: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease;
  border-width: 1px !important;
  text-decoration: none !important;
}

.language-toggle-header .btn.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

/* Payment Logos Section */
.payment-logos {
  margin: 2rem 0;
}

.payment-logo {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.business-license-logo {
  transition: transform 0.3s ease;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* Mobile responsive payment logos */
@media (max-width: 768px) {
  .payment-logos {
    gap: 1rem !important;
  }
  
  .payment-logo {
    height: 35px !important;
  }
  
  .business-license-logo {
    height: 45px !important;
  }
}

.language-toggle-header .btn:hover {
  text-decoration: none !important;
}

.language-toggle .btn {
  border-radius: 20px;
  font-size: 0.875rem;
  padding: 0.375rem 1rem;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #4A47E6 0%, #3730A3 50%, #312E81 100%);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 3rem 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.cta {
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5), 
               1px 1px 2px rgba(0, 0, 0, 0.8);
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.25rem;
  opacity: 1;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: 0.3px;
}

.hero-buttons .btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-stats {
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.hero-image {
  position: relative;
  padding: 2rem 0;
}

.hero-image svg {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  max-width: 100%;
  height: auto;
}

/* Government-style professional appearance */
.hero-image::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background: linear-gradient(135deg, rgba(92, 89, 242, 0.05) 0%, rgba(74, 71, 230, 0.05) 100%);
  border-radius: 20px;
  z-index: -1;
}

.stat-item i {
  font-size: 1.25rem;
}

/* Highlight text styling */
.highlight {
  display: inline;
  text-align: right;
  background-color: rgba(255, 235, 59, 0.3);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Features Section Styling */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  direction: rtl;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  direction: rtl;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #5C59F2;
}

.feature-icon {
  flex-shrink: 0;
  order: 2;
}

.feature-content {
  flex-grow: 1;
  text-align: right;
  order: 1;
}

.feature-content .highlight {
  display: block;
  text-align: right;
  margin-bottom: 4px;
  background-color: rgba(255, 235, 59, 0.3);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-card h5 {
  color: #1e293b;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 20px;
    gap: 12px;
  }
  
  .icon-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .icon-wrapper i {
    font-size: 1.5rem !important;
  }
}

/* Cards */
.card {
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  border: none;
  padding: 1rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Forms */
.form-control, .form-select {
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(92, 89, 242, 0.25);
}

.form-label {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  transition: all 0.3s ease;
}

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

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

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

/* Resume Content */
.resume-content {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  font-family: 'Times New Roman', serif;
  line-height: 1.6;
  color: #333;
}

.resume-content h1 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.resume-content h2 {
  color: var(--dark-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.resume-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* ATS Score */
.ats-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  background: conic-gradient(var(--success-color) 0deg, var(--success-color) var(--score-deg, 0deg), #e5e7eb var(--score-deg, 0deg));
}

.ats-score-inner {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Pricing */
.price {
  position: relative;
}

.price .display-4 {
  color: var(--primary-color);
}

/* Testimonials */
.avatar {
  flex-shrink: 0;
}

.text-warning .fas {
  color: #fbbf24 !important;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.sparkles {
  animation: float 3s ease-in-out infinite;
}

/* Loading */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .stat-item {
    justify-content: center;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

/* RTL Specific Styles */
[dir="rtl"] .text-lg-end {
  text-align: right !important;
}

[dir="rtl"] .text-center {
  text-align: center !important;
}

[dir="rtl"] .hero-buttons {
  direction: rtl;
}

[dir="rtl"] .d-flex {
  flex-direction: row-reverse;
}

[dir="rtl"] .gap-4 > * {
  margin-left: 1.5rem;
  margin-right: 0;
}

[dir="rtl"] .me-2 {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
}

[dir="rtl"] .me-3 {
  margin-left: 1rem !important;
  margin-right: 0 !important;
}

/* Section Spacing */
section {
  padding: 4rem 0;
}

.bg-light {
  background-color: #f8fafc !important;
}

/* Payment Plans Enhancement */
.border-primary {
  border: 2px solid var(--primary-color) !important;
}

.badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

/* Social Links */
.social-links a {
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color) !important;
}

/* Payment Methods */
/* Professional Payment Methods Section */
.payment-methods {
  text-align: center;
  padding: 2rem;
  background-color: #f5f7fa;
  border-radius: 12px;
  margin: 3rem auto;
  max-width: 800px;
}

.payment-methods h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.payment-methods .icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 12px;
  justify-items: center;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.payment-methods img {
  height: 40px;
  object-fit: contain;
  padding: 6px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.payment-methods img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.payment-methods p {
  font-size: 0.95rem;
  color: #555;
}

/* Legacy payment method styles (keeping for backward compatibility) */
.payment-method {
  display: inline-block;
  margin: 0.5rem;
  padding: 8px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.payment-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.payment-method svg {
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

.payment-logo {
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.chatbot-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 450px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f8f9fa;
}

.bot-message, .user-message {
  margin-bottom: 15px;
}

.bot-message .message-content {
  background: white;
  padding: 10px 15px;
  border-radius: 15px 15px 15px 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 80%;
}

.user-message .message-content {
  background: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border-radius: 15px 15px 5px 15px;
  margin-left: auto;
  max-width: 80%;
  text-align: right;
}

.chatbot-input {
  padding: 15px;
  border-top: 1px solid #eee;
  background: white;
}

.chatbot-input .form-control {
  border-radius: 20px;
  border: 1px solid #ddd;
}

.chatbot-input .btn {
  border-radius: 20px;
}

@media (max-width: 768px) {
  .chatbot-window {
    width: 300px;
    height: 400px;
  }
  
  .chatbot-container {
    bottom: 15px;
    right: 15px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

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

/* Footer */
.footer-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.footer-link {
  color: white !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-toggle-footer {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.language-toggle-footer:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Saudi Verification Badge */
.saudi-verification {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.saudi-verification img {
  transition: all 0.3s ease;
  filter: brightness(1.1);
}

.saudi-verification img:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.verification-text p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.verification-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.verification-link:hover {
  color: white;
  text-decoration: none;
}

/* Copyright Text Styling */
.copyright-text {
  font-size: 13px !important;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  /* Mobile header adjustments */
  .navbar .container > div {
    flex-direction: row !important;
    justify-content: space-between !important;
  }
  
  .navbar .d-flex:first-child {
    flex-direction: row;
    align-items: center;
  }
  
  .header-account-btn {
    font-size: 0.6rem !important;
    padding: 0.1rem 0.4rem !important;
    height: 22px !important;
  }
  
  .header-account-btn i {
    font-size: 0.55rem !important;
    margin-right: 0.2rem !important;
  }
  
  .language-toggle-header .btn {
    font-size: 0.6rem !important;
    padding: 0.1rem 0.3rem !important;
    height: 22px !important;
    min-width: 28px !important;
  }
  
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  .footer-links .row {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-link {
    margin: 0.25rem 0 !important;
    width: 200px;
    text-align: center;
  }
  
  .saudi-verification {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .saudi-verification img {
    width: 100px;
  }
  
  .copyright-text {
    font-size: 12px !important;
    white-space: normal;
    line-height: 1.3;
  }
}

/* ===== MODERN RESUME BUILDER - REZI/RESUMENOW STYLE ===== */

/* Bright Modern Background */
.builder-section {
  background: linear-gradient(135deg, #f9f9ff 0%, #f4f6ff 100%);
  min-height: 100vh;
  padding: 3rem 0;
}

.form-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(92, 89, 242, 0.1);
  border: 1px solid rgba(92, 89, 242, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 2rem;
  text-align: center;
  border-radius: 24px 24px 0 0;
}

.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.step-indicator .step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step-indicator .step.active {
  background: white;
  color: var(--primary-color);
}

.step-indicator .step-line {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.step-indicator .step-line.active {
  background: white;
}

/* Modern Input Fields */
.modern-input {
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  padding: 0.875rem 1.25rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modern-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 89, 242, 0.1);
  background: white;
  transform: translateY(-1px);
}

.modern-select {
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modern-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 89, 242, 0.1);
  background: white;
}

/* Section Headers with Icons */
.section-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.section-header h5 {
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.section-header .section-icon {
  width: 24px;
  height: 24px;
  color: var(--secondary-color);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--primary-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(92, 89, 242, 0.05) 0%, rgba(74, 71, 230, 0.05) 100%);
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--secondary-color);
  background: linear-gradient(135deg, rgba(92, 89, 242, 0.1) 0%, rgba(74, 71, 230, 0.1) 100%);
  transform: translateY(-2px);
}

.upload-area.dragover {
  border-color: var(--success-color);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.upload-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Tooltips and Help Text */
.field-tooltip {
  position: relative;
  display: inline-block;
  color: var(--primary-color);
  cursor: help;
  margin-left: 0.5rem;
}

.field-tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--dark-color);
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.field-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Modern Buttons */
.btn-modern {
  border-radius: 16px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  color: white;
}

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

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

/* Privacy Checkbox */
.privacy-checkbox {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  border-left: 4px solid var(--success-color);
  margin: 1.5rem 0;
}

.privacy-checkbox .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 4px;
  border: 2px solid var(--primary-color);
}

.privacy-checkbox .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Progress Bar */
.form-progress {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.form-progress-bar {
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: width 0.3s ease;
  border-radius: 3px;
}

/* CV Type Selection */
.cv-type-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.cv-type-option {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cv-type-option:hover {
  border-color: var(--primary-color);
  background: rgba(92, 89, 242, 0.05);
}

.cv-type-option.selected {
  border-color: var(--primary-color);
  background: rgba(92, 89, 242, 0.1);
}

.cv-type-option .icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Enhanced Tooltips */
.enhanced-tooltip {
  position: relative;
  cursor: help;
}

.enhanced-tooltip::after {
  content: "ⓘ";
  color: var(--primary-color);
  font-weight: bold;
  margin-left: 0.5rem;
}

.enhanced-tooltip:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
}

/* RTL Support for Modern Elements */
[dir="rtl"] .section-header {
  border-left: none;
  border-right: 4px solid var(--primary-color);
}

[dir="rtl"] .field-tooltip {
  margin-left: 0;
  margin-right: 0.5rem;
}

[dir="rtl"] .privacy-checkbox {
  border-left: none;
  border-right: 4px solid var(--success-color);
}

/* Mobile Responsiveness for Modern Form */
@media (max-width: 768px) {
  .form-card {
    margin: 1rem;
    border-radius: 16px;
  }
  
  .form-header {
    padding: 1.5rem;
  }
  
  .step-indicator .step {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .step-indicator .step-line {
    width: 30px;
  }
  
  .cv-type-selector {
    grid-template-columns: 1fr;
  }
  
  .upload-area {
    padding: 1.5rem;
  }
  
  .upload-icon {
    font-size: 2rem;
  }
}

/* Payment Methods - Simple 3-Column Layout */
.payment-methods-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Payment Methods Grid - Professional Layout (Legacy) */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.payment-logo-wrapper {
    display: flex;
    justify-content: center;
}

.payment-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 100px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.payment-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.payment-logo-svg {
    width: 80px;
    height: 50px;
    margin-bottom: 8px;
}

.payment-name {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin-top: 5px;
}

/* Footer Navigation Improvements - Sultan Alamri's Clean Design */
.footer-navigation {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-links-container,
.footer-policies-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Business Verification Styling */
.business-verification {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.business-verification:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.qr-code-container img {
    transition: transform 0.3s ease;
}

.qr-code-container img:hover {
    transform: scale(1.05);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.footer-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.language-toggle-footer {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.language-toggle-footer:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* RTL Support for Footer and Payment Methods */
[dir="rtl"] .footer-links-container,
[dir="rtl"] .footer-policies-container {
    direction: rtl;
}

[dir="rtl"] .business-verification {
    direction: rtl;
}

[dir="rtl"] .payment-methods-grid {
    direction: rtl;
}

[dir="rtl"] .payment-name {
    font-family: 'Tajawal', sans-serif;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .payment-methods-simple {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .payment-logo-card {
        padding: 12px;
        min-height: 85px;
    }
    
    .payment-logo-svg {
        width: 70px;
        height: 40px;
    }
    
    .payment-name {
        font-size: 10px;
    }
    
    .footer-links-container,
    .footer-policies-container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .business-verification {
        margin: 0 15px !important;
        padding: 15px !important;
    }
    
    .business-verification p {
        font-size: 14px !important;
    }
    
    .qr-code-container img {
        width: 90px !important;
        height: 90px !important;
    }
}

@media (max-width: 480px) {
    .payment-methods-simple {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .footer-navigation {
        padding: 0 10px;
    }
}

/* Enhanced tooltip styling */
.enhanced-tooltip {
    position: relative;
    cursor: help;
    color: #6c757d;
    font-size: 0.9em;
    margin-left: 4px;
}

.enhanced-tooltip::before {
    content: "ℹ️";
    font-size: 1.1em;
}

/* Enhanced emoji toggle styling */
.emoji-toggle-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.emoji-toggle-container .form-check-label {
    color: #495057;
    font-weight: 600;
}

.emoji-toggle-container .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Job title suggestions (datalist) styling */
datalist option {
    font-size: 0.9rem;
    color: #6c757d;
    padding: 0.5rem;
}

/* Enhanced form text warnings */
.form-text.text-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Progress indicator styling for loading modal */
.progress-steps {
    text-align: left;
    margin-top: 20px;
}

.progress-steps .step {
    padding: 8px 0;
    font-size: 14px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.progress-steps .step.active {
    color: #198754;
    font-weight: 500;
}

.progress-steps .step i {
    width: 20px;
    text-align: center;
}
