:root{--red:#e3221c;--red-d:#c41a15;--red-l:#fdeaea;--navy:#131a2a;--ink:#1b2130;--muted:#6b7385;--line:#e6e9ef;--bg:#f4f5f8;--white:#fff;--green:#12915a;--amber:#b45309;--amber-l:#fef3c7}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
h1,h2,h3,p{margin-top:0}
.wrap{max-width:1120px;margin:0 auto;padding:0 16px}

/* top bar + header */
.topbar{background:var(--navy);color:#c9cfdc;font-size:11px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:28px}
.topbar a:hover{color:#fff}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{display:flex;align-items:center;height:44px}
.logo img{height:40px;width:auto;display:block}
.site-footer .logo{height:auto;margin-bottom:6px}.site-footer .logo img{height:46px}
.logo-text{font-weight:900;font-size:22px;letter-spacing:.5px;color:#ffc400;-webkit-text-stroke:1px var(--red);text-shadow:1px 1px 0 var(--red);line-height:1}
.logo-text i{display:block;font-size:14px;color:var(--red);-webkit-text-stroke:0;text-shadow:none;margin-top:-1px}
.header-actions{display:flex;align-items:center;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;background:var(--red);color:#fff;font-weight:700;padding:11px 18px}
.btn:hover{background:var(--red-d)}
.btn:disabled{background:#d9dce3;color:#fff;cursor:not-allowed}
.btn.sm{padding:8px 14px;font-size:12px}
.btn.block{width:100%;padding:14px}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}
.btn.ghost:hover{background:#f6f7fa}
.menu-btn{width:38px;height:36px;border:1px solid var(--line);border-radius:8px;background:#f8f9fb;display:grid;place-items:center}
.menu-btn span,.menu-btn span:before,.menu-btn span:after{display:block;width:16px;height:2px;background:var(--ink);border-radius:2px;content:"";position:relative}
.menu-btn span:before{position:absolute;top:-5px}
.menu-btn span:after{position:absolute;top:5px}
.menu{position:absolute;right:16px;top:62px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px #131a2a22;min-width:200px;padding:6px;z-index:50}
.menu[hidden]{display:none}
.menu a{display:block;padding:11px 12px;border-radius:8px;font-weight:600}
.menu a:hover{background:var(--bg)}

/* hero + search */
.hero{position:relative;color:#fff;background:linear-gradient(180deg,#131a2a99,#131a2af0),var(--hero,none) center/cover,#131a2a;padding:34px 0 120px}
.hero h1{font-size:clamp(26px,5vw,40px);line-height:1.15;font-weight:800;margin:10px 0 12px;max-width:640px}
.hero p{color:#d5dae6;max-width:560px;font-size:15px}
.hero-kicker{font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#e6e9f1;margin:0}
.search{position:relative;margin:-92px auto 0;background:#fff;border-radius:20px;box-shadow:0 18px 50px #131a2a1f;padding:14px;max-width:760px}
.tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:14px}
.tab{border:0;background:transparent;padding:14px;border-radius:10px;font-weight:700;color:var(--muted);font-size:16px}
.tab.on{background:var(--red-l);color:var(--red)}
.fld{margin-bottom:6px;position:relative}
.fld label{display:block;font-size:13px;font-weight:700;color:var(--muted);margin:10px 4px 6px;letter-spacing:.03em;text-transform:uppercase}
.ctl{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#f8f9fb;border-radius:12px;padding:0 14px;height:52px}
.ctl svg{flex:none}
.ctl select,.ctl input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:16px;color:var(--ink);height:100%;outline:0;appearance:none;-webkit-appearance:none}
.ctl select:invalid{color:#8b93a5}
.swap-row{display:flex;align-items:center;gap:10px;margin:8px 0 0}
.swap-row:before,.swap-row:after{content:"";height:1px;background:var(--line);flex:1}
.swap{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:18px;display:grid;place-items:center}
.search .btn{margin-top:16px;font-size:16px;border-radius:12px;box-shadow:0 8px 20px #e3221c33}
.pay-via{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);text-align:center;color:var(--red);font-weight:800;font-size:16px;display:flex;justify-content:center;align-items:center;gap:12px}
.mpesa{display:inline-block;font-weight:900;color:#3aa935;font-size:15px;letter-spacing:.5px;border:2px solid #3aa935;border-radius:6px;padding:0 6px}
.airtel{display:inline-block;background:var(--red);color:#fff;font-size:9px;font-weight:800;padding:8px 6px;border-radius:4px}
.feedback{min-height:20px;color:var(--red);font-size:13px;margin:10px 4px 0;text-align:center}

/* sections */
.section{padding:36px 0}
.section h2{font-size:26px;font-weight:800;text-align:center;margin-bottom:6px}
.section .sub{text-align:center;color:var(--muted);margin-bottom:24px}
.route-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.route-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 4px 18px #131a2a10;display:block}
.route-img{height:150px;position:relative;background:#26324f center/cover no-repeat}
.route-img.c1{background:linear-gradient(135deg,#1f6f8b,#0b2e3f)}
.route-img.c2{background:linear-gradient(135deg,#7a2e2e,#2a1212)}
.route-img.c3{background:linear-gradient(135deg,#2f6b3f,#0f2a18)}
.route-img.c4{background:linear-gradient(135deg,#8a5a1f,#2b1a08)}
.route-img.c5{background:linear-gradient(135deg,#4b3d8f,#17123a)}
.badge{position:absolute;left:14px;top:14px;background:#131a2acc;color:#fff;border-radius:999px;padding:6px 12px;font-weight:700;font-size:12px}
.route-body{padding:16px 18px 18px}
.route-body h3{font-size:18px;font-weight:600;margin-bottom:14px}
.route-body span{color:var(--muted);font-weight:600}
.route-body span b{color:var(--red)}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:26px;text-align:center}
.feature i{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;margin:0 auto 14px;font-style:normal;font-size:26px}
.feature h3{font-size:19px;margin-bottom:6px}
.feature p{color:var(--muted);max-width:300px;margin:0 auto}

/* results */
.results-head{background:var(--navy);color:#fff;padding:14px 0}
.results-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px}
.results-head h1{font-size:22px;font-weight:600;margin:0}
.results-head h1 em{font-style:normal;color:#ffb81c;margin:0 6px}
.results-head small{color:#9aa3b8;display:block;margin-top:4px}
.edit-search{background:#fff;color:var(--ink);border:0;border-radius:8px;padding:10px 14px;font-weight:700}
.datestrip{display:grid;grid-template-columns:28px repeat(4,1fr) 28px;gap:8px;margin:16px 0 12px}
.datestrip button{border:0;background:#fff;border-radius:8px;padding:8px 4px;color:var(--muted);font-size:11px;line-height:1.3}
.datestrip button b{display:block;font-size:17px;color:var(--ink)}
.datestrip button.on{background:var(--red);color:#fff}
.datestrip button.on b{color:#fff}
.datestrip button:disabled{opacity:.4}
.datestrip .arrow{background:transparent;font-size:18px}
.count-row{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;margin-bottom:12px}
.bus-list{display:grid;gap:12px;padding-bottom:40px}
.bus{background:#fff;border-radius:14px;padding:16px;display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;box-shadow:0 2px 10px #131a2a0a}
.bus .t{font-size:20px;font-weight:800}
.bus .t small{display:block;font-size:11px;font-weight:500;color:var(--muted)}
.bus .mid{text-align:center;color:var(--muted);font-size:11px;min-width:0}
.bus .mid b{display:block;color:var(--ink);font-size:11px;letter-spacing:.02em;margin-bottom:4px;text-transform:uppercase}
.bus .mid i{display:block;border-top:1px solid #cdd2dd;margin:6px 0}
.bus .price{text-align:right;font-size:12px;color:var(--muted)}
.bus .price b{font-size:15px;color:var(--ink);margin-left:4px}
.bus .price .btn{margin-top:8px}
.seats-left{display:inline-block;margin-top:6px;background:var(--amber-l);color:var(--amber);border-radius:999px;font-size:11px;font-weight:700;padding:3px 9px}
.empty{background:#fff;border-radius:14px;padding:34px 18px;text-align:center;color:var(--muted)}
.empty b{display:block;color:var(--ink);font-size:17px;margin-bottom:6px}
@media(max-width:640px){
}

/* sheets */
.sheet-back{position:fixed;inset:0;background:#131a2a99;z-index:100;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:#fff;width:100%;max-width:560px;max-height:92dvh;border-radius:22px 22px 0 0;display:flex;flex-direction:column;overflow:hidden}
.sheet-head{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.sheet-head h3{margin:0;font-size:15px}
.sheet-head small{display:block;color:var(--muted);font-size:11px}
.sheet-head small.ok{color:var(--green);font-weight:700}
.sheet-head .x{margin-left:auto;width:32px;height:32px;border-radius:50%;border:0;background:var(--bg);font-size:18px}
.sheet-body{overflow:auto;padding:14px 16px;flex:1}
.sheet-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--line)}
.sheet-foot small{display:block;color:var(--muted);font-size:11px}
.sheet-foot b{font-size:18px}
.bus-map{background:#f8f9fb;border:1px solid var(--line);border-radius:14px;padding:18px 12px 20px}
.wheel{width:26px;height:26px;border:2px solid #b8bfce;border-radius:50%;margin:0 0 14px auto}
.srow{display:flex;justify-content:center;gap:10px;margin-bottom:10px}
.aisle{width:34px}
.seat{width:34px;height:34px;border-radius:8px;border:1.5px solid #cfd4df;background:#fff;font-size:11px;font-weight:700;color:var(--ink);border-bottom-width:4px}
.seat.ghost{visibility:hidden}
.seat.taken{background:#d9dce4;border-color:#d9dce4;color:#8b93a5;cursor:not-allowed}
.seat.mine{background:var(--red);border-color:var(--red-d);color:#fff}
.legend{display:flex;justify-content:space-around;gap:6px;margin-top:14px;font-size:11px;color:var(--muted)}
.legend span{display:grid;justify-items:center;gap:5px}
.legend i{width:24px;height:24px;border-radius:6px;border:1.5px solid #cfd4df;background:#fff}
.legend i.m{background:var(--red);border-color:var(--red-d)}
.legend i.t{background:#d9dce4;border-color:#d9dce4}
.pt-title{display:flex;align-items:center;gap:8px;font-weight:800;font-size:12px;margin:14px 0 8px}
.pt-title:first-child{margin-top:0}
.pt-title b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--green);color:#fff;font-size:11px}
.pt-title b.r{background:var(--red)}
.pt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#f8f9fb;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:8px}
.pt.on{border-color:var(--red);background:var(--red-l)}
.pt .dot{width:18px;height:18px;border-radius:50%;border:2px solid #c3c9d6}
.pt.on .dot{border:5px solid var(--red)}
.pt b{display:block;font-size:13px}
.pt small{color:var(--muted);font-size:11px}
.pt .tm{margin-left:auto;font-weight:800;color:var(--green);font-size:12px}
.note{background:#fffbe8;border:1px solid #f5e6a8;color:#8a6a00;border-radius:10px;padding:11px 12px;font-size:12px;margin-top:6px}

/* checkout */
.steps{display:grid;grid-template-columns:auto 1fr auto 1fr auto;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:12px 14px;margin:14px 0;font-size:12px;font-weight:600}
.steps .s{display:flex;align-items:center;gap:8px}
.steps .n{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;border:1px solid #cfd4df;color:var(--muted);font-size:11px}
.steps .done .n{background:var(--green);border-color:var(--green);color:#fff}
.steps .cur .n{background:var(--red);border-color:var(--red);color:#fff}
.steps .ln{height:1px;background:#cfd4df}
.steps .ln.done{background:var(--green)}
.back{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:600;margin-top:12px;background:none;border:0;padding:0}
.cols{display:grid;grid-template-columns:1fr 360px;gap:18px;align-items:start;padding-bottom:40px}
@media(max-width:860px){.cols{grid-template-columns:1fr}}
.card{background:#fff;border-radius:14px;padding:16px;margin-bottom:14px;box-shadow:0 2px 10px #131a2a08}
.card h3{font-size:14px;margin-bottom:12px}
.trip-strip{display:flex;align-items:center;gap:12px}
.trip-strip b{display:block}
.trip-strip small{color:var(--muted);font-size:11px}
.pill{margin-left:auto;background:var(--red-l);color:var(--red);font-weight:700;border-radius:999px;font-size:11px;padding:5px 10px;white-space:nowrap}
.pill.ok{background:#e4f6ec;color:var(--green)}
.pill.warn{background:var(--amber-l);color:var(--amber)}
.pax{border:1px solid var(--line);border-radius:12px;margin-bottom:10px;overflow:hidden}
.pax.open{border-color:var(--red)}
.pax-h{display:flex;align-items:center;gap:10px;padding:12px;cursor:pointer}
.pax-h .num{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--red-l);color:var(--red);font-weight:800;font-size:12px}
.pax-h.ok .num{background:#e4f6ec;color:var(--green)}
.pax-h b{display:block;font-size:13px}
.pax-h small{color:var(--muted);font-size:11px}
.pax-f{padding:0 12px 14px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pax-f .full{grid-column:1/-1}
.pax-f label{display:block;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:5px}
.pax-f label em{color:var(--red);font-style:normal}
.in{width:100%;height:42px;border:1px solid #d8dce6;border-radius:8px;padding:0 10px;font:inherit;font-size:13px;background:#fff;color:var(--ink)}
.in:focus{outline:2px solid #e3221c33;border-color:var(--red)}
.phone{display:grid;grid-template-columns:96px 1fr;gap:6px}
.btn.dark{background:var(--navy)}
.pts-card{display:flex;justify-content:space-between;align-items:center;gap:12px}
.pts-card small{display:block;color:var(--muted);font-size:10px}
.pts-card b{font-size:13px}
.sum-row{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:12px;color:var(--muted)}
.sum-row b{color:var(--ink)}
.sum-trip{border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:12px}
.sum-trip .tag{display:inline-block;background:var(--red-l);color:var(--red);font-size:9px;font-weight:800;padding:3px 7px;border-radius:4px;margin-bottom:8px;letter-spacing:.06em}
.total{display:flex;justify-content:space-between;align-items:center;margin:8px 0 12px;font-weight:700}
.total b{color:var(--red);font-size:22px}
.secure{text-align:center;color:var(--muted);font-size:11px;margin-top:8px}
.method{display:flex;align-items:center;gap:12px;border:1px solid var(--red);background:#fff6f6;border-radius:10px;padding:12px;margin-bottom:14px}
.method .dot{width:18px;height:18px;border-radius:50%;border:5px solid var(--red)}
.method b{display:block;font-size:13px}.method small{color:var(--muted);font-size:11px}
.method .mpesa{margin-left:auto}
.amount-box{display:flex;justify-content:space-between;align-items:center;background:var(--bg);border-radius:10px;padding:14px;margin-bottom:12px}
.amount-box b{font-size:17px}
.chk{display:flex;gap:10px;align-items:flex-start;margin:12px 0;font-size:12px;color:var(--muted)}
.chk input{margin-top:2px;accent-color:var(--red);width:16px;height:16px}
.err{color:var(--red);font-size:12px;margin:8px 0 0;min-height:16px}
.hint{font-size:11px;color:var(--muted);margin:6px 0 0}

/* footer */
.site-footer{background:var(--navy);color:#b9c0d0;padding:36px 0 28px;margin-top:20px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:26px}
.site-footer h4{color:#fff;font-size:16px;margin:0 0 14px}
.site-footer p{font-size:12px;max-width:300px}
.site-footer a{display:block;font-size:12px;margin-bottom:10px}
.site-footer a:hover{color:#fff}
.copy{border-top:1px solid #232c42;margin-top:24px;padding-top:16px;font-size:11px}

/* logo on payment card + sheets */
.pay-logo{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.pay-logo span{font-size:11px;font-weight:700;color:var(--muted)}
.sheet-head>img{flex:none}

/* chat page: full-screen, keyboard-safe */
.chat-page{margin:0;overflow:hidden;background:#e9edf3}
.capp{display:flex;flex-direction:column;height:100dvh;max-width:640px;margin:0 auto;background:#f4f6fa;box-shadow:0 0 40px #131a2a14;overflow:hidden}
.chead{display:flex;align-items:center;gap:10px;padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));background:var(--navy);color:#fff;flex:none}
.cback{color:#fff;font-size:30px;line-height:1;padding:0 8px 4px;text-decoration:none}
.cav{height:38px;width:auto;background:#fff;border-radius:10px;padding:3px 8px}
.ctitle b{display:block;font-size:15px}.ctitle small{display:block;color:#aab2c6;font-size:12px;margin-top:1px}
.csum{flex:none;background:#fff;border-bottom:1px solid var(--line)}
.csum[hidden],.cident[hidden],.csend[hidden],.sumbody[hidden]{display:none}
.sumbar{width:100%;display:flex;align-items:center;gap:10px;padding:8px 14px;background:#fff6f6;border:0;text-align:left;font:inherit;cursor:pointer}
.sumbar .card-logo{height:26px;margin:0}
.sumtxt{flex:1;min-width:0}.sumtxt b{display:block;font-size:13px;color:var(--red)}.sumtxt small{display:block;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sumbar i{font-style:normal;font-size:20px;color:var(--muted)}
.sumbody{padding:4px 14px 12px;background:#fff6f6;max-height:40vh;overflow:auto}
.sum-line{padding:8px 0;border-top:1px dashed #f0c9c7}
.sum-line b{display:block;font-size:13px}.sum-line span,.sum-line small{display:block;color:var(--muted);font-size:12px}
.card-logo{height:30px;width:auto;display:block;margin-bottom:8px}
.cmsgs{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 12px;display:flex;flex-direction:column;gap:6px;-webkit-overflow-scrolling:touch}
.dday{align-self:center;background:#e1e6ee;color:#566074;font-size:11px;font-weight:700;padding:4px 12px;border-radius:999px;margin:8px 0 4px}
.m{max-width:84%;padding:9px 12px 6px;border-radius:14px;line-height:1.45;font-size:15px;word-wrap:break-word;overflow-wrap:anywhere}
.m .mt{white-space:pre-wrap;display:block}
.m .mm{display:flex;align-items:center;justify-content:flex-end;gap:4px;font-size:10.5px;margin-top:3px;opacity:.75}
.m .st{display:inline-flex;align-items:center;gap:3px}
.m .st.seen{color:#22c55e;opacity:1;font-weight:700}
.m.in{align-self:flex-start;background:#fff;border:1px solid var(--line);border-top-left-radius:4px;color:var(--ink)}
.m.out{align-self:flex-end;background:var(--navy);color:#fff;border-top-right-radius:4px}
.m.out .st.seen{color:#4ade80}
.m.card-msg{max-width:94%;width:94%;border:1px solid var(--red);padding:14px}
.m.card-msg .mm{color:var(--muted)}
.card-msg h4{margin:0 0 10px;font-size:14px}
.card-msg .kv{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid var(--line);font-size:13px}
.card-msg .kv span{color:var(--muted)}.card-msg .kv b{text-align:right}
.card-msg .kv.amt b{color:var(--red);font-size:16px}
.m.ticket{border-style:dashed;border-width:2px}
.cident{flex:none;display:grid;gap:8px;padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
.cident .err{color:var(--red);font-size:12px;min-height:0}
.csend{flex:none;display:flex;gap:8px;align-items:center;padding:10px 12px;padding-bottom:max(10px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
.csend .in{flex:1;border-radius:999px;padding-left:16px}
.sendbtn{flex:none;width:46px;height:46px;border:0;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center}

/* type-ahead suggestions */
.sugg{position:absolute;left:0;right:0;top:100%;z-index:30;margin:4px 0 0;padding:6px;list-style:none;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 34px #131a2a26;max-height:280px;overflow:auto}
.sugg[hidden]{display:none}
.sugg li{padding:12px;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer}
.sugg li[data-v]:hover,.sugg li[data-v]:active{background:var(--red-l);color:var(--red)}
.sugg .hint-li{color:var(--muted);font-size:12px;font-weight:500;cursor:default}

/* no blue tap highlight / autofill tint */
*{-webkit-tap-highlight-color:transparent}
a,button,summary,[role=button],select,label{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:focus,a:focus{outline:none}
button:focus-visible,a:focus-visible{outline:2px solid var(--red);outline-offset:2px}
input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,select:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #f8f9fb inset;box-shadow:0 0 0 1000px #f8f9fb inset;-webkit-text-fill-color:var(--ink);caret-color:var(--ink);transition:background-color 9999s}
::selection{background:#fde1df}

/* skeleton loading */
.skel{background:#fff;border-radius:14px;padding:16px;display:grid;gap:10px;box-shadow:0 2px 10px #131a2a0a}
.skel i{display:block;height:14px;border-radius:7px;background:linear-gradient(90deg,#eceff4 25%,#f7f8fb 50%,#eceff4 75%);background-size:200% 100%;animation:shim 1.1s infinite linear}
.skel i:nth-child(1){width:35%;height:20px}.skel i:nth-child(2){width:70%}.skel i:nth-child(3){width:45%;height:36px;justify-self:end}
@keyframes shim{to{background-position:-200% 0}}
.note{background:#fff8e1;border:1px solid #f5d98a;color:#7a5a00;border-radius:12px;padding:10px 14px;font-size:13px;font-weight:600;margin:0 0 10px}

/* passenger phone: full width so the number is never cut off */
.pax-f .phone-wrap{grid-column:1/-1}
.phone{grid-template-columns:128px minmax(0,1fr)}
.phone .in{min-width:0}
.route-img{overflow:hidden}
.route-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.route-img .chip,.route-img span{position:relative;z-index:1}

/* booking summary card (open by default) */
.csum{max-height:46vh;overflow:auto}
.sumfull{padding:14px 16px;background:#fff6f6}
.sumfull[hidden]{display:none}
.sum-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.sum-top .card-logo{height:34px;margin:0}
.sum-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0c9c7;padding-top:10px;margin-top:4px;font-weight:700}
.sum-total b{color:var(--red);font-size:20px}
.sumfull .hint{margin:8px 0 0;color:var(--muted);font-size:12px}
.sumhide{margin-top:8px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:700;padding:4px 0}
.sumbar[hidden]{display:none}

/* deleting messages */
.m.gone{opacity:.65;font-style:italic}
.m .mdel{display:none;margin-top:6px;border:0;background:#ffffff22;color:inherit;border-radius:8px;padding:5px 10px;font:inherit;font-size:12px;font-weight:700}
.m.sel .mdel{display:inline-block}
.m.out.sel{box-shadow:0 0 0 2px #e3221c55}

.sugg li .tag{float:right;font-size:10px;font-weight:700;color:var(--red);background:var(--red-l);border-radius:999px;padding:3px 8px;margin-left:8px}

/* messages must never be squashed on top of each other */
.cmsgs>*{flex:0 0 auto}
.m.card-msg{overflow:visible}

/* booking card, payment card, phone-notification bar (live chat) */
.m.card-msg.out{align-self:center;background:#fff;color:var(--ink);border-top-right-radius:14px}
.m.card-msg.out .mm{color:var(--muted)}
.m.bookcard .sum-top,.m.paycard .sum-top{margin-bottom:8px}
.m.bookcard h4{font-size:16px}
.stat{display:inline-block;border-radius:999px;padding:2px 10px;font-size:12px}
.stat.booked{background:#fff1d6;color:#9a5b00}.stat.paid{background:#e4f6ec;color:#15803d}
.paycard{border-color:#16a34a!important}
.paycard .hp-l{display:block;font-size:12px;font-weight:600;color:var(--muted);margin:10px 0 6px}
.paycard .hp-phone{width:100%;box-sizing:border-box;font-size:16px}
.paycard .hp-pay{margin-top:10px;background:#15803d}
.paycard .hp-pay:disabled{opacity:.7}
.paycard .hint{margin:8px 0 0;font-size:11px;color:var(--muted)}
.hp-note{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;border-radius:8px;padding:8px 10px;margin-bottom:8px;font-size:12px;line-height:1.45}
.pushbar{flex:none;display:flex;align-items:center;gap:8px;padding:8px 12px;background:#ecfdf5;border-top:1px solid #a7f3d0;font-size:12.5px;line-height:1.35;color:#064e3b}
.pushbar span{flex:1}.pushbar button{border:0;border-radius:14px;padding:6px 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.pushbar .pb-on{background:#15803d;color:#fff}.pushbar .pb-no{background:none;color:#064e3b}

/* booking QR */
.bk-qr{text-align:center;margin-top:12px}.bk-qrbox{display:inline-block;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;line-height:0}.bk-qrcap{font-size:11px;color:var(--muted);margin-top:8px}
/* receipt-style ticket */
.m.ticket.rcpt{border:1px solid var(--line);background:#fff;padding:16px 14px}
.tk-r{font-family:'Courier New',monospace;color:#111;text-align:center}.tk-h{font-size:19px;font-weight:700;letter-spacing:1px}.tk-s{font-size:12px;margin:4px 0}.tk-dash{border-top:1px dashed #555;margin:8px 0}
.tk-r table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.tk-r td{padding:2px 4px 2px 0;vertical-align:top}.tk-r td:first-child{white-space:nowrap}.tk-r td:last-child{word-break:break-word}
.tk-qr{display:flex;justify-content:space-around;align-items:center;margin:10px 0}.tk-print{margin-top:12px}
/* notification permission dialog */
.pushdlg{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:20px}
.pd-card{width:100%;max-width:330px;background:#fff;border-radius:22px;padding:26px 18px 10px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.pd-card p{margin:14px 0 18px;font-size:16px;line-height:1.4;color:#111}
.pd-card button{display:block;width:100%;border:0;background:none;color:var(--red);padding:16px 8px;font-weight:700;font-size:16px;font-family:inherit;cursor:pointer}
/* the form-field class .in also styles agent message bubbles (.m.in): don't let it fix their height at 42px */
.m.in{height:auto}

.pay-notice{margin-top:10px;padding:12px;border:1px solid #86d6a0;border-left:4px solid #16803c;border-radius:10px;background:#effaf2;color:#244b35;font-size:13px;line-height:1.55;text-align:left}
.ipaid{margin-top:10px}

/* bus cards: arrival column, amenities, price tiers */
.bus{grid-template-columns:auto 1fr auto;grid-template-areas:none}
.bus .l,.bus .mid,.bus .t.r,.bus .meta,.bus .price{grid-area:auto}
.bus .meta{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bus .am{display:inline-flex;align-items:center;font-size:12px;color:var(--muted);background:#f1f3f7;border-radius:999px;padding:5px 11px}
.bus .am::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:6px}
.bus .price{grid-column:1/-1;display:flex;justify-content:space-between;align-items:flex-end;gap:10px;border-top:1px solid #eef0f4;padding-top:12px;text-align:right}
.bus .price .tiers{text-align:right;display:grid;gap:2px}
.bus .price .btn{margin-top:0}
.seat.business{box-shadow:inset 0 -4px 0 #6366f1}
.seat.vip{box-shadow:inset 0 -4px 0 #f5b800}
.legend i.bz{border:2px solid #6366f1}.legend i.vp{border:2px solid #f5b800}

/* seat and boarding sheets open as a full page */
.sheet{height:94dvh;max-height:94dvh}
.sheet-body{overscroll-behavior:contain}
body:has(.sheet-back){overflow:hidden}
@media(min-width:700px){.sheet{height:88dvh;max-height:88dvh;border-radius:22px}.sheet-back{align-items:center}}

/* coach seat map: larger seats like the live site */
.srow{gap:10px;margin-bottom:12px}
.seat{width:46px;height:46px;border-radius:10px;font-size:13px}
.aisle{width:38px}
.seat.taken{background:#d9dce4;border-color:#d9dce4;color:#8b93a5}

/* city dropdown */
.sugg{max-height:340px;padding:8px}
.sugg .hint-li.sel{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:8px 10px 4px;position:sticky;top:-8px;background:#fff;z-index:1}
.sugg .grp{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--red);font-weight:800;padding:10px 10px 4px;cursor:default}
.sugg li[data-v]{display:flex;align-items:center;gap:12px;padding:9px 10px}
.sugg .ci{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#f1f3f7;flex:none}
.sugg .cn{display:grid;gap:1px;min-width:0}
.sugg .cn b{font-size:15px;color:var(--ink)}
.sugg .cn small{font-size:12px;color:var(--muted);font-weight:500}
.sugg li .tag{margin-left:auto;float:none}
.sugg{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

/* HashBack / PayBuddy payment card (same layout as ENA Coach) */
.m.paycard{padding:0;overflow:hidden;border:1.5px solid #16803c!important;border-radius:14px;background:#fff;color:var(--ink)}
.paycard .hp-bar{background:#087c45;color:#fff;padding:12px 14px;font-weight:800;font-size:12px;letter-spacing:.35px}
.paycard .hp-body{padding:14px}
.paycard .hp-ref{font-size:10px;font-weight:700;color:#6b7280;margin-bottom:4px}
.paycard .hp-trip{font-size:13px;font-weight:600;color:#374151;margin-bottom:8px}
.paycard .hp-amt{font-size:25px;font-weight:800;color:#123b2b;margin-bottom:12px}
.paycard .hp-pay{width:100%;margin-top:12px;padding:11px 12px;border:0;border-radius:28px;background:#087c45;color:#fff;font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}
.paycard .hp-pay:disabled{opacity:.7}
.paycard .mp-badge{display:inline-flex;background:#fff;color:#43b02a;border-radius:6px;padding:3px 7px;font:900 12px Arial,sans-serif;letter-spacing:.3px;white-space:nowrap;flex:none}
.paycard .mp-txt{text-align:left;line-height:1.25}
@keyframes hp-pulse{0%{box-shadow:0 0 0 0 rgba(8,124,69,.65);transform:scale(1)}70%{box-shadow:0 0 0 14px rgba(8,124,69,0);transform:scale(1.04)}100%{box-shadow:0 0 0 0 rgba(8,124,69,0);transform:scale(1)}}
.paycard .hp-pay.go{animation:hp-pulse 1.8s infinite}
.paycard .hp-secure{margin-top:10px;font-size:11px;line-height:1.45;color:#64748b}
.paycard .hp-sms{margin-top:12px;padding:10px 12px;border:1px solid #93c5fd;border-left:5px solid #1685D5;border-radius:9px;background:#eff6ff;color:#334155;font-size:12px;line-height:1.5}
.paycard .hp-sms strong{display:block;margin-bottom:4px;color:#1685D5;font-size:12px;letter-spacing:.3px}

#toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);max-width:88%;background:#1f2937;color:#fff;padding:11px 16px;border-radius:12px;font-size:13px;line-height:1.4;box-shadow:0 8px 24px #0004;opacity:0;pointer-events:none;transition:opacity .2s;z-index:200;text-align:center}
#toast.on{opacity:1}

/* compact booking card (same layout as ENA Coach) and card widths */
.m.card-msg.bookcard{padding:0;overflow:hidden;width:min(94%,330px);max-width:330px;border:1px solid #d9dce4;border-radius:14px}
.bookcard .bk-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#e3221c;color:#fff;padding:11px 12px;font-weight:800;font-size:12px;letter-spacing:.3px}
.bookcard .bk-bar em{font-style:normal;background:#fff;color:#c2410c;border-radius:999px;padding:3px 9px;font-size:10px;font-weight:800;white-space:nowrap}
.bookcard .bk-bar em.ok{color:#15803d}
.bookcard .bk-in{padding:12px}
.bookcard .bk-ref{font-size:10px;font-weight:700;color:#7b8191;margin-bottom:6px}
.bookcard .bk-rt{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px;text-transform:uppercase;color:#131a2a;margin-bottom:10px}
.bookcard .bk-rt i{color:#e3221c;font-style:normal}
.bookcard .bk-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin-bottom:10px}
.bookcard .bk-grid small{display:block;font-size:10px;text-transform:uppercase;color:#7b8191;font-weight:600}
.bookcard .bk-grid b{font-size:12.5px;color:#131a2a}
.bookcard .bk-pt{font-size:10px;font-weight:800;color:#131a2a;border-top:1px dashed #cdd2dd;padding-top:8px;margin-bottom:4px;letter-spacing:.3px}
.bookcard .bk-p{display:flex;justify-content:space-between;gap:8px;font-size:12.5px;padding:3px 0}
.bookcard .bk-p span{color:#4b5563}
.bookcard .bk-tot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eef0f4;margin-top:6px;padding-top:8px}
.bookcard .bk-tot span{font-weight:800;font-size:12px}
.bookcard .bk-tot strong{font-size:17px;color:#e3221c}
.bookcard .bk-qr{margin-top:10px}
.bookcard .bk-qrbox{padding:8px}
.bookcard .bk-qrcap{font-size:10.5px}
.bookcard .bk-st{margin:0 12px 12px;padding:9px;text-align:center;border-radius:8px;font-weight:700;font-size:12.5px}
.bookcard .bk-st.wait{background:#fff6ed;border:1px solid #fed7aa;color:#b45309}
.bookcard .bk-st.ok{background:#effaf2;border:1px solid #86d6a0;color:#15803d}
.bookcard .mm{padding:0 12px 8px}
.m.paycard{width:min(94%,320px);max-width:320px}
.paycard .hp-amt{font-size:23px}
