:root{--navy:#082a52;--navy2:#0d3a6c;--gold:#c89a3d;--cream:#f7f2e8;--ink:#10233b;--muted:#748196;--line:#e4e9ee;--white:#fff;--green:#168565;--red:#ba3e45;--shadow:0 16px 50px rgba(8,42,82,.12)}*{box-sizing:border-box}body{margin:0;background:linear-gradient(145deg,#f8f4eb,#edf2f8);color:var(--ink);font-family:Tahoma,"Noto Sans Arabic",Arial,sans-serif;min-height:100vh}.app-shell{max-width:520px;min-height:100vh;margin:auto;background:#fbfcfd;box-shadow:0 0 70px rgba(12,34,60,.12);position:relative;padding-bottom:82px}.topbar{height:84px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);position:sticky;top:0;z-index:10;border-bottom:1px solid rgba(8,42,82,.07)}.brand{display:flex;align-items:center;gap:11px}.brand img{width:57px;height:57px;object-fit:cover;border-radius:17px;border:1px solid #e4d3ae}.brand div{display:flex;flex-direction:column}.brand strong{font-size:22px;color:var(--navy)}.brand span{font-size:13px;color:var(--gold);letter-spacing:.5px}.icon-btn{border:0;background:#eef3f8;color:var(--navy);width:42px;height:42px;border-radius:14px;font-size:21px}.view{display:none}.view.active{display:block}.center{text-align:center;padding:100px 24px;color:var(--muted)}.loader{width:44px;height:44px;border:4px solid #dce4ec;border-top-color:var(--navy);border-radius:50%;margin:auto;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-view{padding:16px}.hero-card{background:radial-gradient(circle at 15% 0,#245789,var(--navy) 62%);color:white;border-radius:28px;padding:30px 24px;margin-bottom:16px;min-height:225px;box-shadow:var(--shadow);position:relative;overflow:hidden}.hero-card:after{content:"IFC";position:absolute;left:-10px;bottom:-32px;font:bold 105px Georgia;color:rgba(255,255,255,.045)}.hero-card>span{font-size:12px;color:#e1c27e}.hero-card h1{font-size:31px;line-height:1.45;margin:15px 0 9px}.hero-card em{font-style:normal;color:#e7c77f}.hero-card p{font-size:13px;line-height:1.9;color:#d3deeb;margin:0}.panel{background:white;border:1px solid rgba(8,42,82,.08);border-radius:24px;padding:18px;box-shadow:0 10px 35px rgba(8,42,82,.06)}.tabs{display:flex;background:#eff3f7;padding:5px;border-radius:14px;margin-bottom:18px}.tab{flex:1;padding:11px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-weight:bold}.tab.active{background:white;color:var(--navy);box-shadow:0 4px 12px rgba(8,42,82,.08)}.form{display:none}.form.active{display:block}.form>label,#orderForm>label,.two-cols label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:bold;margin-bottom:14px}input,select,textarea{font:inherit;border:1px solid #dbe1e8;background:#fafbfc;border-radius:13px;padding:14px;outline:none;width:100%;color:var(--ink)}input:focus,select:focus,textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(200,154,61,.13)}textarea{min-height:76px;resize:vertical}.primary,.secondary{border:0;border-radius:14px;padding:15px;width:100%;font:inherit;font-weight:bold}.primary{background:linear-gradient(135deg,var(--navy2),var(--navy));color:white;box-shadow:0 8px 18px rgba(8,42,82,.2)}.primary:disabled{opacity:.55}.secondary{background:#edf2f7;color:var(--navy)}.upload-grid,.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}.upload{margin:0!important;border:1px dashed #b9c3ce;border-radius:14px;padding:13px;text-align:center;color:var(--muted);font-size:12px}.upload input{display:none}.upload span{display:block;color:var(--navy);margin-top:8px}.pending{padding-top:85px}.status-orb{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;margin:auto;background:#fff4da;font-size:37px}.pending h2{color:var(--ink);margin:22px 0 8px}.pending p{line-height:1.9;margin-bottom:24px}.page{padding:21px 17px}.welcome{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.welcome small{color:var(--muted)}.welcome h2{margin:4px 0}.avatar{width:50px;height:50px;border-radius:16px;background:linear-gradient(135deg,var(--gold),#e4c377);display:grid;place-items:center;color:white;font-weight:bold}.pill{font-size:10px;padding:4px 8px;border-radius:8px;background:#e7f2fb;color:var(--navy)}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stats article{background:var(--navy);padding:17px;border-radius:20px;color:white;display:flex;flex-direction:column}.stats article.gold{background:linear-gradient(145deg,#c39538,#e0bd70)}.stats span,.stats small{font-size:10px;opacity:.8}.stats strong{font-size:27px;margin:8px 0}.section-head,.page-title{display:flex;justify-content:space-between;align-items:center;margin:25px 0 12px}.section-head h3,.page-title h2{margin:0}.section-head button,.mini{border:0;background:#edf2f7;color:var(--navy);padding:9px 11px;border-radius:10px;font-weight:bold}.page-title small{color:var(--gold)}.count{width:42px;height:42px;display:grid;place-items:center;background:var(--navy);color:white;border-radius:13px}.empty{text-align:center;color:var(--muted);padding:42px 0}.empty span{font-size:43px}.empty h3{color:var(--ink);margin-bottom:5px}.order-card,.user-card{background:white;border:1px solid var(--line);border-radius:18px;padding:12px;margin-bottom:11px;box-shadow:0 5px 18px rgba(8,42,82,.05)}.order-card{display:grid;grid-template-columns:76px 1fr;gap:12px}.order-card img{width:76px;height:88px;object-fit:cover;border-radius:13px;background:#eef1f4}.order-main{min-width:0}.order-top{display:flex;justify-content:space-between;gap:6px}.order-top h4{margin:2px 0}.badge{font-size:9px;padding:5px 7px;border-radius:8px;background:#fff3d9;color:#8a630f;height:max-content}.badge.sent{background:#e5f1ff;color:#175e9d}.badge.delivered{background:#e7f7f0;color:#147356}.order-meta{font-size:11px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap;margin:7px 0}.order-foot{display:flex;align-items:center;justify-content:space-between}.order-actions{display:flex;gap:5px}.small-btn{border:0;background:#edf3f8;color:var(--navy);border-radius:9px;padding:7px 9px;font-size:11px}.small-btn.action{background:var(--navy);color:white}.user-top{display:flex;justify-content:space-between;align-items:start}.user-top h4{margin:2px 0}.user-card p{font-size:12px;color:var(--muted);margin:7px 0}.user-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:11px}.approve,.dispatch,.reject{border:0;border-radius:9px;padding:9px 5px;font-size:10px;font-weight:bold}.approve{background:#e5f6ef;color:var(--green)}.dispatch{background:#e7effa;color:var(--navy)}.reject{background:#fbe8e9;color:var(--red)}.docs{display:flex;gap:6px;margin-top:8px}.docs a{font-size:10px;text-decoration:none;color:var(--navy);background:#eef3f8;padding:6px 8px;border-radius:8px}.report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:18px}.report-summary article{background:white;border:1px solid var(--line);padding:13px 8px;border-radius:15px;text-align:center}.report-summary strong{display:block;font-size:19px;color:var(--navy)}.report-summary span{font-size:9px;color:var(--muted)}.report-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;background:white;border-bottom:1px solid var(--line);padding:13px}.report-row:first-child{border-radius:15px 15px 0 0}.report-row:last-child{border-radius:0 0 15px 15px;border:0}.report-row small{color:var(--muted)}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(520px,100%);height:72px;background:rgba(255,255,255,.96);backdrop-filter:blur(15px);border-top:1px solid #e7ebef;display:flex;align-items:center;justify-content:space-around;z-index:20;padding-bottom:max(0px,env(safe-area-inset-bottom))}.bottom-nav button{border:0;background:transparent;color:#8a96a5;display:flex;flex-direction:column;gap:3px;align-items:center;font-size:10px}.bottom-nav button span{font-size:22px}.bottom-nav button.active{color:var(--navy)}dialog{border:0;border-radius:26px 26px 0 0;width:min(520px,100%);max-height:92vh;margin:auto auto 0;padding:0;box-shadow:0 -20px 80px rgba(0,0,0,.22)}dialog::backdrop{background:rgba(2,15,30,.55);backdrop-filter:blur(3px)}#orderForm{padding:20px;overflow:auto;max-height:92vh}.dialog-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:16px}.dialog-head small{color:var(--gold)}.dialog-head h2{margin:3px 0}.dialog-head button{border:0;background:#edf1f5;width:38px;height:38px;border-radius:12px;font-size:22px}.product-photo{height:145px;border:1px dashed #aeb9c6;border-radius:16px;display:grid!important;place-items:center;position:relative;overflow:hidden;background:#f7f9fb;margin:0!important}.product-photo input{display:none}.product-photo span{text-align:center;color:var(--muted);font-weight:normal}.product-photo span b{display:block;margin-top:6px;color:var(--navy)}.product-photo img{display:none;position:absolute;width:100%;height:100%;object-fit:cover}.toast{position:fixed;bottom:92px;left:50%;transform:translate(-50%,20px);background:#10233b;color:white;padding:12px 18px;border-radius:12px;opacity:0;pointer-events:none;transition:.25s;z-index:99;font-size:13px;max-width:88%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.hidden{display:none!important}@media(min-width:700px){body{padding:28px}.app-shell{border-radius:32px;overflow:hidden;min-height:calc(100vh - 56px)}.topbar{position:relative}.bottom-nav{bottom:28px;border-radius:0 0 32px 32px}dialog{margin:auto;border-radius:26px;max-height:88vh}}
.user-actions:has(.reset-pin){grid-template-columns:1fr 1fr}.reset-pin{border:0;border-radius:9px;padding:9px 5px;font-size:10px;font-weight:bold;background:#fff3cf;color:#8a630f}#resetPinForm{padding:20px}#resetPinUser{color:var(--muted);line-height:1.8;margin-bottom:16px}#loginForm .secondary{margin-top:10px}

/* v9: bold 3D visual system */
body{background:radial-gradient(circle at 50% -10%,#fff 0,#edf3f9 48%,#dce6f0 100%);font-size:17px}
.app-shell{background:linear-gradient(180deg,#fff 0,#f6f9fc 48%,#eef3f8 100%);box-shadow:0 25px 80px rgba(5,30,60,.22)}
.topbar{height:94px;border-bottom:1px solid #dce5ee;box-shadow:0 10px 28px rgba(8,42,82,.09)}
.brand strong{font-size:27px;text-shadow:0 2px 0 #fff,0 4px 8px rgba(8,42,82,.16)}
.brand span{font-size:15px;font-weight:bold}
.page{padding:25px 18px}.welcome h2,.page-title h2{font-size:29px;line-height:1.45;text-shadow:0 2px 0 #fff,0 5px 12px rgba(8,42,82,.12)}
.welcome small,.page-title small{font-size:15px}.pill{font-size:13px;padding:7px 12px;font-weight:bold}
.stats{gap:15px}.stats article{min-height:142px;padding:21px;border:1px solid rgba(255,255,255,.35);border-radius:25px;box-shadow:inset 0 2px 1px rgba(255,255,255,.28),inset 0 -10px 24px rgba(0,0,0,.14),0 14px 24px rgba(8,42,82,.19);transform:perspective(700px) rotateX(1deg)}
.stats article.gold{background:linear-gradient(145deg,#f3cf76,#b98525)}.stats article.emerald{grid-column:1/-1;min-height:120px;background:linear-gradient(145deg,#28a884,#08715d)}
.stats span{font-size:14px;font-weight:bold}.stats small{font-size:13px}.stats strong{font-size:37px;direction:ltr;text-align:right;text-shadow:0 3px 8px rgba(0,0,0,.2)}
.section-head h3{font-size:26px;text-shadow:0 2px 0 #fff}.section-head button,.mini{font-size:14px;padding:11px 14px;box-shadow:0 6px 12px rgba(8,42,82,.12)}
.order-card,.user-card{border:1px solid #d7e1ea;border-radius:24px;padding:15px;margin-bottom:16px;box-shadow:inset 0 1px 0 #fff,0 12px 24px rgba(8,42,82,.11),0 3px 0 #d7e1ea;transform:perspective(900px) rotateX(.35deg)}
.order-card{grid-template-columns:88px 1fr;gap:14px}.order-card img{width:88px;height:104px;border-radius:17px;box-shadow:0 8px 16px rgba(8,42,82,.18)}
.order-top h4{font-size:22px}.badge{font-size:12px;padding:7px 10px}.order-meta{font-size:14px;line-height:1.8;gap:10px;margin:9px 0}.order-foot strong{font-size:21px;direction:ltr}.small-btn{font-size:13px;padding:9px 12px;box-shadow:0 5px 10px rgba(8,42,82,.12)}
input,select,textarea{font-size:17px;border-width:2px;border-radius:16px;padding:16px;box-shadow:inset 0 3px 8px rgba(8,42,82,.05)}
.form>label,#orderForm>label,.two-cols label{font-size:16px}.primary,.secondary{font-size:18px;border-radius:17px;padding:17px;box-shadow:inset 0 2px 1px rgba(255,255,255,.2),0 9px 16px rgba(8,42,82,.2)}
.panel{border-radius:29px;box-shadow:inset 0 1px 0 #fff,0 18px 38px rgba(8,42,82,.12),0 3px 0 #dce5ee}
.tabs{padding:7px;border-radius:18px}.tab{font-size:17px;padding:14px;border-radius:14px}
.report-summary{gap:10px}.report-summary article{border-radius:19px;padding:17px 8px;box-shadow:inset 0 1px 0 #fff,0 9px 18px rgba(8,42,82,.1),0 2px 0 #dbe4ec}.report-summary strong{font-size:25px;direction:ltr}.report-summary span{font-size:12px;font-weight:bold}
.weekly-card{background:linear-gradient(145deg,#fff,#edf3f8);border:1px solid #d6e0e9;border-radius:22px;padding:17px;margin-bottom:14px;box-shadow:inset 0 1px 0 #fff,0 12px 24px rgba(8,42,82,.11),0 3px 0 #d3dee8}
.weekly-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:13px;border-bottom:1px solid #d9e2ea}.weekly-title div{display:flex;flex-direction:column;gap:5px}.weekly-title small{color:var(--gold);font-weight:bold}.weekly-title b{font-size:13px;direction:ltr}.weekly-title>span{background:var(--navy);color:#fff;border-radius:12px;padding:9px 11px;font-weight:bold;font-size:13px;white-space:nowrap}
.weekly-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-top:13px}.weekly-numbers div{background:#fff;border-radius:14px;padding:10px 7px;text-align:center;box-shadow:inset 0 1px 0 #fff,0 5px 12px rgba(8,42,82,.08)}.weekly-numbers small{display:block;color:var(--muted);font-size:10px;min-height:28px}.weekly-numbers strong{display:block;color:var(--navy);font-size:16px;direction:ltr;margin-top:4px}
.bottom-nav{height:79px;box-shadow:0 -10px 28px rgba(8,42,82,.12)}.bottom-nav button{font-size:12px;font-weight:bold}.bottom-nav button span{font-size:25px}
@media(max-width:380px){.order-card{grid-template-columns:76px 1fr}.order-card img{width:76px}.order-meta{font-size:12px}.stats strong{font-size:31px}.weekly-numbers strong{font-size:14px}}

/* v11: Kandahar and other provinces have equal, full-width separate cards. */
.split-stats{grid-template-columns:1fr}.split-stats article,.split-stats .emerald{grid-column:1/-1;min-height:160px}.split-stats strong{font-size:25px;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.split-stats strong b{font-size:39px}.split-stats small{margin-top:auto;padding-top:10px;font-size:14px!important}.split-stats small b{font-size:22px;color:#fff;direction:ltr}.other-provinces{background:linear-gradient(145deg,#164c80,#061f41)!important}.kandahar-stat{background:linear-gradient(145deg,#2cb38d,#07614f)!important}.report-summary article:nth-child(1){border-color:#b8cde0;background:linear-gradient(145deg,#fff,#eaf2fa)}.report-summary article:nth-child(2){border-color:#a8d9cb;background:linear-gradient(145deg,#f8fffc,#e1f5ee)}.report-summary article>b{display:block;margin-top:7px;color:var(--gold);font-size:17px;direction:ltr}.split-weekly{grid-template-columns:1fr 1fr}.split-weekly div{border-top:4px solid var(--navy)}.split-weekly .kandahar-week{border-top-color:var(--green);background:#effaf6}.split-weekly small{font-size:12px;min-height:auto;font-weight:bold}.split-weekly strong{font-size:18px}.split-weekly b{display:block;margin-top:7px;color:var(--gold);font-size:17px;direction:ltr}
@media(max-width:380px){.split-stats strong{font-size:20px}.split-stats strong b{font-size:32px}.split-stats small b{font-size:18px}.weekly-title>span{font-size:11px;padding:8px}}

/* v19: free-plan data saver and clear service status. */
.service-notice{margin-bottom:14px;padding:13px 14px;border:1px solid #efd49a;border-radius:14px;background:#fff7df;color:#765510;font-size:13px;line-height:1.9;text-align:center}.more-orders{margin:8px 0 18px}.order-card img{content-visibility:auto}
