:root {
  --bg: #0c1220;
  --sheet: #121a2b;
  --card: #1b2538;
  --line: #2a3650;
  --text: #f4f7fb;
  --muted: #9aa8bf;
  --yellow: #f5c518;
  --yellow-dark: #d4a50d;
  --ok: #3ddc97;
  --err: #ff6b6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: "Segoe UI", system-ui, sans-serif; }
#app { height: 100%; display: flex; flex-direction: column; }
.topbar {
  position: absolute; z-index: 500; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  pointer-events: none;
}
.brand, .nearby { pointer-events: auto; background: rgba(12,18,32,.92); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.brand { display: flex; gap: 10px; align-items: center; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.cab { font-size: 22px; }
.nearby { font-size: 13px; color: var(--muted); }
#map { flex: 1; min-height: 280px; }
.pin-center { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -100%); font-size: 28px; z-index: 400; pointer-events: none; }
.sheet {
  background: var(--sheet);
  border-radius: 24px 24px 0 0;
  padding: 10px 16px 20px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.35);
  z-index: 600;
}
.handle { width: 42px; height: 4px; background: var(--line); border-radius: 99px; margin: 4px auto 14px; }
label { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 6px; }
input {
  width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font-size: 15px; outline: none;
}
input:focus { border-color: var(--yellow); }
.suggest {
  list-style: none; margin: 8px 0 0; padding: 0; max-height: 180px; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.suggest li { padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.suggest li:hover { background: #243049; }
.hint { color: var(--muted); font-size: 12px; margin: 10px 0 4px; }
.route-line { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.route-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrow { color: var(--yellow); flex: 0 0 auto; }
.services { display: grid; gap: 8px; margin: 8px 0 12px; }
.svc {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer;
}
.svc.active { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); }
.svc b { display: block; }
.svc small { color: var(--muted); }
.price { color: var(--yellow); font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cta {
  width: 100%; border: 0; background: var(--yellow); color: #111; font-weight: 700;
  border-radius: 14px; padding: 14px; font-size: 16px; cursor: pointer;
}
.cta:disabled { opacity: .45; cursor: not-allowed; }
.ghost {
  width: 100%; margin-top: 8px; border: 1px solid var(--line); background: transparent; color: var(--text);
  border-radius: 14px; padding: 12px; cursor: pointer;
}
.err { color: var(--err); font-size: 13px; margin-top: 8px; }
.status-card { text-align: center; padding: 12px 8px 8px; }
.status-card h2 { margin: 8px 0 6px; font-size: 22px; }
.meta { color: var(--muted); }
.pulse {
  width: 14px; height: 14px; margin: 0 auto; border-radius: 50%; background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(245,197,24,.7); animation: pulse 1.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 16px rgba(245,197,24,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,197,24,0); }
}
.leaflet-control-attribution { font-size: 10px; }
@media (min-width: 900px) {
  #app { flex-direction: row; }
  #map { min-height: 100%; }
  .sheet { width: 420px; border-radius: 0; height: 100%; overflow: auto; }
  .topbar { right: 440px; }
  .pin-center { left: calc((100% - 420px) / 2); top: 50%; }
}
