/* ═══════════════════════════════════════════════════════════════
   AfriLance – Global Styles (Modern Freeio-Inspired)
   Palette: Deep Forest Green · Warm Gold · Terracotta · Off-White
   ═══════════════════════════════════════════════════════════════ */

/* Import Poppins as primary font, keep Poppins for headings */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Poppins:wght@700;800&display=swap');

:root {
  /* Updated color palette - more modern with your existing colors */
  --green-900:  #0d2b1a;
  --green-800:  #164828;
  --green-700:  #1f6636;
  --green-600:  #2d8b4e;
  --green-500:  #3aaa65;
  --green-400:  #5fcc84;
  --green-300:  #8de0a8;
  --green-100:  #d6f5e2;
  --gold-500:   #e8a930;
  --gold-400:   #f0c040;
  --gold-300:   #f8d47a;
  --gold-100:   #fef8e6;
  --terra-500:  #c0522f;
  --terra-400:  #d96540;
  --terra-300:  #e5977a;
  --cream:      #fafaf7;
  --white:      #ffffff;
  --gray-900:   #1e293b;
  --gray-800:   #334155;
  --gray-700:   #475569;
  --gray-600:   #64748b;
  --gray-500:   #94a3b8;
  --gray-400:   #cbd5e1;
  --gray-300:   #e2e8f0;
  --gray-200:   #f1f5f9;
  --gray-100:   #f8fafc;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.05);
  --shadow-md:  0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12);
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --transition: .3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gray-100);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 15px;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, .display-font {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  font-weight: 800;
}
a { color: var(--green-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-500); }

/* ── Container Boxed Layout ──────────────────────────────────── */
.container-boxed {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 30px;
}

@media (max-width: 768px) {
  .container-boxed { padding: 0 20px; }
}

/* ── Section Padding ─────────────────────────────────────────── */
.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 50px 0;
}

@media (max-width: 768px) {
  .section-padding { padding: 50px 0; }
  .section-padding-sm { padding: 30px 0; }
}

/* ── Background Utilities ────────────────────────────────────── */
.bg-light { background: var(--gray-100); }
.bg-white { background: var(--white); }
.bg-green-gradient { background: linear-gradient(135deg, var(--green-900), var(--green-800)); }
.bg-gold-gradient { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); }

/* ── Navbar (Updated with Poppins) ───────────────────────────── */
.afl-navbar {
  background: var(--green-900);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.afl-navbar .navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: -.5px;
}
.afl-navbar .navbar-brand span { color: var(--gold-400); }
.afl-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem 1rem !important;
  border-radius: 8px;
  transition: all var(--transition);
}
.afl-navbar .nav-link:hover, .afl-navbar .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,.1);
}
.afl-navbar .btn-nav-cta {
  background: var(--gold-500);
  color: var(--green-900) !important;
  font-weight: 700;
  border-radius: 40px;
  padding: .5rem 1.5rem !important;
  transition: all var(--transition);
}
.afl-navbar .btn-nav-cta:hover { 
  background: var(--gold-400); 
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge-notif {
  background: var(--terra-400);
  color: #fff;
  font-size: .65rem;
  border-radius: 50%;
  padding: 2px 6px;
  position: absolute;
  top: -4px; right: -4px;
}

/* ── Hero Slider (New) ───────────────────────────────────────── */
.hero-slider {
  position: relative;
  height: 700px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-slide .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomEffect 10s ease-in-out infinite alternate;
}

@keyframes zoomEffect {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 120px 0;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 25px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title .highlight { 
  color: var(--gold-400); 
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 35px;
  opacity: 0.9;
  max-width: 600px;
}

.hero-search-wrapper {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 60px;
  padding: 5px;
  max-width: 700px;
  display: flex;
  align-items: center;
}

.hero-search-input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 15px 25px;
  font-size: 1rem;
  width: 100%;
  font-family: 'Poppins', sans-serif;
}

.hero-search-input::placeholder {
  color: rgba(255,255,255,0.7);
}

.hero-search-input:focus {
  outline: none;
}

.hero-search-btn {
  background: var(--gold-500);
  color: var(--gray-900);
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

.hero-search-btn:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 50px;
}

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

.hero-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}

.hero-stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.slider-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  display: flex;
  gap: 12px;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: var(--gold-500);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .hero-slider { height: 600px; }
  .hero-content { padding: 80px 0; }
  .hero-stats { flex-wrap: wrap; gap: 25px; }
  .hero-search-wrapper { flex-wrap: wrap; border-radius: 20px; }
  .hero-search-btn { width: 100%; margin-top: 5px; }
}

