/* Layout: sticky topbar; side rail (>=900px) or bottom tabs (mobile); content column 760px, admin 1100px. */
/* ===== الثيمات: كل ثيم يغيّر المتغيرات فقط ===== */
:root{
  --font-display:"Cairo","IBM Plex Sans Arabic",system-ui,sans-serif;
  --font-body:"IBM Plex Sans Arabic","Cairo",system-ui,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,"SFMono-Regular",monospace;
  --bg-grad:none; --accent-bg:var(--accent); --bar:var(--bg);
}
/* أسود (الافتراضي في الوضع الداكن) */
:root,:root[data-theme="black"]{
  --bg:#050607; --surface:#111317; --surface-2:#1a1d23; --input:#0b0c0f; --line:#262a31;
  --fg:#f2f4f7; --muted:#9aa3ae; --accent:#ffd21f; --accent-ink:#171200; --accent-text:#ffd21f; --accent-soft:rgba(255,210,31,.14);
  --amber:#f0a93c; --green:#4cc884; --red:#f2766d; --blue:#7499f2;
  --amber-soft:rgba(240,169,60,.14); --green-soft:rgba(76,200,132,.14); --red-soft:rgba(242,118,109,.14); --blue-soft:rgba(116,153,242,.14);
  --shadow:0 10px 30px rgba(0,0,0,.5); color-scheme:dark;
}
/* أبيض */
:root[data-theme="white"]{
  --bg:#f2f5f8; --surface:#ffffff; --surface-2:#f6f8fb; --input:#f2f5f8; --line:#dbe3ea;
  --fg:#111a24; --muted:#5b6c7e; --accent:#ffd21f; --accent-ink:#171200; --accent-text:#7d5f00; --accent-soft:rgba(255,210,31,.3);
  --amber:#a4660a; --green:#1d7f4a; --red:#c4372e; --blue:#2f55c4;
  --amber-soft:rgba(240,169,60,.2); --green-soft:rgba(76,200,132,.2); --red-soft:rgba(242,118,109,.2); --blue-soft:rgba(116,153,242,.2);
  --shadow:0 10px 30px rgba(17,26,36,.12); color-scheme:light;
}
/* أزرق متدرج */
:root[data-theme="ocean"]{
  --bg:#0a2a5e; --bg-grad:linear-gradient(165deg,#0a2a5e 0%,#0b4a8f 52%,#0f8fc4 100%); --bar:#0a2a5e;
  --surface:#0b2f5e; --surface-2:#12407a; --input:#082449; --line:#21568f;
  --fg:#f0f7ff; --muted:#a9c5e8; --accent:#5cc8ff; --accent-ink:#031a33; --accent-text:#9adcff; --accent-soft:rgba(92,200,255,.18);
  --accent-bg:linear-gradient(135deg,#9be4ff,#38b6ff);
  --amber:#ffc266; --green:#5fe0a0; --red:#ff8a80; --blue:#9bb8ff;
  --amber-soft:rgba(255,194,102,.16); --green-soft:rgba(95,224,160,.16); --red-soft:rgba(255,138,128,.16); --blue-soft:rgba(155,184,255,.16);
  --shadow:0 10px 30px rgba(0,10,40,.45); color-scheme:dark;
}
/* غروب متدرج */
:root[data-theme="sunset"]{
  --bg:#3a0f4d; --bg-grad:linear-gradient(165deg,#3a0f4d 0%,#8a1f5c 52%,#e8604c 100%); --bar:#3a0f4d;
  --surface:#4a1648; --surface-2:#5e1d56; --input:#34103d; --line:#823063;
  --fg:#fff4f0; --muted:#e8bccb; --accent:#ffb454; --accent-ink:#2b0a14; --accent-text:#ffcd8a; --accent-soft:rgba(255,180,84,.18);
  --accent-bg:linear-gradient(135deg,#ffd68a,#ff8a5c);
  --amber:#ffc266; --green:#6ee7a8; --red:#ff9a90; --blue:#b3c4ff;
  --amber-soft:rgba(255,194,102,.16); --green-soft:rgba(110,231,168,.16); --red-soft:rgba(255,154,144,.16); --blue-soft:rgba(179,196,255,.16);
  --shadow:0 10px 30px rgba(30,0,30,.45); color-scheme:dark;
}
/* أخضر متدرج */
:root[data-theme="forest"]{
  --bg:#052e1f; --bg-grad:linear-gradient(165deg,#052e1f 0%,#0a5c3d 52%,#1f9d6a 100%); --bar:#052e1f;
  --surface:#0a3a2a; --surface-2:#0f4a36; --input:#06281c; --line:#1e6c4d;
  --fg:#effff7; --muted:#a9d8c2; --accent:#b7f05a; --accent-ink:#0a2410; --accent-text:#cdf785; --accent-soft:rgba(183,240,90,.16);
  --accent-bg:linear-gradient(135deg,#d9f98a,#5be08a);
  --amber:#ffd36b; --green:#7df0b0; --red:#ff9a90; --blue:#a8c4ff;
  --amber-soft:rgba(255,211,107,.16); --green-soft:rgba(125,240,176,.16); --red-soft:rgba(255,154,144,.16); --blue-soft:rgba(168,196,255,.16);
  --shadow:0 10px 30px rgba(0,20,10,.45); color-scheme:dark;
}
html{background-color:var(--bg);background-image:var(--bg-grad);background-attachment:fixed;background-repeat:no-repeat;min-height:100%}

*{box-sizing:border-box}
body{background:transparent;min-height:100vh;color:var(--fg);font:400 15px/1.65 var(--font-body);
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:0}
body.lock{overflow:hidden}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);background:var(--bar);z-index:60}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3{font-family:var(--font-display);margin:0;text-wrap:balance;line-height:1.3}
p{margin:0}
.num{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate;display:inline-block}
.mono{font-family:var(--font-mono);direction:ltr;unicode-bidi:isolate;display:inline-block;letter-spacing:.04em}
.muted{color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
svg.ic{width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* logo */
.logo{display:inline-flex;align-items:center;gap:8px;direction:rtl;line-height:1}
.logo-lines{width:26px;height:20px;flex:none}
.logo-lines i{display:block;height:3.5px;border-radius:2px;background:var(--accent);margin-block:3px 0}
.logo-lines i:nth-child(1){width:26px}.logo-lines i:nth-child(2){width:19px}.logo-lines i:nth-child(3){width:23px}
.logo-word{font-family:var(--font-display);font-weight:900;font-size:30px;font-style:italic;display:block}
.logo-sub{font-size:9.5px;font-weight:600;letter-spacing:.02em;display:block;opacity:.75;margin-top:2px;text-align:center}
.logo-col{display:flex;flex-direction:column;transform:skewX(-6deg)}
.logo.big .logo-word{font-size:76px}.logo.big .logo-sub{font-size:19px}.logo.big .logo-lines{width:80px;height:62px}
.logo.big .logo-lines i{height:9px;margin-block:8px 0}
.logo.big .logo-lines i:nth-child(1){width:80px}.logo.big .logo-lines i:nth-child(2){width:58px}.logo.big .logo-lines i:nth-child(3){width:70px}
.logo.dark .logo-lines i{background:var(--accent-ink)}

/* shell */
.topbar{position:sticky;top:env(safe-area-inset-top,0px);z-index:40;background:var(--bar);display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding-block:12px;border-bottom:1px solid transparent;max-width:1180px;margin:0 auto}
.topbar{box-shadow:0 0 0 100vmax var(--bar);clip-path:inset(0 -100vmax)}
.topbar .grp{display:flex;align-items:center;gap:14px;min-width:0}
.rolechip{display:inline-flex;align-items:center;gap:10px;background:var(--accent-soft);color:var(--accent-text);border-radius:14px;padding:9px 14px;font-weight:600}
.link{background:none;border:0;color:var(--accent-text);font-weight:600;padding:6px 2px}
.modepill{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:99px;padding:3px 10px}
.modepill i{width:7px;height:7px;border-radius:50%;background:var(--amber)}
.modepill.live i{background:var(--green)}
.shell{max-width:1180px;margin:0 auto;display:block}
.shell.wide{max-width:1180px}
.main{min-width:0;padding-block:8px 120px}
.col{max-width:760px;margin:0 auto}
.col.wide{max-width:1100px}
.nav{position:fixed;inset:auto 0 0 0;z-index:45;background:var(--surface);border-top:1px solid var(--line);display:flex;justify-content:space-around;gap:4px;
  padding:8px max(10px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px))}
.nav button{flex:1;min-width:0;background:none;border:0;border-radius:14px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12.5px;font-weight:500;color:var(--muted);position:relative}
.nav button[aria-current="page"]{background:var(--accent-soft);color:var(--accent-text);font-weight:600}
.badge{position:absolute;top:2px;inset-inline-start:calc(50% + 6px);min-width:19px;height:19px;border-radius:99px;background:var(--red);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 5px}
@media (min-width:900px){
  .shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;align-items:start}
  .nav{position:sticky;top:calc(76px + env(safe-area-inset-top,0px));inset:auto;flex-direction:column;justify-content:flex-start;background:transparent;border:0;padding:8px 0}
  .nav button{flex:none;flex-direction:row;gap:12px;padding:12px 14px;font-size:15px;justify-content:flex-start}
  .badge{position:static;margin-inline-start:auto}
  .main{padding-block:8px 60px}
}
.ph{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-block:10px 16px;flex-wrap:wrap}
.ph h1{font-size:26px;font-weight:800}
.ph .sub{color:var(--muted);font-size:14px;margin-top:2px}

/* surfaces */
.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px}
.stack{display:flex;flex-direction:column;gap:14px}
.row{display:flex;align-items:center;gap:12px}
.between{justify-content:space-between}
.wrapx{flex-wrap:wrap}
.grow{flex:1;min-width:0}
.sec{font-size:13px;color:var(--muted);font-weight:600;margin:20px 4px 8px}
.rule{height:1px;background:var(--line);border:0;margin:12px 0}

