:root {
  --bg0: #05080f;
  --bg1: #070b14;
  --gold: #ffd700;
  --goldSoft: rgba(255, 215, 0, 0.16);
  --text: rgba(245, 247, 252, 0.96);
  --muted: rgba(205, 213, 228, 0.86);
  --muted2: rgba(160, 174, 200, 0.88);
  --line: rgba(255, 255, 255, 0.1);
  --line2: rgba(255, 255, 255, 0.06);
  --radius: 18px;
  --safeTop: env(safe-area-inset-top, 0px);
  --safeBottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg0);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 215, 0, 0.14), transparent 34rem),
    linear-gradient(135deg, rgba(255, 215, 0, 0.06), transparent 42rem),
    var(--bg0);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.82);
  outline-offset: 3px;
}

option {
  color: var(--text);
  background: var(--bg0);
}

a {
  color: inherit;
  text-decoration: none;
}

.noscript,
.bootShell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.bootShell img {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  object-fit: cover;
}

.driverApp {
  width: 100%;
  min-height: 100vh;
}

.driverTop {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(10px + var(--safeTop)) 14px 10px;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.94) 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.32);
}

.driverTop__row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.driverBrand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.driverBrand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  background: #000;
}

.driverBrand strong,
.sectionTitle h2,
.loginCard h1 {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.driverBrand strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.15;
}

.driverBrand span,
.miniText {
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.25;
}

.statusPill,
.chip,
.smallBtn,
.tabBtn,
.field,
.primaryBtn,
.ghostBtn,
.actionBtn,
.installCard,
.driverPanel,
.loginCard,
.tripCard,
.metricCard,
.timelineItem,
.toggleButton,
.selectShell {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.statusPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.7);
}

.dot--offline {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.driverShell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 14px calc(92px + var(--safeBottom));
}

.loginWrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(28px + var(--safeTop)) 18px calc(28px + var(--safeBottom));
}

.loginCard {
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 215, 0, 0.18), transparent 18rem),
    #050505;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.loginLogo {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
  margin: 0 auto 18px;
}

.loginCard h1 {
  margin: 0;
  text-align: center;
  color: var(--gold);
  font-size: clamp(26px, 8vw, 42px);
  line-height: 0.95;
}

.loginCard p {
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.formGrid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 20px;
  color: var(--muted2);
}

.field span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-weight: 900;
  min-height: 30px;
}

.field select {
  appearance: none;
}

.heroOps {
  display: grid;
  gap: 14px;
}

.driverPanel,
.tripCard,
.metricCard {
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 215, 0, 0.12), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.driverPanel {
  padding: 18px;
}

.heroGrid {
  display: grid;
  gap: 12px;
}

.sectionTitle {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sectionTitle h2 {
  margin: 0;
  color: var(--gold);
  font-size: 15px;
}

.sectionTitle p {
  margin: 4px 0 0;
  color: var(--muted2);
}

.metricGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metricCard {
  padding: 14px;
  min-height: 104px;
}

.metricCard strong {
  display: block;
  color: var(--gold);
  font-size: clamp(22px, 7vw, 34px);
}

.metricCard span {
  color: var(--muted);
  font-weight: 700;
}

.tripCard {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.tripCard--primary {
  border-color: rgba(255, 215, 0, 0.34);
}

.tripHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tripHead h3 {
  margin: 0;
  font-size: clamp(24px, 8vw, 42px);
  line-height: 0.98;
}

.tripHead p {
  margin: 6px 0 0;
  color: var(--muted);
}

.payoutTag {
  min-width: 88px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  text-align: right;
}

.payoutTag span {
  display: block;
  color: var(--muted2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payoutTag strong {
  color: var(--gold);
  font-size: 24px;
}

.routeLine {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
}

.routePoint {
  min-height: 88px;
  padding: 13px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid var(--line2);
}

.routePoint span,
.detailItem span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.routePoint strong,
.detailItem strong {
  display: block;
  margin-top: 5px;
  line-height: 1.25;
}

.routeArrow {
  color: var(--gold);
  font-weight: 900;
}

.detailGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.detailItem {
  padding: 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
}

.chipRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workflow {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.progressRail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.progressStep {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progressStep.isDone {
  background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, 0.85));
}

.actionsGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.primaryBtn,
.ghostBtn,
.actionBtn,
.smallBtn,
.tabBtn,
.toggleButton {
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  min-height: 48px;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.ghostBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.primaryBtn {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 215, 0, 0.55);
  color: #05080f;
  background: linear-gradient(135deg, #ffd700, #fff2a6 48%, #d7a900);
  box-shadow: 0 18px 44px rgba(255, 215, 0, 0.18);
}

.googleLoginBtn {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    #050505;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.googleLoginBtn:disabled {
  cursor: progress;
  opacity: 0.72;
}

.googleLoginBtn__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.25);
  flex: 0 0 30px;
}

.googleLoginBtn__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.loginDivider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loginDivider::before,
.loginDivider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
}

.primaryBtn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.65);
  opacity: 0.72;
}

