/* ElAdham design system v8: shared by the shop and the admin. Tokens first, then small reusable pieces. */
@font-face { font-family: "Cairo"; src: url("/fonts/cairo-arabic.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; src: url("/fonts/cairo-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
:root {
  --navy: #072a62; --navy-2: #051d45; --gold: #e8b23a; --red: #dc0a17; --bg: #f6f4ef; --card: #fff; --ink: #1c1c1c; --muted: #5b5b5b;
  --ok: #1e7d32; --warn: #6b5400; --warn-bg: #fdf3d7; --bad: #b3261e; --line: #e2ded5;
  --r: 12px; --r-sm: 8px; --sh: 0 1px 3px rgba(0,0,0,.08);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --t-sm: 13px; --t-md: 15px; --t-lg: 18px; --t-xl: 22px;
}
body { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
button, a.btn { min-height: 40px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* feedback: toast, offline bar, empty and error states, skeleton */
#toasts { position: fixed; inset-inline: 12px; bottom: 92px; z-index: 50; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--navy-2); color: #fff; border-radius: var(--r); padding: 12px 14px; font-size: var(--t-md); box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: auto; }
.toast.ok { background: var(--ok); } .toast.bad { background: var(--bad); }
#offline { display: none; position: sticky; top: 0; z-index: 60; background: var(--bad); color: #fff; text-align: center; padding: 6px; font-size: var(--t-sm); }
.empty, .errbox { text-align: center; color: var(--muted); padding: var(--s5) var(--s4); background: var(--card); border-radius: var(--r); margin: var(--s3); }
.errbox { color: var(--bad); border: 1px solid #f0c4c0; }
.errbox button { margin-top: var(--s2); background: var(--navy); color: #fff; border: 0; border-radius: var(--r-sm); padding: 8px 16px; font-weight: 700; }
.skel { background: linear-gradient(90deg, #ece8df 25%, #f6f3ec 37%, #ece8df 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--r); min-height: 120px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
/* brand header (logo drops in from /assets/logo.svg or /assets/logo.png) */
.brandimg { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: transparent; padding: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.authlogo { display:block; width:72px; height:72px; margin:0 auto 6px; border-radius:50%; }