/* buttons / fields */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent-bg);color:var(--accent-ink);border:0;border-radius:14px;padding:11px 18px;font-weight:700;min-height:44px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.block{width:100%}
.btn.ghost{background:transparent;color:var(--fg);border:1px solid var(--line);font-weight:600}
.btn.soft{background:var(--accent-soft);color:var(--accent-text)}
.btn.sm{min-height:36px;padding:6px 12px;font-size:14px;border-radius:12px}
.btn.danger{background:transparent;color:var(--red);border:1px solid var(--line)}
.btn.danger.arm{background:var(--red);color:#fff;border-color:var(--red)}
.fab{position:fixed;left:max(16px,env(safe-area-inset-left,0px));bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:44;box-shadow:var(--shadow);border-radius:99px;padding:14px 22px}
@media (min-width:900px){.fab{bottom:28px}}
.field{display:flex;flex-direction:column;gap:6px}
.field>label,.lbl{font-size:14px;font-weight:600}
.in{width:100%;background:var(--input);border:1px solid var(--line);border-radius:14px;padding:12px 14px;min-height:46px}
.in:focus{outline:2px solid var(--accent);outline-offset:0;border-color:transparent}
textarea.in{min-height:78px;resize:vertical}
select.in{appearance:none;background-image:none;padding-inline-end:12px}
.hint{font-size:13px;color:var(--muted)}
.seg{display:flex;gap:4px;background:var(--input);border:1px solid var(--line);border-radius:16px;padding:4px}
.seg button{flex:1;background:none;border:0;border-radius:12px;padding:10px 8px;font-weight:600;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:8px;flex-direction:column;line-height:1.3}
.seg button small{font-weight:500;font-size:12.5px}
.seg button[aria-pressed="true"]{background:var(--accent-bg);color:var(--accent-ink)}
.seg.row-seg button{flex-direction:row}
.stepper{display:inline-flex;align-items:center;gap:10px}
.stepper button{width:44px;height:44px;border-radius:12px;background:var(--input);border:1px solid var(--line);font-size:20px;font-weight:700}
.stepper b{min-width:30px;text-align:center;font-size:18px}
.toggle{width:56px;height:32px;border-radius:99px;border:2px solid var(--line);background:var(--input);position:relative;padding:0;flex:none}
.toggle::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:22px;height:22px;border-radius:50%;background:var(--muted);transition:transform .18s}
.toggle[aria-checked="true"]{background:var(--accent-bg);border-color:var(--accent)}
.toggle[aria-checked="true"]::after{background:var(--accent-ink);transform:translateX(-24px)}

/* status pills */
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:12px;padding:5px 12px;font-size:13.5px;font-weight:600;background:var(--surface-2);color:var(--muted);border:1px solid transparent;white-space:nowrap}
.pill.amber{background:var(--amber-soft);color:var(--amber)}
.pill.accent{background:var(--accent-soft);color:var(--accent-text)}
.pill.green{background:var(--green-soft);color:var(--green)}
.pill.red{background:var(--red-soft);color:var(--red)}
.pill.blue{background:var(--blue-soft);color:var(--blue)}
button.pill{cursor:pointer;min-height:36px}
.menuwrap{position:relative}
.menu{position:absolute;top:calc(100% + 6px);inset-inline-start:0;z-index:30;min-width:230px;background:var(--surface-2);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:6px}
.menu button{display:flex;width:100%;align-items:center;gap:10px;background:none;border:0;text-align:start;padding:11px 12px;border-radius:12px;font-size:15px}
.menu button:hover{background:var(--accent-soft)}
.menu .ck{width:18px;display:inline-grid;place-items:center;color:var(--accent-text)}

/* stat tiles */
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px 8px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;min-height:132px;color:inherit}
.tile .ring{width:62px;height:62px;border-radius:50%;border:4px solid var(--c,var(--accent));display:grid;place-items:center;font-size:20px;font-weight:700}
.tile small{display:block;color:var(--muted);font-size:12.5px;line-height:1.35}
.tile b{font-weight:600;font-size:14.5px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px 16px}
.kpi small{color:var(--muted);font-size:13px}
.kpi strong{display:block;font-family:var(--font-display);font-size:26px;font-weight:800;margin-top:2px}

/* order cards */
.ord{display:flex;flex-direction:column;gap:12px}
.ord-h{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.ord-no{font-weight:700;font-size:16px}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;font-size:14px}
.kv dt{color:var(--muted);font-size:13px}
.kv dd{margin:0;font-weight:600;min-width:0;overflow-wrap:anywhere}
.kv .full{grid-column:1/-1}
.notice{background:var(--accent-soft);color:var(--accent-text);border-radius:14px;padding:12px 14px;font-size:14.5px;font-weight:500}
.notice.red{background:var(--red-soft);color:var(--red)}
.phone{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;color:var(--accent-text);font-weight:600;text-decoration:underline;text-underline-offset:3px;font-family:var(--font-mono)}
.avail{display:flex;gap:14px;align-items:stretch}
.avail .info{flex:1;min-width:0}
.avail .act{display:flex;flex-direction:column;gap:8px;width:128px;flex:none}
.avail h3{font-size:19px}
.price-line{font-weight:700;font-size:16px;margin-top:6px}
.empty{text-align:center;color:var(--muted);padding:36px 12px;border:1px dashed var(--line);border-radius:20px}
.empty b{display:block;color:var(--fg);font-size:16px;margin-bottom:4px}
.steps{display:flex;gap:4px;margin-top:2px}
.steps i{flex:1;height:4px;border-radius:3px;background:var(--line)}
.steps i.on{background:var(--accent-bg)}

