/* ============ FleetWorks — style.css ============ */
:root {
  --navy: #0f1e33;
  --navy-2: #16294a;
  --amber: #f5a623;
  --amber-dark: #d98f0f;
  --ink: #1c2733;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --green: #16a34a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 30, 51, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 30, 51, 0.18);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.muted { color: var(--muted); font-size: 0.9rem; }

h1, h2, h3 { line-height: 1.25; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: all 0.2s ease;
}
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--amber); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cbd5e1; font-size: 0.8rem; padding: 7px 0; }
.topbar a { color: var(--amber); text-decoration: none; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-cities { opacity: 0.85; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }

.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.35rem; font-weight: 800; color: var(--navy); text-decoration: none;
}
.logo svg { color: var(--amber); }
.logo em { color: var(--amber); font-style: normal; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent; transition: all 0.15s;
}
.nav-links a:hover { color: var(--amber-dark); border-bottom-color: var(--amber); }
.nav-links a.nav-partner { color: var(--amber-dark); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(245, 166, 35, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1d3a63 100%);
  color: #fff;
  padding: 70px 0 80px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }

.badge {
  display: inline-block; background: rgba(245, 166, 35, 0.15); color: var(--amber);
  border: 1px solid rgba(245, 166, 35, 0.4);
  font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 100px; margin-bottom: 18px;
}

/* Flashy "India's First AI/ML" badge */
.badge-flash {
  position: relative; overflow: hidden;
  background: linear-gradient(110deg, #f5a623 0%, #ffd479 40%, #f5a623 70%, #e08900 100%);
  color: var(--navy); border: none;
  font-size: 0.95rem; font-weight: 800; letter-spacing: 0.3px;
  padding: 10px 22px; text-transform: uppercase;
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.55), 0 0 44px rgba(245, 166, 35, 0.25);
  animation: badgePulse 2.4s ease-in-out infinite;
}
.badge-flash::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  animation: badgeShine 2.8s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 14px rgba(245, 166, 35, 0.45), 0 0 34px rgba(245, 166, 35, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 26px rgba(245, 166, 35, 0.8), 0 0 64px rgba(245, 166, 35, 0.35); transform: scale(1.03); }
}
@keyframes badgeShine {
  0% { left: -60%; }
  55%, 100% { left: 120%; }
}

/* Relax tagline under the hero headline */
.hero-relax {
  font-size: 1.25rem; font-weight: 600; color: #fff; margin: 4px 0 14px;
}
.hero-relax .relax-accent {
  color: var(--amber); font-style: italic;
}

