:root {
  --ink: #07111d;
  --muted: #667789;
  --line: #d9e3ec;
  --paper: #ffffff;
  --soft: #f6f9fc;
  --road: #1c2834;
  --accent: #0f766e;
  --green: #13c995;
  --teal: #18b8c7;
  --red: #e93b3b;
  --blue: #2488ff;
  --black: #020509;
  --brand-navy: #071522;
  --brand-panel: #092033;
  --brand-glass: rgba(255, 255, 255, .86);
  --brand-red-glow: rgba(233, 59, 59, .24);
  --brand-blue-glow: rgba(19, 201, 149, .22);
  --brand-accent-glow: rgba(20, 184, 166, .34);
  --brand-emerald-glow: rgba(19, 201, 149, .24);
  --shadow-sm: 0 8px 22px rgba(7, 18, 32, .08);
  --shadow-md: 0 18px 46px rgba(7, 18, 32, .14);
  --shadow-lg: 0 32px 90px rgba(7, 18, 32, .24);
  --app-height: 100vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(19,201,149,.14), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(20,184,166,.12), transparent 26%),
    linear-gradient(135deg, #06111d 0%, #071522 36%, #eef4f8 36%, #f8fbfd 100%);
  background-size: auto;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select,
[contenteditable="true"],
.allow-select {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

img,
video,
svg {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

video::-webkit-media-controls-download-button {
  display: none !important;
}
video::-internal-media-controls-download-button {
  display: none !important;
}

body.login-active {
  background:
    linear-gradient(135deg, rgba(2, 5, 9, .95), rgba(7, 21, 34, .88)),
    url("assets/brand-hero-premium.png") center / cover no-repeat;
}

body.login-active .app-shell {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(32, 119, 242, .24);
  outline-offset: 2px;
}

.app-shell {
  min-height: var(--app-height);
  display: grid;
  grid-template-rows: auto 1fr;
}

.taxi-login-gate {
  min-height: var(--app-height);
  display: none;
  place-items: center;
  padding: 24px;
}

body.login-active .taxi-login-gate {
  display: grid;
}

.taxi-login-shell {
  width: min(100%, 430px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

.taxi-login-brand {
  padding: 28px 28px 22px;
  background: linear-gradient(135deg, #071522, #0b2c37);
  color: #fff;
}

.taxi-login-brand img {
  width: 188px;
  max-width: 100%;
  display: block;
  margin-bottom: 22px;
}

.taxi-login-brand span,
.taxi-login-brand strong,
.taxi-login-brand p {
  display: block;
}

.taxi-login-brand span {
  color: #b8ffd7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.taxi-login-brand strong {
  margin-top: 4px;
  font-size: 34px;
  line-height: 1;
}

.taxi-login-brand p {
  margin: 10px 0 0;
  color: #dce7ef;
  font-weight: 750;
  line-height: 1.35;
}

.taxi-login-form {
  display: grid;
  gap: 14px;
  padding: 24px 28px 28px;
}

.taxi-login-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.taxi-login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--ink);
}

.taxi-login-error {
  margin: 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 900;
}

.login-forgot-link {
  display: inline-flex;
  align-self: flex-start;
  margin: -4px 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f766e;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-forgot-link[hidden],
button.login-forgot-link[hidden] {
  display: none !important;
}

.taxi-forgot-step {
  display: grid;
  gap: 12px;
}

.taxi-forgot-step[hidden],
#taxiForgotForm[hidden],
#taxiLoginForm[hidden] {
  display: none !important;
}

#taxiForgotForm .login-form-heading p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 22px;
  background:
    linear-gradient(90deg, rgba(2, 5, 9, .96), rgba(7, 21, 34, .96) 58%, rgba(10, 44, 55, .94)),
    var(--black);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28), inset 0 -1px 0 rgba(19, 201, 149, .28);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: block;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0,0,0,.32), 0 0 0 5px rgba(255,255,255,.04), 0 0 42px rgba(19,201,149,.18);
}

.brand-mark::after {
  content: none;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 21px;
  letter-spacing: 0;
}

.brand span {
  color: #ccd4df;
  margin-top: 2px;
}

.download-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  padding: 0 12px;
  background: linear-gradient(135deg, rgba(20,184,166,.18), rgba(19,201,149,.12));
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.role-tabs,
.service-toggle,
.driver-switches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-tabs button,
.service-toggle button,
.driver-switches button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #f2f4f7;
  color: #667085;
  font-weight: 850;
}

.role-tabs button {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}

.role-tabs button.active,
.service-toggle button.active,
.driver-switches button.active {
  border-color: rgba(255, 255, 255, .4);
  background: linear-gradient(135deg, #14b8a6, #13c995 68%, #067456);
  color: #fff;
  box-shadow: 0 12px 24px var(--brand-emerald-glow), inset 0 1px 0 rgba(255,255,255,.24);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 220px;
}

.auth-panel button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-weight: 950;
}

.auth-panel button.active {
  border-color: var(--green);
  background: var(--green);
}

.auth-panel span {
  max-width: 190px;
  overflow: hidden;
  color: #ccd4df;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-panel span[data-state="online"] {
  color: #b8ffd7;
}

.auth-panel span[data-state="warning"] {
  color: #2dd4bf;
}

main {
  padding: 28px 22px;
}

.view {
  display: none !important;
}

.view.active {
  display: grid !important;
}

.passenger-stage {
  position: relative;
  grid-template-columns: minmax(320px, 520px) minmax(360px, 430px);
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: calc(var(--app-height) - 116px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2,5,9,.96) 0%, rgba(7,21,34,.82) 42%, rgba(7,21,34,.2) 100%),
    url("assets/brand-hero-premium.png") right center / cover no-repeat;
}

.passenger-stage::before {
  content: "";
  position: absolute;
  inset: 28px 4vw auto auto;
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(19,201,149,.12), transparent 62%),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent);
  opacity: .5;
  pointer-events: none;
}

.passenger-stage::after {
  content: "";
  position: absolute;
  left: 2vw;
  right: 2vw;
  bottom: 8vh;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: rotate(-7deg);
  opacity: .16;
  pointer-events: none;
}

.launch-panel {
  position: relative;
  z-index: 2;
  max-width: 520px;
  color: #fff;
}

.launch-logo,
.download-logo {
  width: min(100%, 420px);
  height: auto;
  display: block;
  margin: 0 0 18px;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.32));
}

.download-logo {
  max-width: 430px;
}

.launch-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  padding: 0 12px;
  background: linear-gradient(135deg, rgba(19,201,149,.16), rgba(20,184,166,.1));
  color: #2dd4bf;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.launch-panel h1 {
  margin: 16px 0 0;
  color: #fff;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: .95;
  letter-spacing: 0;
}

.launch-panel p {
  max-width: 500px;
  margin: 16px 0 0;
  color: #dce9f4;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.launch-actions button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.launch-actions button:first-child {
  border-color: rgba(20, 184, 166, .42);
  background: linear-gradient(135deg, #14b8a6, #e9272f 64%, #a70f18);
  box-shadow: 0 16px 32px rgba(233, 39, 47, .24), inset 0 1px 0 rgba(255,255,255,.25);
}

.launch-route {
  display: grid;
  gap: 4px;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.07)),
    rgba(7, 18, 32, .54);
  box-shadow: 0 20px 46px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
}

.founder-signal {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(20, 184, 166, .36);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(20,184,166,.2), rgba(19,201,149,.12)),
    rgba(2, 5, 9, .58);
  color: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.22), 0 0 34px rgba(20,184,166,.12);
  backdrop-filter: blur(16px);
}

.founder-signal strong {
  color: #2dd4bf;
  font-size: 21px;
}

.founder-signal span {
  color: #dce9f4;
  font-weight: 750;
  line-height: 1.35;
}

.launch-route span,
.launch-route small,
.launch-metrics span {
  color: #aebdd0;
  font-size: 12px;
  font-weight: 900;
}

.launch-route strong {
  color: #fff;
  font-size: 20px;
}

.launch-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.launch-metrics div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.launch-metrics strong {
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.phone-app,
.driver-phone {
  position: relative;
  width: min(100%, 430px);
  min-height: 860px;
  overflow: hidden;
  border: 11px solid #050914;
  border-radius: 38px;
  background: #f6f8fb;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 0 0 1px rgba(255, 255, 255, .14);
}

.phone-app::before,
.driver-phone::before {
  content: "";
  position: absolute;
  z-index: 30;
  top: 8px;
  left: 50%;
  width: 116px;
  height: 24px;
  border-radius: 0 0 16px 16px;
  background: #050914;
  transform: translateX(-50%);
  pointer-events: none;
}

.phone-status {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 18px 8px;
  color: #071624;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.phone-status.dark {
  position: static;
  background:
    linear-gradient(90deg, #020509, #071522 62%, #09303a);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(19, 201, 149, .28);
}

.mobile-home-top,
.mobile-shortcuts,
.mobile-bottom-nav,
.mobile-map-cta {
  display: none;
}

.driver-status-badge {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.driver-status-badge.online {
  background: rgba(22, 163, 127, .18);
  color: #33e39c;
}

.driver-status-badge.offline {
  background: rgba(255, 75, 75, .16);
  color: #ff7b7b;
}

.map-panel {
  position: relative;
  min-height: 446px;
  background: #d9e7ef;
  overflow: hidden;
}

.map-toolbar {
  position: absolute;
  z-index: 10;
  top: 42px;
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
}

.map-toolbar div {
  min-height: 54px;
  display: grid;
  align-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.7);
}

.map-toolbar span,
.panel-heading span,
.fare-card span,
.trip-metrics span,
.admin-card span,
.admin-card small,
.route-box span,
.driver-hero span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.map-toolbar strong,
.panel-heading strong,
.driver-hero strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.circle-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--black);
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(17, 24, 39, .16), inset 0 1px 0 rgba(255,255,255,.8);
}

.locate-arrow {
  position: relative;
}

.locate-arrow::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 11px;
  width: 0;
  height: 0;
  border-left: 15px solid var(--black);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  transform: rotate(-45deg);
}

.locate-arrow.loading {
  pointer-events: none;
}

.locate-arrow.loading::before {
  left: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(17, 19, 24, .22);
  border-top-color: var(--black);
  border-radius: 50%;
  transform: none;
  animation: spinLocate .85s linear infinite;
}

@keyframes spinLocate {
  to {
    transform: rotate(360deg);
  }
}

.map-canvas {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255,255,255,.78) 49%, transparent 51%),
    linear-gradient(0deg, transparent 48%, rgba(255,255,255,.68) 49%, transparent 51%),
    linear-gradient(135deg, #d7e7ee 0%, #edf5f8 52%, #cbdee7 100%);
  background-size: 98px 98px, 124px 124px, auto;
}

.map-canvas.leaflet-ready {
  background: #d9e7ef;
}

.map-canvas.leaflet-ready::before,
.map-canvas.leaflet-ready::after {
  display: none;
}

#realMap,
.fallback-map {
  position: absolute;
  inset: 0;
}

#realMap {
  z-index: 1;
  background: #d9e7ef;
}

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

.map-canvas.leaflet-ready .fallback-map {
  display: none;
}

.map-canvas.leaflet-ready > .user-dot {
  display: none;
}

.leaflet-control-attribution {
  font-size: 9px;
}

.leaflet-container {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.vehicle-marker {
  position: relative;
  width: 50px;
  height: 24px;
  display: block;
  border: 2px solid #fff;
  border-radius: 9px 15px 8px 8px;
  color: transparent;
  font-size: 0;
  box-shadow: 0 11px 22px rgba(17, 24, 39, .24), inset 0 -4px 0 rgba(0, 0, 0, .16);
  transform-origin: center;
  animation: vehicleFloat 1.8s ease-in-out infinite;
}

.vehicle-marker::before {
  content: "";
  position: absolute;
  left: 12px;
  top: -9px;
  width: 25px;
  height: 15px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 12px 12px 3px 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.72) 0 43%, rgba(255,255,255,.22) 44% 52%, rgba(255,255,255,.72) 53% 100%),
    inherit;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1);
}

.vehicle-marker::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: -7px;
  height: 12px;
  background:
    radial-gradient(circle at 8px 6px, #fff 0 2px, #111318 3px 6px, transparent 7px),
    radial-gradient(circle at calc(100% - 8px) 6px, #fff 0 2px, #111318 3px 6px, transparent 7px);
}

.vehicle-marker.private {
  background:
    linear-gradient(90deg, rgba(255,255,255,.25), transparent 34%),
    var(--green);
}

.vehicle-marker.collective {
  background:
    linear-gradient(90deg, rgba(255,255,255,.25), transparent 34%),
    var(--teal);
}

.vehicle-marker.full,
.vehicle-marker.busy {
  background:
    linear-gradient(90deg, rgba(255,255,255,.25), transparent 34%),
    var(--red);
}

.vehicle-marker.selected {
  box-shadow: 0 0 0 5px rgba(247, 201, 72, .46), 0 14px 28px rgba(17, 24, 39, .28);
}

@keyframes vehicleFloat {
  0%, 100% {
    transform: translateY(0) rotate(-6deg);
  }

  50% {
    transform: translateY(-2px) rotate(-3deg);
  }
}

.point-marker {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  transform: rotate(-45deg);
  box-shadow: 0 12px 24px rgba(17, 24, 39, .28);
}

.point-marker::before {
  content: attr(class);
  display: none;
}

.point-marker::after {
  content: "";
}

.point-marker.origin {
  background: var(--blue);
}

.point-marker.destination {
  background: var(--accent);
  color: var(--black);
}

.point-marker {
  line-height: 1;
}

.point-marker {
  text-indent: 0;
}

.route-point-icon .point-marker {
  transform: rotate(-45deg);
}

.route-point-icon .point-marker {
  pointer-events: auto;
}

.route-point-icon .point-marker {
  font-size: 0;
}

.route-point-icon .point-marker.origin::after,
.route-point-icon .point-marker.destination::after {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  transform: rotate(45deg);
}

.route-point-icon .point-marker.origin::after {
  content: "O";
}

.route-point-icon .point-marker.destination::after {
  content: "D";
}

.map-popup {
  display: grid;
  gap: 3px;
  min-width: 150px;
}

.map-popup strong {
  font-size: 14px;
}

.map-popup span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.water-band {
  position: absolute;
  right: -70px;
  top: -30px;
  width: 180px;
  height: 520px;
  background: #9fd1df;
  transform: rotate(12deg);
  opacity: .82;
}

.map-canvas::before,
.map-canvas::after {
  content: "";
  position: absolute;
  background: var(--road);
  box-shadow: 0 0 0 5px rgba(255,255,255,.52);
}

.map-canvas::before {
  width: 155%;
  height: 62px;
  left: -25%;
  top: 49%;
  transform: rotate(-13deg);
}

.map-canvas::after {
  width: 70px;
  height: 145%;
  left: 58%;
  top: -20%;
  transform: rotate(18deg);
}

.route-line {
  position: absolute;
  z-index: 2;
  height: 7px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 26px, transparent 26px 40px);
}

.route-one {
  width: 74%;
  left: 10%;
  top: 52%;
  transform: rotate(-13deg);
}

.route-two {
  width: 58%;
  left: 36%;
  top: 37%;
  transform: rotate(64deg);
}

.taxi-pin {
  position: absolute;
  z-index: 5;
  width: 52px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 12px;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(17, 24, 39, .25);
}

.taxi-pin::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: -9px;
  width: 13px;
  height: 13px;
  background: inherit;
  transform: rotate(45deg);
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
}

.pin-private {
  left: 18%;
  top: 34%;
  background: var(--green);
}

.pin-collective {
  left: 65%;
  top: 28%;
  background: var(--teal);
}

.pin-two {
  left: 44%;
  top: 70%;
}

.pin-full {
  left: 73%;
  top: 58%;
  background: var(--red);
}

.user-dot {
  position: absolute;
  z-index: 6;
  left: 35%;
  top: 54%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  border: 5px solid #fff;
  box-shadow: 0 0 0 12px rgba(36, 107, 254, .18);
}

.request-panel {
  position: relative;
  z-index: 12;
  margin-top: -64px;
  padding: 12px 17px 20px;
  border-radius: 32px 32px 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,252,.99));
  box-shadow: 0 -22px 50px rgba(17, 24, 39, .18), inset 0 1px 0 rgba(255,255,255,.96);
  transition: transform .25s ease, padding .25s ease;
}

.phone-app.map-focus .map-panel {
  min-height: min(720px, var(--app-height));
}

.phone-app.map-focus .map-panel::before,
.phone-app.map-focus .map-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
}

.phone-app.map-focus .map-panel::before {
  top: 50%;
  z-index: 455;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(7, 21, 34, .84);
  box-shadow: 0 0 0 12px rgba(32, 119, 242, .14), 0 12px 24px rgba(7, 18, 32, .24);
  transform: translate(-50%, -50%);
}

.phone-app.map-focus .map-panel::after {
  top: calc(50% - 64px);
  z-index: 456;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 10px;
  background: var(--accent);
  color: var(--black);
  font-size: 0;
  font-weight: 950;
  box-shadow: 0 20px 40px rgba(7, 18, 32, .34);
  transform: translate(-50%, 0) rotate(-45deg);
  animation: pinHover 1.05s ease-in-out infinite;
}

.phone-app.map-focus.pin-origin .map-panel::after {
  background: var(--blue);
  color: #fff;
}

.phone-app.map-focus .map-panel .route-point-icon {
  opacity: 0;
}

@keyframes pinHover {
  0%, 100% {
    transform: translate(-50%, 0) rotate(-45deg);
  }

  50% {
    transform: translate(-50%, -7px) rotate(-45deg);
  }
}

.phone-app.map-focus .request-panel {
  pointer-events: none;
  transform: translateY(calc(100% + 16px));
  opacity: .08;
}

.phone-app.map-focus .map-toolbar {
  transform: translateY(-8px);
}

.pin-adjust-panel {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 36px rgba(17, 24, 39, .28);
  pointer-events: auto;
}

.phone-app.map-focus .pin-adjust-panel {
  display: flex;
}

.pin-adjust-panel div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pin-adjust-panel span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pin-adjust-panel strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.pin-adjust-actions {
  display: flex !important;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.pin-adjust-panel button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 950;
}

#cancelPinAdjust {
  background: #e2e8f0;
  color: #0f172a;
}

#confirmPinAdjust {
  background: #c8102e;
  color: #fff;
  box-shadow: 0 12px 24px rgba(200, 16, 46, .28);
}

.sheet-handle {
  width: 50px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #cfd8e5;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.route-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d7e3ef;
  border-radius: 20px;
  background: rgba(248, 251, 254, .96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), var(--shadow-sm);
}

.route-box label {
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 20px;
}

.route-box label::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.route-box label + label::before {
  background: var(--accent);
}

