/* Minutes Rider (web) — the same look and feel as the iPhone rider app:
   always dark, big glass cards, one big button for the next step, a switch
   you slide to go online, and offers you swipe to take. */

body.work { padding-bottom: 110px; }
.rider-main { padding-top: 6px; }
.topbar .live { height: 28px; font-size: 12px; }

/* ── The shift ─────────────────────────────────────── */
.shift { padding: 18px; margin: 14px 0 6px; border-radius: 30px; transition: background .4s, border-color .4s; }
.shift.on { background: color-mix(in srgb, var(--green) 14%, var(--glass)); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.shift-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.shift h2 { font-size: 30px; letter-spacing: -0.03em; }
.shift p { margin: 2px 0 0; font-size: 15px; }
.radar { position: relative; width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 24px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); opacity: 0; }
.shift.on .radar { background: var(--signature); color: var(--on-accent); }
.shift.on .radar i { animation: radar 2s ease-out infinite; }
.shift.on .radar i:nth-child(2) { animation-delay: 1s; }
@keyframes radar { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.go-switch {
  position: relative; height: 76px; border-radius: 999px; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.go-switch:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; }
.go-fill { position: absolute; inset: 0 auto 0 0; width: 76px; border-radius: 999px; background: color-mix(in srgb, var(--green) 35%, transparent); transition: width .5s var(--spring); }
.go-label { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 64px; font-weight: 800; font-size: 17px; color: rgba(255,255,255,.88); transition: padding .5s var(--spring), color .3s; }
.go-knob {
  position: absolute; top: 6px; left: 6px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; font-weight: 900; color: var(--on-accent); background: var(--signature); box-shadow: 0 8px 18px rgba(0,0,0,.35);
  transition: transform .5s var(--spring), background .3s;
}
.go-switch.dragging .go-knob, .go-switch.dragging .go-fill { transition: none; }
.go-switch[aria-checked="true"] { background: var(--action); border-color: rgba(255,255,255,.3); }
.go-switch[aria-checked="true"] .go-fill { width: 100%; background: transparent; }
.go-switch[aria-checked="true"] .go-label { padding: 0 64px 0 0; color: var(--on-accent); }
.go-switch[aria-checked="true"] .go-knob { background: #fff; color: var(--forest); }
.go-switch.busy { opacity: .7; pointer-events: none; }

/* ── Cards ─────────────────────────────────────────── */
.card { border-radius: 28px; }
.card.mine { border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 9%, var(--glass-strong)); }
.card-head .num { font-size: 21px; }
.leg { font-size: 16px; }
.leg a { font-size: 15px; }

.steps4 { display: flex; align-items: flex-start; padding: 4px 0 2px; }
.steps4 .st { flex: 1; display: grid; justify-items: center; gap: 5px; text-align: center; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.55); }
.steps4 .st i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; background: rgba(255,255,255,.1); transition: transform .5s var(--spring); }
.steps4 .st.done i, .steps4 .st.now i { background: var(--action); color: var(--on-accent); }
.steps4 .st.now { color: #fff; font-weight: 800; }
.steps4 .st.now i { transform: scale(1.12); box-shadow: 0 0 0 5px rgba(214, 164, 68,.22); }
.steps4 .bar { flex: 0 0 18px; height: 3px; margin-top: 15px; border-radius: 3px; background: rgba(255,255,255,.12); }
.steps4 .bar.done { background: var(--green); }

.card-foot .btn-primary { min-height: 64px; font-size: 19px; border-radius: 20px; flex-basis: 100%; }
.waiting { flex-basis: 100%; min-height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; background: rgba(255,255,255,.07); }
.waiting::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.job-map { height: 180px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.06); }
.job-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) saturate(.4); }
.map-pin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.map-pin.shop { background: var(--signature); } .map-pin.drop { background: var(--action); }

