:root{--navy:#07162f;--navy2:#102c59;--orange:#f47a20;--gold:#ffbd39;--bg:#f5f7fb;--card:#fff;--ink:#13213a;--muted:#748096;--line:#e5eaf1;--ok:#168a5b;--bad:#b93b48;--shadow:0 16px 40px #07162f16}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Tahoma,Arial,sans-serif;font-size:16px}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.screen{min-height:100vh}.auth{display:grid;grid-template-columns:1.05fr .95fr;background:linear-gradient(135deg,var(--navy),#12366a)}.auth-visual{display:flex;flex-direction:column;justify-content:center;padding:8vw;color:#fff;position:relative;overflow:hidden}.auth-visual:after{content:"";position:absolute;width:430px;height:430px;border-radius:50%;background:#ff8a0033;left:-170px;bottom:-120px}.auth-brand{display:flex;align-items:center;gap:15px;font-size:34px;font-weight:900}.auth-brand img{width:74px;height:74px;border-radius:22px}.auth-visual h1{font-size:clamp(36px,5vw,70px);margin:50px 0 14px;line-height:1.1}.auth-visual p{color:#d6e1f3;line-height:2;font-size:18px;max-width:560px}.auth-panel{background:#fff;border-radius:36px 0 0 36px;margin:20px 20px 20px 0;padding:clamp(25px,6vw,80px);display:flex;align-items:center}.auth-box{width:min(460px,100%);margin:auto}.auth-box h2{font-size:32px;margin:0 0 10px}.tabs{display:flex;background:#f0f3f8;border-radius:14px;padding:5px;margin:24px 0}.tabs button{flex:1;border:0;background:transparent;padding:12px;border-radius:11px;color:var(--muted)}.tabs button.active{background:#fff;color:var(--navy);font-weight:800;box-shadow:0 5px 18px #07162f12}.field{margin:14px 0}.field label{display:block;font-weight:800;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;border:1px solid #d8e0eb;border-radius:13px;padding:13px;background:#fff;color:var(--ink)}.field textarea{min-height:90px;resize:vertical}.btn{border:0;border-radius:13px;padding:13px 18px;font-weight:800}.btn.primary{background:linear-gradient(110deg,var(--orange),var(--gold));color:#fff}.btn.dark{background:var(--navy);color:#fff}.btn.soft{background:#eef2f7;color:var(--ink)}.btn.outline{background:#fff;border:1px solid var(--line)}.btn.block{width:100%}.notice{padding:12px 14px;border-radius:12px;background:#fff4e7;color:#8d570e;margin:12px 0}.notice.ok{background:#eaf8f1;color:var(--ok)}.notice.bad{background:#ffebed;color:var(--bad)}
.topbar{height:78px;background:linear-gradient(110deg,var(--navy),var(--navy2));color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(4vw,18px);position:sticky;top:0;z-index:40}.brand{display:flex;align-items:center;gap:11px;font-size:24px;font-weight:900}.brand img{width:48px;height:48px;border-radius:15px}.user-chip{display:flex;align-items:center;gap:12px;background:#ffffff13;padding:8px 12px;border-radius:14px}.avatar{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--orange),var(--gold));display:grid;place-items:center;color:#fff;font-weight:900}.shell{max-width:1240px;margin:auto;padding:24px 24px 110px}.hero{background:linear-gradient(130deg,var(--navy),#16417f);color:#fff;border-radius:28px;padding:28px;display:grid;grid-template-columns:1.2fr .8fr;gap:20px;box-shadow:var(--shadow)}.hero h1{font-size:clamp(28px,4vw,48px);margin:0 0 10px}.hero p{color:#d7e2f3;line-height:1.8}.hero-card{background:#ffffff14;border:1px solid #ffffff22;border-radius:20px;padding:20px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 14px}.section-head h2{margin:0}.services{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.service-card,.store-card,.product,.panel{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 25px #07162f0a}.service-card{padding:18px;text-align:center}.service-card:hover{border-color:#ff9c45;transform:translateY(-2px)}.service-icon{font-size:34px;display:block;margin-bottom:8px}.store-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.store-card{padding:18px;display:flex;align-items:center;gap:14px}.store-ico{width:58px;height:58px;border-radius:17px;background:#fff3e8;display:grid;place-items:center;font-size:30px}.pill{display:inline-block;padding:5px 10px;border-radius:999px;background:#eaf8f1;color:var(--ok);font-size:13px}.view{display:none}.view.active{display:block}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.product{padding:16px}.product-art{height:120px;border-radius:16px;background:linear-gradient(135deg,#fff0df,#ffe2aa);display:grid;place-items:center;font-size:52px}.product h3{margin:12px 0 6px}.price{font-size:19px;font-weight:900;color:var(--orange)}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:82px;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;z-index:50;box-shadow:0 -12px 30px #07162f0e}.bottom-nav button{flex:1 1 0;width:auto;min-width:0;max-width:150px;border:0;background:transparent;color:#748096;display:grid;place-items:center;align-content:center;gap:4px;touch-action:manipulation}.bottom-nav button.active{color:var(--orange)}.nav-icon{font-size:23px}.badge{background:var(--orange);color:#fff;border-radius:999px;font-size:11px;padding:2px 6px;position:absolute;margin:-28px 0 0 -24px}.panel{padding:20px}.cart-row,.order-card,.wallet-row,.quote-row{border-bottom:1px solid var(--line);padding:14px 0}.cart-row:last-child,.wallet-row:last-child{border:0}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:grid;gap:12px}.summary{background:#f6f8fb;border-radius:16px;padding:16px;line-height:2}.summary .total{font-size:21px;font-weight:900;border-top:1px dashed #ccd5e2;margin-top:7px;padding-top:7px}.empty{text-align:center;padding:45px;color:var(--muted)}
.promo-banner{width:100%;border:0;border-radius:24px;margin-bottom:18px;padding:22px 26px;background:linear-gradient(120deg,#f47a20,#ffb52f 58%,#07162f 58%);color:#fff;display:flex;align-items:center;justify-content:space-between;text-align:right;box-shadow:0 14px 34px #f47a2033;overflow:hidden;position:relative}.promo-banner:after{content:"";position:absolute;width:180px;height:180px;border:28px solid #ffffff18;border-radius:50%;left:13%;top:-75px}.promo-copy{display:grid;gap:5px;position:relative;z-index:1}.promo-copy small{font-weight:800;color:#fff8df}.promo-copy strong{font-size:clamp(20px,3vw,34px)}.promo-copy em{font-style:normal;color:#fff7e9}.promo-art{display:grid;grid-template-columns:auto auto;align-items:center;gap:13px;font-size:48px;position:relative;z-index:1}.promo-art img{width:150px;height:82px;object-fit:cover;border-radius:16px;box-shadow:0 8px 20px #0004}.promo-art b{font-size:15px;background:#fff;color:var(--navy);padding:11px 15px;border-radius:999px}.filtered-title{margin:18px 0 14px;padding:14px 17px;border-right:5px solid var(--orange);background:#fff;border-radius:14px;box-shadow:0 6px 18px #07162f0a}
.modal{position:fixed;inset:0;background:#07162fc7;display:none;align-items:center;justify-content:center;padding:16px;z-index:100}.modal.open{display:flex}.modal-card{width:min(660px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:26px;padding:22px}.modal-card.wide{width:min(960px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-22px;background:#fff;padding:10px 0;z-index:5}.close{width:40px;height:40px;border:0;border-radius:50%;background:#eef2f7;font-size:22px}.mapbox{height:350px;border-radius:18px;position:relative;overflow:hidden;background:#dbe4ee;touch-action:none;border:1px solid #d8e0eb}.map-tiles{position:absolute;inset:0;width:100%;height:100%;z-index:0}.map-tile{position:absolute;width:256px;height:256px;user-select:none;-webkit-user-drag:none}.map-marker{position:absolute;width:34px;height:34px;transform:translate(-50%,-100%);filter:drop-shadow(0 5px 5px #0005);z-index:5}.map-controls{position:absolute;left:10px;top:10px;display:grid;gap:5px;z-index:7}.map-controls button{width:38px;height:38px;border:0;background:#fff;border-radius:9px;box-shadow:0 3px 10px #0002;font-size:20px}.map-attrib{position:absolute;left:5px;bottom:4px;background:#ffffffd9;padding:3px 6px;font-size:10px;z-index:6}.map-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-100%);font-size:34px;z-index:6;pointer-events:none}.map-actions{display:flex;gap:8px;margin-top:10px}.map-actions button{flex:1}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dashboard{display:grid;grid-template-columns:240px 1fr;gap:18px}.side{background:var(--navy);color:#fff;border-radius:22px;padding:16px}.side button{display:block;width:100%;border:0;background:transparent;color:#ccd6e7;padding:13px;text-align:right;border-radius:11px}.side button:hover{background:#ffffff14}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat b{display:block;font-size:28px;margin-top:7px}.invoice{background:#fff;color:#111;padding:25px;border:1px solid #ddd}.invoice-head{display:flex;justify-content:space-between;border-bottom:2px solid var(--navy);padding-bottom:15px}.invoice table{width:100%;border-collapse:collapse;margin:18px 0}.invoice th,.invoice td{border-bottom:1px solid #ddd;padding:10px;text-align:right}.muted{color:var(--muted)}
@media(max-width:850px){.auth{display:block;background:#fff}.auth-visual{min-height:230px;padding:30px}.auth-visual h1{font-size:34px;margin:28px 0 5px}.auth-panel{margin:0;border-radius:28px 28px 0 0;padding:28px 20px}.services{grid-template-columns:repeat(3,1fr)}.store-grid,.product-grid{grid-template-columns:1fr 1fr}.hero{grid-template-columns:1fr}.dashboard{grid-template-columns:1fr}.side{display:none}.stats{grid-template-columns:1fr 1fr}.grid2{grid-template-columns:1fr}.shell{padding:16px 14px 105px}.topbar{height:68px}.brand span{display:none}.user-chip small{display:none}.modal-card{padding:18px}.mapbox{height:320px}}
@media(max-width:520px){.services{grid-template-columns:repeat(2,1fr)}.store-grid,.product-grid{grid-template-columns:1fr}.auth-visual p{font-size:14px}.bottom-nav{height:calc(70px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);justify-content:space-between}.bottom-nav button{font-size:10px;padding:2px 1px;gap:2px}.bottom-nav button .nav-icon{font-size:19px}.bottom-nav button>span:not(.nav-icon){max-width:100%;font-size:clamp(8px,2.4vw,10px);line-height:1.1;white-space:normal;overflow-wrap:anywhere;text-align:center}.stats{grid-template-columns:1fr 1fr}}
.account-username-row{margin:7px 0;color:var(--muted);font-size:14px}.account-username-row b{color:var(--navy);font-weight:850}
@media(max-width:520px){.promo-banner{padding:17px 16px;border-radius:19px;background:linear-gradient(135deg,#f47a20,#ffad27)}.promo-copy strong{font-size:20px}.promo-copy em{font-size:12px}.promo-art{font-size:38px}.promo-art b{display:none}}
@media print{body{background:#fff}.topbar,.bottom-nav,.no-print,.modal-head{display:none!important}.modal{position:static;display:block;background:#fff;padding:0}.modal:not(#invoiceModal){display:none!important}#invoiceModal{position:static!important;background:#fff!important;padding:0!important}.modal-card{max-height:none;width:100%;padding:0}.invoice{border:0}body.speed-print-invoice-only>*:not(#invoiceModal){display:none!important}body.speed-print-invoice-only>#invoiceModal{display:block!important;position:static!important;inset:auto!important;overflow:visible!important}body.speed-print-invoice-only>#invoiceModal>.modal-card{display:block!important;max-height:none!important;height:auto!important;overflow:visible!important;width:100%!important;padding:0!important;border:0!important;box-shadow:none!important}body.speed-print-invoice-only>#invoiceModal .modal-head{display:none!important}body.speed-print-invoice-only>#invoiceModal #invoiceBody{display:block!important;visibility:visible!important}.speed-print-invoice-only #invoiceBody *{visibility:visible!important}}
.registration-chooser-card{max-width:640px}.registration-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:18px 0}.registration-choice{min-width:0;display:grid;justify-items:start;gap:6px;text-align:right;padding:16px;border:1px solid #dce4ef;border-radius:16px;background:linear-gradient(145deg,#fff,#f7f9fc);color:var(--navy);transition:border-color .18s ease,transform .18s ease,background .18s ease}.registration-choice:hover:not(:disabled){border-color:var(--orange);background:#fffaf4;transform:translateY(-2px)}.registration-choice>span{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:#fff0df;color:#bd5a13;font-size:21px;font-weight:900}.registration-choice b{font-size:15px}.registration-choice small{color:var(--muted);line-height:1.6}.registration-choice em{font-style:normal;color:#317452;font-size:11px;font-weight:800}.registration-choice.registration-closed{background:#f3f5f8;border-color:#dce1e8;color:#647084;cursor:not-allowed}.registration-choice.registration-closed>span{background:#e7eaf0;color:#7a8494}.registration-choice.registration-closed em{color:#9a5c27}.registration-choice:disabled{opacity:1}.registration-account-note{margin:14px 0 0;padding:11px 13px;border-radius:12px;background:#f1f5fa;color:#53627a;font-size:12px;line-height:1.7}.portal-switcher-card{max-width:680px}.portal-choice-grid button.portal-choice{position:relative;text-align:right;justify-items:start;min-height:148px;padding:16px;background:#fff}.portal-choice-grid button.portal-choice>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#fff0df;color:#bd5a13;font-size:22px}.portal-choice-grid button.portal-choice>em{font-style:normal;font-size:11px;font-weight:800;color:#317452;line-height:1.5}.portal-choice-grid button.portal-choice.is-gated{background:#f7f8fa;border-color:#dfe4eb}.portal-choice-grid button.portal-choice.is-gated>span{background:#edf0f4;color:#68768c}.portal-choice-grid button.portal-choice.is-gated>em{color:#94602e}.portal-access-card{max-width:510px}.portal-access-card>p{line-height:1.9}.portal-access-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}.portal-access-actions a{text-align:center;text-decoration:none}.customer-access-note{margin:14px 0;padding:12px 14px;border:1px solid #cddfed;border-radius:12px;background:#f2f7fc;color:#263e5d;line-height:1.8}.customer-access-note a{display:inline-block;margin-inline-start:5px;color:var(--navy);font-weight:900;text-decoration:underline}
@media(max-width:520px){.registration-choice-grid{grid-template-columns:1fr}.registration-choice{grid-template-columns:40px 1fr;align-items:center;column-gap:10px}.registration-choice>span{grid-row:span 3}.registration-choice small,.registration-choice em{grid-column:2}.portal-access-actions{grid-template-columns:1fr}.portal-choice-grid button.portal-choice{min-height:130px;padding:13px}}
.driver-location-status{flex:1 0 100%;padding:9px 12px;border-radius:11px;background:#fff7e9;color:#80612a;font-size:11px;line-height:1.65}
.driver-location-status.ok{background:#eaf6f0;color:#216849}.driver-location-status.bad{background:#fff0ee;color:#9e4038}.driver-location-status.pending{background:#fff7e9;color:#80612a}
.speed-driver-contact{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;margin:8px 0;background:#eef7f3;border:1px solid #d4e9dd;border-radius:12px;color:#215c48;font-size:13px}
.speed-driver-contact span{font-size:11px;color:#537567}.speed-driver-contact b{font-size:14px}.speed-driver-contact a{margin-inline-start:auto;padding:7px 12px;border-radius:9px;background:#17785d;color:#fff;text-decoration:none;font-weight:800}

/* واجهات المتاجر ولوحات الصلاحيات */
.service-subtitle{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.55}
.bottom-nav button.role-hidden{display:none}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dashboard-grid .full-span,.dashboard-grid .dashboard-hero{grid-column:1/-1}
.dashboard-hero{background:linear-gradient(120deg,var(--navy),#174583);color:#fff;display:flex;align-items:center;justify-content:space-between}
.dashboard-hero .muted{color:#d6e1f3}
.account-number{margin:10px 0 0;color:#fff}.account-number b{letter-spacing:.6px}
.role-home{display:grid;gap:16px}.role-identity{display:flex;align-items:center;gap:16px;border-top:5px solid var(--orange)}.role-identity>div:nth-child(2){flex:1}.role-identity h2,.role-identity p{margin:5px 0}.role-identity-icon{width:62px;height:62px;border-radius:18px;background:linear-gradient(135deg,var(--orange),var(--gold));color:#fff;display:grid;place-items:center;font-size:31px}.role-quick-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.role-quick-stats button{text-align:right;color:var(--ink)}.role-quick-stats small,.role-quick-stats span{display:block}.role-quick-stats small,.role-quick-stats span{color:var(--muted)}.role-quick-stats b{display:block;font-size:28px;margin:8px 0;color:var(--navy)}
.merchant-list{display:grid;gap:9px;max-height:440px;overflow:auto}
.dashboard-item{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f6f8fb;border:1px solid var(--line);border-radius:13px;padding:12px}
.dashboard-item small{display:block;color:var(--muted);margin-top:4px}
.dashboard-item select{border:1px solid var(--line);border-radius:10px;padding:9px;background:#fff}
@media(max-width:850px){.dashboard-grid{grid-template-columns:1fr}.dashboard-grid .full-span,.dashboard-grid .dashboard-hero{grid-column:auto}.dashboard-hero{align-items:flex-start;gap:14px}.role-quick-stats{grid-template-columns:1fr}}
@media(max-width:520px){.dashboard-item.order-manage{display:grid;grid-template-columns:1fr auto}.dashboard-item.order-manage select{grid-column:1/-1;width:100%}}

/* تصنيفات المتاجر والبحث داخل الخريطة */
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.category-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;display:grid;gap:7px;text-align:center;box-shadow:0 8px 25px #07162f0a}.category-card>span{font-size:32px}.category-card small{color:var(--muted)}.category-card:hover{border-color:var(--orange);transform:translateY(-2px)}.category-chips{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 18px}.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 13px;color:var(--ink)}button.chip{cursor:pointer}.chip.active{background:var(--navy);color:#fff;border-color:var(--navy)}.full-span{grid-column:1/-1}
.water-order-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:linear-gradient(135deg,#eef8ff,#f7fbff);border:1px solid #cfe7f7;border-radius:18px;padding:15px;margin-bottom:14px}.water-order-fields .notice{grid-column:1/-1;margin:0}.service-order-details{display:block;color:#1765c1;margin-top:6px;font-weight:700}
.service-option-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:8px 0 18px}.service-option-card{border:1px solid var(--line);background:#fff;border-radius:17px;padding:14px 8px;display:grid;place-items:center;gap:7px;color:var(--ink);min-height:92px}.service-option-card span{font-size:31px}.service-option-card.active{border:2px solid var(--orange);background:#fff8ef;box-shadow:0 7px 20px #f28b2422}.used-listings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.used-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 24px #07162f0b}.used-card>img,.used-placeholder{width:100%;height:155px;object-fit:cover;background:#f2f5f9;display:grid;place-items:center;font-size:50px}.used-card>div:last-child{padding:14px}.used-card h3{margin:9px 0 5px}.used-card p{color:var(--muted);min-height:42px}.catalog-admin-groups{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.catalog-admin-group{border:1px solid var(--line);border-radius:16px;padding:13px}.catalog-items{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.catalog-item{display:flex;align-items:center;gap:5px;background:#f5f7fa;border-radius:999px;padding:6px 9px}.catalog-item button{border:0;background:transparent;color:var(--bad);font-size:17px}.used-review-card{border:1px solid var(--line);border-radius:15px;padding:12px;background:#fafbfd}
.used-market{background:linear-gradient(180deg,#fff,#f8faff)}.used-market-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.used-market-actions h3{margin:0 0 4px}.add-used-button{font-size:16px}.used-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:10px;margin:8px 0 22px}.used-category-card{border:1px solid var(--line);border-radius:17px;background:#fff;padding:13px 8px;min-height:94px;display:grid;place-items:center;gap:6px;color:var(--ink);box-shadow:0 6px 18px #07162f0a}.used-category-card span{font-size:31px}.used-category-card.active{border:2px solid var(--orange);background:#fff8ef;color:var(--orange)}.used-category-card.add{background:linear-gradient(135deg,var(--navy),#174f91);color:#fff;border:0}.used-form-wrap{margin-top:22px;border:1px solid #ffd8af;border-radius:20px;background:#fff9f1;padding:18px;scroll-margin-top:20px}
.map-search{position:absolute;right:12px;top:12px;width:min(420px,calc(100% - 75px));z-index:10}.map-search>div:first-child{display:flex;background:#fff;border-radius:12px;box-shadow:0 5px 20px #0003;overflow:hidden}.map-search input{min-width:0;flex:1;border:0;padding:12px;color:#111!important;background:#fff!important;-webkit-text-fill-color:#111;opacity:1}.map-search input::placeholder{color:#666;opacity:1}.map-search button{border:0;background:var(--navy);color:#fff;padding:0 14px}.map-search-results{display:grid;max-height:210px;overflow:auto;background:#fff;border-radius:12px;margin-top:6px;box-shadow:0 8px 25px #0003}.map-search-results:empty{display:none}.map-search-results button,.map-search-results span{border:0;border-bottom:1px solid var(--line);background:#fff;color:#111!important;-webkit-text-fill-color:#111;text-align:right;padding:10px;line-height:1.45}.map-search-results button{display:grid;width:100%;gap:2px}.map-search-results button strong{font-size:14px;color:#111}.map-search-results button small{display:block;color:#667085;font-size:11px;white-space:normal}.map-search-results button:hover{background:#fff5e9}.map-search-results button:last-child{border-bottom:0}#trackingMap .map-search,#trackingMap .map-center{display:none}.map-markers{position:absolute;inset:0;z-index:7;pointer-events:none}.map-route-marker{position:absolute;transform:translate(-50%,-100%);display:grid;place-items:center;filter:drop-shadow(0 5px 7px #0005)}.map-route-marker span{width:38px;height:38px;border-radius:50% 50% 50% 8px;transform:rotate(-45deg);display:grid;place-items:center;background:#0c4382;color:#fff;border:3px solid #fff;font-size:18px}.map-route-marker span::first-letter{transform:rotate(45deg)}.map-route-marker b{white-space:nowrap;background:#fff;color:#10213d;border:1px solid #d9e1ec;border-radius:999px;padding:4px 9px;margin-top:5px;font-size:11px}.map-route-marker.delivery span{background:#e56c17}.map-route-marker.driver span{background:#159464;animation:driverMarkerPulse 1.4s infinite}@keyframes driverMarkerPulse{50%{box-shadow:0 0 0 10px #15946433}}

/* نموذج المنتج والعروض */
.divider{border:0;border-top:1px solid var(--line);margin:18px 0}.inline-input{flex:1;min-width:0;border:1px solid #d8e0eb;border-radius:12px;padding:12px}.product-form-grid{display:grid;grid-template-columns:270px 1fr;gap:20px}.image-upload{height:100%;min-height:310px;border:2px dashed #cdd6e4;border-radius:18px;background:#f7f9fc;display:grid;place-items:center;overflow:hidden;cursor:pointer}.image-upload input{display:none}.image-upload span{display:grid;place-items:center;gap:10px;font-size:42px;color:var(--muted);text-align:center}.image-upload small{font-size:13px}.image-upload img{width:100%;height:100%;min-height:310px;object-fit:cover}.toggle-line{display:flex!important;align-items:center;gap:8px}.toggle-line input{width:auto!important}.offer-calc{display:block;color:var(--ok);font-weight:800;margin-top:7px}.merchant-products{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.merchant-product-card{border:1px solid var(--line);border-radius:15px;padding:10px;display:grid;grid-template-columns:60px 1fr auto;gap:10px;align-items:center}.merchant-product-card img,.merchant-product-placeholder{width:60px;height:60px;border-radius:11px;object-fit:cover;background:#fff3e8;display:grid;place-items:center;font-size:28px}.merchant-product-card small,.merchant-product-card em{display:block;color:var(--muted);margin-top:4px}.merchant-product-card em{color:var(--ok);font-style:normal}.product-image{width:100%;height:150px;object-fit:cover;border-radius:16px}.product-modal-image{width:100%;max-height:280px;object-fit:cover;border-radius:17px}.discount-badge{display:inline-block;background:#ffebed;color:var(--bad);border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;margin-bottom:8px}.price del{color:var(--muted);font-size:14px;margin-left:5px}
@media(max-width:850px){.category-grid{grid-template-columns:repeat(3,1fr)}.product-form-grid{grid-template-columns:1fr}.image-upload{min-height:220px}.image-upload img{min-height:220px}.merchant-products{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.category-grid{grid-template-columns:repeat(2,1fr)}.merchant-products{grid-template-columns:1fr}.map-search{width:calc(100% - 70px)}.dashboard-hero{flex-direction:column}.product-form-grid .grid2{grid-template-columns:1fr}.water-order-fields{grid-template-columns:1fr}.service-option-grid{grid-template-columns:repeat(2,1fr)}.used-listings-grid,.catalog-admin-groups{grid-template-columns:1fr}.used-market-actions{align-items:stretch;flex-direction:column}.used-category-grid{grid-template-columns:repeat(2,1fr)}}
.merchant-onboarding{max-width:720px;margin:20px auto;padding:clamp(22px,5vw,44px);border-top:5px solid var(--orange)}.merchant-onboarding h2{font-size:30px;margin:14px 0 8px}.step-badge{display:inline-block;background:#fff2e5;color:#b95109;border-radius:999px;padding:7px 12px;font-weight:800}

/* تنبيه الطلب الجديد ومسار المندوب */
.incoming-orders-section{border:2px solid #ff9a34;background:linear-gradient(135deg,#fff,#fff7ec)}.incoming-section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.incoming-section-title>div{flex:1}.incoming-section-title h2,.incoming-section-title p{margin:3px 0}.pulse-dot{width:18px;height:18px;border-radius:50%;background:#f04444;box-shadow:0 0 0 0 #f0444477;animation:orderPulse 1.35s infinite}@keyframes orderPulse{70%{box-shadow:0 0 0 16px #f0444400}100%{box-shadow:0 0 0 0 #f0444400}}.incoming-order-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.incoming-order-card{background:#fff;border:2px solid #ffd39d;border-radius:19px;padding:18px;box-shadow:0 12px 30px #f47a2017}.incoming-order-card h2{margin:8px 0}.incoming-order-label{display:inline-block;background:#d82f3e;color:#fff;border-radius:999px;padding:6px 11px;font-weight:900;font-size:13px}.incoming-items{background:#f6f8fb;border-radius:12px;padding:12px;line-height:1.8;margin:10px 0}.incoming-total{display:flex;align-items:center;justify-content:space-between;border-top:1px dashed #cbd4e0;border-bottom:1px dashed #cbd4e0;padding:12px 0;margin:12px 0}.incoming-total b{font-size:22px;color:var(--orange)}.incoming-order-modal{text-align:center;border-top:9px solid #f04444;box-shadow:0 24px 90px #11182755}.incoming-order-brand-wrap{position:relative;display:grid;place-items:center;width:148px;height:132px;margin:0 auto 12px}.incoming-order-brand{position:relative;z-index:1;width:140px;height:120px;object-fit:contain;filter:drop-shadow(0 8px 12px #163b7140);animation:brandArrive .7s ease-out both}.incoming-order-pulse{position:absolute;width:80px;height:80px;border-radius:50%;background:#f0444430;animation:orderPulse 1.35s infinite;box-shadow:0 0 0 14px #f0444418}.incoming-order-modal h1{font-size:36px;margin:12px;color:#b42332}.incoming-order-modal .incoming-order-label{font-size:16px;padding:9px 16px}.incoming-order-modal #merchantOrderAlertBody{font-size:18px}.incoming-order-modal .alert-order-number{font-size:31px}.incoming-order-modal .incoming-total b{font-size:27px}@keyframes brandArrive{from{transform:scale(.7);opacity:.25}to{transform:scale(1);opacity:1}}.incoming-order-modal #merchantOrderAlertBody{text-align:right}.incoming-order-actions{display:grid;grid-template-columns:2fr 1fr;gap:10px;margin:16px 0}.alert-order-number{text-align:center;font-size:25px;font-weight:900;color:var(--navy);letter-spacing:1px}.driver-job{border-color:#8bb8ff}.driver-job .incoming-order-label{background:#1765c1}
@media(max-width:650px){.incoming-order-grid{grid-template-columns:1fr}.incoming-section-title{align-items:flex-start;flex-wrap:wrap}.incoming-section-title .btn{width:100%}.incoming-order-actions{grid-template-columns:1fr}.incoming-order-modal h1{font-size:29px}.incoming-order-brand-wrap{width:124px;height:112px}.incoming-order-brand{width:118px;height:104px}.incoming-order-modal #merchantOrderAlertBody{font-size:16px}}

/* تسجيل الشركاء واعتماد الإدارة */
.partner-register{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.approval-panel{border-top:5px solid var(--orange)}.approval-count{width:46px;height:46px;border-radius:14px;background:var(--orange);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:900}.approval-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:16px}.approval-card{border:1px solid var(--line);border-radius:17px;padding:16px;background:#f8fafc}.approval-card h3{margin:10px 0 5px}.approval-card small{color:var(--muted);line-height:1.8}.approval-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.approval-actions .btn{padding:9px 12px}
@media(max-width:650px){.approval-grid{grid-template-columns:1fr}.partner-register .grid2{grid-template-columns:1fr}}
.locked-modal{z-index:250;background:#07162ff0}.service-area-card{text-align:center;max-width:520px;border-top:7px solid var(--orange)}.service-area-icon{font-size:70px}.service-area-card h1{margin:8px 0 12px}.service-area-card p{color:var(--muted);line-height:1.8}.service-area-card .btn{margin-top:10px}.service-area-admin{border-top:5px solid #1765c1}.service-area-form{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px}.driver-rules-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:16px}.driver-rule-card{border:1px solid var(--line);border-radius:18px;padding:16px;background:#f8fafc}.driver-rule-card small{display:block;color:var(--muted);margin-top:4px}.driver-category-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:15px 0}.driver-category-options label{background:#fff;border:1px solid var(--line);border-radius:11px;padding:9px}.driver-rules{display:flex;align-items:center;justify-content:space-between;gap:15px}.driver-rules p{margin:7px 0 0;color:var(--muted)}.driver-alert-modal{border-top-color:#1765c1}
@media(max-width:850px){.service-area-form{grid-template-columns:1fr 1fr}.driver-rules-grid{grid-template-columns:1fr}}
.driver-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.availability-toggle{border:0;border-radius:999px;padding:12px 17px;color:#fff;font-weight:900;display:flex;align-items:center;gap:9px;cursor:pointer;box-shadow:0 8px 18px #0003}.availability-toggle span{width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px #ffffff2c}.availability-toggle.online{background:#199b62}.availability-toggle.offline{background:#687589}.availability-toggle.online span{animation:orderPulse 1.35s infinite}
@media(max-width:520px){.service-area-form,.driver-category-options{grid-template-columns:1fr}.driver-rules{align-items:flex-start}.driver-controls{width:100%}.driver-controls>*{flex:1}}

/* تجربة الإعلان الحي ومتابعة الطلب */
.promo-banner{display:block;padding:0;min-height:218px;background:#102c59;isolation:isolate}
.promo-banner:after{border-color:#ffffff12;pointer-events:none}
.promo-viewport{overflow:hidden;border-radius:inherit;direction:ltr}
.promo-track{display:flex;width:100%;direction:ltr;transition:transform .65s cubic-bezier(.22,.75,.24,1);will-change:transform}
.promo-slide{flex:0 0 100%;width:100%;min-height:218px;border:0;padding:26px 66px 48px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:right;direction:rtl;color:#fff;background:linear-gradient(115deg,#f47a20 0%,#ef8b2d 43%,#163b70 43%,#102c59 100%)}
.promo-slide:nth-child(even){background:linear-gradient(115deg,#173c70 0%,#102c59 55%,#e87a26 55%,#f2a13b 100%)}
.promo-copy{max-width:68%;gap:8px}
.promo-copy small{letter-spacing:.02em}
.promo-copy strong{line-height:1.25}
.promo-copy em{line-height:1.7}
.promo-art{gap:14px}
.promo-art img{width:clamp(115px,18vw,210px);height:clamp(90px,13vw,138px);object-fit:cover;border-radius:20px;border:1px solid #ffffff40}
.promo-mark{width:clamp(115px,18vw,210px);height:clamp(90px,13vw,138px);display:grid;place-items:center;border:1px solid #ffffff50;border-radius:20px;background:#ffffff16;font-size:25px;font-weight:900;letter-spacing:.1em}
.promo-arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:38px;height:38px;border:1px solid #ffffff62;border-radius:50%;background:#07162f65;color:#fff;font-size:27px;line-height:1}
.promo-prev{left:14px}.promo-next{right:14px}
.promo-dots{position:absolute;z-index:4;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:7px;direction:ltr}
.promo-dots button{width:8px;height:8px;padding:0;border:0;border-radius:999px;background:#ffffff77;transition:width .2s ease,background-color .2s ease}
.promo-dots button.active{width:24px;background:#fff}
.customer-home-shortcuts{display:flex;gap:12px;align-items:stretch;margin:0 0 20px}
.customer-coupon-shortcut,.customer-notification-shortcut{flex:1;min-width:0}
.customer-notification-shortcut{border:1px solid #cbd8e8;border-radius:16px;background:#edf4f9;color:#143856;text-align:right;padding:13px 17px;display:grid;gap:4px}
.customer-notification-shortcut b{font-size:15px}
.customer-notification-shortcut small{color:#587084}
.customer-live-orders{position:static;margin:0 0 18px;width:100%;max-height:min(36vh,320px);overflow:auto;padding:11px 14px;background:#fffdf8;border:1px solid #efd6b7;border-radius:18px;box-shadow:0 16px 44px #102c5928;pointer-events:auto}
.customer-live-orders.hidden{display:none!important}
.customer-live-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px;color:#173a62;font-weight:900}
.customer-live-heading>span{display:flex;align-items:center;gap:8px}
.customer-live-heading i{width:9px;height:9px;border-radius:50%;background:#1b9b68;box-shadow:0 0 0 4px #1b9b6820}
.customer-live-heading small{color:#61748b;font-weight:700}
.customer-live-list{display:grid;gap:7px}
.customer-live-order{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;background:#fff;border:1px solid #e6eaf0;border-radius:13px}
.customer-live-order-copy{min-width:0;flex:1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px}
.customer-live-number{font-size:12px;font-weight:900;color:#66809a}
.customer-live-order-copy strong{grid-column:1/2;font-size:15px;color:#132f50}
.customer-live-order-copy small{grid-column:2/3;grid-row:1/3;color:#718096;text-align:left;font-size:11px}
.customer-live-order .btn{padding:9px 12px;white-space:nowrap}
.customer-live-progress{grid-column:1/-1;height:4px;margin-top:4px;border-radius:99px;background:#e9eef4;overflow:hidden}
.customer-live-progress i{display:block;height:100%;border-radius:inherit;background:#e8872e;transition:width .35s ease}
.live-orders-error{display:block;margin-top:7px;color:#a33c3c;font-size:12px}
.live-orders-error button{border:0;background:transparent;color:#173e6b;text-decoration:underline;font-weight:800}
.order-alert-review{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;border-inline-start:5px solid #e87827;margin:0 0 14px;background:#fff5e8}
.alert-order-position{font-size:12px;color:#718096;text-align:center;margin-bottom:6px}
.merchant-poll-error,.driver-poll-error{display:flex;align-items:center;justify-content:space-between;gap:12px}
.merchant-poll-error button,.driver-poll-error button{flex:none}
.invoice table tbody tr{outline:1px solid #cbd3df;outline-offset:-1px;break-inside:avoid;page-break-inside:avoid}
.invoice table tbody td{border-bottom:1px solid #cbd3df}
@media(max-width:850px){.promo-slide{padding-inline:54px 26px}.customer-live-order-copy{grid-template-columns:1fr}.customer-live-order-copy small{grid-column:1;grid-row:auto;text-align:right}.customer-live-order-copy strong{grid-column:1}}
@media(max-width:520px){.customer-live-orders{padding:8px 9px;border-radius:14px}.customer-live-order{align-items:stretch;gap:7px;padding:8px}.customer-live-order .btn{font-size:11px;padding:7px 9px;align-self:center}.customer-live-heading{font-size:13px}.customer-live-order-copy strong{font-size:13px}.customer-home-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.customer-coupon-shortcut,.customer-notification-shortcut{padding:11px 12px}.customer-notification-shortcut b{font-size:13px}.customer-notification-shortcut small{font-size:11px}.promo-banner{min-height:190px}.promo-slide{min-height:190px;padding:18px 42px 42px 17px;gap:8px}.promo-copy{max-width:64%;gap:5px}.promo-copy strong{font-size:18px}.promo-copy em{font-size:11px;line-height:1.45}.promo-copy small{font-size:10px}.promo-art{gap:0}.promo-art img,.promo-mark{width:90px;height:82px;border-radius:13px}.promo-mark{font-size:17px}.promo-arrow{width:30px;height:30px;font-size:22px}.promo-prev{left:7px}.promo-next{right:7px}.promo-dots{bottom:11px}.order-alert-review{align-items:flex-start;flex-direction:column}.order-alert-review .btn{width:100%}.merchant-poll-error,.driver-poll-error{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.promo-track,.promo-dots button,.customer-live-progress i{transition:none!important}.promo-arrow{scroll-behavior:auto}}

/* محفظة المتجر وتسويات الخميس */
.merchant-wallet-panel{border:1px solid #9fc5ff;background:linear-gradient(135deg,#07162f,#123d75);color:#fff}.merchant-wallet-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.merchant-wallet-head small,.merchant-wallet-head p{color:#cddaf0}.merchant-wallet-head h2{font-size:38px;margin:6px 0}.settlement-badge{display:grid;gap:5px;background:#ffffff17;border:1px solid #ffffff24;border-radius:17px;padding:15px 18px}.settlement-badge span,.settlement-badge small{color:#e6edf8}.merchant-wallet-panel .notice{margin:16px 0;background:#ffffff12;color:#fff;border-color:#ffffff25}.merchant-settlement-list{display:grid;gap:9px}.settlement-row{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:10px;align-items:center;background:#fff;color:var(--ink);border-radius:14px;padding:13px}.settlement-row small{display:block;color:var(--muted);margin-top:4px}.settlement-row .commission{color:var(--bad)}.settlement-row>strong{color:var(--ok)}

/* شاشة استقبال المندوب */
.driver-reception{display:grid;gap:16px;max-width:960px;margin:auto}.driver-reception-head{background:linear-gradient(120deg,#07162f,#1765c1);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px}.driver-reception-head h1{margin:8px 0;font-size:32px}.driver-reception-head p{margin:0;color:#dce7f8}.driver-app-label{display:inline-block;background:#ffffff19;border:1px solid #ffffff26;border-radius:999px;padding:6px 11px}.driver-active-orders{display:grid;gap:10px}.driver-active-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);background:#f7f9fc;border-radius:15px;padding:14px}.driver-active-card small{display:block;color:var(--muted);margin-top:5px}.driver-active-card select{border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px}.route-card{align-items:stretch;border-color:#b8cdec;background:linear-gradient(135deg,#fff,#f2f7ff)}.driver-route-copy{display:grid;align-content:start;gap:4px}.driver-route-copy h3{margin:5px 0}.driver-route-copy em{font-style:normal;color:var(--ok);font-weight:800;margin-top:7px}.driver-route-actions{display:grid;gap:8px;min-width:225px}.tracking-summary{display:grid;gap:4px}.tracking-summary strong{font-size:19px;color:var(--navy)}.tracking-summary small{color:var(--muted)}.tracking-timeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:7px;margin-top:13px}.tracking-timeline>div{display:grid;grid-template-columns:auto 1fr;gap:3px 7px;align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:8px}.tracking-timeline>div.current{border-color:#f39a39;background:#fff8ee}.tracking-timeline span{grid-row:1/3;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:var(--ok);color:#fff}.tracking-timeline small{color:var(--muted)}@media(max-width:650px){.route-card{display:grid}.driver-route-actions{min-width:0}.tracking-timeline{grid-template-columns:1fr 1fr}}

/* إدارة بنر الصفحة الرئيسية */
.banner-admin{border-top:5px solid var(--orange)}.banner-admin-grid{display:grid;grid-template-columns:280px 1fr;gap:18px;margin-top:16px}.banner-upload{min-height:210px;border:2px dashed #cbd4e0;border-radius:18px;background:#f7f9fc;display:grid;place-items:center;overflow:hidden;cursor:pointer}.banner-upload input{display:none}.banner-upload span{display:grid;place-items:center;gap:8px;font-size:48px;color:var(--muted);text-align:center}.banner-upload small{font-size:13px}.banner-upload img{width:100%;height:210px;object-fit:cover}
@media(max-width:760px){.merchant-wallet-head,.driver-reception-head{align-items:flex-start;flex-direction:column}.settlement-row{grid-template-columns:1fr 1fr}.banner-admin-grid{grid-template-columns:1fr}.driver-active-card{align-items:stretch;flex-direction:column}.driver-active-card select{width:100%}}
@media(max-width:520px){.settlement-row{grid-template-columns:1fr}.promo-art img{width:90px;height:58px}}

/* روابط دخول مستقلة لكل نوع حساب */
.portal-links{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:18px 0}.portal-links a{padding:11px 8px;border:1px solid var(--line);border-radius:12px;background:#f7f9fc;color:var(--navy);font-weight:800;text-align:center;text-decoration:none}.portal-links a:hover{border-color:var(--orange);background:#fff5e9}
@media(max-width:520px){.portal-links{grid-template-columns:1fr 1fr}.portal-links a{font-size:13px}}

/* الهوية الاحترافية والتفاعلات */
body{background:radial-gradient(circle at 90% 0,#eaf1ff 0,transparent 34%),linear-gradient(180deg,#f8faff 0,#f3f6fb 100%)}
.topbar{height:82px;background:linear-gradient(115deg,#06152eeb,#123b75f2);backdrop-filter:blur(18px);border-bottom:1px solid #ffffff18;box-shadow:0 12px 30px #07162f1f}.brand small{font-size:10px;font-weight:500;color:#b9cae5;background:#ffffff12;border-radius:999px;padding:5px 8px}.app-tools{display:flex;align-items:center;gap:10px}.portal-switch{border:1px solid #ffffff24;background:#ffffff12;color:#fff;border-radius:13px;padding:10px 13px;font-weight:800}.portal-switch:hover{background:#ffffff22}.user-chip{border:1px solid #ffffff1c;box-shadow:inset 0 1px #ffffff18}
.global-search{position:relative;width:min(520px,42vw);z-index:60}.global-search>div{display:flex;align-items:center;background:#fff;border-radius:15px;padding:4px 6px;color:#15233d;box-shadow:0 8px 24px #0002}.global-search input{flex:1;border:0;outline:0;padding:10px;background:transparent;min-width:0}.global-search button{border:0;background:#f1882e;color:#fff;border-radius:10px;padding:9px 15px;font-weight:800}.global-search-results{position:absolute;top:54px;right:0;left:0;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 45px #07162f33;max-height:390px;overflow:auto;padding:6px;color:var(--navy)}.global-search-results button{display:flex;width:100%;flex-direction:column;text-align:right;background:#fff;color:var(--navy);padding:11px;border-radius:10px}.global-search-results button:hover{background:#f3f6fb}.global-search-results small{color:var(--muted);margin-top:3px}.search-loading{display:block;padding:16px}.excel-import{border:1px solid #a9c7ee;background:linear-gradient(135deg,#fff,#f1f7ff)}.excel-import-row{display:flex;gap:12px;align-items:center;margin:15px 0}.excel-import-row input{flex:1;background:#fff;border:1px dashed #9aabc2;border-radius:14px;padding:14px}.catalog-admin-group textarea{width:100%;margin:10px 0;direction:rtl}
.admin-system-check{background:linear-gradient(135deg,#fff,#f5f9ff);border-color:#b9cdea}.system-check-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:16px 0}.system-check-item{display:flex;gap:9px;align-items:center;padding:12px;border-radius:14px;background:#fff;border:1px solid var(--line)}.system-check-item>span{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:900}.system-check-item.ok>span{background:var(--ok)}.system-check-item.bad>span{background:var(--bad)}.system-check-item small{display:block;color:var(--muted);margin-top:3px}.check-ready{color:var(--ok)}.check-warning{color:var(--bad)}
.view.active{animation:viewIn .32s ease-out}@keyframes viewIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.panel,.service-card,.store-card,.product{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.panel{box-shadow:0 12px 32px #07162f0b}.service-card:hover,.store-card:hover,.product:hover{transform:translateY(-4px);box-shadow:0 18px 36px #07162f16}.service-card{min-height:126px;border:1px solid #e0e7f2;background:linear-gradient(155deg,#fff,#fafcff)}.service-icon{width:56px;height:56px;margin:0 auto 10px;border-radius:18px;background:linear-gradient(145deg,#fff0e2,#ffe0af);display:grid;place-items:center;box-shadow:inset 0 1px #fff,0 8px 20px #f47a2017}.hero{position:relative;overflow:hidden;background:linear-gradient(130deg,#06152e,#123e79 68%,#f47a20 160%)}.hero:after{content:"";position:absolute;width:280px;height:280px;border-radius:50%;border:55px solid #ffffff0b;left:-70px;top:-110px}.hero>*{position:relative;z-index:1}.btn{transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}.btn:active{transform:scale(.97)}.btn.primary{box-shadow:0 9px 20px #f47a2030}.account-card{border-top:4px solid var(--orange)}
.bottom-nav{bottom:14px;left:50%;right:auto;transform:translateX(-50%);width:min(760px,calc(100% - 24px));height:74px;border:1px solid #dfe6ef;border-radius:23px;background:#ffffffef;backdrop-filter:blur(18px);box-shadow:0 16px 45px #07162f24;padding:6px}.bottom-nav button{border-radius:17px;transition:background .2s,color .2s,transform .2s}.bottom-nav button.active{background:linear-gradient(145deg,#fff1e4,#fff8ed);color:var(--orange);font-weight:900}.bottom-nav button:active{transform:scale(.94)}.nav-icon{font-size:25px;line-height:1}
.portal-switcher-card{max-width:650px}.portal-choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:18px}.portal-choice-grid button{border:1px solid var(--line);background:linear-gradient(145deg,#fff,#f7f9fc);border-radius:18px;padding:20px;display:grid;gap:6px;text-align:center;color:var(--ink)}.portal-choice-grid button:hover{border-color:var(--orange);transform:translateY(-2px)}.portal-choice-grid span{font-size:34px}.portal-choice-grid small{color:var(--muted)}
.app-toast{position:fixed;z-index:500;left:50%;bottom:110px;transform:translate(-50%,24px);opacity:0;pointer-events:none;max-width:calc(100% - 32px);padding:14px 20px;border-radius:14px;background:var(--navy);color:#fff;font-weight:800;box-shadow:0 16px 40px #07162f45;transition:.25s}.app-toast.show{opacity:1;transform:translate(-50%,0)}.app-toast.ok{background:#11784f}.app-toast.bad{background:#a82f3d}.app-toast.neutral{background:#485873}
.loading-panel{text-align:center;min-height:200px;display:grid;place-items:center;align-content:center;gap:12px}.loading-ring{width:42px;height:42px;border-radius:50%;border:4px solid #e5eaf1;border-top-color:var(--orange);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

/* مركز تحكم المحتوى في لوحة الإدارة */
.admin-content-hub{background:linear-gradient(135deg,#071d43,#123b72);color:#fff;overflow:hidden;position:relative}.admin-content-hub:after{content:"";position:absolute;inset:auto -70px -100px auto;width:250px;height:250px;border-radius:50%;background:rgba(255,178,43,.14)}.admin-content-hub .muted{color:#d8e4f5}.admin-content-hub h2{margin:.45rem 0}.admin-jump-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin-top:1rem;position:relative;z-index:1}.admin-jump-grid button{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.1);color:#fff;border-radius:16px;padding:.95rem .7rem;font:inherit;font-weight:800;cursor:pointer}.admin-jump-grid button:hover{background:rgba(255,255,255,.18)}
.content-control-panel{scroll-margin-top:24px}.content-control-panel>h2{margin-top:0}.store-category-admin-list,.custom-field-list{display:grid;gap:.65rem;margin:1rem 0}.store-category-admin-list article,.custom-field-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:.65rem;align-items:center;border:1px solid #e5eaf1;background:#fbfcfe;border-radius:16px;padding:.75rem}.store-category-admin-list small,.custom-field-list small{display:block;color:#6f7c91;margin-top:.2rem}.store-category-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#fff3df;font-size:1.45rem}.content-control-form{display:grid;grid-template-columns:90px repeat(3,minmax(0,1fr)) auto;gap:.65rem;align-items:center;padding-top:.9rem;border-top:1px solid #e8edf4}.content-control-form input{width:100%;min-width:0}.service-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.service-edit-group{border:1px solid #e5eaf1;border-radius:16px;padding:.8rem;background:#fbfcfe}.service-edit-group h3{margin:.1rem 0 .65rem}.service-edit-group button{width:100%;display:flex;justify-content:space-between;align-items:center;margin:.35rem 0;text-align:right}
@media(max-width:760px){.admin-jump-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-control-form{grid-template-columns:70px 1fr}.content-control-form input:nth-of-type(3),.content-control-form input:nth-of-type(4),.content-control-form .btn{grid-column:1/-1}.store-category-admin-list article,.custom-field-list article{grid-template-columns:auto minmax(0,1fr)}.store-category-admin-list article .btn,.custom-field-list article .btn{width:100%}.service-edit-grid{grid-template-columns:1fr}}

/* محفظة وحالة المندوب */
.availability-toggle{min-width:154px;justify-content:center;display:grid!important;grid-template-columns:auto 1fr;text-align:right}.availability-toggle small{grid-column:2;color:#ffffffc9;font-weight:500}.availability-toggle.changing{background:#56637a}.availability-toggle:disabled{cursor:wait;opacity:.85}.driver-wallet-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(125deg,#0a1933,#154d8f);color:#fff;border:0;overflow:hidden;position:relative}.driver-wallet-panel:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:#ffffff0a;left:-55px;top:-75px}.driver-wallet-panel h2{font-size:38px;margin:6px 0}.driver-wallet-panel p,.driver-wallet-panel small{color:#cbdaf0}.driver-commission{min-width:155px;display:grid;gap:4px;background:#ffffff12;border:1px solid #ffffff1f;border-radius:17px;padding:14px}.driver-commission b{font-size:28px;color:#ffbd39}.live-state{border-radius:999px;padding:7px 11px;font-weight:900}.live-state.on{background:#e6faef;color:#11784f}.live-state.off{background:#eef1f5;color:#657187}.reception-offline{border-color:#cfd6e0;background:#f7f9fc}.reception-offline .pulse-dot{background:#8a94a5;animation:none}.earning-preview{display:block;color:var(--ok);font-weight:800;margin:-4px 0 12px}.driver-active-card em{display:block;color:var(--ok);font-style:normal;font-weight:800;margin-top:5px}.driver-wallet-list{display:grid;gap:9px;margin-top:14px}.driver-wallet-row{display:grid;grid-template-columns:1.3fr 1fr 1fr .8fr;gap:10px;align-items:center;background:#f7f9fc;border:1px solid var(--line);border-radius:14px;padding:13px}.driver-wallet-row small{display:block;color:var(--muted);margin-top:4px}.driver-wallet-row .commission{color:var(--bad)}.driver-wallet-row strong{color:var(--ok)}
.merchant-wallet-panel{box-shadow:0 18px 45px #0a2c5f32;border:0}.merchant-wallet-panel:before{content:"محفظة التاجر";display:inline-block;background:#ffffff14;border:1px solid #ffffff20;border-radius:999px;padding:6px 10px;margin-bottom:12px;font-size:12px;font-weight:900}
.loyalty-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.loyalty-balance{background:linear-gradient(135deg,#07162f,#143d76);color:#fff}.loyalty-balance h2{font-size:38px;color:#ffbd39;margin:8px 0}.loyalty-balance p{color:#dce6f5}.gift-ticket{display:flex;gap:12px;align-items:center;padding:13px;margin-top:9px;border:1px dashed #e6a42d;border-radius:15px;background:#fff9eb}.gift-ticket>span{font-size:30px}.gift-ticket small{display:block;color:var(--muted);margin-top:4px}.merchant-loyalty-panel{background:linear-gradient(145deg,#fffaf0,#fff);border-color:#f3c76e}.product-reward-box{padding:15px;margin:14px 0;border:1px solid #f1c363;border-radius:16px;background:#fff9e9}.product-reward-box small{display:block;margin-top:6px}
.product-reward-banner{padding:12px 14px;margin:12px 0;border-radius:14px;background:linear-gradient(120deg,#fff3ce,#fff9ec);border:1px solid #f3c568;color:#82520a;font-weight:900}
.loyalty-tier{display:grid;gap:5px;margin:12px 0;padding:12px;border-radius:14px;background:#ffffff17}.loyalty-tier small{color:#e1e9f5}.driver-points-panel{background:linear-gradient(140deg,#fff9ea,#fff);border-color:#e9bf67}.driver-points-panel h2{font-size:34px;color:#9d6410;margin:6px 0}.coupon-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.loyalty-admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.loyalty-admin-grid>div{padding:14px;border:1px solid var(--line);border-radius:14px}.priority-diamond{display:inline-block;padding:5px 9px;border-radius:12px;background:#e8f2ff;color:#1554a0;font-weight:900;font-size:12px;margin:0 8px}@media(max-width:760px){.coupon-grid{grid-template-columns:repeat(2,1fr)}.loyalty-admin-grid{grid-template-columns:1fr}}
.finance-section{display:grid;gap:16px}.finance-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.finance-kpis.six{grid-template-columns:repeat(6,1fr)}.finance-kpis>div,.payment-channel-grid>div{padding:15px;border:1px solid var(--line);border-radius:15px;background:#f7f9fc;display:grid;gap:5px}.finance-kpis b,.payment-channel-grid b{font-size:20px;color:var(--navy)}.finance-kpis small,.payment-channel-grid small,.finance-row small{display:block;color:var(--muted)}.payment-channel-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.finance-list{display:grid;gap:9px}.finance-row{display:grid;grid-template-columns:1.4fr 1fr auto auto;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:14px;background:#fff}.finance-row.payout-row{grid-template-columns:1.4fr 1.15fr .8fr auto auto}.status-badge{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}.status-badge.paid{color:#11784f;background:#e6faef}.status-badge.pending{color:#996018;background:#fff2d8}
@media(max-width:900px){.finance-kpis.six{grid-template-columns:repeat(3,1fr)}.payment-channel-grid{grid-template-columns:repeat(2,1fr)}.finance-row,.finance-row.payout-row{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.finance-kpis,.finance-kpis.six,.payment-channel-grid,.finance-row,.finance-row.payout-row,.loyalty-grid{grid-template-columns:1fr}}
@media(max-width:760px){.brand span,.brand small,.portal-switch span,.user-chip{display:none}.topbar{height:auto;min-height:70px;padding:10px 12px;gap:8px}.brand img{width:42px;height:42px}.global-search{width:auto;flex:1}.global-search button{padding:9px 10px}.portal-switch{font-size:20px;padding:8px 10px}.bottom-nav{bottom:8px;height:70px}.driver-wallet-panel{align-items:flex-start;flex-direction:column}.driver-commission{width:100%}.driver-wallet-row{grid-template-columns:1fr 1fr}.portal-choice-grid{grid-template-columns:1fr 1fr}.excel-import-row{align-items:stretch;flex-direction:column}.system-check-grid{grid-template-columns:1fr 1fr}.admin-system-check>.row{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.shell{padding-bottom:98px}.portal-choice-grid{grid-template-columns:1fr}.driver-wallet-row{grid-template-columns:1fr}.app-toast{bottom:92px}.service-card{min-height:116px}}

.reward-editor{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;align-items:center;margin:12px 0;padding:12px;border:1px solid #e1e8f0;border-radius:14px}.reward-editor input,.reward-editor select{width:100%;min-width:0;min-height:42px;border:1px solid #ccd6e5;border-radius:10px;padding:8px;background:white;color:#14203a}.reward-editor button{min-height:42px}.reward-list{max-height:480px;overflow:auto}
.contact-tool{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #ffffff2b;border-radius:13px;background:#ffffff12;color:#fff;cursor:pointer}.contact-tool span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--orange);font-size:16px}.support-card{max-width:520px}.support-card .modal-head>div{display:flex;align-items:center;gap:10px}.support-main-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#fff0d7;color:#bb6b0c;font-size:22px}.support-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:18px 0}.support-action{display:flex;flex-direction:column;gap:5px;align-items:center;padding:20px;border-radius:18px;text-decoration:none;font-weight:800}.support-action>span{font-size:31px}.support-action.call{background:#eef5ff;color:#174d91}.support-action.whatsapp{background:#e9fbf1;color:#137446}.support-action small{font-weight:600}.support-hours{display:block;text-align:center;color:var(--muted)}.support-admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.support-admin-grid article{padding:14px;border:1px solid var(--line);border-radius:16px;background:#f8fafc}.support-admin-grid h3{margin-top:0}
.contact-tool b{display:inline!important}.contact-tool{flex-shrink:0}.contact-tool span svg{display:block;width:18px;height:18px}.support-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.support-action{min-width:0;min-height:142px;border:1px solid var(--line);background:#f7f9fc;color:var(--ink);font:inherit;text-align:center;cursor:pointer}.support-action svg{display:block;width:30px;height:30px}.support-action.call{background:#eef5ff;color:#174d91}.support-action.email{background:#f7f2eb;color:#715735}.support-action.support-chat{background:#fff5e9;color:#8d500f;border-color:#f0d3b4}.support-action.unavailable{background:#f1f3f6;color:#657085;cursor:not-allowed;opacity:.82}.support-action small{overflow-wrap:anywhere}.support-admin-grid article .field:last-child{margin-bottom:0}
@media(max-width:560px){.support-actions{grid-template-columns:1fr}.contact-tool{padding:7px 9px}.contact-tool b{display:inline!important;font-size:13px}.contact-tool span{width:26px;height:26px}}
@media(max-width:900px){.support-admin-grid{grid-template-columns:repeat(2,1fr)}.contact-tool b{display:none}}@media(max-width:560px){.support-actions,.support-admin-grid{grid-template-columns:1fr}.contact-tool{padding:7px}.contact-tool span{width:26px;height:26px}.app-tools{gap:5px}}
.schedule-panel{margin:14px 0;padding:16px;border:1px solid #dce5f0;border-radius:17px;background:#f7faff}.schedule-panel h3{margin:0 0 12px}.schedule-choice{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}.schedule-choice label{display:flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid #d6e0ec;border-radius:12px;background:#fff;font-weight:800}.service-request-card{display:grid;gap:13px}.quote-list{display:grid;gap:10px}.quote-row{display:grid;grid-template-columns:minmax(150px,1fr) auto auto;align-items:center;gap:12px;padding:14px;border:1px solid #e2e8f0;border-radius:15px;background:#fff}.quote-row small{display:block;color:var(--muted)}.quote-price{text-align:center}.quote-price b{display:block;color:#a76509;font-size:20px}.quote-actions{display:flex;gap:7px;flex-wrap:wrap}.worker-job-card{display:grid;gap:10px;padding:16px;margin:12px 0;border:1px solid var(--line);border-radius:16px;background:#fff}.service-order-details{display:block;margin-top:6px;color:var(--muted)}@media(max-width:650px){.quote-row{grid-template-columns:1fr}.quote-price{text-align:right}.quote-actions .btn{flex:1}.schedule-choice label{width:100%}}

.wallet-loyalty-line{display:flex;gap:14px;align-items:center;margin:16px 0;padding:14px 18px;border-radius:17px;background:#fff9e8;border:1px solid #ecdba9;color:#4b3515;box-shadow:0 5px 18px #3120070c}.wallet-loyalty-line>div{flex:1;display:grid;gap:2px}.wallet-loyalty-line strong{font-size:16px}.wallet-loyalty-line small{color:#765d3a}.wallet-loyalty-line>b{white-space:nowrap;color:#b87512}.wallet-loyalty-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#e5a83b;color:#fff;font-size:26px}.driver-points-panel .coupon-grid{grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:12px}.driver-reward-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:190px;padding:16px;border:1px solid #eddbb5;border-radius:18px;background:linear-gradient(150deg,#fff,#fff7e7);text-align:right;color:#312a21;cursor:pointer;transition:transform .16s,box-shadow .16s}.driver-reward-card:hover,.driver-reward-card:focus-visible{transform:translateY(-3px);box-shadow:0 9px 24px #95641f29;outline-color:#b87512}.driver-reward-icon{font-size:38px;line-height:1.2}.driver-reward-kind{font-size:12px;color:#a26a11}.driver-reward-card strong{font-size:16px}.driver-reward-card small{font-size:12px;color:#786b55}.driver-reward-cost{margin-top:auto;padding:6px 10px;border-radius:8px;background:#ffecd0;color:#89520b;font-weight:800}@media(max-width:560px){.driver-points-panel .coupon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-loyalty-line{flex-wrap:wrap}}

.payment-partner-badge{display:flex;align-items:center;gap:14px;padding:12px 15px;margin:12px 0;border:1px solid #dbcbea;border-radius:16px;background:linear-gradient(135deg,#fbf8ff,#fff8e5)}.payment-partner-badge.hidden{display:none}.payment-partner-badge img{width:92px;height:46px;object-fit:contain;border-radius:10px;background:#fff}.payment-partner-badge div{display:grid;gap:3px}.payment-partner-badge b{color:#542176}.payment-partner-badge small{color:var(--muted);line-height:1.6}.google-nav-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.google-nav-actions .btn{flex:1;min-width:170px}.google-maps-btn{display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;text-decoration:none;background:#fff!important;color:#174ea6!important;border:1px solid #b9c9ea!important;text-align:right}.google-maps-btn:hover{background:#edf3ff!important}.google-route-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#eaf2ff;font-size:18px}.google-maps-btn.delivery .google-route-icon{background:#fff0e7}.google-maps-btn small{font-size:10px;color:#5f6f87;white-space:nowrap}.tracking-summary+.google-nav-actions{margin:12px 0}

/* زر لغة موحد لجميع بوابات سبيد */
.language-toggle{position:static;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #ffffff38;border-radius:13px;padding:0;background:#07162f;color:#fff;box-shadow:none;backdrop-filter:blur(12px);font:inherit;cursor:pointer}.language-toggle span{font-size:19px;line-height:1}.language-toggle:hover{background:#123b75}.language-toggle.beside-search{width:44px;height:44px;border:1px solid #ffffff2e;border-radius:14px;background:linear-gradient(145deg,#ffffff22,#ffffff0d);color:#fff;box-shadow:inset 0 1px #ffffff22,0 8px 22px #0002}.language-toggle.beside-search:hover{background:#ffffff28;transform:translateY(-1px)}.auth-box>.language-toggle{float:left;margin:0 0 14px 0}.lang-en .auth-box>.language-toggle{float:right}.lang-en .global-search-results button,.lang-en .google-maps-btn,.lang-en .availability-toggle,.lang-en .driver-reward-card,.lang-en .catalog-admin-group textarea,.lang-en .service-edit-group button{text-align:left}.lang-en .bottom-nav{direction:ltr}.lang-en input,.lang-en textarea,.lang-en select{text-align:left}.lang-en .merchant-wallet-panel:before{content:"Merchant wallet"}
@media(max-width:760px){.language-toggle{width:40px;height:40px}.language-toggle span{font-size:18px}.language-toggle.beside-search{width:40px;height:40px}.app-tools{flex:0 0 auto}.contact-tool,.portal-switch{width:40px;height:40px;justify-content:center;padding:0}.global-search{min-width:0}.global-search>div{padding:3px}.global-search button{font-size:0;width:40px;padding:0}.global-search button:after{content:"⌕";font-size:21px}.lang-en .global-search button:after{content:"⌕"}}
@media(max-width:760px){.contact-tool{width:auto;min-width:76px;height:40px;padding:0 8px;gap:5px}.contact-tool b{display:inline!important;font-size:12px}.contact-tool span{width:24px;height:24px}}

/* واجهة سبيد الفاخرة 4.9 */
body{background:radial-gradient(circle at 8% 0,#fff1df 0,transparent 24%),radial-gradient(circle at 95% 12%,#e8f2ff 0,transparent 28%),linear-gradient(180deg,#f8fbff,#f4f7fb 52%,#fff9f2);background-attachment:fixed}.topbar{min-height:88px;padding-inline:max(3vw,18px);background:linear-gradient(118deg,#041127 0%,#0b2c5c 58%,#123f78 100%);border-bottom:1px solid #ffffff26;box-shadow:0 18px 50px #07162f2e}.global-search{width:min(460px,36vw)}.global-search>div{border:1px solid #ffffff55;border-radius:18px;padding:5px 6px;background:#fffffff7;box-shadow:0 12px 35px #0002,inset 0 1px #fff}.global-search input{font-size:15px}.global-search button{border-radius:13px;background:linear-gradient(135deg,#f47a20,#ffb52e);box-shadow:0 7px 18px #f47a2038}.shell{max-width:1280px}.hero{border:1px solid #ffffff24;background:linear-gradient(125deg,#06152e 0%,#0d3972 65%,#b75b1d 145%);box-shadow:0 24px 65px #092b5938}.hero-card{backdrop-filter:blur(14px);box-shadow:inset 0 1px #ffffff22}.section-head h2{letter-spacing:-.35px}.section-head h2:after{content:"";display:block;width:42px;height:4px;margin-top:7px;border-radius:999px;background:linear-gradient(90deg,#f47a20,#ffbd39)}.service-card,.store-card,.product,.panel,.category-card{border:1px solid #e4eaf2;background:linear-gradient(150deg,#fff,#fbfdff);box-shadow:0 12px 34px #0b25470c;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.service-card:hover,.store-card:hover,.product:hover,.category-card:hover{transform:translateY(-5px);border-color:#f2b067;box-shadow:0 20px 42px #0b254719}.service-card{min-height:145px;padding:22px 14px}.service-icon,.category-card>span{width:62px;height:62px;margin:0 auto 12px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(145deg,#fff3df,#ffe4bb);box-shadow:inset 0 1px #fff,0 9px 20px #d8841820}.store-card{min-height:104px;border-radius:23px}.store-ico{box-shadow:inset 0 1px #fff,0 8px 18px #d77d1720}.bottom-nav{border-color:#ffffff;background:#fffffff0;box-shadow:0 22px 65px #07162f2b,inset 0 1px #fff}.bottom-nav button.active{background:linear-gradient(145deg,#fff0df,#fffaf2);box-shadow:0 8px 20px #f47a2018}.stores-heading{align-items:flex-end}.store-filter-actions{display:flex;align-items:center;gap:9px}.category-toggle{display:inline-flex;align-items:center;gap:8px;color:#fff;background:linear-gradient(135deg,#071f46,#14518f);border:0;box-shadow:0 10px 24px #0b37642b}.category-toggle span{font-size:20px}.category-toggle[aria-expanded="true"]{background:linear-gradient(135deg,#e96f1a,#ffad28)}.store-category-drawer{margin:4px 0 22px;padding:18px;border:1px solid #dfe7f1;border-radius:24px;background:#ffffffd9;backdrop-filter:blur(18px);box-shadow:0 18px 45px #07162f12;animation:categoryDrawerIn .22s ease}.filtered-title{margin:20px 2px 13px;color:#17345d}@keyframes categoryDrawerIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media(max-width:760px){.topbar{min-height:72px;padding:9px 10px;gap:7px}.global-search{width:auto;flex:1}.brand img{width:40px;height:40px}.stores-heading{align-items:stretch;gap:12px;flex-direction:column}.store-filter-actions{width:100%}.store-filter-actions .btn{flex:1}.store-category-drawer{padding:12px;border-radius:19px}.service-card{min-height:128px;padding:17px 9px}.service-icon,.category-card>span{width:54px;height:54px;border-radius:17px}}

/* مركز الطباعة الحرارية والمدمجة */
.printer-card{max-width:720px}.printer-status{display:flex;align-items:center;gap:10px;margin:10px 0 18px;padding:14px;border-radius:15px;background:#f2f5f9;border:1px solid var(--line)}.printer-status>span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#78869a;color:#fff}.printer-status.native,.printer-status.bluetooth{background:#ebfbf3;border-color:#9bd9b9;color:#116b47}.printer-status.native>span,.printer-status.bluetooth>span{background:#159260}.printer-status.available{background:#eef5ff;border-color:#adcaef;color:#174d91}.printer-status.available>span{background:#2873c8}.printer-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.printer-auto{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}.printer-note{margin-top:14px}.printer-actions .hidden{display:none}
body[data-print-paper="58"] .invoice{width:58mm;max-width:58mm;padding:3mm;font-size:10px}body[data-print-paper="80"] .invoice{width:80mm;max-width:80mm;padding:4mm;font-size:12px}body[data-print-paper="110"] .invoice{width:110mm;max-width:110mm;padding:5mm;font-size:13px}body[data-print-paper="a4"] .invoice{width:100%;max-width:190mm;margin:auto}
@media print{body[data-print-paper="58"] .invoice,body[data-print-paper="80"] .invoice,body[data-print-paper="110"] .invoice{margin:0!important;box-shadow:none!important}body[data-print-paper="58"] .invoice .grid2,body[data-print-paper="80"] .invoice .grid2{grid-template-columns:1fr;gap:5px}body[data-print-paper="58"] .invoice th,body[data-print-paper="58"] .invoice td{padding:3px 2px;font-size:9px}body[data-print-paper="80"] .invoice th,body[data-print-paper="80"] .invoice td{padding:5px 3px;font-size:10px}body[data-print-paper="58"] .invoice-head h1,body[data-print-paper="80"] .invoice-head h1{font-size:18px}}
@media(max-width:560px){.printer-actions{grid-template-columns:1fr}.printer-card .grid2{grid-template-columns:1fr}}

.admin-icon-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px;margin-top:18px}.admin-icon-grid button{border:1px solid #dce6f4;border-radius:20px;background:linear-gradient(150deg,#fff,#f1f6ff);padding:20px 12px;display:flex;align-items:center;flex-direction:column;gap:10px;box-shadow:0 8px 24px #102b5612;cursor:pointer;color:#132746;font:inherit}.admin-icon-grid button:hover{transform:translateY(-3px);border-color:#e99132}.admin-icon-grid button span{font-size:32px}.admin-account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px;margin-top:16px}.admin-account-card{border:1px solid #dce6f4;border-radius:18px;padding:16px;background:#fff}.admin-account-card summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}.admin-account-card summary strong{margin-inline-start:auto;color:#146a43;white-space:nowrap}.admin-account-card small{display:block;color:#6c7890}.account-icon{font-size:27px;background:#edf4ff;border-radius:13px;padding:9px}.account-detail{margin-top:15px;border-top:1px solid #e5edf7;padding-top:10px}.admin-selected{outline:3px solid #e99132;scroll-margin-top:90px}.admin-icon-menu{background:linear-gradient(135deg,#f9fbff,#eef4ff)}[hidden]{display:none!important}

.admin-section-hidden{display:none!important}.admin-icon-menu{scroll-margin-top:80px}
.merchant-panel-hidden{display:none!important}
.merchant-icon-menu{background:linear-gradient(135deg,#f9fbff,#edf4ff);border:1px solid #dbe6f4}
.merchant-icon-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:12px;margin-top:18px}
.merchant-icon-grid button{font:inherit;color:#142a4d;text-align:center;border:1px solid #d8e4f3;border-radius:20px;background:#fff;min-height:148px;padding:17px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 22px #12335b11;cursor:pointer}
.merchant-icon-grid button:active,.merchant-icon-grid button:focus-visible{border-color:#ed8c32;outline:2px solid #ffd8ac}
.merchant-icon-grid button.selected{border-color:#ed8c32;background:#fff8ef;box-shadow:0 8px 24px #ed8c3233}
.merchant-icon-grid button span{font-size:35px}.merchant-icon-grid button b{font-size:16px}.merchant-icon-grid button small{color:#66768e;font-size:12px;line-height:1.5}
.merchant-section-back{padding:12px 18px}.merchant-availability{font-weight:800}.merchant-availability.available{color:#11784f}.merchant-availability.unavailable{color:#ae3434}
.admin-more-settings{margin-top:20px;border-top:1px solid #dce6f4;padding-top:15px}.admin-more-settings summary{cursor:pointer;color:#16365f;font-weight:800}.admin-extra-icons{margin-top:12px}.admin-category-section{scroll-margin-top:80px}.admin-category-section>.admin-section-search{width:100%;margin:12px 0 4px}.admin-mini-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:13px 0}.admin-mini-kpis span{display:grid;gap:4px;background:#f2f7fd;border-radius:12px;padding:10px}.admin-mini-kpis b{font-size:18px;color:#0e356c}.admin-mini-kpis small{font-size:11px}.admin-category-section .account-actions,#adminDriverBalances .account-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.admin-category-section .account-actions button,#adminDriverBalances .account-actions button{font-size:13px}.admin-category-section .admin-account-card summary strong,#adminDriverBalances .admin-account-card summary strong{font-size:14px}.admin-category-section .admin-account-card summary span:nth-child(2),#adminDriverBalances .admin-account-card summary span:nth-child(2){min-width:0}.admin-category-section .admin-account-card summary b,#adminDriverBalances .admin-account-card summary b{overflow-wrap:anywhere}
.admin-due-amount{display:grid;gap:3px;text-align:center;min-width:95px;color:#0e7048!important}.admin-due-amount small{font-size:10px;font-weight:600}.admin-cycle-list{border-top:1px solid #dae4f0;margin-top:16px;padding-top:8px}.admin-cycle-row{display:flex;flex-wrap:wrap;gap:9px;align-items:center;justify-content:space-between;border:1px solid #dfe7f2;border-radius:14px;padding:11px;margin:9px 0}.admin-cycle-row>span:first-child{min-width:145px;flex:1}.admin-cycle-row small{display:block;color:#66748b}.admin-cycle-row strong{color:#0e7048}.admin-cycle-row button{padding:8px 10px}.settlement-paid-tag{grid-column:1/-1;color:#8a5a15}.settlement-paid-tag.paid{color:#11784f;font-weight:800}.payout-timeline-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px;margin:15px 0}.payout-timeline-grid article{display:grid;gap:8px;border:1px solid #dbe5f3;background:#f9fbff;border-radius:16px;padding:14px}.payout-timeline-grid article>strong{color:#0c7049;font-size:21px}.payout-timeline-grid small,.admin-transfer-record small{display:block;color:#68768d}.admin-transfer-record{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#eaf8f1;border:1px solid #c6e9d3;border-radius:14px;padding:12px;margin:8px 0}

.admin-section-search{width:100%;min-height:48px;margin:14px 0;border:1px solid #cbd9eb;border-radius:14px;padding:10px 14px;font:inherit;background:#fff}.account-lines{margin:12px 0;border-top:1px solid #e4eaf4}.account-lines>div{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:8px;border-bottom:1px solid #eef1f5;padding:10px 0;font-size:.88rem}.account-lines strong{color:#126d51}.account-actions{display:flex;flex-wrap:wrap;gap:8px}.admin-account-card[open]{grid-column:1/-1}@media(max-width:520px){.account-lines>div{grid-template-columns:1fr 1fr}.account-lines>div span:first-child{grid-column:1/-1}}

/* Live used-goods auctions share the existing product cards and modal style. */
#liveAuctionPanel{margin-top:18px;padding:18px;border:1px solid #dce4ed;border-radius:20px;background:linear-gradient(160deg,#fff 35%,#fff8ee)}
#liveAuctionPanel h3{margin:0 0 12px;color:#102449}
#liveAuctionPanel strong{font-size:1.3rem;color:#e37516}
#liveAuctionPanel form{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:14px}
#liveAuctionPanel form label{display:grid;gap:6px;flex:1;min-width:180px}
#liveAuctionPanel input{min-height:42px;border:1px solid #cbd5e1;border-radius:12px;padding:8px 12px}
.auction-bid-history{display:grid;gap:6px;margin-top:12px;max-height:190px;overflow:auto}
.auction-bid-history>div{padding:8px 11px;border-radius:10px;background:#eef3f9;color:#23365a}
.chip .sim-icon{vertical-align:middle;display:inline-block;margin-inline-end:3px}
/* Choices shown only in partner registration forms. */
.registration-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.registration-options label{display:inline-flex;gap:6px;align-items:center;border:1px solid #d8e0ec;border-radius:12px;background:#f7f9fc;padding:9px 12px;cursor:pointer}.registration-service-picker{margin-top:14px;border:1px solid #d8e0ec;border-radius:14px;padding:12px}

.partner-registration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.partner-registration-grid .worker-registration-entry{grid-column:1/-1;background:#e6f4f1;border:1px solid #8ccabc;color:#103d37;min-height:80px;display:block}.worker-registration-entry small{display:block;font-size:12px;margin-top:5px}.worker-hint{margin:10px 0;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.merchant-stock-toggle{display:flex;align-items:center;gap:7px;cursor:pointer;font-weight:700}.merchant-stock-toggle input{accent-color:#0a9465;width:22px;height:22px}.merchant-stock-toggle small{font-size:12px;color:#66768e}.merchant-wallet-summary{display:grid;gap:4px;padding:16px;margin-bottom:14px;border:1px solid #d8e4f3;border-radius:16px;background:#f4f9fc}.merchant-wallet-summary strong{font-size:28px;color:#132b4d}@media(max-width:640px){.merchant-product-card{grid-template-columns:50px 1fr auto}.merchant-stock-toggle{grid-column:1/-1;justify-self:end}}
.service-provider-register-cta{width:100%;margin:12px 0 16px;padding:14px;border:1px solid #84c8b7;border-radius:18px;background:linear-gradient(135deg,#e8faf5,#f8fffd);color:#103d37;display:grid;grid-template-columns:48px 1fr;column-gap:10px;text-align:right;cursor:pointer;box-shadow:0 8px 22px #0f72521a}.service-provider-register-cta span{grid-row:1/3;font-size:30px;align-self:center}.service-provider-register-cta b{font-size:17px}.service-provider-register-cta small{font-size:12px;color:#4d746b;line-height:1.5}.dashboard-grid>.merchant-icon-menu{order:-20}.dashboard-grid>.dashboard-hero{order:-10}.merchant-launchpad-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.merchant-launchpad-head h2{margin:8px 0 4px}.ui-version{direction:ltr;color:#14785f;background:#e3f6ef;border-radius:999px;padding:7px 10px;font-size:12px;white-space:nowrap}.print-command{background:#07162f;color:#fff;border:0;margin:12px 0;font-size:16px;font-weight:900;min-height:52px;box-shadow:0 8px 18px #07162f26}.print-command:active{transform:translateY(1px)}

.device-v2-choice{border:1px solid #e5d6c4;border-radius:16px;padding:16px;margin:16px 0;background:#fffaf4}.device-v2-choice legend{font-weight:700;color:#172b47}.device-v2-choice label{display:block;margin:10px 0}.device-v2-choice p{color:#755838}.device-v2-choice input{margin-inline-end:7px}
.device-v2-choice .field{margin:12px 0}.device-v2-choice select{width:100%;min-height:46px;padding:10px;border:1px solid #d5c7b5;border-radius:10px;background:#fff}.device-v2-choice small{display:block;margin-top:6px}
.driver-icon-menu h2{margin:0 0 5px}.driver-icon-menu p{margin:0 0 16px;color:#69768b}.driver-icon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.driver-icon-tile{display:grid;justify-items:center;gap:8px;border:1px solid #dce5f1;background:linear-gradient(145deg,#fff,#f4f7fc);border-radius:18px;min-height:126px;padding:14px 8px;color:#102442;cursor:pointer;box-shadow:0 6px 16px #1528490d}.driver-icon-tile.selected{border-color:#f59b32;background:#fff4e8;box-shadow:0 5px 15px #f59b322e}.driver-icon-symbol{display:grid;place-items:center;width:51px;height:51px;border-radius:15px;background:#eaf1fb;font-size:26px}.driver-icon-tile b{text-align:center}.driver-icon-tile small{color:#48617b}.driver-reception [hidden]{display:none!important}@media(max-width:650px){.driver-icon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


#homeView>.hero{grid-template-columns:1fr}

.game-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.game-choice-grid .btn{min-height:72px;font-size:1rem}.coupon-entry{margin:12px 0}.coupon-entry input{flex:1}
@media(max-width:600px){.game-choice-grid{grid-template-columns:1fr}}

.coupon-eligibility-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.coupon-eligibility-fields[hidden],.quiz-fields[hidden]{display:none}
@media(max-width:700px){.coupon-eligibility-fields{grid-template-columns:1fr}}

/* v4.49 booking and customer coupon polish */
.store-hours-preview{display:block;margin-top:5px;color:#63758b;font-size:12px}.store-logo-image{width:100%;height:100%;object-fit:cover;border-radius:inherit}.store-customer-header{order:-30}.store-customer-identity{display:flex;align-items:center;gap:16px}.store-customer-identity img,.store-customer-identity>span{width:88px;height:88px;object-fit:cover;border-radius:24px;background:#fff4dc;display:grid;place-items:center;font-size:40px;box-shadow:0 10px 25px #f2a32a25}.store-customer-identity h2{margin:0}.store-customer-identity p{margin:6px 0;color:#65748a}.store-booking-card{border-color:#f3d28a;background:linear-gradient(145deg,#fffdf6,#fff8e7)}.store-booking-card h3{margin-top:0;color:#6e4a00}.store-booking-card form{display:grid;gap:12px}.customer-coupon-shortcut{width:100%;margin:14px 0 6px;padding:16px 18px;border:1px solid #f4d493;border-radius:20px;background:linear-gradient(110deg,#fff8e8,#fff 70%);display:grid;grid-template-columns:48px 1fr;gap:2px 10px;text-align:right;color:#694800;cursor:pointer}.customer-coupon-shortcut span{grid-row:1/3;font-size:28px;align-self:center}.customer-coupon-shortcut b{font-size:16px}.customer-coupon-shortcut small{color:#806c40}.coupon-customer-grid{display:grid;gap:12px}.customer-coupon-card{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;padding:16px;border:1px solid #e9ddb9;border-radius:18px;background:#fffdf7}.customer-coupon-card small{display:block;margin-top:5px;color:#65748a}.customer-coupon-icon{font-size:27px}.coupon-unavailable{opacity:.72;background:#f7f8fa}.coupon-picker-link{margin-top:8px;border:0;background:transparent;color:#925900;font-weight:800;cursor:pointer}.merchant-banquet-row{margin:12px 0;padding:14px;border:1px dashed #d9c17f;border-radius:16px;background:#fffdf6}.merchant-panel-bookings{display:grid;gap:14px}.laundry-store-logo{width:34px;height:34px;object-fit:cover;border-radius:10px;vertical-align:middle;margin-inline-end:8px}.#laundryStoreTitle small{display:block;font-size:12px;color:#68788e;margin-top:4px}

.order-card{box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow:hidden;overflow-wrap:anywhere}.order-card>.row{align-items:flex-start;flex-wrap:wrap;min-width:0}.order-card>.row>div,.order-card>.row>b,.order-card p,.order-card small{min-width:0;max-width:100%;overflow-wrap:anywhere}.order-card .feature-order-actions{width:100%;max-width:100%;box-sizing:border-box;display:flex;flex-wrap:wrap;grid-template-columns:none;justify-content:flex-start;align-items:stretch;gap:8px;padding:12px 0 0;margin-top:14px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}.subscription-edit-row{padding:14px;margin:12px 0;border:1px solid var(--line);border-radius:16px;background:#f9fbfe}.driver-transfer-box{width:100%;margin-top:16px;padding-top:16px;border-top:1px solid var(--line);display:grid;gap:12px}.driver-transfer-box form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end;gap:10px}.driver-transfer-box label{display:grid;gap:6px;font-weight:700}.driver-transfer-box input,.driver-transfer-box select{width:100%;min-width:0;padding:11px;border:1px solid var(--line);border-radius:12px;background:#fff}.driver-transfer-history{display:grid;gap:8px}.driver-transfer-history>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:10px;border-radius:12px;background:#f6f8fb;overflow-wrap:anywhere}.driver-transfer-history small{grid-column:1/-1;color:var(--muted)}.feature-order-add{min-height:36px;border-radius:999px!important;padding:0 12px!important;background:#fff9de!important;color:#3b3520!important;border:1px solid #e8bd16!important;font-weight:800}

.merchant-product-photo-tools{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.merchant-store-photo-editor{display:flex;align-items:center;gap:12px;margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:14px}.merchant-store-photo-editor img{width:56px;height:56px;border-radius:12px;object-fit:cover}.referral-wallet-card{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.referral-wallet-card p{flex-basis:100%;margin:0}.commission-rate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}.commission-rate-grid label{display:grid;gap:6px;padding:12px;border:1px solid var(--line);border-radius:12px}.commission-rate-grid label div{display:flex;align-items:center;gap:6px}.commission-rate-grid input{width:100%;min-width:60px}

.feature-order-actions{display:flex;flex-wrap:wrap;grid-template-columns:none;justify-content:flex-start;align-items:stretch;gap:8px;padding:12px 0 0;margin-top:14px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}.feature-order-actions .feature-action{box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;width:auto;min-width:116px;min-height:42px;padding:7px 11px;border:1px solid #dce3ec;border-radius:12px;background:#fff;color:#253650;font-size:12px;line-height:1.25;box-shadow:0 2px 7px #1528490a}.feature-order-actions .feature-action-icon{width:23px;height:23px;display:grid;place-items:center;flex:0 0 auto;color:#bf8110}.feature-order-actions .feature-action-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.feature-order-actions .feature-action-label{display:block;max-width:100%;white-space:normal;text-align:right;overflow-wrap:anywhere}.feature-order-actions .feature-action-report{background:#fff8eb;border-color:#f0dfbb}.feature-order-actions .feature-action-chat{background:#f1f7ff;border-color:#d7e6fb}.feature-order-actions .feature-code,.feature-order-actions .notice,.feature-order-actions .feature-delay-help{grid-column:1/-1}.sa-game-question{grid-column:1/-1;margin:10px 0;padding:14px;border:1px solid var(--line);border-radius:14px}.sa-game-question legend{font-weight:700;padding:0 8px}.sa-game-type-fields{grid-column:1/-1;margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}.sa-game-type-fields[hidden]{display:none!important}.membership-status-card{border-color:#e8c34e;background:linear-gradient(135deg,#fff9e6,#fff)}
@media(max-width:600px){.order-card .feature-order-actions,.feature-order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.feature-order-actions .feature-action{width:100%;min-width:0;min-height:42px;font-size:11px;justify-content:flex-start}.feature-order-actions .feature-action-label{text-align:right}.sa-game-question .sa-campaign-grid{grid-template-columns:1fr}}

.feature-ai-reply{margin:10px 0;padding:12px 14px;border-radius:14px;background:#fff8e4;border:1px solid #efd27a;color:#403313}.feature-ai-reply p{margin:6px 0 0;white-space:pre-wrap}.feature-ai-reply small{font-weight:700}
.store-card-wrap{position:relative;min-width:0}.store-card-wrap>.store-card{width:100%;height:100%;text-align:right;padding-inline:54px 18px;cursor:pointer}.store-favorite-toggle{position:absolute;top:12px;left:12px;width:38px;height:38px;border:1px solid #f2d9a3;border-radius:13px;background:#fffaf0;color:#a87509;font-size:24px;line-height:1;cursor:pointer;box-shadow:0 5px 14px #6c4b1014}.store-favorite-toggle.is-favorite{background:#fff1bd;color:#9d6700;border-color:#e5b84f}.store-favorite-toggle:focus-visible{outline:3px solid #f3be44;outline-offset:2}.customer-favorites{margin-top:18px;padding:2px 0 10px}.customer-favorites .section-head{margin-top:16px}
.merchant-setup-checklist{border:1px solid #f0d28a;background:linear-gradient(140deg,#fffdf5,#fff7df)}.merchant-setup-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.merchant-setup-head h3{margin:10px 0 4px}.setup-progress{display:grid;justify-items:center;gap:6px;color:#8a6513;font-weight:900}.setup-progress>span{display:block;width:100px;height:8px;border-radius:20px;background:#f0e6ca;overflow:hidden}.setup-progress i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#e8ad2c,#f3ce63)}.merchant-setup-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.merchant-setup-step{display:grid;grid-template-columns:32px 1fr;align-items:center;column-gap:9px;text-align:right;padding:12px;border:1px solid #eee3c8;border-radius:15px;background:#fff;cursor:pointer}.merchant-setup-step>span{grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#fff2c8;color:#8a6513;font-size:18px;font-weight:900}.merchant-setup-step.done>span{background:#e3f5ec;color:#167350}.merchant-setup-step small{color:#6f7887;margin-top:3px}.sa-audit-list article[data-sa-search]{min-height:72px}
@media(max-width:600px){.merchant-setup-head{align-items:flex-start}.merchant-setup-steps{grid-template-columns:1fr}.store-card-wrap>.store-card{padding-inline:52px 14px}}

/* Customer catalog: neighborhood-first image tiles, always three across. */
.store-grid,.services,.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,2.2vw,16px);min-width:0}
.store-card-wrap,.store-card,.service-card,.category-card{min-width:0;max-width:100%;box-sizing:border-box}
.store-card-wrap>.store-card{position:relative;display:flex;min-height:0;height:100%;padding:14px 8px 12px;align-items:center;justify-content:flex-start;flex-direction:column;gap:7px;text-align:center;border:1px solid #e6e8e3;border-radius:18px;background:linear-gradient(155deg,#fffefa,#f5f7f2);color:#19344a;overflow:hidden}
.store-ico,.category-image-icon,.service-icon{display:grid;place-items:center;flex:0 0 auto;width:clamp(52px,15vw,78px);height:clamp(52px,15vw,78px);margin:0 auto 3px;border-radius:21px;overflow:hidden;background:#f1e7d5;color:#996127;box-shadow:inset 0 1px #fff,0 7px 17px #5c472013}
.store-ico img,.store-ico svg,.category-image-icon img,.category-image-icon svg,.service-icon img,.service-icon svg{display:block;width:100%;height:100%;object-fit:cover}
.store-ico svg,.category-image-icon svg,.service-icon svg{padding:15px;box-sizing:border-box}
.store-card-name{display:block;width:100%;font-size:clamp(12px,3vw,15px);font-weight:850;line-height:1.42;overflow-wrap:anywhere}
.store-card-category{max-width:100%;font-size:10px;color:#70808a;line-height:1.35;overflow-wrap:anywhere}
.store-card .pill{max-width:100%;padding:3px 9px;font-size:10px;white-space:normal}
.store-favorite-toggle{top:7px;left:7px;width:30px;height:30px;border-radius:10px;font-size:19px;z-index:2}
.services .service-card,.category-grid .category-card{min-height:0;height:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;gap:7px;padding:13px 7px 12px;text-align:center;overflow:hidden;overflow-wrap:anywhere;border-radius:18px}
.service-icon,.category-image-icon{width:clamp(48px,14vw,70px);height:clamp(48px,14vw,70px);margin:0 auto 3px;background:#e9f0ec;color:#3d7562}
.service-card>b,.category-card>b{line-height:1.4;font-size:clamp(11px,2.8vw,14px);overflow-wrap:anywhere}
.service-subtitle,.category-card>small{font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.customer-home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.home-shortcut{min-width:0;min-height:118px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:8px;padding:14px 8px 12px;border:1px solid #e4e8e0;border-radius:18px;background:#fbfcf8;color:#203a4a;text-align:center;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.home-shortcut:hover,.home-shortcut:focus-visible{border-color:#8db6a1;transform:translateY(-2px);box-shadow:0 8px 20px #203a4a12;outline:none}
.home-shortcut-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#e4f1e8;color:#28734e;box-shadow:inset 0 0 0 1px #28734e12}
.home-shortcut:nth-child(3n+2) .home-shortcut-icon{background:#e8effb;color:#3b65a6}
.home-shortcut:nth-child(3n) .home-shortcut-icon{background:#fff1df;color:#a46020}
.home-shortcut-icon svg{width:23px;height:23px}
.home-shortcut b{font-size:clamp(11px,2.8vw,14px);line-height:1.35}
.home-shortcut small{font-size:10px;line-height:1.45;color:#6d7b7b}
.merchant-manager-info{margin:0 0 10px;color:#294638;font-size:13px;line-height:1.7;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.merchant-username-badge{display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid #cfe6d9;border-radius:12px;background:#f1faf5}
.merchant-username-badge>span{display:grid;gap:2px}
.merchant-username-badge small{font-size:10px;color:#557667}
.merchant-username-badge bdi{font-weight:800;direction:ltr}
.merchant-username-badge button{border:0;border-radius:8px;padding:6px 9px;background:#168365;color:#fff;font-weight:700}
.driver-pickup-proof-form{display:grid;grid-template-columns:minmax(100px,1fr) auto auto;align-items:end;gap:8px;margin-top:10px}
.driver-pickup-proof-form label{display:grid;gap:5px;font-size:12px;font-weight:700}
.driver-pickup-proof-form input{min-width:0;padding:10px;border:1px solid #cbd5df;border-radius:10px;font-size:16px;letter-spacing:.15em}
.driver-pickup-scanner{width:min(92vw,480px);border:0;border-radius:18px;padding:20px;background:#fff;box-shadow:0 20px 80px #10203355}
.driver-pickup-scanner::backdrop{background:#101c2b99}
.driver-pickup-scanner h2{margin:0;font-size:18px}
.driver-pickup-scanner p{color:#536579}
.driver-pickup-scanner video{display:block;width:100%;max-height:60vh;border-radius:12px;background:#101820}
.driver-pickup-scanner button{margin-top:12px}
.invoice-pickup-verification{display:grid;justify-items:center;gap:5px;margin:14px auto;padding:10px;border:1px dashed #476681;border-radius:10px;text-align:center;break-inside:avoid}
.invoice-pickup-verification strong{font-size:.95em}
.invoice-pickup-verification small{font-size:.72em}
.invoice-pickup-verification img{width:126px;height:126px;object-fit:contain}
.invoice-pickup-verification bdi{font-weight:800;font-size:1.25em;letter-spacing:.15em}
.product-tax-breakdown{display:block;margin-top:5px;color:#556a7d;font-size:11px;line-height:1.5}
.checkout-product-tax{padding:7px 9px;margin-bottom:8px;border-radius:8px;background:#f3f7fa}
.invoice-product-tax-summary{margin:8px 0;padding:7px;border-top:1px solid #222;border-bottom:1px solid #222;font-size:.8em;font-weight:700}
.invoice-item-tax-detail{display:block;margin-top:4px;font-size:.68em;font-weight:400;line-height:1.35}
.customer-random-reward{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;padding:18px 20px;border:1px solid #f4c66a;border-radius:16px;background:linear-gradient(115deg,#fff8e9,#fff);box-shadow:0 8px 24px #12304b12}
.customer-random-reward small{color:#6b7784}.customer-random-reward h2{margin:5px 0;font-size:1.25rem}.customer-random-reward p{margin:6px 0;font-size:1rem}.customer-random-reward bdi{display:inline-block;padding:3px 8px;border-radius:6px;background:#fff0c8;font-weight:800;letter-spacing:.12em}
.sa-random-reward-settings{margin:18px 0;padding:18px;border:1px solid #f0cd85;border-radius:14px;background:linear-gradient(120deg,#fff9ed,#fff)}
.sa-random-reward-settings h2{margin:0 0 8px}.sa-random-reward-enable,.sa-random-reward-options label{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #dce4ec;border-radius:9px;background:#fff}
.sa-random-reward-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0}
@media(max-width:600px){.customer-random-reward{align-items:flex-start;flex-direction:column}.customer-random-reward .btn{width:100%}.sa-random-reward-options{grid-template-columns:1fr}}
@media(max-width:600px){.driver-pickup-proof-form{grid-template-columns:1fr 1fr}.driver-pickup-proof-form label{grid-column:1/-1}.driver-pickup-proof-form button{width:100%}}
.merchant-secondary-menu{grid-column:1/-1;border:1px solid #e3e9e1;border-radius:15px;background:#fbfcf9;padding:10px 14px}
.merchant-secondary-menu>summary{cursor:pointer;font-weight:800;color:#496051}
.merchant-secondary-grid{margin-top:10px}
.merchant-stock-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;padding:12px;border:1px solid #e8e3d8;border-radius:14px;background:#fbfaf6}
.merchant-stock-controls>strong{grid-column:1/-1;color:#315f48}
.merchant-stock-controls label,.merchant-report-range label,.merchant-staff-form>label{display:grid;gap:5px;font-size:12px;font-weight:700}
.merchant-stock-controls input,.merchant-report-range input,.merchant-staff-form input{width:100%;min-height:40px;padding:8px;border:1px solid #d8dfd8;border-radius:10px;background:white;font:inherit}
.merchant-stock-controls .btn{grid-column:1/-1}
.merchant-product-card>.merchant-stock-controls{grid-column:1/-1;width:100%;min-width:0}
.merchant-stock-controls>small{grid-column:1/-1;color:var(--muted);font-size:11px;line-height:1.5}
.merchant-stock-controls .merchant-stock-unlimited{display:flex;align-items:center;gap:8px;min-height:40px}
.merchant-stock-controls .merchant-stock-unlimited input,.merchant-daily-stock-field input[type=checkbox]{width:18px;min-height:18px;accent-color:#168365}
.merchant-stock-controls input:disabled,.merchant-daily-stock-field input:disabled{background:#f1f3f1;color:#7a8790;cursor:not-allowed}
.merchant-daily-stock-field>label.toggle-line{display:flex;align-items:center}
.merchant-report-range{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}
.merchant-report-range label{min-width:150px}
.merchant-sales-report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0}
.merchant-sales-report-summary article{display:grid;gap:5px;padding:12px;border-radius:13px;background:#f4f7f3}
.merchant-sales-report-summary small{color:#66776e;font-size:11px}
.merchant-sales-report-summary b{font-size:17px}
.merchant-staff-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.merchant-staff-form fieldset{grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap;border:1px solid #dfe5dd;border-radius:12px;padding:10px}
.merchant-staff-form fieldset label{display:flex;align-items:center;gap:7px}
.merchant-staff-form fieldset input{width:auto;min-height:0}
.merchant-staff-form>button,.merchant-staff-form>div{grid-column:1/-1}
.merchant-staff-row,.merchant-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #edf0ea}
.merchant-staff-row>div{display:grid;gap:4px}.merchant-staff-row small{color:#6d7b7b}
.invoice-design-note,.invoice-custom-text{white-space:pre-line;overflow-wrap:anywhere}
.customer-home-actions{display:flex;gap:9px;margin:7px 0 15px}
.customer-home-actions button{min-width:0;padding:9px 12px;border:1px solid #e4e5dc;border-radius:12px;background:#f9f8f2;color:#496051;font:inherit;font-size:12px;cursor:pointer}
.customer-discovery-state{margin:12px 0}.customer-discovery-state.hidden{display:none}
.discovery-message{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border:1px solid #dce6dd;border-radius:16px;background:#f5f8f3;color:#294638}
.discovery-message p{margin:5px 0 0;color:#6c7c70;font-size:13px}
.discovery-message .btn{flex:0 0 auto}
.store-customer-contact{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #e6e8df}
.store-customer-contact a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:11px;background:#2c684f;color:#fff;text-decoration:none;font-weight:800}
@media(max-width:390px){.store-grid,.services,.category-grid,.customer-home-shortcuts{gap:7px}.store-card-wrap>.store-card{padding:12px 5px 10px}.store-ico,.category-image-icon{border-radius:17px}.home-shortcut{padding-inline:5px}}
@media(max-width:600px){.merchant-stock-controls,.merchant-staff-form{grid-template-columns:1fr}.merchant-sales-report-summary{grid-template-columns:1fr 1fr}.merchant-staff-form fieldset{display:grid;grid-template-columns:1fr 1fr}.merchant-report-range label{flex:1 1 140px}.home-shortcut{min-height:108px}}
.sa-live-preview{display:grid;gap:6px;margin:12px 0;padding:16px;border:1px dashed #e2ba50;border-radius:16px;background:linear-gradient(135deg,#fff9e8,#fff);color:#3d3215}.sa-live-preview strong{font-size:19px}.sa-live-preview small{color:#6b7280}
.feature-delay-help{display:flex;align-items:center;gap:7px;flex-wrap:wrap;width:100%;padding:10px;border-radius:14px;background:#fff8e4;border:1px solid #ecd27e}.feature-delay-help b{margin-inline-end:auto}.feature-delay-help button{border:1px solid #e5c660;border-radius:10px;background:#fff;padding:8px 11px;color:#4a3a0c;cursor:pointer}
.merchant-performance{border-color:#dfe8f3}.merchant-performance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:14px}.merchant-performance-grid>div{display:grid;gap:5px;padding:12px;border-radius:13px;background:#f6f8fb}.merchant-performance-grid small{color:#64748b}.merchant-performance-grid b{font-size:20px;color:#102440}@media(max-width:600px){.merchant-performance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.driver-store-contact{margin-top:12px;padding:13px;border:1px solid #f0d28a;border-radius:15px;background:linear-gradient(135deg,#fffaf0,#fff);display:grid;gap:10px}.driver-store-contact>div:first-child{display:grid;gap:4px}.driver-store-contact small{color:#687386}.driver-store-contact-actions{display:flex;gap:8px;flex-wrap:wrap}.driver-store-contact-actions a{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:40px}.driver-active-card.route-card .driver-route-copy{min-width:0}

/* iPhone touch reachability: keep every customer tab inside the safe viewport. */
@media(max-width:520px){.bottom-nav{bottom:0;height:calc(74px + env(safe-area-inset-bottom));padding:4px 4px env(safe-area-inset-bottom);justify-content:space-between}.bottom-nav button{flex:1 1 0;width:auto;min-width:0;max-width:none;padding:2px 1px;touch-action:manipulation}.shell{padding-bottom:calc(110px + env(safe-area-inset-bottom))}}

/* Training videos for merchants and their final service invoices */
.training-video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:18px}.training-video-card{border:1px solid var(--line);border-radius:18px;padding:14px;background:#fff}.training-video-card video{display:block;width:100%;max-height:280px;background:#07162f;border-radius:12px;object-fit:contain}.training-video-card h3{margin:12px 0 5px}.service-invoice-box{padding:14px;margin-top:12px;border:1px solid var(--line);border-radius:16px;background:#f8fafc}.service-invoice-proof{width:90px;height:90px;object-fit:cover;border-radius:10px;margin:5px}.mapbox,.map-tiles{-webkit-transform:translateZ(0);transform:translateZ(0)}.mapbox{isolation:isolate}.map-tiles{overflow:hidden;touch-action:pan-x pan-y}
@media(max-width:520px){.training-video-grid{grid-template-columns:1fr}.service-invoice-proof{width:76px;height:76px}}
.offer-spotlight-backdrop{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:22px;background:rgba(5,16,37,.78);backdrop-filter:blur(5px)}.offer-spotlight{position:relative;width:min(100%,520px);max-height:90dvh;overflow:auto;border-radius:28px;background:#fff;padding:34px 26px 28px;text-align:center;box-shadow:0 25px 80px rgba(0,0,0,.35);color:#102440}.offer-spotlight-close{position:absolute;inset-block-start:12px;inset-inline-start:12px;width:42px;height:42px;border:0;border-radius:50%;background:#edf2f8;font-size:28px;color:#102440}.offer-spotlight small{display:block;color:#f07824;font-weight:800;margin:10px 0}.offer-spotlight h2{font-size:clamp(25px,7vw,38px);margin:10px 0 12px}.offer-spotlight p{font-size:18px;color:#718097;line-height:1.6;margin:0 0 24px}.offer-spotlight-image{width:100%;max-height:230px;object-fit:cover;border-radius:18px;margin-bottom:12px}.offer-spotlight-action{min-height:58px;font-size:18px}
.service-icon,.category-image-icon{background:linear-gradient(145deg,#fff3df,#ffe4bb);color:inherit;box-shadow:inset 0 1px #fff,0 9px 20px #d8841820}.store-ico{background:#fff3e8}

    .map-tiles{position:absolute;inset:0;width:100%;height:100%;z-index:0}

.delivery-promo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:14px 0}.delivery-promo-row{display:grid;gap:9px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff)}.delivery-promo-row h4{margin:0}.delivery-promo-row h4 small{color:var(--muted)}.delivery-promo-row label{display:grid;gap:5px}.delivery-promo-row input[type=number]{width:100%;min-height:38px}.admin-store-rate-list,.admin-store-delivery-list{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:14px}.admin-store-rate-list>summary,.admin-store-delivery-list>summary{cursor:pointer;font-weight:700}

.registration-terms-accept{margin:14px 0;padding:12px 14px;border:1px solid #dbe5ef;border-radius:12px;background:#f7fafc;color:#26364a;font-size:.92rem;line-height:1.8}.registration-terms-accept label{display:flex;align-items:flex-start;gap:9px}.registration-terms-accept input{margin-top:.45rem;accent-color:#087c62}.terms-inline-link{padding:0;border:0;background:none;color:#087c62;text-decoration:underline;font:inherit;cursor:pointer}.registration-terms-content{max-height:62vh;overflow:auto;line-height:1.9;color:#24344a;padding:0 4px}.registration-terms-content h3{margin:18px 0 6px;color:#092442}.registration-terms-content ul{padding-inline-start:22px}.registration-terms-content li{margin:5px 0}
/* Store browsing: keep product categories visible and easy to scan on phones. */
.store-product-categories{position:sticky;top:68px;z-index:20;display:flex;gap:8px;overflow-x:auto;white-space:nowrap;padding:10px 12px;margin:0 0 12px;background:#fff;border:1px solid var(--line);border-radius:16px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.store-product-categories .chip{flex:0 0 auto;min-height:40px;font-weight:700}
.store-products-grid{grid-column:1/-1}
#storeProductsCatalog{order:-20}
.store-customer-header{order:-30}
.store-booking-card,.customer-subscription-offers{order:0}
.store-open-pill{background:#e7f8ef;color:#167443}
.store-closed-pill{background:#fff0ed;color:#b52f2f}
.availability-toggle{min-height:52px;min-width:190px;border:1px solid #b7e1c7;border-radius:16px;padding:8px 14px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;background:#eaf8ef;color:#126b3d}
.availability-toggle.offline{background:#fff2e8;border-color:#f3c29b;color:#a44912}
.availability-toggle small{font-size:12px;opacity:.8}
@media(max-width:520px){.store-product-categories{top:58px;margin-inline:-2px;border-radius:12px}.store-product-categories .chip{padding:9px 14px}.availability-toggle{min-width:100%;align-items:center}.merchant-panel-home .driver-controls{display:grid;grid-template-columns:1fr 1fr}.merchant-panel-home .driver-controls>*{min-width:0}}

/* Invoice design editor and readable invoice typography */
.invoice{font-size:var(--invoice-font-size,20px);line-height:1.55}.invoice .invoice-head{border-color:var(--invoice-brand-color,var(--navy));align-items:center;gap:14px}.invoice-brand-logo{display:block;width:auto;max-width:150px;max-height:64px;object-fit:contain;margin:0 0 8px auto}.invoice-item-name{font-size:1.12em;font-weight:800}.invoice .total{font-size:1.2em;font-weight:800;border-top:2px solid var(--invoice-brand-color,var(--navy));padding-top:8px}.invoice-design-admin{grid-column:1/-1}.invoice-design-controls{display:grid;gap:12px;align-content:start}.invoice-design-controls label{display:grid;gap:6px}.invoice-design-controls .toggle-line{display:flex;align-items:center;gap:8px}.invoice-design-controls input[type=color]{width:100%;height:42px;padding:3px}.invoice-design-preview{background:#fff;color:#172033;border:1px solid #d6deeb;border-radius:16px;padding:20px;font-size:var(--invoice-font-size,20px);line-height:1.55}.invoice-design-preview img{display:block;max-width:140px;max-height:64px;object-fit:contain;margin:0 auto 8px}.invoice-design-preview h3{color:var(--invoice-brand-color);border-bottom:2px solid var(--invoice-brand-color);padding-bottom:8px}.invoice-design-preview .invoice-design-product{font-size:1.15em}@media(max-width:700px){.invoice-design-admin .grid2{grid-template-columns:1fr}.invoice{padding:14px;font-size:max(16px,var(--invoice-font-size,20px))}}
.merchant-balance-panel{display:grid;gap:18px;border-color:#d7e1e2;background:linear-gradient(145deg,#f9fbf8,#edf3f1);box-shadow:0 16px 34px #163c3810}.merchant-balance-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.merchant-balance-heading h2{margin:5px 0;font-size:clamp(25px,4vw,34px);color:#173b38}.merchant-balance-heading p{margin:0}.merchant-balance-kicker{color:#53736e;font-size:12px;font-weight:900;letter-spacing:.06em}.merchant-balance-menu-item{position:relative!important;overflow:hidden;background:linear-gradient(140deg,#e7f1ed,#f9fbf9)!important;border-color:#c7dbd4!important}.merchant-balance-menu-item .balance-menu-mark{display:grid!important;place-items:center;width:48px;height:48px;border-radius:14px;background:#173b38;color:#e6c889;font:900 14px/1 var(--font-display,system-ui);letter-spacing:-.06em}.merchant-balance-menu-item b{color:#183f3b!important}.merchant-balance-menu-item small{color:#55716c!important}.merchant-balance-filters{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(180px,1fr) minmax(210px,1.4fr) auto;gap:10px;align-items:end;padding:14px;border:1px solid #d5e1dd;border-radius:17px;background:#fff}.merchant-balance-filters label{display:grid;gap:6px;color:#37534f;font-weight:800;font-size:13px}.merchant-balance-filters select,.merchant-balance-filters input{width:100%;min-width:0;min-height:44px;padding:9px 11px;border:1px solid #cddbd6;border-radius:11px;background:#fbfdfc;color:#183b37;font:inherit}.merchant-balance-range{align-self:center;color:#33534e;font-size:13px;font-weight:800;line-height:1.5}.merchant-balance-basis{display:grid;gap:7px;padding:14px 16px;border-right:3px solid #a7803a;border-radius:12px;background:#f2eee3;color:#46564f;font-size:12px;line-height:1.6}.merchant-balance-basis b{color:#685321;font-size:13px}.merchant-balance-content{min-height:170px}.merchant-balance-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.merchant-balance-metric{min-width:0;min-height:126px;display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:14px;border:1px solid #d6e1dc;border-radius:15px;background:#fff;box-shadow:0 4px 14px #183b3708}.merchant-balance-metric:nth-child(5n+1){border-top:3px solid #46766c}.merchant-balance-metric.currency{background:#f8faf7}.merchant-balance-metric>span{color:#526961;font-size:13px;font-weight:850}.merchant-balance-metric>b{overflow-wrap:anywhere;color:#193d39;font-size:clamp(19px,2.2vw,25px);font-variant-numeric:tabular-nums}.merchant-balance-metric small{color:#73817a;font-size:11px;line-height:1.45}.merchant-balance-generated{display:block;margin-top:12px;color:#7a8982;font-size:11px}.merchant-balance-error{display:grid;justify-items:start;gap:10px;padding:20px;border:1px solid #e2bcb6;border-radius:16px;background:#fff4f0;color:#7d352c}.merchant-balance-skeleton{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.merchant-balance-skeleton i{height:126px;border:1px solid #dde6e1;border-radius:15px;background:linear-gradient(100deg,#edf2ef 25%,#f8faf8 42%,#edf2ef 65%);background-size:220% 100%;animation:merchantBalanceShimmer 1.5s ease-in-out infinite}@keyframes merchantBalanceShimmer{to{background-position-x:-220%}}
.invoice table{border-collapse:separate;border-spacing:0 8px}.invoice table tbody tr{outline:1px solid #d4dce5;outline-offset:-1px;border-radius:10px;background:#fff}.invoice table tbody td{border:0;padding:10px 8px;vertical-align:middle}.invoice table tbody td:first-child{border-radius:0 10px 10px 0}.invoice table tbody td:last-child{border-radius:10px 0 0 10px;font-weight:800}.invoice table tbody tr td:not(:first-child){text-align:center;white-space:nowrap}.sa-report-print{font-family:inherit;color:#172c29;direction:rtl}.sa-report-print h1,.sa-report-print h2{text-align:center}.sa-report-print p{text-align:center;color:#5a6d68}.sa-report-metrics{display:grid;gap:8px}.sa-report-metric{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #aab8b2;border-radius:8px;break-inside:avoid}.sa-report-metric span{font-weight:750}.sa-report-metric b{font-variant-numeric:tabular-nums;text-align:left}
@media(max-width:900px){.merchant-balance-metrics,.merchant-balance-skeleton{grid-template-columns:repeat(3,minmax(0,1fr))}.merchant-balance-filters{grid-template-columns:1fr 1fr}.merchant-balance-filters .btn{grid-column:1/-1}.merchant-balance-range{grid-column:1/-1}}
@media(max-width:560px){.merchant-balance-heading{align-items:stretch;flex-direction:column}.merchant-balance-heading>.btn{width:100%}.merchant-balance-filters,.merchant-balance-metrics,.merchant-balance-skeleton{grid-template-columns:1fr 1fr}.merchant-balance-filters .btn{grid-column:1/-1}.merchant-balance-metric{min-height:118px;padding:11px}.merchant-balance-metric>b{font-size:20px}.merchant-balance-basis{font-size:11px}.invoice table,.invoice table tbody,.invoice table tbody tr{display:block;width:100%}.invoice table thead{display:none}.invoice table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:10px;margin:0 0 10px;border:1px solid #d4dce5;border-radius:12px}.invoice table tbody td{padding:4px 2px;white-space:normal!important}.invoice table tbody td:first-child{grid-column:1/-1;font-size:16px}.invoice table tbody td:nth-child(2):before{content:"الكمية: ";color:#62736d;font-size:11px}.invoice table tbody td:nth-child(3):before{content:"سعر الوحدة: ";color:#62736d;font-size:11px}.invoice table tbody td:nth-child(4):before{content:"الإجمالي: ";color:#62736d;font-size:11px}}
.sa-report-print>.sa-report-metrics{display:grid;padding:0;border:0}
body[data-print-paper="58"] .invoice table thead,body[data-print-paper="80"] .invoice table thead{display:none}
body[data-print-paper="58"] .invoice table tbody tr,body[data-print-paper="80"] .invoice table tbody tr{display:grid;grid-template-columns:1fr;border:1px solid #111;margin-bottom:8px;padding:5px}
body[data-print-paper="58"] .invoice table tbody td,body[data-print-paper="80"] .invoice table tbody td{display:block;white-space:normal!important;text-align:right;overflow-wrap:anywhere}
body[data-print-paper="58"] .invoice td:nth-child(2):before,body[data-print-paper="80"] .invoice td:nth-child(2):before{content:"الكمية: "}
body[data-print-paper="58"] .invoice td:nth-child(3):before,body[data-print-paper="80"] .invoice td:nth-child(3):before{content:"سعر الوحدة: "}
body[data-print-paper="58"] .invoice td:nth-child(4):before,body[data-print-paper="80"] .invoice td:nth-child(4):before{content:"الإجمالي: "}
@media(max-width:560px){.invoice .invoice-items-table tbody tr{border:2px solid #111!important;border-radius:0;padding:8px;gap:6px}.invoice .invoice-items-table tbody td{border:0!important}.invoice .invoice-items-table tbody td:first-child{width:100%;min-width:0}.invoice .invoice-items-table .invoice-item-extras bdi{display:inline;white-space:nowrap}}
@media print{.invoice table tbody tr{outline:1px solid #111!important;background:#fff!important;break-inside:avoid}.invoice table tbody td{padding:7px 6px!important}.sa-report-metric{border:1px solid #111!important;border-radius:0!important;break-inside:avoid}.sa-report-print .sa-report-metrics{gap:7px}}