/* AI mention glowing in top bars */
.topbar-cities.ai-glow { color: var(--amber); font-weight: 700; opacity: 1; text-shadow: 0 0 12px rgba(245, 166, 35, 0.6); }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: 16px; }
.hero .accent { color: var(--amber); }
.hero p { color: #c7d2e0; font-size: 1.05rem; max-width: 540px; margin-bottom: 20px; }

.hero-points { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 24px; margin-bottom: 30px; font-size: 0.9rem; color: #e2e8f0; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--amber); font-weight: 800; }
.hero-stats span { font-size: 0.78rem; color: #94a3b8; }

/* ---------- Booking card ---------- */
.booking-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.booking-card h3 { font-size: 1.25rem; margin-bottom: 2px; }
.booking-card form { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--navy); }
input, select, textarea {
  font-family: inherit; font-size: 0.92rem; color: var(--ink);
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}
input.invalid, select.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.form-note { font-size: 0.72rem; color: var(--muted); text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--amber); }
.service-card.highlight { background: var(--navy); border-color: var(--navy); color: #fff; }
.service-card.highlight p { color: #c7d2e0; }
.service-card.highlight .link-btn { color: var(--amber); }
.service-icon { font-size: 2rem; line-height: 1; }
.service-card h3 { font-size: 1.08rem; font-weight: 700; }
.service-card p { font-size: 0.87rem; color: var(--muted); flex-grow: 1; }
.price-tag {
  align-self: flex-start; background: rgba(22, 163, 74, 0.1); color: var(--green);
  font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 100px;
}
.service-card.highlight .price-tag { background: rgba(245, 166, 35, 0.18); color: var(--amber); }
.link-btn {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--navy); font-weight: 700; font-size: 0.88rem; text-align: left; padding: 0;
  transition: color 0.15s;
}
.link-btn:hover { color: var(--amber-dark); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: #fff; border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); position: relative; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--amber); color: var(--navy); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--muted); }

/* ---------- Vehicles ---------- */
.vehicle-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.vehicle-chip {
  background: var(--bg-alt); border: 1.5px solid var(--line); border-radius: 100px;
  padding: 12px 24px; font-weight: 600; font-size: 0.92rem;
  transition: all 0.2s; cursor: default;
}
.vehicle-chip:hover { border-color: var(--amber); background: rgba(245, 166, 35, 0.08); transform: translateY(-2px); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 16px; position: relative;
}
.plan.featured { border-color: var(--amber); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--navy); font-size: 0.72rem; font-weight: 800;
  padding: 4px 16px; border-radius: 100px; white-space: nowrap;
}
.plan h3 { font-size: 1.15rem; }
.plan-price { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.plan-price span { font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 0.87rem; flex-grow: 1; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-item { text-align: center; padding: 20px; }
.why-item span { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.why-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.why-item p { font-size: 0.85rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.stars { color: var(--amber); letter-spacing: 2px; }
.testimonial p { font-size: 0.9rem; color: var(--ink); flex-grow: 1; }
.testimonial footer { display: flex; flex-direction: column; }
.testimonial footer span { font-size: 0.78rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after { content: "+"; font-size: 1.3rem; color: var(--amber-dark); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }

/* ---------- CTA strip ---------- */
.cta-strip { background: linear-gradient(120deg, var(--navy), #1d3a63); color: #fff; padding: 54px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 1.6rem; }
.cta-inner p { color: #c7d2e0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: #0b1626; color: #94a3b8; padding: 60px 0 0; font-size: 0.87rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 9px; transition: color 0.15s; }
.footer a:hover { color: var(--amber); }
.footer-logo { font-size: 1.3rem; margin-bottom: 12px; color: #fff; }
.footer-logo em { color: var(--amber); font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; font-size: 0.78rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11, 22, 38, 0.65); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--radius); padding: 32px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; position: relative;
  transform: translateY(16px); transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 14px; background: var(--bg-alt); border: none;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 0.95rem; color: var(--muted);
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 4px; }
.modal form { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

#modalSuccessView { text-align: center; padding: 12px 4px; }
.success-icon { font-size: 3rem; margin-bottom: 8px; }
#modalSuccessView p { margin: 10px 0; font-size: 0.95rem; }
#modalSuccessView .btn { margin-top: 14px; }

/* ---------- Vendor onboarding (partner.html) ---------- */
.divider { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

.status-result { margin-top: 4px; padding: 12px 14px; border-radius: 10px; font-size: 0.85rem; line-height: 1.5; }
.status-result.found { background: rgba(22, 163, 74, 0.08); border: 1px solid rgba(22, 163, 74, 0.35); color: var(--ink); }
.status-result.error { background: rgba(220, 38, 38, 0.07); border: 1px solid rgba(220, 38, 38, 0.3); color: #991b1b; }
.status-result a { color: var(--amber-dark); font-weight: 600; }
.status-pill {
  display: inline-block; background: var(--amber); color: var(--navy);
  font-weight: 700; font-size: 0.75rem; padding: 2px 12px; border-radius: 100px;
}

.onboard-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 36px; max-width: 760px; margin: 0 auto;
}

/* Stepper */
.stepper { display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.stepper-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 90px; }
.stepper-dot {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-alt); color: var(--muted); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; transition: all 0.2s;
}
.stepper-item.active .stepper-dot { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.stepper-item.done .stepper-dot { background: var(--green); border-color: var(--green); color: #fff; }
.stepper-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-align: center; }
.stepper-item.active .stepper-label { color: var(--navy); }
.stepper-line { flex: 1; max-width: 90px; height: 2px; background: var(--line); margin: 0 8px 22px; }

/* Form steps */
.form-step { display: none; border: none; flex-direction: column; gap: 16px; }
.form-step.active { display: flex; }
.step-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

.group-label { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.group-label small { font-weight: 400; color: var(--muted); }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { flex-direction: row; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; width: auto; }
.chip span {
  display: inline-block; padding: 9px 16px; border-radius: 100px;
  background: var(--bg-alt); border: 1.5px solid var(--line);
  font-size: 0.85rem; font-weight: 500; color: var(--ink);
  transition: all 0.15s; user-select: none;
}
.chip:hover span { border-color: var(--amber); }
.chip input:checked + span {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35); }

.field-error { color: #dc2626; font-size: 0.8rem; font-weight: 600; margin-top: -8px; }

input[type="file"] {
  padding: 10px; background: var(--bg-alt); border-style: dashed; cursor: pointer;
}

.consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--amber); }

/* Success view */
.vendor-success { text-align: center; padding: 20px 8px; }
.vendor-success h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 6px; }
.vendor-success p { margin: 8px 0; }
.success-next {
  background: var(--bg-alt); border-radius: 12px; padding: 20px 24px;
  text-align: left; max-width: 420px; margin: 20px auto;
}
.success-next h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 10px; }
.success-next ol { padding-left: 20px; font-size: 0.88rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.vendor-success .btn { margin-top: 8px; }

/* ---------- AI Dashboard (dashboard.html) ---------- */
.dash-hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(245, 166, 35, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, #1d3a63 100%);
  color: #fff; padding: 52px 0 46px;
}
.dash-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; margin: 6px 0 10px; }
.dash-hero .accent { color: var(--amber); }
.dash-hero p { color: #c7d2e0; max-width: 720px; font-size: 0.98rem; }

.dash-main { padding: 34px 20px 70px; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-icon { font-size: 3rem; margin-bottom: 10px; }
.empty-state h2 { color: var(--navy); margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 2px;
}
.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-sub { font-size: 0.75rem; color: var(--muted); }

.dash-filters {
  display: flex; gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
}
.dash-filters label { flex-direction: row; align-items: center; gap: 10px; font-size: 0.85rem; }
.dash-filters select { width: auto; padding: 8px 12px; }

.chart-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 22px;
}
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.chart-head h2 { font-size: 1.15rem; color: var(--navy); }
.chart-head p { font-size: 0.82rem; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.lg-item { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--ink); font-weight: 500; }
.lg-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-scroll { overflow-x: auto; }
.chart-area { min-height: 60px; }

.chart-table { margin-top: 12px; }
.chart-table summary { cursor: pointer; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.85rem; }
.chart-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.78rem; padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.chart-table td { padding: 8px 10px; border-bottom: 1px solid var(--bg-alt); font-variant-numeric: tabular-nums; }

.viz-tooltip {
  position: fixed; z-index: 300; pointer-events: none;
  background: var(--navy); color: #fff; font-size: 0.8rem; line-height: 1.5;
  padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow-lg); max-width: 260px;
}

.predictions { display: flex; flex-direction: column; gap: 14px; }
.pred-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.pred-main { font-size: 0.95rem; color: var(--ink); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pred-status { font-weight: 700; font-size: 0.85rem; }
.pred-meter { height: 8px; background: var(--bg-alt); border-radius: 100px; margin: 10px 0 8px; overflow: hidden; }
.pred-fill { height: 100%; border-radius: 100px; transition: width 0.4s ease; }
.pred-detail { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink2, #52514e); }
.disclaimer { margin-top: 14px; font-size: 0.75rem; color: var(--muted); }

.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.entry-form { display: flex; flex-direction: column; gap: 12px; }
.entry-form h3 { font-size: 1rem; color: var(--navy); }
.entry-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.btn.danger { color: #b91c1c; border-color: #b91c1c; }
.btn.danger:hover { background: #b91c1c; color: #fff; }

/* ---------- Fleet Manager (fleet.html) ---------- */
.tab-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.tab-btn {
  font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: 9px; border: none; background: transparent; color: var(--ink);
  transition: all 0.15s;
}
.tab-btn:hover { background: var(--bg-alt); }
.tab-btn.active { background: var(--navy); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.insights-feed { display: flex; flex-direction: column; gap: 12px; }
.insight-row {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: 10px; padding: 14px 16px;
}
.insight-icon { font-size: 1.3rem; line-height: 1.2; }
.insight-title { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.insight-tag {
  display: inline-block; margin-left: 8px; font-size: 0.68rem; font-weight: 700;
  background: var(--bg-alt); color: var(--muted); padding: 2px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.insight-detail { font-size: 0.84rem; color: var(--muted); margin-top: 3px; }

.chart-table-el { width: 100%; border-collapse: collapse; font-size: 0.87rem; min-width: 640px; }
.chart-table-el th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.76rem; padding: 10px 12px; border-bottom: 1.5px solid var(--line); text-transform: uppercase; letter-spacing: 0.4px; }
.chart-table-el td { padding: 11px 12px; border-bottom: 1px solid var(--bg-alt); vertical-align: top; }
.comp-pill { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 11px; border-radius: 100px; white-space: nowrap; }
.comp-cell { text-align: left; }

.insp-checklist { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.insp-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--bg-alt); border-radius: 10px; padding: 10px 16px; font-size: 0.9rem; font-weight: 500;
}
.insp-toggle { display: flex; gap: 8px; }
.insp-toggle .chip span { padding: 6px 14px; font-size: 0.8rem; background: #fff; }

.rank-pill {
  display: inline-block; color: #fff; font-weight: 800; font-size: 0.72rem;
  padding: 2px 9px; border-radius: 100px; margin-right: 4px;
}

/* ---------- AI Copilot ---------- */
#cpFab {
  position: fixed; bottom: 22px; right: 22px; z-index: 250;
  display: flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; border: 2px solid var(--amber);
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 12px 20px; border-radius: 100px; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: transform 0.15s;
}
#cpFab:hover { transform: translateY(-2px); }
#cpFab span { font-size: 0.88rem; }
#cpPanel {
  position: fixed; bottom: 78px; right: 22px; z-index: 251;
  width: min(300px, calc(100vw - 20px)); height: min(400px, 56vh); min-height: 260px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
}
.cp-head {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 0.84rem;
  padding: 9px 12px; display: flex; justify-content: space-between; align-items: center;
  cursor: grab; user-select: none; touch-action: none; gap: 8px;
}
.cp-head:active { cursor: grabbing; }
.cp-head .cp-drag-grip { opacity: 0.55; letter-spacing: -1px; font-size: 0.9rem; margin-right: 2px; }
.cp-head-title { display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-head-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.cp-head button {
  background: none; border: none; color: #94a3b8; cursor: pointer; flex-shrink: 0;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; line-height: 1; border-radius: 5px;
}
.cp-head button:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* Minimized: only the draggable header bar remains visible */
#cpPanel.cp-collapsed { height: auto; width: min(230px, calc(100vw - 20px)); min-height: 0; }
#cpPanel.cp-collapsed .cp-body, #cpPanel.cp-collapsed .cp-input { display: none; }
.cp-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-alt); }
.cp-msg { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 0.79rem; line-height: 1.45; }
.cp-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.cp-user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chips button {
  font-family: inherit; font-size: 0.7rem; font-weight: 600; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); color: var(--navy);
  padding: 4px 9px; border-radius: 100px; transition: all 0.15s;
}
.cp-chips button:hover { border-color: var(--amber); background: rgba(245, 166, 35, 0.08); }
.cp-input { display: flex; gap: 6px; padding: 9px; border-top: 1px solid var(--line); background: #fff; }
.cp-input input { flex: 1; font-size: 0.82rem; padding: 8px 11px; }
.cp-input button { padding: 8px 14px; font-size: 0.8rem; }

/* ---------- Owner Portal (my.html) ---------- */
.veh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.vchip {
  font-family: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer;
  background: var(--bg-alt); border: 1.5px solid var(--line); color: var(--ink);
  padding: 8px 16px; border-radius: 100px; transition: all 0.15s;
}
.vchip:hover { border-color: var(--amber); }
.vchip.sel { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Command Center (command.html) — Grafana-style dark ---------- */
body.cmd { background: #0a111d; color: #ffffff; }
.cmd-header {
  position: sticky; top: 0; z-index: 100;
  background: #0d1524; border-bottom: 1px solid #223047;
}
.cmd-header-inner {
  max-width: 1480px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.cmd-title {
  font-weight: 800; letter-spacing: 3px; font-size: 0.85rem; color: #c3c2b7;
  display: flex; align-items: center; gap: 10px;
}
.live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #0ca30c;
  box-shadow: 0 0 10px rgba(12, 163, 12, 0.8); animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.cmd-controls { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cmd-controls select {
  background: #121c2e; color: #fff; border: 1px solid #223047; border-radius: 8px;
  padding: 8px 12px; font-family: inherit; font-size: 0.82rem; width: auto;
}
.cmd-controls button {
  background: #121c2e; color: #c3c2b7; border: 1px solid #223047; border-radius: 8px;
  padding: 8px 13px; cursor: pointer; font-size: 1rem;
}
.cmd-controls button:hover { color: #fff; border-color: #f5a623; }
.cmd-link { color: #c3c2b7; text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.cmd-link:hover { color: #f5a623; }

.cmd-main { max-width: 1480px; margin: 0 auto; padding: 22px; }
.cmd-empty { text-align: center; padding: 90px 20px; }
.cmd-empty h2 { margin: 12px 0 8px; }
.cmd-empty p { color: #898781; margin-bottom: 22px; }
.cmd-empty a:not(.btn) { color: #f5a623; }

.kpi-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi {
  background: #121c2e; border: 1px solid #223047; border-radius: 10px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 3px;
}
.kpi-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 1.2px; color: #898781; }
.kpi-value { font-size: 1.65rem; font-weight: 700; color: #fff; line-height: 1.15; }
.kpi-sub { font-size: 0.7rem; color: #898781; }

.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.panel { background: #121c2e; border: 1px solid #223047; border-radius: 10px; overflow: hidden; }
.panel.span-2 { grid-column: span 2; }
.panel.span-3 { grid-column: span 3; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid #1a2740;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 1.4px; color: #898781;
}
.panel-legend { display: flex; gap: 12px; }
.panel-legend .lg-item { font-size: 0.7rem; }
.panel-body { padding: 14px 16px; }
.cmd-muted { color: #898781; font-size: 0.82rem; }
.cmd-note { font-size: 0.68rem; color: #898781; margin-top: 8px; }
.cmd-foot { text-align: center; color: #3a4a63; font-size: 0.72rem; margin: 26px 0 60px; }

/* horizontal bar rows */
.hbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.hbar-label { width: 92px; font-size: 0.74rem; color: #c3c2b7; text-align: right; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { flex: 1; height: 14px; background: #0d1524; border-radius: 4px; position: relative; }
.hbar-fill { height: 100%; border-radius: 4px 3px 3px 4px; }
.hbar-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #c3c2b7; }
.hbar-val { width: 62px; font-size: 0.74rem; font-weight: 700; color: #c3c2b7; font-variant-numeric: tabular-nums; }

/* issue queue */
.q-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #1a2740; }
.q-row:last-child { border-bottom: none; }
.q-rank { color: #fff; font-weight: 800; font-size: 0.66rem; padding: 2px 8px; border-radius: 100px; flex-shrink: 0; }
.q-main { flex: 1; font-size: 0.8rem; color: #c3c2b7; }
.q-main strong { color: #fff; margin-right: 6px; }
.q-sev { font-size: 0.7rem; font-weight: 700; }

/* timeline */
.tl-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tl-item {
  background: #0d1524; border: 1px solid #1a2740; border-top: 3px solid; border-radius: 8px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 3px;
}
.tl-days { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.5px; }
.tl-label { font-size: 0.78rem; color: #fff; }
.tl-type { font-size: 0.62rem; color: #898781; letter-spacing: 1px; }

/* vehicle board */
.cmd-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.cmd-table th { text-align: left; font-size: 0.62rem; letter-spacing: 1px; color: #898781; padding: 8px 10px; border-bottom: 1px solid #223047; }
.cmd-table td { padding: 10px; border-bottom: 1px solid #1a2740; font-size: 0.82rem; color: #c3c2b7; font-variant-numeric: tabular-nums; }
.cmd-table td strong { color: #fff; }
.cmd-table tr:last-child td { border-bottom: none; }
.dots { letter-spacing: 2px; }
.dstat { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }

body.cmd .viz-tooltip { background: #223047; }
body.cmd #cpFab { border-color: #f5a623; }

@media (max-width: 1100px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } .panel-grid { grid-template-columns: 1fr 1fr; } .panel.span-2, .panel.span-3 { grid-column: span 2; } }
@media (max-width: 680px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } .panel-grid { grid-template-columns: 1fr; } .panel.span-2, .panel.span-3 { grid-column: span 1; } }

/* Why FleetWorks comparison table */
.compare-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  min-width: 640px; font-size: 0.9rem;
}
.compare-table th {
  text-align: left; padding: 14px 18px; background: var(--navy); color: #fff;
  font-size: 0.88rem; font-weight: 700;
}
.compare-table td { padding: 13px 18px; border-bottom: 1px solid var(--bg-alt); color: var(--ink); }
.compare-table td:first-child { font-weight: 500; }
.compare-table .fw-col { background: rgba(245, 166, 35, 0.09); font-weight: 600; }
.compare-table th.fw-col { background: var(--amber); color: var(--navy); }
.compare-table tr:last-child td { border-bottom: none; }

/* AI features section on the homepage */
.ai-strip {
  background: linear-gradient(120deg, #101f36, #1d3a63); color: #fff;
  border-radius: var(--radius); padding: 34px 36px; margin-top: 40px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
}
.ai-strip h3 { font-size: 1.35rem; margin-bottom: 10px; }
.ai-strip p { color: #c7d2e0; font-size: 0.92rem; margin-bottom: 18px; }
.ai-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-chip {
  background: rgba(245, 166, 35, 0.14); border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--amber); font-size: 0.8rem; font-weight: 600;
  padding: 7px 14px; border-radius: 100px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .why-grid, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan.featured { transform: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .topbar-cities { display: none; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { padding: 14px 20px; border-bottom: 1px solid var(--bg-alt); }
  .hamburger { display: flex; }
  .nav-actions .btn-outline { display: none; }
  .services-grid, .why-grid, .testimonials, .steps { grid-template-columns: 1fr; }
  .hero { padding: 46px 0 56px; }
  .hero-points { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .onboard-card { padding: 24px 18px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .entry-grid { grid-template-columns: 1fr; }
  .ai-strip { grid-template-columns: 1fr; padding: 26px 22px; }
  .stepper-label { display: none; }
  .stepper-line { margin-bottom: 0; }
  .step-actions { flex-direction: column-reverse; gap: 10px; }
  .step-actions .btn { width: 100%; }
}
