/* RIDE EARN PATCH — Ride. Earn. Patch. Biker design system. */
:root {
  --bg: #0d0d0f;
  --bg2: #141416;
  --panel: #17171a;
  --steel: #c8c9cd;
  --steel-dim: #6e6f75;
  --orange: #ff6a00;
  --red: #c1121f;
  --text: #f2f2f4;
  --text-dim: #a7a8ad;
  --accent: var(--orange);
  --accent2: var(--red);
  --font-d: "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.03), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.008) 0 2px, transparent 2px 6px);
  color: var(--text);
  font-family: var(--font-d);
  letter-spacing: .02em;
  min-height: 100vh;
  padding-bottom: 92px;
}
/* Bike-type themes: same dark soul, different energy. */
body.theme-sport { --accent: #2e9bff; --accent2: #ff2e4d; }
body.theme-touring { --accent: #ffb300; --accent2: #ff6a00; }
body.theme-adventure { --accent: #7dff5e; --accent2: #2e9bff; }
body.theme-standard { --accent: #c8c9cd; --accent2: #ff6a00; }

/* Scene band: season x region scenery behind the topbar. */
.scene-band {
  height: 120px;
  background: linear-gradient(180deg, #1a1a20, var(--bg));
  border-bottom: 2px solid #26262b;
  position: relative;
  overflow: hidden;
}
body.scene-winter-mountain .scene-band { background: linear-gradient(180deg, #0e1a33 0%, #16294d 55%, var(--bg) 100%); }
body.scene-winter-desert .scene-band { background: linear-gradient(180deg, #101828 0%, #1d2b45 55%, var(--bg) 100%); }
body.scene-spring-mountain .scene-band { background: linear-gradient(180deg, #123324 0%, #1d5238 55%, var(--bg) 100%); }
body.scene-spring-desert .scene-band { background: linear-gradient(180deg, #3a2c12 0%, #6b4f1d 55%, var(--bg) 100%); }
body.scene-summer-mountain .scene-band { background: linear-gradient(180deg, #0f2f4d 0%, #1c5a8a 55%, var(--bg) 100%); }
body.scene-summer-desert .scene-band { background: linear-gradient(180deg, #4d1f0e 0%, #8a3c1c 60%, var(--bg) 100%); }
body.scene-fall-mountain .scene-band { background: linear-gradient(180deg, #3d1f0e 0%, #7a3f16 55%, var(--bg) 100%); }
body.scene-fall-desert .scene-band { background: linear-gradient(180deg, #33150e 0%, #632913 55%, var(--bg) 100%); }
body.scene-winter-coast .scene-band, body.scene-spring-coast .scene-band,
body.scene-summer-coast .scene-band, body.scene-fall-coast .scene-band {
  background: linear-gradient(180deg, #0d2436 0%, #14425e 55%, var(--bg) 100%);
}
body.scene-winter-city .scene-band, body.scene-spring-city .scene-band,
body.scene-summer-city .scene-band, body.scene-fall-city .scene-band {
  background: linear-gradient(180deg, #1c1c26 0%, #33333f 55%, var(--bg) 100%);
}
body.scene-winter-farmland .scene-band { background: linear-gradient(180deg, #1a2233 0%, #2c3a55 55%, var(--bg) 100%); }
body.scene-spring-farmland .scene-band { background: linear-gradient(180deg, #1e3a1c 0%, #3a6b2f 55%, var(--bg) 100%); }
body.scene-summer-farmland .scene-band { background: linear-gradient(180deg, #3a2f12 0%, #6e5a1e 55%, var(--bg) 100%); }
body.scene-fall-farmland .scene-band { background: linear-gradient(180deg, #3a2410 0%, #6e4a1c 55%, var(--bg) 100%); }

.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #26262b;
  background: linear-gradient(180deg, #101012, #0d0d0f);
  position: sticky; top: 0; z-index: 20;
}
.brand { font-size: 30px; font-weight: 900; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 6px;
  display: inline-block; flex: none;
}
.brand-sub { font-size: 12px; letter-spacing: .34em; color: var(--steel-dim); margin-left: 2px; }
.brand-big { font-size: 64px; font-weight: 900; letter-spacing: .08em; color: var(--accent); text-align: center; margin: 8px 0; }

#views { max-width: 560px; margin: 0 auto; padding: 0 12px; }
.view { display: none; padding-top: 12px; }
.view.active { display: block; }
.label { font-size: 12px; letter-spacing: .28em; color: var(--steel-dim); margin-bottom: 8px; }
.label.pad { padding: 12px 4px 4px; }
.copy { color: var(--text-dim); line-height: 1.5; font-size: 15px; }
.copy.small { font-size: 12.5px; }

/* Landing story: motto + why we built this. */
.story-panel { margin-top: 12px; }
.motto {
  font-size: 38px; font-weight: 900; letter-spacing: .06em;
  color: var(--accent); text-align: center;
  margin: 10px 0 4px; line-height: 1.12;
  text-transform: uppercase;
}
.story-panel .copy { margin: 10px 0; }
.story-sign { text-align: right; color: var(--steel-dim); }

.panel {
  background: linear-gradient(180deg, var(--panel), #101013);
  border: 1px solid #2a2a30;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}
.panel::before {
  content: ""; position: absolute; top: 8px; left: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8e9ec, #6e6f75);
  box-shadow: calc(100% + 0px) 0 0 transparent;
}
.route-card { display: block; }
.route-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.route-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.route-card.selected { border-color: var(--accent); }
.route-name { font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.route-meta { color: var(--text-dim); font-size: 13px; margin: 2px 0 6px; }
.route-blurb { color: var(--text-dim); font-size: 14px; margin: 0 0 8px; }
.status-badge {
  display: inline-block; font-size: 11px; letter-spacing: .18em;
  padding: 2px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
}
.status-open { background: #123d1c; color: #7dff8a; border: 1px solid #1f6b30; }
.status-construction { background: #3d2f12; color: #ffc95e; border: 1px solid #6b521f; }
.status-closed { background: #3d1215; color: #ff7d7d; border: 1px solid #6b1f24; }
.route-card.is-closed { opacity: .55; }

.btn {
  font-family: var(--font-d); font-size: 15px; font-weight: 800; letter-spacing: .1em;
  background: linear-gradient(180deg, #3a3a40, #232326);
  color: var(--text); border: 1px solid #4a4a52; border-radius: 8px;
  padding: 12px 16px; cursor: pointer; text-transform: uppercase;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: default; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-color: transparent; color: #0d0d0f;
}
.btn-danger { background: linear-gradient(180deg, #5e1216, #33090b); border-color: #7a1f24; color: #ffb3b3; }
.btn-small { padding: 8px 12px; font-size: 12px; margin-left: auto; }

.field {
  width: 100%; font-family: var(--font-d); font-size: 16px;
  background: #0a0a0c; color: var(--text);
  border: 1px solid #34343b; border-radius: 8px;
  padding: 12px; margin-bottom: 10px;
}
.field:focus { outline: none; border-color: var(--accent); }
textarea.field { resize: vertical; }
select.field { appearance: none; }
.form-row { display: flex; gap: 10px; }
.form-row .field { flex: 1; }
.auth-row { display: flex; gap: 10px; }
.auth-row .btn { flex: 1; }

/* Ride */
.ride-route-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ride-route-name { font-size: 26px; font-weight: 900; letter-spacing: .03em; }
.ride-route-road { color: var(--text-dim); font-size: 14px; }
.mode-pill { font-size: 11px; letter-spacing: .2em; padding: 6px 10px; border-radius: 20px; white-space: nowrap; }
.mode-pill.live { background: #123d1c; color: #7dff8a; border: 1px solid #1f6b30; }
.mode-pill.preview { background: #3d2f12; color: #ffc95e; border: 1px solid #6b521f; }
.ride-stats { display: flex; gap: 10px; margin: 16px 0; }
.stat { flex: 1; text-align: center; background: #0a0a0c; border: 1px solid #26262b; border-radius: 8px; padding: 12px 4px; }
.stat-num { font-size: 30px; font-weight: 900; color: var(--accent); }
.stat-lbl { font-size: 11px; letter-spacing: .24em; color: var(--steel-dim); margin-top: 4px; }
.preview-note { background: #3d2f12; border: 1px solid #6b521f; color: #ffc95e; font-size: 12.5px; padding: 10px; border-radius: 8px; margin-bottom: 12px; }
.ride-controls { display: flex; gap: 10px; }
.ride-controls .btn { flex: 1; }

/* Locker */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  font-family: var(--font-d); font-size: 12px; font-weight: 800; letter-spacing: .12em;
  background: #17171a; color: var(--text-dim); border: 1px solid #34343b;
  border-radius: 20px; padding: 8px 14px; cursor: pointer;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: #0d0d0f; }
.patch-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.patch {
  position: relative; border-radius: 12px; overflow: hidden;
  background: #101013; border: 3px solid transparent; text-align: center;
}
.patch img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.patch.tier-basic { border-color: #6e6f75; }
.patch.tier-rare { border-color: #d4a017; box-shadow: 0 0 10px rgba(212,160,23,.35); }
.patch.tier-exotic { border-color: var(--accent2); box-shadow: 0 0 16px rgba(193,18,31,.6); animation: exoticPulse 2.4s ease-in-out infinite; }
@keyframes exoticPulse { 50% { box-shadow: 0 0 26px rgba(193,18,31,.9); } }
.patch.locked img { filter: grayscale(.7) brightness(.45); }
.patch .lock {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75); pointer-events: none;
}
.patch .lock svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 4px #000); }
.patch-name { font-size: 13px; font-weight: 800; letter-spacing: .06em; padding: 8px 4px 0; }
.patch-tier { font-size: 10.5px; letter-spacing: .22em; color: var(--steel-dim); padding: 2px 4px 10px; }
.patch-tier.got { color: var(--accent); }

/* Meets */
.meet-card { margin-bottom: 12px; }
.meet-title { font-size: 19px; font-weight: 800; letter-spacing: .03em; }
.meet-meta { color: var(--text-dim); font-size: 13.5px; margin: 4px 0; }
.official-badge {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .2em;
  background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #0d0d0f;
  padding: 3px 10px; border-radius: 4px; margin-left: 8px; vertical-align: middle;
}
.rsvp-row { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.rsvp-row .btn { flex: 1; }
.headcount { color: var(--accent); font-weight: 800; font-size: 14px; white-space: nowrap; }
.groupride-card { border-color: #4a3a12; }
.fee-line { color: var(--accent); font-weight: 800; letter-spacing: .06em; font-size: 14px; margin-top: 6px; }

/* Garage */
.bike-card { margin-bottom: 12px; } .bike-illus { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 10px; background: #101014; }
.bike-name { font-size: 21px; font-weight: 900; letter-spacing: .03em; }
.bike-sub { color: var(--text-dim); font-size: 13.5px; margin: 2px 0 8px; }
.daily-flag { display: inline-block; font-size: 10.5px; letter-spacing: .2em; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.mod { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #222227; font-size: 14px; }
.mod-cat { color: var(--steel-dim); font-size: 11px; letter-spacing: .18em; }
.mod.retired { opacity: .45; text-decoration: line-through; }
.mod-actions { display: flex; gap: 8px; margin-top: 8px; } /* YOUR STASH — owned store items as visual cards */ .stash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .stash-card { text-align: center; padding: 10px; } .stash-illus { display: block; width: 100%; height: auto; border-radius: 8px; background: #101014; } .stash-name { font-weight: 800; font-size: 13px; margin-top: 8px; } .stash-kind { color: var(--text-dim); font-size: 10.5px; letter-spacing: .18em; margin-top: 2px; }

/* Rider */
.rider-card .rider-name { font-size: 30px; font-weight: 900; letter-spacing: .04em; margin-bottom: 12px; }
.rider-stats { display: flex; gap: 10px; }
.tier-counts { display: flex; gap: 14px; font-size: 14px; color: var(--text-dim); }
.tier-count b { color: var(--text); margin-left: 4px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-basic { background: #6e6f75; } .dot-rare { background: #d4a017; } .dot-exotic { background: var(--red); box-shadow: 0 0 6px var(--red); }
.history-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-dim); padding: 6px 0; border-top: 1px solid #222227; }

.rider-dot{fill:var(--accent);stroke:#fff;stroke-width:2}.rail[hidden]{display:none}/* Rail */
.rail {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; background: rgba(13,13,15,.97);
  border-top: 1px solid #2a2a30;
  padding-bottom: env(safe-area-inset-bottom);
}
.rail[hidden] { display: none; }
/* Ride map */
.ride-map-wrap { margin: 12px 0; }
.ride-map-wrap .route-map { margin-bottom: 0; }
.rider-dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.rail-btn {
  flex: 1; background: none; border: none; color: var(--steel-dim);
  font-family: var(--font-d); font-size: 10px; font-weight: 800; letter-spacing: .14em;
  padding: 10px 2px 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.rail-btn svg { width: 24px; height: 24px; }
.rail-btn.active { color: var(--accent); }
.rail-btn { position: relative; }
.rail-badge {
  position: absolute; top: 8px; right: 10px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.rail-badge[hidden] { display: none; }
/* Nearby riders map */
#nearby-map {
  height: 260px; border-radius: 8px; border: 1px solid #2a2a30;
  margin-bottom: 10px; z-index: 0; background: #101013;
}
.leaflet-popup-content-wrapper { background: #17171b; color: var(--text); border: 1px solid #2a2a30; }
.leaflet-popup-tip { background: #17171b; }
.leaflet-popup-content { font-family: var(--font-d); font-size: 14px; line-height: 1.5; }
.leaflet-popup-content .btn { margin-top: 8px; }

.toast {
  position: fixed; bottom: 96px; left: 16px; right: 16px; z-index: 50;
  background: #1c1c20; border: 1px solid var(--accent); color: var(--text);
  border-radius: 10px; padding: 14px; text-align: center; font-size: 15px; font-weight: 700;
  opacity: 0; transform: translateY(12px); transition: all .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.earn-flash { border-color: var(--accent2); box-shadow: 0 0 24px rgba(193,18,31,.5); }

/* Route detail: schematic map + fuel stops */
.route-detail { margin-top: 12px; border-top: 1px solid #2a2a2e; padding-top: 12px; }
.route-map { width: 100%; height: auto; display: block; background: #101013; border: 1px solid #2a2a2e; border-radius: 6px; margin-bottom: 8px; }
.route-line { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fuel-dot { fill: #ffd23f; stroke: #0d0d0f; stroke-width: 1; }
.fuel-list { list-style: none; margin: 0; padding: 0; }
.fuel-list li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 7px 2px; border-bottom: 1px solid #222; font-size: 14px; color: var(--text); }
.fuel-list li b { color: var(--text); }
.fuel-mi { color: var(--accent); font-weight: 800; white-space: nowrap; letter-spacing: .06em; }
.btn-ghost { background: transparent; border: 1px solid #3a3a3e; color: var(--text-dim); }

/* ============ RIDE HAND + STORE (isolated styles) ============ */
.rh-hand { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.rh-hand.small .rh-card { width: 44px; height: 62px; }
.rh-hand.small .rh-rank { font-size: 15px; }
.rh-hand.small .rh-suit { font-size: 17px; }
.rh-card {
  width: 58px; height: 82px; border-radius: 8px;
  background: linear-gradient(160deg, #1a1a1e 0%, #0c0c0e 60%, #161316 100%);
  border: 2px solid #8a8f98;
  box-shadow: inset 0 0 0 1px #2a2d33, 0 2px 8px rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #e8e8ea;
}
.rh-card.red { color: #ff5a3c; border-color: #b9bec7; }
.rh-rank { font-size: 20px; font-weight: 800; line-height: 1; font-family: 'Arial Narrow', Impact, sans-serif; }
.rh-suit { font-size: 22px; line-height: 1.1; }
.rh-run-card { margin-bottom: 10px; }
.rh-run-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rh-pool { text-align: right; }
.rh-stop, .rh-entry { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.rh-entry-col { margin-bottom: 8px; }
.patch-art-pending {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #141416; border: 2px dashed #8a8f98; color: #ffb03c;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
}

/* ============ MAINTENANCE (service log) — isolated addition ============ */
.svc-section { margin-top: 12px; border-top: 1px solid #2a2a2e; padding-top: 4px; }
.svc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.svc-badge { font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 5px 9px; border: 1px solid #3a3a40; border-radius: 3px; color: var(--text-dim); background: #101012; }
.svc-badge.svc-ok { border-color: #2e6b34; color: #9fe6a8; }
.svc-badge.svc-overdue { border-color: var(--red); color: #ff9d9d; background: #1d0d0e; }
.svc-badge.svc-no_record, .svc-badge.svc-no_odometer { border-style: dashed; }
.svc-odo { align-items: center; margin: 8px 0; }
.svc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid #222226; }
.svc-row .btn-small { margin-left: 0; flex-shrink: 0; }
.svc-add { margin-top: 6px; }
.svc-intervals { margin-top: 10px; }
.svc-intervals summary { cursor: pointer; margin-bottom: 8px; }
.svc-iv-rows .form-row { align-items: center; margin-bottom: 6px; }

/* ============ MAN DOWN (safety alerts) — isolated addition ============ */
.mandown-btn {
  width: 100%; margin-top: 14px; padding: 18px;
  font-size: 22px; font-weight: 900; letter-spacing: .18em;
  background: linear-gradient(180deg, #7a1218, #3d080b);
  border: 2px solid var(--red); color: #ffd7d7; border-radius: 8px;
  box-shadow: 0 0 18px rgba(193, 18, 31, .35), inset 0 1px 0 rgba(255,255,255,.12);
}
.mandown-btn:active { transform: scale(.98); }
.mandown-confirm {
  margin-top: 12px; padding: 14px;
  border: 2px solid var(--red); border-radius: 8px; background: #1c0c0e;
}
.mandown-confirm-title { font-size: 18px; font-weight: 900; letter-spacing: .12em; color: #ffb3b3; margin-bottom: 6px; }
.md-card {
  border: 1px solid #3a3a40; border-radius: 8px; background: #101012;
  padding: 12px; margin-bottom: 10px;
}
.md-card.md-mine { border-color: var(--red); background: #1c0c0e; }
.md-card.md-queued { border-style: dashed; border-color: var(--orange); }
.md-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.md-age { color: var(--text-dim); font-size: 12px; letter-spacing: .08em; }
.md-meta { color: var(--text-dim); font-size: 13px; margin: 4px 0 8px; letter-spacing: .04em; }
.md-meta a { color: var(--accent); font-weight: 700; }
.md-responders { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.md-responder {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 5px 9px; border: 1px solid #3a3a40; border-radius: 3px; color: var(--text-dim);
}
.md-responder.onscene { border-color: #2e6b34; color: #9fe6a8; }
.md-outcomes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.md-optin-row, .mandown-optin { margin: 10px 0; }
.mandown-optin-label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.mandown-optin-label input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex-shrink: 0; }

/* ============================================================
 * SHARE CARDS (isolated block) — share modal + locker share btn
 * ============================================================ */
.share-btn {
  margin-top: 8px; width: 100%;
  background: transparent; border: 1px solid var(--orange);
  color: var(--orange); font-family: var(--font-d);
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  padding: 7px 0; border-radius: 4px; cursor: pointer;
}
.share-btn:active { background: rgba(255,106,0,.15); }
.sc-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.sc-box {
  position: relative; width: min(420px, 94vw);
  background: var(--panel); border: 1px solid #3a3a40; border-radius: 10px;
  padding: 14px;
}
.sc-preview { width: 100%; border-radius: 6px; display: block; }
.sc-x {
  position: absolute; top: 6px; right: 10px; z-index: 2;
  background: none; border: none; color: var(--text-dim);
  font-size: 30px; line-height: 1; cursor: pointer;
}
.sc-row { display: flex; gap: 8px; margin-top: 12px; }
.sc-row .btn { flex: 1; }
.sc-dots { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.sc-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid var(--steel-dim); background: transparent; cursor: pointer;
}
.sc-dot.on { background: var(--orange); border-color: var(--orange); }

/* ============ TRUSTED SHOPS (isolated module) ============ */
.shop-card { margin-bottom: 12px; }
.shop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.shop-head strong { font-size: 17px; letter-spacing: .02em; }
.shop-mi { color: var(--orange); font-weight: 700; font-size: 14px; white-space: nowrap; }
.shop-tags { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid #4a4a52; border-radius: 20px; padding: 3px 10px; color: var(--text-dim); }
.row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.dim { opacity: .75; }

/* ============ CREWS (isolated module) ============ */
.cw-row { cursor: pointer; }
.cw-tag { font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid #4a4a52; border-radius: 3px; padding: 2px 7px; margin-left: 6px;
  color: var(--text-dim); white-space: nowrap; }
.cw-tag.cw-basic { border-color: #6e6f75; color: #b9bcc4; }
.cw-tag.cw-rare { border-color: #d4a017; color: #e8bd45; }
.cw-tag.cw-exotic { border-color: var(--accent2); color: #ff6b74; }

/* ============ PATCH VAULT — isolated block ============ */
.vault-panel .form-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.vault-panel .form-row .btn { flex: 1 1 200px; }
.vault-danger { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #5a2b2e; }
.vault-danger .field { width: 100%; }
/* ============ /PATCH VAULT ============ */

/* ============================================================
 * SIGNED-OUT LANDING (funnel) — isolated block
 * ============================================================ */
.landing-hero { text-align: center; padding: 24px 18px 20px; }
.hero-motto {
  font-size: 52px; font-weight: 900; letter-spacing: .06em;
  color: var(--accent); margin: 6px 0 10px; line-height: 1.08;
  text-transform: uppercase;
}
.hero-sub { color: var(--text); font-size: 17px; line-height: 1.45; margin: 0 auto 16px; max-width: 34ch; }
.hero-art {
  display: block; width: min(280px, 68vw); height: auto; margin: 0 auto 20px;
  border-radius: 14px; border: 3px solid var(--accent2);
  box-shadow: 0 0 26px rgba(193,18,31,.55);
}
.btn-hero {
  display: block; width: 100%; padding: 18px;
  font-size: 20px; letter-spacing: .16em;
  box-shadow: 0 0 20px rgba(255,106,0,.35);
}
.hero-counter { margin: 14px 0 0; color: var(--steel-dim); }
.hero-counter b { color: var(--accent); font-size: 16px; }

.landing-proof { overflow: hidden; }
.proof-strip {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 4px 2px 10px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.proof-card { flex: 0 0 132px; scroll-snap-align: start; margin: 0; text-align: center; }
.proof-card img {
  width: 132px; height: 132px; object-fit: cover; border-radius: 10px;
  border: 2px solid #34343b; display: block; background: #101013;
}
.proof-card figcaption { font-size: 11px; font-weight: 800; letter-spacing: .08em; margin-top: 6px; }
.proof-card figcaption span { display: block; font-size: 9.5px; letter-spacing: .24em; color: var(--accent); margin-top: 2px; }

.landing-how .how-step { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #222227; }
.landing-how .how-step:first-of-type { border-top: none; padding-top: 4px; }
.how-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #0d0d0f; font-size: 20px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.landing-how b { font-size: 16px; letter-spacing: .06em; }
.landing-how .copy.small { margin: 4px 0 0; }

.deal-panel .deal-free {
  font-size: 22px; font-weight: 900; letter-spacing: .04em;
  color: var(--accent); margin: 0 0 10px; text-transform: uppercase;
}
.auth-panel { scroll-margin-top: 70px; }
.login-line { text-align: center; margin: 14px 0 0; color: var(--steel-dim); }
.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-d); font-size: 12.5px; font-weight: 700;
  color: var(--text-dim); text-decoration: underline; letter-spacing: .04em;
}

/* Sticky JOIN FREE bar: mobile + signed-out only. */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(13,13,15,.85), rgba(13,13,15,.98));
  border-top: 1px solid #2a2a30;
  display: none;
}
.sticky-cta .btn { width: 100%; padding: 14px; font-size: 17px; letter-spacing: .16em; }
.sticky-cta[hidden] { display: none !important; }
body.landing .sticky-cta { display: block; }
body.landing.signup-visible .sticky-cta { display: none; }
@media (min-width: 721px) { .sticky-cta { display: none !important; } }

/* Small-screen brand safety (rebrand QA, Sep 29): the 14-char RIDE EARN PATCH
   wordmark at 30px overflows a 360px viewport next to the 30px logo mark.
   Scale it down under 420px so the header never wraps or clips. */
@media (max-width: 420px) {
  .brand { font-size: 20px; }
  .brand-mark { width: 26px; height: 26px; }
  .hero-motto { font-size: 42px; }
  /* TOP RIDERS rail fix (Sep 30): 11 rail buttons overflow a 360px viewport;
     shrink label + icon so every button stays visible, no scroll. */
  .rail-btn { font-size: 8.5px; letter-spacing: .08em; padding: 8px 1px 6px; }
  .rail-btn svg { width: 20px; height: 20px; }
}
