/*
 * Zebulun Logistics design system.
 * Matches zebulun_interactive_prototype_7.html (client-approved) —
 * tokens, topbar/bottombar, cards, badges, stepper, modal, toast.
 * Local static file, no build step, no CDN round trip (Section 1/25).
 */

:root {
  --navy: #0B1F3A;
  --navy-2: #12294D;
  --gold: #C9A227;
  --bg: #F3F1EA;
  --surface: #FFFFFF;
  --ink: #141A24;
  --muted: #6B7280;
  --line: #E4E0D4;
  --ok: #2F7D5C;
  --warn: #C98A1E;
  --info: #2E5FA3;
}

* { box-sizing: border-box; }

body.zeb {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  min-height: 100vh;
}

/* ---- auth screens (landing / login): navy gradient, centered card ---- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  position: relative;
}
.auth-shell > .lang-switch { position: absolute; top: 16px; right: 16px; }
.auth-shield {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora'; font-weight: 800; color: var(--navy); font-size: 22px;
  margin-bottom: 12px;
}
.auth-shell h1 { font-family: 'Sora'; color: #fff; font-size: 19px; margin: 0 0 3px; text-align: center; }
.auth-tag { font-family: 'JetBrains Mono'; font-size: 10.5px; color: var(--gold); margin-bottom: 24px; letter-spacing: .03em; }
.auth-card {
  background: var(--surface); border-radius: 16px; padding: 22px;
  width: 100%; max-width: 390px;
}
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---- form controls ---- */
.zeb-field { margin-bottom: 12px; }
.zeb-field label { font-size: 11px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 5px; }
.zeb-field input,
.zeb-field select {
  font-family: 'Inter'; font-size: 13px; width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
}
.zeb-password-wrap { position: relative; }
.zeb-password-wrap input { padding-right: 40px; }
.zeb-password-toggle {
  position: absolute; right: 2px; top: 0; bottom: 0; width: 38px;
  background: none; border: none; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.zeb-password-toggle:hover { color: var(--navy); }
.zeb-password-toggle svg { width: 18px; height: 18px; }
.zeb-password-toggle .eye-off { display: none; }
.zeb-password-toggle.is-showing .eye-on { display: none; }
.zeb-password-toggle.is-showing .eye-off { display: block; }

.zeb-btn-primary {
  width: 100%; background: var(--gold); color: var(--navy); border: none; border-radius: 10px;
  padding: 12px; font-family: 'Sora'; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.zeb-btn-primary:active { opacity: .85; transform: scale(.98); }
.zeb-btn-secondary {
  width: 100%; background: var(--navy); color: #fff; border: none; border-radius: 10px;
  padding: 12px; font-family: 'Sora'; font-weight: 700; font-size: 13px; cursor: pointer;
}
.zeb-link-btn {
  display: block; text-align: center; font-size: 12px; font-weight: 600; color: var(--navy);
  border: 1px solid var(--line); border-radius: 9px; padding: 11px; background: none; width: 100%; cursor: pointer;
  text-decoration: none;
}
.zeb-error { color: #C0392B; font-size: 11.5px; margin-top: 8px; }
.zeb-success { color: var(--ok); font-size: 11.5px; margin-top: 8px; }
.zeb-helper {
  background: #F6EFD9; border-radius: 9px; padding: 10px 12px; font-size: 10.5px; color: var(--navy);
  margin-top: 14px; line-height: 1.6;
}
.zeb-helper b { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--warn); margin-bottom: 3px; }

/* ---- authenticated app shell: topbar + content + bottombar ---- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar {
  background: var(--navy); padding: 14px 16px; display: flex; align-items: center;
  justify-content: space-between; color: #fff; position: sticky; top: 0; z-index: 10;
}
.app-topbar .title { font-family: 'Sora'; font-size: 15px; font-weight: 700; }
.app-topbar .actions { display: flex; align-items: center; gap: 4px; }
.app-topbar .about-btn, .app-topbar .back {
  background: none; border: none; font-family: 'Inter'; font-weight: 600; cursor: pointer; text-decoration: none;
}
.app-topbar .about-btn { color: rgba(255,255,255,.5); font-size: 11px; padding: 4px 8px; display: inline-block; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  font-family: 'JetBrains Mono'; font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,.45);
  text-decoration: none; padding: 3px 6px; border-radius: 5px; letter-spacing: .03em; transition: color .15s ease, background .15s ease;
}
.lang-switch a.on { color: var(--navy); background: var(--gold); }
.lang-switch.on-light a { color: var(--muted); }
.lang-switch.on-light a.on { color: var(--navy); background: var(--gold); }
.app-topbar .back, .app-topbar .logout-link { color: var(--gold); font-size: 13px; text-decoration: none; }

.app-main { flex: 1; padding: 16px; padding-bottom: 96px; max-width: 640px; width: 100%; margin: 0 auto; }
.app-main h2 { font-family: 'Sora'; font-size: 16px; color: var(--navy); margin: 0 0 14px; }

/* Floating pill at every screen size (client feedback 2026-08-08 — liked it
   on tablet, wanted the same look on mobile too, not the old edge-to-edge
   bar). Inset from the screen edges and lifted off the bottom, rounded all
   round, with a shadow so it reads as a floating card rather than a bar
   fused to the viewport. Stays position:fixed everywhere so it never
   scrolls away — that was the fix before this one and still applies. */
/* Glossy pill (client feedback 2026-08-08): a static top sheen + inset
   glass edge, layered gradients only — no backdrop-filter (that's the
   modal-blur jank lesson from earlier: cheap to paint once, unlike a
   per-frame filter, so it costs nothing on low-end phones). */
.app-bottombar {
  display: flex; position: fixed; z-index: 10; overflow: hidden;
  left: 12px; right: 12px; bottom: 14px; border-radius: 18px; padding: 6px 4px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.03) 30%, rgba(255,255,255,0) 48%),
    linear-gradient(var(--navy), var(--navy));
  box-shadow: 0 10px 26px rgba(11,31,58,.35), inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.15);
}
.app-bottombar::before {
  content: ''; position: absolute; top: 0; left: 6%; right: 6%; height: 46%;
  background: linear-gradient(to bottom, rgba(255,255,255,.14), rgba(255,255,255,0));
  border-radius: 40px 40px 100% 100% / 40px 40px 60px 60px;
  pointer-events: none;
}
.app-bottombar a {
  flex: 1; background: none; border: none; color: rgba(255,255,255,.5); font-family: 'Inter';
  font-size: 9.5px; font-weight: 600; padding: 8px 2px; cursor: pointer; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px; border-radius: 12px;
  position: relative; z-index: 1; transition: color .18s ease, transform .18s ease, background .18s ease;
}
.app-bottombar a:hover { background: rgba(255,255,255,.07); }
.app-bottombar a .ic { font-size: 18px; transition: transform .18s ease; display: inline-block; }
.app-bottombar a.on {
  color: var(--gold); transform: translateY(-2px);
  background: linear-gradient(160deg, rgba(201,162,39,.22), rgba(201,162,39,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.app-bottombar a.on .ic { animation: zebIconBounce .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes zebIconBounce { 0% { transform: scale(1); } 40% { transform: scale(1.35) translateY(-3px); } 100% { transform: scale(1.15); } }

/* Tablet+: instead of stretching to fill the pill's width, items shrink to
   fit their content and the pill itself shrinks to fit them — that's the
   "small compact view" from the tablet feedback, now centered rather than
   inset from fixed edges. */
@media (min-width: 700px) {
  .app-bottombar {
    left: 50%; right: auto; transform: translateX(-50%); bottom: 18px;
    width: auto; max-width: 90vw; border-radius: 16px;
    justify-content: center; gap: 4px; padding: 7px;
  }
  .app-bottombar a { flex: 0 1 auto; font-size: 11px; padding: 9px 18px; gap: 5px; }
  .app-bottombar a .ic { font-size: 20px; }
}

@media (min-width: 1024px) {
  .app-bottombar { gap: 6px; padding: 8px; }
  .app-bottombar a { padding: 10px 22px; font-size: 12px; }
  .app-bottombar a .ic { font-size: 21px; }
  .app-main { padding-bottom: 100px; }
}

/* ---- stat cards / tables / badges (Sections 8/11) ---- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.stat-card .v { font-family: 'Sora'; font-weight: 800; font-size: 20px; color: var(--navy); }
.stat-card .l { font-size: 9px; color: var(--muted); text-transform: uppercase; }

.zeb-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.zeb-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 9.5px; text-transform: uppercase; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.zeb-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.zeb-code { font-family: 'JetBrains Mono'; font-size: 10.5px; color: var(--navy); }

.badge { font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 20px; white-space: nowrap; display: inline-block; animation: zebBadgeIn .35s cubic-bezier(.34,1.56,.64,1) backwards; }
.badge-transit { background: #FCEFD8; color: var(--warn); }
.badge-delivered { background: #E3F1EA; color: var(--ok); }
.badge-assigned { background: #E1EAF5; color: var(--info); }
.badge-pending { background: #F0E4E4; color: #A94442; }

/* ---- parcel cards / stepper (Sections 6/7/8) ---- */
.parcel-card { background: #fff; border-radius: 12px; padding: 13px; margin-bottom: 14px; border: 1px solid var(--line); }
.stepper { display: flex; flex-direction: column; }
.step { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 16px; position: relative; }
.step::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .dot {
  width: 19px; height: 19px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 9.5px;
}
.step.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; animation: zebDotPop .4s cubic-bezier(.34,1.56,.64,1); }
.step.current .dot { background: var(--gold); border-color: var(--gold); animation: zebDotPop .4s cubic-bezier(.34,1.56,.64,1), zebPulseRing 1.7s ease-in-out infinite .4s; }
.step .t { font-size: 12.5px; font-weight: 600; }
.step .s { font-size: 10.5px; color: var(--muted); }

/* ---- toast / placeholder ---- */
.zeb-placeholder { text-align: center; padding: 60px 20px; color: var(--muted); }
.zeb-placeholder .big { font-size: 34px; margin-bottom: 10px; }

/* ---- modal ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(11,31,58,.55); z-index: 50;
  align-items: flex-end; justify-content: center;
}
.modal-overlay.show { display: flex; animation: overlayFade .22s ease-out forwards; }
@keyframes overlayFade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: #fff; border-radius: 20px 20px 0 0; padding: 22px; width: 100%; max-width: 480px;
  max-height: 80vh; overflow-y: auto; animation: modalUp .28s cubic-bezier(.16,1,.3,1);
}
/* Client feedback (2026-08-08, twice): still saw an unstable "quick splash"
   on real phones even after smoothing the easing. Root cause was almost
   certainly backdrop-filter: blur() — it's GPU-expensive, and this app's
   whole design brief is low-end Android / low-bandwidth devices (see
   CLAUDE.md Section 25). A blur that can't hold 60fps on a real phone
   doesn't animate smoothly, it snaps/flickers — which reads exactly like
   "a splash before it settles." Dropped entirely rather than re-tuned;
   the overlay fade + card slide-up alone (both cheap transform/opacity
   animations) already read as an intentional, stable transition. */
@keyframes modalUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 700px) {
  .modal-overlay.show { align-items: center; }
  .modal-card { border-radius: 16px; }
}

/* ---- toast ---- */
.toast {
  position: fixed; top: -60px; left: 50%; transform: translateX(-50%) scale(.9); background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 11px; font-size: 12px; font-weight: 600; z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: top .4s cubic-bezier(.34,1.56,.64,1), transform .4s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
  max-width: 90%; text-align: center; opacity: 0;
}
.toast.show { top: 20px; transform: translateX(-50%) scale(1); opacity: 1; }

/* ---- splash screen (Section 12) — shown once at app entry, not on every page ---- */
#splash {
  position: fixed; inset: 0; background: var(--navy); z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
#splash .splash-shield {
  width: 64px; height: 64px; border-radius: 16px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora'; font-weight: 800; color: var(--navy); font-size: 26px; margin-bottom: 14px;
}
#splash .splash-name { font-family: 'Sora'; color: #fff; font-weight: 700; font-size: 17px; }
#splash .splash-tag { font-family: 'JetBrains Mono'; color: var(--gold); font-size: 10px; margin-top: 4px; }

/* ---- install banner (Add to Home Screen prompt) ---- */
.install-banner {
  position: fixed; left: 12px; right: 12px; bottom: 82px; z-index: 60;
  background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 12px 12px 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.3);
  transform: translateY(120%); opacity: 0; transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  max-width: 640px; margin: 0 auto;
}
.install-banner.show { transform: translateY(0); opacity: 1; }
.install-banner .ib-icon { font-size: 22px; flex-shrink: 0; }
.install-banner .ib-body { flex: 1; min-width: 0; }
.install-banner .ib-title { font-family: 'Sora'; font-weight: 700; font-size: 12px; }
.install-banner .ib-sub { font-size: 10.5px; color: rgba(255,255,255,.7); margin-top: 2px; line-height: 1.4; }
.install-banner .ib-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.install-banner .ib-install {
  background: var(--gold); color: var(--navy); border: none; border-radius: 8px;
  padding: 7px 12px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.install-banner .ib-dismiss {
  background: none; border: none; color: rgba(255,255,255,.6); font-size: 18px;
  line-height: 1; cursor: pointer; padding: 4px;
}
@media (min-width: 700px) {
  .install-banner { bottom: 92px; } /* clears the floating pill bottombar at this breakpoint */
}
@media (min-width: 1024px) {
  .install-banner { bottom: 96px; }
}

/* ---- shared interaction feedback ---- */
button, .zeb-link-btn, a.app-bottombar-link { transition: transform .12s ease, opacity .12s ease; }
button:active, .zeb-link-btn:active { transform: scale(.96); opacity: .9; }

/* ---- page / list entrance animations ----
   Removed (client feedback 2026-08-08): these ran on every single page,
   automatically, on every nav — the .app-main stagger alone held the page
   at partial opacity for up to ~600ms after render, on top of real
   network time, which is exactly wrong for someone moving fast through
   admin/rider tasks. Kept below: zebBadgeIn/zebDotPop/zebPulseRing (still
   used elsewhere) and every *interaction*-triggered animation (ripple,
   spinner, bell ring, active-tab icon bounce) — those fire only in
   response to something the user just did, so they don't gate how long a
   fresh page takes to look ready. */
@keyframes zebFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zebBadgeIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes zebDotPop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
@keyframes zebPulseRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,.5); } 50% { box-shadow: 0 0 0 6px rgba(201,162,39,0); } }