/* ── Offers ────────────────────────────────────────── */
.card.offer { outline: 0; border: 1.5px solid color-mix(in srgb, var(--citrus) 55%, transparent); background: color-mix(in srgb, var(--citrus) 9%, var(--glass-strong)); animation: cardin .5s var(--spring) both, offerglow 2s ease-in-out infinite; }
@keyframes offerglow { 50% { box-shadow: 0 0 0 6px rgba(214, 164, 68,.12), var(--shadow); } }
.offer-top { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 0; }
.offer-top .kick { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; letter-spacing: .1em; color: var(--citrus); }
.offer-top .kick::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--citrus); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.offer-top h3 { font-size: 24px; margin: 4px 0 2px; }
.offer-top p { margin: 0; color: var(--ink-2); font-size: 15px; }
.ring { position: relative; width: 70px; height: 70px; flex: none; margin-left: auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: rgba(255,255,255,.12); }
.ring .fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 1s linear, stroke .3s; }
.ring.amber .fg { stroke: var(--amber); } .ring.red .fg { stroke: var(--danger); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; padding-bottom: 8px; }
.ring small { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 10px; font-weight: 800; color: var(--ink-3); }
.offer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 18px 4px; }
.offer-stats div { padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.07); }
.offer-stats b { display: block; font-family: var(--display); font-size: 20px; }
.offer-stats b.pay { color: var(--lime); }
.offer-stats span { font-size: 12px; font-weight: 600; color: var(--ink-3); }

.swipe { position: relative; height: 68px; margin: 12px 14px 8px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--green) 20%, transparent); user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: grab; }
.swipe:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; }
.swipe-fill { position: absolute; inset: 0 auto 0 0; width: 68px; border-radius: 999px; background: var(--action); }
.swipe-label { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 60px; font-weight: 800; font-size: 17px; color: #fff;
  background: linear-gradient(100deg, rgba(255,255,255,.55) 40%, #fff 50%, rgba(255,255,255,.55) 60%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 2.2s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.swipe-knob { position: absolute; top: 4px; left: 4px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--forest); font-size: 24px; font-weight: 900; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.swipe.back .swipe-knob, .swipe.back .swipe-fill { transition: transform .45s var(--spring), width .45s var(--spring); }
.swipe.done .swipe-label { animation: none; color: var(--on-accent); background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.offer .btn-ghost { margin: 0 14px 14px; width: calc(100% - 28px); }

/* ── Earnings ──────────────────────────────────────── */
.earn-hero { margin: 12px 0; padding: 22px; border-radius: 28px; background: var(--signature); color: var(--on-accent); box-shadow: 0 16px 40px rgba(214, 164, 68,.3); }
.earn-hero span { font-weight: 700; font-size: 14px; opacity: .8; }
.earn-hero b { display: block; font-family: var(--display); font-size: 54px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.chart { padding: 18px; border-radius: 26px; margin: 12px 0; }
.chart h3 { font-size: 18px; margin-bottom: 12px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 170px; }
.bars .b { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.bars .b i { align-self: end; border-radius: 10px 10px 6px 6px; background: var(--action); min-height: 4px; transform-origin: bottom; animation: grow .8s var(--spring) both; }
.bars .b i.zero { background: rgba(255,255,255,.08); }
@keyframes grow { from { transform: scaleY(0); } }

/* ── Bottom tab bar ────────────────────────────────── */
.seg.tabbar {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40;
  width: min(560px, calc(100vw - 24px)); margin: 0; padding: 6px; border-radius: 26px;
  background: var(--glass-strong); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.seg.tabbar button { display: grid; justify-items: center; gap: 2px; min-height: 56px; font-size: 12px; border-radius: 20px; }
.seg.tabbar button > span[aria-hidden] { font-size: 18px; line-height: 1; }
.seg.tabbar .count { display: none; }

.history-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; }
.history-card .tick { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--action); color: var(--on-accent); font-weight: 900; }
.history-card .tick.fail { background: color-mix(in srgb, var(--danger) 70%, transparent); color: #fff; }
.history-card .amt { font-family: var(--display); font-size: 19px; color: var(--lime); text-align: right; }
.history-card .amt small { display: block; font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--ink-3); }
.topbar .btn { white-space: nowrap; }
@media (max-width: 420px) { .topbar { gap: 8px; } .topbar .btn-sm { padding: 0 12px; min-height: 40px; } .topbar .brand { font-size: 0; gap: 0; } }

/* Under the wordmark. */
.brand::after { content: "RIDER"; }
