:root{
  --ink:#22314f;
  --ink-2:#42506c;
  --muted:#7d879b;
  --blue:#304d7f;
  --blue-2:#41649d;
  --pink:#ef9fb8;
  --pink-soft:#fff1f6;
  --cream:#fffaf8;
  --surface:#ffffff;
  --line:rgba(42,58,91,.12);
  --shadow:0 22px 65px rgba(35,47,77,.13);
  --shadow-soft:0 10px 30px rgba(35,47,77,.09);
  --success:#2b7a5a;
  --warning:#aa7a18;
  --danger:#b54855;
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans Arabic","Tahoma",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:#f7f8fc}
body{margin:0;min-height:100vh;color:var(--ink);background:
  radial-gradient(circle at 90% -10%,rgba(239,159,184,.22),transparent 34%),
  radial-gradient(circle at -10% 20%,rgba(63,98,157,.12),transparent 38%),
  linear-gradient(180deg,#fff 0,#f8f9fd 44%,#f5f6fa 100%);}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{touch-action:manipulation}
img{max-width:100%}
.hidden{display:none!important}
.muted{color:var(--muted)}
.container{width:min(1120px,calc(100% - 28px));margin-inline:auto}
.page-shell{min-height:100vh;padding-bottom:88px}
.topbar{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.84);backdrop-filter:blur(18px);border-bottom:1px solid rgba(42,58,91,.08)}
.topbar-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand img{width:46px;height:46px;border-radius:16px;object-fit:cover;box-shadow:0 8px 20px rgba(34,49,79,.12)}
.brand strong{display:block;font-size:15px;line-height:1.2}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.top-actions{display:flex;align-items:center;gap:8px}
.icon-link,.ghost-btn{border:1px solid var(--line);background:rgba(255,255,255,.9);border-radius:14px;padding:9px 12px;color:var(--ink);font-weight:750;cursor:pointer;box-shadow:0 5px 15px rgba(35,47,77,.04)}
.hero{padding:34px 0 22px}
.hero-card{position:relative;overflow:hidden;border-radius:32px;background:linear-gradient(135deg,#233a66 0%,#35558b 60%,#5474aa 100%);color:#fff;padding:30px;box-shadow:var(--shadow)}
.hero-card:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.08);left:-80px;top:-110px}
.hero-card:before{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(239,159,184,.30);right:-45px;bottom:-85px;filter:blur(2px)}
.hero-content{position:relative;z-index:1;max-width:650px}
.eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:850;letter-spacing:.1px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.14)}
.hero h1{font-size:clamp(27px,5vw,48px);margin:14px 0 9px;line-height:1.1}.hero p{margin:0;color:rgba(255,255,255,.82);line-height:1.8;font-size:14px;max-width:580px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.btn{border:0;border-radius:15px;padding:12px 17px;font-weight:850;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease}
.btn:active{transform:scale(.98)}
.btn-primary{background:linear-gradient(135deg,#ef9fb8,#e98aa8);color:#fff;box-shadow:0 10px 24px rgba(229,126,160,.28)}
.btn-dark{background:var(--blue);color:#fff;box-shadow:0 10px 22px rgba(48,77,127,.20)}
.btn-light{background:#fff;color:var(--blue)}
.btn-outline{background:#fff;border:1px solid var(--line);color:var(--ink)}
.btn-danger{background:#fff2f3;color:var(--danger);border:1px solid rgba(181,72,85,.15)}
.btn-success{background:#e9f7f0;color:var(--success);border:1px solid rgba(43,122,90,.13)}
.btn[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none}
.section{padding:12px 0 24px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}.section-head h2{margin:0;font-size:20px}.section-head p{margin:5px 0 0;font-size:12px;color:var(--muted)}
.panel{background:rgba(255,255,255,.93);border:1px solid rgba(42,58,91,.09);border-radius:var(--radius-xl);box-shadow:var(--shadow-soft);padding:20px}
.grid-2{display:grid;grid-template-columns:1.05fr .95fr;gap:18px;align-items:start}
.stack{display:grid;gap:12px}
.notice-test{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:16px;background:#fff8de;border:1px solid rgba(170,122,24,.18);color:#725412;font-size:12px;line-height:1.65}
.notice-test strong{display:block;color:#5e4511}
.field{display:grid;gap:7px}.field label{font-size:12px;font-weight:850;color:var(--ink-2)}
.field input,.field textarea,.field select{width:100%;border:1px solid rgba(42,58,91,.14);background:#fff;border-radius:15px;padding:12px 13px;outline:none;color:var(--ink);min-height:46px;transition:border .18s ease,box-shadow .18s ease}
.field textarea{min-height:92px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:rgba(48,77,127,.55);box-shadow:0 0 0 4px rgba(48,77,127,.08)}
.segmented{display:grid;grid-template-columns:1fr 1fr;gap:8px}.segmented input{position:absolute;opacity:0;pointer-events:none}.segmented label{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:#fff;padding:12px;border-radius:15px;font-weight:850;cursor:pointer}.segmented input:checked+label{background:#eef3fb;color:var(--blue);border-color:rgba(48,77,127,.28);box-shadow:inset 0 0 0 1px rgba(48,77,127,.07)}
.cart-list{display:grid;gap:10px}.cart-row{display:grid;grid-template-columns:52px 1fr auto;gap:11px;align-items:center;padding:10px;border-radius:17px;background:#fafbfe;border:1px solid rgba(42,58,91,.08)}
.cart-thumb{width:52px;height:52px;border-radius:14px;object-fit:cover;background:linear-gradient(135deg,#f0f3f8,#fff)}.cart-copy{min-width:0}.cart-copy strong{display:block;font-size:13px}.cart-copy small{display:block;color:var(--muted);font-size:11px;margin-top:4px;line-height:1.45}.cart-price{text-align:left;font-weight:900;font-size:13px;white-space:nowrap}
.summary{display:grid;gap:9px;padding-top:4px}.summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink-2);font-size:13px}.summary-row.total{border-top:1px dashed rgba(42,58,91,.18);padding-top:12px;margin-top:2px;font-size:16px;color:var(--ink);font-weight:900}
.empty-state{text-align:center;padding:34px 20px}.empty-icon{width:64px;height:64px;margin:0 auto 13px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,#edf2fb,#fff1f6);font-size:28px}.empty-state h3{margin:0 0 7px}.empty-state p{color:var(--muted);font-size:13px;line-height:1.7;margin:0 auto 16px;max-width:420px}
.form-status{padding:11px 13px;border-radius:14px;font-size:12px;line-height:1.6}.form-status.error{background:#fff1f2;color:#a83f4e;border:1px solid rgba(168,63,78,.12)}.form-status.success{background:#ecf8f2;color:#286d52;border:1px solid rgba(40,109,82,.12)}.form-status.info{background:#eff4fb;color:#365684;border:1px solid rgba(54,86,132,.12)}
.success-screen{position:fixed;inset:0;z-index:90;background:rgba(24,34,55,.48);backdrop-filter:blur(11px);display:grid;place-items:center;padding:18px}.success-card{width:min(520px,100%);border-radius:30px;background:#fff;padding:28px;text-align:center;box-shadow:0 30px 90px rgba(22,31,49,.30)}.success-check{width:78px;height:78px;margin:0 auto 16px;border-radius:26px;display:grid;place-items:center;background:linear-gradient(135deg,#eaf8f1,#f4fff9);color:var(--success);font-size:38px;font-weight:900}.success-card h2{margin:0 0 7px;font-size:25px}.success-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}.order-number-big{margin:16px auto;border-radius:17px;background:#f5f7fb;padding:13px 18px;font-size:21px;font-weight:950;letter-spacing:.5px;color:var(--blue);width:max-content;max-width:100%}.success-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
.status-pill{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:900;background:#f0f3f7;color:var(--ink-2);white-space:nowrap}.status-pill.pending{background:#fff6da;color:#7f6218}.status-pill.accepted{background:#ebf1fb;color:#355885}.status-pill.preparing{background:#f5effc;color:#74539b}.status-pill.ready{background:#fff0f5;color:#a34a67}.status-pill.delivery{background:#eaf7fb;color:#28728a}.status-pill.completed{background:#eaf7f0;color:#287255}.status-pill.cancelled{background:#fff0f1;color:#a7404d}
.tracking-hero{padding:26px 0 16px}.tracking-card{position:relative;overflow:hidden;background:linear-gradient(145deg,#fff,#f5f8fd);border:1px solid rgba(42,58,91,.08);box-shadow:var(--shadow);border-radius:30px;padding:24px}.tracking-card:after{content:"";position:absolute;width:160px;height:160px;border-radius:50%;background:rgba(239,159,184,.16);left:-50px;bottom:-80px}.tracking-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;position:relative;z-index:1}.tracking-top h1{font-size:24px;margin:8px 0 3px}.tracking-top p{margin:0;color:var(--muted);font-size:12px}.live-indicator{display:inline-flex;align-items:center;gap:7px;color:var(--success);font-size:11px;font-weight:800;margin-top:10px}.live-dot{width:8px;height:8px;border-radius:50%;background:var(--success);box-shadow:0 0 0 5px rgba(43,122,90,.09);animation:pulse 1.8s infinite}@keyframes pulse{50%{box-shadow:0 0 0 9px rgba(43,122,90,0)}}
.progress-wrap{margin-top:24px;position:relative;z-index:1}.progress-line{display:grid;gap:0}.progress-step{display:grid;grid-template-columns:40px 1fr;gap:11px;min-height:66px;position:relative}.progress-step:not(:last-child):before{content:"";position:absolute;right:19px;top:39px;bottom:-2px;width:2px;background:#e5e9f1}.progress-step.done:not(:last-child):before{background:linear-gradient(var(--blue),#9fb0ce)}.progress-step.current:not(:last-child):before{background:linear-gradient(var(--blue),#e5e9f1)}.step-icon{width:40px;height:40px;border-radius:15px;display:grid;place-items:center;background:#eef1f6;color:#99a3b5;font-weight:900;z-index:1}.progress-step.done .step-icon{background:#e9f3ff;color:var(--blue)}.progress-step.current .step-icon{background:linear-gradient(135deg,var(--blue),#5677ad);color:#fff;box-shadow:0 8px 20px rgba(48,77,127,.23)}.step-copy{padding-top:3px}.step-copy strong{display:block;font-size:13px}.step-copy small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.progress-step.future{opacity:.7}.cancel-box{margin-top:20px;border-radius:18px;padding:15px;background:#fff1f2;border:1px solid rgba(181,72,85,.15);color:#973b47}
.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.info-card{padding:13px;border-radius:16px;background:#f8f9fc;border:1px solid rgba(42,58,91,.07)}.info-card small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.info-card strong{font-size:12px;line-height:1.5}
.orders-list{display:grid;gap:11px}.order-card{background:#fff;border:1px solid rgba(42,58,91,.09);border-radius:21px;padding:15px;box-shadow:0 8px 25px rgba(35,47,77,.06);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.order-card:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(35,47,77,.10)}.order-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.order-card-number{font-size:14px;font-weight:950;color:var(--blue)}.order-card-time{font-size:10px;color:var(--muted);margin-top:4px}.order-customer{margin:11px 0 6px;font-size:13px;font-weight:850}.order-meta-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:11px}.order-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:11px;border-top:1px dashed rgba(42,58,91,.12)}.order-total{font-size:15px;font-weight:950}.order-open{font-size:11px;color:var(--blue);font-weight:850}
.admin-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;padding:22px 0 28px}.admin-side{position:sticky;top:90px;align-self:start}.admin-main{min-width:0}.admin-brand-card{padding:18px;border-radius:25px;background:linear-gradient(145deg,#263f6d,#385b93);color:#fff;box-shadow:var(--shadow)}.admin-brand-card .brand img{width:48px;height:48px}.admin-brand-card .brand small{color:rgba(255,255,255,.68)}.admin-brand-card p{font-size:11px;color:rgba(255,255,255,.72);line-height:1.7;margin:14px 0 0}.admin-nav{display:grid;gap:7px;margin-top:12px}.admin-nav button{width:100%;border:1px solid rgba(42,58,91,.08);background:#fff;border-radius:14px;padding:11px 12px;text-align:right;display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:850;color:var(--ink-2);cursor:pointer}.admin-nav button.active{background:#eef3fb;color:var(--blue);border-color:rgba(48,77,127,.18)}.nav-count{min-width:24px;height:24px;border-radius:9px;background:#f0f2f6;display:grid;place-items:center;font-size:10px}.admin-nav button.active .nav-count{background:#fff;color:var(--blue)}
.admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.admin-head h1{margin:0;font-size:25px}.admin-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.admin-head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.stat{background:#fff;border:1px solid rgba(42,58,91,.08);border-radius:19px;padding:14px;box-shadow:0 7px 22px rgba(35,47,77,.05)}.stat small{display:block;color:var(--muted);font-size:10px}.stat strong{display:block;font-size:24px;margin-top:5px}.stat:nth-child(1) strong{color:#a97913}.stat:nth-child(2) strong{color:#6d50a0}.stat:nth-child(3) strong{color:#a34a67}
.mobile-tabs{display:none;overflow:auto;gap:7px;padding:0 0 12px;scrollbar-width:none}.mobile-tabs::-webkit-scrollbar{display:none}.mobile-tabs button{border:1px solid rgba(42,58,91,.10);background:#fff;border-radius:999px;padding:9px 12px;white-space:nowrap;font-size:11px;font-weight:850;color:var(--ink-2)}.mobile-tabs button.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.push-card{margin-bottom:14px;background:linear-gradient(135deg,#fff7fa,#f2f6fd);border:1px solid rgba(97,80,123,.10);border-radius:22px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.push-copy strong{display:block;font-size:13px}.push-copy small{display:block;color:var(--muted);font-size:10px;line-height:1.55;margin-top:3px}.push-status{font-size:10px;font-weight:850;margin-top:5px;color:var(--blue)}
.drawer-backdrop{position:fixed;inset:0;background:rgba(20,29,48,.45);backdrop-filter:blur(7px);z-index:80;display:grid;place-items:end center;padding:18px}.drawer{width:min(680px,100%);max-height:min(86vh,820px);overflow:auto;background:#fff;border-radius:28px 28px 22px 22px;box-shadow:0 35px 100px rgba(15,22,37,.35);padding:20px}.drawer-handle{width:50px;height:5px;border-radius:999px;background:#dde1e9;margin:0 auto 14px}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.drawer-head h2{margin:0;font-size:20px}.close-btn{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:13px;cursor:pointer}.drawer-section{margin-top:16px}.drawer-section h3{font-size:12px;margin:0 0 9px;color:var(--ink-2)}.drawer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:17px}.drawer-actions .btn{width:100%}.timeline-mini{display:grid;gap:8px}.timeline-event{display:grid;grid-template-columns:10px 1fr;gap:9px;align-items:flex-start}.timeline-dot{width:8px;height:8px;border-radius:50%;background:#9aaccc;margin-top:5px}.timeline-event:first-child .timeline-dot{background:var(--blue)}.timeline-event strong{font-size:11px}.timeline-event small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.login-wrap{min-height:calc(100vh - 72px);display:grid;place-items:center;padding:28px 0}.login-card{width:min(460px,100%);padding:24px;border-radius:28px;background:#fff;box-shadow:var(--shadow);border:1px solid rgba(42,58,91,.08)}.login-logo{width:72px;height:72px;border-radius:22px;object-fit:cover;display:block;margin:0 auto 14px}.login-card h1{text-align:center;margin:0;font-size:23px}.login-card>p{text-align:center;color:var(--muted);font-size:12px;line-height:1.7;margin:7px 0 18px}
.floating-active-order{position:fixed;z-index:55;right:14px;left:14px;bottom:14px;border:1px solid rgba(255,255,255,.18);background:rgba(35,54,91,.96);color:#fff;border-radius:18px;padding:11px 13px;box-shadow:0 18px 45px rgba(27,38,62,.28);display:flex;align-items:center;justify-content:space-between;gap:10px;backdrop-filter:blur(12px)}.floating-active-order strong{font-size:12px}.floating-active-order small{display:block;color:rgba(255,255,255,.72);font-size:10px;margin-top:2px}.floating-active-order span:last-child{background:#fff;color:var(--blue);border-radius:12px;padding:8px 10px;font-size:10px;font-weight:900}
.toast{position:fixed;z-index:120;top:84px;left:50%;transform:translate(-50%,-20px);opacity:0;pointer-events:none;background:#263b65;color:#fff;border-radius:14px;padding:10px 14px;box-shadow:0 14px 40px rgba(28,40,66,.25);font-size:11px;font-weight:800;transition:.22s ease;max-width:calc(100% - 28px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
.loading{display:grid;place-items:center;padding:32px;color:var(--muted);font-size:12px}.spinner{width:30px;height:30px;border-radius:50%;border:3px solid #e7eaf0;border-top-color:var(--blue);animation:spin .8s linear infinite;margin-bottom:10px}@keyframes spin{to{transform:rotate(360deg)}}

@media(max-width:900px){
  .grid-2{grid-template-columns:1fr}
  .admin-layout{grid-template-columns:1fr;padding-top:14px}.admin-side{display:none}.mobile-tabs{display:flex}.admin-head{align-items:center}.admin-head h1{font-size:21px}.stats{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:620px){
  .container{width:min(100% - 20px,1120px)}.topbar-inner{height:64px}.brand img{width:40px;height:40px;border-radius:14px}.brand strong{font-size:13px}.brand small{font-size:9px}.icon-link,.ghost-btn{padding:8px 10px;font-size:11px;border-radius:12px}
  .hero{padding:20px 0 14px}.hero-card{padding:22px;border-radius:26px}.hero h1{font-size:28px}.hero p{font-size:12px}.hero-actions .btn{flex:1;min-width:130px}
  .panel{padding:15px;border-radius:22px}.section{padding-bottom:17px}.section-head h2{font-size:17px}
  .success-actions{grid-template-columns:1fr}.info-grid{grid-template-columns:1fr 1fr}.tracking-card{padding:18px;border-radius:24px}.tracking-top{align-items:center}.tracking-top h1{font-size:20px}
  .stats{gap:7px}.stat{padding:11px;border-radius:16px}.stat strong{font-size:19px}.stat small{font-size:9px}.admin-head-actions .btn{padding:9px 11px;min-height:40px;font-size:10px}.push-card{align-items:flex-start;flex-direction:column}.push-card .btn{width:100%}
  .drawer-backdrop{padding:0;align-items:end}.drawer{border-radius:26px 26px 0 0;max-height:91vh;padding-bottom:calc(18px + env(safe-area-inset-bottom))}.drawer-actions{grid-template-columns:1fr}.cart-row{grid-template-columns:46px 1fr auto}.cart-thumb{width:46px;height:46px}
}

/* --- Fast order workflow upgrade --- */
.ready-inline{margin-top:11px;padding:9px 11px;border-radius:14px;background:linear-gradient(135deg,#eef5ff,#f7f9fd);border:1px solid rgba(48,77,127,.10);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--blue)}
.ready-inline strong{font-size:10px;white-space:nowrap}.ready-inline.late{background:#fff2f3;border-color:rgba(181,72,85,.12);color:var(--danger)}
.order-quick-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;margin-top:12px;padding-top:11px;border-top:1px dashed rgba(42,58,91,.12)}
.order-next-btn{min-height:42px;padding:9px 12px;border-radius:13px;font-size:11px}
.quick-tool{min-width:62px;height:42px;border-radius:13px;border:1px solid rgba(42,58,91,.10);background:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:900;cursor:pointer;color:var(--ink-2);padding:0 10px}
.whatsapp-tool{background:#edf9f2;color:#267454;border-color:rgba(38,116,84,.12)}
.more-tool{min-width:42px;padding:0;font-size:15px;letter-spacing:1px}
.ready-info-card{background:linear-gradient(135deg,#eef5ff,#fff)!important;border-color:rgba(48,77,127,.12)!important}.ready-info-card span{display:block;margin-top:4px;color:var(--blue);font-size:10px;font-weight:850}
.drawer-actions{display:block!important}.drawer-primary-action{margin-top:17px}.drawer-main-action{width:100%;min-height:50px;font-size:13px}.drawer-done-note{padding:13px;border-radius:15px;background:#edf8f2;color:var(--success);text-align:center;font-size:11px;font-weight:900}
.utility-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}.utility-btn{border:1px solid rgba(42,58,91,.10);background:#fff;border-radius:13px;min-height:41px;padding:8px 10px;font-size:10px;font-weight:850;color:var(--ink-2);cursor:pointer;display:flex;align-items:center;justify-content:center;text-align:center}.utility-btn.whatsapp-utility{background:#edf9f2;color:#267454;border-color:rgba(38,116,84,.12)}.utility-btn.danger{background:#fff4f5;color:var(--danger);border-color:rgba(181,72,85,.12)}
.ready-sheet-backdrop{z-index:110}.ready-sheet{width:min(560px,100%);background:#fff;border-radius:28px 28px 22px 22px;padding:20px;box-shadow:0 35px 100px rgba(15,22,37,.35)}.ready-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ready-sheet-head h2{margin:10px 0 4px;font-size:21px}.ready-sheet-head p{margin:0;color:var(--muted);font-size:11px}.ready-eyebrow{background:#eef3fb;color:var(--blue);border-color:rgba(48,77,127,.10)}
.ready-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:18px}.ready-preset-grid button{border:1px solid rgba(42,58,91,.10);background:linear-gradient(145deg,#fff,#f8faff);border-radius:17px;padding:13px 12px;cursor:pointer;text-align:right;min-height:66px}.ready-preset-grid button:active{transform:scale(.985)}.ready-preset-grid strong{display:block;color:var(--ink);font-size:12px}.ready-preset-grid small{display:block;color:var(--muted);font-size:10px;margin-top:5px;direction:ltr;text-align:right}.ready-custom-toggle{width:100%;margin-top:10px}.custom-ready-wrap{margin-top:10px;padding:12px;border-radius:17px;background:#f8f9fc;border:1px solid rgba(42,58,91,.08);display:grid;gap:10px}.custom-ready-wrap .btn{width:100%}
.ready-estimate-card{position:relative;z-index:1;margin-top:18px;padding:14px;border-radius:19px;background:linear-gradient(135deg,#edf5ff,#fff7fb);border:1px solid rgba(48,77,127,.10);display:grid;grid-template-columns:45px 1fr;gap:11px;align-items:center}.ready-estimate-card.late{background:#fff3f4;border-color:rgba(181,72,85,.14)}.ready-estimate-icon{width:45px;height:45px;border-radius:15px;background:#fff;display:grid;place-items:center;font-size:20px;box-shadow:0 7px 18px rgba(35,47,77,.07)}.ready-estimate-card small{display:block;color:var(--muted);font-size:10px}.ready-estimate-card strong{display:block;margin-top:3px;font-size:14px;color:var(--blue)}.ready-estimate-card span{display:block;margin-top:3px;font-size:10px;font-weight:850;color:var(--ink-2)}.ready-estimate-card.late strong,.ready-estimate-card.late span{color:var(--danger)}

@media(max-width:620px){
  .order-card{padding:13px;border-radius:19px}.order-quick-actions{grid-template-columns:minmax(0,1fr) 56px 42px}.quick-tool{min-width:0;padding:0 6px}.ready-inline{align-items:flex-start;flex-direction:column;gap:4px}.ready-inline strong{white-space:normal}.utility-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.ready-sheet-backdrop{padding:0;align-items:end}.ready-sheet{border-radius:26px 26px 0 0;padding-bottom:calc(18px + env(safe-area-inset-bottom))}.ready-preset-grid{gap:7px}.ready-preset-grid button{min-height:62px;padding:11px}.tracking-top{align-items:flex-start}.tracking-top .ghost-btn{white-space:nowrap}
}

/* --- Customer delivery confirmation --- */
.customer-delivery-confirm{position:relative;z-index:1;margin-top:18px;border-radius:20px;padding:14px;background:linear-gradient(135deg,#eef9f3,#f8fffb);border:1px solid rgba(43,122,90,.13);display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center}.customer-delivery-icon{width:46px;height:46px;border-radius:15px;background:#fff;display:grid;place-items:center;font-size:21px;box-shadow:0 7px 18px rgba(35,47,77,.07)}.customer-delivery-copy small{display:block;color:var(--success);font-size:10px;font-weight:900}.customer-delivery-copy strong{display:block;font-size:14px;margin-top:2px}.customer-delivery-copy span{display:block;color:var(--muted);font-size:10px;line-height:1.55;margin-top:3px}.customer-delivery-btn{min-height:42px;padding:9px 13px;white-space:nowrap}.customer-delivered-thanks{position:relative;z-index:1;margin-top:18px;border-radius:19px;padding:13px 14px;background:linear-gradient(135deg,#eaf8f1,#f9fffc);border:1px solid rgba(43,122,90,.14);display:flex;align-items:center;gap:11px;color:var(--success)}.customer-delivered-thanks>span{width:38px;height:38px;border-radius:13px;background:#fff;display:grid;place-items:center;font-weight:950;box-shadow:0 6px 16px rgba(35,47,77,.06)}.customer-delivered-thanks strong{display:block;font-size:12px}.customer-delivered-thanks small{display:block;color:#5d7c6d;font-size:10px;margin-top:3px}.delivery-confirm-backdrop{z-index:130}.delivery-confirm-sheet{width:min(430px,100%);background:#fff;border-radius:28px;padding:24px;text-align:center;box-shadow:0 35px 100px rgba(15,22,37,.35)}.delivery-confirm-mark{width:72px;height:72px;border-radius:23px;margin:0 auto 14px;display:grid;place-items:center;font-size:31px;background:linear-gradient(135deg,#edf8f2,#fff7fb)}.delivery-confirm-sheet h2{margin:0;font-size:22px}.delivery-confirm-sheet p{margin:8px auto 18px;max-width:330px;color:var(--muted);font-size:11px;line-height:1.75}.delivery-confirm-sheet .btn{width:100%;margin-top:8px}.delivery-confirm-sheet .btn-success{background:linear-gradient(135deg,#dff5e9,#edf9f3);color:var(--success);border:1px solid rgba(43,122,90,.14)}
@media(max-width:620px){.customer-delivery-confirm{grid-template-columns:42px 1fr}.customer-delivery-icon{width:42px;height:42px}.customer-delivery-btn{grid-column:1/-1;width:100%}.delivery-confirm-backdrop{padding:0;align-items:end}.delivery-confirm-sheet{border-radius:26px 26px 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom))}}


/* ===== 2026-10-11 simplified customer navigation ===== */
.simple-back-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.94);color:var(--ink);font-size:12px;font-weight:900;box-shadow:0 5px 15px rgba(35,47,77,.04)}
.simple-back-btn span[aria-hidden="true"]{font-size:19px;line-height:1;direction:ltr}
@media(max-width:620px){.topbar-inner{height:66px}.brand img{width:42px;height:42px;border-radius:14px}.brand strong{font-size:14px}.brand small{font-size:10px}.simple-back-btn{width:42px;height:42px;min-height:42px;padding:0;border-radius:13px}.simple-back-btn span:not([aria-hidden="true"]){display:none}}


/* صور المنتجات عند عرض تفاصيل الطلب للإدارة */
.order-product-row{grid-template-columns:64px minmax(0,1fr) auto!important;gap:11px;align-items:center}
.order-product-image-link{display:block;width:64px;height:64px;border-radius:14px;overflow:hidden;flex-shrink:0}
.order-product-thumb{display:block;width:64px;height:64px;border-radius:14px;object-fit:cover;background:#f0f3f8}
.order-product-thumb-empty{display:grid;place-items:center;font-size:24px;color:#8794ad;background:#f1f3f9}
.order-product-row .cart-copy strong{overflow-wrap:anywhere}
@media(max-width:620px){
  .order-product-row{grid-template-columns:60px minmax(0,1fr) auto!important;gap:9px}
  .order-product-image-link,.order-product-thumb{width:60px;height:60px;border-radius:13px}
}

/* تعديل منتجات الطلب من لوحة الإدارة */
.edit-order-backdrop{z-index:125;align-items:center;justify-content:center;padding:15px}
.edit-order-sheet{width:min(590px,100%);max-height:min(92dvh,850px);overflow-y:auto;overscroll-behavior:contain;border-radius:27px;padding:20px;background:white;box-shadow:0 30px 90px rgba(18,30,55,.28)}
.edit-order-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.edit-order-head h2{margin:4px 0;font-size:19px}.edit-order-head small{color:var(--muted);font-weight:850}
.edit-order-hint{font-size:11px;line-height:1.85;color:var(--muted);margin:10px 0 17px}
.edit-order-items{display:grid;gap:9px}.edit-order-item{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:10px;align-items:start;background:#f9faff;border:1px solid var(--line);border-radius:16px;padding:10px}.edit-order-item .order-product-image-link,.edit-order-item .order-product-thumb{width:58px;height:58px}
.edit-order-item-content{min-width:0}.edit-order-item-content strong{font-size:12px;display:block;overflow-wrap:anywhere}.edit-order-item-content small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.edit-order-item-content .edit-order-warning{color:var(--warning)}
.edit-order-quantity{display:flex;align-items:center;width:max-content;max-width:100%;gap:4px;margin-top:9px}.edit-order-quantity button{width:30px;height:30px;border:1px solid var(--line);border-radius:9px;background:white;cursor:pointer}.edit-order-quantity button:disabled{opacity:.35;cursor:default}.edit-order-quantity input{width:56px;min-height:30px;text-align:center;border:1px solid var(--line);border-radius:8px;padding:2px;font-size:13px}.edit-order-item-tail{text-align:left;display:flex;align-items:flex-end;flex-direction:column;gap:12px}.edit-order-item-tail strong{font-size:12px;white-space:nowrap}.edit-order-remove{background:#fff1f2;color:var(--danger);border:1px solid #f6dce0;border-radius:10px;padding:6px 10px;font-size:10px;cursor:pointer}.edit-order-remove:disabled{opacity:.4;cursor:default}
.edit-order-add-panel{display:grid;gap:7px;margin-top:14px;background:#f5f8ff;border:1px solid var(--line);padding:13px;border-radius:17px}.edit-order-add-panel strong{font-size:13px}.edit-order-add-panel label{font-size:10px;font-weight:800;color:var(--ink-2)}.edit-order-add-panel input,.edit-order-add-panel select{width:100%;min-width:0;min-height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:7px 10px;color:var(--ink);font-size:12px}.edit-order-add-panel button{justify-self:start;min-height:39px;font-size:11px}
.edit-order-summary{display:grid;gap:8px;margin-top:14px;padding:12px 0;border-bottom:1px solid var(--line)}.edit-order-summary div{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.edit-order-summary strong{color:var(--ink)}.edit-order-summary .edit-order-total{padding-top:8px;border-top:1px dashed var(--line);font-size:14px;font-weight:900;color:var(--ink)}
.edit-order-message{border-radius:12px;margin-top:9px;padding:10px;font-size:12px;line-height:1.6}.edit-order-message.error{color:#a43b4b;background:#fff1f2}.edit-order-message.success{color:var(--success);background:#eaf8f1}
.edit-order-footer{position:sticky;bottom:-20px;background:white;padding:11px 0 5px;display:grid;grid-template-columns:1fr 2fr;gap:8px;margin-top:8px}.edit-order-footer .btn{font-size:12px}.utility-btn.edit-order-open{background:#edf3ff;color:var(--blue);border-color:#cbdaf3}
@media(max-width:620px){.edit-order-backdrop{padding:0;align-items:end}.edit-order-sheet{max-height:93dvh;border-radius:26px 26px 0 0;padding:17px 15px calc(15px + env(safe-area-inset-bottom))}.edit-order-footer{bottom:calc(-15px - env(safe-area-inset-bottom))}}