.inline-location-btn {
  justify-self: start;
  min-height: 30px;
  border: 0;
  border-radius: 11px;
  padding: 0 12px;
  background: #e8f0ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.destination-search-btn {
  min-height: 38px;
  border: 0;
  border-radius: 13px;
  padding: 0 14px;
  background: linear-gradient(135deg, #2d8cff, #1256cc);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 11px 22px rgba(32, 119, 242, .22);
}

.destination-search-btn.confirmed,
.destination-search-btn:disabled.confirmed {
  background: linear-gradient(135deg, #13c995, #057253);
  color: #fff;
  cursor: default;
  opacity: 1;
  box-shadow: 0 11px 22px rgba(19, 201, 149, .2);
}

.route-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.place-suggestions {
  display: none;
  gap: 6px;
}

.place-suggestions.active {
  display: grid;
}

.place-suggestions button {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.place-suggestions button:hover {
  border-color: var(--blue);
  background: #f4f8ff;
}

.place-suggestions .maps-search-option {
  border-color: rgba(36, 107, 254, .32);
  background: #eef4ff;
}

.place-suggestions .direct-search-option {
  border-color: rgba(21, 151, 111, .34);
  background: #edf8f4;
}

.place-suggestions strong {
  font-size: 12px;
}

.place-suggestions span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.route-box textarea,
.admin-panel input,
.admin-panel select {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid #cfd8e3;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  outline: none;
  resize: vertical;
}

.trip-metrics,
.fare-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.trip-metrics {
  grid-template-columns: repeat(3, 1fr);
}

.fare-card {
  grid-template-columns: 1fr 1fr;
}

.trip-metrics div,
.fare-card div {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.trip-metrics strong {
  font-size: 16px;
}

.fare-card strong {
  font-size: 25px;
}

.fare-stepper {
  display: grid !important;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.fare-stepper strong {
  text-align: center;
}

.fare-stepper button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #e2ebf6);
  color: #071624;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(7, 22, 36, .12);
}

.fare-stepper button:disabled {
  background: #e5e7eb;
  color: #9aa3b2;
}

.primary-action {
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #14b8a6, #13c995 72%, #057253);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(19, 201, 149, .22), inset 0 1px 0 rgba(255,255,255,.28);
}

.trip-call-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 30px rgba(8, 10, 15, .16);
}

.trip-call-actions .primary-action,
.trip-call-actions .secondary-action {
  min-height: 56px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.trip-call-actions .call-start-action {
  background: linear-gradient(135deg, #14b8a6, #e93b3b 70%, #9c1420);
  color: #fff;
}

.trip-call-actions .cancel-trip-action {
  border-left: 1px solid rgba(255, 255, 255, .45);
  background: linear-gradient(135deg, var(--red), #b80f19);
  color: #fff;
}

.trip-call-actions .cancel-trip-action:disabled {
  background: #e5e7eb;
  color: #8a94a3;
}

.status-message {
  min-height: 38px;
  margin: 10px 2px 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.proposal-limit-label {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.request-item,
.driver-card,
.driver-board,
.admin-card,
.admin-panel {
  border: 1px solid rgba(214, 224, 233, .82);
  border-radius: 18px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 16px 42px rgba(7, 18, 32, .09);
}

.service-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.service-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.service-heading strong {
  font-size: 14px;
}

.service-toggle {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.service-toggle .service-option {
  position: relative;
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #d8e4ef;
  border-radius: 22px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  text-align: left;
}

.service-toggle .service-option.active {
  border-color: rgba(233, 39, 47, .45);
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,248,243,.98));
  box-shadow: 0 14px 28px rgba(233, 39, 47, .14), inset 0 1px 0 rgba(255,255,255,.9);
}

.service-toggle .service-option:not(.active) {
  background: #f8fafc;
  opacity: .72;
}

.service-toggle .service-option.active::after {
  content: "Activo";
  position: absolute;
  top: 8px;
  right: 10px;
  border-radius: 9px;
  padding: 3px 8px;
  background: linear-gradient(135deg, #14b8a6, var(--red));
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.service-car {
  width: 48px;
  height: 30px;
  display: block;
  border-radius: 22px 22px 10px 10px;
  background: linear-gradient(#f9fbff 0 58%, #aeb9c8 59%);
  position: relative;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.1);
}

.service-car::before,
.service-car::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--black);
}

.service-car::before {
  left: 7px;
}

.service-car::after {
  right: 7px;
}

.service-car.collective {
  background: linear-gradient(#eaf7ff 0 58%, var(--blue) 59%);
}

.service-mode-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pax-icons {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  line-height: 0;
  color: #c8102e;
}

.pax-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.pax-icons.pax-3 svg {
  width: 13px;
  height: 13px;
}

.pax-icons.pax-3 svg:nth-child(2) {
  width: 15px;
  height: 15px;
  margin: 0 -1px;
}

.service-option.active .pax-icons {
  color: #fff;
}

.service-option strong,
.service-option small {
  display: block;
}

.service-option strong {
  font-size: 17px;
}

.service-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.service-option em {
  color: var(--ink);
  font-style: normal;
  font-size: 18px;
  font-weight: 950;
}

.proposal-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.proposal-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.proposal-item {
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 8px;
  background: #fff;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.proposal-item.muted {
  opacity: .68;
}

.proposal-item.selected {
  border-color: rgba(37, 99, 235, .65);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.proposal-item:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
}

.proposal-item > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111318;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.proposal-item strong,
.proposal-item small {
  display: block;
}

.proposal-item strong {
  font-size: 13px;
}

.proposal-item small,
.proposal-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.proposal-item em {
  font-style: normal;
  font-weight: 950;
  color: var(--blue);
}

.request-receipt {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(22, 163, 127, .35);
  border-radius: 14px;
  background: #ecfdf5;
  color: #064e3b;
}

.request-receipt[hidden] {
  display: none !important;
}

.request-receipt strong,
.request-receipt span {
  display: block;
}

.request-receipt strong {
  font-size: 16px;
  font-weight: 850;
}

.request-receipt-folio {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #047857 !important;
  letter-spacing: 0.02em;
}

.request-receipt span {
  font-size: 12px;
  font-weight: 700;
}

.passenger-notified-taxis {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.passenger-notified-taxis strong {
  font-size: 12px;
  margin-bottom: 6px;
}

.passenger-notified-taxis ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.passenger-notified-taxis li {
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
}

.request-check-hint {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 650;
  color: #047857;
}

.request-receipt-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.request-receipt button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: #065f46;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.request-receipt button:last-child {
  background: #134e4a;
}

.driver-confirmations {
  display: grid !important;
  gap: 8px;
}

.confirmation-waiting,
.confirmation-heading,
.driver-confirmation-card {
  display: grid !important;
  gap: 4px;
  border: 1px solid rgba(16, 168, 120, .22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .8);
}

.confirmation-heading {
  background: rgba(37, 99, 235, .08);
  color: #0f2f6f;
}

.driver-confirmation-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.driver-confirmation-card div {
  display: grid !important;
  gap: 3px;
}

.driver-confirmation-card button {
  min-width: 140px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #042f2e;
}

.request-state {
  display: inline-block;
  margin-top: 4px;
  color: #087957;
  font-weight: 950;
}

.request-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.request-item h3 {
  margin: 0;
  font-size: 17px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.badge.private {
  background: var(--green);
}

.badge.collective {
  background: var(--teal);
}

.badge.full {
  background: var(--red);
}

.request-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-actions button {
  flex: 1;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  font-weight: 900;
}

.request-actions button.accept {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.request-actions button.accept:disabled {
  border-color: rgba(16, 168, 120, .26);
  background: #dff8ee;
  color: #087957;
  cursor: default;
}

.driver-counter-fare {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  gap: 4px 10px;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.driver-counter-fare span {
  font-weight: 800;
  font-size: .9rem;
}

.driver-counter-fare input {
  grid-row: span 2;
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--green);
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
}

.driver-counter-fare small {
  opacity: .75;
  font-size: .8rem;
}

.driver-counter-fare.sent strong {
  justify-self: end;
  font-size: 1.2rem;
  color: #087957;
}

.fare-kind-note {
  display: block;
  margin: 6px 0;
  font-weight: 800;
  color: #9a5b00;
}

.fare-kind-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.fare-kind-toggle[hidden] {
  display: none;
}

.fare-kind-toggle button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  font-weight: 800;
}

.fare-kind-toggle button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.fare-kind-toggle button:disabled {
  opacity: .6;
}

.fare-kind-toggle small {
  grid-column: 1 / -1;
  opacity: .75;
  font-size: .8rem;
}

.driver-confirmation-card.counter-offer {
  border-color: #f0a020;
}

.counter-offer-note {
  display: block;
  margin-top: 4px;
  font-weight: 800;
  color: #9a5b00;
}

.partner-invite-card {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.partner-invite-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: center;
}

.partner-invite-qr img {
  display: block;
  width: 100%;
  max-width: 180px;
  border-radius: 10px;
  background: #fff;
  image-rendering: pixelated;
}

.partner-invite-info {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.partner-invite-info code {
  display: block;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  font-size: .8rem;
  word-break: break-all;
}

.partner-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-invite-actions button {
  flex: 1 1 140px;
  min-height: 42px;
  border: 1px solid var(--green);
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.partner-invite-actions button:disabled {
  opacity: .5;
}

@media (max-width: 560px) {
  .partner-invite-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.request-actions button.reject {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f4;
}

.rating-dialog label,
.rating-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rating-dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.rating-stars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.rating-stars button {
  min-height: 48px;
  border: 1px solid #d6dee9;
  border-radius: 10px;
  background: #f3f6fa;
  color: #aeb8c5;
  font-size: 30px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.rating-stars button.active {
  border-color: rgba(13, 148, 136, .48);
  background: #ecfdf8;
  color: #0f766e;
}

.rating-stars[data-tone="good"] button.active {
  border-color: rgba(16, 168, 120, .46);
  background: #ecfbf5;
  color: var(--green);
}

.driver-stage {
  grid-template-columns: minmax(340px, 500px) minmax(360px, 1fr);
  gap: 22px;
  align-items: start;
}

.driver-phone {
  min-height: 820px;
  background: #0b1018;
}

.driver-map-wrap {
  position: relative;
  height: 520px;
  margin: 12px 12px 0;
  overflow: hidden;
  background: #d9e7ef;
  border-radius: 32px;
  isolation: isolate;
  box-shadow: 0 18px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.35);
}

#driverMap {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

#realMap,
#driverMap {
  overflow: hidden;
}

#driverMap .leaflet-container,
#driverMap .leaflet-pane,
#driverMap .leaflet-map-pane,
#driverMap .leaflet-tile-pane {
  border-radius: inherit;
}

.driver-incoming-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .22), rgba(16, 168, 120, .16)),
    rgba(255,255,255,.08);
}

.driver-incoming-summary span,
.driver-incoming-summary small {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 850;
}

.driver-incoming-summary strong {
  color: #fff;
  font-size: 18px;
}

.driver-incoming-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.driver-incoming-summary em {
  color: #35e0a4;
  font-style: normal;
  font-size: 20px;
  font-weight: 950;
}

.driver-map-card {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  z-index: 500;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.8);
}

.driver-map-card span,
.driver-map-card strong {
  display: block;
}

.driver-map-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.driver-map-card strong {
  margin-top: 2px;
  font-size: 15px;
}

.driver-map-card button {
  min-height: 32px;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--blue), #1264dc);
  color: #fff;
  font-weight: 900;
}

.driver-card {
  margin: -28px 14px 14px;
  padding: 12px;
  position: relative;
  z-index: 5;
  border-color: rgba(40, 164, 255, .18);
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), transparent 32%),
    linear-gradient(180deg, #0e2135, #07131f);
  color: #fff;
}

.driver-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.08);
}

.driver-wallet span,
.driver-wallet strong {
  display: block;
}

.driver-wallet span {
  color: #b9c7d8;
  font-size: 12px;
  font-weight: 900;
}

.driver-wallet strong {
  margin-top: 2px;
  font-size: 19px;
}

.driver-wallet button {
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--red), #b80f19);
  color: #fff;
  font-weight: 950;
}

.driver-active-trip {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(53, 224, 164, .24);
  border-radius: 12px;
  background: rgba(7, 19, 31, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.driver-active-trip[hidden] {
  display: none;
}

.driver-active-heading span,
.driver-active-heading strong,
.driver-trip-row span,
.driver-trip-row strong,
.driver-trip-row em {
  display: block;
}

.driver-active-heading span,
.driver-trip-row span,
.driver-trip-row em,
.driver-active-message {
  color: #b9c7d8;
  font-size: 12px;
  font-weight: 850;
}

.driver-active-heading strong {
  margin-top: 3px;
  font-size: 15px;
}

.driver-active-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.driver-active-stats span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
  color: #f7fbff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.driver-trip-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
}

.driver-trip-row strong {
  color: #fff;
  font-size: 13px;
}

.driver-trip-row button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #042f2e;
  font-size: 12px;
  font-weight: 950;
}

.driver-stop-list {
  margin: 0;
  padding-left: 22px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 850;
}

.payment-gateway {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(8, 10, 15, .55);
}

.payment-gateway.active {
  display: grid;
}

.payment-dialog {
  position: relative;
  width: min(100%, 390px);
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.payment-dialog span,
.payment-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.payment-dialog strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.payment-dialog p {
  margin: 10px 0 0;
  color: #475467;
  font-weight: 750;
  line-height: 1.35;
}

.register-dialog {
  width: min(100%, 640px);
  max-height: min(92vh, 820px);
  overflow: auto;
}

/* Título / textos del modal (afuera de los campos): negrita normal */
.register-dialog > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.register-dialog > strong {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.register-dialog > p {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: #667085;
  line-height: 1.35;
}

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

.register-role-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.register-role-cards button {
  min-height: 58px;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  background: #f8fbfe;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  gap: 3px;
  padding: 9px 8px;
  text-align: center;
}

.register-role-cards button span {
  font-size: 10px;
  font-weight: 500;
  color: #7a8794;
}

.register-role-cards button.active {
  background: var(--black, #111318);
  border-color: var(--black, #111318);
  color: #fff;
}

.register-role-cards button.active span {
  color: #d7e3ef;
}

/* Etiquetas de cada cuadro: negrita normal (no gris delgado) */
.register-form > label,
.register-block > label {
  display: grid !important;
  gap: 4px !important;
  color: var(--ink, #111318) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

/* Texto tip / placeholder DENTRO de cada cuadro */
.register-form input,
.register-form textarea,
.register-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.register-form input::placeholder,
.register-form textarea::placeholder {
  color: #a8b2bd !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  opacity: 1;
}

.register-form textarea {
  resize: vertical;
}

.register-span,
.register-block,
.register-form .terms-check,
.register-form .primary-action {
  grid-column: 1 / -1;
}

.register-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 12px;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  background: #f8fbfe;
}

.register-block[hidden] {
  display: none !important;
}

.register-block-title,
.register-hint {
  grid-column: 1 / -1;
  margin: 0;
}

.register-block-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ink, #111318) !important;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}

/* Solo ayuda: tip debajo / placeholders grises delgados */
.register-hint {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #9aa5b1 !important;
  line-height: 1.4;
}

.register-file {
  display: grid !important;
  gap: 6px !important;
  align-content: start;
}

.register-file input[type="file"] {
  min-height: 0;
  padding: 8px;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
}

.register-file small {
  font-size: 11px;
  font-weight: 400;
  color: #9aa5b1;
  line-height: 1.3;
}

.register-form .terms-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  background: #f8fbfe;
  line-height: 1.35;
  font-size: 12px;
  font-weight: 500;
  color: #6b7a88;
}

.register-form .terms-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
}

#registerMessage.status-message {
  font-size: 12px;
  font-weight: 500;
  color: #6b7a88;
}

.register-form .terms-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
}

.payment-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--black);
  font-size: 20px;
  font-weight: 950;
}

.payment-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.payment-summary div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.payment-summary strong {
  font-size: 18px;
}

.wallet-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.wallet-methods button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.wallet-methods button.active {
  border-color: rgba(16, 168, 120, .42);
  background: #ecfbf5;
  color: var(--green);
}

.wallet-method-hint {
  min-height: 36px;
  font-size: 12px;
}

.secondary-action {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--black);
  font-weight: 950;
}

.cancel-dialog {
  display: grid;
  gap: 12px;
}

.cancel-dialog label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.cancel-dialog select,
.cancel-dialog textarea,
.cancel-dialog input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.cancel-dialog small {
  color: var(--muted);
  font-weight: 800;
}

.primary-action.danger {
  background: var(--red);
}

.cancel-trip-action {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid #ffd0d0;
  background: #fff5f4;
  color: var(--red);
  font-weight: 950;
}

.cancel-trip-action:disabled {
  opacity: .55;
  cursor: not-allowed;
}

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

.analytics-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.analytics-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.analytics-grid strong {
  font-size: 24px;
}

.heatmap-preview {
  position: relative;
  min-height: 180px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(17, 19, 24, .06) 1px, transparent 1px),
    linear-gradient(rgba(17, 19, 24, .06) 1px, transparent 1px),
    #eef5f8;
  background-size: 42px 42px;
}

.heatmap-preview .heat {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 75, 75, .75), rgba(247, 201, 72, .42) 45%, transparent 70%);
}

.heat-one {
  left: 18%;
  top: 22%;
}

.heat-two {
  right: 18%;
  top: 12%;
}

.heat-three {
  left: 46%;
  bottom: 2%;
}

.hot-zone-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

.hot-zone-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 45, 45, .24);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #fff5f5);
}

.hot-zone-item strong {
  display: block;
  color: #b80f19;
  font-size: 15px;
}

.hot-zone-item span {
  color: #475467;
  font-size: 12px;
  font-weight: 850;
}

.hot-zone-item button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--red), #b80f19);
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
}

.hot-zone-log {
  margin-top: 0;
}

.wallet-message {
  margin: 8px 2px 0;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.wallet-message.compact {
  color: #9fb0c4;
}

.driver-switches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.driver-switches button {
  min-height: 38px;
  border-radius: 13px;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.09);
  color: #cbd5e1;
}

.driver-switches button.active {
  background: linear-gradient(135deg, var(--red), #b80f19);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 45, 45, .22);
}

.driver-card label,
.admin-panel label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: #344054;
  font-weight: 900;
}

.driver-card label {
  color: #dce7f4;
}

.driver-card input,
.driver-card select {
  width: 100%;
  accent-color: var(--red);
}

.driver-card select {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.09);
  color: #f8fafc;
  font-weight: 900;
}

.driver-card select option {
  color: #0f172a;
}

