/* bus ticketing: theme, hero, search, trip cards, seat map, e-ticket, maps, conductor, fleet timeline */
:root{--pri:#0e7490;--acc:#f59e0b}
.hero{background:radial-gradient(900px 600px at 12% 0%,color-mix(in srgb,var(--acc) 48%,transparent),transparent 60%),radial-gradient(700px 500px at 92% 100%,color-mix(in srgb,var(--pri) 40%,#38bdf8),transparent 62%),linear-gradient(150deg,#06303d,var(--pri) 58%,#0b2f4a)}
.hero-stage{position:relative;height:330px;margin:6px 0 18px}
.hero-road{position:absolute;left:0;right:0;bottom:0;width:100%;height:auto;max-width:520px;opacity:.95}
.hr-bus{offset-path:path("M14 70 Q90 8 170 44 T306 20");offset-rotate:auto 0deg;animation:drive 9s linear infinite}
@keyframes drive{from{offset-distance:0%}to{offset-distance:100%}}
.hero-pass{position:absolute;left:6px;top:0;width:250px;background:#fff;color:#0f172a;border-radius:16px;padding:14px;box-shadow:0 24px 50px rgba(0,0,0,.4);animation:floaty 7s ease-in-out infinite}
.hero-pass::before,.hero-pass::after{content:"";position:absolute;left:62%;width:16px;height:16px;border-radius:50%;background:#0b2f4a;top:-8px}.hero-pass::after{top:auto;bottom:-8px}
.hpr{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.hpr b{font-size:22px;display:block}.hpr span{color:#64748b;font-weight:700}.hpr .r{text-align:right}.hpm{color:var(--pri)}.hpm .ic{width:26px;height:26px}
.hpg{display:flex;justify-content:space-between;margin:12px 0 8px;border-top:1px dashed #cbd5e1;padding-top:10px;font-size:12px}.hpg small{display:block;color:#64748b}
.hpq{display:flex;align-items:center;justify-content:space-between}.hpq .qrsvg{border-radius:6px}.hpq small{font-size:11px;color:#475569}
.hero-chip.c1{left:240px;top:20px}.hero-chip.c2{left:280px;top:110px;animation-delay:-2s}.hero-chip.c3{left:250px;top:190px;animation-delay:-4s;color:#16a34a}
.hero-chip .ic{color:var(--acc)}
@media (max-width:900px){.hero-stage{height:300px}.hero-chip.c1{left:170px;top:8px}.hero-chip.c2{left:180px;top:150px}.hero-chip.c3{left:150px;top:215px}}
.ok-t{color:var(--ok);font-weight:700}.ta-r{text-align:right}
.brand-mark{background:transparent}
/* search */
.searchcard{padding:12px}.rowsel{display:grid;grid-template-columns:1fr 38px 1fr;gap:6px;align-items:end}.swapb{margin-bottom:10px;background:var(--pri-soft);color:var(--pri)}
.cardx{background:var(--card);border:1px solid var(--line);border-radius:14px}.perks{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px;margin:12px 0 4px;text-align:center}.perks div{display:flex;flex-direction:column;gap:2px;align-items:center;font-size:12px}.perks .ic{width:22px;height:22px;color:var(--pri)}
.poprt{cursor:pointer}.poprt:hover{border-color:var(--pri)}
.dstrip{display:flex;gap:6px;overflow:auto;padding:2px 0 8px;margin-bottom:4px}.dchip{flex:0 0 auto;min-width:50px;border:1px solid var(--line);background:var(--card);border-radius:12px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;gap:1px;font-size:11px;color:var(--muted)}.dchip b{font-size:16px;color:var(--text)}.dchip i{font-style:normal;font-size:10px;color:var(--ok);font-weight:700}.dchip.on{background:var(--pri);border-color:var(--pri);color:#fff}.dchip.on b,.dchip.on i{color:#fff}
/* trip card */
.tcard{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:10px;cursor:pointer;transition:transform .15s var(--ease),box-shadow .2s,border-color .2s}.tcard:hover{border-color:var(--pri);box-shadow:var(--shadow)}.tcard:active{transform:scale(.99)}.tcard.dim{opacity:.55}
.tc-top{display:flex;align-items:center;gap:8px}.tm{display:flex;flex-direction:column;line-height:1.2}.tm b{font-size:18px}.tc-top.big .tm b{font-size:24px}.tc-top.big{gap:12px}
.tl{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;position:relative;min-width:60px}.tl i{display:block;height:2px;width:100%;background:repeating-linear-gradient(90deg,var(--line) 0 5px,transparent 5px 9px)}.tl .ic{width:18px;height:18px;color:var(--pri);position:absolute;bottom:-9px;background:var(--card);padding:0 3px}
.tp{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.tp b{font-size:16px;color:var(--pri)}
.tc-bot{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}.amens{display:flex;gap:4px}.am{width:22px;height:22px;border-radius:6px;background:var(--bg);display:grid;place-items:center;color:var(--muted)}.am .ic{width:13px;height:13px}
.amgrid{display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:12.5px}.amgrid span{display:flex;gap:6px;align-items:center}.amgrid .ic{color:var(--pri)}
.holdbar{background:color-mix(in srgb,var(--acc) 22%,var(--card));color:var(--text);padding:6px 14px;font-size:12.5px;display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line)}.holdbar b{font-variant-numeric:tabular-nums}
.ic.on{color:#ef4444;fill:#ef444455}
.sumrow.now{background:var(--pri-soft);border-radius:8px;padding-left:6px;padding-right:6px;font-weight:700}
/* seat map */
.seatwrap{display:flex;justify-content:center;padding:6px 0}.seatwrap.sm .bus{transform-origin:top center;zoom:.82}
.bus{background:var(--card);border:2px solid var(--line);border-radius:34px 34px 18px 18px;padding:12px 14px 10px;min-width:210px;box-shadow:inset 0 -6px 0 var(--bg);position:relative}
.bus-front{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding:0 4px 8px;border-bottom:2px dashed var(--line);color:var(--muted);font-size:11px}.bus-front .wheel .ic{width:26px;height:26px;color:var(--pri)}.door{border:1px solid var(--line);border-radius:6px;padding:2px 8px}
.bus-back{text-align:center;color:var(--muted);font-size:11px;min-height:14px;margin-top:4px}
.srow{display:flex;gap:6px;align-items:center;justify-content:center;margin-bottom:6px}.rn{width:16px;text-align:center;font-size:10px;color:var(--muted);font-style:normal}
.aisle{width:18px}.bus.suite .aisle{width:24px}.bus.suite .srow{gap:8px}
.seat{width:38px;height:38px;border-radius:10px 10px 6px 6px;border:2px solid color-mix(in srgb,var(--pri) 55%,var(--line));background:color-mix(in srgb,var(--pri) 10%,var(--card));font-weight:800;font-size:12px;color:var(--pri);display:inline-grid;place-items:center;padding:0;position:relative;transition:transform .12s,background .15s}
.seat::after{content:"";position:absolute;left:5px;right:5px;bottom:-5px;height:4px;border-radius:3px;background:currentColor;opacity:.35}
.bus.suite .seat{width:46px;height:44px}
.seat:hover:not(:disabled){transform:translateY(-2px)}
.seat.sel{background:var(--pri);color:#fff;border-color:var(--pri);box-shadow:0 0 0 3px var(--pri-soft);animation:pop .25s}
.seat.taken{background:#cbd5e1;border-color:#cbd5e1;color:#64748b;cursor:not-allowed}.seat.held{background:repeating-linear-gradient(45deg,#fde68a,#fde68a 4px,#fef3c7 4px,#fef3c7 8px);border-color:#f59e0b;color:#92400e;cursor:not-allowed}
.seat.prem{border-color:var(--acc)}.seat.prem:not(.sel):not(.taken)::before{content:"+";position:absolute;top:-6px;right:-4px;width:14px;height:14px;border-radius:50%;background:var(--acc);color:#fff;font-size:10px;line-height:14px}
.seat.boarded{background:var(--ok);border-color:var(--ok);color:#fff}
:root[data-theme=dark] .seat.taken{background:#334155;border-color:#334155;color:#94a3b8}
.legend{display:flex;gap:10px;flex-wrap:wrap;font-size:11.5px;color:var(--muted);margin:6px 0}.legend span{display:flex;gap:5px;align-items:center}.seat.sm{width:16px;height:16px;border-radius:5px;border-width:1.5px}.seat.sm::after,.seat.sm::before{display:none}
.seatno{display:inline-grid;place-items:center;min-width:34px;height:28px;padding:0 6px;border-radius:8px;background:var(--pri-soft);color:var(--pri);font-size:12px;font-weight:800}
/* pay + ticket */
.li.pm{cursor:pointer}.li.pm.on{border-color:var(--pri);background:var(--pri-soft)}.li.pm .ic{width:22px;height:22px;color:var(--pri)}
.spin{width:16px;height:16px;border-radius:50%;border:2px solid #ffffff55;border-top-color:#fff;display:inline-block;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.okbanner{display:flex;gap:10px;align-items:center;background:color-mix(in srgb,var(--ok) 14%,var(--card));border:1px solid var(--ok);border-radius:14px;padding:10px 12px;margin-bottom:10px}.okmark circle{stroke-dasharray:160;stroke-dashoffset:160;animation:draw2 .7s forwards}.okmark path{stroke-dasharray:50;stroke-dashoffset:50;animation:draw2 .5s .5s forwards}@keyframes draw2{to{stroke-dashoffset:0}}
.eticket{background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);position:relative}
.et-head{display:flex;gap:10px;align-items:center;padding:10px 12px;background:var(--pri);color:#fff}.et-head .brand-mark{width:30px;height:30px;background:#ffffff26}
.et-route{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 8px;gap:8px}.et-route b{font-size:26px;display:block;line-height:1}.et-route span{font-weight:700;display:block}.et-route small{color:var(--muted);font-size:10.5px;display:block;max-width:100px}.et-route .r{text-align:right}.et-mid{display:flex;flex-direction:column;align-items:center;color:var(--pri)}.et-mid small{color:var(--muted)}
.et-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 10px;padding:6px 14px 12px;border-bottom:2px dashed var(--line)}.et-grid small{display:block;color:var(--muted);font-size:10.5px}.et-grid b{font-size:13px}.et-grid .w2{grid-column:span 2}
.et-qr{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px}.et-qr .qrsvg{border:6px solid #fff;border-radius:10px;background:#fff}.et-qr small{font-size:10px;color:var(--muted)}
.voided{width:150px;height:150px;border:4px solid var(--bad);color:var(--bad);display:grid;place-items:center;font-size:32px;font-weight:900;border-radius:12px;transform:rotate(-12deg);opacity:.8}
.et-grid::before,.et-grid::after{content:"";position:absolute;left:-9px;width:18px;height:18px;border-radius:50%;background:var(--bg);margin-top:6px}
.actgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.rate button{border:0;background:none;color:var(--line);font-size:inherit;padding:0 3px}.rate button.on{color:#f59e0b}
.tkc-l{display:flex;flex-direction:column;align-items:center;min-width:46px;border-right:1px dashed var(--line);padding-right:10px}.tkc-l b{font-size:16px}
.voucher .vc-l{background:var(--acc);color:#fff;font-weight:800;border-radius:10px;padding:10px 8px;min-width:58px;text-align:center;font-size:13px}
.tiercard{background:linear-gradient(135deg,color-mix(in srgb,var(--tc) 22%,var(--card)),var(--card));border-color:var(--tc)}
.cms{line-height:1.6;font-size:13.5px}.chatbox{display:flex;flex-direction:column}
.onb{display:grid;place-items:center;text-align:center;padding:24px}.onb-in{max-width:280px}.onbic{width:92px;height:92px;border-radius:28px;background:var(--pri-soft);display:grid;place-items:center;margin:0 auto 18px;color:var(--pri)}.onbic .ic{width:44px;height:44px}
.dots{display:flex;justify-content:center;gap:6px;margin:16px 0}.dots i{width:8px;height:8px;border-radius:50%;background:var(--line)}.dots i.on{background:var(--pri);width:22px;border-radius:6px}
/* network map */
.netmap{width:100%;height:auto;display:block}.nm-bg{fill:var(--bg)}.nm-l{fill:none;stroke:color-mix(in srgb,var(--pri) 45%,var(--line));stroke-width:.7;stroke-linecap:round;opacity:.8}
.nm-hl{fill:none;stroke:var(--pri);stroke-width:1.5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1.2s forwards}
.nm-n circle{fill:var(--card);stroke:var(--pri);stroke-width:.8}.nm-n.on circle{fill:var(--pri)}.nm-n text{font-size:3px;fill:var(--text);font-weight:700;paint-order:stroke;stroke:var(--bg);stroke-width:.8px}
.nm-bus .ring{fill:var(--acc);opacity:.25;animation:ringout 1.6s ease-out infinite;transform-origin:center}@keyframes ringout{from{transform:scale(.6);opacity:.5}to{transform:scale(1.8);opacity:0}}
.trk .eta{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;margin:10px 0}.eta small{display:block;color:var(--muted);font-size:10.5px}.eta b{font-size:14px}
/* conductor */
.ring{--p:0;width:64px;height:64px;border-radius:50%;background:conic-gradient(var(--ok) calc(var(--p)*1%),var(--line) 0);display:grid;place-items:center;position:relative;flex:none}.ring::before{content:"";position:absolute;inset:7px;border-radius:50%;background:var(--card)}.ring b,.ring small{position:relative;line-height:1}.ring{align-content:center}.ring b{font-size:17px}.ring small{font-size:10px;color:var(--muted)}
.scanview{height:96px;border-radius:14px;background:#0b1220;display:grid;place-items:center;color:#ffffffaa;position:relative;overflow:hidden}.scanview .ic{width:46px;height:46px}.scanview .sl{position:absolute;left:8%;right:8%;height:2px;background:#22c55e;box-shadow:0 0 12px #22c55e;animation:scan 1.8s ease-in-out infinite}
.scanres{border-width:2px}.scanres.ok{border-color:var(--ok);background:color-mix(in srgb,var(--ok) 8%,var(--card))}.scanres.ok .ic{color:var(--ok)}.scanres.bad{border-color:var(--bad);background:color-mix(in srgb,var(--bad) 8%,var(--card))}.scanres.bad .ic{color:var(--bad)}
.cvhead{padding:10px}
/* admin extras */
.loadbar{display:inline-block;width:70px;height:7px;background:var(--bg);border-radius:6px;overflow:hidden;vertical-align:middle;margin-right:6px}.loadbar i{display:block;height:100%;border-radius:6px}
.daychips{display:inline-flex;gap:3px}.daychips i{width:18px;height:18px;border-radius:5px;background:var(--bg);color:var(--muted);font-style:normal;font-size:10px;display:grid;place-items:center;font-weight:700}.daychips i.on{background:var(--pri);color:#fff}
.grid.t td,.t.grid td{text-align:center}.t.grid th{text-align:center;font-size:11px}.t.grid td:first-child,.t.grid th:first-child{text-align:left;white-space:nowrap}
.gcell{border:0;border-radius:8px;min-width:46px;padding:4px 6px;font-weight:700;font-size:12px;background:linear-gradient(90deg,color-mix(in srgb,var(--ok) 35%,var(--card)) var(--p,0%),var(--bg) 0);color:var(--text)}.gcell.nc{outline:2px solid var(--warn)}.gcell.x{background:color-mix(in srgb,var(--bad) 20%,var(--card));color:var(--bad)}
.gcell.fare.up{background:color-mix(in srgb,var(--warn) 24%,var(--card))}.gcell.fare.dn{background:color-mix(in srgb,var(--ok) 24%,var(--card))}.gcell.fare{background:var(--bg)}
.rost{display:block;min-width:30px;height:22px;border-radius:6px;background:color-mix(in srgb,var(--pri) calc(var(--h)*70%),var(--bg));font-style:normal;font-size:11px;line-height:22px;color:var(--text)}
.meter.sm{height:6px;margin:0 0 3px;width:90px}
.tlwrap{overflow-x:auto}.tlsvg{min-width:760px;width:100%;height:auto;display:block}.tl-row{fill:transparent}.tl-row.alt{fill:var(--bg)}.tl-lab{font-size:11px;fill:var(--text)}.tl-lab.mt{fill:var(--muted)}.tl-mt{fill:repeating-linear-gradient(45deg,#fecaca,#fecaca 3px,transparent 3px 6px);fill:#dc262622}.tl-bar{font-size:10px;fill:#fff;font-weight:700;pointer-events:none}.tl-grid{stroke:var(--line);stroke-width:.6}.tl-tick{font-size:9.5px;fill:var(--muted)}.tl-now{stroke:var(--bad);stroke-width:1.6;stroke-dasharray:3 3}
.dotc{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:4px}
.stars i{font-style:normal}
@media (max-width:480px){.rowsel{grid-template-columns:1fr 34px 1fr}.seat{width:34px;height:34px}.tlsvg{min-width:680px}}

.kpis{grid-template-columns:repeat(auto-fit,minmax(168px,1fr))}.ta-r .small{display:block}
.dstrip,.chips,.pscroll,.tablewrap,.tlwrap,.modal{scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.dstrip::-webkit-scrollbar,.tablewrap::-webkit-scrollbar,.tlwrap::-webkit-scrollbar{height:6px}.dstrip::-webkit-scrollbar-thumb,.tablewrap::-webkit-scrollbar-thumb,.tlwrap::-webkit-scrollbar-thumb{background:var(--line);border-radius:6px}