/* ── Section Titles (Modern) ─────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-header-left {
  text-align: left;
  margin-left: 0;
}

.section-subtitle {
  color: var(--green-600);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.section-title .highlight { 
  color: var(--green-600); 
}

.section-description {
  color: var(--gray-600);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-700);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 25px;
  border: 1px solid var(--gray-300);
  border-radius: 40px;
  transition: all 0.3s;
  background: var(--white);
}

.view-all-link:hover {
  background: var(--green-600);
  color: #fff;
  border-color: var(--green-600);
}

.view-all-link i {
  transition: transform 0.3s;
}

.view-all-link:hover i {
  transform: translateX(5px);
}

/* ── Category Cards (Freeio Style) ───────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 25px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--gray-900);
  display: block;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-400);
}

.category-icon {
  width: 70px;
  height: 70px;
  background: var(--green-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s;
}

.category-card:hover .category-icon {
  background: var(--green-600);
}

.category-icon i {
  font-size: 28px;
  color: var(--green-600);
  transition: all 0.3s;
}

.category-card:hover .category-icon i {
  color: #fff;
}

.category-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-count {
  font-size: 0.8rem;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

/* ── Feature Cards (How It Works) ────────────────────────────── */
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 25px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  height: 100%;
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-400);
}

.feature-number {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 4rem;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  font-family: 'Poppins', sans-serif;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--green-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: var(--green-600);
}

.feature-icon i {
  font-size: 32px;
  color: var(--green-600);
  transition: all 0.3s;
}

.feature-card:hover .feature-icon i {
  color: #fff;
}

.feature-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* ── Freelancer Cards (Modern) ───────────────────────────────── */
.freelancer-card-modern {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 20px 25px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid var(--gray-200);
  position: relative;
  height: 100%;
}

.freelancer-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-400);
}

.freelancer-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green-100);
  margin: 0 auto 15px;
  display: block;
}

.verified-badge-modern {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--green-600);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 10px rgba(45,139,78,0.3);
}

.freelancer-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.freelancer-title {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.freelancer-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.rating-stars {
  color: var(--gold-500);
  font-size: 0.9rem;
}

.rating-count {
  color: var(--gray-500);
  font-size: 0.8rem;
}

.freelancer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--gray-200);
}

.freelancer-rate {
  font-weight: 700;
  color: var(--green-600);
  font-size: 1rem;
}

.freelancer-location {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.freelancer-location i {
  margin-right: 3px;
}

/* ── Job Cards (Modern) ──────────────────────────────────────── */
.job-card-modern {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid var(--gray-200);
  height: 100%;
}

.job-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-400);
}

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

.job-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.3s;
}

.job-title:hover {
  color: var(--green-600);
}

.job-badge {
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  white-space: nowrap;
}

.job-description {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.job-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.job-skill {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 30px;
  font-weight: 500;
}

.job-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--gray-200);
}

.job-budget {
  font-weight: 700;
  color: var(--green-600);
  font-size: 1rem;
}

.job-client {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.job-client i {
  font-size: 1rem;
}

/* ── Testimonial Cards ───────────────────────────────────────── */
.testimonial-card-modern {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  height: 100%;
  transition: all 0.3s;
}

.testimonial-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-rating {
  color: var(--gold-500);
  margin-bottom: 20px;
  font-size: 1rem;
}

.testimonial-text {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 25px;
  font-style: italic;
}

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

.author-avatar {
  width: 55px;
  height: 55px;
  background: var(--green-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--green-600);
  font-size: 1.2rem;
}

.author-info h6 {
  font-weight: 700;
  margin: 0 0 3px;
  font-size: 1rem;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0;
}

/* ── Modern Buttons ──────────────────────────────────────────── */
.btn-modern {
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-modern-primary {
  background: var(--green-600);
  color: #fff;
  border: 2px solid var(--green-600);
}

.btn-modern-primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.btn-modern-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-modern-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-3px);
}

.btn-modern-gold {
  background: var(--gold-500);
  color: var(--gray-900);
  border: 2px solid var(--gold-500);
}

.btn-modern-gold:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-modern-white {
  background: #fff;
  color: var(--green-600);
  border: 2px solid #fff;
}

.btn-modern-white:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-3px);
}

/* ── Stats Grid ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green-600);
  margin-bottom: 5px;
  font-family: 'Poppins', sans-serif;
}

.stat-item p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* ── Floating Cards ──────────────────────────────────────────── */
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 25px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 180px;
}