.seat-manual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.seat-manual-actions button {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 0 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.seat-manual-actions button:first-child {
  background: linear-gradient(135deg, var(--red), #b80f19);
}

.seat-manual-actions button:last-child {
  background: linear-gradient(135deg, var(--green), #087957);
}

.driver-card .panel-heading span {
  color: #b9c7d8;
}

.driver-card .panel-heading strong,
.driver-card .privacy-note {
  color: #fff;
}

.seat-readout {
  margin-top: 10px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
}

.seat-readout strong {
  display: block;
  font-size: 28px;
}

.seat-readout span {
  color: #b9c7d8;
  font-weight: 900;
}

.driver-board {
  padding: 18px;
}

.request-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.request-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.admin-grid {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 18px;
  position: relative;
  min-height: calc(var(--app-height) - 116px);
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 6%, rgba(19,201,149,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,250,252,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.module-role-banner {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 4px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 24, 40, 0.08);
}

.module-role-banner > div {
  display: grid;
  gap: 2px;
}

.module-role-banner span {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}

.module-role-banner strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.module-role-banner p {
  margin: 0;
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 0.88;
}

.operator-banner {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(8, 145, 178, 0.05));
  border-color: rgba(8, 145, 178, 0.22);
}

.admin-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.1), rgba(51, 65, 85, 0.04));
  border-color: rgba(15, 23, 42, 0.16);
}

.partner-banner {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.12), rgba(217, 119, 6, 0.05));
  border-color: rgba(180, 83, 9, 0.22);
}

.role-panels-host {
  display: contents;
}

.operator-view .admin-tabs {
  grid-column: 1 / -1;
}

.pasarela-form {
  display: grid;
  gap: 16px;
}

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

.pasarela-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: #344054;
}

.pasarela-form input,
.pasarela-form select,
.pasarela-form textarea {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.pasarela-form textarea {
  min-height: 88px;
  resize: vertical;
}

.pasarela-form small {
  font-weight: 500;
  color: #667085;
}

.pasarela-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.pasarela-check {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  grid-template-columns: none !important;
}

.pasarela-check input {
  min-height: auto;
  width: 18px;
  height: 18px;
}

@media (max-width: 720px) {
  .pasarela-grid {
    grid-template-columns: 1fr;
  }
}

.admin-operation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.request-admin-heading {
  margin-top: 6px;
}

.admin-request-list {
  margin-bottom: 18px;
}

.admin-request-item {
  grid-template-columns: minmax(0, 1fr) auto;
  border-left: 4px solid var(--accent);
}

.admin-request-empty {
  grid-template-columns: minmax(0, 1fr);
}

.admin-card {
  position: relative;
  min-height: 138px;
  display: grid;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 20px;
  border-top: 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,.99), rgba(247,250,252,.98));
}

.admin-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #13c995, #14b8a6);
}

.admin-card strong {
  font-size: 36px;
  color: #071624;
}

.admin-panel {
  grid-column: span 2;
  padding: 18px;
}

.admin-panel[data-admin-section="operacion"] {
  grid-column: span 4;
}

.partner-admin-panel,
.partner-view .admin-panel {
  grid-column: span 4;
}

.partner-summary-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.partner-form,
.partner-session-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.partner-session-bar {
  grid-template-columns: minmax(240px, 420px) auto;
  align-items: center;
  justify-content: start;
}

.partner-form label,
.partner-session-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.partner-form input,
.partner-session-bar select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.partner-session-bar strong {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: #e8f0ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.partner-readonly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.partner-admin-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.partner-detail-card .driver-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.partner-code-panel {
  display: grid;
  gap: 14px;
}

.partner-code-panel.hidden {
  display: none;
}

.partner-qr-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.partner-qr-box {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #f8fafc;
}

.partner-qr-box img {
  width: 100%;
  max-width: 112px;
  aspect-ratio: 1;
}

.partner-qr-box span,
.partner-qr-card span,
.partner-qr-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.partner-qr-card strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 28px;
}

.admin-tabs {
  grid-column: span 4;
  display: flex;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(215, 222, 232, .72);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.admin-tabs button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 16px;
  background: transparent;
  color: #344054;
  font-weight: 950;
  white-space: nowrap;
}

.admin-tabs button.active {
  border-color: rgba(19, 201, 149, .24);
  background: linear-gradient(135deg, #ffffff, #ecfbf6);
  color: #087957;
  box-shadow: var(--shadow-sm);
}

[data-admin-section] {
  display: none;
}

[data-admin-section].active {
  display: block;
}

[data-operator-section] {
  display: none;
  grid-column: 1 / -1;
}

[data-operator-section].active {
  display: block;
}

.operator-chat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
  min-height: 420px;
}

.operator-chat-list-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.operator-chat-list-tabs button {
  flex: 1;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  background: #fff;
}

.operator-chat-list-tabs button.active {
  background: #0e7490;
  color: #fff;
  border-color: #0e7490;
}

.operator-chat-thread {
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid #e7edf2;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  min-height: 360px;
}

.operator-chat-thread .chat-messages {
  padding: 14px;
  overflow: auto;
  max-height: 420px;
}

.driver-front-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
}

.driver-front-chip {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-weight: 800;
  font-size: 12px;
}

.driver-front-chip-chat {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
}

.driver-menu-fab {
  left: 12px !important;
  right: auto !important;
  top: 12px !important;
  z-index: 6;
}

body.driver-hub-open {
  overflow: hidden;
}

.driver-user-hub .driver-support-chat {
  border: 1px solid #e7edf2;
  background: #fff;
  margin: 0;
}

.driver-user-hub .driver-wallet {
  margin-top: 8px;
}

.passenger-support-chat {
  border: 1px solid #e7edf2;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.passenger-support-chat .chat-messages {
  max-height: 280px;
  overflow: auto;
  margin: 10px 0;
}

.passenger-ops-help {
  margin-top: 14px;
  border: 1px dashed #d5dee6;
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fafb;
  color: #5b6b78;
}

.passenger-ops-help > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.92rem;
  color: #334155;
  list-style: none;
}

.passenger-ops-help > summary::-webkit-details-marker {
  display: none;
}

.passenger-ops-help[open] {
  background: #fff;
  border-style: solid;
  border-color: #e7edf2;
}

.passenger-ops-help .privacy-note {
  margin: 8px 0 10px;
}

.passenger-ops-help.has-unread {
  border-color: #b91c1c;
  background: #fff5f5;
}

.passenger-ops-help.has-unread > summary {
  color: #b91c1c;
}

@media (max-width: 900px) {
  .operator-chat-layout {
    grid-template-columns: 1fr;
  }
}

.admin-zone-form {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 8px;
  margin-top: 14px;
}

.admin-zone-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(7, 18, 32, .05);
}

.admin-list-item strong,
.admin-list-item span,
.admin-list-item small {
  display: block;
}

.admin-list-item strong {
  color: var(--ink);
  font-size: 15px;
}

.admin-list-item span,
.admin-list-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-list-item em {
  color: var(--green);
  font-style: normal;
  font-weight: 950;
}

.admin-list-item button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 10px;
  background: var(--soft);
  color: var(--black);
  font-weight: 900;
}

.admin-list-item button:not(:disabled):first-of-type {
  background: var(--green);
  color: #fff;
}

.admin-list-item button:disabled {
  opacity: .45;
}

.doc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.doc-chip {
  min-height: 30px !important;
  border-radius: 999px !important;
  padding: 0 10px !important;
  background: #e8f0ff !important;
  color: var(--blue) !important;
}

.document-viewer {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.document-preview {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #98a2b3;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(36,107,254,.08), rgba(18,170,122,.08)),
    var(--soft);
  color: var(--ink);
  text-align: center;
  font-weight: 950;
}

.document-preview-link {
  display: block;
  min-height: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f172a;
}

.document-preview-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #0f172a;
  image-orientation: from-image;
}

.document-ocr-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  display: grid;
  gap: 4px;
}

.document-ocr-box strong {
  color: #166534;
  font-size: 13px;
}

.document-ocr-hint {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.document-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.doc-chip.has-file {
  border: 1px solid #86efac !important;
  background: #f0fdf4 !important;
  color: #166534 !important;
}

.doc-chip.doc-state-por-revisar {
  border: 1px solid #fbbf24 !important;
  background: #fffbeb !important;
}

.doc-chip.doc-state-aprobado {
  border: 1px solid #4ade80 !important;
  background: #ecfdf5 !important;
}

.doc-chip small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  opacity: .85;
}

.document-viewer strong,
.document-viewer span,
.document-viewer small {
  display: block;
}

.document-viewer span,
.document-viewer small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.driver-directory-panel {
  grid-column: span 4;
}

.driver-searchbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.driver-searchbar label {
  display: grid;
  gap: 4px;
  flex: 1 1 240px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.driver-searchbar input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.driver-searchbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.driver-searchbar-actions button,
.driver-searchbar-actions strong {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  white-space: nowrap;
}

.driver-searchbar input,
.driver-form input,
.driver-form select,
.admin-edit-form input,
.admin-edit-form select {
  min-height: 34px;
  border: 1px solid #c7d1de;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  color: #111318;
  font-size: 13px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.driver-searchbar button,
.driver-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 10px;
  background: var(--accent);
  color: var(--black);
  font-weight: 950;
}

.driver-workbench {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #d6dee9;
  border-radius: 18px;
  overflow: visible;
  background: #f7f9fc;
}

.driver-table-wrap {
  max-height: 310px;
  overflow: auto;
  background: #fff;
}

.driver-grid {
  margin: 0;
  border-radius: 0;
  font-size: 12px;
}

.driver-grid th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 6px 8px;
  background: #eef3f8;
  color: #111318;
  border-right: 1px solid #c8ced8;
}

.driver-grid td {
  padding: 5px 8px;
  border-right: 1px solid #d4d9e2;
  background: #fff;
  white-space: nowrap;
}

.driver-grid tr.selected td {
  background: #1f6fe5;
  color: #fff;
}

.driver-detail-card {
  border-top: 1px solid #d6dee9;
  background: #fff;
}

.driver-tabs-mini {
  display: flex;
  gap: 4px;
  padding: 9px 10px 0;
  border-bottom: 1px solid #d6dee9;
  background: linear-gradient(180deg, #fbfcfe 0%, #edf2f7 100%);
  overflow-x: auto;
}

.driver-tabs-mini button {
  min-height: 34px;
  border: 1px solid #c2ccd9;
  border-bottom-color: #aeb9c8;
  border-radius: 10px 10px 0 0;
  padding: 0 12px;
  background: #dce5ee;
  color: #344054;
  font-weight: 800;
  white-space: nowrap;
}

.driver-tabs-mini button.active {
  font-weight: 950;
  border-color: #0b7d5c;
  border-bottom-color: #fff;
  background: #fff;
  color: #0b7d5c;
  box-shadow: 3px -3px 8px rgba(21, 151, 111, .2);
  position: relative;
  z-index: 1;
}

.driver-form,
.admin-edit-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 14px 16px;
}

.driver-form label,
.admin-edit-form label {
  display: grid;
  gap: 4px;
  color: #111318;
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
}

.admin-edit-form .span-3 { grid-column: span 3; }
.admin-edit-form .span-4 { grid-column: span 4; }
.admin-edit-form .span-5 { grid-column: span 5; }
.admin-edit-form .span-6 { grid-column: span 6; }
.admin-edit-form .span-8 { grid-column: span 8; }
.admin-edit-form .span-9 { grid-column: span 9; }
.admin-edit-form .span-12 { grid-column: span 12; }

.partner-detail-card .driver-form,
.partner-detail-card .admin-edit-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .admin-edit-form .span-3,
  .admin-edit-form .span-4,
  .admin-edit-form .span-5,
  .admin-edit-form .span-6,
  .admin-edit-form .span-8,
  .admin-edit-form .span-9 {
    grid-column: span 12;
  }
}

.driver-doc-layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) 1.2fr;
  gap: 14px;
  padding: 0 16px 16px;
}

.driver-doc-layout.hidden,
.driver-form.hidden,
.vehicle-form.hidden,
.detail-history-panel.hidden {
  display: none;
}

.vehicle-form {
  display: grid;
  grid-template-columns: 180px repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
}

.vehicle-form label {
  display: grid;
  gap: 4px;
  color: #111318;
  font-size: 12px;
  font-weight: 850;
}

.vehicle-form input,
.vehicle-form select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #c8ced8;
  border-radius: 10px;
  padding: 0 8px;
  background: #fff;
  color: #111318;
}

.vehicle-photo-box {
  grid-row: span 3;
  display: grid;
  gap: 10px;
  align-content: start;
}

.vehicle-photo-preview {
  min-height: 128px;
  display: grid;
  place-items: center;
  border: 1px dashed #aeb7c5;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(36, 107, 254, .08), rgba(22, 163, 127, .12)),
    #f7f8fa;
  color: var(--muted);
  font-weight: 950;
  text-align: center;
}

.detail-history-panel {
  padding: 0 16px 16px;
}

.driver-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.driver-searchbar .refresh-action,
.driver-searchbar-actions .refresh-action,
button.refresh-action {
  background: #16a34a !important;
  color: #fff !important;
  border: 1px solid #15803d !important;
  font-weight: 700;
  min-height: 40px;
  min-width: 0;
  width: auto !important;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
}

.driver-searchbar .refresh-action:hover,
.driver-searchbar-actions .refresh-action:hover,
button.refresh-action:hover {
  background: #15803d !important;
  color: #fff !important;
}

.driver-searchbar .save-action,
.driver-searchbar-actions .save-action,
button.save-action {
  background: #15803d !important;
  color: #fff !important;
  border: 1px solid #166534 !important;
  font-weight: 700;
  min-height: 40px;
  min-width: 0;
  width: auto !important;
  padding: 0 16px;
  border-radius: 12px;
  cursor: pointer;
}

.driver-searchbar .save-action:hover,
.driver-searchbar-actions .save-action:hover,
button.save-action:hover {
  background: #166534 !important;
  color: #fff !important;
}

.driver-searchbar .save-action:disabled,
.driver-searchbar-actions .save-action:disabled,
button.save-action:disabled {
  opacity: 0.55;
  cursor: wait;
}

.driver-searchbar .danger-action,
.driver-searchbar-actions .danger-action,
.driver-actions .danger-action,
button.danger-action {
  background: #be123c !important;
  color: #fff !important;
  border: 1px solid #9f1239 !important;
  font-weight: 700;
  min-height: 40px;
  min-width: 0;
  width: auto !important;
  max-width: max-content;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
  flex: 0 0 auto !important;
}

.driver-searchbar .danger-action:hover,
.driver-searchbar-actions .danger-action:hover,
.driver-actions .danger-action:hover,
button.danger-action:hover {
  background: #9f1239 !important;
  color: #fff !important;
}

.user-history-heading {
  margin-top: 16px;
}

.compact-history {
  max-height: 150px;
  overflow: auto;
}

.history-cell-list {
  display: grid;
  gap: 8px;
  max-height: 270px;
  overflow: auto;
}

