/* ════════════════════════════════════════════════════════════
   Vehicle Exchange Platform — Main Stylesheet (Modern Light Theme)
   ════════════════════════════════════════════════════════════ */

:root {
  --primary:      #4c6ef7;
  --primary-h:    #3b5bdb;
  --primary-dark: #2b44b6;
   --navy-dark:  #0a1428;
    --blue-mid:   #1a3566;
  --accent:       #00a88f; /* Darkened slightly for accessible contrast against white */
  --accent-h:     #00c4a7;
  --purple:       #7e3af2;
  --bg-dark:      #f4f7fc; /* Main page background */
  --bg-surface:   #ffffff; /* Surface element layers */
  --bg-card:      #ffffff; /* Card layers */
  --bg-card2:     #f8fafc; /* Card nested variations */
  --text:         #1e293b; /* Deep slate for primary typography */
  --text-muted:   #64748b; /* Mid-slate for subtle text */
  --border:       rgba(76,110,247,.16);
  --border-soft:  rgba(0,0,0,.08);
  --shadow:       0 10px 30px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.02);
  --radius:       14px;
  --transition:   .25s ease;
  --gradient:     linear-gradient(135deg, #4c6ef7, #00b4a0);
  --gradient-p:   linear-gradient(135deg, #7e3af2, #4c6ef7);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-accent      { color: var(--accent) !important; }
.text-primary-c   { color: var(--primary) !important; }
.bg-surface       { background: var(--bg-surface) !important; }
.bg-card          { background: var(--bg-card) !important; }
.section-py       { padding: 96px 0; }
.section-py-sm    { padding: 64px 0; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary-c {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.btn-primary-c:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(76,110,247,.35);
  color: #fff;
  opacity: .92;
}
.btn-gold {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(76,110,247,.3);
  color: #fff;
}
.btn-outline-gold {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 10px;
  background: transparent;
  transition: all var(--transition);
}
.btn-outline-gold:hover { background: var(--primary); color: #fff; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #00927c);
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
}
.btn-accent:hover { color: #ffffff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,168,143,.3); }

/* Bootstrap override for light theme */
.btn-outline-light { border-color: rgba(15,23,42,.2); color: rgba(15,23,42,.8); }
.btn-outline-light:hover { background: rgba(15,23,42,.05); color: var(--text); border-color: rgba(15,23,42,.3); }

/* ── Navbar ─────────────────────────────────────────────────── */
.site-navbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--transition);
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.02);
}
.site-navbar .nav-link {
  color: rgba(30,41,59,.75);
  font-weight: 500;
  font-size: 14px;
  transition: color var(--transition);
  padding: 6px 14px;
  border-radius: 8px;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: var(--primary); background: rgba(76,110,247,.06); }
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-icon { color: var(--primary); font-size: 1.6rem; line-height: 1; }
.brand-text { color: var(--text); font-weight: 700; font-size: 1.2rem; letter-spacing: -.3px; }
.nav-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(76,110,247,.08);
  border: 1px solid rgba(76,110,247,.2);
  color: var(--primary-h);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--transition);
}
.nav-user-badge:hover { background: rgba(76,110,247,.15); color: var(--primary-dark); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 50%, #e8eff7 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(76,110,247,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(0,168,143,.06) 0%, transparent 60%);
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,168,143,.08);
  border: 1px solid rgba(0,168,143,.22);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: .5px;
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta-group .btn { padding: 14px 32px; font-size: 15px; border-radius: 12px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat .label { font-size: 13px; color: var(--text-muted); }

/* hero visual card */
.hero-visual { position: relative; z-index: 2; }
.hero-card {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  padding: 32px;
  color: var(--text);
  box-shadow: var(--shadow), 0 10px 40px rgba(0,0,0,.04);
}
.hero-card .step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.hero-card .step-item:last-child { border-bottom: none; }
.step-num {
  width: 38px; height: 38px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

/* ── Section Headings ───────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(76,110,247,.08);
  border: 1px solid rgba(76,110,247,.22);
  color: var(--primary-h);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.section-title.dark { color: #0f172a; }
.section-sub { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-sub.dark { color: #475569; }

/* ── How It Works ───────────────────────────────────────────── */
.how-it-works { background: var(--bg-surface); }
.process-step { text-align: center; padding: 0 16px; }
.process-icon {
  width: 80px; height: 80px;
  background: rgba(76,110,247,.06);
  border: 2px solid rgba(76,110,247,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--primary);
  transition: all var(--transition);
}
.process-step:hover .process-icon {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(76,110,247,.25);
}
.process-connector {
  position: absolute;
  top: 40px;
  left: calc(50% + 60px);
  right: calc(-50% + 60px);
  height: 2px;
  background: linear-gradient(to right, var(--primary), rgba(76,110,247,.15));
  display: none;
}
@media (min-width: 992px) { .process-connector { display: block; } }
.process-step-title { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 8px; }
.process-step-desc  { font-size: 13.5px; color: var(--text-muted); }

/* ── Feature Cards ──────────────────────────────────────────── */
.features-section { background: var(--bg-dark); }
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  height: 100%;
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 20px rgba(0,0,0,.02);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--gradient);
  transition: height .35s ease;
  border-radius: 0 0 4px 0;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(76,110,247,.08); border-color: rgba(76,110,247,.25); }
