@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/noto-kufi-arabic-arabic-400-normal.woff2) 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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./fonts/noto-kufi-arabic-latin-400-normal.woff2) 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: 'Noto Kufi Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/noto-kufi-arabic-arabic-600-normal.woff2) 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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fonts/noto-kufi-arabic-latin-600-normal.woff2) 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: 'Noto Kufi Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./fonts/noto-kufi-arabic-arabic-700-normal.woff2) 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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./fonts/noto-kufi-arabic-latin-700-normal.woff2) 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: #f0f7ff;
  --surface: #ffffff;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --ok: #0d7a5f;
  --danger: #dc2626;
  --border: #d4e6fa;
  --text: #0f294a;
  --muted: #516b8a;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
.quick-login-box {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.quick-login-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.quick-login-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-quick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-align: start;
}
.btn-quick span {
  font-size: 0.78rem;
  color: #475569;
  font-family: ui-monospace, Consolas, monospace;
}
.mob-header {
  background: #e6f2ff;
  color: var(--text);
  border-bottom: 1px solid #bfdbfe;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.auth-tab-btn {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #eff6ff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.auth-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.remember-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 12px !important;
  margin-bottom: 4px !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.remember-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.btn-danger.btn-sm {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  min-height: 36px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.mob-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.mob-brand:hover { opacity: 0.92; }
.mob-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.16);
}
.mob-title { font-weight: 700; font-size: 1.02rem; color: var(--text); }
.mob-sub { font-size: 0.78rem; color: var(--muted); }
.mob-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mob-nav-link,
.btn-lang {
  background: #ffffff;
  color: var(--text);
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.mob-nav-link:hover,
.btn-lang:hover {
  background: #dbeafe;
}
.mob-nav-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.mob-nav-link.active:hover {
  background: var(--primary-hover);
}
.profile-menu {
  position: relative;
  display: inline-block;
}
.profile-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 4px 12px 4px 6px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}
.profile-trigger::-webkit-details-marker { display: none; }
.profile-trigger:hover { background: #dbeafe; }
.profile-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(15, 41, 74, 0.14);
  padding: 12px;
  z-index: 60;
}
.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.profile-meta strong { font-size: 0.92rem; color: var(--text); }
.profile-role { font-size: 0.8rem; font-weight: 600; color: var(--primary); }
.profile-email { font-size: 0.78rem; color: var(--muted); word-break: break-all; }
.btn-profile-logout { width: 100%; }
.mob-main {
  max-width: 520px;
  margin: 14px auto;
  padding: 0 12px 40px;
}
.mob-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.mob-card h2 { margin-top: 0; font-size: 1.1rem; }
label { display: block; font-weight: 600; margin-top: 10px; margin-bottom: 4px; font-size: 0.92rem; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
}
.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #e0f2fe; color: var(--text); border-color: #bae6fd; }
.btn-ok { background: var(--ok); color: #ffffff; }
.btn-ok:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-danger { background: var(--danger); color: #ffffff; }
.btn-sm { min-height: 38px; padding: 4px 12px; border-radius: 6px; font-family: inherit; cursor: pointer; }
.file-btn { position: relative; overflow: hidden; }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.session-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.88rem; }
.dest-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.92rem;
}
.disclosure {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: #475569;
}
.preview-box { margin-top: 14px; text-align: center; }
.preview-box img { max-width: 100%; max-height: 300px; border-radius: 8px; border: 1px solid var(--border); }
.banner { padding: 12px; border-radius: 10px; margin-bottom: 12px; font-size: 0.92rem; border: 1px solid transparent; }
.banner-info { background: #e0f2fe; border-color: #bae6fd; color: #0c4a6e; }
.banner-ok { background: #dcfce7; border-color: #86efac; color: #166534; }
.banner-warn { background: #fef3c7; border-color: #fcd34d; color: #78350f; }
.banner-err { background: #fee2e2; border-color: #fca5a5; color: #7f1d1d; }
.muted { color: #475569; font-size: 0.9rem; }
.loading-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  color: #1e3a8a;
  font-size: 0.92rem;
  font-weight: 600;
}
.itqan-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(2, 132, 199, 0.22);
  border-top-color: #0284c7;
  border-radius: 50%;
  flex-shrink: 0;
  animation: itqan-spin 0.75s linear infinite;
}
@keyframes itqan-spin {
  to { transform: rotate(360deg); }
}
.hidden { display: none !important; }