.history-cell {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.history-cell time {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
}

.history-cell div {
  display: grid;
  gap: 3px;
}

.history-cell strong,
.history-cell span,
.history-cell small {
  overflow-wrap: anywhere;
}

.history-cell strong {
  color: var(--ink);
  font-size: 13px;
}

.history-cell span,
.history-cell small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.history-cell.empty {
  grid-template-columns: 1fr;
}

.privacy-note {
  margin: 10px 0 0;
  border-left: 3px solid var(--green);
  padding: 8px 10px;
  background: rgba(22, 163, 127, .08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-note {
  margin: 12px 0;
}

.immutable-history-item {
  border-left: 4px solid var(--green);
}

.table-action {
  min-height: 28px;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #0c1522;
  color: #fff;
}

td {
  background: #fff;
}

@media (max-width: 1100px) {
  .workspace-bar,
  .driver-stage,
  .admin-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .driver-stage {
    place-items: center;
  }

  .passenger-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    place-items: center;
  }

  .launch-panel {
    max-width: 720px;
    text-align: center;
  }

  .launch-actions {
    justify-content: center;
  }

  .driver-board {
    width: min(100%, 760px);
  }

  .admin-panel {
    grid-column: span 1;
  }

  .admin-panel[data-admin-section="operacion"] {
    grid-column: span 1;
  }

  .partner-admin-panel,
  .partner-view .admin-panel {
    grid-column: span 1;
  }

  .admin-operation-summary,
  .partner-summary-grid,
  .partner-readonly-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hot-zone-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    padding: 0;
  }

  .workspace-bar {
    display: none;
  }

  .partner-form,
  .partner-session-bar,
  .partner-summary-grid,
  .partner-readonly-grid {
    grid-template-columns: 1fr;
  }

  .view.active.passenger-stage {
    display: block !important;
    min-height: var(--app-height);
  }

  .passenger-stage::before,
  .passenger-stage::after,
  .launch-panel {
    display: none;
  }

  .phone-app,
  .driver-phone {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: var(--app-height);
    border: 0;
    border-radius: 0;
    background: var(--brand-navy);
    box-shadow: none;
  }

  /* Chofer: no forzar altura de viewport ni clip — el panel debe crecer y scrollear */
  .driver-phone {
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .driver-map-wrap {
    margin: 12px;
    border-radius: 28px;
  }

  .phone-app::before {
    top: 0;
  }

  .phone-status {
    position: relative;
    order: 0;
    color: #fff;
  }

  .mobile-home-top {
    order: 1;
    display: grid;
    gap: 22px;
    padding: 10px 24px 12px;
    color: #fff;
  }

  .mobile-home-nav {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 12px;
  }

  .mobile-home-nav strong {
    justify-self: center;
    color: #fff;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: 0;
  }

  .mobile-home-nav button {
    min-height: 38px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
  }

  .mobile-welcome {
    display: grid;
    gap: 3px;
  }

  .mobile-welcome strong,
  .mobile-welcome span {
    color: #fff;
    font-size: 20px;
    line-height: 1.18;
  }

  .mobile-welcome strong {
    font-weight: 950;
  }

  .request-panel {
    order: 2;
    margin-top: 0;
    padding: 0 24px 10px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .request-panel > .sheet-handle,
  .request-panel > .panel-heading,
  .request-panel > .privacy-note,
  .request-panel > .service-heading,
  .request-panel > .service-toggle,
  .trip-call-actions {
    display: none;
  }

  .route-box {
    gap: 10px;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .route-box label {
    min-height: 58px;
    padding: 10px 42px 9px 48px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
  }

  .route-box label::before {
    left: 14px;
    top: 23px;
    width: 18px;
    height: 18px;
    border-radius: 8px 8px 8px 2px;
    transform: rotate(-45deg);
  }

  .route-box label::after {
    content: "›";
    position: absolute;
    right: 15px;
    top: 17px;
    color: rgba(255, 255, 255, .78);
    font-size: 24px;
    line-height: 1;
  }

  .route-box label span {
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
  }

  .route-box textarea {
    min-height: 22px;
    border: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    overflow: hidden;
  }

  .destination-search-btn,
  .route-hint {
    display: none;
  }

  .inline-location-btn {
    justify-self: stretch;
    min-height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
  }

  .place-suggestions.active {
    margin-top: -4px;
    margin-bottom: 4px;
  }

  .mobile-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0 0;
  }

  .mobile-shortcuts button {
    min-height: 34px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
  }

  .map-panel {
    order: 3;
    min-height: 340px;
    margin: 8px 16px 0;
    overflow: hidden;
    border-radius: 8px;
  }

  .map-toolbar {
    top: 12px;
    left: 12px;
    right: 12px;
    grid-template-columns: 38px 1fr;
  }

  .map-toolbar div {
    min-height: 46px;
    border-radius: 8px;
  }

  .mobile-map-cta {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 16px;
    z-index: 430;
    display: block;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .24);
  }

  .mobile-map-cta:disabled {
    opacity: .72;
  }

  .trip-metrics,
  .fare-card {
    order: 4;
    margin: 10px 24px 0;
  }

  .request-panel .trip-metrics,
  .request-panel .fare-card,
  .request-panel .status-message {
    display: none;
  }

  .mobile-bottom-nav {
    order: 5;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-top: auto;
    padding: 8px 14px 10px;
    background: rgba(0, 0, 0, .12);
  }

  .mobile-bottom-nav button {
    min-height: 34px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 850;
  }

  .mobile-bottom-nav button.active {
    color: var(--red);
  }

  .phone-app.map-focus .map-panel {
    order: 1;
    margin: 0;
    border-radius: 0;
    min-height: var(--app-height);
  }

  .phone-app.map-focus .mobile-home-top,
  .phone-app.map-focus .request-panel {
    display: none;
  }

  .phone-app.map-focus .mobile-bottom-nav,
  .phone-app.map-focus .phone-status,
  .phone-app.map-focus .mobile-map-cta {
    display: none;
  }

  .pin-adjust-panel {
    left: 12px;
    right: 12px;
    bottom: 16px;
  }

}

@media (max-width: 560px) {
  .mobile-home-top,
  .mobile-shortcuts,
  .mobile-bottom-nav,
  .mobile-map-cta {
    display: none !important;
  }

  .phone-app {
    display: block;
    background: #f6f8fb;
  }

  .phone-status {
    position: absolute;
    z-index: 20;
    color: #071624;
  }

  .map-panel {
    min-height: 55vh;
    margin: 0;
    border-radius: 0;
  }

  .map-toolbar {
    top: 42px;
    left: 16px;
    right: 16px;
    grid-template-columns: 42px 1fr;
  }

  .map-toolbar div {
    min-height: 54px;
    border-radius: 18px;
  }

  .request-panel {
    display: block;
    margin-top: -64px;
    padding: 12px 17px 20px;
    border-radius: 32px 32px 0 0;
    background:
      linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,252,.99));
    box-shadow: 0 -22px 50px rgba(17, 24, 39, .18), inset 0 1px 0 rgba(255,255,255,.96);
  }

  .request-panel > .sheet-handle,
  .request-panel > .panel-heading,
  .request-panel > .privacy-note,
  .request-panel > .service-heading,
  .request-panel > .service-toggle,
  .trip-call-actions {
    display: flex;
  }

  .request-panel > .privacy-note {
    display: block;
  }

  .request-panel > .service-toggle,
  .trip-call-actions {
    display: grid;
  }

  .route-box {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #d7e3ef;
    border-radius: 20px;
    background: rgba(248, 251, 254, .96);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86), var(--shadow-sm);
  }

  .route-box label {
    min-height: auto;
    display: grid;
    gap: 4px;
    padding: 0 0 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .route-box label::before {
    left: 2px;
    top: 20px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    transform: none;
  }

  .route-box label::after {
    content: none;
  }

  .route-box label span {
    color: var(--muted);
    font-size: 12px;
  }

  .route-box textarea {
    min-height: 38px;
    border: 0;
    border-bottom: 1px solid #cfd8e3;
    color: var(--ink);
    font-size: 14px;
    overflow: auto;
  }

  .inline-location-btn,
  .destination-search-btn,
  .route-hint {
    display: block;
  }

  .inline-location-btn {
    justify-self: start;
    min-height: 30px;
    border-radius: 11px;
    background: #e8f0ff;
    color: var(--blue);
  }

  .destination-search-btn {
    min-height: 38px;
    border-radius: 13px;
    background: linear-gradient(135deg, #2d8cff, #1256cc);
  }

  .trip-metrics,
  .fare-card {
    grid-template-columns: 1fr 1fr;
    margin: 12px 0 0;
  }

  .request-panel .trip-metrics,
  .request-panel .fare-card,
  .request-panel .status-message {
    display: grid;
  }

  .request-panel .status-message {
    display: block;
  }

  .trip-metrics div:last-child {
    grid-column: span 2;
  }

  .phone-app.map-focus .map-panel {
    min-height: var(--app-height);
  }

  .phone-app.map-focus .request-panel {
    display: none;
  }

  .register-form,
  .register-block {
    grid-template-columns: 1fr;
  }

  .register-role-cards {
    grid-template-columns: 1fr;
  }
}

.download-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(19,201,149,.2), transparent 25%),
    radial-gradient(circle at 82% 4%, rgba(20,184,166,.18), transparent 24%),
    linear-gradient(145deg, #020509 0%, #071522 44%, #0b2a35 100%);
  background-size: auto;
}

.download-portal {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 34px;
  position: relative;
}

.download-portal::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 34vh;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.08));
  pointer-events: none;
}

.download-nav,
.download-hero,
.release-panel {
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow-lg);
}

.download-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(2,5,9,.94), rgba(7,21,34,.92), rgba(9,48,58,.9));
  color: #fff;
  backdrop-filter: blur(16px);
}

.download-brand,
.download-nav div,
.download-nav a {
  display: flex;
  align-items: center;
}

.download-brand {
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.download-brand strong,
.download-brand small {
  display: block;
}

.download-brand small {
  color: #cdd6e1;
  margin-top: 2px;
}

.download-nav div {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.download-nav a:not(.download-brand) {
  min-height: 38px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  padding: 0 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.download-hero {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: 34px;
  margin-top: 22px;
  padding: 42px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(2,5,9,.96), rgba(7,21,34,.84) 44%, rgba(7,21,34,.2) 100%),
    url("assets/brand-hero-premium.png") right center / cover no-repeat;
  overflow: hidden;
}

.download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(19,201,149,.16), transparent 40%),
    linear-gradient(0deg, rgba(2,5,9,.42), transparent 36%);
  pointer-events: none;
}

.download-hero > * {
  position: relative;
  z-index: 1;
}

.download-copy {
  color: #fff;
}

.download-copy h1 {
  max-width: 680px;
  margin: 14px 0 16px;
  font-size: clamp(46px, 7vw, 88px);
  line-height: .94;
  letter-spacing: 0;
}

.download-copy p {
  max-width: 590px;
  margin: 0;
  color: #e3edf6;
  font-size: 18px;
  line-height: 1.6;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.download-actions .primary-action,
.download-actions .secondary-action,
.release-panel .secondary-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 18px;
  text-decoration: none;
}