.feature-card:hover::before { height: 100%; }
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(76,110,247,.08), rgba(0,168,143,.04));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.feature-title { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 8px; }
.feature-desc  { font-size: 13.5px; color: var(--text-muted); }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-section { background: var(--bg-surface); }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.02);
  transition: all var(--transition);
}
.pricing-card:hover,
.pricing-card.featured {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(76,110,247,.12);
}
.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-list { list-style: none; padding: 0; color: var(--text-muted); }
.pricing-list li { padding: 8px 0; font-size: 14px; }
.pricing-list li i { color: var(--accent); margin-right: 8px; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #e6efff 50%, #ddebff 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(76,110,247,.08), transparent);
}

/* ── Form Styles ────────────────────────────────────────────── */
.form-section { padding: 80px 0; }
.form-card {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
}
@media (max-width: 576px) { .form-card { padding: 32px 20px; } }
.form-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.4px;
}
.form-subtitle { color: var(--text-muted); margin-bottom: 32px; }
.form-label { font-weight: 600; font-size: 13.5px; color: var(--text); margin-bottom: 6px; }
.form-control, .form-select {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76,110,247,.12);
  outline: none;
  color: var(--text);
}
.form-control::placeholder { color: #94a3b8; opacity: 1; }
.form-select option { background: #ffffff; color: var(--text); }
.form-control.is-invalid { border-color: #ef4444; }
.form-text { color: var(--text-muted); font-size: 12.5px; }
.input-group-text {
  background: #e2e8f0;
  border: 2px solid #e2e8f0;
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: #475569;
}
.form-control + .input-group-text { border-left: none; border-right: 2px solid #e2e8f0; border-radius: 0 10px 10px 0; }

/* fee display */
.fee-breakdown {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}
.fee-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; color: var(--text-muted); }
.fee-row.total { font-weight: 700; font-size: 16px; border-top: 1px solid #e2e8f0; margin-top: 8px; padding-top: 14px; color: var(--text); }
.fee-row.total .amount {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.2rem;
}

/* ── Seller Portal ──────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed rgba(76,110,247,.35);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(76,110,247,.02);
  position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(76,110,247,.06);
}
.upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-zone .icon { font-size: 2rem; color: var(--primary); margin-bottom: 8px; }
.upload-zone .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.file-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text);
  border: 1px solid #e2e8f0;
}
.doc-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.doc-status.pending  { color: #d97706; }
.doc-status.approved { color: var(--accent); }
.doc-status.rejected { color: #ef4444; }

/* ── Progress Tracker ───────────────────────────────────────── */
.progress-tracker {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.progress-tracker::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 20px; right: 20px;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  position: relative;
  z-index: 1;
}
.tracker-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  transition: all .3s;
}
.tracker-step.active .tracker-dot  { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(76,110,247,.3); }
.tracker-step.done .tracker-dot    { background: var(--accent); color: #ffffff; border-color: transparent; }
.tracker-label { font-size: 11px; text-align: center; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.tracker-step.active .tracker-label { color: var(--primary); font-weight: 700; }
.tracker-step.done .tracker-label   { color: var(--accent); }

/* ── Policy Pages ───────────────────────────────────────────── */
.policy-content { max-width: 800px; margin: 0 auto; }
.policy-content h2 { color: var(--text); margin-bottom: 24px; font-weight: 800; }
.policy-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 32px 0 12px; }
.policy-content p  { color: var(--text-muted); line-height: 1.8; }
.page-hero {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  padding: 80px 0 60px;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero h1 { font-weight: 800; margin-bottom: 12px; letter-spacing: -.5px; color: #0f172a; }
.page-hero p  { color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a; /* Kept deep dark layout purely for modern corporate aesthetic contrast */
  color: rgba(226,232,240,.7);
  padding: 72px 0 32px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-brand { display: flex; align-items: center; }
.footer-heading { color: #ffffff; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-links a { color: rgba(226,232,240,.55); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: #ffffff; }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 40px 0 20px; }
.social-link { color: rgba(226,232,240,.5); font-size: 1.1rem; transition: color var(--transition); }
.social-link:hover { color: #ffffff; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(226,232,240,.65);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 50px;
}
.badge-trust i { color: #00f5cf; }

/* ── Transaction Info Cards ──────────────────────────────────── */
.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
}
.info-card .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 4px; }
.info-card .value { font-size: 1rem; font-weight: 600; color: var(--text); }
.status-banner {
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.status-banner.warning  { background: #fef3c7; border: 1px solid #fde68a; color: #b45309; }
.status-banner.success  { background: #ccfbf1; border: 1px solid #99f6e4; color: #0f766e; }
.status-banner.info     { background: #e0e7ff; border: 1px solid #c7d2fe; color: #4338ca; }
.status-banner.danger   { background: #fee2e2; border: 1px solid #fecaca; color: #b91c1c; }
.status-banner .icon    { font-size: 1.8rem; flex-shrink: 0; }

/* ── Alerts override ────────────────────────────────────────── */
.alert { border-radius: 10px; border: 1px solid; }
.alert-success { background: #ccfbf1; border-color: #99f6e4; color: #0f766e; }
.alert-danger  { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.alert-warning { background: #fef3c7; border-color: #fde68a; color: #b45309; }
.alert-info    { background: #e0e7ff; border-color: #c7d2fe; color: #4338ca; }
.btn-close { filter: none; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge.bg-success   { background: #ccfbf1 !important; color: #0f766e !important; border: 1px solid #99f6e4; }
.badge.bg-warning   { background: #fef3c7 !important; color: #b45309 !important; border: 1px solid #fde68a; }
.badge.bg-danger    { background: #fee2e2 !important; color: #b91c1c !important; border: 1px solid #fecaca; }
.badge.bg-info      { background: #e0e7ff !important; color: #4338ca !important; border: 1px solid #c7d2fe; }
.badge.bg-secondary { background: #f1f5f9 !important; color: #475569 !important; border: 1px solid #cbd5e1; }
.badge.bg-primary   { background: rgba(76,110,247,.12) !important; color: var(--primary) !important; border: 1px solid rgba(76,110,247,.25); }

/* ── Tables ─────────────────────────────────────────────────── */
.table { color: var(--text); }
.table > :not(caption) > * > * { background: transparent; color: var(--text); border-bottom-color: #e2e8f0; }
.table-hover > tbody > tr:hover > * { background: rgba(76,110,247,.03); }

/* ── Cards ──────────────────────────────────────────────────── */
.card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); color: var(--text); box-shadow: 0 4px 18px rgba(0,0,0,.01); }
.card-header { background: rgba(0,0,0,.01); border-bottom: 1px solid var(--border-soft); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-py    { padding: 64px 0; }
  .hero-section  { min-height: auto; padding: 100px 0 80px; }
  .hero-title    { font-size: 2rem; }
  .form-card     { padding: 28px 16px; }
  .hero-stats    { gap: 20px; }
  .hero-stat .number { font-size: 1.5rem; }
}