/* Taxi page: 3D ride picker, synced app screens, taxi fare meter and road signboards. */
:root { --rd-y: #ffc400; --rd-k: #111111; --rd-ink: #121212; --rd-mut: #5f5a4a; --rd-cream: #fffae6; --rd-line: #ece4c4; --rd-ease: cubic-bezier(.2, .8, .2, 1); }
.rd-note { margin: 14px 0 0; text-align: center; font-size: .8rem; color: var(--rd-mut); }
body:has(.rd-pick, .rd-sync) main .sv-sec .sv-title::before { content: none !important; display: none !important; }

/* ---------- 3D ride type picker ---------- */
.rd-pick { margin-top: 26px; }
.rd-gears { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 20px; padding: 6px; border-radius: 18px; background: var(--rd-k); box-shadow: 0 20px 30px -20px rgba(0,0,0,.6); }
.rd-gears button { position: relative; padding: 10px 16px; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.75); font: 800 .86rem var(--sv-font); cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.rd-gears button:hover { color: #fff; }
.rd-gears button[aria-selected="true"] { background: var(--rd-y); color: var(--rd-k); transform: translateY(-2px); }
.rd-gears button:focus-visible { outline: 2px solid var(--rd-y); outline-offset: 2px; }
.rd-gears em { position: absolute; top: -9px; right: -4px; padding: 2px 7px; border-radius: 999px; background: #22c55e; color: #fff; font: 700 .58rem var(--sv-font); font-style: normal; }
.rd-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; align-items: center; min-height: 360px; padding: 20px 30px; border-radius: 30px; overflow: hidden; background: radial-gradient(80% 90% at 30% 40%, #2a2a2a, #0b0b0b); }
.rd-road { position: absolute; left: -10%; right: -10%; bottom: 0; height: 46%; background: linear-gradient(#262626, #161616); transform: perspective(500px) rotateX(55deg); transform-origin: 50% 100%; }
.rd-lane { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: repeating-linear-gradient(90deg, var(--rd-y) 0 60px, transparent 60px 110px); animation: rdLane .7s linear infinite; }
@keyframes rdLane { to { background-position: -110px 0; } }
.rd-cars { position: relative; z-index: 2; display: grid; place-items: center; min-height: 300px; }
.rd-car { position: relative; display: grid; place-items: center; width: 100%; }
.rd-car[hidden] { display: none; }
.rd-car img { position: relative; z-index: 2; width: min(460px, 100%); height: auto; max-height: 280px; object-fit: contain; filter: drop-shadow(0 26px 18px rgba(0,0,0,.6)); animation: rdDriveIn .8s var(--rd-ease) both, rdIdle 2.4s ease-in-out .8s infinite; }
.rd-car-ph { display: grid; place-items: center; width: 280px; height: 140px; border-radius: 30px; background: var(--rd-y); color: var(--rd-k); font: 800 1.4rem var(--sv-font); }
.rd-shadow { position: absolute; bottom: 4px; left: 15%; right: 15%; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.75), transparent); }
@keyframes rdDriveIn { from { opacity: 0; transform: translateX(60%) skewX(-8deg); filter: blur(4px) drop-shadow(0 26px 18px rgba(0,0,0,.6)); } 70% { transform: translateX(-3%); } to { opacity: 1; transform: none; } }
@keyframes rdIdle { 50% { transform: translateY(-3px); } }
.rd-spec { position: relative; z-index: 3; padding: 24px; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 30px 50px -30px rgba(0,0,0,.7); animation: rdIn .45s var(--rd-ease) both; }
.rd-spec[hidden] { display: none; }
.rd-spec h3 { margin: 0 0 6px; font: 800 1.6rem var(--sv-font); color: var(--rd-ink) !important; }
.rd-spec > p { margin: 0 0 16px; color: var(--rd-mut); }
.rd-spec dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rd-spec dl div { padding: 10px; border-radius: 12px; background: var(--rd-cream); text-align: center; }
.rd-spec dt { font: 700 .62rem var(--sv-font); letter-spacing: .08em; text-transform: uppercase; color: var(--rd-mut); }
.rd-spec dd { margin: 4px 0 0; font: 800 1rem var(--sv-font); color: var(--rd-ink); }
@keyframes rdIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Synced app screens ---------- */
.rd-sync { margin-top: 26px; }
.rd-scrub { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; margin-bottom: 24px; padding: 6px; border-radius: 18px; background: var(--rd-k); }
.rd-scrub-fill { position: absolute; left: 6px; top: 6px; bottom: 6px; width: calc((100% - 12px) * (var(--s, 0) + 1) / var(--n)); border-radius: 13px; background: linear-gradient(90deg, rgba(255,196,0,.25), rgba(255,196,0,.5)); transition: width .6s var(--rd-ease); pointer-events: none; }
.rd-scrub button { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.8); font: 700 .78rem var(--sv-font); text-align: left; cursor: pointer; }
.rd-scrub button b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: .7rem; }
.rd-scrub button[aria-selected="true"] { color: #fff; }
.rd-scrub button[aria-selected="true"] b { background: var(--rd-y); color: var(--rd-k); }
.rd-scrub button:focus-visible { outline: 2px solid var(--rd-y); outline-offset: 2px; }
.rd-screens { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1400px; }
.rd-links { position: absolute; left: 0; right: 0; top: 64px; width: 100%; height: 10px; z-index: 0; overflow: visible; pointer-events: none; }
.rd-links path { fill: none; stroke: var(--rd-y); stroke-width: 2; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; animation: rdDash 1s linear infinite; }
@keyframes rdDash { to { stroke-dashoffset: -12; } }
.rd-screen { position: relative; z-index: 1; padding: 18px; border-radius: 26px; background: #fff; border: 1px solid var(--rd-line); box-shadow: 0 30px 50px -36px rgba(0,0,0,.5); transform: rotateY(calc((var(--k) - 1) * -12deg)); transition: transform .5s var(--rd-ease); }
.rd-screen.is-mid { background: var(--rd-k); color: #fff; transform: translateZ(40px); }
.rd-screen header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rd-screen header b { font: 800 1rem var(--sv-font); }
.rd-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(34,197,94,.14); color: #16a34a; font: 700 .64rem var(--sv-font); }
.rd-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: rdBlink 1.2s infinite; }
@keyframes rdBlink { 50% { opacity: .3; } }
.rd-screen-now { min-height: 64px; padding: 12px 14px; border-radius: 16px; background: var(--rd-y); color: var(--rd-k); font: 800 .95rem/1.35 var(--sv-font); }
.rd-screen-now p { margin: 0; animation: rdIn .4s var(--rd-ease) both; }
.rd-screen h3 { margin: 16px 0 8px; font: 700 .86rem var(--sv-font); color: inherit !important; opacity: .7; }
.rd-screen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rd-screen li { padding: 8px 10px; border-radius: 10px; background: var(--rd-cream); font: 600 .78rem var(--sv-font); color: var(--rd-ink); }
.rd-screen.is-mid li { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Taxi fare meter (simulator style) ---------- */
body:has(.rd-meter) main .rd-meter-sec .sim { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 30px !important; align-items: center; }
.rd-meter-wrap { display: grid; place-items: center; perspective: 1200px; padding: 30px 0; }
.rd-meter { position: relative; width: min(380px, 100%); transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -14deg)); transition: transform .5s var(--rd-ease); }
.rd-meter-flag { width: 46%; margin: 0 auto -6px; padding: 8px 0 14px; border-radius: 14px 14px 0 0; background: linear-gradient(#ffd84d, var(--rd-y)); text-align: center; box-shadow: 0 0 0 rgba(255,196,0,0); transition: box-shadow .4s; }
.rd-meter-flag span { font: 900 1.1rem var(--sv-font); letter-spacing: .3em; color: var(--rd-k); }
.rd-meter.hired .rd-meter-flag { box-shadow: 0 -10px 40px rgba(255,196,0,.7); }
.rd-meter-face { position: relative; padding: 18px; border-radius: 22px; background: linear-gradient(160deg, #2b2b2b, #0d0d0d); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 40px 60px -30px rgba(0,0,0,.8); color: #fff; }
.rd-meter-brand { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font: 800 .8rem var(--sv-font); color: rgba(255,255,255,.7); }
.rd-meter-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.rd-meter.hired .rd-meter-dot { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.rd-led { padding: 14px 16px; border-radius: 14px; background: #1b0f00; box-shadow: inset 0 0 0 2px #000, inset 0 0 30px rgba(255,140,0,.15); text-align: right; }
.rd-led small, .rd-led-row small { display: block; font: 700 .62rem var(--sv-font); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,196,0,.55); text-align: left; }
.rd-led b { display: block; font: 700 2.6rem/1.1 'Courier New', ui-monospace, monospace; color: #ffb300; text-shadow: 0 0 10px rgba(255,170,0,.8), 0 0 2px #ffcc33; letter-spacing: .04em; }
.rd-led-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.rd-led-row > div { padding: 10px 12px; border-radius: 12px; background: #1b0f00; box-shadow: inset 0 0 0 2px #000; }
.rd-led-row b { display: block; font: 700 1rem 'Courier New', ui-monospace, monospace; color: #ffb300; text-shadow: 0 0 8px rgba(255,170,0,.7); }
.rd-meter-meta { margin: 10px 0 8px; font-size: .78rem; color: rgba(255,255,255,.6); }
.rd-meter-bar { display: block; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.rd-meter-bar i { display: block; height: 100%; width: 4%; border-radius: inherit; background: var(--rd-y); transition: width .4s; }
.rd-meter-keys { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.rd-meter-keys i { width: 46px; height: 14px; border-radius: 6px; background: linear-gradient(#3a3a3a, #1a1a1a); box-shadow: 0 4px 0 #000; }

/* ---------- Road signboards (timeline style) ---------- */
.rd-signs { position: relative; margin-top: 30px; padding-bottom: 40px; }
.rd-signs-road { position: absolute; left: -4%; right: -4%; bottom: 0; height: 90px; border-radius: 20px; background: linear-gradient(#2b2b2b, #151515); transform: perspective(600px) rotateX(48deg); transform-origin: 50% 100%; overflow: hidden; }
.rd-signs-car { position: absolute; top: 50%; left: -60px; width: 50px; height: 22px; margin-top: -11px; border-radius: 8px 12px 6px 6px; background: var(--rd-y); box-shadow: 0 0 18px rgba(255,196,0,.7); }
.rd-signs.in .rd-signs-car { animation: rdCar 5s linear forwards; }
@keyframes rdCar { to { left: calc(100% + 60px); } }
.rd-boards { position: relative; list-style: none; margin: 0; padding: 0 0 60px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; }
.rd-boards li { display: grid; justify-items: center; transform-origin: 50% 100%; transform: perspective(800px) rotateX(-80deg); opacity: 0; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1), opacity .4s; }
.rd-signs.in .rd-boards li { transform: none; opacity: 1; transition-delay: calc(.6s + var(--i) * (4s / var(--n))); }
.rd-board { width: 100%; padding: 18px; border-radius: 16px; background: #0f7a3d; color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 3px #0f7a3d, 0 20px 30px -18px rgba(0,0,0,.6); }
.rd-board b { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--rd-y); color: var(--rd-k); font: 800 .72rem var(--sv-font); }
.rd-board h3 { margin: 8px 0 6px; font: 800 1rem var(--sv-font); color: #fff !important; }
.rd-board p { margin: 0; font-size: .82rem; line-height: 1.5; color: rgba(255,255,255,.88) !important; }
.rd-pole { width: 8px; height: 60px; background: linear-gradient(90deg, #9aa0a6, #e5e7eb, #9aa0a6); border-radius: 0 0 3px 3px; }

@media (max-width: 900px) {
  .rd-stage { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
  .rd-cars { min-height: 220px; }
  .rd-screens { grid-template-columns: minmax(0, 1fr); }
  .rd-screen, .rd-screen.is-mid { transform: none; }
  .rd-links { display: none; }
  .rd-scrub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-scrub-fill { display: none; }
  body:has(.rd-meter) main .rd-meter-sec .sim { grid-template-columns: minmax(0, 1fr) !important; }
  .rd-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .rd-gears button { padding: 8px 11px; font-size: .78rem; }
  .rd-spec dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rd-led b { font-size: 2rem; }
  .rd-boards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .rd-lane, .rd-car img, .rd-links path, .rd-live i, .rd-signs.in .rd-signs-car { animation: none; }
  .rd-boards li { transform: none; opacity: 1; transition: none; }
  .rd-meter { transition: none; }
}

/* Shared 3D sections (deck, tech board, FAQ) in taxi yellow and black. */
body:has(.rd-pick) :is(.mt-fan-sec, .mt-board-sec, .mt-faq-sec) { --mt-red: #e0a800; --mt-wine: #111111; --mt-ink: #121212; --mt-mut: #5f5a4a; --mt-cream: #fffae6; --mt-line: #ece4c4; }
body:has(.rd-pick) .mt-fan-face.is-front { background: radial-gradient(130% 80% at 20% 0%, #2d2d2d, #111 60%, #000); border-top: 4px solid #ffc400; }
body:has(.rd-pick) .mt-fan-face i { color: #ffc400; }
body:has(.rd-pick) .mt-fan-face.is-back li::before { background: #ffc400; color: #111; }
body:has(.rd-pick) .mt-hub { background: radial-gradient(circle at 35% 30%, #ffd84d, #ffc400 55%, #8a6a00); color: #111; box-shadow: 0 0 0 12px rgba(255,196,0,.12), 0 0 0 26px rgba(255,196,0,.06), 0 40px 60px -26px rgba(0,0,0,.6); }
body:has(.rd-pick) .mt-hub small { color: rgba(17,17,17,.7); }
body:has(.rd-pick) .mt-hub::before { border-color: rgba(255,196,0,.5); }
body:has(.rd-pick) .mt-node-head i { background: linear-gradient(135deg, #ffc400, #e0a800); color: #111; }
body:has(.rd-pick) .mt-wire { stroke: rgba(17,17,17,.25); }
body:has(.rd-pick) .mt-pulse { fill: #ffc400; filter: drop-shadow(0 0 6px rgba(255,196,0,.9)); }
body:has(.rd-pick) .mt-board-plane { background-image: radial-gradient(70% 90% at 50% 50%, rgba(255,255,255,.95), rgba(255,250,230,.75)), repeating-linear-gradient(0deg, rgba(17,17,17,.05) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, rgba(17,17,17,.05) 0 1px, transparent 1px 32px); }

/* LottieFiles animations (taxi page). */
.rd-screen { padding-top: 22px; }
.rd-lottie { position: absolute; top: -34px; right: 14px; width: 74px; height: 74px; z-index: 2; filter: drop-shadow(0 10px 12px rgba(0,0,0,.25)); pointer-events: none; }
.rd-screen header { padding-right: 70px; }
.rd-signs-car.is-lottie { position: absolute; z-index: 2; bottom: 4px; left: -180px; width: 180px; height: 102px; margin: 0; border-radius: 0; background: none; box-shadow: none; }
.rd-signs.in .rd-signs-car.is-lottie { animation: rdCarL 6s linear forwards; }
@keyframes rdCarL { to { left: calc(100% + 40px); } }
@media (max-width: 520px) { .rd-signs-car.is-lottie { width: 130px; height: 74px; } .rd-lottie { width: 58px; height: 58px; top: -26px; } }
@media (prefers-reduced-motion: reduce) { .rd-signs-car.is-lottie { left: 10px; animation: none !important; } }
.rd-lottie { padding: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2d2d2d, #0b0b0b); box-shadow: 0 0 0 3px #ffc400, 0 12px 20px -8px rgba(0,0,0,.5); }
.rd-signs-car.is-lottie { top: auto; bottom: -30px; }
@media (max-width: 520px) { .rd-signs-car.is-lottie { bottom: -20px; } }