/* ---- button ripple (JS spawns .zeb-ripple at click coords) ---- */
button, .zeb-link-btn { position: relative; overflow: hidden; }
.zeb-ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); transform: scale(0);
  animation: zebRippleOut .55s ease-out; pointer-events: none;
}
.zeb-btn-secondary .zeb-ripple, .zeb-link-btn .zeb-ripple, .about-btn .zeb-ripple { background: rgba(11,31,58,.16); }
@keyframes zebRippleOut { to { transform: scale(2.6); opacity: 0; } }

/* ---- submit-button loading spinner (JS toggles .is-loading) ----
   The delegated JS listener adds .is-loading to every submit button
   app-wide (zebulun.js, selector: button[type="submit"], .zeb-btn-primary,
   .zeb-btn-secondary) — but a handful of buttons (rider/admin
   reset-password and toggle-active, in riders.php/developer_settings.php)
   are plain <button type="submit"> with bespoke inline colors (no
   .zeb-btn-* class, since their color is dynamic per row/state), so they
   got the class with no matching rule: no spinner, no pointer-events
   lock, silent double-submit risk. The generic `button.is-loading` rule
   below covers those without touching their custom inline styling. */
.zeb-btn-primary.is-loading, .zeb-btn-secondary.is-loading, .zeb-link-btn.is-loading, button.is-loading {
  color: transparent !important; pointer-events: none;
}
.zeb-btn-primary.is-loading::after, .zeb-btn-secondary.is-loading::after, .zeb-link-btn.is-loading::after, button.is-loading::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; animation: zebSpin .7s linear infinite;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
}
.zeb-btn-primary.is-loading::after, .zeb-link-btn.is-loading::after, button.is-loading::after { border-color: rgba(11,31,58,.2); border-top-color: var(--navy); }
@keyframes zebSpin { to { transform: rotate(360deg); } }