.register-download-action {
  background: linear-gradient(135deg, var(--green), #08765b);
}

.download-hint {
  margin-top: 14px !important;
  color: #b9c6d5 !important;
  font-size: 13px !important;
}

.download-phone {
  width: min(390px, 100%);
  justify-self: center;
  border: 10px solid rgba(7,21,34,.92);
  border-radius: 36px;
  background: #f5f8fb;
  box-shadow: 0 36px 110px rgba(0, 0, 0, .44), 0 0 60px rgba(19,201,149,.18);
  overflow: hidden;
}

.download-map-preview {
  position: relative;
  min-height: 390px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(32, 119, 242, .18), transparent 54%),
    linear-gradient(135deg, #dbe8f3, #f8fbfd);
  overflow: hidden;
}

.download-road {
  position: absolute;
  height: 46px;
  width: 560px;
  border: 8px solid rgba(255, 255, 255, .9);
  border-left: 0;
  border-right: 0;
  background: #293544;
  box-shadow: 0 20px 40px rgba(7, 21, 34, .16);
}

.road-a {
  left: -92px;
  top: 92px;
  transform: rotate(-24deg);
}

.road-b {
  left: -160px;
  top: 250px;
  transform: rotate(22deg);
}

.download-pin {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 5px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(7, 21, 34, .22);
  transform: rotate(-45deg);
}

.pin-a {
  top: 104px;
  left: 78px;
}

.pin-b {
  top: 208px;
  right: 82px;
  background: var(--green);
}

.pin-c {
  bottom: 70px;
  left: 142px;
  background: var(--red);
}

.download-map-preview strong {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  min-height: 54px;
  display: flex;
  align-items: center;
  border-radius: 16px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.download-trip-card {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: #fff;
}

.download-trip-card span,
.download-grid article span,
.release-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.download-trip-card strong,
.download-grid article strong,
.release-panel strong {
  color: var(--ink);
  font-size: 20px;
}

.download-trip-card small {
  color: var(--muted);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.download-grid article {
  display: grid;
  gap: 10px;
  min-height: 220px;
  border: 1px solid rgba(7,21,34,.1);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,252,.96));
  box-shadow: 0 22px 54px rgba(7,18,32,.12);
}

.download-grid article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.download-grid article a {
  align-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #071522, #09303a);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.release-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 22px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(20,184,166,.14), rgba(19,201,149,.08)),
    rgba(255, 255, 255, .96);
}

.release-panel p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .download-hero {
    grid-template-columns: 1fr;
    padding: 28px;
    background: linear-gradient(180deg, rgba(7, 21, 34, .98), rgba(10, 31, 49, .96) 58%, rgba(255, 255, 255, .94) 58%);
  }

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

  .release-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .download-portal {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .download-nav {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 18px;
  }

  .download-nav div,
  .download-nav a:not(.download-brand) {
    width: 100%;
  }

  .download-copy h1 {
    font-size: 44px;
  }

  .download-copy p {
    font-size: 15px;
  }

  .download-hero {
    min-height: auto;
    padding: 20px;
    border-radius: 22px;
  }

  .download-phone {
    border-width: 7px;
    border-radius: 28px;
  }

  .download-map-preview {
    min-height: 300px;
  }
}

/* =========================================================
   TAXIDRIVER GO-VER — MOBILE EXPERIENCE REFRESH 2026
   Visual layer only: preserves existing IDs, events and API logic.
   ========================================================= */
:root {
  --go-ink: #0b1220;
  --go-slate: #667085;
  --go-bg: #f3f6f8;
  --go-card: rgba(255,255,255,.96);
  --go-lime: #2dd4bf;
  --go-green: #12b76a;
  --go-accent: #14b8a6;
  --go-dark: #0b1117;
  --go-line: #e4e9ee;
  --go-radius: 24px;
  --go-shadow: 0 18px 50px rgba(15,23,42,.12);
}

/* Cleaner overall canvas */
body:not(.login-active) {
  background: linear-gradient(180deg,#eef3f5 0%,#f7f9fa 100%);
}
.workspace-bar {
  min-height: 68px;
  padding: 10px clamp(14px,2.4vw,28px);
  background: rgba(8,13,18,.95);
  border-bottom: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 10px 35px rgba(0,0,0,.18);
}
.workspace-bar .brand-mark { width:44px; height:44px; border-radius:14px; }
.workspace-bar .brand strong { font-size:18px; }
.workspace-bar .brand span { font-size:11px; opacity:.72; }
.role-tabs { padding:4px; border-radius:16px; background:rgba(255,255,255,.06); }
.role-tabs button { min-height:36px; border:0; border-radius:12px; background:transparent; }
.role-tabs button.active {
  background:#fff;
  color:#101828;
  box-shadow:0 7px 20px rgba(0,0,0,.2);
}
.auth-panel .download-link,
.auth-panel button { border-radius:12px; }

/* Sesión activa: ocultar Descargar / Instalar / Registrarse (solo queda Salir) */
body:not(.login-active) .auth-panel #openUserRegister,
body:not(.login-active) .auth-panel #pwaInstallBtnBar,
body:not(.login-active) .auth-panel #pwaInstallHelpBar {
  display: none !important;
}

/* Premium access gate */
body.login-active { background:#081018; }
body.login-active::before {
  content:""; position:fixed; inset:0; pointer-events:none;
  background:
    linear-gradient(180deg,rgba(4,9,14,.22),rgba(4,9,14,.8)),
    url("assets/brand-hero-premium.png") center/cover no-repeat;
  filter:saturate(.9) contrast(1.02);
}
.taxi-login-gate { position:relative; z-index:2; }
.taxi-login-shell {
  width:min(94vw,430px); border:1px solid rgba(255,255,255,.16); border-radius:28px;
  background:rgba(255,255,255,.97); box-shadow:0 35px 100px rgba(0,0,0,.45);
}
.taxi-login-brand { padding:34px 32px 27px; background:linear-gradient(145deg,#0a1118,#102431); }
.taxi-login-brand img { width:210px; margin-bottom:28px; }
.taxi-login-brand span { color:#bdfd5a; letter-spacing:.08em; }
.taxi-login-brand strong { font-size:32px; letter-spacing:-.04em; }
.taxi-login-form { padding:28px 32px 32px; gap:16px; }
.taxi-login-form input { min-height:52px; border-radius:14px; background:#f8fafb; }
.taxi-login-form .primary-action { min-height:52px; border-radius:14px; background:#111820; color:#fff; }
.taxi-login-form .secondary-action { min-height:48px; border-radius:14px; }

/* Passenger: map-first mobile card */
.passenger-stage { gap:24px; padding:24px; align-items:start; }
.launch-panel {
  border-radius:28px; overflow:hidden; box-shadow:var(--go-shadow);
  background:linear-gradient(150deg,#09121a 0%,#102b2a 65%,#183425 100%);
}
.phone-app {
  border-radius:32px; overflow:hidden; border:1px solid rgba(10,20,30,.08);
  box-shadow:0 30px 80px rgba(15,23,42,.2); background:#fff;
}
.mobile-home-top { background:linear-gradient(180deg,#fff,#f9fbfc); }
.mobile-home-nav button { border-radius:14px; }
.map-panel { background:#e7ecef; }
.map-canvas { min-height:330px; }
.request-panel { border-radius:28px 28px 0 0; box-shadow:0 -15px 45px rgba(16,24,40,.08); }
.route-box textarea { border-radius:14px; }
.fare-card { border-radius:20px; }
.primary-action { border-radius:16px; }
.mobile-bottom-nav { backdrop-filter:blur(18px); background:rgba(255,255,255,.92); }
.mobile-bottom-nav button { min-height:54px; }

/* DRIVER — dashboard becomes a true driver cockpit */
#driverView.driver-stage {
  width:min(1500px,100%); margin:0 auto; padding:22px;
  grid-template-columns:minmax(390px, .9fr) minmax(420px, 1.1fr);
  gap:22px; align-items:start;
}
.driver-phone,
.driver-board {
  border:1px solid rgba(16,24,40,.08);
  border-radius:30px;
  background:#fff;
  box-shadow:var(--go-shadow);
  overflow:hidden;
}
.driver-phone { position:sticky; top:90px; overflow:visible; }
.phone-status.dark {
  min-height:46px; padding:0 18px; background:#091017; color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.driver-status-badge {
  border-radius:999px !important; padding:6px 10px !important; font-size:10px !important;
  letter-spacing:.06em; text-transform:uppercase;
}
.driver-status-badge.offline { background:rgba(255,255,255,.1) !important; color:#e4e7ec !important; }
.driver-status-badge.online { background:rgba(167,244,50,.16) !important; color:#c9ff76 !important; }
.driver-map-wrap { min-height:350px; position:relative; }
#driverMap { min-height:350px; filter:saturate(.82) contrast(.98); }
.driver-map-wrap::after {
  content:""; position:absolute; inset:auto 0 0; height:110px; pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(6,12,18,.2));
}
.driver-map-card {
  left:16px !important; right:16px !important; bottom:16px !important; top:auto !important;
  display:grid; grid-template-columns:1fr auto; gap:4px 12px; align-items:center;
  border:1px solid rgba(255,255,255,.15) !important; border-radius:20px !important;
  padding:14px 15px !important; background:rgba(10,17,23,.88) !important; color:#fff !important;
  box-shadow:0 14px 40px rgba(0,0,0,.26) !important; backdrop-filter:blur(14px);
  z-index:5;
}
.driver-map-card span { grid-column:1; color:#cfd6dd !important; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.driver-map-card strong { grid-column:1; font-size:14px; }
.driver-map-card button {
  grid-column:2; grid-row:1/3; min-height:42px; border:0; border-radius:13px;
  padding:0 14px; background:#fff; color:#111820; font-weight:900;
}
.driver-card { padding:18px; background:#fff; }
.driver-incoming-summary { margin-bottom:12px; }
.driver-wallet {
  padding:17px 18px; border:0; border-radius:20px;
  background:linear-gradient(135deg,#101820,#18232d); color:#fff;
  box-shadow:0 14px 32px rgba(11,17,23,.18);
}
.driver-wallet span { color:#aeb8c2; }
.driver-wallet strong { font-size:28px; letter-spacing:-.03em; }
.driver-wallet button {
  min-height:42px; border:0; border-radius:13px; padding:0 14px;
  background:var(--go-accent); color:#042f2e; font-weight:950;
}
.driver-card .panel-heading { margin:18px 0 10px; }
.driver-switches { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.driver-switches button {
  min-height:52px; border:1px solid var(--go-line); border-radius:16px;
  background:#f7f9fa; color:#344054;
}
.driver-switches button.active {
  background:#101820; color:#fff; border-color:#101820; box-shadow:none;
}
.driver-card label { color:#475467; font-size:12px; font-weight:800; }
.driver-card select,
.driver-card input[type="text"],
.driver-card input[type="number"] {
  min-height:48px; border-radius:14px; border:1px solid var(--go-line); background:#f8fafb;
}
#seatInput { accent-color:#111820; }
.seat-manual-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.seat-manual-actions button { min-height:44px; border-radius:14px; }
.seat-readout {
  border-radius:16px; background:#f2f5f7; padding:12px 14px;
}
.seat-readout strong { font-size:30px; }
.driver-active-trip {
  margin-top:14px; border-radius:20px; border:1px solid rgba(18,183,106,.22);
  background:linear-gradient(145deg,#f0fff7,#f7fffb);
}
.wallet-message.compact { border-radius:14px; }

.driver-board { padding:20px; min-height:720px; }
.driver-board > .panel-heading {
  position:sticky; top:0; z-index:3; margin:-20px -20px 14px; padding:18px 20px;
  background:rgba(255,255,255,.94); border-bottom:1px solid var(--go-line); backdrop-filter:blur(14px);
}
.driver-board > .panel-heading span { color:#667085; font-size:12px; font-weight:800; }
.driver-board > .panel-heading strong { font-size:22px; letter-spacing:-.03em; color:#101828; }
.request-list { display:grid; gap:12px; }
.request-list > article,
.request-list .request-card {
  border:1px solid var(--go-line) !important; border-radius:20px !important;
  background:#fff !important; box-shadow:0 10px 28px rgba(15,23,42,.06) !important;
  padding:16px !important;
}
.request-list button { border-radius:13px !important; min-height:42px; }

/* Admin cleanup */
.admin-grid { width:min(1540px,100%); margin:0 auto; padding:22px; }
.admin-tabs { border-radius:18px; padding:6px; background:#e9eef2; }
.admin-tabs button { border-radius:13px; }
.admin-panel { border-radius:26px; box-shadow:var(--go-shadow); border:1px solid rgba(16,24,40,.07); }
.admin-card { border-radius:20px; border:1px solid var(--go-line); box-shadow:none; }

/* Dialogs */
.payment-dialog { border-radius:26px; box-shadow:0 30px 90px rgba(0,0,0,.28); }
.payment-close { border-radius:12px; }

/* Responsive app — designed for phone use first */
@media (max-width: 980px) {
  .workspace-bar { position:relative; flex-wrap:wrap; }
  .workspace-bar .brand span { display:none; }
  .auth-panel { min-width:0; }
  #driverView.driver-stage { grid-template-columns:1fr; padding:0; gap:0; }
  .driver-phone,
  .driver-board { border-radius:0; border-left:0; border-right:0; box-shadow:none; }
  .driver-phone { position:relative; top:auto; }
  .driver-board { min-height:auto; padding:16px; }
  .driver-map-wrap, #driverMap { min-height:44vh; }
  .driver-board > .panel-heading { margin:-16px -16px 14px; padding:16px; }
}

@media (max-width: 720px) {
  body { font-size:14px; background:#f4f6f8; }
  .workspace-bar {
    min-height:58px; padding:8px 12px; display:grid;
    grid-template-columns:1fr auto; gap:8px;
  }
  .workspace-bar .brand-mark { width:38px; height:38px; border-radius:12px; }
  .workspace-bar .brand strong { font-size:15px; }
  .role-tabs { grid-column:1/-1; width:100%; display:grid; grid-template-columns:repeat(4,1fr); order:3; }
  .role-tabs button { padding:0 6px; font-size:11px; }
  .auth-panel .download-link,
  .auth-panel #openUserRegister,
  .auth-panel #googleLogin,
  .auth-panel #backendStatus { display:none; }
  .auth-panel { justify-content:end; }
  .auth-panel #taxiLogout { min-height:36px; padding:0 11px; }

  .passenger-stage { padding:0; display:block; }
  .launch-panel { display:none; }
  .phone-app { border-radius:0; border:0; box-shadow:none; min-height:calc(100vh - 112px); }
  .map-canvas { min-height:42vh; }
  .request-panel { padding:18px 16px 90px; }

  #driverView.driver-stage { min-height:calc(100vh - 112px); }
  .phone-status.dark { min-height:40px; }
  .driver-map-wrap, #driverMap { min-height:40vh; }
  .driver-card { padding:16px; }
  .driver-wallet strong { font-size:25px; }
  .driver-board { background:#f5f7f8; }

  .admin-grid { padding:0; }
  .admin-tabs { border-radius:0; overflow-x:auto; flex-wrap:nowrap; justify-content:flex-start; padding:8px; }
  .admin-tabs button { white-space:nowrap; }
  .admin-panel { border-radius:0; border-left:0; border-right:0; box-shadow:none; }
}

@media (max-width: 420px) {
  .taxi-login-shell { border-radius:22px; }
  .taxi-login-brand { padding:28px 24px 23px; }
  .taxi-login-form { padding:24px; }
  .driver-map-card { left:10px !important; right:10px !important; bottom:10px !important; }
  .driver-map-card strong { font-size:12px; }
  .driver-map-card button { padding:0 10px; font-size:11px; }
  .driver-switches button { min-height:48px; }
}


/* ===== PASAJERO V3 · MAPA PRIMERO ===== */
body:not(.login-active) #passengerView.passenger-stage{
  position:relative;
  display:block;
  min-height:calc(100vh - 72px);
  padding:0;
  overflow:hidden;
  background:#eaf0f3;
}
body:not(.login-active) #passengerView .launch-panel{display:none!important;}
/* El notch decorativo de .phone-app (pensado para el marco de telefono)
   ya no aplica aqui: esta vista es pantalla completa y el notch quedaba
   flotando como una barra oscura encima del mapa. */
body:not(.login-active) #passengerView .phone-app::before{display:none!important;}
body:not(.login-active) #passengerView .phone-app{
  position:relative;
  width:100%;
  max-width:none;
  height:calc(100vh - 72px);
  min-height:680px;
  border:0;
  border-radius:0;
  overflow:hidden;
  background:#eaf0f3;
  box-shadow:none;
}
body:not(.login-active) #passengerView .phone-status,
body:not(.login-active) #passengerView .mobile-home-top{display:none!important;}
body:not(.login-active) #passengerView .passenger-map-brand{
  position:absolute;
  z-index:520;
  left:24px;
  top:20px;
  display:flex;align-items:center;gap:14px;
  padding:12px 16px;
  border-radius:20px;
  background:rgba(10,21,28,.92);
  color:#fff;
  box-shadow:0 14px 40px rgba(0,0,0,.18);
  backdrop-filter:blur(14px);
}
body:not(.login-active) #passengerView .passenger-map-brand img{width:128px;height:auto;}
body:not(.login-active) #passengerView .passenger-map-brand span{display:block;font-size:11px;opacity:.68;}
body:not(.login-active) #passengerView .passenger-map-brand strong{display:block;font-size:17px;margin-top:2px;}
body:not(.login-active) #passengerView .map-panel{
  position:absolute;inset:0;
  border:0;border-radius:0;
  min-height:0;height:100%;
  overflow:hidden;
}
body:not(.login-active) #passengerView .map-canvas,
body:not(.login-active) #passengerView #realMap{height:100%!important;min-height:100%!important;}
body:not(.login-active) #passengerView .map-toolbar{
  position:absolute;z-index:530;left:24px;top:112px;
  width:auto;max-width:320px;
  margin:0;padding:10px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:0 12px 35px rgba(14,30,37,.16);
}
body:not(.login-active) #passengerView .mobile-map-cta{display:none!important;}
body:not(.login-active) #passengerView .request-panel{
  position:absolute;z-index:540;
  right:24px;top:20px;bottom:20px;
  width:min(410px,calc(100vw - 48px));
  margin:0;padding:22px;
  overflow:auto;
  border:1px solid rgba(255,255,255,.75);
  border-radius:28px;
  background:rgba(255,255,255,.96);
  box-shadow:0 24px 70px rgba(14,30,37,.22);
  backdrop-filter:blur(18px);
}
body:not(.login-active) #passengerView .sheet-handle{display:none;}
body:not(.login-active) #passengerView .panel-heading{margin-bottom:16px;}
body:not(.login-active) #passengerView .panel-heading span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#70808a;}
body:not(.login-active) #passengerView .panel-heading strong{font-size:22px;}
body:not(.login-active) #passengerView .route-box{padding:16px;border-radius:20px;background:#f4f7f9;border:1px solid #e1e8ec;}
body:not(.login-active) #passengerView textarea{background:#fff;}
body:not(.login-active) #passengerView .inline-location-btn{font-weight:800;}
body:not(.login-active) #passengerView .service-heading{margin-top:18px;}
body:not(.login-active) #passengerView .service-toggle{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
body:not(.login-active) #passengerView .service-option{min-height:104px;border-radius:18px;padding:12px;align-items:flex-start;flex-direction:column;}
body:not(.login-active) #passengerView .service-option>span:nth-child(2){width:100%;}
body:not(.login-active) #passengerView .service-option em{font-size:17px;margin-left:0;}
body:not(.login-active) #passengerView .fare-card{border-radius:20px;}
body:not(.login-active) #passengerView .primary-action{min-height:58px;border-radius:18px;font-size:16px;}
body:not(.login-active) #passengerView .privacy-note{font-size:10px;opacity:.65;}

@media (max-width: 760px){
  body:not(.login-active) #passengerView.passenger-stage{min-height:calc(100dvh - 62px);}
  body:not(.login-active) #passengerView .phone-app{height:calc(100dvh - 62px);min-height:640px;}
  body:not(.login-active) #passengerView .passenger-map-brand{left:12px;top:12px;right:12px;padding:10px 12px;border-radius:16px;}
  body:not(.login-active) #passengerView .passenger-map-brand img{width:108px;}
  body:not(.login-active) #passengerView .passenger-map-brand span{display:none;}
  body:not(.login-active) #passengerView .passenger-map-brand strong{font-size:15px;}
  body:not(.login-active) #passengerView .map-toolbar{left:12px;top:78px;max-width:calc(100vw - 24px);}
  body:not(.login-active) #passengerView .request-panel{
    left:8px;right:8px;top:auto;bottom:8px;
    width:auto;max-height:57dvh;
    padding:16px;border-radius:26px;
  }
  body:not(.login-active) #passengerView .sheet-handle{display:block;}
  body:not(.login-active) #passengerView .map-panel{padding-bottom:0;}
  body:not(.login-active) #passengerView .mobile-shortcuts,
  body:not(.login-active) #passengerView .privacy-note{display:none;}
  body:not(.login-active) #passengerView .trip-metrics{grid-template-columns:repeat(3,1fr);gap:6px;}
  body:not(.login-active) #passengerView .trip-metrics>div{padding:9px 6px;}
}

/* === UI refresh passenger GO-VER 2026-07-23 === */
body:not(.login-active) #passengerView .passenger-map-brand{
  display:none!important;
}
body:not(.login-active) #passengerView .map-toolbar{
  left:14px;
  top:14px;
  padding:10px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
}
body:not(.login-active) #passengerView .map-toolbar span{
  font-size:11px;
  color:#6d7884;
}
body:not(.login-active) #passengerView .map-toolbar strong{
  font-size:14px;
  color:#13161c;
}
body:not(.login-active) #passengerView .request-panel{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,249,251,.98));
}
body:not(.login-active) #passengerView .panel-search-entry{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
}
body:not(.login-active) #passengerView .search-entry-main,
body:not(.login-active) #passengerView .search-favorite-chip{
  border:1px solid #e6ebef;
  background:#fff;
  min-height:58px;
  border-radius:20px;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
body:not(.login-active) #passengerView .search-entry-main{
  text-align:left;
  padding:0 20px;
  font-size:18px;
  font-weight:900;
  color:#13161c;
}
body:not(.login-active) #passengerView .search-entry-main::before{
  content:"⌕";
  color:#ef2748;
  margin-right:12px;
  font-size:22px;
}
body:not(.login-active) #passengerView .search-favorite-chip{
  padding:0 16px;
  font-size:15px;
  font-weight:800;
  color:#707a86;
}
body:not(.login-active) #passengerView .search-favorite-chip::before{
  content:"☆ ";
  color:#ef2748;
  font-size:20px;
  vertical-align:-1px;
}
body:not(.login-active) #passengerView .panel-heading-inline{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
body:not(.login-active) #passengerView .panel-heading-inline strong{
  font-size:24px;
  color:#16191f;
}
body:not(.login-active) #passengerView .service-heading{
  margin:0 0 10px;
}
body:not(.login-active) #passengerView .service-toggle{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:14px;
}
body:not(.login-active) #passengerView .service-option{
  position:relative;
  min-height:132px;
  padding:14px 14px 12px;
  border-radius:22px;
  border:2px solid #ffe1e6;
  background:linear-gradient(180deg,#fff,#fff6f7);
  box-shadow:0 12px 28px rgba(15,23,42,.06);
  align-items:flex-start;
  flex-direction:column;
  gap:10px;
}
body:not(.login-active) #passengerView .service-option.active{
  border-color:#ef2748;
  box-shadow:0 16px 32px rgba(239,39,72,.15);
}
body:not(.login-active) #passengerView .service-option.active::after{
  top:10px;
  right:10px;
  width:26px;
  height:26px;
  border-radius:50%;
  border:0;
  background:#ef2748;
  color:#fff;
  content:"✓";
  display:grid;
  place-items:center;
  font-size:15px;
  font-weight:900;
}
body:not(.login-active) #passengerView .service-option > span:nth-child(2){
  width:100%;
}
body:not(.login-active) #passengerView .service-option strong{
  font-size:18px;
  color:#16191f;
}
body:not(.login-active) #passengerView .service-option small{
  color:#6a7480;
  line-height:1.35;
}
body:not(.login-active) #passengerView .service-option em{
  margin-left:0;
  font-style:normal;
  font-size:18px;
  font-weight:900;
  color:#ef2748;
}
body:not(.login-active) #passengerView .service-car{
  width:122px;
  height:48px;
  border-radius:28px 34px 16px 16px;
  background:linear-gradient(180deg,#fff 0 40%,#ef2748 41% 100%);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.1), 0 8px 18px rgba(15,23,42,.12);
}
body:not(.login-active) #passengerView .service-car::before,
body:not(.login-active) #passengerView .service-car::after{
  width:16px;
  height:16px;
  bottom:-7px;
  background:#13161c;
  box-shadow:0 0 0 3px #d9dde2 inset;
}
body:not(.login-active) #passengerView .service-car::before{left:18px;}
body:not(.login-active) #passengerView .service-car::after{right:18px;}
body:not(.login-active) #passengerView .service-car.collective{
  background:linear-gradient(180deg,#fff 0 40%,#d91f43 41% 100%);
}
body:not(.login-active) #passengerView .service-car::marker{content:"";}
body:not(.login-active) #passengerView .fare-offer-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:16px;
  margin-bottom:14px;
  border-radius:22px;
  background:#f8fafc;
  border:1px solid #e6ebef;
}
body:not(.login-active) #passengerView .fare-copy span,
body:not(.login-active) #passengerView .fare-base-copy span{
  display:block;
  color:#151922;
  font-weight:800;
}
body:not(.login-active) #passengerView .fare-copy small{
  display:block;
  color:#6e7782;
  margin-top:3px;
}
body:not(.login-active) #passengerView .fare-base-copy{
  grid-column:1 / -1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:4px;
  border-top:1px dashed #d8dee5;
}
body:not(.login-active) #passengerView .fare-base-copy strong{
  color:#ef2748;
  font-size:22px;
}
body:not(.login-active) #passengerView .fare-stepper{
  display:grid;
  grid-template-columns:56px auto 56px;
  gap:8px;
  align-items:center;
}
body:not(.login-active) #passengerView .fare-stepper button{
  width:56px;
  height:56px;
  border-radius:18px;
  border:1px solid #e2e8f0;
  background:#fff;
  font-size:28px;
  font-weight:800;
  color:#16191f;
}
body:not(.login-active) #passengerView .offer-box{
  min-width:108px;
  min-height:56px;
  padding:8px 12px;
  border-radius:18px;
  background:#0f766e;
  border:1px solid #0d9488;
  text-align:center;
}
body:not(.login-active) #passengerView .offer-box span{
  display:block;
  font-size:12px;
  color:rgba(255,255,255,.85);
  text-transform:uppercase;
  letter-spacing:.08em;
}
body:not(.login-active) #passengerView .offer-box strong{
  color:#ffffff;
  font-size:22px;
  font-weight:900;
}
body:not(.login-active) #passengerView .route-box-card{
  padding:16px;
  border-radius:22px;
  background:#fff;
  border:1px solid #e6ebef;
  margin-bottom:14px;
}
body:not(.login-active) #passengerView .route-box-card label{
  display:block;
  position:relative;
  padding-left:24px;
}
body:not(.login-active) #passengerView .route-box-card label::before{
  content:"";
  position:absolute;
  left:4px;
  top:8px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#3b82f6;
  box-shadow:0 0 0 6px rgba(59,130,246,.12);
}
body:not(.login-active) #passengerView .route-box-card label + button,
body:not(.login-active) #passengerView .route-box-card label + .destination-search-btn{
  margin-left:24px;
}
body:not(.login-active) #passengerView .route-box-card label:nth-of-type(2)::before{
  background:#ef2748;
  box-shadow:0 0 0 6px rgba(239,39,72,.12);
}
body:not(.login-active) #passengerView .route-box-card label:nth-of-type(1)::after{
  content:"";
  position:absolute;
  left:9px;
  top:24px;
  bottom:-18px;
  border-left:2px dashed #cfd8e3;
}
body:not(.login-active) #passengerView .route-box-card textarea{
  min-height:56px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid #e6ebef;
  background:#f9fafb;
}
body:not(.login-active) #passengerView .inline-location-btn,
body:not(.login-active) #passengerView .destination-search-btn{
  border-radius:14px;
}
body:not(.login-active) #passengerView .trip-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-bottom:12px;
}
body:not(.login-active) #passengerView .trip-metrics > div{
  padding:12px 10px;
  border-radius:18px;
  background:#fff;
  border:1px solid #e8edf2;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
body:not(.login-active) #passengerView .trip-call-actions-stacked{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:4px;
}
body:not(.login-active) #passengerView .trip-call-actions-stacked .primary-action{
  min-height:60px;
  border-radius:20px;
  font-size:19px;
  font-weight:900;
  letter-spacing:.03em;
  background:linear-gradient(180deg,#ff355a,#e5153d);
  box-shadow:0 16px 30px rgba(229,21,61,.25);
}
body:not(.login-active) #passengerView .trip-call-actions-stacked .secondary-action{
  min-height:48px;
  border-radius:16px;
}
body:not(.login-active) #passengerView .proposal-panel{
  margin-top:14px;
  border-radius:22px;
  border:1px solid #e7edf2;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
body:not(.login-active) #passengerView .proposal-heading-inline{
  margin-bottom:0;
  padding-bottom:8px;
}
body:not(.login-active) #passengerView .proposal-list{
  padding-top:0;
}
body:not(.login-active) #passengerView .status-message{
  border-radius:16px;
  background:#fff4f6;
  border:1px solid #ffd8e0;
  color:#7d2335;
}
body:not(.login-active) #passengerView .request-receipt{
  border-radius:18px;
}