.ghostBtn,
.actionBtn,
.smallBtn {
  padding: 13px 16px;
}

.actionBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}

.smallBtn {
  min-height: 42px;
  color: var(--muted);
}

.smallBtn--gold {
  color: #05080f;
  background: var(--gold);
}

.tabBar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + var(--safeBottom));
  z-index: 18;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 28px;
  border: 1px solid rgba(255, 215, 0, 0.26);
  background: rgba(0, 0, 0, 0.92);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabBar::-webkit-scrollbar {
  display: none;
}

.tabBtn {
  min-height: 48px;
  min-width: 92px;
  color: var(--muted2);
  background: transparent;
  border-color: transparent;
  font-size: 12px;
}

.tabBtn.isActive {
  color: #05080f;
  background: linear-gradient(135deg, #ffd700, #fff0a4);
}

.listStack,
.timelineList {
  display: grid;
  gap: 12px;
}

.timelineItem {
  border-radius: 20px;
  padding: 13px;
}

.timelineItem strong {
  display: block;
}

.timelineItem span {
  color: var(--muted2);
  font-size: 13px;
}

.emptyState {
  padding: 24px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--muted);
  text-align: center;
}

.settingsGrid {
  display: grid;
  gap: 12px;
}

.legalNotice {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.24);
  background: rgba(255, 215, 0, 0.07);
}

.legalNotice span {
  color: var(--muted);
  line-height: 1.5;
}

.documentsGrid {
  display: grid;
  gap: 12px;
}

.documentCard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.38);
}

.documentCard.isUploaded {
  border-color: rgba(255, 215, 0, 0.42);
  background: rgba(255, 215, 0, 0.07);
}

.documentCard h3 {
  margin: 8px 0 6px;
}

.documentCard p,
.documentCard small {
  margin: 0;
  color: var(--muted2);
  line-height: 1.45;
}

.uploadShell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, 0.26);
  color: var(--gold);
  background: #050505;
  font-weight: 900;
  overflow: hidden;
}

.uploadShell input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.primaryBtn--link {
  margin-top: 14px;
  min-height: 56px;
}

