@font-face{font-family:Plex Arabic;src:url(/fonts/IBMPlexSansArabic-Regular.ttf) format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Plex Arabic;src:url(/fonts/IBMPlexSansArabic-Medium.ttf) format("truetype");font-weight:500;font-display:swap}@font-face{font-family:Plex Arabic;src:url(/fonts/IBMPlexSansArabic-SemiBold.ttf) format("truetype");font-weight:600;font-display:swap}@font-face{font-family:Plex Arabic;src:url(/fonts/IBMPlexSansArabic-Bold.ttf) format("truetype");font-weight:700;font-display:swap}:root{--brand: #681833;--brand-ink: #4c1025;--brand-soft: #f3e4e9;--bg: #f6eee8;--surface: #ffffff;--surface-2: #fbf7f4;--line: #ecdfd6;--text: #2b1a20;--muted: #7d6b71;--ok: #425729;--ok-soft: #e7eddf;--warn: #b85c06;--warn-soft: #fcecdc;--accent: #f4ba48;--accent-soft: #fdf1d8;--danger: #b42318;--danger-soft: #fde8e6;--radius: 16px;--radius-sm: 12px;--shadow: 0 1px 2px rgba(76, 16, 37, .06), 0 4px 16px rgba(76, 16, 37, .06);--tabbar-h: 64px;--safe-b: env(safe-area-inset-bottom, 0px);--safe-t: env(safe-area-inset-top, 0px);color-scheme:light}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:Plex Arabic,system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--text);font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}a{color:var(--brand);text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}.num,.ltr{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}.shell{min-height:100dvh}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;padding:calc(10px + var(--safe-t)) 16px 10px;background:var(--brand);color:#f6eee8}.topbar h1{font-size:17px;font-weight:600;margin:0;flex:1}.topbar .logo{color:#f6eee8;display:flex}.main{padding:16px 16px calc(var(--tabbar-h) + var(--safe-b) + 24px);max-width:1100px;margin:0 auto}.tabbar{position:fixed;inset:auto 0 0 0;z-index:30;height:calc(var(--tabbar-h) + var(--safe-b));padding-bottom:var(--safe-b);display:grid;grid-template-columns:repeat(5,1fr);align-items:center;background:var(--surface);border-top:1px solid var(--line)}.tab{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:500;color:var(--muted);padding:6px 0;background:none;border:0;cursor:pointer}.tab svg{width:24px;height:24px}.tab.active{color:var(--brand)}.tab.fab .fab-circle{width:52px;height:52px;border-radius:50%;margin-top:-26px;display:grid;place-items:center;background:var(--brand);color:#fff;box-shadow:0 6px 16px #68183359;border:4px solid var(--bg)}.tab.fab .fab-circle svg{width:26px;height:26px}.sidebar{display:none}@media(min-width:900px){.shell{display:grid;grid-template-columns:250px 1fr}.sidebar{display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100dvh;overflow-y:auto;background:var(--brand);color:#f6eee8;padding:20px 14px}.sidebar .brand{display:flex;align-items:center;gap:10px;padding:4px 8px 20px}.sidebar .brand span{font-weight:600;font-size:15px;opacity:.9}.side-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;color:#f6eee8cc;font-weight:500;background:none;border:0;cursor:pointer;text-align:start;width:100%}.side-link svg{width:20px;height:20px}.side-link:hover{background:#ffffff14;color:#fff}.side-link.active{background:#f6eee8;color:var(--brand)}.side-sep{height:1px;background:#fff2;margin:10px 8px}.side-foot{margin-top:auto;font-size:13px;opacity:.8;padding:8px}.side-cta{background:var(--accent);color:var(--brand-ink);font-weight:700;justify-content:center;margin-bottom:10px}.side-cta:hover{background:#f7c869;color:var(--brand-ink)}.tabbar,.topbar{display:none}.main{padding:28px 32px 48px}.page-title{display:block!important}}.page-title{display:none;font-size:22px;font-weight:700;margin:0 0 18px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.card+.card,.stack>*+*{margin-top:12px}.card h2,.card h3{margin:0 0 10px;font-size:16px;font-weight:700}.section-label{font-size:13px;font-weight:600;color:var(--muted);margin:20px 4px 8px}.grid{display:grid;gap:12px}@media(min-width:640px){.grid-2{grid-template-columns:1fr 1fr}.grid-3{grid-template-columns:repeat(3,1fr)}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;border-radius:var(--radius-sm);border:1px solid transparent;font-weight:600;cursor:pointer;transition:transform .05s,background .15s;background:var(--surface-2);color:var(--text);border-color:var(--line)}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn svg{width:18px;height:18px}.btn-primary{background:var(--brand);color:#fff;border-color:var(--brand)}.btn-primary:hover{background:var(--brand-ink)}.btn-ghost{background:transparent;border-color:transparent;color:var(--brand)}.btn-danger{background:var(--danger-soft);color:var(--danger);border-color:#f6c9c4}.btn-block{width:100%}.btn-sm{min-height:36px;padding:0 12px;font-size:14px}.btn-row{display:flex;gap:8px;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field>span{font-size:13px;font-weight:600;color:var(--muted)}.input,.select,.textarea{width:100%;min-height:48px;padding:10px 14px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface);font-size:16px;outline:none;transition:border-color .15s,box-shadow .15s}.textarea{min-height:110px;resize:vertical;line-height:1.7}.input:focus,.select:focus,.textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.input.ltr{text-align:left}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--muted);border:1px solid var(--line);white-space:nowrap}.badge.ok{background:var(--ok-soft);color:var(--ok);border-color:#d2dcc5}.badge.warn{background:var(--warn-soft);color:var(--warn);border-color:#f5d4b4}.badge.brand{background:var(--brand-soft);color:var(--brand);border-color:#e7c9d3}.badge.danger{background:var(--danger-soft);color:var(--danger);border-color:#f6c9c4}.alert{padding:12px 14px;border-radius:var(--radius-sm);font-size:14px;border:1px solid}.alert.error{background:var(--danger-soft);color:var(--danger);border-color:#f6c9c4}.alert.info{background:var(--accent-soft);color:#7a5208;border-color:#f6dfa8}.alert.ok{background:var(--ok-soft);color:var(--ok);border-color:#d2dcc5}.mode-banner{display:flex;align-items:center;gap:8px;justify-content:center;background:var(--accent);color:var(--brand-ink);font-size:13px;font-weight:600;padding:6px 12px}.list{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.list-item{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);background:none;border-inline:0;border-top:0;width:100%;text-align:start;cursor:pointer}.list-item:last-child{border-bottom:0}.list-item:hover{background:var(--surface-2)}.list-item .grow{flex:1;min-width:0}.list-item .title{font-weight:600}.list-item .sub{font-size:13px;color:var(--muted)}.list-item .chev{color:var(--muted);width:18px;height:18px;flex-shrink:0}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(min-width:900px){.tiles{grid-template-columns:repeat(4,1fr)}}.tile{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow)}.tile .k{font-size:13px;color:var(--muted);font-weight:500}.tile .v{font-size:22px;font-weight:700;margin-top:4px}.table-wrap{overflow-x:auto}table.t{width:100%;border-collapse:collapse;font-size:14px}table.t th,table.t td{padding:10px 12px;text-align:start;border-bottom:1px solid var(--line);vertical-align:middle}table.t th{font-size:12px;color:var(--muted);font-weight:600;background:var(--surface-2)}.searchbar{position:relative;margin-bottom:12px}.searchbar svg{position:absolute;inset-inline-start:14px;top:50%;translate:0 -50%;width:18px;height:18px;color:var(--muted)}.searchbar .input{padding-inline-start:42px}.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:12px;scrollbar-width:none}.chip{flex-shrink:0;padding:6px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:14px;font-weight:500;cursor:pointer}.chip.active{background:var(--brand);color:#fff;border-color:var(--brand)}.stepper{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:var(--surface)}.stepper button{width:40px;height:40px;border:0;background:none;font-size:20px;font-weight:600;color:var(--brand);cursor:pointer}.stepper button:disabled{color:var(--line)}.stepper .q{min-width:32px;text-align:center;font-weight:700}.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-sm);padding:4px;gap:4px}.segmented button{min-height:40px;border:0;border-radius:9px;background:none;font-weight:600;color:var(--muted);cursor:pointer}.segmented button.active{background:var(--surface);color:var(--brand);box-shadow:var(--shadow)}.segmented button:disabled{opacity:.4;cursor:not-allowed}.row{display:flex;align-items:center;gap:10px}.row.between{justify-content:space-between}.muted{color:var(--muted)}.small{font-size:13px}.bold{font-weight:700}.mt{margin-top:12px}.mb{margin-bottom:12px}.hr{height:1px;background:var(--line);margin:12px 0}.kv{display:flex;justify-content:space-between;gap:10px;padding:6px 0}.kv .k{color:var(--muted)}.total-line{font-size:18px;font-weight:700;color:var(--brand)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#2b1a2073;z-index:50;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}.sheet{background:var(--surface);width:100%;max-width:560px;max-height:88dvh;overflow-y:auto;border-radius:20px 20px 0 0;padding:8px 16px calc(20px + var(--safe-b));animation:up .2s ease-out}.sheet-head h3{margin:0 0 12px}.sheet-close{border:0;background:var(--surface-2);color:var(--muted);width:32px;height:32px;border-radius:50%;font-size:14px;cursor:pointer;margin-bottom:12px;flex-shrink:0}.sheet-backdrop.full{align-items:flex-start}.sheet-full{display:flex;flex-direction:column;overflow:hidden;height:calc(100dvh - 16px - var(--safe-t));max-height:none;margin-top:calc(16px + var(--safe-t));border-radius:20px 20px 0 0;padding-bottom:0;animation:down .2s ease-out}.sheet-full .sheet-head{flex-shrink:0}.sheet-full .sheet-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:calc(24px + var(--safe-b))}.sheet-full .searchbar{margin-bottom:10px}@keyframes down{0%{transform:translateY(-16px);opacity:0}to{transform:none;opacity:1}}.sheet .grabber{width:40px;height:4px;border-radius:4px;background:var(--line);margin:6px auto 12px}.sheet h3{margin:0 0 12px;font-size:17px}@media(min-width:900px){.sheet-backdrop{align-items:center}.sheet{border-radius:20px;padding:20px 24px}.sheet .grabber{display:none}.sheet-backdrop.full{align-items:center}.sheet-full{height:min(80vh,680px);margin-top:0;border-radius:20px}}@keyframes up{0%{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}@keyframes fade{0%{opacity:0}to{opacity:1}}.toast{position:fixed;inset-inline:16px;bottom:calc(var(--tabbar-h) + var(--safe-b) + 16px);z-index:60;max-width:440px;margin:0 auto;padding:12px 16px;border-radius:14px;background:var(--text);color:#fff;font-weight:500;box-shadow:var(--shadow);animation:up .2s}.toast.error{background:var(--danger)}@media(min-width:900px){.toast{bottom:24px}}.auth-wrap{min-height:100dvh;display:grid;place-items:center;padding:24px 16px;background:var(--brand)}.auth-card{width:100%;max-width:380px;background:var(--bg);border-radius:24px;padding:28px 22px}.auth-card .logo{color:var(--brand);display:flex;justify-content:center;margin-bottom:6px}.auth-card h1{text-align:center;font-size:18px;margin:0 0 22px;color:var(--brand)}.empty{text-align:center;padding:36px 16px;color:var(--muted)}.empty svg{width:40px;height:40px;opacity:.5;margin-bottom:6px}.spinner{width:22px;height:22px;border:3px solid var(--brand-soft);border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite;margin:30px auto}@keyframes spin{to{transform:rotate(360deg)}}.field-err{color:var(--danger);font-size:13px;font-weight:500}.order-form{padding-bottom:76px}.action-bar{position:fixed;inset-inline:0;bottom:calc(var(--tabbar-h) + var(--safe-b));z-index:25;padding:10px 16px;background:linear-gradient(to top,var(--bg) 70%,transparent)}.action-bar .btn{min-height:52px;font-size:16px;box-shadow:0 6px 18px #68183340}@media(min-width:900px){.action-bar{position:sticky;bottom:0;padding:14px 0 0;inset-inline:auto}.order-form{padding-bottom:0}}.step{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}.step:last-child{border-bottom:0}.step .ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;background:var(--surface-2);color:var(--muted)}.step .ic.ok{background:var(--ok-soft);color:var(--ok)}.step .ic.danger{background:var(--danger-soft);color:var(--danger)}.step .ic.warn{background:var(--warn-soft);color:var(--warn)}.step .ic.brand{background:var(--brand-soft);color:var(--brand)}.step .ic svg{width:20px;height:20px}.timeline{list-style:none;margin:0;padding:0}.timeline li{padding:8px 0;border-bottom:1px dashed var(--line);font-size:14px}.timeline li:last-child{border-bottom:0}pre.payload{direction:ltr;text-align:left;white-space:pre-wrap;word-break:break-word;font-size:12px;background:var(--surface-2);padding:10px;border-radius:10px;max-height:320px;overflow:auto}
