:root {
  --bulo-blue: #0d6efd;
  --bulo-blue-2: #0ea5e9;
  --bulo-dark: #071527;
  --bulo-navy: #0b1f3a;
  --bulo-text: #172033;
  --bulo-muted: #667085;
  --bulo-line: #dce7f5;
  --bulo-soft: #eef6ff;
  --bulo-card: #ffffff;
  --bulo-green: #16a34a;
  --bulo-yellow: #f59e0b;
  --bulo-red: #dc2626;
  --shadow: 0 22px 55px rgba(7, 21, 39, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bulo-text);
  background: #f6f9fd;
  font-family: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(7, 21, 39, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 26px rgba(7, 21, 39, 0.15);
}

.site-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--bulo-blue), var(--bulo-blue-2));
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.32);
}

.brand-logo {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 11px 16px !important;
  border-radius: 999px;
  color: #fff !important;
  background: var(--bulo-blue);
}

.nav-cta::after {
  display: none;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 24px;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 21, 39, 0.88), rgba(11, 77, 155, 0.82)),
    radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.72), transparent 25rem),
    linear-gradient(145deg, #051224, #0d6efd);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 78px 78px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 88px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.10);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.hero p {
  width: min(720px, 100%);
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--bulo-blue);
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.32);
}

.btn-light {
  color: var(--bulo-dark);
  background: #fff;
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--bulo-soft);
}

.section-title {
  margin-bottom: 34px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  color: var(--bulo-dark);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
}

.section-title p {
  max-width: 690px;
  margin: 12px auto 0;
  color: var(--bulo-muted);
  line-height: 1.65;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card,
.login-card,
.help-card,
.form-card {
  padding: 26px;
  border: 1px solid var(--bulo-line);
  border-radius: var(--radius);
  background: var(--bulo-card);
  box-shadow: 0 12px 34px rgba(7, 21, 39, 0.08);
}

.icon-circle {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 8px solid #d8ebff;
  border-radius: 50%;
  color: var(--bulo-blue);
  background: #fff;
  font-size: 24px;
  font-weight: 900;
}

.feature-card h3,
.login-card h2,
.help-card h3 {
  margin: 0 0 10px;
  color: var(--bulo-dark);
  font-size: 22px;
  font-weight: 900;
}

.feature-card p,
.login-card p,
.help-card p {
  margin: 0;
  color: var(--bulo-muted);
  line-height: 1.65;
}

.ride-call-button {
  width: 100%;
  min-height: 64px;
  margin: 22px 0 4px;
  border-radius: 18px;
  font-size: 20px;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--bulo-blue), #0ea5e9);
  box-shadow: 0 18px 42px rgba(13, 110, 253, 0.34);
  text-decoration: none;
}

.ride-call-button::before {
  content: "⌖";
  font-size: 22px;
}

.ride-call-button-visible {
  animation: ridePulse 1.9s ease-in-out infinite;
}

@keyframes ridePulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 42px rgba(13, 110, 253, 0.34);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(13, 110, 253, 0.46);
  }
}

.stats-band {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 21, 39, 0.92), rgba(13, 110, 253, 0.86)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.72), transparent 24rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.10);
  text-align: center;
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.stat span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.page-hero {
  padding: 68px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--bulo-dark), #0d6efd);
}

.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
}

.page-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.portal-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid var(--bulo-line);
  border-radius: var(--radius);
  background: #edf5ff;
}

.choice button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  color: var(--bulo-muted);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.choice button.active {
  color: #fff;
  background: var(--bulo-blue);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.22);
}

.driver-only {
  display: none;
}

body.driver .driver-only {
  display: grid;
}

.field,
.field-full {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.field-full {
  grid-column: 1 / -1;
}

.input,
.select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--bulo-line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--bulo-text);
  background: #fff;
  font: inherit;
  outline: none;
}