.toggleButton,
.selectShell {
  width: 100%;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggleButton.isOn {
  border-color: rgba(255, 215, 0, 0.35);
}

.selectShell select {
  width: 100%;
  border: 0;
  color: var(--text);
  background: transparent;
  outline: 0;
  appearance: none;
  font-weight: 900;
}

.installCard {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(12px + var(--safeTop));
  z-index: 40;
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.installCard__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.installCard__actions .smallBtn {
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
}

.installCard img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.installCard strong {
  display: block;
}

.installCard span {
  color: var(--muted);
  font-size: 13px;
}

.xBtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.syncToast {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 215, 0, 0.06);
}

.footerNote {
  padding: 20px 4px;
  color: var(--muted2);
  text-align: center;
  font-size: 12px;
}

.footerNote img {
  width: 94px;
  opacity: 0.78;
  vertical-align: middle;
  margin-left: 6px;
}

@media (min-width: 860px) {
  .driverShell {
    padding-top: 28px;
  }

  .heroGrid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .tabBar {
    position: sticky;
    top: calc(72px + var(--safeTop));
    max-width: 1120px;
    margin: 16px auto;
    bottom: auto;
  }

  .documentsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .driverShell {
    padding-bottom: 44px;
  }
}

@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 50% -8%, rgba(255, 215, 0, 0.12), transparent 24rem),
      var(--bg0);
  }

  .driverTop__row {
    align-items: center;
  }

  .driverBrand strong {
    font-size: 12px;
  }

  .statusPill {
    padding: 8px 10px;
    font-size: 12px;
  }

  .metricGrid {
    grid-template-columns: 1fr;
  }

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

  .routeLine,
  .detailGrid,
  .actionsGrid {
    grid-template-columns: 1fr;
  }

  .routeArrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .tripHead {
    display: grid;
  }

  .payoutTag {
    width: 100%;
    text-align: left;
  }

  .loginCard {
    padding: 20px;
  }

  .driverShell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .driverPanel,
  .tripCard {
    border-radius: 22px;
    padding: 14px;
  }

  .tabBar {
    left: 8px;
    right: 8px;
    gap: 4px;
    padding: 6px;
    border-radius: 22px;
    grid-template-columns: repeat(5, minmax(76px, 1fr));
  }

  .tabBtn {
    min-height: 44px;
    min-width: 76px;
    font-size: 10px;
    letter-spacing: 0.01em;
  }

  .actionsGrid .actionBtn,
  .primaryBtn,
  .ghostBtn {
    min-height: 52px;
  }

  .installCard {
    grid-template-columns: 42px 1fr;
    align-items: start;
    border-radius: 18px;
  }

  .installCard img {
    width: 42px;
    height: 42px;
  }

  .installCard__actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .installCard__actions .smallBtn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .driverPanel,
  .tripCard,
  .metricCard {
    animation: riseIn 380ms ease both;
  }

  @keyframes riseIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* RCR Driver cockpit v2: shared black/gold product system for PWA + portal parity. */
body {
  background:
    linear-gradient(90deg, rgba(255, 215, 0, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 12% 4%, rgba(255, 215, 0, 0.16), transparent 24rem),
    linear-gradient(120deg, rgba(255, 215, 0, 0.07), transparent 34rem),
    #020306;
  background-size: 68px 68px, 68px 68px, auto, auto, auto;
}

.uiIcon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.driverWorkspace {
  min-height: 100vh;
}

.driverContent {
  min-width: 0;
}

.sideRail {
  display: none;
}

.driverTop {
  border-bottom: 1px solid rgba(255, 215, 0, 0.16);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.82)),
    #000;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
}

.driverTop__row {
  max-width: 1280px;
}

.driverBrand img {
  display: none;
}

.driverAvatar {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-weight: 950;
}

.driverBrand strong,
.sectionTitle h2 {
  letter-spacing: 0;
  text-transform: none;
}

.driverBrand strong {
  font-size: 15px;
}

.driverBrand .dot {
  width: 8px;
  height: 8px;
}

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

.iconBtn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.44);
}

.driverShell {
  width: min(1280px, 100%);
  padding: 18px 14px calc(102px + var(--safeBottom));
}

.driverDashboard {
  display: grid;
  gap: 14px;
}

.homeStack,
.activePanel {
  display: grid;
  gap: 14px;
  width: min(920px, 100%);
  margin: 0 auto;
}

.dashboardMain,
.opsColumn {
  display: grid;
  gap: 14px;
  min-width: 0;
}

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

.statTile {
  min-height: 88px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #07090d;
}

.statTile span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.statTile strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(20px, 6vw, 28px);
  line-height: 1;
}

.driverPanel,
.tripCard,
.metricCard,
.loginCard,
.installCard,
.timelineItem {
  border-color: rgba(255, 255, 255, 0.095);
  background:
    radial-gradient(circle at 20% 0, rgba(255, 215, 0, 0.09), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018)),
    #06080d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 28px 80px rgba(0, 0, 0, 0.34);
}

.tripCard {
  border-radius: 28px;
}

.tripCard--primary {
  border-color: rgba(255, 215, 0, 0.38);
  background:
    radial-gradient(circle at 82% 28%, rgba(255, 215, 0, 0.12), transparent 15rem),
    linear-gradient(150deg, rgba(255, 215, 0, 0.09), rgba(255, 255, 255, 0.02) 40%, rgba(0, 0, 0, 0.62)),
    #07090d;
}

