:root{--brand:#5a4cf1;--brand2:#7b69ff;--brand-soft:#efedff;--deep:#342a9b;--ink:#171923;--muted:#71778a;--line:#e7e8ef;--surface:#fff;--bg:#f6f7fb;--success:#09865d;--warning:#b56a00;--danger:#c43b4b;--info:#1769aa;--shadow:0 18px 45px rgba(25,30,50,.10);--shadow-sm:0 5px 16px rgba(25,30,50,.06);--radius:22px;--safe-bottom:max(12px,env(safe-area-inset-bottom))}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#eff1f6;color:var(--ink);font-family:Tahoma,Arial,sans-serif;line-height:1.65;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{touch-action:manipulation}img{max-width:100%}svg{display:block}
.app-frame{min-height:100vh;background:var(--bg)}.role-customer .app-frame,.role-driver .app-frame{width:min(100%,680px);margin-inline:auto;box-shadow:0 0 70px rgba(25,30,50,.10)}.app-topbar{position:sticky;top:0;z-index:1000;height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;background:rgba(255,255,255,.92);border-bottom:1px solid rgba(231,232,239,.86);backdrop-filter:blur(18px)}.topbar-brand{display:flex;align-items:center;gap:11px}.app-logo{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,var(--brand),var(--brand2));box-shadow:0 8px 18px rgba(90,76,241,.28)}.app-logo svg{width:24px;height:24px}.topbar-title{display:block;font-weight:900;line-height:1.25}.topbar-subtitle{display:block;font-size:12px;color:var(--muted)}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-weight:900;border:1px solid #dedaff}.top-actions{display:flex;align-items:center;gap:8px}.icon-button{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer}.icon-button svg{width:21px;height:21px}.desktop-nav{display:flex;align-items:center;gap:7px}.desktop-nav a,.desktop-nav button{border:0;background:transparent;color:var(--muted);padding:9px 12px;border-radius:12px;cursor:pointer}.desktop-nav a:hover,.desktop-nav button:hover{background:var(--brand-soft);color:var(--brand)}
.app-content{width:min(1180px,calc(100% - 28px));margin:22px auto 104px;animation:screenIn .24s ease-out both}.role-customer .app-content,.role-driver .app-content{width:100%;padding:0 16px;margin:18px auto 104px}@keyframes screenIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.mobile-bottom-nav{display:none;position:fixed;z-index:1200;right:50%;transform:translateX(50%);bottom:0;width:min(100%,680px);grid-template-columns:repeat(4,1fr);align-items:end;padding:8px 10px calc(8px + var(--safe-bottom));background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(18px)}.mobile-bottom-nav a,.mobile-bottom-nav button{min-height:48px;border:0;background:none;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;cursor:pointer;border-radius:12px}.mobile-bottom-nav svg{width:21px;height:21px}.mobile-bottom-nav .active{color:var(--brand);font-weight:900}.nav-fab-wrap{position:relative}.nav-fab{width:56px!important;height:56px!important;min-height:56px!important;border-radius:20px!important;margin-top:-28px;background:linear-gradient(145deg,var(--brand),var(--brand2))!important;color:#fff!important;box-shadow:0 12px 25px rgba(90,76,241,.32)}.nav-fab svg{width:27px;height:27px}
.page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.page-title h1{margin:0;font-size:clamp(25px,5vw,38px);line-height:1.3}.page-title p{margin:5px 0 0;color:var(--muted)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 12px}.section-title h2{font-size:19px;margin:0}.section-title a{font-size:13px;color:var(--brand);font-weight:800}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow-sm)}.card-flat{background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.glass-card{border:1px solid rgba(255,255,255,.3);border-radius:26px;color:#fff;background:radial-gradient(circle at 5% 0%,rgba(255,255,255,.22),transparent 30%),linear-gradient(145deg,var(--deep),var(--brand) 58%,var(--brand2));box-shadow:0 20px 45px rgba(70,57,190,.26)}
.btn{appearance:none;border:0;border-radius:16px;min-height:48px;padding:11px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-weight:900;transition:.18s transform,.18s opacity}.btn:active{transform:scale(.975)}.btn[disabled]{opacity:.48;cursor:not-allowed}.btn-primary{color:#fff;background:linear-gradient(145deg,var(--brand),var(--brand2));box-shadow:0 9px 20px rgba(90,76,241,.22)}.btn-secondary{background:var(--brand-soft);color:var(--brand)}.btn-neutral{background:#f0f1f5;color:var(--ink)}.btn-success{background:#e9f9f3;color:var(--success)}.btn-danger{background:#fff0f2;color:var(--danger)}.btn-block{width:100%}.muted{color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900}.badge-info{background:#eaf4ff;color:var(--info)}.badge-warning{background:#fff5df;color:var(--warning)}.badge-success{background:#e8f8f2;color:var(--success)}.badge-danger{background:#fff0f1;color:var(--danger)}
.alert{border-radius:17px;padding:13px 15px;margin-bottom:15px;border:1px solid;transition:.25s opacity,.25s transform}.alert-success{background:#edfaf5;border-color:#bee8d7;color:#126f4f}.alert-danger{background:#fff3f4;border-color:#f0c2c8;color:#a82f40}.field{margin-bottom:15px}.field label{display:block;font-weight:900;margin-bottom:7px;font-size:14px}.field input,.field select,.field textarea{width:100%;min-height:49px;border:1px solid var(--line);border-radius:15px;padding:12px 14px;background:#fff;color:var(--ink);outline:none}.field textarea{min-height:96px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}
.grid{display:grid;gap:15px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.quick-order{display:block;padding:18px;margin-bottom:18px;border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-sm)}.quick-order-label{font-size:13px;color:var(--muted);margin-bottom:9px}.route-input{display:flex;align-items:center;gap:12px;min-height:54px;padding:10px 12px;border-radius:16px;background:#f6f7fb}.route-pin{width:13px;height:13px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 5px var(--brand-soft);flex:none}.route-pin.finish{background:var(--success);box-shadow:0 0 0 5px #e8f8f2}.route-divider{height:16px;border-right:2px dashed #cfd2dc;margin-right:5px}
.active-trip{display:block;padding:18px;position:relative;overflow:hidden}.active-trip:after{content:"";position:absolute;left:-40px;bottom:-65px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.09)}.trip-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.trip-number{font-size:13px;opacity:.8}.trip-status{font-size:22px;font-weight:900;margin-top:3px}.trip-route{margin:18px 0;padding:14px;border-radius:18px;background:rgba(255,255,255,.11)}.trip-route-row{display:grid;grid-template-columns:18px 1fr;gap:10px;align-items:start}.trip-route-row+.trip-route-row{margin-top:10px}.trip-route-dot{width:10px;height:10px;border-radius:50%;background:#fff;margin-top:6px}.trip-route-dot.finish{background:#69e4b9}.trip-route-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.progress-track{height:8px;border-radius:999px;background:rgba(255,255,255,.2);overflow:hidden}.progress-fill{height:100%;border-radius:999px;background:#fff;transition:width .45s ease}
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.service-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:13px 7px;border-radius:18px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:800;text-align:center;box-shadow:var(--shadow-sm)}.service-icon{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand)}.service-icon svg{width:24px;height:24px}
.order-list{display:grid;gap:11px}.order-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px;border-radius:18px;background:#fff;border:1px solid var(--line)}.order-row-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#f2f3f7;color:var(--brand)}.order-row-icon svg{width:23px;height:23px}.order-row-title{display:block;font-weight:900}.order-row-meta{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-row-price{text-align:left;font-size:13px;font-weight:900}.empty-state{text-align:center;padding:44px 20px}.empty-art{width:92px;height:92px;border-radius:30px;display:grid;place-items:center;margin:0 auto 16px;background:var(--brand-soft);color:var(--brand)}.empty-art svg{width:46px;height:46px}
.wizard-shell{padding-bottom:90px}.wizard-top{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:14px}.wizard-step{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;font-weight:800}.wizard-step:before{content:"";width:22px;height:6px;border-radius:999px;background:#dfe1e9}.wizard-step.active{color:var(--brand)}.wizard-step.active:before,.wizard-step.done:before{background:var(--brand)}.wizard-panel{display:none;animation:panelIn .22s ease-out}.wizard-panel.active{display:block}@keyframes panelIn{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
.map-shell{position:relative;border-radius:24px;overflow:hidden;border:1px solid var(--line);background:#dfe5ef}#map,#trackingMap{height:min(53vh,470px);min-height:340px}.map-tools{position:absolute;z-index:500;top:12px;left:12px;display:flex;flex-direction:column;gap:8px}.map-tool{width:44px;height:44px;border-radius:15px;border:0;background:#fff;display:grid;place-items:center;box-shadow:var(--shadow);cursor:pointer}.map-tool svg{width:21px;height:21px}.map-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;border-radius:16px;background:#f0f1f5;margin-bottom:12px}.map-mode-switch button{border:0;border-radius:12px;padding:10px;background:transparent;font-weight:900;color:var(--muted);cursor:pointer}.map-mode-switch button.active{background:#fff;color:var(--brand);box-shadow:var(--shadow-sm)}
.bottom-sheet{margin-top:-28px;position:relative;z-index:600;padding:18px;border-radius:26px 26px 20px 20px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}.sheet-handle{width:42px;height:5px;border-radius:999px;background:#d8dae2;margin:0 auto 14px}.choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.choice-card{position:relative;display:block;border:1.5px solid var(--line);border-radius:19px;padding:14px;background:#fff;cursor:pointer}.choice-card input{position:absolute;opacity:0;pointer-events:none}.choice-card.selected,.choice-card:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}.choice-card-title{display:block;font-weight:900}.choice-card-meta{display:block;font-size:12px;color:var(--muted);margin-top:3px}.cargo-chips{display:flex;flex-wrap:wrap;gap:8px}.cargo-chip{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:43px;padding:8px 13px;border-radius:14px;border:1px solid var(--line);background:#fff;font-weight:800;cursor:pointer}.cargo-chip input{position:absolute;opacity:0}.cargo-chip.selected,.cargo-chip:has(input:checked){background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
.price-preview{padding:18px;border-radius:22px;background:linear-gradient(145deg,var(--deep),var(--brand));color:#fff;margin:15px 0}.price-value{font-size:31px;font-weight:900}.sticky-wizard-actions{position:fixed;z-index:1100;right:50%;transform:translateX(50%);bottom:0;width:min(100%,680px);display:grid;grid-template-columns:auto 1fr;gap:10px;padding:10px 16px calc(10px + var(--safe-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--line);backdrop-filter:blur(18px)}
.driver-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:19px;background:#fff}.driver-avatar{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-weight:900;font-size:18px}.call-button{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#e9f9f3;color:var(--success)}.call-button svg{width:23px;height:23px}.status-hero{padding:18px}.status-orbit{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;margin:5px auto 14px;background:rgba(255,255,255,.12);position:relative}.status-orbit:before,.status-orbit:after{content:"";position:absolute;inset:-8px;border:2px solid rgba(255,255,255,.3);border-radius:50%;animation:pulseRing 2s infinite}.status-orbit:after{inset:-18px;animation-delay:.5s}@keyframes pulseRing{0%{transform:scale(.8);opacity:0}45%{opacity:1}100%{transform:scale(1.15);opacity:0}}.status-orbit svg{width:48px;height:48px}
.timeline-mobile{display:grid;gap:0}.timeline-row{display:grid;grid-template-columns:28px 1fr;gap:10px;min-height:58px}.timeline-marker{display:flex;flex-direction:column;align-items:center}.timeline-dot{width:13px;height:13px;border-radius:50%;background:var(--brand);margin-top:6px}.timeline-line{width:2px;flex:1;background:var(--line);margin-top:4px}.timeline-row:last-child .timeline-line{display:none}.proof-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.proof-card{border-radius:18px;overflow:hidden;background:#fff;border:1px solid var(--line)}.proof-card img{display:block;width:100%;height:170px;object-fit:cover}.proof-meta{padding:11px;font-size:13px}
.driver-online-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border-radius:22px;background:#fff;border:1px solid var(--line)}.online-indicator{display:flex;align-items:center;gap:9px;font-weight:900}.online-dot{width:12px;height:12px;border-radius:50%;background:#9ca3af}.online-dot.on{background:#15b67c;box-shadow:0 0 0 6px #e8f8f2}.switch-button{min-width:92px;min-height:42px;border:0;border-radius:999px;background:#e7e8ef;padding:4px;cursor:pointer}.switch-button span{display:block;width:34px;height:34px;border-radius:50%;background:#fff;box-shadow:var(--shadow-sm);transition:.22s transform}.switch-button.on{background:#28b884}.switch-button.on span{transform:translateX(-49px)}
.radar{width:210px;height:210px;border-radius:50%;position:relative;margin:25px auto;background:radial-gradient(circle,transparent 24%,rgba(90,76,241,.07) 25%,transparent 26%),radial-gradient(circle,transparent 49%,rgba(90,76,241,.09) 50%,transparent 51%),radial-gradient(circle,transparent 73%,rgba(90,76,241,.12) 74%,transparent 75%),var(--brand-soft)}.radar:before{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,transparent 0 75%,rgba(90,76,241,.32));animation:radarSpin 2.2s linear infinite}.radar:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:var(--brand);top:37%;right:27%;box-shadow:-72px 45px 0 -3px var(--brand2),-35px -54px 0 -5px var(--brand)}@keyframes radarSpin{to{transform:rotate(360deg)}}.driver-job{overflow:hidden}.job-map{height:260px;background:#dfe5ef}.job-body{padding:17px}.job-route{display:grid;grid-template-columns:20px 1fr;gap:10px}.job-route+.job-route{margin-top:13px}.big-action{position:sticky;bottom:88px;z-index:800;margin-top:15px;min-height:58px;font-size:16px}.photo-zone{display:block;border:2px dashed #c9c5ff;border-radius:19px;padding:16px;text-align:center;background:#faf9ff;color:var(--brand);cursor:pointer}.photo-zone input{position:absolute;opacity:0;pointer-events:none}.photo-preview{display:none;margin-top:10px;border-radius:16px;overflow:hidden}.photo-preview img{display:block;width:100%;max-height:260px;object-fit:cover}
.modal-backdrop{display:none;position:fixed;z-index:1600;inset:0;background:rgba(16,18,28,.48);padding:20px;align-items:flex-end;justify-content:center}.modal-backdrop.open{display:flex}.modal-sheet{width:min(100%,600px);max-height:88vh;overflow:auto;background:#fff;border-radius:28px 28px 20px 20px;padding:18px;animation:sheetUp .23s ease-out}@keyframes sheetUp{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}.loading-overlay{display:none;position:fixed;z-index:2000;inset:0;background:rgba(255,255,255,.88);backdrop-filter:blur(8px);align-items:center;justify-content:center;flex-direction:column;gap:14px}.loading-overlay.show{display:flex}.spinner{width:46px;height:46px;border:4px solid #dfdcff;border-top-color:var(--brand);border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast-stack{position:fixed;z-index:1900;top:82px;right:50%;transform:translateX(50%);width:min(calc(100% - 28px),560px)}.toast{padding:13px 15px;border-radius:17px;background:#1d2030;color:#fff;box-shadow:var(--shadow);animation:screenIn .22s ease-out}.install-banner{display:none;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;margin-bottom:14px;border-radius:18px;background:#1f2340;color:#fff}
.admin-filter-bar{display:flex;gap:8px;overflow:auto;padding-bottom:6px}.filter-chip{white-space:nowrap;border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:999px;padding:8px 13px;font-weight:800;cursor:pointer}.filter-chip.active{background:var(--brand);border-color:var(--brand);color:#fff}.admin-order-cards{display:none}.admin-order-card{display:block;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff;margin-bottom:10px}table{width:100%;border-collapse:collapse}th,td{padding:13px 11px;text-align:right;border-bottom:1px solid var(--line)}th{font-size:13px;color:var(--muted)}.table-wrap{overflow:auto;border-radius:20px}.details{display:grid;grid-template-columns:160px 1fr;gap:8px 13px}.details dt{color:var(--muted)}.details dd{margin:0;font-weight:900}.pagination{margin-top:16px}.pagination svg{width:20px}.pagination nav>div:first-child{display:none}.pagination nav>div:last-child{display:flex;justify-content:space-between;gap:10px;align-items:center}
.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.auth-visual{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding:60px;color:#fff;background:radial-gradient(circle at 15% 10%,rgba(255,255,255,.18),transparent 28%),linear-gradient(145deg,var(--deep),var(--brand),var(--brand2))}.auth-visual h1{font-size:clamp(34px,5vw,62px);line-height:1.2;margin:18px 0 10px}.auth-phone-art{width:220px;height:420px;border-radius:38px;background:#fff;border:8px solid #242039;box-shadow:0 30px 55px rgba(0,0,0,.25);padding:15px;color:var(--ink);transform:rotate(-5deg);margin-top:35px}.auth-phone-notch{width:75px;height:18px;border-radius:0 0 13px 13px;background:#242039;margin:-15px auto 18px}.auth-panel{display:grid;place-items:center;padding:30px}.auth-card{width:min(430px,100%)}.auth-card h2{font-size:30px;margin-bottom:6px}
@media(max-width:980px){.grid-4,.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}.auth-page{grid-template-columns:1fr}.auth-visual{display:none}}
@media(max-width:720px){body{background:var(--bg)}.desktop-nav{display:none}.mobile-bottom-nav{display:grid}.app-topbar{height:64px;padding-inline:16px}.app-content{margin-top:14px}.role-customer .app-content,.role-driver .app-content{padding-inline:14px}.service-grid{grid-template-columns:repeat(4,1fr);gap:7px}.service-tile{padding:10px 4px;font-size:10px}.service-icon{width:42px;height:42px}.choice-grid{grid-template-columns:1fr 1fr}.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}.proof-grid{grid-template-columns:1fr 1fr}.details{grid-template-columns:1fr}.table-wrap{display:none}.admin-order-cards{display:block}.topbar-title{font-size:14px}.topbar-subtitle{font-size:10px}}
@media(max-width:390px){.service-grid{grid-template-columns:repeat(2,1fr)}.choice-grid{grid-template-columns:1fr}.proof-grid{grid-template-columns:1fr}}


/* Compatibility for existing admin and detail views */
.page-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px;flex-wrap:wrap}
.page-head h1{margin:0;font-size:clamp(25px,4vw,38px)}
.page-head p{margin:5px 0 0;color:var(--muted)}
h1,h2,h3{line-height:1.35}h2{font-size:21px}
.stat-value{font-size:31px;font-weight:900;margin-top:6px}
.order-card{border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:12px;background:#fff}
.timeline{position:relative;padding-right:21px}.timeline:before{content:"";position:absolute;right:6px;top:8px;bottom:8px;width:2px;background:var(--line)}.timeline-item{position:relative;padding-bottom:18px}.timeline-item:before{content:"";position:absolute;right:-20px;top:7px;width:12px;height:12px;border-radius:50%;background:var(--brand);border:3px solid #fff;box-shadow:0 0 0 1px var(--line)}
.photo-input{border:2px dashed #c9c5ff!important;background:#faf9ff!important}
.quick-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:16px 0}.step{text-align:center;font-size:11px;color:var(--muted)}.step-dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;margin:0 auto 5px;background:#e7e8ef;font-weight:900}.step.done .step-dot,.step.active .step-dot{background:var(--brand);color:#fff}