/* wallet */
.balance{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:20px}
.balance strong{font-family:var(--font-display);font-size:38px;font-weight:800;line-height:1.1;display:block}
.balance .ico{width:48px;height:48px;border-radius:16px;background:var(--accent-soft);color:var(--accent-text);display:grid;place-items:center}
.period{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.period>div{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px 8px;text-align:center}
.period small{color:var(--muted);font-size:13px;display:block}
.period b{font-family:var(--font-display);font-size:28px;display:block;line-height:1.2;margin-top:2px}
.period hr{border:0;height:1px;background:var(--line);margin:8px 0}
.tabs{display:flex;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:5px;gap:4px}
.tabs button{flex:1;border:0;background:none;border-radius:14px;padding:10px;font-weight:600;color:var(--muted)}
.tabs button[aria-pressed="true"]{background:var(--accent-bg);color:var(--accent-ink)}
.tx{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.tx:last-child{border-bottom:0}
.neg{color:var(--red);font-weight:700}.pos{color:var(--green);font-weight:700}
.bars{display:flex;align-items:flex-end;gap:8px;height:170px;padding-top:22px}
.bars>div{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px}
.bars .b{width:100%;max-width:44px;background:var(--accent-bg);border-radius:8px 8px 3px 3px;min-height:3px}
.bars span{font-size:11.5px;color:var(--muted);white-space:nowrap}
.bars em{font-style:normal;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}

/* profile */
.avatar{width:104px;height:104px;border-radius:50%;background:var(--accent-bg);color:var(--accent-ink);display:grid;place-items:center;font-family:var(--font-display);font-size:48px;font-weight:800;margin:6px auto 10px}
.list-item{display:flex;align-items:center;gap:12px;width:100%;text-align:start;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:10px}
.list-item .grow b{display:block;font-size:16px}
.list-item .grow small{color:var(--muted);font-size:13.5px}
.list-item .chev{color:var(--muted)}

/* tables */
.tblwrap{overflow-x:auto;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
table{border-collapse:collapse;width:100%;min-width:640px;font-size:14px}
th{font-size:12.5px;color:var(--muted);font-weight:600;text-align:start;padding:10px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
tr:last-child td{border-bottom:0}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.chip{border:1px solid var(--line);background:var(--surface);border-radius:99px;padding:6px 14px;font-size:14px;font-weight:500;color:var(--muted)}
.chip[aria-pressed="true"]{background:var(--accent-bg);color:var(--accent-ink);border-color:var(--accent);font-weight:700}

/* landing */
.land{max-width:1040px;margin:0 auto;padding-block:max(18px,env(safe-area-inset-top,0px)) 40px;display:grid;gap:22px;position:relative;z-index:1}
.hero{background:var(--accent-bg);color:var(--accent-ink);border-radius:28px;padding:44px 20px;display:grid;place-items:center;overflow:hidden}
.hero .logo{transform:none}
.land h1{font-size:clamp(30px,5vw,44px);font-weight:900}
.land .lead{color:var(--muted);font-size:17px;margin-top:10px;max-width:46ch}
.roles{display:grid;gap:12px}
.role{display:flex;align-items:center;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:18px;text-align:start;width:100%;transition:border-color .15s,transform .15s}
.role:hover{border-color:var(--accent)}
.role:disabled{opacity:.5;cursor:wait}
.role .ico{width:56px;height:56px;border-radius:18px;background:var(--accent-soft);color:var(--accent-text);display:grid;place-items:center;flex:none}
.role .ico svg{width:28px;height:28px}
.role b{display:block;font-family:var(--font-display);font-size:21px}
.role small{color:var(--muted);font-size:14.5px}
@media (min-width:860px){.land{grid-template-columns:1.05fr 1fr;align-items:center;gap:36px;padding-block:48px}.hero{padding:70px 24px}.land .intro{grid-column:1/-1;text-align:center}.land .lead{margin-inline:auto}}
.land .fine{font-size:13px;color:var(--muted);text-align:center}

/* sheet / toast */
#sheet-root[hidden]{display:none}
.scrim{position:fixed;inset:0;background:rgba(3,8,14,.62);z-index:70}
.sheet{position:fixed;z-index:71;inset:auto 0 0 0;max-height:92dvh;overflow:auto;background:var(--surface);border-radius:26px 26px 0 0;border:1px solid var(--line);
  padding:20px max(18px,env(safe-area-inset-left,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-right,0px));animation:up .22s ease-out}
@keyframes up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@media (min-width:700px){.sheet{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(560px,94vw);border-radius:26px;animation:none}}
.sheet-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.sheet-h h2{font-size:21px;font-weight:800}
.x{width:40px;height:40px;border-radius:50%;background:var(--input);border:1px solid var(--line);display:grid;place-items:center}
.card-viz{background:var(--accent-bg);color:var(--accent-ink);border-radius:22px;padding:20px;min-height:170px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}
.card-viz::before{content:"";position:absolute;inset:-30% auto -30% 8%;width:46px;background:rgba(23,18,0,.55);transform:rotate(22deg)}
.card-viz .no{font-family:var(--font-mono);font-weight:500;font-size:clamp(20px,6vw,28px);letter-spacing:.08em;direction:ltr;text-align:center;position:relative}
.card-viz .logo{position:relative}
.chat{display:flex;flex-direction:column;gap:8px;height:min(46dvh,380px);overflow:auto;padding:4px;margin-bottom:12px}
.msg{max-width:82%;padding:9px 13px;border-radius:16px;background:var(--surface-2);align-self:flex-start;font-size:14.5px;overflow-wrap:anywhere}
.msg.me{background:var(--accent-bg);color:var(--accent-ink);align-self:flex-end}
.msg small{display:block;opacity:.7;font-size:11.5px;margin-bottom:1px}
#toast-root{position:fixed;z-index:90;inset:auto 0 calc(92px + env(safe-area-inset-bottom,0px)) 0;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;padding-inline:16px}
.toast{background:var(--fg);color:var(--bg);border-radius:14px;padding:11px 18px;font-weight:600;box-shadow:var(--shadow);max-width:92vw;animation:up .2s ease-out}
.toast.err{background:var(--red);color:#fff}
@media (min-width:900px){#toast-root{bottom:28px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* تحسينات */
.phone{white-space:nowrap}
td{min-width:0}
.logo.big .logo-sub{margin-top:10px}
.logo-sub{margin-top:3px}

/* ===== وصل الطلب ===== */
a.btn{text-decoration:none}
.btn.wa{background:#25d366;color:#fff}
.rcpt-wrap{background:#eef1f5;border-radius:16px;padding:12px;max-height:60vh;overflow:auto}
.rcpt{background:#fff;color:#111;max-width:340px;margin:0 auto;padding:16px;text-align:right;border-radius:10px}
.rcpt .rl{display:block;width:170px;height:108px;max-width:100%;margin:0 auto 8px;flex:none}
.rcpt.sz58{max-width:210px;padding:10px;font-size:11px}.rcpt.sz58 .rl{width:110px;height:70px}.rcpt.sz58 h3{font-size:14px;margin-bottom:6px}.rcpt.sz58 .ttl{font-size:13px;padding:5px}.rcpt.sz58 .no{font-size:16px}.rcpt.sz58 .r{gap:6px;padding:4px 0}
.rcpt.sz58 .box{font-size:12px;padding:6px 8px}.rcpt.sz58 .box span{white-space:nowrap}
.rcpt.sz80{max-width:300px}
.rcpt.sza5{max-width:520px;font-size:15px}.rcpt.sza4{max-width:720px;font-size:17px;padding:24px}.rcpt.sza4 .rl{width:220px;height:140px}
.rcpt{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.rcpt h3{text-align:center;font-size:18px;margin:0 0 10px;font-weight:800}
.rcpt .ttl{border:2px solid #111;border-radius:12px;text-align:center;padding:8px;font-weight:800}
.rcpt .no{text-align:center;font-weight:800;font-size:20px;margin:8px 0 10px}
.rcpt .r{display:flex;justify-content:space-between;gap:12px;padding:6px 0}
.rcpt .r span{text-align:left}
.rcpt hr{border:0;border-top:1.5px dashed #999;margin:8px 0}
.rcpt .box{border:2px solid #111;border-radius:12px;padding:10px 12px;display:flex;justify-content:space-between;font-weight:800;font-size:18px;margin:8px 0}
#print-root{display:none}
@media print{
  body.printing > *:not(#print-root){display:none!important}
  body.printing #print-root{display:block}
  body.printing .rcpt{padding:0}
  body.printing .rcpt.sz58{max-width:54mm}body.printing .rcpt.sz80{max-width:76mm}body.printing .rcpt.sza5,body.printing .rcpt.sza4{max-width:100%}
  @page{margin:6mm}
}

/* ===== جرس الإشعارات + عنوان الوصل المختصر ===== */
.bell{position:relative;display:inline-grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--accent-soft);color:var(--accent-text);border:0}
.bell .ic{width:22px;height:22px}
.bell .badge{position:absolute;top:-4px;inset-inline-start:auto;inset-inline-end:-4px;margin:0}
.bell .badge[hidden]{display:none}
.dot{display:inline-block;width:9px;height:9px;border-radius:99px;background:var(--red);vertical-align:middle;margin-inline-start:6px}
.rcpt h3.rh{font-size:20px;margin:0 0 10px;color:#111}
@media (max-width:480px){
  .topbar{gap:6px}
  .topbar .grp{gap:6px}
  .topbar .link{white-space:nowrap;font-size:14px;padding:6px 0}
  .topbar .rolechip{padding:8px 10px;gap:6px;font-size:14px}
  .bell{width:38px;height:38px}
}

/* ===== شاشة الدخول الجديدة ===== */
.lg{width:100vw;margin-inline:calc(50% - 50vw);display:flex;flex-direction:column;min-height:100vh;background:#fff;color:#111}
.lg-hero img{display:block;width:100%;height:auto;max-height:46vh;object-fit:cover;object-position:top}
.lg-card{width:100%;max-width:520px;margin-inline:auto;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;padding:8px 22px 36px;text-align:center}
.lg-card h1{font-size:26px;font-weight:900;margin:0}
.lg-sub{margin:-6px 0 6px;font-size:14px;color:#333}
.lg-in{display:flex;align-items:center;gap:10px;background:#f3f4f6;border:1px solid #e1e4e8;border-radius:16px;padding:0 14px;min-height:52px}
.lg-in input{flex:1;background:none;border:0;outline:0;font:inherit;font-size:16px;color:#111;min-width:0;text-align:right}
.lg-in .ic{width:22px;height:22px;flex:none;color:#111}
.lg-in .eye{background:none;border:0;padding:0;order:3;color:#555;cursor:pointer}
.lg-rem{display:flex;align-items:center;gap:8px;font-size:15px;color:#111;justify-self:start;cursor:pointer}
.lg-rem input{width:20px;height:20px}
.lg-or{display:flex;align-items:center;gap:12px;color:#555;font-size:13px}
.lg-or::before,.lg-or::after{content:"";flex:1;border-top:1px solid #ddd}
.lg-reg{display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:16px;min-height:56px;font-weight:900;font-size:18px;cursor:pointer;box-shadow:0 6px 16px rgba(0,0,0,.22)}
.lg-reg .ic{width:24px;height:24px;stroke-width:2.2}
.lg-reg[data-role="merchant"]{background:#8a3a10;color:#fff}
.lg-reg[data-role="driver"]{background:#111;color:#ffd21f}
.lg-reg:active{transform:scale(.98)}
.lg-new{font-size:14px;color:#111;margin:4px 0 0}
.lg-link{background:none;border:0;padding:0;font:inherit;color:#1a6fe0;font-weight:700;text-decoration:underline;cursor:pointer}

/* ===== اختيار الثيم ===== */
.themes{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;margin-bottom:6px}
.theme-opt{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px;border-radius:16px;background:var(--surface);border:2px solid var(--line);font-weight:700;font-size:13.5px;color:var(--fg)}
.theme-opt i{display:block;width:100%;height:48px;border-radius:10px;border:1px solid rgba(128,128,128,.35)}
.theme-opt[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}

/* ===== بطاقة الطلب (تصميم موحّد للتاجر والسائق والمدير) ===== */
.oc{
  /* البطاقة فاتحة دائماً مثل التصميم المطلوب، لذا نثبّت ألوانها مهما كان الثيم */
  --fg:#1b1612; --muted:#7a6a58; --line:#eadfce; --surface:#ffffff; --surface-2:#faf6ee; --input:#f5f0e6;
  --amber:#a4660a; --green:#1d7f4a; --red:#c4372e; --blue:#2f55c4;
  --amber-soft:rgba(240,169,60,.2); --green-soft:rgba(76,200,132,.2); --red-soft:rgba(242,118,109,.2); --blue-soft:rgba(116,153,242,.2);
  --accent:#ffd21f; --accent-ink:#171200; --accent-text:#7d5f00; --accent-soft:rgba(255,210,31,.3); --accent-bg:#ffd21f;
  position:relative;background:#fff;color:var(--fg);border-radius:20px;padding:18px 28px 16px 18px;
  box-shadow:0 6px 26px rgba(255,193,7,.30),0 1px 3px rgba(0,0,0,.10);font-family:var(--font-display)
}
.oc::after{content:"";position:absolute;right:0;top:20%;bottom:20%;width:9px;border-radius:10px 0 0 10px;background:#ffc107}
.oc-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.oc-no{font-weight:800;font-size:22px;color:#f5a31a;line-height:1.4}
.oc-no small{display:block;font-size:12.5px;font-weight:600;color:var(--muted)}
.oc-corner{display:flex;flex-direction:column;gap:8px;flex:none}
.oc-cb{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;min-width:112px;padding:7px 12px;border:0;border-radius:8px;color:#fff;font:800 15px var(--font-display);text-decoration:none;cursor:pointer}
.oc-cb.g{background:#34c759}.oc-cb.r{background:#ff3b47}
.oc-cb:disabled{opacity:.5}
.oc-cb .ic{width:22px;height:22px}
.oc-ex{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#ff3b47;font-weight:900;font-size:15px;line-height:1}
.oc-r{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin-top:14px;font-weight:700;font-size:15.5px}
.oc-r+.oc-r.sub{margin-top:10px}
.oc-i{width:34px;height:34px;flex:none;display:grid;place-items:center;color:#8a3a10}
.oc-i svg.ic{width:30px;height:30px;stroke-width:1.9}
.oc-d{width:30px;height:30px;border-radius:50%;background:#8a3a10;color:#fff;display:grid;place-items:center;font-weight:900;font-size:17px;line-height:1}
.oc-l{color:#8a3a10;font-weight:800;white-space:nowrap}
.oc-v{color:#111;font-weight:800;min-width:0;overflow-wrap:anywhere}
.oc-plus{color:#8a3a10;font-size:26px;font-weight:300;line-height:1;margin-inline:2px}
.oc-chip{display:inline-block;background:#ddd8d9;color:#222;border-radius:12px;padding:5px 18px;font-weight:800}
.oc-sep{border:0;border-top:1.5px dashed #e6d7bd;margin:14px 0 0}
.oc .phone{color:#8a3a10}
.oc .pill{font-size:13.5px}
.oc .notice{margin-top:12px}
.oc-act{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.oc-act>*{flex:1 1 auto}
.oc .btn.ghost{background:#fff;color:#3b2a1a;border:1px solid #e2d3bb}
.oc .btn.danger{background:#fff;color:var(--red);border:1px solid #e2d3bb}
.oc .btn.danger.arm{background:var(--red);color:#fff}
.oc .btn.soft{background:#fff3c4;color:#6b5000}
.oc .btn.wa{background:#25d366;color:#fff}
.oc .menu{background:#fff;border-color:#e2d3bb;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.oc .menu button{color:#1b1612}

/* ===== صفحة الإشعارات الكاملة ===== */
.nt-list{display:flex;flex-direction:column;gap:10px}
.nt{display:flex;gap:12px;align-items:flex-start;width:100%;text-align:start;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px;position:relative;color:var(--fg)}
.nt.unread{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.nt-ic{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--muted)}
.nt-ic.accent{background:var(--accent-soft);color:var(--accent-text)}
.nt-ic.green{background:var(--green-soft);color:var(--green)}
.nt-ic.red{background:var(--red-soft);color:var(--red)}
.nt-ic.amber{background:var(--amber-soft);color:var(--amber)}
.nt-ic.blue{background:var(--blue-soft);color:var(--blue)}
.nt-b{flex:1;min-width:0}
.nt-b b{display:block;font-size:15.5px;line-height:1.45}
.nt-b p{color:var(--muted);font-size:14px;white-space:pre-line;overflow-wrap:anywhere;margin-top:2px}
.nt-b small{display:block;color:var(--muted);font-size:12.5px;margin-top:4px}
.nt .dot{position:absolute;top:14px;inset-inline-end:14px;margin:0}
.nt-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}

.oc-grp{display:inline-flex;align-items:center;gap:6px 8px;flex-wrap:nowrap;white-space:nowrap}
.oc-no{white-space:nowrap;font-size:20px}
.oc-cb{min-width:104px;font-size:14.5px;padding:7px 10px}
.oc-r{font-size:15px}

/* ===== بطاقة الطلب: حجم وسط وأزرار داخل الحدود ===== */
.oc{box-sizing:border-box;max-width:100%;min-width:0;overflow:hidden;border-radius:18px;padding:14px 22px 13px 12px}
.oc::after{width:7px;top:24%;bottom:24%}
.oc-top{gap:8px;flex-wrap:nowrap;min-width:0}
.oc-top>:first-child{min-width:0;flex:1 1 auto}
.oc-corner{flex:0 0 auto;gap:6px;max-width:46%}
.oc-no{font-size:17px;line-height:1.35;white-space:nowrap}
.oc-no small{font-size:11.5px}
.oc-cb{min-width:0;width:100%;box-sizing:border-box;gap:6px;padding:5px 9px;font-size:13px;border-radius:8px;white-space:nowrap}
.oc-cb .ic,.oc-cb svg{width:17px;height:17px}
.oc-ex{width:18px;height:18px;font-size:12px}
.oc-r{font-size:13.5px;gap:3px 7px;margin-top:9px}
.oc-r+.oc-r.sub{margin-top:6px}
.oc-i{width:26px;height:26px}
.oc-i svg.ic,.oc .oc-i svg{width:22px;height:22px}
.oc-d{width:24px;height:24px;font-size:14px}
.oc-plus{font-size:20px}
.oc-chip{padding:3px 12px;border-radius:10px;font-size:13.5px}
.oc-sep{margin-top:10px}
.oc-act{gap:6px;margin-top:11px}
.oc-act .btn,.oc .btn.sm{font-size:12.5px;padding:6px 10px;min-height:34px}
.oc .pill{font-size:12.5px}
.oc .notice{margin-top:9px;font-size:12.5px}

/* ===== شريط طلب السماح بالإشعارات ===== */
.nbanner{display:flex;align-items:center;gap:12px;background:var(--accent-soft);color:var(--fg);border:1.5px solid var(--accent);border-radius:18px;padding:12px 14px;margin-bottom:14px}
.nbanner:empty,#nbanner:empty{display:none}
.nbanner>.ic,.nbanner>svg{width:26px;height:26px;flex:none;color:var(--accent-text)}
.nbanner b{display:block;font-size:15.5px}
.nbanner small{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:2px}
.nbanner.warn{background:var(--amber-soft);border-color:var(--amber)}
.nbanner.warn>.ic,.nbanner.warn>svg{color:var(--amber)}
.nbanner .btn{flex:none}

/* ===== تصميم الوصولات: قسم الاختيار ===== */
.oc-c{font-style:normal}
.odp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:392px;margin:0 auto 6px}
.odp-o{display:flex;flex-direction:column;gap:2px;padding:6px 6px 10px;border-radius:18px;background:var(--surface);border:2px solid var(--line);color:var(--fg);cursor:pointer;text-align:center}
.odp-o b{font-size:14px;margin-top:6px}
.odp-o small{font-size:12px;color:var(--muted)}
.odp-o[aria-checked="true"]{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.odp-box{position:relative;height:178px;overflow:hidden;border-radius:12px;pointer-events:none;background:rgba(128,128,128,.12)}
.odp-in{position:absolute;top:6px;right:4px;width:360px;transform-origin:top right;transform:scale(.42)}
.odp-in .oc,.odp-in .od{margin:0}
@media (max-width:359px){.odp-in{transform:scale(.38)}}

/* ===== التصاميم البديلة لبطاقة الطلب (.od) ===== */
.od{
  --fg:#111;--muted:#7a6a58;--line:#eadfce;--surface:#fff;--surface-2:#faf6ee;--input:#fff;
  --amber:#a4660a;--green:#1d7f4a;--red:#c4372e;--blue:#2f55c4;
  --amber-soft:rgba(240,169,60,.2);--green-soft:rgba(76,200,132,.2);--red-soft:rgba(242,118,109,.2);--blue-soft:rgba(116,153,242,.2);
  --accent:#ffd21f;--accent-ink:#171200;--accent-text:#7d5f00;--accent-soft:rgba(255,210,31,.3);--accent-bg:#ffd21f;
  --od-bg:#fff;--od-lbl:#8a3a10;--od-r:20px;--od-box:#fff;--od-boxbd:2px solid #111;--od-det:#faf7ec;
  --od-btn:#111;--od-btn-fg:#ffd21f;--od-note:#e0303f;--od-note-bg:#fff;--od-note-bd:2.5px solid #e0303f;
  --od-waze:#ffd21f;--od-waze-fg:#111;--od-sup-bd:2px solid #111;--od-tg:2px dashed #111;--od-tg-fg:#111;--od-notice:#fff3c4;--od-notice-fg:#6b5000;
  position:relative;box-sizing:border-box;max-width:100%;min-width:0;color:var(--fg);background:var(--od-bg);font-family:var(--font-display);font-size:15px;line-height:1.5;margin-bottom:0
}
.od *{box-sizing:border-box}
.od small{display:block}
.od-hd{display:flex;justify-content:space-between;align-items:center;gap:10px}
.od-no{font-weight:900;font-size:28px;line-height:1.2;display:flex;flex-direction:column}
.od-nol{display:none;font-size:13px;font-weight:700;color:var(--od-lbl)}
.od-ago{font-size:13px;font-weight:600;white-space:nowrap}
.od-body{padding:16px 20px 20px}
.od-st{display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:900;font-size:17px}
.od-sl{font-size:14px;font-weight:600}
.od[data-st="delivered"] .od-sv::before{content:"✓ "}
.od .od-sv .pill{background:none;border:0;padding:0;color:inherit;font:inherit;font-weight:900;font-size:inherit}
.od .od-sv select.in{min-width:140px;color:#111;background:#fff}
.od-store{display:flex;align-items:center;gap:12px}
.od-av{display:none;flex:none;place-items:center;font-weight:900}
.od-sn small{font-size:13px;font-weight:600;color:var(--od-lbl)}
.od-sn b{display:block;font-size:21px;font-weight:900;line-height:1.3}
.od-pr{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:6px 10px;margin-top:14px}
.od-pl{flex:1 0 100%;font-size:13px;font-weight:600;color:var(--od-lbl)}
.od-pm{display:flex;align-items:baseline;gap:8px}
.od-pv{display:inline-flex;align-items:baseline;gap:8px}
.od-big{font-size:40px;font-weight:900;line-height:1.05;white-space:nowrap}
.od-pr em{font-style:normal;font-size:15px;font-weight:600;opacity:.75}
.od-dl{display:inline-block;white-space:nowrap;font-weight:800;font-size:13.5px;padding:5px 12px;border-radius:12px;border:2px solid #111}
.od-ad{display:flex;gap:10px;align-items:stretch;margin-top:14px}
.od-ab{flex:1 1 0;min-width:0;padding:12px 16px;border-radius:var(--od-r);background:var(--od-box);border:var(--od-boxbd)}
.od-ab small{font-size:13px;font-weight:600;color:var(--od-lbl)}
.od-ab b{display:block;font-size:19px;font-weight:900;line-height:1.3;overflow-wrap:anywhere}
.od-arrow{display:none}
.od .notice{margin-top:12px;font-size:13.5px;background:var(--od-notice);color:var(--od-notice-fg);border-radius:14px}
.od .hint{color:var(--od-lbl);margin-top:12px}
.od-tg{display:block;width:100%;margin-top:14px;padding:15px;border:var(--od-tg);border-radius:var(--od-r);background:transparent;color:var(--od-tg-fg);font:900 17px var(--font-display);cursor:pointer}
.od-det{margin-top:14px;padding:4px 18px;border-radius:var(--od-r);background:var(--od-det)}
.od .oc-r{margin:0;padding:11px 0;gap:4px 10px;flex-wrap:nowrap;justify-content:space-between;align-items:center;font-size:14.5px;border-bottom:1.5px solid rgba(128,100,60,.16)}
.od .oc-r:last-child{border-bottom:0}
.od .oc-i,.od .oc-c{display:none}
.od .oc-l{color:var(--od-lbl);font-weight:600;font-size:14.5px}
.od .oc-v{margin-inline-start:auto;text-align:start;font-weight:800;color:var(--fg)}
.od .phone{color:var(--fg);font-family:var(--font-display);font-weight:800;font-size:15px}
.od-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.od-links>*{flex:1 1 38%;order:1}
.od .od-links .btn{min-height:52px;border-radius:var(--od-r);font:800 15px var(--font-display);padding:8px 12px}
.od .od-links .btn.soft{flex:1 1 100%;order:0;background:var(--od-waze);color:var(--od-waze-fg)}
.od .od-links .btn.wa{background:#25d366;color:#fff}
.od .od-links .btn.ghost{background:var(--od-bg);color:var(--fg);border:var(--od-sup-bd)}
.od-main{display:flex;gap:10px;margin-top:14px}
.od .oc-cb{flex:1 1 0;min-width:0;justify-content:center;gap:8px;min-height:56px;padding:8px 12px;border-radius:var(--od-r);font:900 18px var(--font-display);white-space:nowrap;width:auto}
.od .oc-cb.g{flex:2 1 0;background:var(--od-btn);color:var(--od-btn-fg)}
.od .oc-cb.r{background:var(--od-note-bg);color:var(--od-note);border:var(--od-note-bd)}
.od .oc-cb svg{display:none}
.od .oc-cb[data-act="accept"] svg{display:inline-block;width:18px;height:18px;stroke-width:2.6}
.od .oc-ex{background:none;color:inherit;width:auto;height:auto;font-size:20px;font-weight:900}
.od .menu{background:#fff;color:#111;border:1px solid #ddd;box-shadow:0 10px 30px rgba(0,0,0,.25);inset-inline-start:auto;inset-inline-end:0}
.od .menu button{color:#111}

/* --- 1) أسود وأصفر --- */
.od-bold{border:3px solid #111;border-radius:26px}
.od-bold .od-top{background:#111;color:#ffd21f;border-radius:23px 23px 0 0;padding:18px 22px 14px}
.od-bold .od-ago{color:#c9c3b0}
.od-bold .od-st{background:#ffd21f;color:#111;padding:14px 22px}
.od-bold .od-av{display:none}
.od-bold .od-sn b{font-size:24px}
.od-bold .od-pl{display:none}
.od-bold .od-pr{margin-top:18px}
.od-bold .od-pr::before{content:"سعر الطلب";flex:1 0 100%;font-size:13px;font-weight:600;color:var(--od-lbl)}
.od-bold .od-pv{background:linear-gradient(transparent 64%,#ffd21f 64%);padding-inline:2px}
.od-bold .od-big{font-size:42px}
.od-bold .od-ab{border-radius:20px}
.od-bold .od-body{padding-bottom:22px}

/* --- 2) أخضر متدرّج --- */
.od-green{--od-r:999px;--od-box:#f1f5f2;--od-boxbd:0 solid transparent;--od-det:#f6f8f6;--od-btn:#166b43;--od-btn-fg:#fff;--od-note-bd:1.5px solid #d6303f;--od-note:#d6303f;--od-waze:#fdf0bd;--od-waze-fg:#6b4d00;--od-sup-bd:1.5px solid #cfdcd7;--od-tg:1.5px solid #cfdcd7;--od-tg-fg:#166b43;border-radius:30px}
.od-green .od-top{background:linear-gradient(135deg,#0e3a29,#1f8a5b);color:#fff;border-radius:30px 30px 0 0;padding:20px 22px 22px}
.od-green .od-no{color:#c7f24a;font-size:26px}
.od-green .od-ago{color:#cfe7da}
.od-green .od-store{margin-top:12px}
.od-green .od-sn small{display:none}
.od-green .od-sn b{font-size:19px;font-weight:600}
.od-green .od-pl{display:none}
.od-green .od-pr{flex-direction:column;align-items:flex-start;margin-top:8px;gap:12px}
.od-green .od-pr em{color:#cfe7da}
.od-green .od-dl{background:#c7f24a;color:#13361f;border:0;border-radius:999px;font-size:15px}
.od-green .od-body{padding:18px 20px 22px}
.od-green .od-st{justify-content:flex-start;gap:6px;color:#166b43;font-size:16px}
.od-green .od-sl{order:-1;color:#8a3a10;font-size:16px;font-weight:700}
.od-green .od-sl::after{content:":"}
.od-green[data-st="delivered"] .od-sv::before{content:none}
.od-steps{display:flex;align-items:flex-start;margin:12px 0 4px}
.od-s{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none;width:58px}
.od-s i{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#e4eae6;color:#fff}
.od-s.on i{background:#22c55e}
.od-s i svg{width:24px;height:24px;stroke-width:3}
.od-s small{font-size:14px;font-weight:700;color:#8a9a90}
.od-s.on small{color:#166b43}
.od-ln{flex:1;height:5px;border-radius:5px;background:#e4eae6;margin-top:24px}
.od-ln.on{background:#22c55e}
.od-green .od-ab{padding:14px 16px;border-radius:18px}
.od-green .od-ad{margin-top:16px}

/* --- 3) تذكرة --- */
.od-ticket{--od-box:#f3f1ed;--od-boxbd:0 solid transparent;--od-det:#faf6ec;--od-r:22px;--od-btn:#1f9d4d;--od-btn-fg:#fff;--od-note:#d6303f;--od-note-bg:#fce9ea;--od-note-bd:0 solid transparent;--od-waze:#fcefc0;--od-waze-fg:#6b4d00;--od-sup-bd:2px solid #e5dcc6;--od-tg:2px dashed #d8cfb8;background:transparent;filter:drop-shadow(0 6px 14px rgba(0,0,0,.22))}
.od-half{position:relative;isolation:isolate}
.od-half::before{content:"";position:absolute;inset:0;z-index:-1;background:#fff}
.od-ticket .od-top{padding:22px 22px 24px}
.od-ticket .od-top::before{border-radius:30px 30px 0 0;-webkit-mask:radial-gradient(circle 15px at 0 100%,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 15px at 100% 100%,#0000 97%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle 15px at 0 100%,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 15px at 100% 100%,#0000 97%,#000) right/51% 100% no-repeat}
.od-ticket .od-top::after{content:"";position:absolute;left:22px;right:22px;bottom:0;border-bottom:3px dashed #e6e0cf}
.od-ticket .od-bot{padding:20px 22px 22px}
.od-ticket .od-bot::before{border-radius:0 0 30px 30px;-webkit-mask:radial-gradient(circle 15px at 0 0,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 15px at 100% 0,#0000 97%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle 15px at 0 0,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 15px at 100% 0,#0000 97%,#000) right/51% 100% no-repeat}
.od-ticket .od-no{color:#d97706;font-size:34px}
.od-ticket .od-nol{display:block}
.od-ticket .od-ago{background:#f1ece0;color:#7a6f5c;padding:8px 18px;border-radius:999px;font-size:14px}
.od-ticket .od-st{margin-top:16px;padding:14px 18px;border-radius:18px;background:#e0f2e5;color:#1d7f4a}
.od-ticket .od-sl{color:#8a3a10}
.od-ticket .od-store{margin-top:18px}
.od-ticket .od-av{display:grid;width:90px;height:90px;border-radius:24px;background:#124a31;color:#a3e635;font-size:36px;flex:none}
.od-ticket .od-av{width:56px;height:56px;border-radius:16px;font-size:26px}
.od-ticket .od-pr{margin-top:0}
.od-ticket .od-big{font-size:42px}
.od-ticket .od-dl{background:#e8f5ec;color:#1d7f4a;border:0;border-radius:14px;font-size:15px}
.od-ticket .od-ad{align-items:center}
.od-ticket .od-ab{flex:0 0 auto;max-width:38%;border-radius:18px;padding:10px 16px}
.od-ticket .od-arrow{display:block;flex:1;height:0;border-top:4px dotted #d3c4a0;position:relative;min-width:20px}
.od-ticket .od-arrow::before{content:"";position:absolute;left:-4px;top:-9px;border:8px solid transparent;border-right:10px solid #d97706;border-left:0}
.od-ticket .oc-c{display:inline}
.od-ticket .oc-r{justify-content:flex-start;border-bottom:0;padding:8px 0;font-size:16px}
.od-ticket .oc-v{margin-inline-start:0}
.od-ticket .oc-l{font-weight:600}
.od-ticket .phone{color:#8a3a10}
.od-ticket .od-det{padding:12px 18px}
.od-ticket .od-main .oc-cb.g{background:#1f9d4d}

/* --- 4) أصفر وبني --- */
.od-sun{--od-bg:#fffaee;--od-box:#fff;--od-boxbd:2px solid #f0e5cf;--od-det:#fff3d6;--od-r:999px;--od-btn:#229e4e;--od-btn-fg:#fff;--od-note:#d6303f;--od-note-bg:transparent;--od-note-bd:2.5px solid #d6303f;--od-waze:#fdf0c0;--od-waze-fg:#6b4d00;--od-sup-bd:2px solid #ecdcb8;--od-tg:2px dashed #e2cf9f;border-radius:34px}
.od-sun .od-top{background:#fdbf26;color:#3f2a00;border-radius:34px 34px 0 0;padding:20px 26px}
.od-sun .od-no{font-size:30px;color:#3f2a00}
.od-sun .od-ago{color:#6b4d00;font-size:15px}
.od-sun .od-body{padding:20px 22px 24px}
.od-sun .od-st{background:#fdf0c0;color:#6b4d00;padding:12px 18px;border-radius:18px;margin-bottom:16px}
.od-sun .od-av{display:grid;width:54px;height:54px;border-radius:50%;background:#8a3a10;color:#fff;font-size:24px}
.od-sun .od-sn small{display:none}
.od-sun .od-sn b{font-size:22px}
.od-sun .od-pr{flex-wrap:nowrap;gap:12px;align-items:stretch;margin-top:16px}
.od-sun .od-pb,.od-sun .od-db{border-radius:26px;padding:14px 20px}
.od-sun .od-pb{flex:1.7 1 0;min-width:0;background:#8a3a10;color:#fff}
.od-sun .od-db{flex:1 1 0;min-width:0;background:#fdf0c0;color:#4a3500}
.od-sun .od-pb small{color:#f1d9c6}
.od-sun .od-db small{color:#6b4d00}
.od-sun .od-pb div,.od-sun .od-db div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.od-sun .od-pb .od-big{font-size:28px}
.od-sun .od-db b{font-size:22px;font-weight:900}
.od-sun .od-ab{border-radius:24px}
.od-sun .od-tg,.od-sun .od-det{border-radius:26px}
.od-sun .od-links .btn,.od-sun .oc-cb{border-radius:999px}

/* --- 5) داكن --- */
.od-night{--od-bg:#0a2a1d;--fg:#fff;--input:#0a2a1d;--line:#2f6b50;--od-lbl:#9bc0ad;--od-r:20px;--od-box:transparent;--od-boxbd:0 solid transparent;--od-det:#123d2b;--od-btn:#a3e635;--od-btn-fg:#0a2410;--od-note:#ff5d6c;--od-note-bg:transparent;--od-note-bd:2px solid #ff5d6c;--od-waze:rgba(163,230,53,.16);--od-waze-fg:#d7f78a;--od-sup-bd:2px solid #2f6b50;--od-tg:2px dashed #2f6b50;--od-tg-fg:#a3e635;--od-notice:rgba(163,230,53,.14);--od-notice-fg:#d7f78a;border:1px solid #17503a;border-radius:30px;padding:22px 22px 24px;color:#fff}
.od-night .od-body{padding:0}
.od-night .od-no{color:#a3e635;font-size:32px}
.od-night .od-ago{color:#8fb3a1}
.od-night .od-st{margin-top:14px;padding:10px 16px;border-radius:16px;background:rgba(163,230,53,.12);color:#a3e635}
.od-night .od-sl{color:#9bc0ad}
.od-night .od-store{margin-top:14px;gap:10px;color:#e6f5ec}
.od-night .od-av{display:block;width:14px;height:14px;border-radius:50%;background:#a3e635;font-size:0}
.od-night .od-sn small{display:none}
.od-night .od-sn b{font-size:19px;font-weight:600}
.od-night .od-pr{margin-top:16px;padding:18px 20px;border-radius:28px;background:#123d2b;align-items:center;flex-wrap:wrap}
.od-night .od-pm{flex-direction:column;align-items:flex-start;gap:0}
.od-night .od-pl{color:#9bc0ad;font-size:14px}
.od-night .od-big{font-size:44px}
.od-night .od-pr em{color:#9bc0ad;font-size:16px}
.od-night .od-dl{background:#27501f;border:1.5px solid #4c8a2c;color:#a3e635;border-radius:16px;text-align:center;font-size:14px;white-space:nowrap}
.od-night .od-ad{flex-direction:column;gap:18px;margin-top:20px;position:relative}
.od-night .od-ab{position:relative;padding:0 50px 0 0;background:none}
.od-night .od-ab::before{content:"";position:absolute;right:0;top:10px;width:24px;height:24px;border-radius:50%;border:3px solid #a3e635}
.od-night .od-ab+.od-arrow+.od-ab::before{background:#a3e635}
.od-night .od-ab:first-child::after{content:"";position:absolute;right:11px;top:38px;bottom:-22px;border-right:4px dotted #3b6e55}
.od-night .od-ab small{color:#9bc0ad}
.od-night .od-ab b{color:#fff;font-size:21px}
.od-night .oc-r{border-bottom-color:rgba(255,255,255,.1)}
.od-night .phone{color:#a3e635}
.od-night .od-links .btn.ghost{background:transparent;color:#fff}
.od-night .menu{background:#123d2b;color:#fff;border-color:#2f6b50}
.od-night .menu button{color:#fff}
.od-night .od-sv select.in{background:#0a2a1d;color:#fff;border-color:#2f6b50}

@media (max-width:380px){.od-big{font-size:38px}.od-night .od-big{font-size:42px}.od-ticket .od-big{font-size:40px}.od-no{font-size:24px}.od-sun .od-pb .od-big{font-size:28px}}

/* قائمة تغيير الحالة كانت تُقصّ داخل البطاقة فلا يظهر خيار «تم الإرجاع للتاجر»: نسمح لها بالخروج من البطاقة */
.oc:has(.menu){overflow:visible}
.oc .menu{max-height:70vh;overflow:auto}

/* ===== قائمة الحالة داخل التصاميم الجديدة: تُفتح نحو داخل الشاشة ولا تخرج منها ===== */
.od .menu{inset-inline-start:auto;inset-inline-end:auto;right:0;left:auto;min-width:200px;max-width:calc(100vw - 40px);max-height:70vh;overflow:auto}

/* ===== بطاقات مضغوطة بشكل مستطيل (أقل ارتفاعاً) ===== */
.od{font-size:14px}
.od .od-no{font-size:22px}
.od-ticket .od-no{font-size:24px}
.od .od-ago{font-size:12.5px}
.od .od-body{padding:10px 14px 12px}
.od.od-night .od-body{padding:0}
.od .od-st{font-size:15px}
.od .od-store{gap:8px}
.od .od-sn{display:flex;align-items:baseline;gap:4px 8px;flex-wrap:wrap}
.od .od-sn small{font-size:12px}
.od .od-sn b{font-size:17px}
.od .od-pr{margin-top:6px;gap:4px 8px}
.od .od-pl{font-size:12px}
.od .od-big{font-size:30px}
.od .od-pr em{font-size:13px}
.od .od-ad{margin-top:8px;gap:8px}
.od .od-ab{padding:6px 12px}
.od .od-ab small{font-size:12px}
.od .od-ab b{font-size:16px}
.od .od-tg{margin-top:8px;padding:8px;font-size:14px;border-width:1.5px}
.od .od-det{margin-top:8px;padding:2px 14px}
.od .oc-r{padding:7px 0;font-size:13.5px}
.od .od-links{margin-top:8px;gap:8px}
.od .od-links .btn{min-height:42px;font-size:14px}
.od .od-main{margin-top:8px;gap:8px}
.od .oc-cb{min-height:42px;font-size:15px;padding:4px 10px}
.od .notice{margin-top:8px;padding:8px 12px}
.od .hint{margin-top:6px}
.od-bold{border-width:2.5px;border-radius:18px}
.od-bold .od-top{padding:9px 16px;border-radius:15px 15px 0 0}
.od-bold .od-st{padding:8px 16px}
.od-bold .od-pr{margin-top:6px}
.od-bold .od-big{font-size:30px}
.od-green{border-radius:20px}
.od-green .od-top{padding:12px 16px 14px;border-radius:20px 20px 0 0}
.od-green .od-no{font-size:22px}
.od-green .od-store{margin-top:2px}
.od-green .od-sn b{font-size:16px}
.od-green .od-pr{flex-direction:row;align-items:center;justify-content:space-between;margin-top:4px}
.od-green .od-dl{font-size:13px}
.od-green .od-body{padding:10px 14px 12px}
.od-green .od-st{font-size:14px}
.od-green .od-sl{font-size:14px}
.od-steps{margin:6px 0 0}
.od-s{width:46px;gap:3px}
.od-s i{width:32px;height:32px}
.od-s i svg{width:16px;height:16px}
.od-s small{font-size:12px}
.od-ln{height:4px;margin-top:14px}
.od-green .od-ad{margin-top:8px}
.od-green .od-ab{padding:6px 12px;border-radius:14px}
.od-ticket .od-top{padding:12px 16px 14px}
.od-ticket .od-bot{padding:12px 16px 14px}
.od-ticket .od-st{margin-top:8px;padding:8px 14px;border-radius:14px}
.od-ticket .od-store{margin-top:8px}
.od-ticket .od-av{width:38px;height:38px;border-radius:11px;font-size:18px}
.od-ticket .od-big{font-size:30px}
.od-ticket .od-ago{padding:4px 12px;font-size:12.5px}
.od-ticket .od-nol{font-size:12px}
.od-ticket .od-ab{padding:6px 12px;border-radius:14px}
.od-ticket .oc-r{font-size:14px;padding:5px 0}
.od-sun{border-radius:22px}
.od-sun .od-top{padding:9px 18px;border-radius:22px 22px 0 0}
.od-sun .od-no{font-size:22px}
.od-sun .od-body{padding:10px 14px 14px}
.od-sun .od-st{padding:7px 14px;border-radius:14px;margin-bottom:8px}
.od-sun .od-av{width:34px;height:34px;font-size:17px}
.od-sun .od-sn b{font-size:17px}
.od-sun .od-pr{margin-top:8px;gap:8px}
.od-sun .od-pb,.od-sun .od-db{padding:8px 14px;border-radius:18px}
.od-sun .od-pb .od-big{font-size:24px}
.od-sun .od-db b{font-size:19px}
.od-sun .od-ab{border-radius:16px}
.od-sun .od-tg,.od-sun .od-det{border-radius:18px}
.od-night{border-radius:20px;padding:12px 14px 14px}
.od-night .od-no{font-size:24px}
.od-night .od-st{margin-top:8px;padding:7px 12px;border-radius:12px}
.od-night .od-store{margin-top:8px}
.od-night .od-av{width:10px;height:10px}
.od-night .od-sn b{font-size:16px}
.od-night .od-pr{margin-top:8px;padding:8px 14px;border-radius:18px}
.od-night .od-big{font-size:32px}
.od-night .od-dl{font-size:13px}
.od-night .od-ad{gap:10px;margin-top:10px}
.od-night .od-ab{padding:0 38px 0 0}
.od-night .od-ab::before{width:18px;height:18px;top:5px;border-width:3px}
.od-night .od-ab:first-child::after{right:8px;top:26px;bottom:-14px}
.od-night .od-ab b{font-size:16px}

/* ===== ورقة اختيار الحالة (لا يرد / رفض / ...) ===== */
.st-list{display:flex;flex-direction:column;gap:8px;padding-bottom:6px}
.st-opt{display:flex;align-items:center;gap:12px;width:100%;min-height:54px;padding:10px 14px;border-radius:16px;border:2px solid var(--line);background:var(--surface-2);color:var(--fg);font:800 17px var(--font-display);text-align:start;cursor:pointer}
.st-opt.on{border-color:var(--accent);background:var(--accent-soft)}
.st-opt .ck{width:22px;display:inline-grid;place-items:center;color:var(--accent-text)}
a.st-opt{text-decoration:none;box-sizing:border-box}
.st-opt .ck svg{width:20px;height:20px;stroke-width:3}

/* ===== صورة الحساب وشارة التوثيق ===== */
.vb{display:inline-flex;vertical-align:middle;margin-inline-start:4px}
.vb-s{width:1.15em;height:1.15em}
.vb.driver{color:#16a34a}.vb.merchant{color:#1d6fe0}
.pimg{border-radius:50%;object-fit:cover;background:#ddd;flex:none;vertical-align:middle}
.avatar.img{padding:0;overflow:hidden;position:relative}
.avatar.img img{width:100%;height:100%;object-fit:cover}
.av-wrap{position:relative;width:104px;margin:6px auto 10px}
.av-wrap .avatar{margin:0}
.av-cam{position:absolute;inset-block-end:0;inset-inline-end:0;width:36px;height:36px;border-radius:50%;background:#111;color:#ffd21f;display:grid;place-items:center;border:3px solid var(--bg,#fff);cursor:pointer}
.av-cam svg{width:18px;height:18px}
.av-cam input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;font-size:0}

/* الشعار الجديد */
.logo-img{display:block;height:44px;width:auto;border-radius:10px;flex:none}
.logo-img.big{height:auto;width:min(78vw,340px);margin-inline:auto;border-radius:16px}
.card-viz .logo-img{height:30px}

/* منع التكبير ومنع تكبير النقر المزدوج */
html,body{touch-action:pan-x pan-y;-webkit-text-size-adjust:100%}
/* إعلانات التاجر */
.ads{position:relative;margin:0 0 14px}
.ad-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:16px;-webkit-overflow-scrolling:touch}
.ad-track::-webkit-scrollbar{display:none}
.ad-s{flex:0 0 100%;scroll-snap-align:center;display:block;aspect-ratio:1.7/1;border-radius:16px;overflow:hidden;background:var(--soft,#eef)}
.ad-s img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none;user-select:none}
.ad-dots{position:absolute;inset-inline:0;bottom:8px;display:flex;justify-content:center;gap:5px;pointer-events:none}
.ad-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);transition:.2s}
.ad-dots i.on{width:16px;border-radius:4px;background:#fff}

/* ===== واجهة الدخول والتسجيل (أسود وذهبي) ===== */
html:has(body.au-on),body.au-on{background:#0a0a0c}
.au{position:relative;width:100vw;margin-inline:calc(50% - 50vw);min-height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;background:#0a0a0c;color:#f4efe2;overflow:hidden;font-family:'Cairo','IBM Plex Sans Arabic',sans-serif;padding:0 18px calc(24px + env(safe-area-inset-bottom,0px))}
.au::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(232,193,74,.13) 1px,transparent 1.2px);background-size:22px 22px;opacity:.5;pointer-events:none}
.au-art{position:absolute;top:60px;left:50%;transform:translateX(-50%);width:min(520px,118vw);height:auto;opacity:.55;pointer-events:none;filter:drop-shadow(0 0 10px rgba(232,193,74,.35))}
.au-reg .au-art{top:auto;bottom:-20px;opacity:.16;filter:none}
.au-top{position:relative;width:100%;max-width:520px;display:flex;justify-content:flex-start;padding-top:calc(16px + env(safe-area-inset-top,0px))}
.au-wa{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid rgba(232,193,74,.35);border-radius:999px;background:rgba(255,255,255,.04);color:#f4efe2;text-decoration:none;font-size:14px;font-weight:600}
.au-wa .ic{width:24px;height:24px;color:#25d366}
.au-brand{position:relative;text-align:center;margin:6px 0 150px}
.au-brand h1{margin:0;font-size:52px;font-weight:900;line-height:1.1;color:#e8c14a;letter-spacing:1px}
.au-brand p{margin:2px 0 14px;font-size:16px}
.au-chips{display:inline-flex;align-items:center;gap:12px;padding:8px 20px;border:1px solid rgba(232,193,74,.28);border-radius:999px;background:rgba(255,255,255,.04);font-size:14px;color:#cfc8b4}
.au-chips i{width:5px;height:5px;border-radius:50%;background:#e8c14a}
.au-card,.au-form{position:relative;width:100%;max-width:520px;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;text-align:right}
.au-card{padding:22px 20px 24px;border:1px solid rgba(232,193,74,.22);border-radius:28px;background:rgba(14,14,17,.88);backdrop-filter:blur(6px)}
.au h2{margin:0;font-size:28px;font-weight:900;color:#fff}
.au-sub{margin:0 0 8px;font-size:14px;color:#b9b2a0}
.au-lbl{margin-top:6px;font-size:14px;font-weight:600;color:#e9e3d2}
.au-in{display:flex;align-items:center;gap:10px;min-height:54px;padding:0 14px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(255,255,255,.04)}
.au-in:focus-within{border-color:#e8c14a;box-shadow:0 0 0 3px rgba(232,193,74,.18)}
.au-in .ic{width:22px;height:22px;flex:none;color:#e8c14a}
.au-in input{flex:1;min-width:0;background:none;border:0;outline:0;color:#fff;font:inherit;font-size:16px;text-align:right}
.au-in input::placeholder{color:#8f8a7b}
.au-btn{min-height:54px;margin-top:10px;border:0;border-radius:18px;background:linear-gradient(180deg,#e8c14a,#c9a02e);color:#1a1405;font:inherit;font-size:18px;font-weight:900;cursor:pointer}
.au-btn:disabled{opacity:.6}
.au-ghost{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;border:1px solid rgba(232,193,74,.6);border-radius:18px;background:transparent;color:#e8c14a;font:inherit;font-size:17px;font-weight:800;cursor:pointer}
.au-ghost .ic{width:22px;height:22px}
.au-or{display:flex;align-items:center;gap:12px;margin:6px 0;color:#8f8a7b;font-size:13px}
.au-or::before,.au-or::after{content:"";flex:1;border-top:1px solid rgba(255,255,255,.14)}
.au-hd{position:relative;width:100%;max-width:520px;display:flex;align-items:center;justify-content:space-between;padding-top:calc(18px + env(safe-area-inset-top,0px))}
.au-logo{font-size:26px;font-weight:900;color:#e8c14a;margin-inline:auto}
.au-back{width:44px;height:44px;border:1px solid rgba(232,193,74,.3);border-radius:50%;background:rgba(255,255,255,.04);color:#e8c14a;display:grid;place-items:center;cursor:pointer}
.au-back .ic{width:20px;height:20px}
.au-form{margin-top:18px}
.au-seg{display:flex;gap:10px}
.au-seg button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(255,255,255,.04);color:#e9e3d2;font:inherit;font-size:16px;font-weight:700;cursor:pointer}
.au-seg button[aria-pressed="true"]{border-color:#e8c14a;background:rgba(232,193,74,.12);color:#e8c14a}
.au-seg .ic{width:22px;height:22px}
.au-note{display:flex;align-items:flex-start;gap:10px;margin-top:10px;padding:12px 14px;border:1px solid rgba(232,193,74,.3);border-radius:16px;background:rgba(232,193,74,.06);font-size:13px;color:#d9d2bd}
.au-note .ic{width:20px;height:20px;flex:none;color:#e8c14a}
.au-has{text-align:center;margin:10px 0 0;font-size:14px;color:#b9b2a0}
.au-link{background:none;border:0;padding:0;font:inherit;font-weight:800;color:#e8c14a;cursor:pointer}
.au .hint{min-height:0;margin:0;font-size:13px}

.au-big{font-size:36px}
.au-pick{display:flex;align-items:center;gap:14px;width:100%;box-sizing:border-box;margin-top:14px;padding:18px 16px;border:1px solid rgba(255,255,255,.12);border-radius:24px;background:rgba(255,255,255,.04);color:#f4efe2;font:inherit;text-align:right;cursor:pointer}
.au-pick[aria-pressed="true"]{border-color:#e8c14a;background:rgba(232,193,74,.1)}
.au-pi{width:62px;height:62px;flex:none;display:grid;place-items:center;border:1px solid rgba(232,193,74,.4);border-radius:20px;background:rgba(232,193,74,.08);color:#e8c14a}
.au-pi .ic{width:30px;height:30px}
.au-pt{flex:1;display:flex;flex-direction:column;gap:4px}
.au-pt b{font-size:22px;font-weight:900;color:#fff}
.au-pt small{font-size:14px;color:#b9b2a0;line-height:1.6}
.au-pk{width:36px;height:36px;flex:none;display:grid;place-items:center;border:1.5px solid rgba(255,255,255,.3);border-radius:50%;color:#1a1405}
.au-pick[aria-pressed="true"] .au-pk{background:#e8c14a;border-color:#e8c14a}
.au-pk .ic{width:18px;height:18px;stroke-width:3}
.au-foot{display:flex;flex-direction:column;position:relative;width:100%;max-width:520px;margin-top:auto;padding-top:40px}

/* مطابقة التصميم: موضع الخريطة وترتيب الرأس */
.au-art{top:122px;width:min(266px,64vw);filter:none;opacity:1}
.au-reg .au-art{top:44%;bottom:auto;width:92vw;opacity:.2}
.au-back .ic{transform:scaleX(-1)}
.au-top{position:absolute;top:calc(52px + env(safe-area-inset-top,0px));left:14px;width:auto;padding:0;z-index:2}
.au{padding-top:calc(52px + env(safe-area-inset-top,0px))}
.au-reg{padding-top:0}
.au-brand{z-index:1;margin:0 0 118px}
.au-brand h1{font-size:46px}
.au-card{z-index:1;background:rgba(14,14,17,.7)}

/* خريطة بغداد الأصلية + إصلاح التمرير (clip بدل hidden حتى لا يتحرك الحاوي داخلياً عند التركيز) */
.au{overflow:clip}
.au-art{top:112px;width:min(270px,66vw);height:auto;opacity:1;filter:none;user-select:none}
.au-reg .au-art{top:42%;width:92vw;opacity:.2}

/* ===== التصميم الجديد (تاجر/سائق): شريط سفلي بزر +، صفوف الطلبات، صفحة التفاصيل، الإحصائيات ===== */
.nav{border-radius:26px 26px 0 0;border-top:1px solid var(--line);box-shadow:0 -6px 24px rgba(0,0,0,.08)}
.navfab{flex:0 0 auto!important;width:68px;height:68px;margin-top:-34px;border:6px solid var(--surface)!important;border-radius:50%!important;background:var(--accent-bg)!important;color:var(--accent-ink)!important;display:grid!important;place-items:center;padding:0!important;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.navfab .ic{width:30px;height:30px}
@media (min-width:900px){.navfab{width:100%;height:auto;margin:0 0 6px;border:0!important;border-radius:14px!important;padding:12px!important}}
.orow{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:16px 18px;cursor:pointer;display:flex;flex-direction:column;gap:14px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.orow-t{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.orow-a small{display:block;color:var(--muted);font-size:13px}
.orow-a b{font-size:20px;font-weight:800}
.orow-p{display:flex;align-items:baseline;gap:6px;direction:ltr}
.orow-p .num,.orow-p b{font-size:22px;font-weight:800}
.orow-p small{color:var(--muted);font-size:12px}
.orow-p .paid{font-size:16px;color:var(--green)}
.seg4{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;direction:rtl}
.seg4 i{height:7px;border-radius:99px;background:var(--line)}
.seg4.ok i.on{background:var(--green)}.seg4.bad i.on{background:var(--red)}.seg4.blue i.on{background:var(--blue)}
.orow-b{display:flex;align-items:center;gap:10px}
.orow-b .chev{margin-inline-end:auto;color:var(--muted);display:inline-grid}
.orow-b .chev .ic{width:20px;height:20px}
.orow-n{color:var(--muted);font-size:14px}
.orow-acc{background:var(--accent-bg);color:var(--accent-ink);border:0;border-radius:99px;padding:8px 16px;font-weight:700;font-size:14px}
.opage{padding:calc(14px + env(safe-area-inset-top,0px)) 16px 40px;max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.op-h{display:flex;align-items:center;gap:14px}
.op-h h1{font-size:26px;font-weight:800}.op-h p{color:var(--muted);font-size:14px}
.op-back{width:52px;height:52px;border-radius:16px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;color:var(--fg);flex:none}
.op-back .ic{transform:scaleX(-1)}
.op-card{padding:18px}
.op-state{font-size:20px;font-weight:800;margin-bottom:14px}
.op-state b{color:var(--green)}.op-state.k-bad b{color:var(--red)}.op-state.k-blue b{color:var(--blue)}
.stps{display:grid;grid-template-columns:repeat(4,1fr);position:relative}
.stp{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;position:relative}
.stp small{font-size:12.5px;color:var(--muted);font-weight:600}
.stp.on small{color:var(--green)}
.stp-c{width:44px;height:44px;border-radius:50%;background:var(--line);display:grid;place-items:center;color:#fff;position:relative;z-index:1}
.stp.on .stp-c{background:var(--green)}
.stp-c .ic{width:22px;height:22px}
.stp:not(:last-child)::after{content:"";position:absolute;top:21px;inset-inline-start:calc(50% + 28px);width:calc(100% - 56px);height:5px;border-radius:9px;background:var(--line)}
.stp.ln:not(:last-child)::after{background:var(--green)}
.stp.on + .stp:not(.on)::before{display:none}
.opg-st{margin-top:14px}
.dr{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.dr:last-child{border-bottom:0}
.dr-i{width:46px;height:46px;border-radius:14px;background:var(--accent-soft);color:var(--accent-text);display:grid;place-items:center;flex:none}
.dr-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.dr-t small{color:var(--muted);font-size:13.5px}
.dr-t b{font-size:19px;font-weight:700;overflow-wrap:anywhere}
.dr-t em{font-style:normal;color:var(--muted);font-size:13.5px}
.op-acts{display:flex;gap:10px;flex-wrap:wrap}.op-acts.wrap .btn,.op-acts.wrap a{flex:1 1 40%}
.op-x{gap:10px}
.stat-tabs{margin-bottom:14px}
.gold{border-radius:26px;padding:22px 18px;text-align:center;background:linear-gradient(135deg,#fdf3c4,#f0d57c 55%,#fbe9a3);border:2px solid #d9aa2a;color:#5c3f00;margin-bottom:14px;box-shadow:0 6px 18px rgba(217,170,42,.25)}
.gold small{display:block;font-size:17px;font-weight:700}
.gold b{display:block;font-size:42px;font-weight:800;color:#177a45;margin:6px 0;direction:ltr}
.gold b span{font-size:20px;color:#177a45}
.gold em{font-style:normal;font-weight:700;color:#b3261e}
.stat-card{padding:16px;margin-bottom:14px}
.trio{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.trio>div{border-radius:18px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.trio small{font-size:14px;font-weight:600}.trio b{font-size:32px;font-weight:800}
.t1{background:#faecb4;color:#5c3f00}.t2{background:#d7f0dd;color:#14663a}.t3{background:#fbdcdc;color:#9b1c1c}
.stat-h{font-size:19px;font-weight:800;margin:12px 4px;display:flex;align-items:center;gap:8px}
.bars{display:flex;align-items:flex-end;justify-content:space-around;gap:6px;height:190px;padding-top:6px;direction:rtl}
.bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}
.bar i{width:100%;max-width:34px;background:#f0b90b;border-radius:9px 9px 3px 3px;display:block}
.bar.pk i{background:#d99a00}
.bar em{font-style:normal;font-size:13px;color:var(--muted);font-weight:700;min-height:16px}
.bar small{font-size:11.5px;color:var(--muted)}
.bars.year .bar small{font-size:9px}
.rk{display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid var(--line)}
.rk:last-child{border:0}
.rk-n{width:30px;height:30px;border-radius:50%;background:var(--line);display:grid;place-items:center;font-weight:700;font-size:14px}
.rk-n.f{background:#f0b90b;color:#171200}
.rk bdi{flex:1;font-weight:700}
.ar{padding:10px 4px}.ar-t{display:flex;justify-content:space-between;margin-bottom:6px}.ar-t small{color:var(--muted)}
.ar-b{height:8px;border-radius:9px;background:var(--line);overflow:hidden}.ar-b i{display:block;height:100%;background:#f0b90b;border-radius:9px}

.od-big .od-paid,.od .od-big .od-paid{font-size:19px;font-weight:800;letter-spacing:0}

.orow{cursor:default}
.orow-pw{display:flex;flex-direction:column;align-items:flex-start;gap:6px;direction:ltr}
.orow-d{background:var(--green-soft);color:var(--green);border-radius:99px;padding:4px 12px;font-weight:700;font-size:13px;direction:rtl}
.orow-tg{background:none;border:2px dashed var(--line);border-radius:16px;padding:12px;font-weight:700;color:var(--fg)}
.orow-x{border-top:1px solid var(--line);padding-top:4px;display:flex;flex-direction:column}
.orow-x .op-acts{margin-top:10px}

.orow-s .op-state{font-size:17px;margin-bottom:12px}
.orow-s .stp-c{width:38px;height:38px}.orow-s .stp:not(:last-child)::after{top:17px;inset-inline-start:calc(50% + 24px);width:calc(100% - 48px)}
.orow-s .stp small{font-size:12px}

.orow-s .stp-c{width:34px;height:34px}.orow-s .stp:not(:last-child)::after{top:15px;inset-inline-start:calc(50% + 21px);width:calc(100% - 42px);height:4px}
.orow-s .stp small{font-size:11px;line-height:1.3}
