/* ══════════════════════════════════════
   PROGRESS DOTS / TIMELINE
══════════════════════════════════════ */
.pdot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Rajdhani';
  flex-shrink: 0;
}

.pd-done {
  background: rgba(0, 230, 118, .1);
  border: 2px solid var(--green);
  color: var(--green)
}

.pd-cur {
  background: rgba(224, 21, 21, .1);
  border: 2px solid var(--red);
  color: var(--red);
  animation: pulse 2s infinite
}

.pd-pend {
  background: #1c1c1c;
  border: 2px solid var(--border);
  color: var(--dim)
}

.pd-skip {
  background: rgba(255, 179, 0, .1);
  border: 2px solid var(--yellow);
  color: var(--yellow)
}

.pline {
  width: 2px;
  background: var(--border);
  flex: 1;
  min-height: 12px;
  margin: 2px 0
}

.pseg {
  flex: 1;
  height: 5px;
  border-radius: 3px
}

/* ══════════════════════════════════════
   TIMER
══════════════════════════════════════ */
.timer {
  font-family: 'Rajdhani';
  font-size: 64px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -3px;
  line-height: 1;
  text-align: center;
}

/* ══════════════════════════════════════
   ERRORS / SPINNERS
══════════════════════════════════════ */
.err {
  background: rgba(224, 21, 21, .06);
  border: 1px solid rgba(224, 21, 21, .22);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--red);
  display: none;
}

.err.on {
  display: block
}

.spin {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   BOTTOM SHEET AJOUTER ARRÊT
══════════════════════════════════════ */
#add-stop-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: 300;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#add-stop-bg.on {
  display: flex
}

#add-stop-sheet {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 22px 22px 0 0;
  padding: 18px 20px calc(20px + var(--sab));
  width: 100%;
  max-width: 480px;
}

/* ══════════════════════════════════════
   DIALOG
══════════════════════════════════════ */
.dlg-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(4px);
}

.dlg-bg.on {
  display: flex
}

.dlg {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 22px 22px 0 0;
  padding: 20px 20px calc(20px + var(--sab));
  width: 100%;
  max-width: 480px;
}

.dlg-handle {
  width: 36px;
  height: 4px;
  background: var(--border2);
  border-radius: 4px;
  margin: 0 auto 18px;
}

.dlg-title {
  font-family: 'Rajdhani';
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.dlg-msg {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: fixed;
  top: calc(16px + var(--sat));
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(24, 24, 24, .96);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(12px);
  max-width: 90vw;
}

.toast.on {
  transform: translateX(-50%) translateY(0)
}

.toast-ok {
  border-color: rgba(0, 230, 118, .35);
  color: var(--green)
}

.toast-err {
  border-color: rgba(224, 21, 21, .35);
  color: var(--red)
}

/* ══════════════════════════════════════
   GPS WALL
══════════════════════════════════════ */
.gps-wall {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .98);
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
  padding-bottom: calc(32px + var(--sab));
}

/* ══════════════════════════════════════
   OFFLINE BAR
══════════════════════════════════════ */
.offline-bar {
  background: rgba(255, 179, 0, .08);
  border-bottom: 1px solid rgba(255, 179, 0, .25);
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--yellow);
  font-weight: 600;
  display: none;
  flex-shrink: 0;
}

.offline-bar.on {
  display: block
}

/* ══════════════════════════════════════
   DIVIDER / SECTION
══════════════════════════════════════ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
  flex-shrink: 0;
}

.sec-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--sub);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .25
  }
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.fade-up {
  animation: fadeUp .3s ease forwards
}