/* ---- notification bell micro-interaction ---- */
@keyframes zebBellRing {
  0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); }
  20%, 40% { transform: rotate(12deg); } 50% { transform: rotate(-6deg); } 60% { transform: rotate(0); }
}
.zeb-send-btn:hover, .zeb-send-btn:focus-visible { animation: zebBellRing .6s ease; }

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

/* ---- tracking result (Section 6) ---- */
.status-big { text-align: center; margin: 14px 0 6px; }
.status-big .v { font-family: 'Sora'; font-weight: 800; font-size: 18px; }
.status-big .s { font-size: 10.5px; color: var(--muted); }
.map-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 12px 10px; margin: 12px 0; }
.map-line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 9px); margin: 16px 6px 6px; overflow: visible; }
.map-line-fill {
  position: absolute; left: 0; top: 0; height: 100%; background: var(--gold); border-radius: 2px; width: 0;
  transition: width 1.3s cubic-bezier(.65,0,.35,1) .15s;
}
.map-flag { position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; animation: zebFadeUp .5s ease backwards; }
.map-flag.start { left: -4px; }
.map-flag.end { right: -4px; background: var(--ok); animation-delay: .1s; }
.map-pin {
  position: absolute; top: -15px; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--gold);
  border: 2px solid var(--navy-2); transform: rotate(-45deg); transition: left 1.3s cubic-bezier(.65,0,.35,1);
  animation: zebPinDrop .5s cubic-bezier(.34,1.56,.64,1) .3s backwards, zebPinPulse 2.1s ease-in-out infinite 1s;
}
@keyframes zebPinDrop { from { transform: translateY(-16px) rotate(-45deg); opacity: 0; } to { transform: translateY(0) rotate(-45deg); opacity: 1; } }
@keyframes zebPinPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,.55); } 50% { box-shadow: 0 0 0 8px rgba(201,162,39,0); } }
.map-labels { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.condition-box { background: #F6EFD9; border-radius: 9px; padding: 9px 11px; font-size: 10.5px; color: var(--navy); margin: 12px 0; }
.condition-box b { display: block; font-size: 9px; text-transform: uppercase; color: var(--warn); margin-bottom: 2px; }
.info-box { background: var(--bg); border-radius: 9px; padding: 11px 12px; margin: 12px 0; font-size: 11px; color: var(--ink); line-height: 1.9; }
.info-box .row { display: flex; justify-content: space-between; }
.info-box .row span { color: var(--muted); }
.contact-btn { width: 100%; background: #25D366; color: #fff; border: none; border-radius: 10px; padding: 11px; font-weight: 700; font-size: 12px; margin-top: 14px; cursor: pointer; text-decoration: none; display: block; text-align: center; }
.not-found { text-align: center; padding: 40px 20px; color: var(--muted); }
.not-found .big { font-size: 32px; margin-bottom: 10px; }
.recent-item { cursor: pointer; background: rgba(255,255,255,.08); border-radius: 8px; padding: 8px 11px; font-family: 'JetBrains Mono'; font-size: 11px; color: #fff; margin-bottom: 6px; display: flex; justify-content: space-between; text-decoration: none; }
.recent-item span { color: rgba(255,255,255,.5); font-family: 'Inter'; }
.recent-item.on-light { background: var(--bg); color: var(--navy); }
.recent-item.on-light span { color: var(--muted); }

/* ---- avatars / rider cards (Section 7) ---- */
.avatar {
  border-radius: 50%; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora'; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.toggle-link { background: none; border: none; color: var(--info); font-size: 10.5px; font-weight: 600; padding: 6px 0; cursor: pointer; text-align: left; }
.photo-drop {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px dashed var(--line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 20px; color: var(--muted); overflow: hidden;
}
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.list-card { background: #fff; border-radius: 12px; padding: 13px; margin-bottom: 10px; border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; }
.list-card.inactive { opacity: .6; }

.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.setting-row .l { font-size: 12px; font-weight: 600; color: var(--ink); }
.setting-row .s { font-size: 10px; color: var(--muted); }
.setting-row input { width: 80px; text-align: right; font-family: 'JetBrains Mono'; padding: 6px 8px; }

/* ---- Developer Settings (hidden super-admin panel) ---- */
.dev-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.dev-tabs button {
  flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 8px 16px; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.dev-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.dev-tab-content { display: none; }
.dev-tab-content.active { display: block; animation: zebFadeUp .3s ease backwards; }
.dev-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.dev-card h3 { font-family: 'Sora'; font-size: 13px; color: var(--navy); margin: 0 0 4px; }
.dev-card .hint { font-size: 10.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.dev-danger { border-color: #e0b4b4; background: #FFF8F8; }
.dev-danger h3 { color: #A94442; }
.dev-confirm-row { display: flex; gap: 8px; margin-top: 10px; }
.dev-confirm-row input[type="text"] { flex: 1; }
.zeb-chart-bar { transition: height .5s cubic-bezier(.22,1,.36,1); }
.dev-table-wrap { overflow-x: auto; }
.dev-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.dev-table th { text-align: left; padding: 6px 8px; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dev-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dev-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.dev-toggle-row:last-child { border-bottom: none; }
.dev-toggle-row .l { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.dev-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
@media (min-width: 480px) { .dev-stat-grid { grid-template-columns: repeat(4, 1fr); } }
.dev-top-list { list-style: none; padding: 0; margin: 0; font-size: 11px; }
.dev-top-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dev-top-list li:last-child { border-bottom: none; }

/* ---- Developer Settings > Animations — per-surface on/off (class-based
   twins of the existing prefers-reduced-motion media query above) ---- */
body.zeb-no-animations, body.zeb-no-animations * {
  animation: none !important; transition: none !important;
}
body.zeb-reduced-motion, body.zeb-reduced-motion * {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
}