/* Map marker refresh */
.vehicle-pin,
.taxi-pin{
  position:relative;
  display:block;
  width:40px;
  height:54px;
}
.vehicle-pin::before,
.taxi-pin::before{
  content:"";
  position:absolute;
  left:5px;
  top:10px;
  width:30px;
  height:30px;
  border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  background:#ef2748;
  box-shadow:0 10px 18px rgba(15,23,42,.24);
}
.vehicle-pin.private::before,
.vehicle-pin.collective::before,
.taxi-pin,
.pin-private,
.pin-collective,
.pin-full{
  background:transparent;
}
.vehicle-pin.full::before,
.vehicle-pin.busy::before,
.pin-full::before{
  background:#c8ced8;
}
.vehicle-pin.selected::before{
  box-shadow:0 0 0 6px rgba(239,39,72,.18), 0 10px 18px rgba(15,23,42,.24);
}
.vehicle-pin-label{
  position:absolute;
  left:9px;
  top:4px;
  z-index:2;
  min-width:22px;
  height:12px;
  padding:0 4px;
  border-radius:999px;
  background:#fff;
  color:#ef2748;
  font-size:8px;
  line-height:12px;
  font-weight:900;
  text-align:center;
}
.vehicle-pin-car,
.taxi-pin::after{
  content:"🚕";
  position:absolute;
  left:7px;
  top:14px;
  z-index:2;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  font-size:18px;
  transform:none;
  background:transparent;
  border:0;
}
.taxi-pin{
  width:40px;
  height:54px;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.taxi-pin::after{
  left:7px;
  top:14px;
}
.taxi-pin::before{ z-index:1; }
.taxi-pin::after{ z-index:2; }
.pin-private{ left:18%; top:34%; }
.pin-collective{ left:65%; top:28%; }
.pin-two{ left:44%; top:70%; }
.pin-full{ left:73%; top:58%; }
.user-dot{
  width:18px;
  height:18px;
  border-width:4px;
  box-shadow:0 0 0 14px rgba(59,130,246,.16);
}
.passenger-mascot-marker{
  position:relative;
  display:block;
  width:58px;
  height:72px;
}
.passenger-mascot-marker .mascot-avatar{
  position:absolute;
  left:8px;
  top:0;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  border:3px solid #fff;
  box-shadow:0 10px 20px rgba(15,23,42,.22);
  font-size:26px;
}
.passenger-mascot-marker .mascot-wave{
  position:absolute;
  right:0;
  top:8px;
  font-size:16px;
}
.passenger-mascot-marker .mascot-target{
  position:absolute;
  left:19px;
  bottom:2px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#2f80ff;
  border:4px solid #fff;
  box-shadow:0 0 0 12px rgba(47,128,255,.16);
}
.destination-route-icon .point-marker.destination{
  background:#ef2748;
  color:#fff;
}
.destination-route-icon .point-marker.destination::after{
  content:"D";
}
@media (max-width:760px){
  body:not(.login-active) #passengerView .request-panel{
    max-height:64dvh;
    padding:16px 14px 18px;
    border-radius:28px 28px 0 0;
  }
  body:not(.login-active) #passengerView .search-entry-main{
    font-size:16px;
    min-height:54px;
  }
  body:not(.login-active) #passengerView .search-favorite-chip{
    min-height:54px;
    padding:0 12px;
    font-size:14px;
  }
  body:not(.login-active) #passengerView .service-option{
    min-height:118px;
    padding:12px;
  }
  body:not(.login-active) #passengerView .service-car{
    width:102px;
    height:42px;
  }
  body:not(.login-active) #passengerView .fare-offer-card{
    grid-template-columns:1fr;
  }
  body:not(.login-active) #passengerView .fare-stepper{
    width:100%;
    grid-template-columns:52px 1fr 52px;
  }
  body:not(.login-active) #passengerView .trip-metrics>div{
    padding:10px 8px;
  }
}

/* === UX polish V5 === */
body:not(.login-active) #passengerView .passenger-live-status[hidden]{
  display:none !important;
}
body:not(.login-active) #passengerView .passenger-live-status{
  display:grid;
  gap:4px;
  margin:10px 0 4px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#fff8f9);
  border:1px solid #ffd7df;
  box-shadow:0 10px 24px rgba(239,39,72,.08);
}
body:not(.login-active) #passengerView .passenger-live-status.is-sent{
  background:linear-gradient(180deg,#fff,#ecfdf5);
  border-color:#86efac;
}
body:not(.login-active) #passengerView .passenger-live-status.is-sent strong{
  color:#15803d;
}
body:not(.login-active) #passengerView .passenger-live-status strong{
  font-size:15px;
  color:#b51435;
}
body:not(.login-active) #passengerView .passenger-live-status span{
  color:#6e7782;
  font-size:13px;
}
body:not(.login-active) #passengerView .proposal-card{
  position:relative;
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:flex-start;
  width:100%;
  padding:14px;
  border-radius:18px;
  border:1px solid #e7edf2;
  background:linear-gradient(180deg,#fff,#fbfcfd);
  box-shadow:0 8px 18px rgba(15,23,42,.04);
  text-align:left;
}
body:not(.login-active) #passengerView .proposal-card + .proposal-card{
  margin-top:10px;
}
body:not(.login-active) #passengerView .proposal-card.selected{
  border-color:#ef2748;
  box-shadow:0 14px 30px rgba(239,39,72,.14);
}
body:not(.login-active) #passengerView .proposal-card.muted{opacity:.7;}
body:not(.login-active) #passengerView .proposal-rank{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff1f4;
  color:#ef2748;
  font-weight:900;
}
body:not(.login-active) #passengerView .proposal-main{min-width:0;}
body:not(.login-active) #passengerView .proposal-topline{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
body:not(.login-active) #passengerView .proposal-topline strong{
  font-size:16px;
  color:#12161c;
}
body:not(.login-active) #passengerView .proposal-topline em{
  font-style:normal;
  font-size:13px;
  font-weight:900;
  color:#ef2748;
}
body:not(.login-active) #passengerView .proposal-driver{
  margin-top:2px;
  font-size:14px;
  color:#4d5a66;
  font-weight:700;
}
body:not(.login-active) #passengerView .proposal-meta,
body:not(.login-active) #passengerView .proposal-footer{
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
  align-items:center;
  margin-top:8px;
  color:#6a7480;
  font-size:12px;
}
body:not(.login-active) #passengerView .proposal-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.02em;
}
body:not(.login-active) #passengerView .proposal-badge.private{
  background:#ffe8ed;
  color:#d91942;
}
body:not(.login-active) #passengerView .proposal-badge.collective{
  background:#fff1f4;
  color:#c41435;
}
body:not(.login-active) #passengerView .proposal-footer{
  justify-content:space-between;
  border-top:1px dashed #e1e7ed;
  padding-top:8px;
}
body:not(.login-active) #passengerView .mobile-shortcuts button{
  border-radius:999px;
  background:#fff;
  border:1px solid #e6ebef;
  box-shadow:0 6px 16px rgba(15,23,42,.04);
}
body:not(.login-active) #passengerView .mobile-shortcuts button:hover{
  border-color:#ef2748;
  color:#ef2748;
}

/* === V6 chat + chofer UI === */
.driver-quick-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:0 0 14px;
}
.driver-quick-stats article{
  padding:12px 12px 10px;
  border-radius:18px;
  border:1px solid #e7edf2;
  background:linear-gradient(180deg,#fbfcfd,#f5f7fa);
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.driver-quick-stats span{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.driver-quick-stats strong{
  display:block;
  margin-top:4px;
  color:#101828;
  font-size:18px;
  letter-spacing:-.03em;
}
.chat-panel{
  margin-top:14px;
  padding:14px;
  border-radius:20px;
  border:1px solid #e7edf2;
  background:linear-gradient(180deg,#ffffff,#fafbfc);
  box-shadow:0 10px 22px rgba(15,23,42,.04);
}
.chat-messages{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:10px;
  max-height:240px;
  overflow:auto;
  padding:4px 2px 8px;
}
.chat-empty{
  padding:16px;
  border-radius:16px;
  background:#f7f9fb;
  color:#667085;
  font-size:13px;
  border:1px dashed #d8e0e8;
}
.chat-bubble{
  max-width:82%;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid #e7edf2;
  background:#fff;
  box-shadow:0 6px 16px rgba(15,23,42,.04);
}
.chat-bubble header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:4px;
}
.chat-bubble header strong{
  font-size:12px;
  color:#101828;
}
.chat-bubble header span{
  font-size:10px;
  color:#98a2b3;
}
.chat-bubble p{
  margin:0;
  font-size:13px;
  color:#344054;
  line-height:1.45;
}
.chat-bubble.outgoing{
  align-self:flex-end;
  margin-left:auto;
  margin-right:0;
  background:#111827;
  border-color:#111827;
  color:#fff;
  border-bottom-right-radius:5px;
}
.chat-bubble.outgoing header strong,
.chat-bubble.outgoing header span,
.chat-bubble.outgoing p{
  color:#f8fafc;
}
.chat-bubble.outgoing header span{
  color:#cbd5e1;
}
.chat-bubble.incoming{
  align-self:flex-start;
  margin-right:auto;
  margin-left:0;
  background:#ffffff;
  border-color:#dbe3ec;
  border-bottom-left-radius:5px;
}
.chat-bubble.system{
  align-self:center;
  margin-inline:auto;
  max-width:100%;
  background:#f5f8fb;
  border-style:dashed;
}
.chat-composer{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  margin-top:12px;
}
.chat-composer input{
  min-height:46px;
  border-radius:14px;
  border:1px solid #d9e3ec;
  background:#fff;
  padding:0 14px;
}
.chat-composer button{
  min-height:46px;
  border:0;
  border-radius:14px;
  padding:0 18px;
  background:linear-gradient(180deg,#ff3358,#e5153d);
  color:#fff;
  font-weight:900;
  box-shadow:0 12px 24px rgba(229,21,61,.18);
}
.driver-phone .chat-panel{
  background:linear-gradient(180deg,#ffffff,#f9fbfc);
}
.driver-chat-panel .panel-heading strong,
.passenger-chat-panel .panel-heading strong{
  font-size:17px;
}
.driver-board .request-item{
  border-radius:22px !important;
  padding:18px !important;
}
.driver-board .request-item header h3{
  font-size:18px;
  color:#111827;
}
.driver-board .taxi-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.driver-board .taxi-meta span{
  padding:10px 12px;
  border-radius:14px;
  background:#f5f7fa;
  color:#475467;
  font-size:12px;
  border:1px solid #e7edf2;
}
.driver-board .request-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}
.driver-board .request-actions .accept{
  background:linear-gradient(180deg,#101820,#1e2a35);
  color:#fff;
}
.driver-board .request-actions .reject{
  background:#fff4f6;
  color:#c81e43;
  border:1px solid #ffd7df;
}
.driver-active-heading strong{
  font-size:20px;
}
.driver-active-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.driver-active-stats span{
  padding:10px 12px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(16,24,40,.08);
  color:#344054;
  font-size:12px;
}
.driver-trip-row{
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(16,24,40,.08);
  padding:12px;
}
.driver-trip-row button{
  min-height:42px;
  border-radius:14px;
  border:0;
  background:linear-gradient(180deg,#ff3358,#e5153d);
  color:#fff;
  font-weight:900;
}
@media (max-width:720px){
  .driver-quick-stats,
  .driver-active-stats,
  .driver-board .taxi-meta,
  .driver-board .request-actions{
    grid-template-columns:1fr;
  }
  .chat-bubble{max-width:95%;}
  .chat-composer{grid-template-columns:1fr;}
}

/* === V7 sonido, respuestas rápidas, vehículo y viaje premium === */
.sound-toggle{
  min-height:34px;
  padding:0 11px;
  border-radius:999px;
  border:1px solid #dce4eb;
  background:#fff;
  color:#667085;
  font-size:11px;
  font-weight:900;
}
.sound-toggle.active{
  background:#fff1f4;
  color:#d7193f;
  border-color:#ffd8e0;
}
.chat-quick-replies{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:10px 0 2px;
  scrollbar-width:none;
}
.chat-quick-replies::-webkit-scrollbar{display:none;}
.chat-quick-replies button{
  flex:0 0 auto;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#fff;
  color:#475467;
  font-size:11px;
  font-weight:800;
}
.chat-quick-replies button:hover{
  border-color:#ef2748;
  color:#ef2748;
}
.vehicle-identity-card{
  position:relative;
  display:grid;
  grid-template-columns:150px 58px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin-top:14px;
  padding:14px;
  border-radius:22px;
  overflow:hidden;
  background:linear-gradient(145deg,#ffffff,#f6f8fa);
  border:1px solid #e3e9ef;
  box-shadow:0 12px 28px rgba(15,23,42,.07);
}
.vehicle-identity-card.compact{
  grid-template-columns:120px 50px minmax(0,1fr);
}
.vehicle-photo-wrap{
  min-height:92px;
  border-radius:18px;
  overflow:hidden;
  background:#f3f6f9;
}
.vehicle-photo-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.driver-photo-wrap{
  position:relative;
  width:58px;
  height:58px;
  border-radius:18px;
  overflow:visible;
}
.vehicle-identity-card.compact .driver-photo-wrap{
  width:50px;
  height:50px;
}
.driver-photo-wrap img{
  width:100%;
  height:100%;
  border-radius:18px;
  object-fit:cover;
  border:3px solid #fff;
  box-shadow:0 8px 18px rgba(15,23,42,.14);
}
.driver-photo-wrap span{
  position:absolute;
  right:-4px;
  bottom:-4px;
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#19a66b;
  color:#fff;
  border:3px solid #fff;
  font-size:11px;
  font-weight:900;
}
.vehicle-identity-copy > span{
  display:block;
  color:#667085;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.vehicle-identity-copy > strong{
  display:block;
  margin-top:4px;
  color:#101828;
  font-size:20px;
  letter-spacing:-.03em;
}
.vehicle-identity-copy dl{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:10px 0 0;
}
.vehicle-identity-copy dl div{
  min-width:0;
  padding:8px 10px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e7edf2;
}
.vehicle-identity-copy dt{
  color:#98a2b3;
  font-size:9px;
  text-transform:uppercase;
  font-weight:900;
}
.vehicle-identity-copy dd{
  margin:2px 0 0;
  color:#344054;
  font-size:11px;
  font-weight:800;
  overflow-wrap:anywhere;
}
.premium-trip-progress{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  margin:16px 0 8px;
  padding:14px 10px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(16,24,40,.08);
}
.progress-step{
  position:relative;
  display:grid;
  justify-items:center;
  gap:7px;
  color:#98a2b3;
  font-size:10px;
  font-weight:800;
  text-align:center;
}
.progress-step:not(:last-child)::after{
  content:"";
  position:absolute;
  left:58%;
  right:-42%;
  top:8px;
  height:3px;
  border-radius:999px;
  background:#e7edf2;
}
.progress-step i{
  position:relative;
  z-index:2;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#dce3ea;
  border:4px solid #fff;
  box-shadow:0 0 0 2px #dce3ea;
}
.progress-step.done i,
.progress-step.active i{
  background:#ef2748;
  box-shadow:0 0 0 2px #ef2748;
}
.progress-step.done:not(:last-child)::after{
  background:#ef2748;
}
.progress-step.active{
  color:#d7193f;
}
.driver-active-trip{
  padding:16px;
  border-radius:24px;
  background:linear-gradient(145deg,#f7fff9,#ffffff);
  box-shadow:0 16px 36px rgba(16,185,129,.10);
}
.driver-active-heading{
  padding-bottom:12px;
  border-bottom:1px dashed rgba(16,24,40,.12);
}
@media (max-width:720px){
  .vehicle-identity-card,
  .vehicle-identity-card.compact{
    grid-template-columns:1fr 48px;
  }
  .vehicle-photo-wrap{
    grid-column:1 / -1;
  }
  .vehicle-identity-copy{
    grid-column:1 / -1;
  }
  .vehicle-identity-copy dl{
    grid-template-columns:1fr;
  }
  .premium-trip-progress{
    padding-inline:4px;
  }
}

/* === V7 premium trip screen === */
.passenger-trip-experience{
  margin:12px 0 14px;
}
.trip-hero-card{
  padding:18px;
  border-radius:24px;
  background:linear-gradient(145deg,#101820,#1a2430 58%,#1f2c38 100%);
  color:#fff;
  box-shadow:0 22px 48px rgba(11,17,23,.24);
  overflow:hidden;
  position:relative;
}
.trip-hero-card::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-40px;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.18), transparent 68%);
  pointer-events:none;
}
.trip-hero-card.searching{
  background:linear-gradient(145deg,#16202a,#233142 58%,#324457 100%);
}
.trip-hero-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}
.trip-hero-kicker{
  display:block;
  font-size:11px;
  color:#cbd5df;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.trip-hero-top strong{
  display:block;
  margin-top:6px;
  font-size:26px;
  line-height:1.05;
  letter-spacing:-.04em;
}
.trip-hero-top p{
  margin:8px 0 0;
  color:#d8dee5;
  font-size:13px;
  max-width:360px;
}
.trip-hero-fare{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 18px;
  border-radius:18px;
  background:rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
  font-size:22px;
  font-weight:900;
}
.trip-hero-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:16px;
}
.trip-hero-metrics article{
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(10px);
}
.trip-hero-metrics span{
  display:block;
  font-size:11px;
  color:#d8dee5;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.trip-hero-metrics strong{
  display:block;
  margin-top:4px;
  font-size:16px;
  color:#fff;
}
.trip-searching-card{
  margin-top:16px;
  padding:16px;
  border-radius:20px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12);
}
.trip-searching-card span{
  display:block;
  font-size:11px;
  color:#d6dde6;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.trip-searching-card strong{
  display:block;
  margin-top:5px;
  font-size:20px;
}
.trip-searching-card small{
  display:block;
  margin-top:6px;
  color:#d6dde6;
  line-height:1.5;
}
.trip-journey-copy{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:16px;
}
.trip-journey-copy > div{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
}
.trip-journey-copy span{
  display:block;
  font-size:11px;
  color:#cdd6df;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.trip-journey-copy strong{
  display:block;
  margin-top:6px;
  color:#fff;
  line-height:1.35;
}
.vehicle-identity-card{
  display:grid;
  grid-template-columns:110px 76px minmax(0,1fr);
  gap:14px;
  align-items:center;
  margin-top:16px;
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
}
.vehicle-identity-card.compact{
  background:#fff;
  color:#111827;
  border:1px solid #e7edf2;
}
.vehicle-photo-wrap,
.driver-photo-wrap{
  position:relative;
}
.vehicle-photo-wrap img{
  width:100%;
  height:auto;
  display:block;
  filter:drop-shadow(0 10px 16px rgba(0,0,0,.16));
}
.driver-photo-wrap img{
  width:72px;
  height:72px;
  border-radius:22px;
  background:#fff;
  padding:8px;
  object-fit:contain;
}
.driver-photo-wrap span{
  position:absolute;
  right:-4px;
  bottom:-4px;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#16a34a;
  color:#fff;
  font-weight:900;
  font-size:13px;
  box-shadow:0 8px 16px rgba(0,0,0,.18);
}
.vehicle-identity-copy span{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:inherit;
  opacity:.78;
}
.vehicle-identity-copy strong{
  display:block;
  margin-top:4px;
  font-size:22px;
}
.vehicle-identity-copy dl{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:12px 0 0;
}
.vehicle-identity-copy dl div{
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
}
.vehicle-identity-card.compact .vehicle-identity-copy dl div{
  background:#f5f7fa;
}
.vehicle-identity-copy dt{
  font-size:11px;
  text-transform:uppercase;
  opacity:.72;
}
.vehicle-identity-copy dd{
  margin:4px 0 0;
  font-size:13px;
  font-weight:800;
}
.sound-toggle{
  margin-left:auto;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid #e7edf2;
  background:#fff;
  font-size:12px;
  font-weight:900;
  color:#344054;
}
.sound-toggle.active{
  background:#fff4f6;
  color:#d91942;
  border-color:#ffdbe3;
}
.premium-trip-progress{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:16px;
}
.progress-step{
  display:grid;
  justify-items:center;
  gap:8px;
  padding:10px 8px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  text-align:center;
}
.progress-step i{
  width:18px;
  height:18px;
  display:block;
  border-radius:50%;
  background:#9aa6b2;
}
.progress-step.done i,
.progress-step.active i{
  background:#ff355a;
  box-shadow:0 0 0 6px rgba(255,53,90,.14);
}
.progress-step span{
  font-size:12px;
  color:inherit;
}
@media (max-width:760px){
  .trip-hero-top,
  .trip-journey-copy,
  .trip-hero-metrics,
  .vehicle-identity-card,
  .vehicle-identity-card.compact,
  .premium-trip-progress{
    grid-template-columns:1fr;
  }
  .trip-hero-top strong{font-size:24px;}
  .vehicle-photo-wrap{max-width:160px;}
}

/* === V8: passenger layout matches approved mobile mockup === */
body:not(.login-active) #passengerView.passenger-stage{
  min-height:calc(100dvh - 72px);
  padding:0;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  background:linear-gradient(180deg,#edf2f5,#e8edf1);
  /* El .launch-panel queda oculto (display:none) en esta vista, pero
     .passenger-stage sigue heredando grid-template-columns de 2 columnas
     de la version anterior (aside + phone-app). Eso deja una columna
     fantasma vacia a la derecha y empuja el mapa hacia la izquierda en
     escritorio. Se fuerza una sola columna para que .phone-app quede
     realmente centrado. */
  grid-template-columns:minmax(0,560px);
}
body:not(.login-active) #passengerView .phone-app{
  position:relative;
  width:min(560px,100%);
  max-width:560px;
  height:calc(100dvh - 72px);
  min-height:720px;
  border-radius:0;
  overflow:hidden;
  background:#eaf0f3;
  box-shadow:0 22px 70px rgba(15,23,42,.18);
}
body:not(.login-active) #passengerView .map-panel{
  position:absolute;
  inset:0;
  height:100%;
  min-height:0;
  overflow:hidden;
}
body:not(.login-active) #passengerView .map-canvas,
body:not(.login-active) #passengerView #realMap{
  height:100%!important;
  min-height:100%!important;
}
body:not(.login-active) #passengerView .passenger-menu-fab{
  position:absolute;
  z-index:620;
  left:18px;
  top:18px;
  width:54px;
  height:54px;
  border:0;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  color:#111827;
  font-size:27px;
  line-height:1;
  box-shadow:0 12px 28px rgba(15,23,42,.18);
  backdrop-filter:blur(12px);
}
body:not(.login-active) #passengerView .map-toolbar{
  position:absolute;
  z-index:620;
  left:auto;
  right:18px;
  top:18px;
  width:54px;
  height:54px;
  max-width:none;
  margin:0;
  padding:0;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:0 12px 28px rgba(15,23,42,.18);
  display:grid;
  place-items:center;
}
body:not(.login-active) #passengerView .map-toolbar > div{display:none!important;}
body:not(.login-active) #passengerView .map-toolbar .circle-btn{
  width:54px;
  height:54px;
  border:0;
  border-radius:18px;
  background:transparent;
  margin:0;
}
body:not(.login-active) #passengerView .request-panel{
  position:absolute;
  z-index:700;
  left:0;
  right:0;
  bottom:0;
  top:auto;
  width:100%;
  max-height:62%;
  margin:0;
  padding:18px 22px 24px;
  overflow:auto;
  border:0;
  border-radius:34px 34px 0 0;
  background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(249,250,252,.99));
  box-shadow:0 -18px 50px rgba(15,23,42,.18);
  backdrop-filter:blur(18px);
}
body:not(.login-active) #passengerView .sheet-handle{
  display:block!important;
  width:54px;
  height:5px;
  margin:0 auto 14px;
  border-radius:999px;
  background:#d1d5db;
}
body:not(.login-active) #passengerView .panel-search-entry{
  grid-template-columns:minmax(0,1fr) auto;
  margin-bottom:16px;
}
body:not(.login-active) #passengerView .search-entry-main{
  min-height:62px;
  font-size:22px;
  border-radius:20px;
}
body:not(.login-active) #passengerView .search-favorite-chip{
  min-height:62px;
  border-radius:20px;
}
body:not(.login-active) #passengerView .panel-heading-inline{
  margin-bottom:10px;
}
body:not(.login-active) #passengerView .service-heading{
  margin:0 0 10px;
}
body:not(.login-active) #passengerView .service-toggle{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:14px;
}
body:not(.login-active) #passengerView .service-option{
  min-height:150px;
  padding:14px;
  border-radius:22px;
  display:grid;
  grid-template-rows:64px auto auto;
  align-content:start;
  gap:6px;
  overflow:hidden;
}
body:not(.login-active) #passengerView .service-car,
body:not(.login-active) #passengerView .service-car.collective{
  width:100%;
  height:64px;
  border-radius:0;
  background:transparent url('assets/taxi-red-sedan.svg') center/contain no-repeat!important;
  box-shadow:none;
}
body:not(.login-active) #passengerView .service-car::before,
body:not(.login-active) #passengerView .service-car::after{display:none!important;}
body:not(.login-active) #passengerView .service-option strong{
  font-size:20px;
}
body:not(.login-active) #passengerView .service-option small{
  display:none;
}
body:not(.login-active) #passengerView .service-option em{
  font-size:18px;
  color:#ef2748;
  font-weight:900;
}
body:not(.login-active) #passengerView .fare-offer-card{
  margin-bottom:14px;
}
body:not(.login-active) #passengerView .route-box-card{
  margin-bottom:14px;
}
body:not(.login-active) #passengerView .trip-metrics,
body:not(.login-active) #passengerView .mobile-shortcuts,
body:not(.login-active) #passengerView .proposal-panel,
body:not(.login-active) #passengerView .privacy-note{
  display:none;
}
body:not(.login-active) #passengerView .trip-call-actions-stacked{
  position:static;
  padding-top:6px;
}
/* Mientras hay solicitud/viaje activo: oculta planeacion (origen/destino/tarifa),
   pero deja el boton grande (verde SOLICITUD ENVIADA / rojo cancelar). */