.input:focus,
.select:focus {
  border-color: var(--bulo-blue);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.alert {
  display: none;
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.45;
}

.alert.show {
  display: block;
}

.alert.ok {
  color: #047857;
  background: #dcfce7;
}

.alert.error {
  color: #b91c1c;
  background: #fee2e2;
}

.site-footer {
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--bulo-dark);
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-links a {
  color: #fff;
  font-weight: 800;
}

.footer-links a:hover {
  color: #7dd3fc;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--bulo-blue), var(--bulo-blue-2));
  font-size: 22px;
  font-weight: 900;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-user h1 {
  margin: 0;
  color: var(--bulo-dark);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
}

.dashboard-user p {
  margin: 4px 0 0;
  color: var(--bulo-muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  padding: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(145deg, #0d6efd, #0ea5e9);
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.20);
}

.metric-card:nth-child(2) {
  background: linear-gradient(145deg, #0f172a, #2563eb);
}

.metric-card:nth-child(3) {
  background: linear-gradient(145deg, #0b766c, #10b981);
}

.metric-card:nth-child(4) {
  background: linear-gradient(145deg, #1e3a8a, #7c3aed);
}

.metric-card span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.panel-card {
  padding: 22px;
  border: 1px solid var(--bulo-line);
  border-radius: var(--radius);
  background: var(--bulo-card);
  box-shadow: 0 12px 34px rgba(7, 21, 39, 0.08);
}

.panel-card h2 {
  margin: 0 0 14px;
  color: var(--bulo-dark);
  font-size: 22px;
  font-weight: 900;
}

.panel-card + .panel-card {
  margin-top: 18px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--bulo-line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.list-item strong {
  color: var(--bulo-dark);
}

.list-item span {
  color: var(--bulo-muted);
  font-size: 13px;
  line-height: 1.35;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 900;
}

.badge.ok {
  color: #047857;
  background: #dcfce7;
}

.badge.warn {
  color: #92400e;
  background: #fef3c7;
}

.badge.bad {
  color: #b91c1c;
  background: #fee2e2;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 150px;
  margin-top: 10px;
}

.bar-wrap {
  display: grid;
  align-items: end;
  gap: 6px;
  height: 150px;
  text-align: center;
}

.bar {
  width: 100%;
  min-height: 5px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--bulo-blue), var(--bulo-blue-2));
}

.bar-label {
  color: var(--bulo-muted);
  font-size: 11px;
  font-weight: 800;
}

.empty {
  padding: 16px;
  border: 1px dashed var(--bulo-line);
  border-radius: var(--radius);
  color: var(--bulo-muted);
  background: #fbfdff;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-button {
  min-height: 38px;
  border: 1px solid var(--bulo-line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--bulo-muted);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tab-button.active {
  color: #fff;
  border-color: var(--bulo-blue);
  background: var(--bulo-blue);
}

.hidden {
  display: none !important;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.btn-small {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
}

.btn-secondary {
  color: var(--bulo-blue);
  border-color: rgba(13, 110, 253, 0.22);
  background: #eff6ff;
}

.btn-ghost {
  color: var(--bulo-dark);
  border: 1px solid var(--bulo-line);
  background: #fff;
}

.select,
.textarea {
  width: 100%;
  border: 1px solid var(--bulo-line);
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--bulo-dark);
  background: #fff;
  font: inherit;
}

.textarea {
  min-height: 98px;
  resize: vertical;
}

.form-compact {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.support-form {
  padding: 14px;
  border: 1px solid var(--bulo-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.support-form label {
  display: grid;
  gap: 6px;
  color: var(--bulo-muted);
  font-size: 12px;
  font-weight: 900;
}

.support-form .btn {
  width: 100%;
  justify-content: center;
}

.support-list-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
  color: var(--bulo-dark);
  font-weight: 900;
}

.ride-expanded {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--bulo-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 21, 39, 0.08);
}

.ride-summary {
  grid-template-columns: 1fr auto;
  align-items: center;
  text-align: left;
}

.ride-summary-main {
  display: grid;
  gap: 4px;
}

.ride-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ride-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--bulo-line);
  border-radius: 50%;
  color: var(--bulo-blue);
  background: #eff6ff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.ride-toggle.open {
  transform: rotate(180deg);
  color: #fff;
  background: var(--bulo-blue);
}

.ride-map {
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--bulo-line);
  border-radius: 18px;
  background: #eef5ff;
}

.ride-map .leaflet-control-attribution {
  font-size: 10px;
}

.ride-route-note {
  color: var(--bulo-muted);
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 21, 39, 0.58);
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(7, 21, 39, 0.28);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bulo-line);
  background: rgba(255, 255, 255, 0.96);
}

.modal-head h2 {
  margin: 0;
  color: var(--bulo-dark);
}

.modal-body {
  padding: 20px;
}

.driver-profile-modal {
  display: grid;
  gap: 16px;
}

.driver-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--bulo-line);
  border-radius: 18px;
  background: #f8fbff;
}

.driver-profile-head h3 {
  margin: 0;
  color: var(--bulo-dark);
}

.driver-profile-head p {
  margin: 4px 0 0;
  color: var(--bulo-muted);
}

.avatar-large {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.message-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--bulo-line);
  border-radius: 16px;
  background: #f8fbff;
}

.message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--bulo-dark);
  background: #fff;
}

.message.mine {
  justify-self: end;
  color: #fff;
  background: var(--bulo-blue);
}

.message small {
  display: block;
  margin-top: 4px;
  opacity: 0.72;
}

@media (max-width: 920px) {
  .grid-3,
  .grid-2,
  .stats,
  .metric-grid,
  .panel-grid,
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-actions,
  .dashboard-actions .btn {
    width: 100%;
  }

  .site-nav {
    min-height: 68px;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 20px 20px;
    background: rgba(7, 21, 39, 0.98);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 0;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding-top: 62px;
  }

  .section {
    padding: 56px 0;
  }

  .form-grid,
  .stats,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .field-full {
    grid-column: auto;
  }
}
