/* RIDER RATING badge + reviews (public/js/rider-rating.js). Neon green glass star with the score inside; NEON BLUE (logo blue) glow at >= 9 (Legendary). */
.rr-badge { position: absolute; z-index: 3; right: .45rem; bottom: .45rem; width: 3.1rem; height: 3.1rem; display: grid; place-items: center; pointer-events: auto;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.85)) drop-shadow(0 0 6px rgba(59,254,44,.55)); }
.rr-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rr-badge .rr-n { position: relative; margin-top: .22em; font: 900 .86rem/1 var(--font-body, system-ui), sans-serif; letter-spacing: -.01em; color: #031a03;
  text-shadow: 0 1px 0 rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.rr-badge.rr-legend { filter: drop-shadow(0 3px 4px rgba(0,0,0,.85)) drop-shadow(0 0 5px rgba(30,160,255,.95)) drop-shadow(0 0 13px rgba(15,123,255,.75)); animation: rr-glow 2.6s ease-in-out infinite; }
@keyframes rr-glow { 50% { filter: drop-shadow(0 3px 4px rgba(0,0,0,.85)) drop-shadow(0 0 8px rgba(111,208,255,1)) drop-shadow(0 0 20px rgba(30,160,255,.9)); } }
.rr-badge .rr-tip { position: absolute; right: 0; bottom: calc(100% + .35rem); width: max-content; max-width: 14rem; padding: .4rem .6rem; border-radius: 10px; text-align: right;
  font: 700 .72rem/1.3 var(--font-body, system-ui), sans-serif; color: #eaffe8; background: rgba(5,6,7,.95); border: 1px solid #3bfe2c; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.rr-badge:hover .rr-tip, .rr-badge:focus-visible .rr-tip { opacity: 1; transform: none; }
.rr-badge.rr-legend .rr-tip { border-color: #1ea0ff; color: #dff3ff; box-shadow: 0 0 10px rgba(30,160,255,.5); }
.stop-card--tile.rr-has .stop-card__scrim { padding-right: 3.8rem; }
.detail-hero .rr-badge { width: 4.2rem; height: 4.2rem; right: .7rem; bottom: .7rem; }
.detail-hero .rr-badge .rr-n { font-size: 1.15rem; }
.rr-inline { position: relative; display: inline-grid; vertical-align: middle; right: auto; bottom: auto; margin-left: .5rem; width: 2.7rem; height: 2.7rem; }
.rr-inline .rr-n { font-size: .78rem; }
.rr-label { display: inline-block; vertical-align: middle; font-size: .85rem; color: #cfd5db; letter-spacing: .04em; }
.rr-label.rr-legend-t { color: #6fd0ff; font-weight: 800; text-shadow: 0 0 8px rgba(30,160,255,.7); }
/* Reviews section */
.rr-sec { margin-top: 1.4rem; }
.rr-sum { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: 0 0 .8rem; color: #cfd5db; }
.rr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.rr-item { padding: .8rem .95rem; border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.2); }
.rr-item header { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.rr-item b { color: #fff; }
.rr-item .rr-score { font-weight: 900; color: #6bff5e; }
.rr-item time { font-size: .82rem; color: #9aa2ab; }
.rr-item p { margin: .35rem 0 0; line-height: 1.45; }
.rr-reply { margin-top: .55rem !important; padding: .55rem .75rem; border-left: 3px solid #3bfe2c; background: rgba(59,254,44,.06); border-radius: 0 10px 10px 0; font-size: .95rem; }
.rr-form { margin-top: 1rem; display: grid; gap: .6rem; text-align: left; }
.rr-form label { font-weight: 700; color: #eef1f4; }
.rr-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rr-scale button { padding: .55rem 0; border-radius: 10px; font: 800 1rem var(--font-body, system-ui), sans-serif; color: #dfffe0; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.03) 50%, rgba(0,0,0,.3)), #0a0c0e; border: 1px solid rgba(59,254,44,.45); }
.rr-scale button[aria-pressed="true"] { color: #031a03; background: linear-gradient(180deg, #eaffe6, #3bfe2c 55%, #22c618); border-color: #0b3d07; box-shadow: 0 0 8px rgba(59,254,44,.6); }
.rr-ends { display: flex; justify-content: space-between; font-size: .8rem; color: #9aa2ab; }
.rr-form input, .rr-form textarea { width: 100%; box-sizing: border-box; padding: .65rem .8rem; border-radius: 12px; font: 1rem var(--font-body, system-ui), sans-serif; color: #eef1f4; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.3); }
.rr-form textarea { min-height: 6rem; resize: vertical; }
.rr-note { font-size: .92rem; color: #a9b2ba; }
@media (prefers-reduced-motion: reduce) { .rr-badge.rr-legend { animation: none; } .rr-badge .rr-tip { transition: none; } }
/* Legendary: neon-blue rim + neon-blue halo behind the green star */
.rr-badge.rr-legend::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(circle, rgba(111,208,255,.75) 0%, rgba(30,160,255,.4) 42%, rgba(15,123,255,0) 70%); }
.rr-badge.rr-legend svg path:first-of-type { stroke: #1ea0ff; stroke-width: 2.6; }
.rr-inline { width: 3.4rem; height: 3.4rem; }
.rr-inline .rr-n { font-size: .95rem; }
.rr-sum .rr-label { font-size: 1rem; }
.rr-more { margin: .7rem auto 0; display: block; padding: .5rem 1.1rem; border-radius: 12px; font: 800 .85rem var(--font-body, system-ui), sans-serif; letter-spacing: .08em; color: #3bfe2c; background: #0a0c0e; border: 1.5px solid #3bfe2c; cursor: pointer; }
.rr-list .rr-hide { display: none; }
/* Phoenix (admin) review card + Admin badge */
.rr-item.rr-admin { border-color: #1ea0ff; box-shadow: 0 0 12px rgba(30,160,255,.35); background: linear-gradient(160deg, rgba(30,160,255,.16), rgba(255,255,255,.02)); }
.rr-adminbadge { display: inline-block; margin-left: .45rem; padding: .12rem .5rem; border-radius: 999px; font: 900 .66rem/1.3 var(--font-body, system-ui), sans-serif; letter-spacing: .14em; vertical-align: middle;
  color: #031020; background: linear-gradient(180deg, #e9fbff 0%, #6fd0ff 40%, #1ea0ff 70%, #a6e4ff 100%); border: 1px solid #0b2f57; box-shadow: 0 0 8px rgba(30,160,255,.7); }
/* ride cards: badge in the photo's lower right */
.ride-card__media .rr-badge { right: .5rem; bottom: .5rem; }
.rr-swap { animation: rr-fade .6s ease-out; }
@keyframes rr-fade { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rr-swap { animation: none; } }

/* Rider avatar circle (approved avatar or initials on a chrome badge) - Rider Card 2026-10-16 */
.rr-av { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: .45rem; border-radius: 50%; overflow: hidden; vertical-align: middle; flex: none;
  border: 1.5px solid #c5c9ce; box-shadow: 0 0 0 1px #000, 0 0 6px rgba(59,254,44,.35); background: linear-gradient(145deg, #f5f7fa, #8a9097 45%, #e6e9ec 60%, #5d636a);
  color: #0a0c0e; font: 900 .7rem/1 var(--font-body, system-ui), sans-serif; letter-spacing: .02em; }
.rr-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* REVIEW THIS STOP / RIDE entry button (top of #rr-reviews) - 2026-10-23 */
.rr-cta-wrap { margin: .4rem 0 .9rem; text-align: center; }
.rr-cta { display: inline-flex; justify-content: center; width: 100%; max-width: 22rem; text-decoration: none; }
.rr-cta-wrap .rr-note { margin: .45rem 0 0; }
.rr-gate { margin: .6rem 0 0; padding: .55rem .7rem; border: 1px solid #3bfe2c; border-radius: 8px; background: rgba(59,254,44,.08); color: #e9ffe6; font-weight: 600; }
.rr-gate a { color: #3bfe2c; white-space: nowrap; }
.rr-retry { margin-left: .3rem; background: none; border: 0; padding: 0; color: #3bfe2c; text-decoration: underline; font: inherit; cursor: pointer; }
.rr-form[hidden] { display: none; }
/* Stop page Rider Reviews box: comfortable inner padding + centered summary/empty note (Oct 24) */
#rr-reviews[data-stop] { padding: 1rem; }
@media (min-width: 760px) { #rr-reviews[data-stop] { padding: 1.5rem; } }
#rr-reviews[data-stop] .rr-sum { justify-content: center; }
#rr-reviews[data-stop] .rr-list > li.rr-note { text-align: center; }
