/* خيارة: shared tokens + primitives. Light theme only. No scale/zoom effects anywhere. */
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2?v=2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2?v=2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2?v=2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2?v=2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2?v=2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2?v=2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2?v=2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2?v=2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FAF7EE;
  --bg-2: #F6F1E3;
  --surface: #FFFFFF;
  --ink: #13261A;
  --ink-2: #33433A;
  --muted: #6A766C;
  --faint: #98A29A;
  --line: #E8E2D2;
  --line-2: #F0EBDD;
  --green: #3FA34D;
  --green-600: #2F8A3C;
  --green-d: #1F6B2E;
  --green-50: #EDF6EC;
  --green-100: #D9EDD9;
  --yellow: #FFCC33;
  --yellow-50: #FFF7DA;
  --yellow-100: #FFEDB0;
  --coral: #FF6B4A;
  --coral-d: #D9472A;
  --coral-50: #FFF0EB;
  --blue-50: #EAF2FB;
  --blue: #2D6CB5;
  --r-lg: 16px;
  --r: 12px;
  --r-sm: 9px;
  --sh-1: 0 1px 2px rgba(19, 38, 26, .05), 0 0 0 1px rgba(19, 38, 26, .02);
  --sh-2: 0 6px 18px -8px rgba(19, 38, 26, .14), 0 1px 2px rgba(19, 38, 26, .05);
  --font: "Plex Arabic", "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --t: 140ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-d); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--green); }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--yellow-100); }
[hidden] { display: none !important; }

.i { width: 18px; height: 18px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: .92em; }
.inline { display: inline; margin: 0; }
.nowrap { white-space: nowrap; }
.d-block { display: block; }

/* Buttons: colour/shadow transitions only. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 15px; border-radius: 11px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap;
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn .i { width: 17px; height: 17px; }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: 14px; border-radius: 9px; gap: 6px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 1px 2px rgba(31,107,46,.25); }
.btn-primary:hover { background: var(--green-600); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface); border-color: #DCD5C2; color: var(--ink); }
.btn-soft { background: var(--green-50); color: var(--green-d); }
.btn-soft:hover { background: var(--green-100); color: var(--green-d); }
.btn-danger { background: var(--coral-50); color: var(--coral-d); }
.btn-danger:hover { background: #FFE2D9; color: var(--coral-d); }
.btn[disabled], .icon-btn[disabled] { opacity: .45; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1;
}
.badge .i { width: 13px; height: 13px; }
.b-ok { background: var(--green-50); color: var(--green-d); }
.b-warn { background: var(--yellow-50); color: #8A6200; }
.b-info { background: var(--blue-50); color: var(--blue); }
.b-danger { background: var(--coral-50); color: var(--coral-d); }
.b-muted { background: var(--bg-2); color: var(--muted); }

.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