body:not(.login-active) #passengerView .request-panel.trip-active .panel-search-entry,
body:not(.login-active) #passengerView .request-panel.trip-active .panel-heading-inline,
body:not(.login-active) #passengerView .request-panel.trip-active .route-box-card,
body:not(.login-active) #passengerView .request-panel.trip-active #serviceRecommendation,
body:not(.login-active) #passengerView .request-panel.trip-active .service-heading,
body:not(.login-active) #passengerView .request-panel.trip-active .service-toggle,
body:not(.login-active) #passengerView .request-panel.trip-active .fare-offer-card{
  display:none !important;
}
/* Boton chico de cancelar/finalizar, integrado en la tarjeta de estado
   (arriba a la derecha, junto a la tarifa) en vez de un boton grande aparte. */
body:not(.login-active) #passengerView .trip-hero-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}
body:not(.login-active) #passengerView .hero-action-chip{
  min-height:30px;
  padding:0 14px;
  border:0;
  border-radius:999px;
  background:rgba(255,90,114,.92);
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
}
body:not(.login-active) #passengerView .hero-action-chip:active{
  background:#e5153d;
}
body:not(.login-active) #passengerView .trip-call-actions-stacked .primary-action{
  min-height:62px;
  border-radius:20px;
  font-size:20px;
}
body:not(.login-active) #passengerView .status-message{
  margin-bottom:6px;
}
@media (min-width:761px){
  body:not(.login-active) #passengerView .phone-app{
    margin:18px auto;
    height:calc(100dvh - 108px);
    min-height:720px;
    border-radius:34px;
  }
  body:not(.login-active) #passengerView .request-panel{
    max-height:64%;
    border-radius:34px 34px 0 0;
  }
  body:not(.login-active) #passengerView .request-panel.sheet-level-0{
    max-height:18%;
  }
}
/* Mapa maximizado (doble clic/doble toque en el mapa durante un viaje
   activo): el panel queda como una franja minima, solo con el tirador y
   el resumen de arriba, para que el mapa ocupe practicamente toda la
   pantalla. Aplica en cualquier ancho. */
body:not(.login-active) #passengerView .request-panel.sheet-level-0 .panel-heading-inline,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 .route-box-card,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 #serviceRecommendation,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 .service-heading,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 .service-toggle,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 .fare-offer-card,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 .trip-metrics,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 .trip-call-actions-stacked,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 #requestMessage,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 #passengerLiveStatus,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 #passengerTripExperience,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 #passengerRequestReceipt,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 .panel-search-entry,
body:not(.login-active) #passengerView .request-panel.sheet-level-0 .passenger-chat-panel{
  display:none !important;
}

body:not(.login-active) #passengerView .request-panel.sheet-level-0{
  max-height:88px !important;
  padding:10px 14px 12px !important;
  overflow:hidden;
}

body:not(.login-active) #passengerView .request-panel.sheet-level-0 .sheet-expand-btn{
  display:block !important;
  width:100%;
  margin-top:4px;
  min-height:40px;
  border:0;
  border-radius:14px;
  background:#111827;
  color:#fff;
  font-weight:700;
  font-size:13px;
}

body:not(.login-active) #passengerView .sheet-expand-btn{display:none;}

body:not(.login-active) #passengerView .map-panel-toggle{
  position:absolute;
  z-index:640;
  top:18px;
  left:68px;
  min-height:40px;
  padding:0 12px;
  border:0;
  border-radius:14px;
  background:rgba(255,255,255,.96);
  color:#111827;
  font-size:12px;
  font-weight:700;
  box-shadow:0 10px 24px rgba(15,23,42,.16);
  cursor:pointer;
}

body:not(.login-active) #passengerView .phone-app.map-observe .passenger-profile-chip{
  opacity:.35;
  pointer-events:none;
}

/* Modo Mapa: el mapa se puede mover; el menú no lo tapa ni lo cierra */
body.passenger-map-focus #passengerView .passenger-menu-fab{
  display:none !important;
}
body.passenger-map-focus #passengerView .mobile-home-top{
  pointer-events:none;
  opacity:0;
}
body.passenger-map-focus #passengerView .map-panel,
body.passenger-map-focus #passengerView #realMap,
body.passenger-map-focus #passengerView .leaflet-container{
  pointer-events:auto !important;
  touch-action:manipulation;
}
body.passenger-map-focus #passengerView .request-panel.sheet-level-0{
  max-height:72px !important;
  z-index:500;
  pointer-events:auto;
}
body.passenger-map-focus #passengerView .request-panel.sheet-level-0 .sheet-expand-btn{
  display:block !important;
}
body.passenger-map-focus #passengerView .map-panel-toggle{
  left:12px;
  right:auto;
}

body:not(.login-active) #passengerView .map-chat-fab,
#driverView .map-chat-fab{
  position:absolute;
  z-index:680;
  right:16px;
  bottom:108px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:0 16px;
  border:0;
  border-radius:999px;
  background:#c8102e;
  color:#fff;
  font-weight:800;
  box-shadow:0 14px 28px rgba(200,16,46,.28);
  cursor:pointer;
}

body:not(.login-active) #passengerView .map-chat-fab em,
#driverView .map-chat-fab em{
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#fff;
  color:#c8102e;
  font-style:normal;
  font-size:11px;
  font-weight:800;
  display:inline-grid;
  place-items:center;
}

body:not(.login-active) #passengerView .map-chat-dock,
#driverView .map-chat-dock{
  position:absolute;
  z-index:690;
  left:12px;
  right:12px;
  bottom:96px;
  max-height:46%;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto auto;
  gap:10px;
  padding:12px;
  border-radius:20px;
  background:rgba(255,255,255,.98);
  border:1px solid #e7edf2;
  box-shadow:0 18px 40px rgba(15,23,42,.18);
}

body:not(.login-active) #passengerView .map-chat-dock[hidden],
#driverView .map-chat-dock[hidden],
body:not(.login-active) #passengerView .map-chat-fab[hidden],
#driverView .map-chat-fab[hidden]{
  display:none !important;
}

body:not(.login-active) #passengerView .map-chat-dock header,
#driverView .map-chat-dock header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

body:not(.login-active) #passengerView .map-chat-dock header span,
#driverView .map-chat-dock header span{
  display:block;
  font-size:11px;
  color:#667085;
  font-weight:700;
}

body:not(.login-active) #passengerView .map-chat-dock header strong,
#driverView .map-chat-dock header strong{
  display:block;
  font-size:14px;
  color:#111827;
}

body:not(.login-active) #passengerView .map-chat-dock header button,
#driverView .map-chat-dock header button{
  border:0;
  border-radius:12px;
  min-height:36px;
  padding:0 12px;
  background:#111827;
  color:#fff;
  font-weight:700;
}

body:not(.login-active) #passengerView .map-chat-dock .chat-messages,
#driverView .map-chat-dock .chat-messages{
  max-height:160px;
}

#driverView .driver-phone.map-observe .driver-card{
  max-height:72px;
  overflow:hidden;
  padding-top:10px;
  padding-bottom:10px;
}

#driverView .driver-phone.map-observe .driver-card > *:not(#expandDriverPanel){
  display:none !important;
}

#driverView .driver-phone.map-observe .driver-card #expandDriverPanel{
  display:block !important;
  width:100%;
  min-height:40px;
  border:0;
  border-radius:14px;
  background:#111827;
  color:#fff;
  font-weight:700;
}

#driverView .driver-map-card .map-panel-toggle{
  margin-top:8px;
  min-height:36px;
  padding:0 10px;
  border:0;
  border-radius:12px;
  background:#111827;
  color:#fff;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}

#driverView .map-chat-fab{
  bottom:92px;
}
@media (max-width:760px){
  body:not(.login-active) #passengerView .phone-app{
    width:100%;
    max-width:none;
    height:calc(100dvh - 62px);
    min-height:640px;
  }
  body:not(.login-active) #passengerView .request-panel{
    left:0;
    right:0;
    bottom:0;
    max-height:66%;
    padding:16px 14px 20px;
    border-radius:30px 30px 0 0;
  }
  body:not(.login-active) #passengerView .passenger-menu-fab,
  body:not(.login-active) #passengerView .map-toolbar{
    top:12px;
  }
  body:not(.login-active) #passengerView .passenger-menu-fab{left:12px;}
  body:not(.login-active) #passengerView .map-toolbar{right:12px;}
  body:not(.login-active) #passengerView .search-entry-main{
    min-height:56px;
    font-size:18px;
  }
  body:not(.login-active) #passengerView .search-favorite-chip{min-height:56px;}
  body:not(.login-active) #passengerView .service-option{min-height:136px;}
}

/* === V9: map-first + compact service cards + mobile header cleanup === */
@media (max-width:760px){
  body:not(.login-active) .workspace-bar{
    min-height:56px;
    padding:8px 12px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    align-items:center;
  }
  body:not(.login-active) .workspace-bar .brand{min-width:0;}
  body:not(.login-active) .workspace-bar .brand strong{font-size:14px;}
  body:not(.login-active) .workspace-bar .brand span,
  body:not(.login-active) .workspace-bar .download-link,
  body:not(.login-active) .workspace-bar #openUserRegister,
  body:not(.login-active) .workspace-bar #googleLogin,
  body:not(.login-active) .workspace-bar #backendStatus,
  body:not(.login-active) .workspace-bar .role-tabs{
    display:none!important;
  }
  body:not(.login-active) .workspace-bar .auth-panel{
    gap:0;
    min-width:auto;
  }
  body:not(.login-active) .workspace-bar #taxiLogout{
    min-height:40px;
    padding:0 16px;
    border-radius:16px;
  }

  body:not(.login-active) #passengerView.passenger-stage{min-height:calc(100dvh - 56px);}
  body:not(.login-active) #passengerView .phone-app{
    height:calc(100dvh - 56px);
    min-height:0;
    background:#edf2f5;
  }
  body:not(.login-active) #passengerView .request-panel{
    max-height:54%;
    padding:14px 12px 18px;
    border-radius:26px 26px 0 0;
  }
  body:not(.login-active) #passengerView .sheet-handle{
    width:44px;
    margin-bottom:10px;
  }
  body:not(.login-active) #passengerView .panel-search-entry{
    gap:8px;
    margin-bottom:12px;
  }
  body:not(.login-active) #passengerView .search-entry-main,
  body:not(.login-active) #passengerView .search-favorite-chip{
    min-height:52px;
    border-radius:18px;
  }
  body:not(.login-active) #passengerView .search-entry-main{font-size:17px;}
  body:not(.login-active) #passengerView .search-favorite-chip{font-size:13px;}
  body:not(.login-active) #passengerView .panel-heading-inline{
    margin-bottom:8px;
  }
  body:not(.login-active) #passengerView .panel-heading-inline strong{
    font-size:18px;
  }
  body:not(.login-active) #passengerView .route-box-card{
    margin-bottom:12px;
    padding:14px;
  }
  body:not(.login-active) #passengerView .route-box-card textarea{
    min-height:48px;
    font-size:14px;
  }
  body:not(.login-active) #passengerView .service-heading{
    margin:0 0 8px;
  }
  body:not(.login-active) #passengerView .service-heading strong{
    font-size:14px;
  }
  body:not(.login-active) #passengerView .service-toggle{
    gap:10px;
    margin-bottom:12px;
  }
  body:not(.login-active) #passengerView .service-option{
    min-height:112px;
    padding:10px;
    border-radius:18px;
    grid-template-rows:42px auto auto;
    gap:4px;
  }
  body:not(.login-active) #passengerView .service-car,
  body:not(.login-active) #passengerView .service-car.collective{
    height:42px;
    background-position:left center!important;
    background-size:92% auto!important;
  }
  body:not(.login-active) #passengerView .service-option strong{
    font-size:16px;
  }
  body:not(.login-active) #passengerView .service-option em{
    font-size:15px;
  }
  body:not(.login-active) #passengerView .service-option.active::after{
    width:22px;
    height:22px;
    font-size:13px;
    top:8px;
    right:8px;
  }
  body:not(.login-active) #passengerView .fare-offer-card{
    margin-bottom:12px;
    padding:12px;
  }
  body:not(.login-active) #passengerView .fare-copy small{font-size:12px;}
  body:not(.login-active) #passengerView .fare-stepper{
    grid-template-columns:46px 1fr 46px;
  }
  body:not(.login-active) #passengerView .fare-stepper button,
  body:not(.login-active) #passengerView .offer-box{
    min-height:46px;
    height:46px;
  }
  body:not(.login-active) #passengerView .offer-box strong{font-size:18px;}
  body:not(.login-active) #passengerView .trip-call-actions-stacked .primary-action{
    min-height:56px;
    font-size:18px;
  }
  body:not(.login-active) #passengerView .status-message{font-size:12px;}
}

