/* هوية صلاح مكي — مشتركة بين صفحة الطلاب ولوحة التحكم */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/cairo-arabic-wght-normal.woff2') format('woff2-variations');
  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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/cairo-latin-wght-normal.woff2') format('woff2-variations');
  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 {
  --ink: #23202b;
  --ink-2: #3b3647;
  --muted: #5d5867;
  --muted-2: #8a8494;
  --line: #e9e2f0;
  --line-2: #dccdea;
  --paper: #ffffff;
  --cream: #faf8f5;
  --lavender-50: #fbf8fe;
  --lavender-100: #f4ecfb;
  --lavender-200: #e9dbf5;
  --purple: #67178b;
  --purple-600: #7b2aa3;
  --purple-400: #a874c6;
  --night: #1d1428;
  --night-2: #2c1a3d;
  --gold: #8e6b30;
  --gold-2: #c9a05a;
  --star: #e6b24a;
  --danger: #b3261e;
  --success: #2f7d4f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(35, 32, 43, .04), 0 8px 30px rgba(103, 23, 139, .08);
  --shadow-lg: 0 2px 4px rgba(35, 32, 43, .05), 0 24px 60px rgba(103, 23, 139, .14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: var(--lavender-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--purple) 45%, transparent); outline-offset: 2px; }
.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; }

/* الشعار */
.logo { display: block; height: 38px; width: auto; }

/* الشعار النصي (قديم) */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.wordmark-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #8f3fc0, #4a1268);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(103, 23, 139, .28);
}
.wordmark-mark svg { width: 18px; height: 18px; }
.wordmark-text { font-weight: 800; letter-spacing: .04em; font-size: 15px; direction: ltr; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15px;
  background: var(--purple); color: #fff; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 22px rgba(103, 23, 139, .25);
}
.btn:hover { background: var(--purple-600); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: var(--lavender-100); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; box-shadow: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: #fff; color: var(--purple); font-weight: 700; font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--purple-400); }
