/* RivaleCab premium visual system — presentation-only layer, 2026-10-15.
   Does not change booking, payment, authentication, tracking or API logic. */
:root{--ink:#101c2e;--muted:#64748b;--line:#e1e7ef;--bg:#f3f6fa;--card:#fff;--accent:#d6ae51;--blue:#234c80;--green:#168568;--red:#c24141}
html{scroll-behavior:smooth}body{background:radial-gradient(circle at 95% 2%,#e9f0f9 0,transparent 34%),var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased;line-height:1.55}
.top,.tbar{background:rgba(255,255,255,.96);border-bottom:1px solid #e4eaf2;box-shadow:0 5px 24px #162b4509;backdrop-filter:blur(18px)}
.logo,.tb-name{letter-spacing:-.045em;color:#142943}.tb-mark{background:linear-gradient(140deg,#193656,#376393)!important;box-shadow:0 5px 18px #17375a36!important}.tb-name small{letter-spacing:.15em!important;color:#a3813d!important}
.nav button,.link,.tb-nav button{transition:background .18s,color .18s,transform .18s}.nav button:hover,.tb-nav button:hover{transform:translateY(-1px)}
.wrap{max-width:1320px;padding:clamp(18px,3vw,38px) clamp(16px,2.8vw,34px)}.hero{padding:clamp(22px,4vw,48px) 0 30px}.hero h1{font-size:clamp(32px,4.2vw,58px);font-weight:850;letter-spacing:-.055em;line-height:1.12;color:#142943}.hero p{font-size:clamp(15px,1.45vw,18px);max-width:68ch;line-height:1.65}
.card,.stat,.panel,.modalbox{border:1px solid #e2e8f0!important;border-radius:22px!important;box-shadow:0 12px 42px #162b4510!important;background:#fff}.card{padding:clamp(17px,2.1vw,28px)}
h1,h2,h3{letter-spacing:-.035em}h2{color:#172f4d}.field,input:not([type=checkbox]):not([type=radio]),select,textarea{transition:border-color .18s,box-shadow .18s}.field:focus,input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:#3d6998!important;outline:2px solid transparent;box-shadow:0 0 0 4px #37639322!important}
.btn,.primary,.accent{transition:transform .18s,box-shadow .18s,filter .18s;border-radius:12px;font-weight:750}.btn:hover,.primary:hover,.accent:hover{transform:translateY(-1px);filter:brightness(1.04)}.btn:active,.primary:active,.accent:active{transform:translateY(0)}.primary{background:linear-gradient(135deg,#183656,#284e7a)!important;color:#fff!important;box-shadow:0 7px 18px #1c3e652a}.accent{background:linear-gradient(135deg,#f2d995,#d6ae51)!important;color:#253144!important}
.map{border-radius:19px!important;border:1px solid #d7e1ec!important;box-shadow:inset 0 0 0 1px #fff,0 10px 28px #19365510}.tag,.mapbottom{box-shadow:0 10px 30px #19365520!important}.ride-card,.cls{border-radius:15px!important;transition:border-color .2s,transform .2s,box-shadow .2s!important}.ride-card:hover,.cls:hover{transform:translateY(-2px);box-shadow:0 10px 26px #14294315!important}.ride-card.sel,.cls.sel{border-color:#2b5b88!important;background:#f2f7fc!important;box-shadow:0 0 0 2px #2b5b8816!important}
.stats .stat{background:linear-gradient(160deg,#fff,#f9fbff)}.stat b{color:#193c61;letter-spacing:-.04em}.badge{font-weight:750}.table{border-collapse:separate;border-spacing:0}.table th{background:#f5f8fc;color:#36516e;font-weight:800}.table th,.table td{padding:13px 12px}.table tr:hover td{background:#f9fbfe}.aside button{border-radius:12px!important}.aside button.active{background:#1d4268!important}.modal{backdrop-filter:blur(5px)}.modalbox{box-shadow:0 26px 80px #0e254550!important}.footer{border-color:#dfe6ef;color:#60748c}.footer button:hover{color:#173b60}.notice{border-radius:14px}.authpage{max-width:550px}.tabs{border-radius:14px}.tabs button.active{color:#183b5f}
:focus-visible{outline:3px solid #d3ab51;outline-offset:3px}a{color:#245b8c}a:hover{color:#153b61}
@media(max-width:850px){.wrap{padding:20px 16px}.hero{padding:22px 0}.card{border-radius:18px!important}.grid,.contactgrid{gap:14px}.map{height:min(58vh,420px)}}
@media(max-width:560px){body{font-size:14px}.top,.tbar{min-height:64px;height:auto}.hero h1{font-size:33px}.stats{gap:9px}.stat{padding:13px!important}.ride-card{grid-template-columns:105px 1fr!important}.ride-visual svg{max-width:100px}.modalbox{padding:17px!important;border-radius:18px!important}.table{display:block;overflow-x:auto;white-space:nowrap}.btn{min-height:43px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important}}

/* Cohesive styling across profile, apps and legal pages. */
.legal-shell{max-width:960px!important;margin:clamp(18px,4vw,52px) auto!important;padding:clamp(18px,3vw,40px)!important;border-radius:22px;background:#fff;box-shadow:0 14px 50px #162b4512;border:1px solid #e2e8f0}
.legal-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:1px solid #e3e9f1;padding-bottom:18px;margin-bottom:24px}.legal-top .brand{font-weight:850;letter-spacing:-.04em;color:#193c61}.legal-shell h1{font-size:clamp(27px,3.4vw,39px);line-height:1.16;color:#172f4d}.legal-shell h2{margin-top:28px}.legal-shell p,.legal-shell li{line-height:1.75}.legal-shell a{overflow-wrap:anywhere}
body:has(#profileForm) main,body:has(#profile-form) main{max-width:900px}body:has(#profileForm) .panel,body:has(#profile-form) .panel{padding:clamp(18px,3vw,34px)}
body:has(header) header:not(.top):not(.tbar){box-shadow:0 7px 24px #12294412}
@media(max-width:600px){.legal-shell{margin:12px!important;padding:20px 16px!important;border-radius:16px}.legal-top{align-items:flex-start}.legal-shell h1{font-size:28px}body:has(#profileForm) main,body:has(#profile-form) main{margin:18px auto}}

/* RivaleCab responsive usability pass — 2026-10-15. Visual-only; preserves existing JS actions. */
:root{color-scheme:light}
html{scroll-padding-top:86px}
button,a,input,select,textarea{touch-action:manipulation}
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed;transform:none!important}
input,select,textarea{max-width:100%;min-width:0}
input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:max(16px,1rem)}
button,.btn,[role=button]{-webkit-tap-highlight-color:transparent}
img,svg{max-width:100%}
img{height:auto}
@media(max-width:780px){
 .top.tbar{position:relative;display:flex;flex-wrap:wrap;gap:10px;padding:12px 16px;align-items:center}
 .top.tbar .tb-nav{order:3;display:flex;flex-basis:100%;width:100%;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 0 7px}
 .top.tbar .tb-nav button{white-space:nowrap;flex:0 0 auto;min-height:42px;padding:9px 13px}
 .top.tbar>div:last-child{margin-left:auto}
 .hero-book,.ref-booking,.ref-booking-head,.r15-customer-rides-inner{max-width:100%;min-width:0}
 .ride-options,.customer-rides-list{min-width:0}
 .driver-hero{grid-template-columns:1fr!important}
 .driver-hero-visual{min-height:490px!important}
 .driver-hero-copy{padding:55px 22px!important}
 .driver-hero h1{font-size:clamp(42px,10vw,66px)!important;letter-spacing:-.06em!important}
 .driver-phone{transform:scale(.7)!important;transform-origin:top right;right:4%!important;top:25px!important}
 .driver-floating{left:5%!important;bottom:7%!important}
 .benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .driver-darkband,.driver-split{grid-template-columns:1fr!important}
}
@media(max-width:440px){
 .benefit-grid{grid-template-columns:1fr!important}
 .driver-phone{right:0!important;transform:scale(.61)!important}
 .driver-floating{width:185px!important;padding:13px!important}
 .ride-card{grid-template-columns:80px minmax(0,1fr) auto!important;gap:7px!important}
 .ride-visual svg{width:75px!important}
}
@media print{.top,.tbar,.site-footer,.btn,.primary{box-shadow:none!important}body{background:#fff!important;color:#111!important}.card,.panel,.legal-shell{box-shadow:none!important;break-inside:avoid}}

/* Keyboard and reduced-motion accessibility, 2026-10-15 */
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #d5a74d!important;outline-offset:3px!important}
:where(a,button,[role="button"]){cursor:pointer}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(max-width:440px){.top.tbar .tb-nav{scroll-padding-inline:16px}.top.tbar .tb-nav button{min-height:44px}}

/* Final mobile layout hardening pass: avoid viewport clipping and unusable controls. */
*,*::before,*::after{box-sizing:border-box}
body{min-width:320px;overflow-x:clip}
:where(.card,.panel,.modalbox,.legal-shell,.wrap,.grid,.driver-hero-copy){min-width:0}
:where(.card,.panel,.legal-shell) :where(p,a,td,li){overflow-wrap:anywhere}
:where(button,.btn,[role="button"]){min-height:44px}
:where(textarea){resize:vertical}
@media(max-width:600px){
 :where(.modalbox){max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);overflow-y:auto}
 :where(.card,.panel,.legal-shell){max-width:100%}
 :where(.table){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
