:root{--ink:#0f172a;--muted:#64748b;--green:#16a34a;--green2:#22c55e;--orange:#f97316;--bg:#f4f7f5;--line:#e5e7eb;--white:#fff}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}button,input{font:inherit}.hidden{display:none!important}.screen{min-height:100dvh}.login-screen{display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 10% 10%,#dcfce7 0,transparent 35%),radial-gradient(circle at 90% 85%,#ffedd5 0,transparent 35%),#f8fafc;position:relative;overflow:hidden}.rider-login-card{width:min(430px,100%);background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.8);box-shadow:0 24px 70px rgba(15,23,42,.14);border-radius:30px;padding:28px;backdrop-filter:blur(14px)}.brand-chip{display:inline-flex;padding:8px 12px;border-radius:999px;background:#ecfdf5;color:#047857;font-weight:900;font-size:12px;letter-spacing:1.2px}.rider-logo{width:74px;height:74px;object-fit:contain;display:block;margin:16px 0 10px}.rider-login-card h1{margin:0;font-size:30px}.rider-login-card>p{margin:6px 0 22px;color:var(--muted)}label{display:grid;gap:7px;font-size:13px;font-weight:800;margin:12px 0}input{width:100%;border:1px solid #dbe2e8;border-radius:15px;padding:14px 15px;background:#fff;outline:none}input:focus{border-color:#22c55e;box-shadow:0 0 0 4px #dcfce7}.primary{border:0;border-radius:16px;background:linear-gradient(135deg,#15803d,#22c55e);color:#fff;font-weight:900;padding:14px 16px;box-shadow:0 10px 24px rgba(34,197,94,.2)}.big{width:100%;margin-top:8px}.rider-login-card>small{display:block;text-align:center;color:var(--muted);margin-top:14px;line-height:1.5}.app-screen{padding-bottom:92px}.rider-header{padding:calc(18px + env(safe-area-inset-top)) 18px 18px;background:linear-gradient(135deg,#0f172a,#164e63);color:#fff;display:flex;justify-content:space-between;align-items:center;border-radius:0 0 28px 28px}.rider-header span{font-size:12px;color:#cbd5e1}.rider-header h2{margin:2px 0 0;font-size:25px}.header-btn{width:42px;height:42px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(255,255,255,.1);color:#fff;font-size:20px}main{padding:16px;max-width:720px;margin:auto}.stats-row{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:-2px}.stat-card{border-radius:20px;padding:16px;color:#fff;box-shadow:0 10px 28px rgba(15,23,42,.1)}.stat-card.green{background:linear-gradient(135deg,#16a34a,#4ade80)}.stat-card.orange{background:linear-gradient(135deg,#ea580c,#fb923c)}.stat-card small{display:block;font-size:11px;opacity:.9}.stat-card strong{display:block;font-size:22px;margin-top:5px}.gps-banner{margin:13px 0 18px;padding:13px 14px;border:1px solid #d1fae5;background:#ecfdf5;border-radius:18px;display:flex;align-items:center;gap:11px}.gps-dot{width:11px;height:11px;border-radius:50%;background:#10b981;box-shadow:0 0 0 5px #d1fae5}.gps-banner b,.gps-banner small{display:block}.gps-banner small{color:#047857;margin-top:2px;font-size:11px}.gps-banner.live{background:#eff6ff;border-color:#bfdbfe}.gps-banner.live .gps-dot{background:#2563eb;box-shadow:0 0 0 5px #dbeafe}.section-title{display:flex;justify-content:space-between;align-items:end;margin:10px 2px 10px}.section-title span:first-child{font-size:10px;font-weight:900;letter-spacing:1.4px;color:#16a34a}.section-title h3{margin:2px 0 0;font-size:21px}.count-pill{background:#111827;color:#fff;border-radius:999px;padding:5px 10px;font-size:12px}.delivery-list{display:grid;gap:12px}.delivery-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:16px;box-shadow:0 8px 24px rgba(15,23,42,.055);overflow:hidden}.delivery-card.out{border-color:#bfdbfe;box-shadow:0 8px 28px rgba(37,99,235,.1)}.delivery-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.order-no{font-weight:950;font-size:19px}.status{font-size:10px;font-weight:900;padding:6px 9px;border-radius:999px;background:#f1f5f9}.status.ready{background:#dcfce7;color:#166534}.status.out_for_delivery{background:#dbeafe;color:#1d4ed8}.customer-block{margin:12px 0;padding:12px;border-radius:16px;background:#f8fafc}.customer-block b{display:block;font-size:16px}.customer-block p{margin:5px 0 0;color:#475569;font-size:13px;line-height:1.45}.delivery-total{display:flex;justify-content:space-between;align-items:center;margin:11px 0}.delivery-total span{font-size:12px;color:var(--muted)}.delivery-total strong{font-size:22px}.cod-tag{display:inline-block;background:#fff7ed;color:#c2410c;font-size:11px;font-weight:900;padding:6px 9px;border-radius:999px}.delivery-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.delivery-actions a,.delivery-actions button{border:0;border-radius:14px;padding:12px 9px;text-align:center;text-decoration:none;font-weight:850;background:#f1f5f9;color:#0f172a}.delivery-actions .start,.delivery-actions .deliver{grid-column:1/-1;background:#111827;color:#fff;padding:14px}.delivery-actions .deliver{background:linear-gradient(135deg,#15803d,#22c55e)}.items-toggle{border-top:1px dashed #e2e8f0;margin-top:12px;padding-top:10px;font-size:12px;color:#64748b}.items-toggle details summary{cursor:pointer;font-weight:800}.items{padding-top:8px;display:grid;gap:5px}.items div{display:flex;justify-content:space-between}.empty{padding:30px 18px;text-align:center;background:#fff;border-radius:22px;color:#64748b}.cash-card{margin-top:18px;background:#fff;border-radius:22px;border:1px solid #e5e7eb;padding:16px;display:grid;gap:10px}.cash-card>div{display:flex;justify-content:space-between}.cash-card span{color:#64748b;font-size:12px}.cash-card .cash-balance{padding-top:10px;border-top:1px solid #e5e7eb}.cash-card .cash-balance strong{color:#c2410c;font-size:20px}.cash-card>small{color:#94a3b8;line-height:1.45}.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(720px,100%);padding:9px 16px calc(9px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,1fr);background:rgba(255,255,255,.96);border-top:1px solid #e5e7eb;backdrop-filter:blur(15px);z-index:20}.bottom-nav button{border:0;background:transparent;color:#64748b;font-size:10px;font-weight:800;display:grid;gap:3px;place-items:center}.bottom-nav button span{font-size:20px}.bottom-nav button.active{color:#15803d}.sheet-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;align-items:flex-end;z-index:50}.sheet-backdrop.open{display:flex}.bottom-sheet{width:min(720px,100%);margin:auto;background:#fff;border-radius:26px 26px 0 0;padding:10px 18px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px rgba(15,23,42,.18)}.sheet-handle{width:44px;height:5px;border-radius:5px;background:#cbd5e1;margin:0 auto 16px}.sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.sheet-actions button{border:0;border-radius:14px;padding:13px;font-weight:850}.sheet-actions .confirm{background:#16a34a;color:#fff}.toast{position:fixed;left:50%;bottom:100px;transform:translate(-50%,20px);opacity:0;background:#0f172a;color:#fff;border-radius:13px;padding:11px 14px;font-size:13px;z-index:100;transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:760px){body{background:#e9efec}.app-screen{max-width:720px;margin:auto;background:#f4f7f5;box-shadow:0 0 60px rgba(15,23,42,.08)}}
