/* ===== HOME MART DELIVERY — PROFESSIONAL THEME (applies to Customer, Vendor, Rider, Admin) ===== */
:root{--g:#0f7a3d;--g2:#14914a;--gd:#0a5a2c;--y:#ffc400;--o:#ff8c00;--bg:#f8faf9;--ink:#15332a;--line:#e8efeb;--soft:#e5f4ea;--muted:#71807a}
body{background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,"Noto Naskh Arabic","Noto Sans Arabic",sans-serif;padding-bottom:92px}
html{scroll-behavior:smooth}

/* Top bar */
.topbar{background:#fff;border-bottom:1px solid var(--line);box-shadow:none;height:auto;min-height:64px;padding:8px 14px}
.topbar .logo{width:48px;height:48px;border-radius:14px;object-fit:contain;background:#fff}
.brand strong{font-weight:900;font-size:16px;color:var(--ink)}
.brand span{color:var(--g);font-weight:800}
.lang{border:0;background:#f1f7f4;color:var(--g);border-radius:13px;padding:10px 13px}
.switch-role{border:0;background:#fff3dc;color:#b86900;border-radius:13px;padding:10px 12px}
.menu-btn,.notif-bell{background:#f1f7f4;border-radius:13px;padding:8px 11px;color:var(--g)}

/* Role gate (login start screen) */
.role-gate{background:linear-gradient(160deg,#e5f4ea 0%,#fff 55%,#fff4d6 100%)}
.gate-logo{width:170px;filter:drop-shadow(0 10px 18px #0f7a3d30)}
.role-gate h1{font-weight:900;color:var(--ink)}
.role-btn{border:1px solid var(--line);border-radius:22px;padding:24px 10px;box-shadow:0 8px 22px #002f2410;transition:.18s}
.role-btn:hover{transform:translateY(-2px);border-color:var(--g)}
.auth-panel{border-radius:26px;box-shadow:0 18px 50px #003c2a1f}
.auth-tab.active,.auth-form .primary,.primary{background:var(--g)}
.auth-form input,.auth-form select,.auth-form textarea,.inline-form input,.inline-form select{border:1px solid #dce9e3;border-radius:14px;padding:13px 14px;outline:none}
.auth-form input:focus,.auth-form select:focus,.inline-form input:focus,.section-head input:focus{border-color:var(--g);box-shadow:0 0 0 3px #0f7a3d14}
.back-link,.directions-link{color:var(--g)}

/* Hero (green + yellow) */
.hero{max-width:1100px;margin:16px auto 20px;border-radius:28px;min-height:230px;position:relative;overflow:hidden;padding:30px 26px;color:#fff;background:linear-gradient(135deg,var(--g) 0%,var(--g2) 55%,var(--y) 55%,#ffd21b 100%);box-shadow:0 12px 32px #0f7a3d26}
.hero:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:-55px;top:-60px;background:#ffffff18;pointer-events:none}
.hero>div:first-child{position:relative;z-index:2;max-width:560px}
.hero .eyebrow{color:#fff!important;font-weight:800;letter-spacing:1.2px;font-size:13px}
.hero h1{color:#fff;font-weight:900}
.hero p{color:#effff8}
.hero .primary{background:#ffb500;color:#fff;border-radius:16px;padding:13px 22px;font-weight:900;box-shadow:0 8px 20px #b5780030}
.hero-card{position:relative;z-index:2;background:#fff;border-radius:50%;min-width:190px;min-height:190px;width:190px;height:190px;box-shadow:0 14px 34px #00000026;padding:10px}
.hero-card img{max-width:175px}
.hero-slider-wrap{max-width:1100px;margin:0 auto 6px}
.hero-slide svg{border-radius:24px}

/* Sections */
.section{margin:22px auto}
.section h2{font-size:22px;font-weight:900;color:#0e3556}
.section-head input{border:1px solid #dce9e3;border-radius:16px;padding:13px 16px;background:#fff;outline:none}
.category-grid{grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:10px}
.category{background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px 6px;transition:.18s}
.category:hover{transform:translateY(-2px);box-shadow:0 8px 18px #003c2a14}
.category .cat-circle{width:54px;height:54px;border-radius:50%;display:grid!important;place-items:center;background:#f0f7f3;font-size:28px;margin:0 auto 8px}
.category b{font-size:12px}

/* Products */
.product{border:1px solid var(--line);border-radius:20px;padding:11px;box-shadow:0 5px 16px #00241a10;position:relative}
.product-img{border-radius:15px;background:#f0f5f3}
.product h3{font-size:15px}
.price{color:var(--g);font-weight:900}
.add,.pill.accept{background:var(--g);border-radius:12px}
.add:hover{background:var(--gd)}
.pill.reject,.add.danger{background:#d9483a}
.wishlist-heart{background:#fff;box-shadow:0 4px 12px #0002}

/* Cards, lists, dashboards (Vendor / Rider / Admin) */
.stat-card,.list-item,.cart-summary,.address-box,.wallet-card,.chat-thread{border:1px solid var(--line);border-radius:20px;box-shadow:0 5px 16px #00241a0d;background:#fff}
.stat-card span,.cart-row.total{color:var(--g)}
.stat-grid{gap:12px}
.status{background:var(--soft);color:var(--g)}
.status.pending{background:#fff4e0;color:#c26a00}
.map-box,.mini-map,.fleet-map,.track-map{border-radius:18px}
.whatsapp-float{background:var(--g);box-shadow:0 10px 24px #0f7a3d42}
.chat-bubble{background:var(--g)}
.chat-panel-head{background:var(--g)}
.chat-bubble-msg.mine{background:var(--g)}
.notif-item.unread{background:var(--soft)}
.side-drawer .drawer-avatar{background:var(--soft)}

/* Rounded green bottom navigation (all roles) */
.bottom-nav{background:var(--g);border:0;border-radius:27px 27px 0 0;box-shadow:0 -8px 28px #003b2a30;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));gap:2px}
.bottom-nav a{color:#fff;font-weight:800;font-size:11.5px;border-radius:18px;min-width:62px;padding:8px 10px;position:relative}
.bottom-nav a .nav-icon{font-size:23px}
.bottom-nav a.nav-active{color:var(--y);background:#ffffff14}
.bottom-nav b{background:var(--o);color:#fff;border-radius:12px;padding:2px 6px;font-size:10px;position:absolute;top:2px;right:12px}
#navVendor a,#navRider a,#navAdmin a{min-width:74px;justify-content:center}
@media(min-width:900px){.bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:min(760px,100%)}#navAdmin{width:min(1000px,100%)}}

/* Urdu / RTL */
.rtl .hero>div:first-child{text-align:right}
@media(max-width:600px){
  .hero{margin:12px;border-radius:24px;min-height:220px;padding:24px 18px;background:linear-gradient(135deg,var(--g) 0%,var(--g2) 62%,var(--y) 62%,#ffd21b 100%)}
  .hero-card{display:grid;position:absolute;right:-18px;bottom:-22px;width:130px;height:130px;min-width:0;min-height:0;opacity:.96}
  .hero-card img{max-width:105px}
  .topbar .logo{width:44px;height:44px}
  .category-grid{grid-template-columns:repeat(4,1fr);gap:7px}
  .gate-logo{width:145px}
}

/* ===== v3: icons, Deliver-to, search, category pictures ===== */
.ic{width:1em;height:1em;display:block}
.bottom-nav a .nav-icon{display:grid;place-items:center;font-size:23px;line-height:1}
.bottom-nav a .nav-icon .ic{width:23px;height:23px}
.bottom-nav a.nav-active .nav-icon{transform:translateY(-1px)}
.bottom-nav b#cartCount{position:absolute;top:1px;right:10px;min-width:18px;text-align:center}
.role-btn .role-ico{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;color:#fff;font-size:32px}
.role-btn .role-ico .ic{width:32px;height:32px}
.role-ico.c1{background:linear-gradient(135deg,#1aa352,#0f7a3d)}
.role-ico.c2{background:linear-gradient(135deg,#ffb400,#ff8c00)}
.role-ico.c3{background:linear-gradient(135deg,#29b6f6,#0277bd)}
.role-btn{gap:12px}
.role-btn b{font-size:15px}

/* Deliver-to + search */
.home-top{max-width:1100px;margin:14px auto 0;padding:0 22px;display:flex;flex-direction:column;gap:10px}
.deliver-to{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:11px 14px;box-shadow:0 4px 14px #00241a0a}
.dt-ico{width:38px;height:38px;border-radius:12px;background:var(--soft);color:var(--g);display:grid;place-items:center;flex-shrink:0}
.dt-ico .ic{width:20px;height:20px}
.dt-text{flex:1;min-width:0}
.dt-text small{display:block;color:var(--muted);font-size:11.5px;font-weight:700}
.dt-text b{display:block;font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.dt-text b:not(.has-addr){color:var(--g)}
.dt-arrow{font-size:26px;color:var(--g);line-height:1}
.search-pro{display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid #dce9e3;border-radius:18px;padding:0 14px;box-shadow:0 4px 14px #00241a0a;transition:.15s}
.search-pro:focus-within{border-color:var(--g);box-shadow:0 0 0 4px #0f7a3d14}
.sp-ico{color:var(--g);display:grid;place-items:center}
.sp-ico .ic{width:21px;height:21px}
.search-pro input{flex:1;border:0!important;outline:none;background:transparent;padding:15px 0!important;font-size:15px;min-width:0;max-width:none!important;box-shadow:none!important}
.rtl .deliver-to .dt-arrow{transform:scaleX(-1)}
@media(max-width:600px){.home-top{padding:0 14px;margin-top:10px}}

/* Category pictures */
.category .cat-circle{width:64px;height:64px;padding:0;background:transparent;overflow:visible;box-shadow:0 6px 14px #00241a14;font-size:0}
.category .cat-circle .cat-img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.category{padding:14px 6px 12px;border-radius:20px}
.category b{display:block;margin-top:2px;font-size:12.5px;color:var(--ink)}
.category-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:12px}
@media(max-width:600px){.category-grid{grid-template-columns:repeat(3,1fr);gap:10px}.category .cat-circle{width:60px;height:60px}}

/* Product pictures */
.product-img{position:relative;overflow:hidden;background:linear-gradient(160deg,#f3faf6,#eaf3ef)}
.product-img img{width:100%;height:100%;object-fit:cover}
.product-img img.ph-img{width:72%;height:72%;object-fit:contain;margin:auto;opacity:.95}

/* ===== v6: role cards with real photos ===== */
.role-grid{grid-template-columns:1fr;gap:14px;max-width:420px}
.role-btn.rb{position:relative;overflow:hidden;padding:0;height:128px;border:0;border-radius:24px;display:block;text-align:left;background:#0a5a2c;box-shadow:0 12px 28px #00382a2e}
.rb-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.rb-customer .rb-photo{object-position:50% 6%}
.rb-vendor .rb-photo{object-position:50% 26%}
.rb-rider .rb-photo{object-position:50% 50%}
.role-btn.rb:hover .rb-photo{transform:scale(1.06)}
.rb-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,60,30,.88) 0%,rgba(6,60,30,.55) 45%,rgba(6,60,30,0) 78%)}
.rb-text{position:absolute;left:20px;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;gap:4px;max-width:66%}
.rb-text b{font-size:23px;font-weight:900;color:#fff;letter-spacing:.2px;text-shadow:0 2px 8px #0006}
.rb-text small{font-size:12.5px;font-weight:700;color:#ffe9a6;line-height:1.35}
.rb-go{position:absolute;right:16px;bottom:14px;width:38px;height:38px;border-radius:50%;background:#ffc400;color:#07391f;display:grid;place-items:center;font-size:26px;line-height:1;font-weight:900;padding-bottom:3px;box-shadow:0 6px 14px #0004}
.role-btn.rb:hover{transform:translateY(-2px);border:0}
.rtl .rb-text{left:auto;right:20px;text-align:right}
.rtl .rb-go{right:auto;left:16px;transform:scaleX(-1)}
.rtl .rb-shade{transform:scaleX(-1)}
@media(min-width:800px){
  .role-grid{grid-template-columns:repeat(3,1fr);max-width:980px;gap:18px}
  .role-btn.rb{height:280px}
  .rb-shade{background:linear-gradient(0deg,rgba(6,60,30,.92) 0%,rgba(6,60,30,.35) 45%,rgba(6,60,30,0) 75%)}
  .rtl .rb-shade{transform:none}
  .rb-text{top:auto;left:20px;right:20px;bottom:18px;max-width:none;justify-content:flex-end}
  .rb-text b{font-size:26px}
  .rb-go{bottom:18px}
}

.rb picture{position:absolute;inset:0;display:block}
@media(min-width:800px){.rb-customer .rb-photo{object-position:50% 20%}.rb-vendor .rb-photo{object-position:50% 30%}}

/* ===== v7: WhatsApp support button on every dashboard ===== */
.whatsapp-float{background:#25D366!important;bottom:96px!important;right:16px;width:56px;height:56px;box-shadow:0 10px 24px #25d36655!important}
.whatsapp-float:before{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid #25d36640;animation:waPulse 2.4s ease-out infinite}
@keyframes waPulse{0%{transform:scale(.9);opacity:.9}100%{transform:scale(1.35);opacity:0}}
.chat-bubble{bottom:164px!important}

/* ===== v8: role screen fits fully on phone screens (no cut-off, language button visible) ===== */
.role-gate{min-height:100vh;min-height:100dvh}
@media(max-width:600px){
  .role-gate{justify-content:flex-start;padding:16px 16px calc(18px + env(safe-area-inset-bottom,0px))}
  .gate-logo{width:104px;margin:0 0 4px}
  .role-gate h1{font-size:22px;margin:2px 0}
  .role-gate p{font-size:14px;margin:0 0 12px}
  .role-grid{gap:10px}
  .role-btn.rb{height:92px;border-radius:20px}
  .rb-text{left:16px;gap:2px}
  .rb-text b{font-size:20px}
  .rb-text small{font-size:12px}
  .rb-go{width:32px;height:32px;font-size:22px;right:12px;bottom:10px}
  .legal-links{margin-top:12px}
  .gate-lang{margin-top:10px}
}
@media(max-width:600px) and (max-height:620px){
  .gate-logo{width:80px}
  .role-btn.rb{height:78px}
  .rb-text b{font-size:18px}
  .rb-text small{display:none}
  .role-gate p{margin-bottom:8px}
}

/* ===== v9: Vendor advance balance ===== */
.prepaid-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 6px 18px #00241a0f;border-left:6px solid var(--g)}
.prepaid-card.warn{border-left-color:#ff9800;background:#fffaf0}
.prepaid-card.bad{border-left-color:#d9483a;background:#fff5f4}
.prepaid-card.info{border-left-color:#29b6f6;background:#f2faff}
.prepaid-amount small{display:block;color:var(--muted);font-weight:700;font-size:12px}
.prepaid-amount b{font-size:32px;font-weight:900;color:var(--ink)}
.prepaid-card.bad .prepaid-amount b{color:#d9483a}
.prepaid-msg{margin:6px 0 0;font-weight:700;font-size:14px}
.prepaid-how{margin:10px 0 8px;font-size:13px;color:var(--muted);line-height:1.5}
.prepaid-wa{display:inline-flex;align-items:center;gap:6px;background:#25D366;color:#fff!important;padding:10px 16px;border-radius:14px;font-weight:800}
.amt-plus{color:#0a8a4a}.amt-minus{color:#d9483a}
.prepaid-admin{flex-basis:100%;background:#f6faf8;border:1px dashed #cfe0d8;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px}
.prepaid-admin-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.prepaid-admin-top b{font-size:16px;color:var(--g)}
.prepaid-admin-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.prepaid-admin-row input[type=number],.prepaid-admin-row input[type=date]{border:1px solid #dce9e3;border-radius:12px;padding:9px 10px;max-width:160px}
.prepaid-chk,.prepaid-free{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700}

/* =====================================================================
   v10 — APP-STYLE REDESIGN (customer + vendor), based on the video mock-ups
   ===================================================================== */
:root{--g-deep:#0a5a2c;--mint:#e3f6ec}

/* ---------- Bottom navigation: white bar, floating centre button ---------- */
.bottom-nav{background:#fff!important;border:0!important;border-radius:26px 26px 0 0;box-shadow:0 -8px 28px #0b3d2b22;padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px))}
.bottom-nav a{color:#7b8b84;font-weight:700;font-size:11px}
.bottom-nav a.nav-active{color:var(--g);background:transparent}
.bottom-nav a.nav-active .nav-icon{transform:none}
.bottom-nav a.nav-active:not(.nav-center):after{content:"";display:block;width:5px;height:5px;border-radius:50%;background:var(--g);margin:2px auto 0}
.bottom-nav.nav-fab{overflow:visible;justify-content:space-around;align-items:flex-end}
.bottom-nav.nav-fab a{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;padding:6px 2px 4px}
.bottom-nav.nav-fab a.nav-center{position:relative;flex:0 0 78px}
.bottom-nav.nav-fab a.nav-center .nav-icon{position:absolute;top:-34px;left:50%;transform:translateX(-50%);width:62px;height:62px;border-radius:50%;background:linear-gradient(145deg,#22b35a,#0f7a3d);color:#fff;border:5px solid #fff;box-shadow:0 10px 22px #0f7a3d60;display:grid;place-items:center}
.bottom-nav.nav-fab a.nav-center .nav-icon .ic{width:26px;height:26px}
.bottom-nav.nav-fab a.nav-center>span:last-of-type{margin-top:30px;color:var(--g)}
.bottom-nav.nav-fab a.nav-center b{position:absolute;top:-30px;left:calc(50% + 12px);right:auto;background:#ff8c00;color:#fff;min-width:20px;height:20px;border-radius:10px;padding:0 5px;display:grid;place-items:center;font-size:11px;border:2px solid #fff;z-index:2}
.bottom-nav b.hidden{display:none}
@media(min-width:900px){.bottom-nav.nav-fab{width:min(560px,100%)}}
body{padding-bottom:100px}

/* ---------- Top bar ---------- */
.top-cart{display:none;position:relative;border:0;background:#ffffff26;color:#fff;width:40px;height:40px;border-radius:13px;place-items:center;cursor:pointer;padding:0}
.top-cart .ic{width:21px;height:21px;margin:auto}
.notif-bell{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;padding:0}
.notif-bell .ic{width:21px;height:21px}
.top-cart .notif-badge{position:absolute;top:-4px;right:-4px}
.top-cart .notif-badge.hidden{display:none}
@media(max-width:600px){.switch-role{display:none!important}}

/* Customer: solid green header + search block (like the mock-up) */
body[data-role="customer"] .topbar{background:linear-gradient(135deg,#14914a,#0f7a3d);box-shadow:none;border:0;color:#fff;min-height:64px}
body[data-role="customer"] .brand strong{color:#fff;font-size:17px;line-height:1.1;max-width:96px;white-space:normal}
body[data-role="customer"] .brand span{display:none}
body[data-role="customer"] .topbar .logo{width:38px;height:38px;border-radius:50%;padding:2px;background:#fff}
body[data-role="customer"] .menu-btn{background:#ffffff26;color:#fff;font-size:20px;width:40px;height:40px;border-radius:13px;padding:0}
body[data-role="customer"] .notif-bell{background:#ffffff26;color:#fff}
body[data-role="customer"] .top-cart{display:grid}
body[data-role="customer"] .lang{background:#ffffff26;color:#fff;border:0;border-radius:13px;padding:10px 12px}
body[data-role="customer"] .home-top{max-width:none;margin:0;width:100%;padding:0 16px 22px;background:linear-gradient(135deg,#14914a,#0f7a3d);border-radius:0 0 30px 30px;gap:12px}
body[data-role="customer"] .deliver-to{background:#ffffff1f;border:0;box-shadow:none;max-width:1068px;margin:0 auto;width:100%}
body[data-role="customer"] .dt-ico{background:#ffffff2e;color:#fff}
body[data-role="customer"] .dt-text small{color:#d6f3e6}
body[data-role="customer"] .dt-text b,body[data-role="customer"] .dt-text b:not(.has-addr){color:#fff}
body[data-role="customer"] .dt-arrow{color:#fff}
body[data-role="customer"] .search-pro{max-width:1068px;margin:0 auto;width:100%;border:0;box-shadow:0 8px 20px #00382a30;border-radius:26px;padding:0 18px}
body[data-role="customer"] .search-pro input{padding:16px 0!important}

/* Hero → compact photo banner */
.hero{position:relative;overflow:hidden;min-height:160px;margin:18px auto 8px;max-width:1068px;border-radius:24px;padding:22px 20px;background:linear-gradient(90deg,rgba(7,74,36,.96) 0%,rgba(7,74,36,.88) 38%,rgba(7,74,36,.25) 100%),url(assets/photos/vegetables.jpg) center/cover;box-shadow:0 12px 28px #00382a30;align-items:flex-end}
.hero:after{display:none}
.hero .eyebrow,.hero p,.hero-card{display:none!important}
.hero h1{font-size:22px;line-height:1.2;margin:0 0 12px;max-width:62%;text-shadow:0 2px 8px #0005}
.hero .primary{background:#ffc400;color:#4a3300;border-radius:999px;padding:10px 20px;font-size:14px;box-shadow:0 6px 14px #0004;margin:0}
@media(min-width:700px){.hero{min-height:210px;padding:30px}.hero h1{font-size:34px;max-width:50%}}
@media(max-width:600px){.hero{margin:16px 14px 6px;min-height:150px;padding:20px 18px;background:linear-gradient(90deg,rgba(7,74,36,.96) 0%,rgba(7,74,36,.86) 40%,rgba(7,74,36,.2) 100%),url(assets/photos/vegetables.jpg) center/cover}}

/* Section headings with "See All" */
.section h2{font-size:19px;color:var(--ink)}
.see-all{color:var(--g);font-weight:800;font-size:13.5px;white-space:nowrap}

/* Product cards */
.product{border-radius:20px;padding:10px;border:1px solid #edf3f0;box-shadow:0 6px 18px #00241a0d;display:flex;flex-direction:column}
.product-img{height:auto;aspect-ratio:1/1;border-radius:16px;background:#f4f8f6}
.product h3{font-size:14.5px;line-height:1.3;margin:10px 2px 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.product .price{font-size:16px;margin:0 2px 2px}
.product .add{border-radius:14px;padding:11px;margin-top:auto}
.product-grid{gap:12px}

/* ---------- Mint look for vendor / rider / admin ---------- */
body[data-role="vendor"],body[data-role="rider"],body[data-role="admin"]{background:#f3faf6 linear-gradient(180deg,#d6f1e2 0,#f3faf6 340px) no-repeat}
body[data-role="vendor"] .topbar,body[data-role="rider"] .topbar,body[data-role="admin"] .topbar{background:transparent;box-shadow:none;border:0}
body[data-role="vendor"] .brand strong,body[data-role="rider"] .brand strong,body[data-role="admin"] .brand strong{font-size:19px;color:var(--g-deep);font-weight:900}
body[data-role="vendor"] .brand span,body[data-role="rider"] .brand span,body[data-role="admin"] .brand span{color:var(--g)}
body[data-role="vendor"] .lang,body[data-role="rider"] .lang,body[data-role="admin"] .lang,
body[data-role="vendor"] .notif-bell,body[data-role="rider"] .notif-bell,body[data-role="admin"] .notif-bell{background:#fff;box-shadow:0 4px 12px #00382a14}

/* Vendor top block */
.v-shop-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.v-hello{display:block;color:var(--muted);font-weight:700;font-size:12.5px}
.v-title{font-size:24px!important;font-weight:900;color:var(--g-deep)!important;margin:2px 0 0}
.v-toggle{margin:0!important;background:#fff!important;border:1px solid var(--line);border-radius:999px!important;padding:9px 14px!important;box-shadow:0 4px 12px #00382a10}
.v-banner{display:flex;align-items:center;gap:14px;margin:16px 0 20px;padding:16px;border-radius:24px;color:#fff;background:linear-gradient(135deg,#f2a21d,#ee7a1c);box-shadow:0 12px 26px #ee7a1c40;position:relative;overflow:hidden}
.v-banner:before{content:"";position:absolute;right:-30px;top:-40px;width:150px;height:150px;border-radius:50%;background:#ffffff22}
.v-banner.has-new{background:linear-gradient(135deg,#1aa352,#0f7a3d);box-shadow:0 12px 26px #0f7a3d48}
.v-banner-ico{width:46px;height:46px;border-radius:15px;background:#ffffff33;display:grid;place-items:center;flex-shrink:0;position:relative}
.v-banner-ico .ic{width:24px;height:24px}
.v-banner.has-new .v-banner-ico:after{content:"";position:absolute;inset:-4px;border-radius:19px;border:2px solid #ffffff80;animation:waPulse 1.8s ease-out infinite}
.v-banner-text{flex:1;min-width:0;position:relative}
.v-banner-text b{display:block;font-size:17px;font-weight:900}
.v-banner-text small{display:block;font-size:12.5px;opacity:.92;margin-top:3px}
.v-banner-go{font-size:30px;line-height:1;opacity:.9;position:relative}
.v-h3{font-size:18px;font-weight:900;margin:0;color:var(--ink)}
.v-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.v-stats .stat-card{display:flex;align-items:center;gap:12px;padding:14px;text-align:left;min-width:0}
.sc-ico{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;flex-shrink:0;font-style:normal}
.sc-ico .ic{width:22px;height:22px}
.c-green{background:#dff5ea;color:#12843f}.c-blue{background:#e1effd;color:#2278d4}.c-purple{background:#eee6fb;color:#7a4fd0}
.c-orange{background:#ffeed8;color:#e8780f}.c-teal{background:#dcf5f4;color:#0f9a95}.c-pink{background:#fde4ee;color:#d6407c}
.sc-body{min-width:0}
.v-stats .sc-body span{display:block;font-size:19px;font-weight:900;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v-stats .sc-body b{display:block;font-size:12px;color:var(--muted);font-weight:700;margin-top:2px}
.rtl .v-stats .stat-card{text-align:right}

/* Earnings chart */
.earn-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:16px;box-shadow:0 8px 22px #00241a0f}
.earn-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.earn-head small{display:block;color:var(--muted);font-weight:700;font-size:12.5px}
.earn-head b{font-size:26px;font-weight:900;color:var(--ink)}
.earn-chip{background:var(--soft);color:var(--g);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:800}
.earn-chart svg{width:100%;height:auto;display:block;margin-top:6px}
.eg-grid line{stroke:#e5eeea;stroke-width:1}
.eg-line{fill:none;stroke:#1aa352;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.eg-dots circle{fill:#fff;stroke:#1aa352;stroke-width:3}
.eg-lbl text{fill:#7b8b84;font-size:10px;font-weight:700}

/* Shop settings (collapsible) */
.shop-settings{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 6px 18px #00241a0d;overflow:hidden}
.shop-settings summary{list-style:none;display:flex;align-items:center;gap:12px;padding:14px 16px;font-weight:800;cursor:pointer}
.shop-settings summary::-webkit-details-marker{display:none}
.shop-settings summary:after{content:"\203A";margin-left:auto;font-size:24px;color:var(--g);transition:transform .2s}
.shop-settings[open] summary:after{transform:rotate(90deg)}
.rtl .shop-settings summary:after{margin-left:0;margin-right:auto}
.shop-settings-body{padding:4px 16px 16px;display:flex;flex-direction:column;gap:12px}
.shop-settings-body .hours-row{margin:0}

/* =====================================================================
   v11 — REFERENCE-STYLE DASHBOARDS (vendor / rider / admin) + shared pieces
   ===================================================================== */
body[data-role]{background:#f4f8f5}
body[data-role] .topbar{background:linear-gradient(135deg,#0a5a2c,#0f7a3d)!important;box-shadow:0 4px 16px #0a5a2c40!important;border:0!important;color:#fff}
body[data-role] .brand strong{color:#fff!important;font-size:17px;font-weight:900}
body[data-role] .brand span{color:#cdeedb!important}
body[data-role] .topbar .logo{background:#fff;border-radius:50%;padding:2px;width:40px;height:40px}
body[data-role] .lang,body[data-role] .notif-bell,body[data-role] .menu-btn{background:#ffffff26!important;color:#fff!important;border:0!important;box-shadow:none!important}
body[data-role] .switch-role{background:#ffffff26;color:#fff}
body[data-role]:not([data-role="customer"]) .top-cart{display:none}

.v-title{font-size:22px!important;font-weight:900;color:var(--ink)!important;margin:0 0 12px}

/* chips (All / Pending / Preparing / Delivered) */
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 12px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex-shrink:0;border:1px solid #d9e6de;background:#fff;color:#4b5d54;border-radius:999px;padding:9px 18px;font-weight:800;font-size:13px;cursor:pointer}
.chip.active{background:var(--g);border-color:var(--g);color:#fff;box-shadow:0 6px 14px #0f7a3d40}

/* status pills */
.status{border-radius:999px;padding:4px 11px;font-size:11.5px;font-weight:800;display:inline-block}
.status.s-pending{background:#fff1da;color:#d97706}
.status.s-preparing{background:#ffe7e4;color:#d9483a}
.status.s-delivered{background:#e1f5e8;color:#12843f}
.status.s-cancelled{background:#eceff1;color:#6b7a73}

/* order rows */
.order-row{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:10px;box-shadow:0 5px 14px #00241a0a}
.or-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.or-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.or-top b{font-size:15px}
.or-amt{font-size:18px;font-weight:900;margin:5px 0 2px}
.or-date{color:var(--muted);font-weight:700}
.or-actions{display:flex;gap:8px;flex-shrink:0}
.view-btn{border:1.5px solid var(--g);color:var(--g);background:#fff;border-radius:11px;padding:8px 18px;font-weight:800;cursor:pointer}
.or-body{display:none;margin-top:10px;padding-top:10px;border-top:1px dashed #dbe7e0}
.order-row.open .or-body{display:flex;flex-direction:column;gap:8px}

/* 4 stat cards (vendor + rider) */
.v-stats4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:6px}
.sc4{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 16px;text-align:left;box-shadow:0 5px 14px #00241a0a;display:block!important}
.sc4 small{display:block;color:var(--muted);font-weight:800;font-size:12.5px}
.sc4 span{display:block;font-size:28px;font-weight:900;color:var(--ink);margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc4.pend span{color:#d9483a}
.sc4.sales span{color:var(--g);font-size:22px;line-height:34px}
.rtl .sc4{text-align:right}
.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.mini-stat{background:#e5f4ea;border-radius:16px;padding:12px 8px;text-align:center}
.mini-stat span{display:block;font-weight:900;font-size:16px;color:var(--g-deep)}
.mini-stat small{display:block;font-weight:700;font-size:11.5px;color:#4b5d54;margin-top:2px}

/* charts */
.eb-on{fill:#14914a}.eb-off{fill:#dfeae3}
.eg-line{stroke:#14914a!important}

/* vendor products as list rows */
#vendorProductGrid{display:flex!important;flex-direction:column;gap:10px;padding-bottom:6px}
#vendorProductGrid .product{display:grid;grid-template-columns:64px 1fr auto;grid-template-rows:auto auto auto;column-gap:12px;align-items:center;padding:10px;border-radius:18px}
#vendorProductGrid .product-img{grid-row:1/4;width:64px;height:64px;aspect-ratio:auto;border-radius:14px}
#vendorProductGrid .product h3{grid-column:2;margin:0;min-height:0;-webkit-line-clamp:1}
#vendorProductGrid .product .price{grid-column:2;margin:0;font-size:14px}
#vendorProductGrid .product .stock-note{grid-column:2;color:var(--muted);font-weight:700}
#vendorProductGrid .product .add{grid-column:3;grid-row:1/4;width:auto;margin:0;padding:9px 13px;background:#fdecea;color:#d9483a;border-radius:12px}

/* rider dashboard */
.r-online{display:flex!important;align-items:center;gap:12px;background:#fff!important;border:1px solid var(--line);border-radius:18px!important;padding:14px 16px!important;margin:0 0 14px!important;box-shadow:0 5px 14px #00241a0a}
.r-dot{width:11px;height:11px;border-radius:50%;background:#aab5af;flex-shrink:0}
.r-online.on .r-dot{background:#22b35a;box-shadow:0 0 0 5px #22b35a30}
input.switch{-webkit-appearance:none;appearance:none;width:54px!important;height:30px!important;border-radius:999px;background:#cfd8d3;position:relative;margin-inline-start:auto;transition:background .2s;cursor:pointer;flex-shrink:0}
input.switch:before{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 2px 6px #0003;transition:transform .2s}
input.switch:checked{background:#22b35a}
input.switch:checked:before{transform:translateX(24px)}
.go-online-btn{display:block;width:100%;margin-top:14px;padding:16px;border:0;border-radius:16px;background:linear-gradient(135deg,#14914a,#0f7a3d);color:#fff;font-weight:900;font-size:17px;cursor:pointer;box-shadow:0 10px 22px #0f7a3d44}
.go-online-btn.is-online{background:linear-gradient(135deg,#6b7a73,#4a5851);box-shadow:0 10px 22px #4a585144}

/* admin tiles */
.a-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.a-tile{border-radius:18px;padding:14px 16px;border:1px solid #0000000d}
.a-tile small{display:block;font-weight:800;font-size:12.5px}
.a-tile span{display:block;font-size:24px;font-weight:900;color:var(--ink);margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-tile.blue{background:#e6f0fd}.a-tile.blue small{color:#2a6fdb}
.a-tile.green{background:#e1f5e8}.a-tile.green small{color:#12843f}
.a-tile.teal{background:#dcf5f1}.a-tile.teal small{color:#0f8f86}
.a-tile.pink{background:#fde7ea}.a-tile.pink small{color:#d6405e}
.a-tile.amber{background:#fff3dc}.a-tile.amber small{color:#d98200}
.a-tile.violet{background:#eee8fb}.a-tile.violet small{color:#7248d0}
@media(min-width:700px){.a-tiles{grid-template-columns:repeat(3,1fr)}}

/* payment (JazzCash / Easypaisa) block at checkout */
.payment-method-row{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.payment-method-row>label:first-child{font-weight:900}
.pm-option{display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid #dce9e3;border-radius:14px;padding:12px 14px;font-weight:700;cursor:pointer}
.pm-option:has(input:checked){border-color:var(--g);background:#eef8f1}
.payment-proof-box{background:#f6faf7;border:1px dashed #b8d4c3;border-radius:16px;padding:12px;margin:8px 0 12px}
.camera-field{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* =====================================================================
   v12 — FULL-SCREEN: Order Success + Order Tracking (customer)
   ===================================================================== */
body.no-scroll{overflow:hidden}
.screen{position:fixed;inset:0;z-index:3000;background:#f4f8f5;display:flex;flex-direction:column;overflow-y:auto;-webkit-overflow-scrolling:touch}
.screen.hidden{display:none!important}
.outline-btn{display:block;border:1.5px solid var(--g);color:var(--g);background:#fff;border-radius:16px;padding:15px;font-weight:900;font-size:16px;cursor:pointer;text-align:center}
.outline-btn.full{width:100%}

/* ---- Order success ---- */
.os-screen{background:linear-gradient(180deg,#e2f5e8 0,#f8fcf9 55%,#fff 100%);align-items:center;justify-content:center;padding:24px 20px calc(24px + env(safe-area-inset-bottom,0px))}
.os-wrap{width:100%;max-width:420px;text-align:center;display:flex;flex-direction:column;gap:12px}
.os-check{width:116px;height:116px;border-radius:50%;margin:0 auto 6px;background:linear-gradient(145deg,#22b35a,#0f7a3d);display:grid;place-items:center;box-shadow:0 0 0 14px #22b35a22,0 0 0 30px #22b35a12,0 18px 34px #0f7a3d55;animation:osPop .55s cubic-bezier(.2,1.4,.4,1) both}
.os-tick{width:62px;height:62px;color:#fff;stroke-width:3.2;stroke-dasharray:30;stroke-dashoffset:30;animation:osDraw .5s .35s ease forwards}
@keyframes osPop{0%{transform:scale(.3);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes osDraw{to{stroke-dashoffset:0}}
.os-wrap h2{margin:18px 0 0;font-size:25px;font-weight:900;color:var(--g-deep)}
.os-id{margin:0;color:var(--muted);font-weight:700}
.os-id b{color:var(--ink);font-size:17px;letter-spacing:.4px}
.os-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:6px 16px;margin:8px 0 6px;box-shadow:0 8px 22px #00241a10;text-align:left}
.os-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf3f0}
.os-row:last-child{border-bottom:0}
.os-row small{color:var(--muted);font-weight:700}
.os-row b{color:var(--g);font-weight:900;text-align:right}
.rtl .os-card{text-align:right}
.os-orders{align-self:center;color:var(--g);font-weight:800}

/* ---- Track order ---- */
.track-screen{background:#f4f8f5}
.screen-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;padding:12px 14px;background:linear-gradient(135deg,#0a5a2c,#0f7a3d);color:#fff;box-shadow:0 4px 14px #0a5a2c40}
.screen-bar h3{margin:0;font-size:18px;font-weight:900;flex:1}
.screen-back{width:40px;height:40px;border-radius:13px;border:0;background:#ffffff26;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.screen-back .ic{width:22px;height:22px}
.rtl .screen-back .ic{transform:scaleX(-1)}
.screen-id{background:#ffffff26;border-radius:999px;padding:6px 12px;font-size:12.5px;font-weight:800}
.track-map-wrap{position:relative;z-index:0;height:42vh;min-height:250px;flex-shrink:0;background:#dfeae3}
#trackModal .track-map{height:100%;width:100%;border-radius:0;margin:0}
.track-sheet{position:relative;z-index:1;margin-top:-28px;background:#fff;border-radius:28px 28px 0 0;padding:20px 18px calc(28px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 30px #00241a1c;flex:1}
.ts-head{display:flex;align-items:center;gap:14px}
.ts-ico{width:52px;height:52px;border-radius:17px;background:#e5f4ea;color:var(--g);display:grid;place-items:center;flex-shrink:0;font-style:normal}
.ts-ico .ic{width:28px;height:28px}
.ts-head b{display:block;font-size:19px;font-weight:900;color:var(--ink)}
.ts-head small{display:block;color:var(--muted);font-weight:700;margin-top:3px}
.ts-eta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:16px 0 4px;padding:13px 16px;background:#eef8f1;border-radius:16px}
.ts-eta span{color:#4b5d54;font-weight:700;font-size:13.5px}
.ts-eta b{color:var(--g);font-weight:900;font-size:15px;text-align:right}
.ts-eta.hidden,.ts-rider.hidden{display:none}
.ts-rider{display:flex;align-items:center;gap:12px;margin:12px 0 4px;padding:12px 14px;border:1px solid var(--line);border-radius:16px}
.ts-avatar{width:42px;height:42px;border-radius:50%;background:#e5f4ea;color:var(--g);display:grid;place-items:center;flex-shrink:0;font-style:normal}
.ts-avatar .ic{width:22px;height:22px}
.ts-rider>div{flex:1;min-width:0}
.ts-rider b{display:block;font-size:15px}
.ts-rider small{display:block;color:var(--muted);font-weight:700;text-transform:capitalize}
.ts-rider .pill.hidden{display:none}

/* timeline */
.timeline{list-style:none;margin:20px 0 0;padding:0}
.tl{position:relative;display:flex;gap:14px;align-items:flex-start;padding:0 0 24px}
.tl:last-child{padding-bottom:0}
.tl:before{content:"";position:absolute;left:11px;top:24px;bottom:0;width:3px;background:#dfe8e3;border-radius:2px}
.rtl .tl:before{left:auto;right:11px}
.tl:last-child:before{display:none}
.tl-dot{width:25px;height:25px;border-radius:50%;background:#fff;border:3px solid #cfdad4;flex-shrink:0;position:relative;z-index:1}
.tl b{display:block;font-size:15px;color:#7b8b84;font-weight:800}
.tl small{display:block;color:var(--muted);font-weight:700;margin-top:2px}
.tl.done:before{background:var(--g)}
.tl.done .tl-dot{background:var(--g);border-color:var(--g)}
.tl.done .tl-dot:after{content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg)}
.tl.done b{color:var(--ink)}
.tl.current .tl-dot{background:#fff;border-color:var(--g);box-shadow:0 0 0 6px #14914a2e;animation:tlPulse 1.8s ease-out infinite}
.tl.current .tl-dot:after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--g)}
.tl.current b{color:var(--g-deep);font-size:16px}
@keyframes tlPulse{0%{box-shadow:0 0 0 0 #14914a66}100%{box-shadow:0 0 0 12px #14914a00}}
@media(min-width:700px){.track-sheet{max-width:560px;margin-left:auto;margin-right:auto;width:100%}.os-wrap{max-width:460px}}