.goldRail {
  width: 74px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--gold), rgba(255, 215, 0, 0.08));
}

.eyebrow {
  display: inline-block;
  color: var(--muted2);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tripHead h3 {
  margin-top: 6px;
  font-size: clamp(34px, 9vw, 52px);
  letter-spacing: 0;
}

.payoutTag {
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.vehicleStage {
  height: 78px;
  margin: 8px 0 -10px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 72% 48%, rgba(255, 215, 0, 0.17), transparent 38%),
    linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.06));
  overflow: hidden;
  position: relative;
}

.vehicleStage span {
  position: absolute;
  right: 20px;
  bottom: 14px;
  width: 180px;
  height: 38px;
  border-radius: 999px 999px 18px 18px;
  border: 1px solid rgba(255, 215, 0, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2)),
    #090909;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.vehicleStage span::before,
.vehicleStage span::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #020202;
  border: 3px solid rgba(255, 215, 0, 0.18);
}

.vehicleStage span::before {
  left: 28px;
}

.vehicleStage span::after {
  right: 28px;
}

.routeLine {
  align-items: stretch;
}

.routePoint {
  min-height: 102px;
  display: grid;
  align-content: start;
  gap: 5px;
  background: rgba(0, 0, 0, 0.32);
}

.routePoint .uiIcon {
  color: var(--gold);
  width: 26px;
  height: 26px;
}

.routeArrow {
  width: 24px;
  min-height: 100%;
  position: relative;
}

.routeArrow::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  border-left: 2px solid rgba(255, 215, 0, 0.34);
}

.detailItem {
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.progressRail {
  gap: 10px;
}

.progressStep {
  height: 26px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: transparent;
  position: relative;
}

.progressStep::before {
  content: "";
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progressStep.isDone::before {
  background: linear-gradient(90deg, var(--gold), #fff1a6);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.2);
}

.progressStep span {
  color: var(--muted2);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.primaryBtn,
.googleLoginBtn,
.ghostBtn,
.actionBtn,
.smallBtn,
.tabBtn,
.toggleButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.primaryBtn:hover,
.googleLoginBtn:hover,
.ghostBtn:hover,
.actionBtn:hover,
.smallBtn:hover,
.tabBtn:hover,
.toggleButton:hover {
  transform: translateY(-1px);
}

.primaryBtn:active,
.googleLoginBtn:active,
.ghostBtn:active,
.actionBtn:active,
.smallBtn:active,
.tabBtn:active,
.toggleButton:active {
  transform: translateY(0) scale(0.99);
}

.actionsGrid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.actionBtn {
  min-width: 0;
  min-height: 66px;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.38);
}

.actionBtn .uiIcon {
  color: var(--gold);
  width: 22px;
  height: 22px;
}

.actionBtn span {
  font-size: 11px;
  font-weight: 850;
}

.quickSummaryGrid {
  display: grid;
  gap: 14px;
}

.opsCard,
.miniPanel {
  border-radius: 24px;
}

.sectionTitle--compact {
  align-items: flex-start;
  margin-bottom: 12px;
}

.sectionTitle h2 {
  font-size: 15px;
}

.sectionTitle--compact h2 {
  font-size: 13px;
  color: var(--text);
}

.chip--success {
  color: #7bdcb5;
  border-color: rgba(123, 220, 181, 0.35);
  background: rgba(123, 220, 181, 0.1);
}

.settingsGrid--compact {
  gap: 9px;
}

.field--compact {
  padding: 10px 12px;
  border-radius: 16px;
}

.field--compact span {
  font-size: 10px;
}

.toggleButton {
  min-height: 46px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
}

.toggleButton.isOn {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
}

.miniOffer,
.miniRows span,
.miniTimeline > div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.26);
}

.miniOffer {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.miniOffer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.miniOffer strong,
.earningsHero strong,
.miniRows strong {
  color: var(--gold);
}

.miniOffer .smallBtn {
  grid-column: 1 / -1;
}

.docMeter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.docMeter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #fff1a6);
}

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

.miniRows small {
  color: var(--muted2);
}

.miniRows strong {
  display: block;
  font-size: 18px;
}

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

.miniTimeline > div {
  grid-template-columns: 54px 1fr auto;
  align-items: center;
}

.miniTimeline time {
  color: var(--gold);
  font-weight: 900;
}

.miniTimeline span {
  color: var(--text);
  font-weight: 800;
}

.miniTimeline small {
  display: block;
  margin-top: 3px;
  color: var(--muted2);
  font-weight: 650;
}

.miniTimeline b {
  color: var(--gold);
  font-size: 11px;
}

.earningsHero {
  margin-bottom: 12px;
}

.earningsHero strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.earningsHero span {
  color: var(--muted2);
}

.payoutSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.payoutSummary > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 215, 0, 0.09), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.38);
}