.floating-card-icon {
  width: 50px;
  height: 50px;
  background: var(--green-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card-icon i {
  font-size: 24px;
  color: var(--green-600);
}

.floating-card-content h5 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 3px;
}

.floating-card-content p {
  color: var(--gray-500);
  font-size: 0.8rem;
  margin: 0;
}

/* ── Keep existing styles that are still relevant ───────────── */
.afl-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.afl-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Status Badges (keep as is) */
.status-badge {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: capitalize;
}
.status-open        { background: #dbeafe; color: #1e40af; }
.status-in_progress { background: #fef9c3; color: #854d0e; }
.status-delivered   { background: #dcfce7; color: #166534; }
.status-funded      { background: #f0fdf4; color: #15803d; }
.status-completed   { background: var(--green-100); color: var(--green-700); }
.status-disputed    { background: #fee2e2; color: #991b1b; }
.status-pending     { background: #f3e8ff; color: #6b21a8; }

/* Skill Tags (keep) */
.skill-tag {
  background: var(--green-100);
  color: var(--green-700);
  font-size: .75rem;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-weight: 600;
}

/* Trust Badge (keep) */
.trust-badge {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: #fff;
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
}
.trust-badge i { color: var(--gold-400); font-size: 1.4rem; }

/* ── Footer (Updated) ────────────────────────────────────────── */
.afl-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
  margin-top: 0;
}

.afl-footer .footer-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
}
.afl-footer .footer-brand span { color: var(--gold-400); }

.afl-footer h6 { 
  color: var(--white); 
  font-weight: 600; 
  margin-bottom: 20px;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.afl-footer a { 
  color: rgba(255,255,255,.6); 
  font-size: .9rem; 
  display: block; 
  margin-bottom: 12px;
  transition: all 0.3s;
}

.afl-footer a:hover { 
  color: var(--gold-400); 
  transform: translateX(5px);
}

.footer-divider { 
  border-color: rgba(255,255,255,.1); 
  margin: 40px 0 25px; 
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--gold-500);
  color: var(--green-900);
  transform: translateY(-3px);
}

/* ── Dashboard Layout (keep as is) ──────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--green-900);
  padding: 2rem 1.2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
/* ... rest of dashboard styles remain the same ... */

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; position: fixed; height: 100vh; z-index: 1050; }
  .sidebar.open { display: block; }
  .hero-slider { height: 600px; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .chat-container { flex-direction: column; height: auto; }
  .chat-sidebar { width: 100%; height: 200px; }
  .escrow-timeline { flex-direction: column; }
  .escrow-step::after { display: none; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .5s ease forwards; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}


.hero-section {
    min-height: 100vh;
    color: white;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 12s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    animation: kenBurns 12s infinite ease-in-out;
}

@keyframes kenBurns {
    0%   { transform: scale(1.05) translate(0, 0); }
    50%  { transform: scale(1.12) translate(-2%, 2%); }
    100% { transform: scale(1.05) translate(0, 0); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.45));
    z-index: 1;
}

.hero-title .text-gradient {
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.backdrop-blur-lg {
    backdrop-filter: blur(12px);
}

.min-vh-80 { min-height: 80vh; }

.z-2 { z-index: 2; }

/* Optional animation library fallback (or remove if using animate.css) */
.animate__fadeInUp {
    animation: fadeInUp 1.2s ease-out;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================== */
/* AUTHENTICATION PAGES - Modern Design */
/* ===================================================== */

.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--green-50), var(--gray-100));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    max-width: 1200px;
    width: 100%;
    min-height: 650px;
    background: var(--white);
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* Left Side - Branding */
.auth-left {
    background: linear-gradient(135deg, var(--green-900), var(--green-800));
    padding: 60px 40px;
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.auth-brand {
    margin-bottom: 40px;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.brand-name span {
    color: var(--gold-400);
}

.auth-greeting {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Stats on Login */
.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-400);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Testimonial Card */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-style: italic;
}

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

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--gold-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--green-900);
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.author-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Feature List on Register */
.auth-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-icon.green {
    background: rgba(45, 139, 78, 0.3);
    color: var(--green-400);
}

.feature-icon.gold {
    background: rgba(232, 169, 48, 0.3);
    color: var(--gold-400);
}

.feature-icon.terra {
    background: rgba(192, 82, 47, 0.3);
    color: var(--terra-400);
}

.feature-text h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* Tips on Forgot Password */
.auth-tips {
    margin-top: 30px;
}

.tip-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.tip-icon {
    font-size: 1.5rem;
    color: var(--gold-400);
}

.tip-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.tip-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* Password Tips on Reset */
.password-tips {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.password-tips h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 15px;
}

.password-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-tips li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.password-tips li i {
    color: var(--gold-400);
    font-size: 0.9rem;
}

/* Right Side - Form */
.auth-right {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.auth-form-container {
    max-width: 500px;
    width: 100%;
}

.auth-header {
    margin-bottom: 30px;
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.auth-switch {
    color: var(--gray-600);
    font-size: 0.95rem;
}

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

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

.auth-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Form Elements */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--gray-400);
    font-size: 1rem;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 14px 45px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(45, 139, 78, 0.1);
    outline: none;
}

.form-input.error {
    border-color: var(--terra-500);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--gray-600);
}

/* Role Selector */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.role-btn {
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    background: var(--white);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.role-btn i {
    font-size: 1.1rem;
}

.role-btn.active {
    background: var(--green-600);
    border-color: var(--green-600);
    color: var(--white);
}

.role-btn:hover:not(.active) {
    border-color: var(--green-400);
    color: var(--green-600);
}

/* Forgot Password Link */
.forgot-link {
    color: var(--green-600);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--green-600);
    color: var(--white);
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(45, 139, 78, 0.2);
}

.auth-submit-btn:hover {
    background: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(45, 139, 78, 0.3);
}

/* Terms Checkbox */
.terms-checkbox {
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--green-500);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--green-600);
    border-color: var(--green-600);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.checkbox-text a {
    color: var(--green-600);
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: var(--gray-200);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: var(--white);
    padding: 0 15px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Social Login */
.social-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 40px;
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.google-btn {
    color: var(--gray-700);
}

.google-btn:hover {
    border-color: #4285f4;
}

.facebook-btn {
    color: var(--gray-700);
}

.facebook-btn i {
    color: #1877f2;
    font-size: 1.2rem;
}

.facebook-btn:hover {
    border-color: #1877f2;
}

/* Verification Code Inputs */
.verification-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.code-input {
    width: 50px;
    height: 60px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(45, 139, 78, 0.1);
    outline: none;
}

/* Resend Timer */
.resend-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 10px;
    background: var(--gray-50);
    border-radius: 12px;
}

.timer-text {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.timer-text span {
    font-weight: 700;
    color: var(--green-600);
}

.resend-btn {
    background: none;
    border: none;
    color: var(--green-600);
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
}

.resend-btn:hover:not(:disabled) {
    text-decoration: underline;
}

.resend-btn:disabled {
    color: var(--gray-400);
    cursor: not-allowed;
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-match {
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Alerts */
.auth-alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.auth-alert-success {
    background: var(--green-100);
    color: var(--green-700);
    border: 1px solid var(--green-300);
}

.auth-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-alert i {
    font-size: 1.1rem;
}

/* Footer Links */
.auth-footer-links {
    text-align: center;
    margin-top: 25px;
}

.back-link {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--green-600);
}

/* Responsive */
@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 40px 20px;
    }
    
    .social-login-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .verification-inputs {
        gap: 5px;
    }
    
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .role-selector {
        grid-template-columns: 1fr;
    }
}

/* ===================================================== */
/* GLOBAL DASHBOARD STYLES - Consistent Across All Pages */
/* ===================================================== */

:root {
    --sidebar-width: 280px;
    --header-height: 70px;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.05);
    --card-hover-shadow: 0 8px 24px rgba(0,0,0,0.1);
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-600: #2d8b4e;
    --green-700: #1f6636;
    --gold-500: #e8a930;
}

/* Dashboard Wrapper */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Main Content Area */
.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    width: calc(100% - var(--sidebar-width));
    transition: margin 0.3s ease;
    background: #f8fafc;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #475569;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: #f1f5f9;
}

.page-title {
    /* font-size: 0.9rem;
    font-weight: 400; */
    color: #0f172a;
    margin: 0;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    min-width: 280px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--green-600);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45,139,78,0.1);
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #475569;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background: #f1f5f9;
    color: var(--green-600);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 8px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    padding: 3px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background: #f8fafc;
    border-color: var(--green-300);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-info {
    line-height: 1.4;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
}

.user-role {
    font-size: 0.8rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 991px) {
    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .page-title {
        font-size: 0.9rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .search-box {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 767px) {
    .dashboard-main {
        padding: 16px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-left {
        justify-content: space-between;
    }
    
    .header-right {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .user-profile {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .dashboard-main {
        padding: 12px;
    }
    
    .page-title {
        font-size: 0.9rem;
    }
}