/* === V10: 3 niveles de panel + sugerencia manual === */
.service-recommendation{
  display:grid;
  gap:4px;
  padding:12px 14px;
  margin:0 0 12px;
  border-radius:18px;
  background:linear-gradient(180deg,#fff7f8,#fff2f5);
  border:1px solid #ffd9e1;
  box-shadow:0 10px 22px rgba(239,39,72,.08);
}
.service-recommendation span{
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#d91942;
}
.service-recommendation strong{
  font-size:16px;
  color:#111827;
}
.service-recommendation small{
  font-size:12px;
  color:#6b7280;
  line-height:1.45;
}
.service-recommendation[data-recommended="collective"]{
  background:linear-gradient(180deg,#fff6f8,#fff0f4);
}
.service-recommendation[data-recommended="private"]{
  background:linear-gradient(180deg,#fff8f8,#fff3f4);
}

@media (max-width:760px){
  body:not(.login-active) #passengerView .request-panel.sheet-level-0{max-height:16%;}
  body:not(.login-active) #passengerView .request-panel.sheet-level-1{max-height:62%;}
  body:not(.login-active) #passengerView .request-panel.sheet-level-2{max-height:72%;}
  body:not(.login-active) #passengerView .request-panel.sheet-level-3{max-height:86%;}
  body:not(.login-active) #passengerView .sheet-handle{
    cursor:pointer;
    position:relative;
  }
  body:not(.login-active) #passengerView .sheet-handle::after{
    content:"Arrastra - origen y destino";
    position:absolute;
    left:50%;
    top:8px;
    transform:translateX(-50%);
    font-size:10px;
    font-weight:800;
    letter-spacing:.02em;
    color:#9ca3af;
    white-space:nowrap;
  }
  body:not(.login-active) #passengerView .request-panel.sheet-level-1 .trip-call-actions-stacked{
    position:static;
  }
  /* Origen y destino SIEMPRE visibles (antes se ocultaban en nivel 1). */
  body:not(.login-active) #passengerView .request-panel.sheet-level-1 .route-box-card,
  body:not(.login-active) #passengerView .request-panel.sheet-level-2 .route-box-card,
  body:not(.login-active) #passengerView .request-panel.sheet-level-3 .route-box-card{
    display:grid !important;
  }
  body:not(.login-active) #passengerView .request-panel.sheet-level-1 #serviceRecommendation{
    display:none;
  }
}

/* =========================================================
   GO-VER LIFE — tipografia, mapa y GPS (cara clara)
   ========================================================= */
html, body {
  font-family: Inter, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.taxi-login-form .primary-action {
  background: linear-gradient(180deg, #2dd4bf, #0d9488);
  color: #1a1400;
  font-weight: 800;
  letter-spacing: .01em;
}
.taxi-login-form .primary-action.pwa-install-btn {
  background: linear-gradient(180deg, #e11d48, #c8102e);
  color: #fff;
  margin-top: 8px;
}
.taxi-login-form .primary-action:hover:not(:disabled) {
  filter: brightness(1.04);
}
.taxi-login-brand span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(167, 244, 50, .14);
}
.workspace-bar .brand strong {
  letter-spacing: -.03em;
}
.role-tabs button.active {
  background: #2dd4bf;
  color: #1a1400;
}
#driverMap,
#realMap {
  filter: saturate(1.05) contrast(1.02);
}
.driver-map-wrap.is-locating .driver-map-card,
.map-canvas.is-locating {
  outline: 2px solid rgba(255, 213, 74, .85);
  outline-offset: -2px;
}
.driver-map-wrap.is-locating .driver-map-card button {
  animation: goverLocatePulse 1s ease-in-out infinite;
}
@keyframes goverLocatePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.leaflet-container {
  font-family: Inter, "Segoe UI", sans-serif;
}
.primary-action {
  font-weight: 800;
}
#passengerView .primary-action,
#driverView .driver-wallet button {
  background: #0d9488;
  color: #1a1400;
  border: 0;
}

/* Tarjeta de chofer simplificada: solo nombre + placas/numero economico. */
.vehicle-identity-card {
  display: block !important;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
}
.vehicle-identity-card.compact {
  background: #fff;
  color: #111827;
  border: 1px solid #e7edf2;
}
.vehicle-identity-copy > span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: inherit;
  opacity: .72;
}
.vehicle-identity-copy > strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}
.vehicle-identity-copy > small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  opacity: .88;
}

/* Etiquetas de taxi en el mapa: numero economico en vez de "TAXI" repetido. */
.vehicle-pin-label {
  min-width: 26px;
}

/* Chofer: quita la tarjeta oscura "Zona activa" de encima del mapa,
   deja solo el boton redondo de ubicacion (igual que en pasajero). */
.driver-map-card.driver-map-card-compact {
  left: auto !important;
  right: 14px !important;
  top: 14px !important;
  bottom: auto !important;
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  display: block !important;
}
.driver-map-card.driver-map-card-compact button {
  min-height: 0;
  margin-top: 0;
  padding: 0;
  background: rgba(255, 255, 255, .92) !important;
}

/* PWA: banner instalar al entrar (mismo patrón que TPV técnicos) */
.taxi-install-banner {
  position: sticky;
  top: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #1a0a0e, #2a1018);
  border-bottom: 1px solid rgba(200, 16, 46, .45);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.taxi-install-banner span { flex: 1; line-height: 1.35; }
.taxi-install-banner .taxi-install-yes {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #c8102e;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.taxi-install-banner .taxi-install-no {
  flex: 0 0 auto;
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, .7);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

/* Gate de identidad: INE + selfie antes de viajar */
.identity-gate {
  z-index: 13050;
}
.identity-gate.active {
  display: grid;
}
.identity-dialog {
  width: min(100%, 420px);
  max-height: min(92vh, 640px);
  overflow: auto;
}
.identity-gate-lead {
  margin: 8px 0 14px;
  color: var(--muted, #64748b);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}
.identity-gate-form {
  display: grid;
  gap: 12px;
}
.identity-file-field {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.identity-file-field > span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
}
.identity-file-field input[type="file"] {
  width: 100%;
  font-size: 13px;
}
.identity-file-status {
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  color: #b45309;
}
.identity-file-status.is-ok {
  color: #15803d;
}
.identity-block-title {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
}
.identity-vehicle-block {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}
/* Pasajero: nunca mostrar fotos de unidad (el [hidden] lo pisaba display:grid). */
.identity-vehicle-block[hidden],
#identityChoferVehicleBlock[hidden],
.identity-gate:not(.for-chofer) #identityChoferVehicleBlock {
  display: none !important;
}
.identity-gate.for-chofer #identityChoferVehicleBlock:not([hidden]) {
  display: grid !important;
}
.identity-gate-form .primary-action,
.identity-gate-form .secondary-action {
  width: 100%;
}
/* Cámara guía para credencial y selfie */
.id-camera {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.id-camera-video,
.id-camera-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.id-camera-video {
  object-fit: cover;
}
.id-camera-face .id-camera-video {
  transform: scaleX(-1);
}
.id-camera-preview {
  object-fit: contain;
  background: #111;
}
.id-camera-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.id-camera-card .id-camera-frame {
  width: min(90vw, 105vh);
  aspect-ratio: 1.586;
  border-radius: 14px;
}
.id-camera-face .id-camera-frame {
  width: min(68vw, 42vh);
  aspect-ratio: 3 / 4;
  border-radius: 50%;
}
.id-camera-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: max(16px, env(safe-area-inset-top)) 18px 14px;
  display: grid;
  gap: 6px;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}
.id-camera-top strong {
  font-size: 1.1rem;
}
.id-camera-hint {
  font-size: 0.95rem;
  line-height: 1.35;
}
.id-camera-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
}
.id-camera-bar[hidden],
.id-camera-video[hidden],
.id-camera-preview[hidden],
.id-camera-frame[hidden],
.id-camera-shot[hidden] {
  display: none !important;
}
.id-camera-btn {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.id-camera-review .id-camera-btn {
  flex: 1;
}
.id-camera-use {
  background: #0f7a4a;
  border-color: #0f7a4a;
}
.id-camera-shot {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: rgba(255, 255, 255, 0.35);
}
.id-camera-shot:disabled {
  opacity: 0.4;
}

/* =========================================================
   Pasajero móvil — panel ordenado, mapa visible, teclado usable
   ========================================================= */
:root {
  --app-height: 100dvh;
  --keyboard-inset: 0px;
}

@media (max-width: 760px) {
  body:not(.login-active) #passengerView .request-panel {
    max-height: 52%;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  body:not(.login-active) #passengerView .request-panel.sheet-level-0 {
    max-height: 88px !important;
  }
  body:not(.login-active) #passengerView .request-panel.sheet-level-1 {
    max-height: 48%;
  }
  body:not(.login-active) #passengerView .request-panel.sheet-level-2 {
    max-height: 58%;
  }
  body:not(.login-active) #passengerView .request-panel.sheet-level-3 {
    max-height: 68%;
  }

  /* Al escribir: el panel sube con el teclado y el campo queda a la vista */
  body:not(.login-active) #passengerView .request-panel.is-typing {
    max-height: min(72%, calc(var(--app-height) - 72px)) !important;
    padding-bottom: calc(12px + var(--keyboard-inset));
  }
  body:not(.login-active) #passengerView .request-panel.is-typing .service-heading,
  body:not(.login-active) #passengerView .request-panel.is-typing .service-toggle,
  body:not(.login-active) #passengerView .request-panel.is-typing .fare-offer-card,
  body:not(.login-active) #passengerView .request-panel.is-typing .fare-kind-toggle,
  body:not(.login-active) #passengerView .request-panel.is-typing .trip-metrics,
  body:not(.login-active) #passengerView .request-panel.is-typing #serviceRecommendation,
  body:not(.login-active) #passengerView .request-panel.is-typing .proposal-panel,
  body:not(.login-active) #passengerView .request-panel.is-typing .privacy-note,
  body:not(.login-active) #passengerView .request-panel.is-typing .passenger-pin-hint,
  body:not(.login-active) #passengerView .request-panel.is-typing #routeHint {
    display: none !important;
  }

  /* Antes de confirmar destino: menos amontonado, PERO el botón BUSCAR TAXI siempre visible */
  body:not(.login-active) #passengerView .request-panel:not(.destination-ready):not(.trip-active) .service-heading,
  body:not(.login-active) #passengerView .request-panel:not(.destination-ready):not(.trip-active) .service-toggle,
  body:not(.login-active) #passengerView .request-panel:not(.destination-ready):not(.trip-active) .fare-offer-card,
  body:not(.login-active) #passengerView .request-panel:not(.destination-ready):not(.trip-active) .fare-kind-toggle,
  body:not(.login-active) #passengerView .request-panel:not(.destination-ready):not(.trip-active) .trip-metrics,
  body:not(.login-active) #passengerView .request-panel:not(.destination-ready):not(.trip-active) #serviceRecommendation,
  body:not(.login-active) #passengerView .request-panel:not(.destination-ready):not(.trip-active) .proposal-panel,
  body:not(.login-active) #passengerView .request-panel:not(.destination-ready):not(.trip-active) .privacy-note {
    display: none !important;
  }
  body:not(.login-active) #passengerView .trip-call-actions-stacked {
    display: grid !important;
    margin-top: 8px;
  }

  body:not(.login-active) #passengerView .sheet-handle::after {
    content: "Arrastra - mas mapa arriba";
  }

  body:not(.login-active) #passengerView .panel-heading-inline {
    display: none;
  }

  /* Barra blanca "¿A dónde vas? / Favoritos": duplica origen-destino y roba mapa */
  body:not(.login-active) #passengerView .panel-search-entry {
    display: none !important;
  }
  body:not(.login-active) #passengerView .sheet-handle::after {
    content: none !important;
  }
  body:not(.login-active) #passengerView .map-panel-toggle {
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  body:not(.login-active) #passengerView .route-box-card {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 16px;
    gap: 6px;
  }
  body:not(.login-active) #passengerView .route-box-card label {
    margin: 0;
  }
  body:not(.login-active) #passengerView .route-box-card label span {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.02em;
  }
  body:not(.login-active) #passengerView .route-box-card textarea {
    min-height: 40px !important;
    max-height: 72px;
    padding: 8px 10px !important;
    font-size: 15px !important;
    line-height: 1.3;
    resize: none;
    border-radius: 12px !important;
  }
  body:not(.login-active) #passengerView .inline-location-btn,
  body:not(.login-active) #passengerView .destination-search-btn {
    min-height: 40px;
    margin-top: 2px;
    font-size: 13px;
    border-radius: 12px;
  }
  body:not(.login-active) #passengerView .passenger-pin-hint,
  body:not(.login-active) #passengerView #routeHint {
    display: none !important;
  }

  body:not(.login-active) #passengerView .service-toggle {
    gap: 8px;
    margin-bottom: 8px;
  }
  body:not(.login-active) #passengerView .service-option {
    min-height: 84px;
    padding: 8px;
    border-radius: 14px;
    grid-template-rows: 28px auto auto;
  }
  body:not(.login-active) #passengerView .service-option small {
    display: none;
  }
  body:not(.login-active) #passengerView .fare-offer-card {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  body:not(.login-active) #passengerView .trip-metrics {
    margin-bottom: 8px;
  }
  body:not(.login-active) #passengerView .trip-metrics > div {
    padding: 8px 6px;
    border-radius: 12px;
  }
  body:not(.login-active) #passengerView .trip-call-actions-stacked .primary-action {
    min-height: 48px;
    font-size: 15px;
  }

  body:not(.login-active) #passengerView .passenger-trip-experience .trip-hero-card {
    padding: 12px;
  }
  body:not(.login-active) #passengerView .passenger-trip-experience .trip-hero-kicker,
  body:not(.login-active) #passengerView .passenger-trip-experience .premium-trip-progress {
    display: none;
  }

  .mobile-bottom-nav {
    min-height: 58px;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    gap: 2px;
  }
  .mobile-bottom-nav button {
    min-width: 0;
    padding: 4px 2px;
    gap: 2px;
  }
  .mobile-bottom-nav button span {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
  }
  .mobile-bottom-nav button small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
  }
}
/* Propuestas de chofer — bien visibles en el panel */
@media (max-width:760px){
  body:not(.login-active) #passengerView #passengerDriverConfirmations{
    display:grid;
    gap:8px;
    margin:8px 0 12px;
  }
  body:not(.login-active) #passengerView .confirmation-heading{
    padding:10px 12px;
    border-radius:14px;
    background:#fff7ed;
    border:1px solid #fdba74;
  }
  body:not(.login-active) #passengerView .confirmation-heading strong{
    display:block;
    font-size:15px;
    color:#9a3412;
  }
  body:not(.login-active) #passengerView .confirmation-heading span{
    font-size:12px;
    color:#c2410c;
  }
  body:not(.login-active) #passengerView .driver-confirmation-card{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:center;
    padding:12px;
    border-radius:16px;
    background:#fff;
    border:2px solid #f59e0b;
    box-shadow:0 8px 20px rgba(245,158,11,.12);
  }
  body:not(.login-active) #passengerView .driver-confirmation-card button{
    min-height:44px;
    padding:0 14px;
    border:0;
    border-radius:12px;
    background:#c8102e;
    color:#fff;
    font-weight:800;
    font-size:13px;
    white-space:nowrap;
  }
}


/* Solicitudes chofer: panel legible (evita texto gris claro del banner oscuro) */
#driverIncomingSummary.driver-incoming-summary.has-requests {
  display: grid !important;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid #d8e0e8;
  border-radius: 18px;
  background: #ffffff !important;
  color: #101828 !important;
  max-height: min(62vh, 560px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .08);
}
#driverIncomingSummary.has-requests > span,
#driverIncomingSummary.has-requests > small {
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
#driverIncomingSummary.has-requests > strong {
  color: #101828 !important;
  font-size: 17px !important;
}
/* Reset del layout flex que aplicaba a TODOS los div del banner */
#driverIncomingSummary.has-requests div {
  display: block;
  align-items: initial;
  justify-content: initial;
  gap: initial;
}
#driverIncomingSummary.has-requests em {
  color: #067647 !important;
  font-style: normal;
  font-size: inherit;
  font-weight: 900;
}
#driverIncomingSummary .driver-incoming-actions {
  display: grid !important;
  gap: 10px;
}
#driverIncomingSummary .request-item {
  display: grid !important;
  gap: 8px;
  background: #f8fafc !important;
  border: 1px solid #e4eaf0 !important;
  border-radius: 16px !important;
  padding: 12px !important;
  color: #101828 !important;
}
#driverIncomingSummary .request-item header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 10px !important;
}
#driverIncomingSummary .request-item header > div {
  display: grid !important;
  gap: 4px !important;
  min-width: 0;
  flex: 1;
}
#driverIncomingSummary .request-item h3,
#driverIncomingSummary .request-item span,
#driverIncomingSummary .request-item small,
#driverIncomingSummary .request-item strong,
#driverIncomingSummary .request-item label,
#driverIncomingSummary .request-item p {
  color: #101828 !important;
  opacity: 1 !important;
}
#driverIncomingSummary .request-item header span {
  display: block;
  line-height: 1.35;
  word-break: break-word;
  color: #344054 !important;
  font-size: 13px !important;
}
#driverIncomingSummary .request-item header small {
  display: block;
  color: #667085 !important;
  font-size: 12px !important;
}
#driverIncomingSummary .request-item .badge {
  color: #fff !important;
  flex: 0 0 auto;
}
#driverIncomingSummary .taxi-meta {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 4px;
}
#driverIncomingSummary .taxi-meta span {
  display: block !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  background: #fff !important;
  border: 1px solid #e7edf2 !important;
  color: #344054 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
#driverIncomingSummary .driver-counter-fare {
  display: grid !important;
  grid-template-columns: 1fr 110px !important;
  align-items: center !important;
  gap: 4px 10px !important;
  margin: 4px 0 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 14px !important;
  background: #fff !important;
}
#driverIncomingSummary .driver-counter-fare span,
#driverIncomingSummary .driver-counter-fare small {
  color: #344054 !important;
}
#driverIncomingSummary .driver-counter-fare input {
  color: #101828 !important;
  background: #fff !important;
}
#driverIncomingSummary .request-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 8px !important;
}
#driverIncomingSummary .request-actions .accept {
  background: linear-gradient(180deg, #101820, #1e2a35) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 13px !important;
  min-height: 44px !important;
  font-weight: 800 !important;
}
#driverIncomingSummary .request-actions .reject {
  background: #fff4f6 !important;
  color: #c81e43 !important;
  border: 1px solid #ffd7df !important;
  border-radius: 13px !important;
  min-height: 44px !important;
  font-weight: 800 !important;
}
#driverIncomingSummary .vehicle-identity-card,
#driverIncomingSummary .passenger-identity-card {
  display: none !important;
}
#driverView .driver-phone.map-observe .driver-card #driverIncomingSummary.has-requests {
  display: grid !important;
  max-height: min(50vh, 460px);
}
#driverView .driver-phone.map-observe .driver-card:has(#driverIncomingSummary.has-requests) {
  max-height: none;
  overflow: visible;
  padding-top: 10px;
  padding-bottom: 12px;
}
#driverView .driver-phone.map-observe .driver-card:has(#driverIncomingSummary.has-requests) > *:not(#expandDriverPanel):not(#driverIncomingSummary) {
  display: none !important;
}
#driverView .driver-phone.map-observe .driver-card:has(#driverIncomingSummary.has-requests) #expandDriverPanel {
  display: block !important;
  margin-bottom: 8px;
}