.payoutSummary span,
.payoutSummary small {
  display: block;
  color: var(--muted2);
  font-weight: 760;
}

.payoutSummary span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payoutSummary strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--gold);
  font-size: clamp(20px, 6vw, 30px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.emptyState--small {
  padding: 14px;
  border-radius: 16px;
  text-align: left;
}

.tabBar {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(1, 2, 5, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.tabBtn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted2);
}

.tabBtn .uiIcon {
  width: 20px;
  height: 20px;
}

.tabBtn.isActive {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.17);
}

.loginWrap {
  background:
    linear-gradient(90deg, rgba(255, 215, 0, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 16% 4%, rgba(255, 215, 0, 0.18), transparent 24rem),
    #020306;
  background-size: 68px 68px, 68px 68px, auto, auto;
}

.loginCard {
  border-radius: 28px;
  border-color: rgba(255, 215, 0, 0.34);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 215, 0, 0.16), transparent 18rem),
    rgba(7, 8, 5, 0.96);
}

.loginCard h1 {
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.loginLogo {
  width: 98px;
  height: 98px;
  border-radius: 26px;
  background: #000;
}

@media (min-width: 760px) {
  .statStrip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .driverWorkspace {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
  }

  .sideRail {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: calc(22px + var(--safeTop)) 14px calc(16px + var(--safeBottom));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(2, 3, 6, 0.9));
  }

  .railLogo img {
    width: 74px;
    height: 74px;
    display: block;
    margin: 0 auto;
    border-radius: 22px;
    object-fit: cover;
  }

  .railNav {
    display: grid;
    gap: 8px;
  }

  .railBtn,
  .railLink {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
    text-align: left;
  }

  .railBtn.isActive {
    color: var(--gold);
    border-color: rgba(255, 215, 0, 0.22);
    background: rgba(255, 215, 0, 0.1);
  }

  .railFoot {
    display: grid;
    gap: 8px;
    margin-top: auto;
  }

  .driverTop {
    position: sticky;
  }

  .driverDashboard {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .driverWorkspace .tabBar {
    display: none;
  }

  .driverShell {
    padding-bottom: 44px;
  }

  .homeStack,
  .activePanel {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 12% 0%, rgba(255, 215, 0, 0.14), transparent 24rem),
      #020306;
  }

  .driverShell {
    padding-top: 12px;
  }

  .statStrip {
    display: none;
  }

  .driverTop {
    padding-left: 10px;
    padding-right: 10px;
  }

  .topActions .iconBtn {
    display: none;
  }

  .tripHead h3 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .vehicleStage {
    height: 58px;
  }

  .vehicleStage span {
    width: 142px;
    right: 12px;
  }

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

  .routeArrow {
    width: 100%;
    height: 18px;
    min-height: 18px;
  }

  .routeArrow::before {
    top: 50%;
    bottom: auto;
    left: 22px;
    right: 22px;
    border-left: 0;
    border-top: 2px solid rgba(255, 215, 0, 0.34);
  }

  .actionsGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }

  .actionBtn {
    min-height: 60px;
    padding: 9px 4px;
  }

  .actionBtn span {
    font-size: 10px;
  }

  .actionBtn .uiIcon {
    width: 19px;
    height: 19px;
  }

  .progressStep span {
    font-size: 9px;
  }

  .miniTimeline > div {
    grid-template-columns: 48px 1fr;
  }

  .miniTimeline b {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
