:root {
  --y: #FFC21A; --y2: #FFD45C; --k: #0E0E0E; --k2: #161616; --k3: #1F1F1F; --k4: #2A2A2A; --line: #2E2E2E;
  --t: #F5F5F5; --t2: #B9B9B9; --t3: #8A8A8A; --red: #E5484D; --green: #2EB872; --blue: #3B82F6;
  --r: 16px; --head: 'Archivo Black', system-ui, sans-serif; --body: 'Montserrat', system-ui, -apple-system, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--k); color: var(--t); font-family: var(--body); font-size: 15px; line-height: 1.4; }
body { min-height: 100vh; min-height: 100dvh; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; margin: 0; letter-spacing: .2px; }
a { color: var(--y); }
button { font: inherit; cursor: pointer; border: 0; }
input, select, textarea { font: inherit; color: var(--t); background: var(--k2); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--y); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--t2); margin: 14px 0 6px; }
.hidden { display: none !important; }
.muted { color: var(--t3); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.wrap { flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 14px; font-weight: 700; background: var(--k3); color: var(--t); text-decoration: none; transition: transform .08s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.y { background: var(--y); color: var(--k); }
.btn.green { background: var(--green); color: #fff; }
.btn.red { background: var(--red); color: #fff; }
.btn.outline { background: transparent; border: 1.5px solid var(--line); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 16px 20px; font-size: 16px; }

.card { background: var(--k2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--k3); color: var(--t2); white-space: nowrap; }
.pill.y { background: var(--y); color: var(--k); }
.pill.green { background: rgba(46,184,114,.16); color: #5BE39C; }
.pill.red { background: rgba(229,72,77,.16); color: #FF7A7E; }
.pill.blue { background: rgba(59,130,246,.16); color: #8DB8FF; }
.pill.orange { background: rgba(255,194,26,.16); color: var(--y); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

#sf-toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 40px); background: #fff; color: #111; padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; transition: .25s; z-index: 9999; max-width: 90vw; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); pointer-events: none; }
#sf-toast.show { opacity: 1; transform: translate(-50%, 0); }
#sf-toast.error { background: var(--red); color: #fff; }

/* Login screen used by staff portals */
.login { max-width: 380px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.login img { width: 150px; margin-bottom: 18px; }
.login form { text-align: left; }

/* Map markers */
.sf-bike, .sf-shop, .sf-drop { background: none; border: 0; }
.sf-bike-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--y); color: var(--k); display: grid; place-items: center; border: 3px solid var(--k); box-shadow: 0 0 0 6px rgba(255,194,26,.25); animation: sfpulse 2s infinite; }
.sf-bike-dot.busy { background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.2); }
.sf-bike span { position: absolute; top: 42px; left: 50%; transform: translateX(-50%); background: var(--k); color: var(--y); font: 700 11px var(--body); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.sf-shop-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--k); border: 3px solid var(--y); display: grid; place-items: center; font-size: 18px; }
.sf-drop-dot { font-size: 28px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
@keyframes sfpulse { 0%,100% { box-shadow: 0 0 0 4px rgba(255,194,26,.3); } 50% { box-shadow: 0 0 0 10px rgba(255,194,26,.05); } }
.leaflet-container { background: #222; font-family: var(--body); }
