*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{font-family:"Cairo","Segoe UI",Tahoma,Arial,sans-serif;background:#f4f5f7;color:#15181c;direction:rtl;font-size:16px;line-height:1.5}
a{color:#e0691a;text-decoration:none}
header{background:#15181c;color:#fff;padding:12px 16px;display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:900}
header .logo{font-weight:800;font-size:19px;letter-spacing:.2px}
header .logo span{color:#ffb01f}
header .sub{font-size:12px;color:#a9b0ba;margin-inline-start:auto;text-align:left}
.wrap{padding:14px;max-width:640px;margin:0 auto}
.card{background:#fff;border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:0 1px 3px rgba(0,0,0,.07)}
.card h2{margin:0 0 8px;font-size:16px;font-weight:700;display:flex;align-items:center;gap:8px}
.card h2 .n{background:#15181c;color:#fff;width:22px;height:22px;border-radius:50%;font-size:12px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.muted{color:#6b7280;font-size:13px}
#map{height:46vh;min-height:260px;border-radius:14px;overflow:hidden;margin-bottom:10px;background:#e5e7eb}
.pickbar{display:flex;gap:8px;margin-bottom:10px}
.pickbar button{flex:1}
button,.btn{font-family:inherit;font-size:16px;border:0;border-radius:12px;padding:13px 16px;background:#eef0f3;color:#15181c;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
button:active{transform:scale(.99)}
button.primary{background:#ff8a1e;color:#fff}
button.dark{background:#15181c;color:#fff}
button.ok{background:#12855a;color:#fff}
button.danger{background:#d33;color:#fff}
button:disabled{opacity:.45;cursor:default}
button.sm{padding:9px 12px;font-size:14px;border-radius:10px}
input,textarea,select{font-family:inherit;font-size:16px;width:100%;padding:12px;border:1px solid #d6dae0;border-radius:11px;background:#fff;color:#15181c}
label{display:block;font-size:13px;font-weight:700;margin:10px 0 5px;color:#374151}
.row{display:flex;gap:8px}
.row>*{flex:1}
.point{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px dashed #e6e8ec}
.point:last-child{border:0}
.dot{width:12px;height:12px;border-radius:50%;flex:0 0 auto}
.dot.a{background:#12855a}.dot.b{background:#d33}
.point .txt{font-size:14px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.point .txt b{display:block;font-size:12px;color:#6b7280;font-weight:600}
.price{display:flex;justify-content:space-between;align-items:center;background:#fff8ef;border:1px solid #ffe0bb;border-radius:12px;padding:12px;margin-top:6px}
.price .v{font-size:22px;font-weight:800;color:#c2580c}
.chip{display:inline-block;font-size:12px;font-weight:700;padding:3px 9px;border-radius:20px;background:#eef0f3;color:#374151}
.chip.open{background:#fff3d6;color:#8a5a00}
.chip.accepted{background:#e3f0ff;color:#0b4f9c}
.chip.picked{background:#e6f6ee;color:#0c6b48}
.chip.delivered{background:#e8f7ee;color:#0f7a3d}
.chip.cancelled{background:#fdecec;color:#a11}
.order{border:1px solid #e6e8ec;border-radius:13px;padding:12px;margin-bottom:10px;background:#fff}
.order.hot{border-color:#ff8a1e;box-shadow:0 0 0 2px #ffe3c7}
.order .top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.order .meta{font-size:13px;color:#4b5563;margin-top:6px;line-height:1.7}
.order .acts{display:flex;gap:8px;margin-top:10px}
.order .acts button{flex:1}
.timeline{list-style:none;padding:0;margin:6px 0 0}
.timeline li{position:relative;padding:0 22px 14px 0;font-size:14px}
.timeline li:before{content:"";position:absolute;right:3px;top:7px;width:9px;height:9px;border-radius:50%;background:#c9ced6}
.timeline li:after{content:"";position:absolute;right:7px;top:18px;bottom:0;width:1px;background:#e6e8ec}
.timeline li:last-child:after{display:none}
.timeline li.on:before{background:#12855a}
.timeline li b{font-weight:700}
.timeline li span{color:#6b7280;font-size:12px;margin-inline-start:6px}
.notice{background:#eef6ff;border:1px solid #cfe4ff;color:#0b4f9c;border-radius:12px;padding:10px 12px;font-size:14px;margin-bottom:10px}
.warn{background:#fff5e8;border:1px solid #ffdcb3;color:#8a4b00}
.err{background:#fdecec;border:1px solid #f7c4c4;color:#a11b1b}
.ok{background:#eaf7ef;border:1px solid #bfe6cd;color:#12855a}
.err{background:#fdecec;border:1px solid #f7c9c9;color:#a11}
.tabs{display:flex;gap:6px;background:#e9ebef;padding:4px;border-radius:12px;margin-bottom:12px}
.tabs button{flex:1;background:transparent;font-size:14px;padding:9px}
.tabs button.on{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.1)}
.badge{background:#d33;color:#fff;font-size:11px;font-weight:800;border-radius:20px;padding:2px 8px}
footer{text-align:center;color:#9aa1ab;font-size:12px;padding:18px 0 30px}
.switch{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:14px;padding:12px 14px;margin-bottom:12px;box-shadow:0 1px 3px rgba(0,0,0,.07)}
.switch .st{font-weight:800}
.switch .st small{display:block;font-weight:500;color:#6b7280;font-size:12px}
.toggle{width:56px;height:31px;border-radius:20px;background:#c9ced6;position:relative;transition:.15s;flex:0 0 auto;border:0;padding:0}
.toggle:after{content:"";position:absolute;top:3px;right:3px;width:25px;height:25px;border-radius:50%;background:#fff;transition:.15s}
.toggle.on{background:#12855a}
.toggle.on:after{right:28px}
.leaflet-container{font-family:inherit}
.hide{display:none!important}
